@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240519.0 → 0.0.0-nightly-20240520.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
|
-
_0x4389d6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2b4f63,_0x4f7229){super(),this['id']=_0x4f7229['id'],this['type']=_0x4f7229['type'],this['subType']=_0x4f7229['subType']||null,this['author']=_0x4f7229['author'],this['creator']=_0x4f7229['creator']||_0x4f7229['author'],this['isExternal']=Boolean(_0x4f7229['attributes']&&_0x4f7229['attributes']['@external']),this['data']=null,this['_model']=_0x2b4f63,this['_onAccept']=_0x4f7229['onAccept'],this['_onDiscard']=_0x4f7229['onDiscard'],this['_onAttributesChange']=_0x4f7229['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f7229['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 _0x3f5f9b=this;for(;_0x3f5f9b['previous'];)_0x3f5f9b=_0x3f5f9b['previous'];return _0x3f5f9b;}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'](_0x268fb0){this['_markerNames']['add'](_0x268fb0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3a6006=>this['_model']['markers']['get'](_0x3a6006))['filter'](_0x263bdd=>_0x263bdd);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1f1758=>{for(const _0x52fe83 of this['getMarkers']())_0x1f1758['removeMarker'](_0x52fe83);}),this['_markerNames']['clear']();}['removeMarker'](_0x209cc7){this['_model']['change'](_0x484921=>{_0x484921['removeMarker'](_0x209cc7);}),this['_markerNames']['delete'](_0x209cc7);}['addRange'](_0x1aceac){const _0x2934e7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2934e7),this['_model']['change'](_0xb12b44=>{_0xb12b44['addMarker'](_0x2934e7,{'range':_0x1aceac,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x433042){for(const _0x247df1 of this['getRanges']())if(_0x247df1['isIntersecting'](_0x433042))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5b8e48=>_0x5b8e48['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4907a5,_0x54e25e)=>[..._0x4907a5,..._0x54e25e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x250fb4=this['getRanges']();if(0x1!=_0x250fb4['length'])return null;const _0x3052d9=_0x250fb4[0x0],_0x27e3fe=_0x3052d9['start']['nodeAfter'],_0x48b5ff=_0x3052d9['end']['nodeBefore'];return _0x27e3fe instanceof _0x499afe?_0x27e3fe!=_0x48b5ff?null:_0x27e3fe: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 _0x4ba57f=[];let _0x2d3b09=this['head'];for(;_0x2d3b09;)_0x4ba57f['push'](_0x2d3b09),_0x2d3b09=_0x2d3b09['next'];return _0x4ba57f;}['setAttribute'](_0x555cd0,_0x151eb6){const _0x397941=_0x92f7df(this['attributes']);_0x33088b(_0x397941,_0x555cd0,_0x151eb6),_0x29bdc1(_0x397941,this['attributes'])||(this['attributes']=_0x397941,this['_onAttributesChange'](_0x397941));}['removeAttribute'](_0x231289){const _0x590538=_0x92f7df(this['attributes']);_0x2522d8(_0x590538,_0x231289),_0x29bdc1(_0x590538,this['attributes'])||(this['attributes']=_0x590538,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 _0x5e29c1()['substr'](0x1,0x5);}}function o(_0x4434d5,_0x12cce6,_0x1ee68b){const t=_0x4434d5['t'];switch(_0x12cce6){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',_0x1ee68b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1ee68b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1ee68b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1ee68b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1ee68b);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',_0x1ee68b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1ee68b);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',_0x1ee68b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1ee68b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1ee68b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1ee68b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1ee68b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1ee68b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1ee68b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1ee68b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1ee68b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1ee68b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1ee68b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1ee68b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1ee68b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1ee68b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1ee68b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1ee68b);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'},_0x1ee68b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1ee68b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1ee68b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1ee68b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1ee68b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1ee68b);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'},_0x1ee68b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1ee68b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1ee68b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1ee68b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1ee68b);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'},_0x1ee68b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1ee68b);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'},_0x1ee68b);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'},_0x1ee68b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1ee68b);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'},_0x1ee68b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1ee68b);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'},_0x1ee68b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1ee68b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1ee68b);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'},_0x1ee68b);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'},_0x1ee68b);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 _0x12cce6;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x65e3c1,_0x2ca38d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x65e3c1,this['_locale']=_0x2ca38d;}['getDescriptions'](_0x97cb28){const _0x2bc11c=[],_0x4017f8=new Set(),_0x26fa06=new Set();for(let _0x41e6d3=0x0;_0x41e6d3<_0x97cb28['length'];_0x41e6d3++){const _0x54a4ee=_0x97cb28[_0x41e6d3];if(!_0x54a4ee['isInContent'])continue;const _0x53774f=this['_handleCustomCallbackDescription'](_0x54a4ee);if(_0x53774f){if(null!=_0x54a4ee['subType']){if(_0x4017f8['has'](_0x54a4ee['subType']))continue;_0x4017f8['add'](_0x54a4ee['subType']);}_0x2bc11c['push'](_0x53774f);}else{if('attribute'!=_0x54a4ee['type'])'insertion'!=_0x54a4ee['type']&&'deletion'!=_0x54a4ee['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2bc11c,_0x54a4ee,_0x97cb28[_0x41e6d3+0x1]);else{const _0x1c0802=_0x54a4ee['data']['key'];if(_0x26fa06['has'](_0x1c0802))continue;_0x26fa06['add'](_0x54a4ee['data']['key']),_0x1c0802==m?this['_handleRenameSuggestionDescription'](_0x2bc11c,_0x54a4ee):this['_handleAttributeSuggestionDescription'](_0x2bc11c,_0x54a4ee);}}}return this['_resolveDescriptionItems'](_0x2bc11c);}['registerDescriptionCallback'](_0x54c706){this['_customCallbacks']['push'](_0x54c706);}['registerElementLabel'](_0x1bc390,_0x238800,_0x150e39=_0x32be84['normal']){'function'==typeof _0x1bc390?_0x14c827(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1bc390,'label':_0x238800,'priority':_0x150e39}):this['_itemLabels']['set'](_0x1bc390,_0x238800);}['registerAttributeLabel'](_0x4847c0,_0x226303){this['_attributeLabels']['set'](_0x4847c0,_0x226303);}['getItemLabel'](_0x16c879,_0x2a1a51=0x1){let _0xb5d62e;for(const _0x76c0c6 of this['_itemLabelsCallbacks'])if(_0x76c0c6['matchingCallback'](_0x16c879)){_0xb5d62e=_0x76c0c6['label'];break;}return _0xb5d62e||(_0xb5d62e=this['_itemLabels']['get'](_0x16c879['name'])),_0xb5d62e?_0xb5d62e(_0x2a1a51):0x1!==_0x2a1a51?_0x2a1a51+'\x20'+_0x16c879['name']+'s':''+_0x16c879['name'];}['_addDescriptionItems'](_0xa777bc,_0x30db89){const _0x2ba409=_0x30db89['getFirstRange']()['getWalker'](),_0x327e8a='insertion'==_0x30db89['type']?'add':'remove';for(const _0x3d1033 of _0x2ba409){const _0x2fe41f=_0x3d1033['item'],_0x2a93e8=_0xa777bc[_0xa777bc['length']-0x1];if(_0x2fe41f['is']('$textProxy'))_0x2a93e8&&_0x2a93e8['type']['indexOf']('Container')>-0x1&&_0xa777bc['pop'](),_0x2a93e8&&'text'==_0x2a93e8['type']?_0x2a93e8[_0x327e8a]+=_0x2fe41f['data']:_0xa777bc['push']({'type':'text','add':'add'==_0x327e8a?_0x2fe41f['data']:'','remove':'remove'==_0x327e8a?_0x2fe41f['data']:''});else{if(this['_schema']['isObject'](_0x2fe41f)){const _0x4a5b8d=_0x2fe41f;if(_0x2a93e8&&_0x2a93e8['type']['indexOf']('Container')>-0x1&&_0xa777bc['pop'](),'elementEnd'==_0x3d1033['type'])continue;_0x2a93e8&&_0x2a93e8['type']==_0x327e8a+'Object'&&_0x2a93e8['element']['name']==_0x4a5b8d['name']?_0x2a93e8['quantity']++:_0xa777bc['push']({'type':_0x327e8a+'Object','element':_0x4a5b8d,'quantity':0x1}),_0x2ba409['skip'](_0x5103ab=>!('elementEnd'==_0x5103ab['type']&&_0x5103ab['item']==_0x2fe41f));}else{if(this['_schema']['checkChild'](_0x2fe41f,'$text')||_0x2fe41f['is']('element','softBreak')){const _0x50a565=_0x2fe41f;if('add'==_0x327e8a&&'elementStart'==_0x3d1033['type']||'remove'==_0x327e8a&&'elementEnd'==_0x3d1033['type'])continue;if(_0x2a93e8&&-0x1==_0x2a93e8['type']['indexOf']('Container')){'text'==_0x2a93e8['type']&&(_0x2a93e8[_0x327e8a]+='\x0a');continue;}let _0x10ee07;if(_0x10ee07='add'==_0x327e8a?_0x50a565['nextSibling']&&!this['_schema']['isObject'](_0x50a565['nextSibling'])?_0x50a565['nextSibling']:null:_0x50a565['previousSibling']&&!this['_schema']['isObject'](_0x50a565['previousSibling'])?_0x50a565['previousSibling']:null,_0x50a565['isEmpty']||_0x10ee07&&_0x10ee07['isEmpty']){const _0x28c424=_0x10ee07&&_0x10ee07['isEmpty']?_0x10ee07:_0x50a565;_0x2a93e8&&_0x2a93e8['type']==_0x327e8a+'EmptyContainer'&&_0x2a93e8['element']['name']==_0x28c424['name']?_0x2a93e8['quantity']++:_0xa777bc['push']({'type':_0x327e8a+'EmptyContainer','element':_0x28c424,'quantity':0x1});}else _0xa777bc['push']({'type':_0x327e8a+'Container','element':_0x50a565});}}}}}['_resolveDescriptionItems'](_0x3ab0bc){const _0x53f29d=this['_locale'],_0x2a3301=[],_0x1b7898=[],_0x2a7ab4=[];for(const _0x3f89b6 of _0x3ab0bc)switch(_0x3f89b6['type']){case'text':if(_0x3f89b6['add']=_0x3f89b6['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3f89b6['remove']=_0x3f89b6['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3f89b6['add']&&''!=_0x3f89b6['remove']){_0x2a3301['push']({'type':'replace','content':o(_0x53f29d,'REPLACE_TEXT',['\x22'+_0x3f89b6['remove']+'\x22','\x22'+_0x3f89b6['add']+'\x22'])});continue;}if(null!=_0x3f89b6['add']['match'](/^ +$/)){_0x2a3301['push']({'type':'insertion','content':o(_0x53f29d,'*Insert:*\x20%0',o(_0x53f29d,'ELEMENT_SPACE',_0x3f89b6['add']['length']))});continue;}if(null!=_0x3f89b6['remove']['match'](/^ +$/)){_0x2a3301['push']({'type':'deletion','content':o(_0x53f29d,'*Remove:*\x20%0',o(_0x53f29d,'ELEMENT_SPACE',_0x3f89b6['remove']['length']))});continue;}if(''!=_0x3f89b6['add']){_0x2a3301['push']({'type':'insertion','content':o(_0x53f29d,'*Insert:*\x20%0','\x22'+_0x3f89b6['add']+'\x22')});continue;}_0x2a3301['push']({'type':'deletion','content':o(_0x53f29d,'*Remove:*\x20%0','\x22'+_0x3f89b6['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2a3301['push']({'type':'insertion','content':o(_0x53f29d,'*Insert:*\x20%0',this['getItemLabel'](_0x3f89b6['element'],_0x3f89b6['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2a3301['push']({'type':'deletion','content':o(_0x53f29d,'*Remove:*\x20%0',this['getItemLabel'](_0x3f89b6['element'],_0x3f89b6['quantity']))});continue;case'addContainer':_0x2a3301['push']({'type':'insertion','content':o(_0x53f29d,'*Split:*\x20%0',this['getItemLabel'](_0x3f89b6['element'],_0x3f89b6['quantity']))});continue;case'removeContainer':_0x2a3301['push']({'type':'deletion','content':o(_0x53f29d,'*Merge:*\x20%0',this['getItemLabel'](_0x3f89b6['element'],_0x3f89b6['quantity']))});continue;case'addFormat':_0x1b7898['push'](_0x3f89b6['key']);continue;case'removeFormat':_0x2a7ab4['push'](_0x3f89b6['key']);continue;default:_0x2a3301['push'](_0x3f89b6);}if(_0x1b7898['length']){const _0x1ed0a1=_0x1b7898['map'](_0x10c501=>this['_attributeLabels']['has'](_0x10c501)?this['_attributeLabels']['get'](_0x10c501):_0x10c501)['join'](',\x20');_0x2a3301['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1ed0a1)});}if(_0x2a7ab4['length']){const _0x260909=_0x2a7ab4['map'](_0xc7f5ad=>this['_attributeLabels']['has'](_0xc7f5ad)?this['_attributeLabels']['get'](_0xc7f5ad):_0xc7f5ad)['join'](',\x20');_0x2a3301['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x260909)});}return _0x2a3301;}['_handleCustomCallbackDescription'](_0x35bb9f){for(const _0x5bd7bc of this['_customCallbacks']){const _0x6cc54e=_0x5bd7bc(_0x35bb9f);if(_0x6cc54e&&'type'in _0x6cc54e)return _0x6cc54e;}}['_handleAttributeSuggestionDescription'](_0xf674f7,_0x162f95){const _0x376795=_0x162f95['data'],_0x31ab8c=void 0x0===_0x376795['newValue']?'removeFormat':'addFormat';_0xf674f7['push']({'type':_0x31ab8c,'key':_0x376795['key']});}['_handleRenameSuggestionDescription'](_0x59e464,_0x276c9b){_0x59e464['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x276c9b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xa73760,_0x1a9417,_0x5097b8){if(this['_addDescriptionItems'](_0xa73760,_0x1a9417),_0x5097b8&&_0x5097b8['getFirstRange']()&&!_0x1a9417['getFirstRange']()['end']['isEqual'](_0x5097b8['getFirstRange']()['start'])){const _0x408dc1=_0xa73760[_0xa73760['length']-0x1],_0x2dd778='insertion'==_0x1a9417['type']?'add':'remove';_0x408dc1&&'text'==_0x408dc1['type']&&(_0x408dc1[_0x2dd778]+='\x0a');}}}class E extends _0x17f7ef{['afterInit'](){const _0x3ff383=this['editor'],_0x26dd53=_0x3ff383['plugins']['get']('TrackChangesEditing');_0x3ff383['commands']['get']('showAIAssistant')&&_0x26dd53['enableCommand']('showAIAssistant');}}class V extends _0x17f7ef{['afterInit'](){const _0x47a169=this['editor'],_0x43b71c=_0x47a169['locale'];if(!_0x47a169['plugins']['has']('AlignmentEditing'))return;const _0x3f01fd=_0x47a169['plugins']['get']('TrackChangesEditing');_0x3f01fd['enableDefaultAttributesIntegration']('alignment'),_0x3f01fd['registerBlockAttribute']('alignment'),_0x3f01fd['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x43b71c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fcde4=this['editor'],_0x44a947=_0x4fcde4['locale'];_0x4fcde4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x527601=>{if('formatBlock'!=_0x527601['type'])return;const {data:_0x8ab08d}=_0x527601;if(_0x8ab08d&&'alignment'==_0x8ab08d['commandName']){const _0x3c4cb4=_0x8ab08d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x44a947,'*Format:*\x20%0',function(_0x1ba2a5){switch(_0x1ba2a5){case'left':return o(_0x44a947,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x44a947,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x44a947,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x44a947,'FORMAT_JUSTIFY_TEXT');}}(_0x3c4cb4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x17f7ef{['afterInit'](){const _0x47b82e=this['editor'],_0x1a5d39=_0x47b82e['plugins']['get']('TrackChangesEditing'),_0x581275=_0x47b82e['locale'];for(const _0xc9a976 of ti){if(!_0x47b82e['plugins']['has'](_0xc9a976))continue;const _0x45e176=_0xc9a976['slice'](0x0,-0x7)['toLowerCase'](),_0x10e150='FORMAT_'+_0x45e176['toUpperCase']();_0x1a5d39['enableDefaultAttributesIntegration'](_0x45e176),_0x1a5d39['registerInlineAttribute'](_0x45e176),_0x1a5d39['descriptionFactory']['registerAttributeLabel'](_0x45e176,o(_0x581275,_0x10e150));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b1d00=this['editor'],_0xcd6cc3=_0x3b1d00['locale'],_0x2df4fa=_0x3b1d00['plugins']['get']('TrackChangesEditing');function _0x1ecdf1(_0x4ac0cf,_0x4dc546){_0x2df4fa['descriptionFactory']['registerDescriptionCallback'](_0x3f2e64=>{if('formatInline'!=_0x3f2e64['type'])return;const {data:_0x3686ed}=_0x3f2e64;return _0x3686ed&&_0x3686ed['commandName']===_0x4ac0cf?_0x3686ed['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xcd6cc3,'*Format:*\x20%0',_0x4dc546)}:{'type':'format','content':o(_0xcd6cc3,'*Remove\x20format:*\x20%0',_0x4dc546)}:void 0x0;});}_0x1ecdf1('bold',o(_0xcd6cc3,'FORMAT_BOLD')),_0x1ecdf1('italic',o(_0xcd6cc3,'FORMAT_ITALIC')),_0x1ecdf1('underline',o(_0xcd6cc3,'FORMAT_UNDERLINE')),_0x1ecdf1('code',o(_0xcd6cc3,'FORMAT_CODE')),_0x1ecdf1('strikethrough',o(_0xcd6cc3,'FORMAT_STRIKETHROUGH')),_0x1ecdf1('subscript',o(_0xcd6cc3,'FORMAT_SUBSCRIPT')),_0x1ecdf1('superscript',o(_0xcd6cc3,'FORMAT_SUPERSCRIPT'));}}class O extends _0x17f7ef{['afterInit'](){const _0x15d6d5=this['editor'],_0x1b972b=_0x15d6d5['locale'];if(!_0x15d6d5['plugins']['has']('BlockQuoteEditing'))return;const _0x506a93=_0x15d6d5['plugins']['get']('TrackChangesEditing'),_0x4dbdbe=this['editor']['commands']['get']('blockQuote');_0x506a93['enableCommand']('blockQuote',(_0x2e751d,_0x3083a6={})=>{const _0x5b699e=this['editor']['model']['document']['selection'],_0x151e6a=_0x3083a6&&void 0x0!==_0x3083a6['forceValue']?_0x3083a6['forceValue']:!_0x4dbdbe['value'];let _0x3b3050=[];if(_0x151e6a){const _0x20db30=Array['from'](_0x5b699e['getSelectedBlocks']())['filter'](_0x3c26dd=>oo(_0x3c26dd)||function(_0x3dec91,_0x5e94c5){const _0x25ed7b=_0x5e94c5['checkChild'](_0x3dec91['parent'],'blockQuote'),_0x27e257=_0x5e94c5['checkChild'](['$root','blockQuote'],_0x3dec91);return _0x25ed7b&&_0x27e257;}(_0x3c26dd,this['editor']['model']['schema']));_0x3b3050=to(_0x20db30,_0x15d6d5['model']);}else{const _0x3793cb=Array['from'](_0x5b699e['getSelectedBlocks']())['filter'](_0x5de5b4=>oo(_0x5de5b4));_0x3b3050=to(_0x3793cb,_0x15d6d5['model']);}_0x15d6d5['model']['change'](()=>{for(const _0x7f1df3 of _0x3b3050)_0x506a93['markBlockFormat'](_0x7f1df3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x151e6a}]});});}),_0x506a93['descriptionFactory']['registerDescriptionCallback'](_0x1044e5=>{const {data:_0x2ca346}=_0x1044e5;if(_0x2ca346&&'blockQuote'==_0x2ca346['commandName']){const _0x364678=o(_0x1b972b,'ELEMENT_BLOCK_QUOTE');return _0x2ca346['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b972b,'*Set\x20format:*\x20%0',_0x364678)}:{'type':'format','content':o(_0x1b972b,'*Remove\x20format:*\x20%0',_0x364678)};}});}}function oo(_0x5d57cc){return'blockQuote'==_0x5d57cc['parent']['name'];}class F extends _0x17f7ef{['afterInit'](){const _0x9219f7=this['editor'];_0x9219f7['plugins']['has']('CaseChange')&&(_0x9219f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x9219f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x9219f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x17f7ef{['afterInit'](){const _0x4cf31a=this['editor'];_0x4cf31a['commands']['get']('ckbox')&&_0x4cf31a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x17f7ef{['afterInit'](){const _0x118c0b=this['editor'];if(!_0x118c0b['plugins']['has']('CodeBlock'))return;const _0x1e9719=_0x118c0b['plugins']['get']('TrackChangesEditing'),_0x3b85b1=_0x118c0b['locale'],_0x5e2840=_0x118c0b['config']['get']('codeBlock')['languages'],_0x1f3fce=_0x118c0b['commands']['get']('codeBlock');_0x1e9719['enableCommand']('indentCodeBlock'),_0x1e9719['enableCommand']('outdentCodeBlock'),_0x1e9719['enableCommand']('codeBlock',(_0x3d063c,_0x3367b1={})=>{const _0x55494b=_0x118c0b['model'],_0xfacc97=_0x118c0b['model']['document']['selection'],_0x41f923=_0x3367b1&&void 0x0!==_0x3367b1['forceValue']?_0x3367b1['forceValue']:!_0x1f3fce['value'];let _0x38f3a7;_0x3367b1['language']||(_0x3367b1['language']=_0x5e2840[0x0]['language']),_0x38f3a7=_0x41f923?Array['from'](_0xfacc97['getSelectedBlocks']())['filter'](_0x471957=>eo(_0x471957)||function(_0x3d7e4e,_0x59ee0e){if(_0x3d7e4e['is']('rootElement')||_0x59ee0e['isLimit'](_0x3d7e4e))return!0x1;return _0x59ee0e['checkChild'](_0x3d7e4e['parent'],'codeBlock');}(_0x471957,_0x55494b['schema'])):Array['from'](_0xfacc97['getSelectedBlocks']())['filter'](_0x568bda=>eo(_0x568bda));const _0x53709f=to(_0x38f3a7,_0x55494b);_0x55494b['change'](()=>{for(const _0x95d989 of _0x53709f)_0x1e9719['markBlockFormat'](_0x95d989,{'commandName':'codeBlock','commandParams':[{..._0x3367b1,'forceValue':_0x41f923}],'formatGroupId':'blockName'});});}),(_0x1e9719['descriptionFactory']['registerElementLabel']('codeBlock',_0x3fd9c1=>o(_0x3b85b1,'ELEMENT_CODE_BLOCK',_0x3fd9c1)),_0x1e9719['descriptionFactory']['registerDescriptionCallback'](_0xec6240=>{if('formatBlock'!=_0xec6240['type'])return;const _0x4d3e55=_0x3b85b1['t'],{data:_0x2e633b}=_0xec6240;if(!_0x2e633b||'codeBlock'!=_0x2e633b['commandName'])return;const _0x299ed0=_0x2e633b['commandParams'][0x0]['language'],_0x4496ff=_0x4d3e55(_0x5e2840['find'](_0x253f24=>_0x253f24['language']===_0x299ed0)['label'])['toLowerCase']();return _0x2e633b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b85b1,'*Set\x20format:*\x20%0',o(_0x3b85b1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4496ff+')')}:{'type':'format','content':o(_0x3b85b1,'*Remove\x20format:*\x20%0',o(_0x3b85b1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x47dfe6){return'codeBlock'==_0x47dfe6['name'];}class H extends _0x17f7ef{['afterInit'](){const _0xe8e7ef=this['editor'];if(!_0xe8e7ef['plugins']['has']('CommentsEditing'))return;_0xe8e7ef['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xd22154,_0x37b820,_0x2148e1){const _0x2f10af=[];for(const _0x4495df of _0x37b820['getItems']())_0x4495df['hasAttribute'](_0xd22154)&&_0x2f10af['push'](_0x2148e1['createRangeOn'](_0x4495df));return _0x2f10af;}function _e(_0x4f62b4,_0x139951,{showActiveMarker:_0x3484f6=!0x0}={}){const _0x505f80=_0x4f62b4['plugins']['get']('TrackChangesEditing');return(_0x69b20f,_0x5c49f3,_0x447f22)=>{if(!_0x447f22['consumable']['test'](_0x5c49f3['markerRange'],_0x69b20f['name']))return;const _0x3a7a37=_0x5c49f3['markerRange']['getWalker'](),_0x43be2a=_0x5c49f3['markerRange']['start'],_0xfbfef5=_0x4f62b4['model']['schema'];let _0x5f54d2=null,_0x2ffcd2=null,_0x52be8c=!0x1,_0x2d7680=!0x1;for(const _0x49a18c of _0x3a7a37){const _0x1d3d94=_0x49a18c['item'];_0x52be8c=_0x52be8c||_0xfbfef5['isContent'](_0x1d3d94);const _0x29d51a=_0x447f22['mapper']['toViewElement'](_0x1d3d94);if(_0x29d51a&&_0x29d51a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49a18c['type']&&(_0xfbfef5['isBlock'](_0x1d3d94)&&!_0xfbfef5['isLimit'](_0x1d3d94)&&(_0x1d3d94['nextSibling']||_0x43be2a['isAtEnd']?_0x5f54d2&&_0x5f54d2['parent']==_0x1d3d94||(_0x5f54d2=_0x1d3d94,_0x486dca(_0x49a18c['previousPosition']),_0x2d7680=!0x0):_0x2ffcd2=_0x2ffcd2||_0x49a18c['previousPosition']));}function _0x486dca(_0x36d616){const _0xbd339c=_0x447f22['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x139951}),_0x46a49e=_0x447f22['mapper']['toViewPosition'](_0x36d616);_0x3484f6&&_0x505f80['activeMarkers']['includes'](_0x5c49f3['markerName'])&&_0x447f22['writer']['addClass']('ck-suggestion-marker--active',_0xbd339c),_0x447f22['writer']['insert'](_0x46a49e,_0xbd339c),_0x447f22['mapper']['bindElementToMarker'](_0xbd339c,_0x5c49f3['markerName']);}_0x52be8c||_0x2d7680||!_0x2ffcd2||_0x486dca(_0x2ffcd2);};}class q extends _0x17f7ef{static get['requires'](){return[_0x1f282c];}['init'](){const _0x1d2a91=this['editor'],_0x3e21a0=_0x1d2a91['plugins']['get']('TrackChangesEditing');_0x3e21a0['enableCommand']('delete');const _0x338f1a=_0x1d2a91['commands']['get']('deleteForward');_0x3e21a0['enableCommand']('deleteForward',(_0x5b947e,_0x4d0324={})=>{const _0x2d5f8c=_0x1d2a91['model']['createSelection'](_0x1d2a91['model']['document']['selection']);_0x2d5f8c['isCollapsed']&&_0x1d2a91['model']['modifySelection'](_0x2d5f8c,{'direction':'forward','unit':_0x4d0324['unit']});const _0x157675=_0x2d5f8c['getFirstRange'](),_0x3d8fb3=_0x3939f1['fromRange'](_0x157675);let _0xe45a1b;_0x5b947e(_0x4d0324),_0xe45a1b='$graveyard'==_0x3d8fb3['root']['rootName']?_0x1d2a91['model']['createRange'](_0x157675['start']):_0x1d2a91['model']['createRange'](_0x3d8fb3['start'],_0x3d8fb3['end']),_0x3d8fb3['detach'](),_0x1d2a91['model']['enqueueChange'](_0x338f1a['buffer']['batch'],_0x21cb96=>{_0x338f1a['buffer']['lock'](),_0x21cb96['setSelection'](_0x21cb96['createRange'](_0xe45a1b['end'])),_0x338f1a['buffer']['unlock']();});}),_0x1d2a91['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1d2a91,'merge'),{'priority':'high'}),_0x1d2a91['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2e701b,_0x4eedaa,_0x181080)=>{_0x181080['options']['showSuggestionHighlights']&&_e(_0x1d2a91,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2e701b,_0x4eedaa,_0x181080);},{'priority':'high'}),_0x1d2a91['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x14dcae,_0x2040c2,_0x252a1b)=>{const _0x1151fb=_0x252a1b['mapper']['markerNameToElements'](_0x2040c2['markerName']);if(_0x1151fb){for(const _0xf75e49 of _0x1151fb)_0xf75e49['is']('uiElement')&&(_0x252a1b['mapper']['unbindElementFromMarkerName'](_0xf75e49,_0x2040c2['markerName']),_0x252a1b['writer']['remove'](_0xf75e49));}},{'priority':'high'});}}class z extends _0x17f7ef{['afterInit'](){const _0x3f9bdb=this['editor'];if(!_0x3f9bdb['plugins']['has']('ListEditing'))return;const _0x2f24ed=_0x3f9bdb['locale'],_0x350922=_0x3f9bdb['plugins']['get']('TrackChangesEditing'),_0x2dc4b1=_0x3f9bdb['plugins']['has']('TodoListEditing'),_0x387183=!!_0x3f9bdb['config']['get']('list.multiBlock');function _0x5bd0df(_0x7fdca4){return{'type':'format','content':''+o(_0x2f24ed,'*Set\x20format:*\x20%0',_0x7fdca4)};}function _0x5f1a77(_0x301a82){return{'type':'format','content':''+o(_0x2f24ed,'*Remove\x20format:*\x20%0',_0x301a82)};}_0x350922['enableDefaultAttributesIntegration']('numberedList'),_0x350922['enableDefaultAttributesIntegration']('bulletedList'),_0x350922['enableDefaultAttributesIntegration']('customNumberedList'),_0x350922['enableDefaultAttributesIntegration']('customBulletedList'),_0x350922['enableDefaultAttributesIntegration']('indentList'),_0x350922['enableDefaultAttributesIntegration']('outdentList'),_0x350922['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x350922['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x350922['registerBlockAttribute']('listItemId'),_0x350922['registerBlockAttribute']('listType'),_0x350922['registerBlockAttribute']('listIndent'),_0x387183&&(_0x350922['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x350922['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2dc4b1&&(_0x350922['enableDefaultAttributesIntegration']('todoList'),_0x350922['enableDefaultAttributesIntegration']('checkTodoList'),_0x350922['registerBlockAttribute']('todoListChecked'),_0x350922['descriptionFactory']['registerDescriptionCallback'](_0x2e23bd=>{const {data:_0x23be32}=_0x2e23bd;if(_0x23be32&&'todoListChecked'==_0x23be32['key'])return{'type':'format','content':_0x23be32['newValue']?o(_0x2f24ed,'*Check\x20item*'):o(_0x2f24ed,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x27ede0=>{if(_0x27ede0['batch']['isUndo'])return!0x1;let _0x162070=!0x1;const _0x3dcb4c=_0x350922['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11bf2c=>'todoListChecked'===_0x350922['_getAttributeKey'](_0x11bf2c));for(const _0x1efa17 of _0x3dcb4c){'todo'!=_0x1efa17['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x350922['_findSuggestions'](_0x1efa17['getFirstRange'](),'attribute')['find'](_0x357b96=>'listType'===_0x350922['_getAttributeKey'](_0x357b96['suggestion']))||(_0x27ede0['removeMarker'](_0x1efa17['getFirstMarker']()),_0x162070=!0x0));}return _0x162070;})),_0x350922['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2f24ed,'FORMAT_INDENT'));const _0x2fc0d8={'type':'format','content':''};_0x350922['descriptionFactory']['registerDescriptionCallback'](_0x49ae5d=>{const {data:_0xbb69c4}=_0x49ae5d;if(!_0xbb69c4||'listType'!=_0xbb69c4['key'])return;let _0x4dd08d=_0x49ae5d['head'];for(;_0x4dd08d;){if(_0x4dd08d['data']&&(('listStyle'==_0x4dd08d['data']['key']||'listMarkerStyle'==_0x4dd08d['data']['key'])&&(_0x4dd08d['data']['newValue']&&'default'!=_0x4dd08d['data']['newValue']||'default'!=_0x4dd08d['data']['oldValue']&&!_0xbb69c4['newValue'])||!_0x387183&&_0x4dd08d['data']['key']==m))return _0x2fc0d8;_0x4dd08d=_0x4dd08d['next'];}if(null==_0xbb69c4['newValue'])switch(_0xbb69c4['oldValue']){case'bulleted':return _0x5f1a77(o(_0x2f24ed,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f1a77(o(_0x2f24ed,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f1a77(o(_0x2f24ed,'ELEMENT_TODO_LIST'));}switch(_0xbb69c4['newValue']){case'bulleted':return _0x5bd0df(o(_0x2f24ed,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5bd0df(o(_0x2f24ed,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5bd0df(o(_0x2f24ed,'ELEMENT_TODO_LIST'));}}),_0x350922['descriptionFactory']['registerDescriptionCallback'](_0x457403=>{const {data:_0x2be36d}=_0x457403;if(_0x2be36d&&'listIndent'==_0x2be36d['key'])return null==_0x2be36d['newValue']||null==_0x2be36d['oldValue']&&0x0==_0x2be36d['newValue']?_0x2fc0d8:void 0x0;}),_0x350922['descriptionFactory']['registerDescriptionCallback'](_0x36f98e=>{if('attribute'!=_0x36f98e['type'])return;const {data:_0x35377c}=_0x36f98e;if(!_0x35377c||'listItemId'!=_0x35377c['key'])return;const _0x517c5f=le(_0x36f98e);return'newValue'==_0x517c5f?{'type':'format','content':o(_0x2f24ed,'*Merge:*\x20list\x20item')}:'oldValue'==_0x517c5f?{'type':'format','content':o(_0x2f24ed,'*Split:*\x20list\x20item')}:_0x2fc0d8;}),_0x3f9bdb['model']['document']['registerPostFixer'](_0x5a0f22=>this['listItemIdFixer'](_0x5a0f22)),_0x3f9bdb['model']['document']['registerPostFixer'](_0x4b8ef6=>this['noTrackChangesFixer'](_0x4b8ef6)),_0x3f9bdb['model']['document']['registerPostFixer'](_0x27e388=>this['assureChains'](_0x27e388)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x116eb5){if(_0x116eb5['batch']['isUndo']||!_0x116eb5['batch']['isLocal'])return!0x1;let _0x278804=!0x1;const _0x564957=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15aa71=>_0x15aa71['data']&&'listItemId'==_0x15aa71['data']['key'])['filter'](_0x582b96=>_0x582b96['data']['newValue']&&_0x582b96['data']['oldValue']);for(const _0x482030 of _0x564957)le(_0x482030)||(_0x116eb5['removeMarker'](_0x482030['getFirstMarker']()),_0x278804=!0x0);return _0x278804;}['noTrackChangesFixer'](_0x1ff7b0){if(_0x1ff7b0['batch']['isUndo']||!_0x1ff7b0['batch']['isLocal'])return!0x1;const _0x2c6576=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2c6576['trackChangesCommand']['value'])return!0x1;let _0x3aa53d=!0x1;const _0x254ff1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x156231=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5e314f=>'attribute'==_0x5e314f['type'])['filter'](_0x2b2fbd=>_0x254ff1['includes'](_0x2b2fbd['attributeKey']));if(0x0==_0x156231['length'])return _0x3aa53d;for(const _0x33d40f of _0x156231){const _0x4c67b4=_0x2c6576['_findSuggestions'](_0x33d40f['range'],'attribute')['filter'](_0x27feff=>!_0x27feff['meta']['isNextTo'])['map'](_0x1dd699=>_0x1dd699['suggestion'])['filter'](_0x1f460a=>{const _0x490148=_0x2c6576['_getAttributeKey'](_0x1f460a);return _0x254ff1['includes'](_0x490148);});if(_0x4c67b4['length']){for(const _0xa4d77b of _0x4c67b4)_0x1ff7b0['removeMarker'](_0xa4d77b['getFirstMarker']());_0x3aa53d=!0x0;}}return _0x3aa53d;}['assureChains'](_0x2b6b38){if(_0x2b6b38['batch']['isUndo']||!_0x2b6b38['batch']['isLocal'])return!0x1;const _0x431128=this['editor']['plugins']['get']('TrackChangesEditing');let _0x46d490=!0x1;const _0x1849a2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x4d8a33 of _0x431128['getSuggestions']({'skipNotAttached':!0x0})){const _0x4bd468=_0x431128['_findSuggestions'](_0x4d8a33['getFirstRange'](),'attribute')['map'](_0x1ab494=>_0x1ab494['suggestion'])['filter'](_0x6a672e=>_0x6a672e['data']&&_0x1849a2['includes'](_0x6a672e['data']['key']));if(!_0x4bd468['length'])continue;const _0x42691e=_0x4bd468[0x0]['head']['attributes']['groupId'];if(!_0x4bd468['every'](_0xb73d60=>_0xb73d60['attributes']['groupId']===_0x42691e)){for(const _0x59af17 of _0x4bd468)_0xdee551(_0x59af17,_0x42691e)&&(_0x46d490=!0x0);}}return _0x46d490;function _0x2f76a9(_0x512a17,_0x247474){for(const _0x3c53a0 of _0x431128['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x627cb9=>'attribute'==_0x627cb9['type']&&_0x627cb9['attributes']['groupId']==_0x512a17))_0x3c53a0['setAttribute']('groupId',_0x247474);}function _0xdee551(_0x14f860,_0xafc194){let _0x5117d6=_0x14f860['head'],_0x433939=!0x1;for(;_0x5117d6;)_0x5117d6['attributes']['groupId']!=_0xafc194&&(_0x2f76a9(_0x5117d6['attributes']['groupId'],_0xafc194),_0x5117d6['setAttribute']('groupId',_0xafc194),_0x433939=!0x0),_0x5117d6=_0x5117d6['next'];return _0x433939;}}['_supportLegacySuggestions'](){const _0x347543=this['editor'],_0x1c7c27=_0x347543['locale'],_0x112942=_0x347543['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x112942['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x56a448,_0x559c88){const _0x3cd6b4=[];for(let _0x386ad5 of _0x56a448)_0x386ad5['start']['nodeAfter']===_0x386ad5['end']['parent']&&(_0x386ad5=_0x347543['model']['createRange'](_0x347543['model']['createPositionAt'](_0x386ad5['start']['nodeAfter'],0x0))),_0x3cd6b4['push'](_0x386ad5);_0x347543['model']['change'](_0x26ca5b=>{const _0x3ca4ed=_0x347543['model']['document']['selection'],_0xe5ee8f=Array['from'](_0x3ca4ed['getRanges']())['map'](_0x2c9413=>_0x3939f1['fromRange'](_0x2c9413));_0x26ca5b['setSelection'](_0x3cd6b4),_0x347543['commands']['get'](_0x559c88['commandName'])['refresh'](),_0x559c88['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x347543['execute'](_0x559c88['commandName'],..._0x559c88['commandParams']),_0x26ca5b['setSelection'](_0xe5ee8f);for(const _0x259ba6 of _0xe5ee8f)_0x259ba6['detach']();});}),_0x112942['descriptionFactory']['registerElementLabel'](function(_0xbcda6c){const _0x5717bb=!_0x347543['model']['schema']['isObject'](_0xbcda6c),_0x34f493=_0xbcda6c['previousSibling'],_0xb37a83=_0xbcda6c['nextSibling'],_0x5e813=_0xbcda6c['getAttribute']('listItemId'),_0x74be81=!_0x34f493||_0x34f493['getAttribute']('listItemId')!==_0x5e813,_0x30b5db=!_0xb37a83||_0xb37a83['getAttribute']('listItemId')!==_0x5e813;return _0x5717bb&&Boolean(_0x5e813)&&_0x74be81&&_0x30b5db;},_0x5c20ef=>o(_0x1c7c27,'ELEMENT_LIST_ITEM',_0x5c20ef));}['_registerLegacyDescription'](){const _0x353b90=this['editor'],_0x380d8d=_0x353b90['locale'];function _0x124f19(_0x9f8511){const _0x9a8663=_0x353b90['commands']['get']('bulletedList')['value'],_0x41b4da=_0x353b90['commands']['get']('numberedList')['value'];return'numberedList'===_0x9f8511?_0x9a8663:_0x41b4da;}_0x353b90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1ba859){if('formatBlock'!=_0x1ba859['type'])return;const {data:_0x2a2c9a}=_0x1ba859;if(!_0x2a2c9a)return;let _0x247a30,_0x2af0b9,_0xa8e0c0,_0x3ea9c9;switch(_0x2a2c9a['commandName']){case'bulletedList':_0xa8e0c0=_0x2a2c9a['commandParams'][0x0]['forceValue'],_0x3ea9c9=_0x124f19(_0x2a2c9a['commandName']),_0x247a30=_0xa8e0c0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ea9c9&&_0x353b90['config']['get']('list.multiBlock')||(_0x247a30='*Change\x20to:*\x20%0'),_0x2af0b9={'type':'format','content':o(_0x380d8d,_0x247a30,o(_0x380d8d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xa8e0c0=_0x2a2c9a['commandParams'][0x0]['forceValue'],_0x3ea9c9=_0x124f19(_0x2a2c9a['commandName']),_0x247a30=_0xa8e0c0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ea9c9&&_0x353b90['config']['get']('list.multiBlock')||(_0x247a30='*Change\x20to:*\x20%0'),_0x2af0b9={'type':'format','content':o(_0x380d8d,_0x247a30,o(_0x380d8d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x247a30='*Indent:*\x20%0',_0x2af0b9={'type':'format','content':o(_0x380d8d,_0x247a30,o(_0x380d8d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x247a30=function(_0x5467c8){const _0x2f8384=_0x5467c8['getFirstRange']();let _0x3af2f6=_0x2f8384['start']['nodeAfter'];for(;_0x3af2f6&&_0x2f8384['containsItem'](_0x3af2f6);){if(_0x3af2f6['getAttribute']('listIndent')>0x0)return!0x1;_0x3af2f6=_0x3af2f6['nextSibling'];}return!0x0;}(_0x1ba859)?o(_0x380d8d,'*Format:*\x20remove\x20from\x20%0',o(_0x380d8d,function(_0x3b0010){return'ELEMENT_'+_0x3b0010['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1ba859))):o(_0x380d8d,'*Outdent:*\x20%0',o(_0x380d8d,'ELEMENT_LIST_ITEM')),_0x2af0b9={'type':'format','content':_0x247a30};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2a2c9a['multipleBlocks']&&(_0x247a30='*Merge:*\x20%0',_0x2af0b9={'type':'deletion','content':o(_0x380d8d,_0x247a30,o(_0x380d8d,'ELEMENT_LIST_ITEM'))});}return _0x2af0b9;});}}function le(_0x8a6102){let _0x4e6c20=_0x8a6102['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4e6c20;){const _0xa1de5d=_0x4e6c20['getAttribute']('listItemId');if(!_0xa1de5d)return!0x1;if(_0xa1de5d==_0x8a6102['data']['newValue'])return'newValue';if(_0xa1de5d==_0x8a6102['data']['oldValue'])return'oldValue';_0x4e6c20=_0x4e6c20['previousSibling'];}return!0x1;}class ue extends _0x17f7ef{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xc10719=this['editor']['config']['get']('list.properties'),_0x54aca9=this['editor']['plugins']['get']('TrackChangesEditing');_0xc10719['styles']&&(_0x54aca9['enableDefaultAttributesIntegration']('listStyle'),_0x54aca9['registerBlockAttribute']('listStyle')),_0xc10719['reversed']&&(_0x54aca9['enableDefaultAttributesIntegration']('listReversed'),_0x54aca9['registerBlockAttribute']('listReversed')),_0xc10719['startIndex']&&(_0x54aca9['enableDefaultAttributesIntegration']('listStart'),_0x54aca9['registerBlockAttribute']('listStart'));const _0x2f7d1a={'type':'format','content':''};_0x54aca9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x32b769=this['editor']['locale'];_0x54aca9['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x32b769,'FORMAT_LIST_REVERSED')),_0x54aca9['descriptionFactory']['registerDescriptionCallback'](_0x1852c7=>{const {data:_0x3b0815}=_0x1852c7;if(_0x3b0815&&'listReversed'==_0x3b0815['key'])return null==_0x3b0815['newValue']||0x0==_0x3b0815['newValue']&&null==_0x3b0815['oldValue']?_0x2f7d1a:void 0x0;}),_0x54aca9['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x32b769,'FORMAT_LIST_START')),_0x54aca9['descriptionFactory']['registerDescriptionCallback'](_0x44bdb2=>{const {data:_0x36dfae}=_0x44bdb2;if(_0x36dfae&&'listStart'==_0x36dfae['key'])return null==_0x36dfae['newValue']||0x1==_0x36dfae['newValue']&&null==_0x36dfae['oldValue']?_0x2f7d1a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x26582f=>{if(_0x26582f['batch']['isUndo'])return!0x1;let _0x19ec47=!0x1;const _0x352dd5=_0x54aca9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12507c=>{const _0x278600=_0x54aca9['_getAttributeKey'](_0x12507c);return'listStart'==_0x278600||'listReversed'==_0x278600;});for(const _0x4b5187 of _0x352dd5){const _0x5089fe=_0x4b5187['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5089fe||'customNumbered'==_0x5089fe)continue;_0x54aca9['_findSuggestions'](_0x4b5187['getFirstRange'](),'attribute')['find'](_0x2e3df0=>'listType'==_0x54aca9['_getAttributeKey'](_0x2e3df0['suggestion']))||(_0x26582f['removeMarker'](_0x4b5187['getFirstMarker']()),_0x19ec47=!0x0);}return _0x19ec47;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x102abd){const _0x24980b=this['editor']['locale'],{data:_0x1e0b64}=_0x102abd,_0x4ad37f={'type':'format','content':''};if(!_0x1e0b64||'listStyle'!=_0x1e0b64['key'])return;if(!_0x1e0b64['oldValue'])return'default'==_0x1e0b64['newValue']?_0x4ad37f:{'type':'format','content':''+o(_0x24980b,'*Set\x20format:*\x20%0',o(_0x24980b,this['_getTranslationKeyForListStyle'](_0x1e0b64['newValue'])))};if(!_0x1e0b64['newValue']){if('default'==_0x1e0b64['oldValue'])return _0x4ad37f;let _0x4f3464=_0x102abd['head'];for(;_0x4f3464;){if(_0x4f3464['data']&&'listType'==_0x4f3464['data']['key']&&_0x4f3464['data']['newValue'])return _0x4ad37f;_0x4f3464=_0x4f3464['next'];}return{'type':'format','content':''+o(_0x24980b,'*Remove\x20format:*\x20%0',o(_0x24980b,this['_getTranslationKeyForListStyle'](_0x1e0b64['oldValue'])))};}if('default'!=_0x1e0b64['newValue'])return{'type':'format','content':''+o(_0x24980b,'*Set\x20format:*\x20%0',o(_0x24980b,this['_getTranslationKeyForListStyle'](_0x1e0b64['newValue'])))};let _0x37a450=_0x102abd['head'];for(;_0x37a450;){if(_0x37a450['data']&&'listType'==_0x37a450['data']['key']&&_0x37a450['data']['newValue']&&_0x37a450['data']['oldValue'])return _0x4ad37f;_0x37a450=_0x37a450['next'];}return{'type':'format','content':o(_0x24980b,'*Set\x20format:*\x20%0',o(_0x24980b,'ELEMENT_'+_0x102abd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x381264=this['editor'],_0x96d7c7=_0x381264['locale'];_0x381264['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f265b=>{if('formatBlock'!=_0x3f265b['type'])return;const {data:_0x1555a2}=_0x3f265b;if(!_0x1555a2)return;let _0x54fa72,_0x201e3b;switch(_0x1555a2['commandName']){case'listStyle':_0x54fa72='*Change\x20to:*\x20%0',_0x201e3b={'type':'format','content':o(_0x96d7c7,_0x54fa72,o(_0x96d7c7,this['_getTranslationKeyForListStyle'](_0x1555a2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x54fa72=_0x1555a2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x201e3b={'type':'format','content':o(_0x96d7c7,_0x54fa72)};break;case'listStart':_0x54fa72='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x201e3b={'type':'format','content':o(_0x96d7c7,_0x54fa72,_0x1555a2['commandParams'][0x0]['startIndex'])};}return _0x201e3b;});}['_getTranslationKeyForListStyle'](_0x19d339){return'ELEMENT_'+function(_0x3effde){if(pe['includes'](_0x3effde))return'bulleted';if(ye['includes'](_0x3effde))return'numbered';return null;}(_0x19d339)['toUpperCase']()+'_LIST_'+_0x19d339['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x17f7ef{static get['requires'](){return[_0x37977b];}['init'](){const _0x1ec258=this['editor'],_0x10b7d3=_0x1ec258['plugins']['get']('TrackChangesEditing'),_0x384f05=_0x1ec258['commands']['get']('enter');_0x10b7d3['enableCommand']('enter',()=>{_0x1ec258['model']['change'](_0x4dc091=>{const _0x4b774f=_0x1ec258['model']['document']['selection'],_0x3e2360=_0x4b774f['getFirstPosition'](),_0x222ce2=_0x3939f1['fromRange'](_0x4b774f['getFirstRange']());if(_0x384f05['enterBlock'](_0x4dc091)){const _0xc1802a=_0x1ec258['model']['createPositionAt'](_0x3e2360['parent']['nextSibling'],0x0),_0x2641ee=_0x4dc091['createRange'](_0x3e2360,_0xc1802a);_0x10b7d3['markInsertion'](_0x2641ee);}else _0x4dc091['setSelection'](_0x4dc091['createRange'](_0x222ce2['end']));_0x222ce2['detach'](),_0x384f05['fire']('afterExecute',{'writer':_0x4dc091});});}),_0x1ec258['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1ec258,'split'),{'priority':'high'}),_0x1ec258['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x49da39,_0x4cad9c,_0x203f93)=>{const _0xdb0646=_0x203f93['mapper']['markerNameToElements'](_0x4cad9c['markerName']);if(_0xdb0646){for(const _0x5a4975 of _0xdb0646)_0x5a4975['hasClass']('ck-suggestion-marker-split')&&(_0x203f93['mapper']['unbindElementFromMarkerName'](_0x5a4975,_0x4cad9c['markerName']),_0x203f93['writer']['remove'](_0x5a4975));}},{'priority':'high'}),_0x1ec258['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3dc131,_0x25b82e,_0x2a787)=>{_0x2a787['options']['showSuggestionHighlights']&&_e(_0x1ec258,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3dc131,_0x25b82e,_0x2a787);},{'priority':'high'});}}class J extends _0x17f7ef{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x41923e=this['editor']['plugins']['get']('TrackChangesEditing');_0x41923e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x41923e['enableCommand']('findNext'),_0x41923e['enableCommand']('findPrevious'),_0x41923e['enableCommand']('replace'),_0x41923e['enableCommand']('replaceAll');}['handleFindCommand'](_0x2b0ca1,_0x3914b0,_0x558e1d={}){const _0x3dd17e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2b0ca1(_0x7362ae=>('string'==typeof _0x3914b0?_0x3dd17e['findByTextCallback'](_0x3914b0,_0x558e1d):_0x3914b0)(_0x7362ae)['filter'](_0x2ec48a=>!0x1===this['_isInDeletionRange'](_0x2ec48a,_0x7362ae['item'])),_0x558e1d);}['_isInDeletionRange'](_0x450ae0,_0x2a7e5c){const _0x412b2f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a7e5c,_0x450ae0['start']),this['editor']['model']['createPositionAt'](_0x2a7e5c,_0x450ae0['end']));for(const _0xcf5ae1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x412b2f['getIntersection'](_0xcf5ae1['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 _0x17f7ef{['afterInit'](){const _0x247eef=this['editor']['locale'],_0x5f04d4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5d91ce,commandName:_0x5c45ac}of ro)this['editor']['plugins']['has'](_0x5d91ce)&&(_0x5f04d4['enableDefaultAttributesIntegration'](_0x5c45ac),_0x5f04d4['registerInlineAttribute'](_0x5c45ac));_0x247eef['t'],_0x5f04d4['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x247eef,'FORMAT_FONT_SIZE')),_0x5f04d4['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x247eef,'FORMAT_FONT_FAMILY')),_0x5f04d4['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x247eef,'FORMAT_FONT_COLOR')),_0x5f04d4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x247eef,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8f306f=this['editor'],_0x192c17=_0x8f306f['locale'];_0x8f306f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x224fd5=>{const _0x4fae9f=_0x192c17['t'];if('formatInline'!=_0x224fd5['type'])return;const {data:_0x10fdf0}=_0x224fd5;if(null!=_0x10fdf0){if('fontSize'==_0x10fdf0['commandName']){const _0x1e503f=_0x10fdf0['commandParams'][0x0]['value'];if(_0x1e503f){const _0x37563c=_0x4fae9f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x761784=>_0x761784['model']==_0x1e503f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x192c17,'*Set\x20font\x20size:*\x20%0',_0x37563c)};}return{'type':'format','content':o(_0x192c17,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x10fdf0['commandName']){const _0x5a334a=_0x10fdf0['commandParams'][0x0]['value'];return _0x5a334a?{'type':'format','content':o(_0x192c17,'*Set\x20font\x20family:*\x20%0',_0x5a334a)}:{'type':'format','content':o(_0x192c17,'*Reset\x20font\x20family*')};}if('fontColor'==_0x10fdf0['commandName']){const _0x2b1bf2=_0x10fdf0['commandParams'][0x0]['value'];if(_0x2b1bf2){const _0x466404=_0x4cd0af(this['editor']['config']['get']('fontColor.colors'))['find'](_0x12e73d=>_0x12e73d['model']==_0x2b1bf2);let _0x192ad4=_0x2b1bf2,_0x4c9efd='';return _0x466404&&(_0x192ad4=_0x466404['label'],_0x4c9efd=_0x4fae9f(_0x192ad4)['toLowerCase']()),{'type':'format','content':o(_0x192c17,'*Set\x20font\x20color:*\x20%0',_0x4c9efd)['trim'](),'color':{'value':_0x2b1bf2,'title':_0x4c9efd||_0x192ad4}};}return{'type':'format','content':o(_0x192c17,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x10fdf0['commandName']){const _0x2b20a5=_0x10fdf0['commandParams'][0x0]['value'];if(_0x2b20a5){const _0x139ea7=_0x4cd0af(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x9d9d28=>_0x9d9d28['model']==_0x2b20a5);let _0xedfe16=_0x2b20a5,_0x228db2='';return _0x139ea7&&(_0xedfe16=_0x139ea7['label'],_0x228db2=_0x4fae9f(_0xedfe16)['toLowerCase']()),{'type':'format','content':o(_0x192c17,'*Set\x20font\x20background\x20color:*\x20%0',_0x228db2)['trim'](),'color':{'value':_0x2b20a5,'title':_0x228db2||_0xedfe16}};}return{'type':'format','content':o(_0x192c17,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x17f7ef{['afterInit'](){const _0x23bc56=this['editor'],_0x3232cb=_0x23bc56['plugins']['get']('TrackChangesEditing'),_0x202ee8=_0x23bc56['commands']['get']('copyFormat'),_0x65c490=_0x23bc56['commands']['get']('pasteFormat');_0x202ee8&&_0x65c490&&(_0x3232cb['enableDefaultAttributesIntegration']('pasteFormat'),_0x3232cb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4f70c9=this['editor'],_0x411aa8=_0x4f70c9['locale'];_0x4f70c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26582c=>{if('formatBlock'!=_0x26582c['type']&&'formatInline'!=_0x26582c['type'])return;const {data:_0x2c3be4}=_0x26582c;if(_0x2c3be4&&'pasteFormat'===_0x2c3be4['commandName']){const _0x5f4cec=[],_0x1055a7=_0x2c3be4['commandParams'][0x0];for(const [_0x26686f,_0x13e508]of Object['entries'](_0x1055a7))_0x5f4cec['push'](so(_0x4f70c9,_0x26686f,_0x13e508));return _0x5f4cec['length']?{'type':'format','content':o(_0x411aa8,'*Set\x20format\x20to:*\x20%0',_0x5f4cec['join'](',\x20'))}:{'type':'format','content':o(_0x411aa8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5080ae,_0x5337e9,_0x11bb7c){const _0x4d019c=_0x5080ae['locale']['t'],_0x358ba6=_0x5337e9['split'](/(?=[A-Z])/)['join']('\x20'),_0xc49e90=_0x4d019c(_0x358ba6['charAt'](0x0)['toUpperCase']()+_0x358ba6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x11bb7c)return _0xc49e90;if('fontColor'===_0x5337e9||'fontBackgroundColor'===_0x5337e9){const _0x35b35b=_0x4cd0af(_0x5080ae['config']['get']('fontColor.colors'))['find'](_0x1f25de=>_0x1f25de['model']==_0x11bb7c);return _0xc49e90+'\x20('+(_0x35b35b?_0x4d019c(_0x35b35b['label'])['toLowerCase']():_0x11bb7c)+')';}if('fontSize'===_0x5337e9&&isNaN(parseFloat(_0x11bb7c))){const _0x117936=_0x5080ae['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5080ae['config']['get']('fontSize.options'))['find'](_0x4ba03b=>_0x4ba03b['model']==_0x11bb7c);return _0xc49e90+'\x20('+(_0x117936?_0x4d019c(_0x117936['title'])['toLowerCase']():_0x11bb7c)+')';}return _0xc49e90+'\x20('+_0x11bb7c+')';}class Y extends _0x17f7ef{['_headingOptions'];['afterInit'](){const _0x2e1654=this['editor'];if(!_0x2e1654['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2e1654['config']['get']('heading.options');const _0x3072e7=_0x2e1654['locale'],_0x4dc930=_0x2e1654['plugins']['get']('TrackChangesEditing');_0x4dc930['enableDefaultAttributesIntegration']('heading');for(const _0x4acc14 of this['_headingOptions'])'paragraph'!=_0x4acc14['model']&&_0x4dc930['descriptionFactory']['registerElementLabel'](_0x4acc14['model'],_0x4ba2bc=>{const _0x3f83af=this['_getHeadingLevel'](_0x4acc14['model']);return null!==_0x3f83af?_0x1da1b8(_0x4ba2bc,_0x3f83af):_0x51c568(_0x4ba2bc,_0x4acc14['title']);});function _0x1da1b8(_0x31aedf,_0xd3eec9){return o(_0x3072e7,'ELEMENT_HEADING',[_0x31aedf,_0xd3eec9]);}function _0x51c568(_0x49781d,_0x3455a5){return o(_0x3072e7,'ELEMENT_HEADING_CUSTOM',[_0x49781d,_0x3455a5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x109e8b=this['editor'],_0x1e3eb0=_0x109e8b['locale'];function _0x3deccb(_0x20e8bd,_0xe1af1f){return o(_0x1e3eb0,'ELEMENT_HEADING_CUSTOM',[_0x20e8bd,_0xe1af1f]);}_0x109e8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c47df=>{if('formatBlock'!=_0x1c47df['type'])return;const {data:_0x3b6c04}=_0x1c47df;if(_0x3b6c04&&'heading'==_0x3b6c04['commandName']){const _0x2f5a7b=_0x3b6c04['commandParams'][0x0]['value'],_0x18ed0b=this['_getHeadingLevel'](_0x2f5a7b);if(null!==_0x18ed0b)return{'type':'format','content':o(_0x1e3eb0,'*Change\x20to:*\x20%0',(_0x2da423=0x1,_0x3da060=_0x18ed0b,o(_0x1e3eb0,'ELEMENT_HEADING',[_0x2da423,_0x3da060])))};const _0x48187d=this['_headingOptions']['find'](_0x48a48a=>_0x48a48a['model']===_0x2f5a7b)['title'];return{'type':'format','content':o(_0x1e3eb0,'*Change\x20to:*\x20%0',_0x3deccb(0x1,_0x48187d))};}var _0x2da423,_0x3da060;});}['_getHeadingLevel'](_0x59ad25){const _0x9865bf=_0x59ad25['match'](/^heading(\d+)/);if(_0x9865bf)return _0x9865bf[0x1];const _0x44427a=this['_headingOptions']?.['find'](_0x1c2b76=>_0x1c2b76['model']==_0x59ad25);if(_0x44427a&&_0x44427a['view']){const _0x5b800c=_0x44427a['view'],_0x401ef3=(_0x5b800c['name']??_0x5b800c)['match'](/^h(\d+)/);if(_0x401ef3)return _0x401ef3[0x1];}return null;}}class Z extends _0x17f7ef{['afterInit'](){const _0x147a32=this['editor'];if(!_0x147a32['plugins']['has']('HighlightEditing'))return;const _0x23914a=_0x147a32['plugins']['get']('TrackChangesEditing'),_0x34748f=_0x147a32['locale'];_0x23914a['enableDefaultAttributesIntegration']('highlight'),_0x23914a['registerInlineAttribute']('highlight'),_0x23914a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x34748f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c963e=this['editor'],_0x43ab00=_0x3c963e['locale'];_0x3c963e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12e2ff=>{if('formatInline'!=_0x12e2ff['type'])return;const {data:_0x122a28}=_0x12e2ff;if(_0x122a28&&'highlight'==_0x122a28['commandName']){const _0x656e31=_0x43ab00['t'],_0x1e61ed=_0x122a28['commandParams'][0x0]['value'];if(_0x1e61ed){const _0x1cf772=_0x3c963e['config']['get']('highlight.options')['find'](_0x15efae=>_0x15efae['model']==_0x1e61ed),_0x49d0ab=_0x656e31(_0x1cf772['title'])['toLowerCase']();return{'type':'format','content':o(_0x43ab00,'*Set\x20highlight:*\x20%0',_0x49d0ab),'color':{'value':_0x1cf772['color'],'title':_0x1cf772['title']}};}return{'type':'format','content':o(_0x43ab00,'*Remove\x20highlight*',o(_0x43ab00,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x17f7ef{['afterInit'](){const _0x4b4303=this['editor'];if(!_0x4b4303['plugins']['has']('HorizontalLineEditing'))return;_0x4b4303['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a8534=_0x4b4303['plugins']['get']('TrackChangesEditing'),_0x1ba89f=_0x4b4303['locale'];_0x4a8534['descriptionFactory']['registerElementLabel']('horizontalLine',_0x354ac6=>o(_0x1ba89f,'ELEMENT_HORIZONTAL_LINE',_0x354ac6)),_0x4b4303['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x585a06,{writer:_0x3baee5,options:_0x1bcca2})=>{if(!_0x1bcca2['showSuggestionHighlights'])return null;const _0x51d70d=_0x3baee5['createContainerElement']('div'),_0x3e9a8d=_0x3baee5['createEmptyElement']('hr');return _0x3baee5['addClass']('ck-horizontal-line',_0x51d70d),_0x3baee5['insert'](_0x3baee5['createPositionAt'](_0x51d70d,0x0),_0x3e9a8d),_0x51d70d;},'converterPriority':'high'});}}class et extends _0x17f7ef{['afterInit'](){const _0x60912c=this['editor'];if(!_0x60912c['plugins']['has']('HtmlEmbed'))return;const _0x55a5b5=_0x60912c['plugins']['get']('TrackChangesEditing'),_0x235ff7=_0x60912c['locale'];_0x55a5b5['descriptionFactory']['registerElementLabel']('rawHtml',_0x3033cd=>o(_0x235ff7,'ELEMENT_HTML_EMBED',_0x3033cd)),_0x55a5b5['enableDefaultAttributesIntegration']('htmlEmbed'),_0x55a5b5['registerBlockAttribute']('value'),_0x55a5b5['descriptionFactory']['registerDescriptionCallback'](_0x1f709a=>{if('attribute'!=_0x1f709a['type'])return;const {data:_0x3fded2}=_0x1f709a;if(_0x3fded2&&'value'==_0x3fded2['key']&&_0x1f709a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5ddc73=o(_0x235ff7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x235ff7,'*Change\x20%0\x20content*',_0x5ddc73)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c9ff8=this['editor'],_0x14a483=_0x2c9ff8['locale'];_0x2c9ff8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x465ef0=>{if('formatBlock'!=_0x465ef0['type'])return;const {data:_0x305c03}=_0x465ef0;if(_0x305c03&&'htmlEmbed'==_0x305c03['commandName']){const _0x2e24e8=o(_0x14a483,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x14a483,'*Change\x20%0\x20content*',_0x2e24e8)};}});}}class it extends _0x17f7ef{['afterInit'](){const _0x1fe5ad=this['editor'];if(!_0x1fe5ad['plugins']['has']('ImageEditing'))return;const _0x332f8c=_0x1fe5ad['plugins']['get']('TrackChangesEditing'),_0x44ae5c=_0x1fe5ad['plugins']['get']('ImageUtils'),_0x11848c=_0x1fe5ad['locale'];_0x332f8c['enableCommand']('insertImage'),_0x332f8c['descriptionFactory']['registerElementLabel']('imageBlock',_0xea06ad=>o(_0x11848c,'ELEMENT_IMAGE',_0xea06ad)),_0x332f8c['descriptionFactory']['registerElementLabel']('imageInline',_0x418a43=>o(_0x11848c,'ELEMENT_INLINE_IMAGE',_0x418a43)),_0x332f8c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x11848c,'ELEMENT_CAPTION')),_0x1fe5ad['plugins']['has']('ImageUploadEditing')&&_0x332f8c['enableCommand']('uploadImage'),_0x1fe5ad['plugins']['has']('ImageBlockEditing')&&_0x1fe5ad['plugins']['has']('ImageInlineEditing')&&(_0x332f8c['enableCommand']('imageTypeInline',(_0x4fab8c,_0x8762ad)=>{const _0x488cb5=_0x44ae5c['getClosestSelectedImageElement'](_0x1fe5ad['model']['document']['selection']);_0x1fe5ad['model']['change'](()=>{_0x332f8c['markBlockFormat'](_0x488cb5,{'commandName':'imageTypeInline','commandParams':[_0x8762ad]},[],'convertBlockImageToInline');});}),_0x332f8c['enableCommand']('imageTypeBlock',(_0x316864,_0x25959b)=>{_0x1fe5ad['model']['change'](_0xdbac8=>{let _0x5c63fd=_0x44ae5c['getClosestSelectedImageElement'](_0x1fe5ad['model']['document']['selection']),_0x311630=_0xdbac8['createRangeOn'](_0x5c63fd);const _0xb54928=_0x1484b7['fromPosition'](_0x311630['start'],'toPrevious'),_0x145205=_0x1484b7['fromPosition'](_0x311630['end'],'toNext');_0x332f8c['forceDefaultExecution'](()=>_0x316864(_0x25959b)),_0x5c63fd=_0x44ae5c['getClosestSelectedImageElement'](_0x1fe5ad['model']['document']['selection']),_0x311630=_0xdbac8['createRangeOn'](_0x5c63fd);const _0x982ddb=_0xdbac8['createRange'](_0xb54928,_0x145205);_0xb54928['detach'](),_0x145205['detach'](),_0x332f8c['markBlockFormat'](_0x5c63fd,{'commandName':'imageTypeInline','commandParams':[_0x25959b]},[],'convertInlineImageToBlock'),_0x982ddb['start']['isBefore'](_0x311630['start'])&&_0x332f8c['markInsertion'](_0xdbac8['createRange'](_0x982ddb['start'],_0x311630['start']),'convertInlineImageToBlock'),_0x311630['end']['isBefore'](_0x982ddb['end'])&&_0x332f8c['markInsertion'](_0xdbac8['createRange'](_0x311630['end'],_0x982ddb['end']),'convertInlineImageToBlock');});}),_0x332f8c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x332f8c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x332f8c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x332f8c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x332f8c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x332f8c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x16a037])=>{const _0x4a0ca5=_0x332f8c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5a230b=_0x16a037['start'],_0x49cb74=_0x16a037['end'];const _0x5f15e0=_0x1fe5ad['model']['schema']['getNearestSelectionRange'](_0x5a230b,'backward'),_0x9cb199=_0x1fe5ad['model']['schema']['getNearestSelectionRange'](_0x49cb74,'forward');_0x5f15e0['isCollapsed']&&(_0x5a230b=_0x5f15e0['start']),_0x9cb199['isCollapsed']&&(_0x49cb74=_0x9cb199['end']),_0x4a0ca5([_0x1fe5ad['model']['createRange'](_0x5a230b,_0x49cb74)]);}),_0x332f8c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x49567b),_0x332f8c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x49567b)),_0x1fe5ad['plugins']['has']('ImageCaptionEditing')&&(_0x332f8c['enableCommand']('toggleImageCaption',(_0x76107,_0x3e9a49)=>{const _0x3d962a=_0x1fe5ad['plugins']['get']('ImageCaptionUtils');let _0x11204b=_0x44ae5c['getClosestSelectedImageElement'](_0x1fe5ad['model']['document']['selection']),_0x3c31ec=_0x3d962a['getCaptionFromImageModelElement'](_0x11204b);_0x1fe5ad['model']['change'](()=>{if(_0x3c31ec)return void _0x332f8c['markDeletion'](_0x1fe5ad['model']['createRangeOn'](_0x3c31ec));const _0x2fb3ca=_0x44ae5c['isBlockImage'](_0x11204b);_0x76107(_0x3e9a49),_0x11204b=_0x44ae5c['getClosestSelectedImageElement'](_0x1fe5ad['model']['document']['selection']),_0x3c31ec=_0x3d962a['getCaptionFromImageModelElement'](_0x11204b),_0x332f8c['markInsertion'](_0x1fe5ad['model']['createRangeOn'](_0x3c31ec),_0x2fb3ca?null:'imageCaption');});}),_0x332f8c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x49567b));const _0x2c31c0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f415b(_0x3079dd,_0x18e137){const _0x2bbfe1=_0x2c31c0['findIndex'](({type:_0x22b4e8,subType:_0x1f92c1})=>_0x3079dd['type']==_0x22b4e8&&_0x3079dd['subType']==_0x1f92c1),_0x4a9407=_0x2c31c0['findIndex'](({type:_0x1fbce8,subType:_0x9c28ca})=>_0x18e137['type']==_0x1fbce8&&_0x18e137['subType']==_0x9c28ca);if(_0x2bbfe1<0x0||_0x4a9407<0x0)return!0x1;const _0x3dea79=_0x3079dd['getFirstRange'](),_0x19e25a=_0x18e137['getFirstRange']();if((0x0==_0x2bbfe1||0x1==_0x2bbfe1)&&0x2==_0x4a9407&&_0x3dea79['isIntersecting'](_0x19e25a))return!0x0;if(0x2==_0x2bbfe1&&0x3==_0x4a9407){const _0x2d61c2=_0x332f8c['_findSuggestions'](_0x3dea79,'insertion')['filter'](({suggestion:_0x1609e7,meta:_0x50fa11})=>_0x50fa11['isOwn']&&'convertInlineImageToBlock'==_0x1609e7['subType']);if(_0x2d61c2['length']>0x1&&_0x19e25a['end']['isEqual'](_0x3dea79['start']))return!0x0;if(0x1==_0x2d61c2['length']&&(_0x3dea79['start']['isEqual'](_0x19e25a['end'])||_0x3dea79['end']['isEqual'](_0x19e25a['start'])))return!0x0;}if(0x3==_0x2bbfe1&&0x3==_0x4a9407&&_0x3dea79['start']['isBefore'](_0x19e25a['start'])){const _0x515541=_0x3dea79['end']['nodeAfter'],_0x442576=_0x19e25a['start']['nodeBefore'];return _0x44ae5c['isBlockImage'](_0x515541)&&_0x515541===_0x442576;}return!0x1;}function _0x49567b(_0x47f564,_0x51f702){return _0x4f415b(_0x47f564,_0x51f702)?[_0x47f564,_0x51f702]:_0x4f415b(_0x51f702,_0x47f564)?[_0x51f702,_0x47f564]:null;}_0x1fe5ad['plugins']['has']('ImageResize')&&(_0x332f8c['enableDefaultAttributesIntegration']('resizeImage'),_0x332f8c['registerBlockAttribute']('resizedWidth'),_0x332f8c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x11848c,'FORMAT_IMAGE_SIZE'))),_0x1fe5ad['plugins']['has']('ImageTextAlternativeEditing')&&(_0x332f8c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x332f8c['registerBlockAttribute']('alt')),_0x332f8c['descriptionFactory']['registerDescriptionCallback'](_0x4cf76c=>{if(!!_0x2c31c0['find'](({type:_0x61f726,subType:_0x260433})=>_0x4cf76c['type']==_0x61f726&&_0x4cf76c['subType']==_0x260433))return _0x4cf76c['previous']?{}:void 0x0;}),_0x332f8c['descriptionFactory']['registerDescriptionCallback'](_0xf8e668=>{if('insertion'==_0xf8e668['type']||'deletion'==_0xf8e668['type']){const _0x25f102=_0xf8e668['getContainedElement']();if(_0x25f102&&_0x25f102['is']('element','caption'))return{'type':'insertion'==_0xf8e668['type']?'addObject':'removeObject','element':_0x25f102,'quantity':0x1};}}),_0x332f8c['descriptionFactory']['registerDescriptionCallback'](_0x2fbe7d=>'formatBlock'==_0x2fbe7d['type']&&'convertInlineImageToBlock'==_0x2fbe7d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2fbe7d['type']&&'convertBlockImageToInline'==_0x2fbe7d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x332f8c['descriptionFactory']['registerDescriptionCallback'](_0x3cdc67=>{if('attribute'!=_0x3cdc67['type'])return;const {data:_0x518a4b}=_0x3cdc67;if(!_0x518a4b||'alt'!=_0x518a4b['key'])return;const _0x535cf0=_0x518a4b['newValue'];return _0x535cf0?{'type':'format','content':o(_0x11848c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x535cf0+'\x22')}:{'type':'format','content':o(_0x11848c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ca666=this['editor'],_0x1a8c43=_0x3ca666['locale'];_0x3ca666['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdfc703=>{if('formatBlock'!=_0xdfc703['type']&&'formatInline'!=_0xdfc703['type'])return;const {data:_0x46949b}=_0xdfc703;if(_0x46949b){if('imageTextAlternative'==_0x46949b['commandName']){const _0x110ac6=_0x46949b['commandParams'][0x0]['newValue'];return _0x110ac6?{'type':'format','content':o(_0x1a8c43,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x110ac6+'\x22')}:{'type':'format','content':o(_0x1a8c43,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x46949b['commandName']){const _0x336e8a=_0x46949b['commandParams'][0x0]['width'];return _0x336e8a?{'type':'format','content':o(_0x1a8c43,'*Set\x20image\x20width:*\x20%0',_0x336e8a)}:{'type':'format','content':o(_0x1a8c43,'*Reset\x20image\x20width*')};}}});}}class st extends _0x17f7ef{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3031e7=this['editor']['locale'],_0x365228=this['editor']['plugins']['get']('TrackChangesEditing');_0x365228['enableDefaultAttributesIntegration']('replaceImageSource'),_0x365228['registerBlockAttribute']('src'),_0x365228['descriptionFactory']['registerDescriptionCallback'](_0x59f932=>{if('attribute'!=_0x59f932['type'])return;const {data:_0x5b1112}=_0x59f932;return _0x5b1112&&'src'==_0x5b1112['key']?_0x5b1112['newValue']&&_0x5b1112['oldValue']?{'type':'format','content':o(_0x3031e7,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x12dde5=this['editor']['plugins']['get']('TrackChangesEditing');_0x12dde5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x12dde5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x12dde5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x12dde5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd59e8b=this['editor'],_0x16e510=_0xd59e8b['locale'];_0xd59e8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x269e4b=>{if('formatBlock'!=_0x269e4b['type']&&'formatInline'!=_0x269e4b['type'])return;const {data:_0x185e2f}=_0x269e4b;if(!_0x185e2f||'replaceImageSource'!=_0x185e2f['commandName'])return;return{'type':'format','content':o(_0x16e510,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x17f7ef{['afterInit'](){const _0x53078e=this['editor'];if(!_0x53078e['plugins']['has']('ImageStyleEditing'))return;const _0x35d91b=_0x53078e['plugins']['get']('TrackChangesEditing'),_0x309cd5=_0x53078e['plugins']['get']('ImageUtils'),_0xe6f067={};_0x35d91b['enableCommand']('imageStyle',(_0x3fd0ab,_0x3832b7)=>{const _0x4a0e42=_0x53078e['plugins']['get']('Users')['me'],_0x1ed86e=_0x53078e['commands']['get']('imageStyle');let _0x576a74=_0x309cd5['getClosestSelectedImageElement'](_0x53078e['model']['document']['selection']),_0x1da125=_0x53078e['model']['createRangeOn'](_0x576a74),_0x2f7820=_0x1ed86e['value'];if(_0x2f7820==_0x3832b7['value'])return;const _0xa20362={'commandName':'imageStyle','commandParams':[_0x3832b7],'formatGroupId':_0x5e29c1()};_0x53078e['model']['change'](()=>{if(_0x35d91b['getSuggestions']()['filter'](_0x12e8df=>_0x12e8df['isInContent']&&_0x4a0e42==_0x12e8df['author']&&('formatBlock'==_0x12e8df['type']||'formatInline'==_0x12e8df['type'])&&('imageStylePreApply'==_0x12e8df['subType']||'imageStylePostApply'==_0x12e8df['subType'])&&_0x12e8df['getFirstRange']()['isEqual'](_0x1da125))['forEach'](_0x15be38=>_0x35d91b['discardSuggestion'](_0x15be38['head'])),_0x576a74=_0x309cd5['getClosestSelectedImageElement'](_0x53078e['model']['document']['selection']),_0x1da125=_0x53078e['model']['createRangeOn'](_0x576a74),_0x1ed86e['refresh'](),_0x53078e['commands']['get']('imageTypeInline')['refresh'](),_0x53078e['commands']['get']('imageTypeBlock')['refresh'](),_0x2f7820=_0x1ed86e['value'],_0x2f7820!=_0x3832b7['value'])return _0x309cd5['isInlineImage'](_0x576a74)&&_0x1ed86e['shouldConvertImageType'](_0x3832b7['value'],_0x576a74)?(_0x3fd0ab({..._0x3832b7,'setImageSizes':!0x1}),_0x576a74=_0x309cd5['getClosestSelectedImageElement'](_0x53078e['model']['document']['selection']),void _0x35d91b['markBlockFormat'](_0x576a74,{..._0xa20362,'commandReversedParams':[{'value':_0x2f7820||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x309cd5['isBlockImage'](_0x576a74)?_0x35d91b['markBlockFormat'](_0x576a74,_0xa20362,[],'imageStylePostApply'):_0x35d91b['markInlineFormat'](_0x1da125,_0xa20362,'imageStylePostApply'));});});for(const _0x526170 of _0x53078e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xe6f067[_0x526170['name']]=_0x526170['title']['toLowerCase']();_0x35d91b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x35d91b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x35d91b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x35d91b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5a6ebd])=>{_0x309cd5['setImageNaturalSizeAttributes'](_0x5a6ebd['getContainedElement']());}),_0x35d91b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xb2cb6c,_0x3d4dee)=>{_0x35d91b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xb2cb6c,{'commandName':_0x3d4dee['commandName'],'commandParams':_0x3d4dee['commandReversedParams']});}),_0x35d91b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x967997,_0x1845cf){if(_0x4da03b(_0x967997,_0x1845cf))return[_0x967997,_0x1845cf];if(_0x4da03b(_0x1845cf,_0x967997))return[_0x1845cf,_0x967997];return null;});const _0x3283da=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4da03b(_0x54f8ec,_0x4b2ab7){const _0x4e750a=_0x3283da['findIndex'](({type:_0x8d4f05,subType:_0x2d8bac})=>_0x54f8ec['type']==_0x8d4f05&&_0x54f8ec['subType']==_0x2d8bac),_0xe2b314=_0x3283da['findIndex'](({type:_0xd2281c,subType:_0x30fad3})=>_0x4b2ab7['type']==_0xd2281c&&_0x4b2ab7['subType']==_0x30fad3);if(_0x4e750a<0x0||_0xe2b314<0x0)return!0x1;const _0x411cb8=_0x54f8ec['getFirstRange'](),_0x2ad615=_0x4b2ab7['getFirstRange']();if((0x0==_0x4e750a||0x1==_0x4e750a)&&0x2==_0xe2b314&&_0x411cb8['isIntersecting'](_0x2ad615))return!0x0;if(0x2==_0x4e750a&&0x3==_0xe2b314){const _0x2b9c38=_0x35d91b['_findSuggestions'](_0x411cb8,'insertion')['filter'](({suggestion:_0x308217,meta:_0x497385})=>_0x497385['isOwn']&&'convertInlineImageToBlock'==_0x308217['subType']);if(_0x2b9c38['length']>0x1&&_0x2ad615['end']['isEqual'](_0x411cb8['start']))return!0x0;if(0x1==_0x2b9c38['length']&&(_0x411cb8['start']['isEqual'](_0x2ad615['end'])||_0x411cb8['end']['isEqual'](_0x2ad615['start'])))return!0x0;}if(0x3==_0x4e750a&&0x3==_0xe2b314&&_0x411cb8['start']['isBefore'](_0x2ad615['start'])){const _0x344e5a=_0x411cb8['end']['nodeAfter'],_0x37ee25=_0x2ad615['start']['nodeBefore'];return _0x309cd5['isBlockImage'](_0x344e5a)&&_0x344e5a===_0x37ee25;}return!0x1;}_0x53078e['model']['document']['registerPostFixer'](()=>{let _0x5bf600=!0x1;const _0x4c872d=Array['from'](_0x53078e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39f3ae,data:_0x18a9d5}of _0x4c872d){const {group:_0x4e040,type:_0x391388,subType:_0xa3b082,id:_0x9a04e8}=_0x35d91b['_splitMarkerName'](_0x39f3ae);if('suggestion'==_0x4e040&&_0x35d91b['hasSuggestion'](_0x9a04e8)){if('formatBlock'==_0x391388&&('imageStylePreApply'==_0xa3b082||'imageStylePostApply'==_0xa3b082)){const _0x1667f7=_0x35d91b['getSuggestion'](_0x9a04e8);if(_0x18a9d5['newRange']){const _0x5755e9=_0x1667f7['getFirstRange']()['getContainedElement']();if(_0x309cd5['isBlockImage'](_0x5755e9))continue;_0x35d91b['discardSuggestion'](_0x1667f7),_0x5bf600=!0x0;}}if('insertion'==_0x391388&&'imageCaption'==_0xa3b082&&!_0x18a9d5['newRange']){const _0x389aa5=_0x35d91b['getSuggestion'](_0x9a04e8);_0x389aa5['next']&&_0x389aa5['next']['isInContent']&&(_0x35d91b['discardSuggestion'](_0x389aa5['next']),_0x5bf600=!0x0);}}}return _0x5bf600;}),this['_registerLegacyDescription'](_0xe6f067);}['_registerLegacyDescription'](_0x52fe08){const _0x594771=this['editor'],_0x54f5ad=_0x594771['locale'];_0x594771['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27cee4=>{if('formatBlock'!=_0x27cee4['type']&&'formatInline'!=_0x27cee4['type'])return;const {data:_0x1f2146}=_0x27cee4;if(!_0x1f2146||'imageStyle'!=_0x1f2146['commandName'])return;const _0x3fcd19=_0x1f2146['commandParams'][0x0]['value'];return _0x1e7a6d('side'===_0x3fcd19?o(_0x54f5ad,'FORMAT_SIDE_IMAGE'):_0x52fe08[_0x3fcd19]||_0x3fcd19);function _0x1e7a6d(_0x4e399d){return{'type':'format','content':o(_0x54f5ad,'*Format:*\x20%0',_0x4e399d)};}});}}class ot extends _0x17f7ef{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x18ce37){super(_0x18ce37),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xc13ce9=this['editor'],_0x44821c=_0xc13ce9['commands']['get']('importWord'),_0x5eb9c0=_0xc13ce9['commands']['get']('trackChanges');_0x44821c&&(_0x44821c['on']('execute',(_0x544bde,[,_0x35ac0c])=>{this['_trackChangesValueDuringImport']=_0x5eb9c0['value'],_0x35ac0c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x44821c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x44821c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5eb9c0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xc13ce9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2223e3,_0x1a3819){const {suggestions:_0x24c772}=_0x1a3819,_0x4c72ec=this['editor']['commands']['get']('trackChanges'),_0x717abf=_0x4c72ec['value'];this['_trackChangesValueDuringImport']!==_0x717abf&&(_0x4c72ec['execute'](),this['_trackChangesExecuted']=!0x0),_0x24c772&&_0x24c772['forEach'](({id:_0x57705a,type:_0x3d86ed,author:_0x12bb7a,created_at:_0xa8c68e})=>{const _0x5f344e={'id':_0x57705a,'type':_0x3d86ed,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x12bb7a,'createdAt':_0xa8c68e?new Date(_0xa8c68e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5f344e);});}}class rt extends _0x17f7ef{['afterInit'](){const _0xafdef8=this['editor'],_0x54ac6e=_0xafdef8['plugins']['get']('TrackChangesEditing');if(_0xafdef8['plugins']['has']('IndentEditing')&&(_0x54ac6e['enableCommand']('indent'),_0x54ac6e['enableCommand']('outdent')),_0xafdef8['plugins']['has']('IndentBlock')){for(const _0x35fdbe of['indentBlock','outdentBlock'])_0x54ac6e['enableDefaultAttributesIntegration'](_0x35fdbe);}const _0x2c4fdf=_0xafdef8['locale'];_0x54ac6e['registerBlockAttribute']('blockIndent'),_0x54ac6e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2c4fdf,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8691d1=this['editor'],_0xc6f4ef=_0x8691d1['locale'],_0x5bf6a7=_0x8691d1['plugins']['get']('TrackChangesEditing');_0x5bf6a7['descriptionFactory']['registerDescriptionCallback'](_0x1298a7=>{if('formatBlock'!=_0x1298a7['type'])return;const {data:_0xdb67a7}=_0x1298a7;if(!_0xdb67a7)return;if('indentBlock'!=_0xdb67a7['commandName']&&'outdentBlock'!=_0xdb67a7['commandName'])return;const _0x4c9cd8=_0x1298a7['getItems']()[0x0],_0x8435ff=_0x5bf6a7['descriptionFactory']['getItemLabel'](_0x4c9cd8);return'indentBlock'==_0xdb67a7['commandName']?{'type':'format','content':o(_0xc6f4ef,'*Indent:*\x20%0',_0x8435ff)}:'outdentBlock'==_0xdb67a7['commandName']?{'type':'format','content':o(_0xc6f4ef,'*Outdent:*\x20%0',_0x8435ff)}:void 0x0;});}}class at extends _0x17f7ef{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x17f7ef{['afterInit'](){const _0x104a55=this['editor'];if(!_0x104a55['plugins']['has']('LinkEditing'))return;const _0x549791=_0x104a55['plugins']['get']('TrackChangesEditing'),_0x47b8ec=_0x104a55['commands']['get']('link');_0x549791['enableDefaultAttributesIntegration']('link'),_0x549791['enableDefaultAttributesIntegration']('unlink'),_0x549791['registerInlineAttribute']('linkHref');for(const _0x489db9 of _0x47b8ec['manualDecorators'])_0x549791['registerInlineAttribute'](_0x489db9['id']),_0x549791['descriptionFactory']['registerAttributeLabel'](_0x489db9['id'],'link\x20('+_0x489db9['label']['toLowerCase']()+')');_0x549791['descriptionFactory']['registerDescriptionCallback'](_0xc2f4f7=>{if('attribute'!=_0xc2f4f7['type'])return;const {data:_0x8573dc}=_0xc2f4f7;if(!_0x8573dc||'linkHref'!=_0x8573dc['key'])return;const _0x48ed76=_0x8573dc['newValue'],_0x21729f=_0x104a55['locale'];return{'type':'format','content':null==_0x48ed76?o(_0x21729f,'*Remove\x20link*'):o(_0x21729f,'*Set\x20link:*\x20%0','\x22'+_0x48ed76+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a888f=this['editor'],_0x3eeb01=_0x2a888f['locale'];_0x2a888f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3520cc=>{if('formatInline'!=_0x3520cc['type'])return;const {data:_0x460d5e}=_0x3520cc;if(_0x460d5e){if('link'==_0x460d5e['commandName']){const _0x5e6e14=_0x460d5e['commandParams'][0x0];return{'type':'format','content':o(_0x3eeb01,'*Set\x20link:*\x20%0','\x22'+_0x5e6e14+'\x22')};}return'unlink'==_0x460d5e['commandName']?{'type':'format','content':o(_0x3eeb01,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x17f7ef{['afterInit'](){const _0x10a92d=this['editor'],_0x5963c4=_0x10a92d['locale'];if(!_0x10a92d['plugins']['has']('LegacyListEditing'))return;const _0xc65f14=_0x10a92d['plugins']['get']('TrackChangesEditing'),_0x163d49=_0x10a92d['plugins']['has']('LegacyTodoListEditing');function _0xe5f008(_0x28c077){return()=>{const _0x95754b=_0x10a92d['model']['document']['selection'],_0x4d10cd=_0x10a92d['commands']['get'](_0x28c077);if(_0x4d10cd['value'])return void _0x10a92d['execute']('paragraph',{});const _0x4e17b3=_0x28c077['slice'](0x0,-0x4),_0x1ac6e8=function(_0x1d4ffb,_0x11b3ec,_0x3697a0){let _0xc165af=Array['from'](_0x1d4ffb)['filter'](_0x44475a=>function(_0x5e9abb,_0x39da4c){return _0x39da4c['checkChild'](_0x5e9abb['parent'],'listItem')&&!_0x39da4c['isObject'](_0x5e9abb);}(_0x44475a,_0x3697a0));_0xc165af=_0xc165af['filter'](_0x99050d=>!_0x99050d['is']('element','listItem')||_0x99050d['getAttribute']('listType')!=_0x11b3ec);const _0x140cf5=new Set();for(const _0x2a9dc6 of _0xc165af)_0x2a9dc6['is']('element','listItem')?_0x140cf5['add'](me(_0x2a9dc6)):_0x140cf5['add'](_0x2a9dc6);return Array['from'](_0x140cf5);}(_0x95754b['getSelectedBlocks'](),_0x4e17b3,_0x10a92d['model']['schema']);_0x10a92d['model']['change'](()=>{for(const _0x483dc2 of _0x1ac6e8)_0xc65f14['markBlockFormat'](_0x483dc2,{'commandName':_0x28c077,'commandParams':[{'forceValue':!_0x4d10cd['value']}],'formatGroupId':'blockName'},fe(_0x483dc2));});};}function _0x196b0d(_0xbc5eaa){return()=>{const _0x2499ff=function(_0x350654){let _0x52e3d8=Array['from'](_0x350654);const _0x3ece10=_0x52e3d8['findIndex'](_0x193ee8=>'listItem'!=_0x193ee8['name']);return _0x3ece10>-0x1&&(_0x52e3d8=_0x52e3d8['slice'](0x0,_0x3ece10)),_0x52e3d8;}(_0x10a92d['model']['document']['selection']['getSelectedBlocks']()),_0x530a59=_0x10a92d['model']['createRange'](_0x10a92d['model']['createPositionAt'](_0x2499ff[0x0],'before'),_0x10a92d['model']['createPositionAt'](_0x2499ff[_0x2499ff['length']-0x1],'end'));_0x10a92d['model']['change'](()=>{_0xc65f14['markBlockFormat'](_0x530a59,{'commandName':_0xbc5eaa,'commandParams':[],'formatGroupId':'listIndent'},function(_0x342f28){const _0x35813e=new Set();for(const _0x1c9491 of _0x342f28){let _0x541dc8=_0x1c9491['nextSibling'];for(;_0x541dc8&&_0x541dc8['getAttribute']('listIndent')>_0x1c9491['getAttribute']('listIndent');)_0x35813e['add'](_0x541dc8),_0x541dc8=_0x541dc8['nextSibling'];}return Array['from'](_0x35813e);}(_0x2499ff));});};}_0xc65f14['enableCommand']('numberedList',_0xe5f008('numberedList')),_0xc65f14['enableCommand']('bulletedList',_0xe5f008('bulletedList')),_0x163d49&&_0xc65f14['enableCommand']('todoList',_0xe5f008('todoList')),_0xc65f14['enableCommand']('indentList',_0x196b0d('indentList')),_0xc65f14['enableCommand']('outdentList',_0x196b0d('outdentList')),_0x163d49&&_0xc65f14['enableCommand']('checkTodoList',()=>{const _0x5695d6=_0x10a92d['commands']['get']('checkTodoList'),_0xb08794=Array['from'](_0x5695d6['_selectedElements']);_0xb08794['filter'](_0x41b564=>_0x41b564['getAttribute']('todoListChecked')!=_0x5695d6['value']),_0x10a92d['model']['change'](()=>{for(const _0x57ad9b of _0xb08794)_0xc65f14['markBlockFormat'](_0x57ad9b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5695d6['value']}]});});}),_0xc65f14['descriptionFactory']['registerElementLabel']('listItem',_0x4e1797=>o(_0x5963c4,'ELEMENT_LIST_ITEM',_0x4e1797)),_0xc65f14['descriptionFactory']['registerDescriptionCallback'](_0x5eb355=>{if('formatBlock'!=_0x5eb355['type']&&'formatInline'!=_0x5eb355['type'])return;const {data:_0x212b39}=_0x5eb355;if(_0x212b39){if('numberedList'==_0x212b39['commandName']||'bulletedList'==_0x212b39['commandName']||'todoList'==_0x212b39['commandName'])switch(_0x212b39['commandName']['replace']('List','')){case'bulleted':return _0x1bfa18(o(_0x5963c4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1bfa18(o(_0x5963c4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1bfa18(o(_0x5963c4,'ELEMENT_TODO_LIST'));}if('indentList'==_0x212b39['commandName'])return{'type':'format','content':o(_0x5963c4,'*Indent:*\x20%0',o(_0x5963c4,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x212b39['commandName'])return{'type':'format','content':o(_0x5963c4,'*Outdent:*\x20%0',o(_0x5963c4,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x212b39['commandName'])return _0x212b39['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5963c4,'*Check\x20item*')}:{'type':'format','content':o(_0x5963c4,'*Uncheck\x20item*')};}function _0x1bfa18(_0x4d97d6){return{'type':'format','content':o(_0x5963c4,'*Change\x20to:*\x20%0',_0x4d97d6)};}});}}function me(_0x41e29b){const _0x4cd599=_0x41e29b['getAttribute']('listIndent');if(0x0==_0x4cd599)return _0x41e29b;let _0x3262cf=_0x41e29b;for(;_0x41e29b['previousSibling']&&_0x41e29b['previousSibling']['is']('element','listItem');){const _0x3a8fba=_0x41e29b['previousSibling']['getAttribute']('listIndent');if(_0x3a8fba==_0x4cd599)_0x3262cf=_0x41e29b['previousSibling'];else{if(_0x3a8fba<_0x4cd599)break;}_0x41e29b=_0x41e29b['previousSibling'];}return _0x3262cf;}function fe(_0x86d1ea){const _0x2876f7=[];if(_0x86d1ea['is']('element','listItem')&&_0x86d1ea['getAttribute']('listIndent')>0x0){let _0x59a915=_0x86d1ea['nextSibling'];for(;_0x59a915&&'listItem'==_0x59a915['name']&&_0x59a915['getAttribute']('listIndent')==_0x86d1ea['getAttribute']('listIndent');)_0x2876f7['push'](_0x59a915),_0x59a915=_0x59a915['nextSibling'];}return _0x2876f7;}class K extends _0x17f7ef{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x152371=this['editor']['config']['get']('list.properties'),_0x30a8d0=this['editor']['plugins']['get']('TrackChangesEditing');_0x152371['styles']&&_0x30a8d0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x152371['reversed']&&_0x30a8d0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x152371['startIndex']&&_0x30a8d0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x30a8d0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5614f1,_0x19276d={}){const _0x298c82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x303005=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x298c82['markMultiRangeBlockFormat'](_0x303005,{'commandName':'listStyle','commandParams':[{'type':_0x19276d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x351427,_0x5056ce={}){const _0x42ab51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54a81f=this['_getSuggestionBlocks'](_0x2e0b9e=>_0x2e0b9e['is']('element','listItem')&&'numbered'===_0x2e0b9e['getAttribute']('listType'));if(_0x54a81f['length']<0x1)return;const _0x45c237=_0x54a81f['map'](_0x80c737=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x80c737,'before'),this['editor']['model']['createPositionAt'](_0x80c737,0x0)));this['editor']['model']['change'](()=>{_0x42ab51['markMultiRangeBlockFormat'](_0x45c237,{'commandName':'listReversed','commandParams':[{'reversed':_0x5056ce['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x250222,_0x52e750={}){const _0x2d908d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f88aa=this['_getSuggestionBlocks'](_0x194291=>_0x194291['is']('element','listItem')&&'numbered'===_0x194291['getAttribute']('listType'));if(_0x2f88aa['length']<0x1)return;const _0x557e9d=_0x2f88aa['map'](_0x3aa578=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3aa578,'before'),this['editor']['model']['createPositionAt'](_0x3aa578,0x0)));this['editor']['model']['change'](()=>{_0x2d908d['markMultiRangeBlockFormat'](_0x557e9d,{'commandName':'listStart','commandParams':[{'startIndex':_0x52e750['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x105195){if('formatBlock'!=_0x105195['type']&&'formatInline'!=_0x105195['type'])return;const _0x1f88b7=this['editor']['locale'],{data:_0x3e78ae}=_0x105195;if(!_0x3e78ae)return;let _0x13eb75,_0x76b90f;switch(_0x3e78ae['commandName']){case'listStyle':_0x13eb75='*Change\x20to:*\x20%0',_0x76b90f={'type':'format','content':o(_0x1f88b7,_0x13eb75,o(_0x1f88b7,this['_getTranslationKeyForListStyle'](_0x3e78ae['commandParams'][0x0]['type'])))};break;case'listReversed':_0x13eb75=_0x3e78ae['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x76b90f={'type':'format','content':o(_0x1f88b7,_0x13eb75)};break;case'listStart':_0x13eb75='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x76b90f={'type':'format','content':o(_0x1f88b7,_0x13eb75,_0x3e78ae['commandParams'][0x0]['startIndex'])};}return _0x76b90f;}['_getSuggestionBlocksForListStyle'](){const _0x251f4f=this['editor']['plugins']['get']('LegacyListUtils');let _0x1af386=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1af386[0x0]?.['is']('element','listItem')&&_0x1af386['unshift'](..._0x251f4f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1af386[_0x1af386['length']-0x1]?.['is']('element','listItem')&&_0x1af386['push'](..._0x251f4f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1af386=[...new Set(_0x1af386)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1af386=_0x1af386['filter'](_0x1c43cb=>_0x1c43cb['is']('element','listItem'))),_0x1af386;}['_getSuggestionBlocks'](_0xb1c62f){const _0x368380=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b02fe=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xb1c62f)['map'](_0xa40e81=>{const _0x4cff2d=this['editor']['model']['createPositionAt'](_0xa40e81,0x0);return[..._0x368380['getSiblingNodes'](_0x4cff2d,'backward'),..._0x368380['getSiblingNodes'](_0x4cff2d,'forward')];})['flat']();return _0x5b02fe=[...new Set(_0x5b02fe)],_0x5b02fe;}['_getTranslationKeyForListStyle'](_0x3ba19d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3ba19d)||'default')['toUpperCase']()+'_LIST_'+_0x3ba19d['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x17f7ef{['afterInit'](){const _0x4db56b=this['editor'];if(!_0x4db56b['plugins']['has']('MediaEmbedEditing'))return;const _0xd2d11d=_0x4db56b['plugins']['get']('TrackChangesEditing'),_0x2db0ba=_0x4db56b['locale'];_0xd2d11d['enableCommand']('mediaEmbed'),_0xd2d11d['descriptionFactory']['registerElementLabel']('media',_0x490b74=>o(_0x2db0ba,'ELEMENT_MEDIA',_0x490b74)),_0x4db56b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1ebf52,{writer:_0x306e7c,options:_0x52a33b})=>{if(_0x52a33b['showSuggestionHighlights'])return _0x306e7c['createEmptyElement']('div');},'converterPriority':'high'}),_0x4db56b['data']['downcastDispatcher']['on']('attribute:url:media',(_0xf8f191,_0x57469b,_0x2965d7)=>{_0x2965d7['options']['showSuggestionHighlights']&&_0xf8f191['stop']();},{'priority':'high'});}}class gt extends _0x17f7ef{['afterInit'](){const _0x459254=this['editor'];_0x459254['plugins']['has']('MentionEditing')&&_0x459254['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x17f7ef{['afterInit'](){const _0x4b272b=this['editor'],_0x55a63a=_0x4b272b['plugins']['get']('TrackChangesEditing');_0x4b272b['plugins']['has']('MultiLevelList')&&(_0x55a63a['enableDefaultAttributesIntegration']('multiLevelList'),_0x55a63a['registerBlockAttribute']('listMarkerStyle'),_0x55a63a['descriptionFactory']['registerDescriptionCallback'](_0x2e6416=>this['handleDescriptions'](_0x2e6416)));}['handleDescriptions'](_0x2c304d){const _0x38ffa6=this['editor']['locale'],{data:_0x25c14c}=_0x2c304d,_0x3e16ce={'type':'format','content':''};if(_0x25c14c&&'listMarkerStyle'==_0x25c14c['key']){if(!_0x25c14c['oldValue'])return{'type':'format','content':o(_0x38ffa6,'*Set\x20format:*\x20%0',o(_0x38ffa6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x25c14c['newValue']+')'};if(!_0x25c14c['newValue']){let _0x11f333=_0x2c304d['head'];for(;_0x11f333;){if(_0x11f333['data']&&'listType'==_0x11f333['data']['key']&&_0x11f333['data']['newValue'])return _0x3e16ce;_0x11f333=_0x11f333['next'];}return{'type':'format','content':o(_0x38ffa6,'*Remove\x20format:*\x20%0',o(_0x38ffa6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x25c14c['oldValue']+')'};}}}}class mt extends _0x17f7ef{['afterInit'](){const _0x229f51=this['editor'];if(!_0x229f51['plugins']['has']('PageBreakEditing'))return;_0x229f51['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x26e968=_0x229f51['plugins']['get']('TrackChangesEditing'),_0x47c0dc=_0x229f51['locale'];_0x26e968['descriptionFactory']['registerElementLabel']('pageBreak',_0x1359ae=>o(_0x47c0dc,'ELEMENT_PAGE_BREAK',_0x1359ae));}}class dt extends _0x17f7ef{['afterInit'](){const _0x2286a0=this['editor'];if(!_0x2286a0['plugins']['has']('Paragraph'))return;const _0x634503=_0x2286a0['locale'],_0x3524bd=_0x2286a0['plugins']['get']('TrackChangesEditing');_0x3524bd['descriptionFactory']['registerElementLabel']('paragraph',_0x58f3df=>o(_0x634503,'ELEMENT_PARAGRAPH',_0x58f3df)),_0x3524bd['enableDefaultAttributesIntegration']('paragraph'),_0x3524bd['enableCommand']('insertParagraph'),_0x2286a0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2286a0),{'priority':'highest'}),_0x2286a0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41034c,_0xa3b3b7,_0x46cb61)=>{_0x46cb61['options']['showSuggestionHighlights']&&nr(_0x2286a0,{'showActiveMarker':!0x1})(_0x41034c,_0xa3b3b7,_0x46cb61);},{'priority':'highest'});const _0x572059=_0x3524bd['descriptionFactory'];_0x572059['registerDescriptionCallback'](_0x350970=>{if('insertion'!==_0x350970['type'])return;const {start:_0x19c34a,end:_0x43dc75}=_0x350970['getFirstRange']();if(!_0x19c34a['isTouching'](_0x43dc75)||!_0x19c34a['nodeAfter'])return;const _0x182218=_0x2286a0['model']['schema'],_0x169ebe=_0x19c34a['nodeAfter'];return _0x182218['isBlock'](_0x169ebe)&&!_0x182218['isLimit'](_0x169ebe)&&_0x182218['checkChild'](_0x169ebe,'$text')?{'type':'insertion','content':o(_0x634503,'*Insert:*\x20%0',_0x572059['getItemLabel'](_0x169ebe,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11b764=this['editor'],_0x4bc6bb=_0x11b764['locale'];_0x11b764['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13b188=>{if('formatBlock'!=_0x13b188['type'])return;const {data:_0x5a2ed8}=_0x13b188;return _0x5a2ed8&&'paragraph'==_0x5a2ed8['commandName']?{'type':'format','content':o(_0x4bc6bb,'*Change\x20to:*\x20%0',o(_0x4bc6bb,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2be3f5,{showActiveMarker:_0x31322c=!0x0}={}){return(_0x7e675f,_0xc1542,_0x4f0b23)=>{const _0x219133=_0x2be3f5['plugins']['get']('TrackChangesEditing'),_0x2250f3=_0xc1542['markerRange']['start'],_0x547939=_0xc1542['markerRange']['end'],_0x4858bf=_0x2be3f5['model']['schema'];if(!_0x2250f3['isTouching'](_0x547939)||!_0x2250f3['nodeAfter'])return;const _0x20dd9d=_0x2250f3['nodeAfter'];if(_0x4858bf['isBlock'](_0x20dd9d)&&!_0x4858bf['isLimit'](_0x20dd9d)&&_0x4858bf['checkChild'](_0x20dd9d,'$text')){if(!_0x4f0b23['consumable']['consume'](_0xc1542['markerRange'],_0x7e675f['name']))return;const _0x3134dc=_0x4f0b23['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x3c7bf9=_0x4f0b23['mapper']['toViewPosition'](_0x547939);_0x31322c&&_0x219133['activeMarkers']['includes'](_0xc1542['markerName'])&&_0x4f0b23['writer']['addClass']('ck-suggestion-marker--active',_0x3134dc),_0x4f0b23['writer']['insert'](_0x3c7bf9,_0x3134dc),_0x4f0b23['mapper']['bindElementToMarker'](_0x3134dc,_0xc1542['markerName']);}};}class pt extends _0x17f7ef{['afterInit'](){const _0x663ca4=this['editor'];if(!_0x663ca4['plugins']['has']('RemoveFormatEditing'))return;_0x663ca4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50c227=this['editor'];_0x50c227['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3270c4=>{if('formatBlock'!=_0x3270c4['type']&&'formatInline'!=_0x3270c4['type'])return;const {data:_0x5b09a8}=_0x3270c4;return _0x5b09a8&&'removeFormat'==_0x5b09a8['commandName']?{'type':'format','content':o(_0x50c227['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x17f7ef{['afterInit'](){const _0x5db8eb=this['editor'];if(!_0x5db8eb['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x38a39b=_0x5db8eb['plugins']['get']('TrackChangesEditing');_0x38a39b['enableCommand']('goToPreviousRestrictedEditingException'),_0x38a39b['enableCommand']('goToNextRestrictedEditingException');const _0x160ead=_0x5db8eb['plugins']['get']('RestrictedEditingModeEditing');_0x160ead['enableCommand']('trackChanges'),_0x160ead['enableCommand']('acceptSuggestion'),_0x160ead['enableCommand']('discardSuggestion'),_0x160ead['enableCommand']('acceptAllSuggestions'),_0x160ead['enableCommand']('discardAllSuggestions'),_0x160ead['enableCommand']('acceptSelectedSuggestions'),_0x160ead['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x17f7ef{static get['requires'](){return[_0x322827];}['init'](){const _0x712048=this['editor'],_0x2ebd2a=_0x712048['plugins']['get']('TrackChangesEditing');_0x2ebd2a['enableCommand']('shiftEnter'),_0x712048['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x712048),{'priority':'high'}),_0x712048['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x712048),{'priority':'high'}),_0x712048['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x52eafa,_0x5df70f,_0x1f81a7)=>{_0x1f81a7['options']['showSuggestionHighlights']&&de(_0x712048,{'showActiveMarker':!0x1})(_0x52eafa,_0x5df70f,_0x1f81a7);}),_0x2ebd2a['descriptionFactory']['registerElementLabel']('softBreak',_0x8c11ac=>o(_0x712048['locale'],'ELEMENT_LINE_BREAK',_0x8c11ac));}}function de(_0x37d561,{showActiveMarker:_0x2e7e06=!0x0}={}){return(_0x28e367,_0x2ffd79,_0x43fe06)=>{const _0x5cc806=_0x37d561['plugins']['get']('TrackChangesEditing');if(!_0x43fe06['consumable']['test'](_0x2ffd79['markerRange'],_0x28e367['name']))return;const _0x59173e=_0x37d561['model'];for(const _0x276955 of _0x2ffd79['markerRange']['getItems']()){if(!_0x276955['is']('element','softBreak'))continue;const _0xfcc26d='deletion'==_0x2ffd79['markerName']['split'](':')[0x1]?'merge':'split',_0x206706=_0x43fe06['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xfcc26d}),_0x52381c=_0x43fe06['mapper']['toViewPosition'](_0x59173e['createPositionBefore'](_0x276955));_0x2e7e06&&_0x5cc806['activeMarkers']['includes'](_0x2ffd79['markerName'])&&_0x43fe06['writer']['addClass']('ck-suggestion-marker--active',_0x206706),_0x43fe06['writer']['insert'](_0x52381c,_0x206706),_0x43fe06['mapper']['bindElementToMarker'](_0x206706,_0x2ffd79['markerName']);}};}class wt extends _0x17f7ef{['afterInit'](){const _0x449cc5=this['editor'],_0x79b847=_0x449cc5['model'],_0x26349d=_0x449cc5['locale'];if(!_0x449cc5['plugins']['has']('StandardEditingModeEditing'))return;const _0x20bfd7=_0x449cc5['plugins']['get']('TrackChangesEditing'),_0x2f91ad='restrictedEditingException',_0x21112c=_0x449cc5['commands']['get'](_0x2f91ad);_0x20bfd7['enableCommand'](_0x2f91ad,(_0x5bbeff,_0x2846c9={})=>{const _0x5d92d8=_0x79b847['document']['selection'];if(_0x5d92d8['isCollapsed'])return void _0x5bbeff(_0x2846c9);const _0x3b6d71=void 0x0!==_0x2846c9['forceValue']?_0x2846c9['forceValue']:!_0x21112c['value'];_0x79b847['change'](()=>{const _0x251aa6=Array['from'](_0x5d92d8['getRanges']());for(const _0xbc85c of _0x251aa6){const _0x4127da=_0x3b6d71?[_0xbc85c]:io(_0x2f91ad,_0xbc85c,_0x79b847);for(const _0x26288d of _0x4127da)_0x20bfd7['markInlineFormat'](_0x26288d,{'commandName':_0x2f91ad,'commandParams':[{'forceValue':_0x3b6d71}]});}});}),_0x20bfd7['descriptionFactory']['registerDescriptionCallback'](_0x3e638a=>{if('formatBlock'!=_0x3e638a['type']&&'formatInline'!=_0x3e638a['type'])return;const {data:_0x168bc3}=_0x3e638a;return _0x168bc3&&_0x168bc3['commandName']==_0x2f91ad?_0x168bc3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26349d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x26349d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x17f7ef{['afterInit'](){const _0x55fbae=this['editor'];if(!_0x55fbae['plugins']['has']('Style')||!_0x55fbae['plugins']['has']('DataSchema'))return;const _0x1dc09a=_0x55fbae['plugins']['get']('TrackChangesEditing'),_0x36f06d=_0x55fbae['locale'],_0x758e50=_0x55fbae['config']['get']('style')||{},_0x520df3=_0x55fbae['plugins']['get']('GeneralHtmlSupport'),_0x43b58a=_0x55fbae['plugins']['get']('StyleUtils')['normalizeConfig'](_0x55fbae['plugins']['get']('DataSchema'),_0x758e50['definitions']);_0x1dc09a['enableDefaultAttributesIntegration']('style');const _0x1cb63b=new Set();for(const _0x1446ff of _0x43b58a['block']){const _0x5a3e00=_0x520df3['getGhsAttributeNameForElement'](_0x1446ff['element']);_0x1cb63b['add'](_0x5a3e00);}const _0x16c8cb=new Set();for(const _0x13a136 of _0x43b58a['inline']){const _0x32128a=_0x520df3['getGhsAttributeNameForElement'](_0x13a136['element']);_0x16c8cb['add'](_0x32128a);for(const _0x1f5260 of _0x13a136['ghsAttributes'])_0x16c8cb['add'](_0x1f5260);}for(const _0x1cd825 of _0x1cb63b)_0x1dc09a['registerBlockAttribute'](_0x1cd825),_0x1dc09a['descriptionFactory']['registerAttributeLabel'](_0x1cd825,o(_0x36f06d,'FORMAT_STYLE'));for(const _0x3b77d3 of _0x16c8cb)_0x1dc09a['registerInlineAttribute'](_0x3b77d3),_0x1dc09a['descriptionFactory']['registerAttributeLabel'](_0x3b77d3,o(_0x36f06d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x498f54=this['editor'],_0x30b80b=_0x498f54['locale'];_0x498f54['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eb53f=>{if('formatBlock'!=_0x2eb53f['type']&&'formatInline'!=_0x2eb53f['type'])return;const {data:_0x44ab62}=_0x2eb53f;return _0x44ab62&&'style'===_0x44ab62['commandName']?_0x44ab62['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30b80b,'*Set\x20format:*\x20%0',_0x44ab62['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x30b80b,'*Remove\x20format:*\x20%0',_0x44ab62['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x17f7ef{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3f300f){super(_0x3f300f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1fd9df=this['editor'],_0x88b81=_0x1fd9df['model']['document']['selection'];if(!_0x1fd9df['plugins']['has']('TableEditing'))return;const _0x478cc8=_0x1fd9df['locale'],_0x70f5ba=_0x1fd9df['plugins']['get']('TrackChangesEditing'),_0x4c3aa3=_0x1fd9df['plugins']['get']('TableUtils');_0x70f5ba['descriptionFactory']['registerElementLabel']('table',_0x1af9b8=>o(_0x478cc8,'ELEMENT_TABLE',_0x1af9b8)),this['_setupColumnsRowsFixing'](),_0x70f5ba['enableCommand']('insertTable'),_0x70f5ba['enableCommand']('selectTableRow'),_0x70f5ba['enableCommand']('selectTableColumn');for(const _0x5bb78e of['insertTableRowAbove','insertTableRowBelow']){const _0x284b90=_0x1fd9df['commands']['get'](_0x5bb78e);_0x70f5ba['enableCommand'](_0x5bb78e,_0x489d78=>{_0x1fd9df['model']['change'](_0x23bdc5=>{_0x489d78();const _0xddb81b='above'===_0x284b90['order'],_0x4cbcb8=_0x4c3aa3['getSelectionAffectedTableCells'](_0x88b81),_0x5a67a0=_0x4c3aa3['getRowIndexes'](_0x4cbcb8),_0x55a50a=_0xddb81b?_0x5a67a0['first']-0x1:_0x5a67a0['last']+0x1,_0x4898ab=_0x4cbcb8[0x0]['findAncestor']('table'),_0x1cea72=_0x4c3aa3['createTableWalker'](_0x4898ab,{'startRow':_0x55a50a,'endRow':_0x55a50a}),_0x37408c=Array['from'](_0x1cea72)['map'](_0x4f1f98=>_0x23bdc5['createRangeOn'](_0x4f1f98['cell']));_0x70f5ba['markMultiRangeInsertion'](_0x37408c,'tableRow');});});}for(const _0x1b451a of['insertTableColumnLeft','insertTableColumnRight']){const _0x4384fe=_0x1fd9df['commands']['get'](_0x1b451a);_0x70f5ba['enableCommand'](_0x1b451a,_0x4acf75=>{_0x1fd9df['model']['change'](_0x1395d6=>{_0x4acf75();const _0x3371fd='left'===_0x4384fe['order'],_0x22c0d6=_0x4c3aa3['getSelectionAffectedTableCells'](_0x88b81),_0x291669=_0x4c3aa3['getColumnIndexes'](_0x22c0d6),_0x549afc=_0x3371fd?_0x291669['first']-0x1:_0x291669['last']+0x1,_0x5d0878=_0x22c0d6[0x0]['findAncestor']('table'),_0x1272fb=_0x4c3aa3['createTableWalker'](_0x5d0878,{'startRow':0x0,'column':_0x549afc,'includeAllSlots':!0x1}),_0x189338=Array['from'](_0x1272fb)['map'](_0x17c8a9=>_0x1395d6['createRangeOn'](_0x17c8a9['cell']));_0x70f5ba['markMultiRangeInsertion'](_0x189338,'tableColumn');});});}for(const _0x4b9c51 of['removeTableRow','removeTableColumn']){const _0x21210c=_0x4b9c51['substr'](0xb),_0x4592a3=_0x21210c['toLowerCase'](),_0xde103c=_0x4592a3['substr'](0x0,0x3)+'span',_0x276968='table'+_0x21210c,_0x15dfa9='min'+_0x21210c,_0x2cd036='max'+_0x21210c;_0x70f5ba['enableCommand'](_0x4b9c51,()=>{_0x1fd9df['model']['change'](_0x4110f4=>{const _0x600ca7=_0x4c3aa3['getSelectionAffectedTableCells'](_0x88b81),_0x22e7e3=_0x600ca7[0x0]['findAncestor']('table');let _0x1d6403;if('removeTableRow'==_0x4b9c51){const _0x52a92f=_0x4c3aa3['getRowIndexes'](_0x600ca7);_0x1d6403={'startRow':_0x52a92f['first'],'endRow':_0x52a92f['last'],'includeAllSlots':!0x0};}else{const _0x4c2151=_0x4c3aa3['getColumnIndexes'](_0x600ca7);_0x1d6403={'startColumn':_0x4c2151['first'],'endColumn':_0x4c2151['last'],'includeAllSlots':!0x0};}const _0x293db4=_0x4c3aa3['createTableWalker'](_0x22e7e3,_0x1d6403),_0x387e81=Array['from'](_0x293db4)['map'](({cell:_0x55ed7e})=>_0x55ed7e),_0x52029a=Ee(_0x387e81['filter'](_0x58d361=>_0x58d361['hasAttribute'](_0xde103c))),_0x6dcd04=Ee(_0x387e81['filter'](_0x5741af=>!_0x5741af['hasAttribute'](_0xde103c)))['map'](_0x3d27e6=>_0x4110f4['createRangeOn'](_0x3d27e6)),_0x6014c2=_0x70f5ba['markMultiRangeDeletion'](_0x6dcd04,_0x276968);if(_0x6014c2&&('tableRow'==_0x6014c2['subType']||'tableColumn'==_0x6014c2['subType'])){const _0x338d19=this['_getSuggestionCoords'](_0x6014c2);for(const _0x485bbb of _0x52029a){const _0x309b6b=_0x4110f4['createRangeOn'](_0x485bbb),_0x332113=_0x4c3aa3['getCellLocation'](_0x485bbb),_0xdecb5e=_0x485bbb['getAttribute'](_0xde103c)-0x1,_0x19ebde=_0x338d19[_0x15dfa9],_0x51ba07=_0x338d19[_0x2cd036];_0x19ebde<=_0x332113[_0x4592a3]&&_0x332113[_0x4592a3]+_0xdecb5e<=_0x51ba07&&_0x6014c2['addRange'](_0x309b6b);}}});});}function _0x58303f(_0xa61614){const _0x341f1d=Array['from'](_0x88b81['getRanges']())['map'](_0x5366f0=>_0x3939f1['fromRange'](_0x5366f0));_0x1fd9df['model']['change'](_0x2f8991=>{const _0x3a453e=_0x2f8991['batch'];_0xa61614=_0xa61614['filter'](_0x3dad0b=>'$graveyard'!=_0x3dad0b['root']['rootName']),_0x2f8991['setSelection'](_0xa61614),_0x1fd9df['commands']['get']('removeTableRow')['refresh'](),_0x1fd9df['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1fd9df['model']['enqueueChange'](()=>{_0x1fd9df['model']['enqueueChange'](_0x3a453e,_0x42cf09=>{const _0x2029e8=_0x341f1d['filter'](_0x14f9ac=>'$graveyard'!=_0x14f9ac['root']['rootName']);_0x2029e8['length']>0x0&&_0x42cf09['setSelection'](_0x2029e8);for(const _0xbabcdf of _0x341f1d)_0xbabcdf['detach']();});});});}function _0x40cc08(_0x3cf447){_0x1fd9df['model']['change'](_0x220949=>{const _0x2ca30d=Array['from'](_0x88b81['getRanges']())['map'](_0x1311e5=>_0x3939f1['fromRange'](_0x1311e5)),_0x13974b=[];for(const _0x425f2c of _0x3cf447)for(const _0x222e08 of _0x425f2c['getItems']({'shallow':!0x0}))_0x13974b['push'](_0x222e08);for(const _0x2ac835 of _0x13974b)'$graveyard'!=_0x2ac835['root']['rootName']&&(_0x220949['setSelection'](_0x220949['createPositionAt'](_0x2ac835,0x0)),_0x1fd9df['commands']['get']('removeTableColumn')['refresh'](),_0x1fd9df['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x30e0a0=_0x2ca30d['filter'](_0x4c6ae5=>'$graveyard'!=_0x4c6ae5['root']['rootName']);_0x30e0a0['length']>0x0&&_0x220949['setSelection'](_0x30e0a0);for(const _0x342217 of _0x2ca30d)_0x342217['detach']();});}function _0x2d66fa(_0x3630f2,_0x41d4b4){return _0x41d4b4['every'](_0x2f4fe7=>_0x3630f2['some'](_0x18ec9e=>_0x18ec9e['end']['isEqual'](_0x2f4fe7['start'])||_0x2f4fe7['end']['isEqual'](_0x18ec9e['start'])));}function _0x29f339(_0x289523,_0x350da1){return _0x289523['some'](_0x229be2=>_0x350da1['some'](_0x1b2e44=>_0x229be2['end']['isTouching'](_0x1b2e44['start'])));}_0x1fd9df['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18d622,_0x59cd32,_0x2ec8b7)=>{if(!_0x2ec8b7['options']['showSuggestionHighlights'])return;const _0xdeb942=_0x59cd32['item'];if(!_0xdeb942)return;const _0x290e83=_0x2ec8b7['mapper']['toViewElement'](_0xdeb942);function _0x11843f(_0x448daf){return Array['isArray'](_0x448daf)?_0x448daf:[_0x448daf];}_0x290e83&&'tableCell'===_0xdeb942['name']&&_0x3eb6fb(_0x290e83,_0x2ec8b7['writer'],(_0x5be5f8,_0x5eb511,_0xcf635)=>_0xcf635['addClass'](_0x11843f(_0x5eb511['classes']),_0x5be5f8),(_0x1f624,_0x4cd57c,_0xf8bb1b)=>_0xf8bb1b['removeClass'](_0x11843f(_0x4cd57c['classes']),_0x1f624));},{'priority':'highest'}),_0x70f5ba['descriptionFactory']['registerDescriptionCallback'](_0x452e33=>{if('insertion'!=_0x452e33['type']&&'deletion'!=_0x452e33['type'])return;const _0x3b53a8=_0x452e33['getContainedElement']();if(null!=_0x3b53a8&&_0x3b53a8['is']('element','table')){if('insertion'==_0x452e33['type']){const _0x37faea=_0x452e33['getItems']()['filter'](_0x29f3e4=>_0x29f3e4['is']('$textProxy'))['map'](_0x37595a=>_0x37595a['data']);if(_0x37faea['length'])return{'type':'insertion','content':o(_0x478cc8,'*Insert:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37faea['join']('\x20')+'\x22'))};}if('deletion'==_0x452e33['type']){const _0x4c0fe4=_0x452e33['getItems']()['filter'](_0x2a6f4e=>_0x2a6f4e['is']('$textProxy'))['map'](_0x4a85ad=>_0x4a85ad['data']);if(_0x4c0fe4['length'])return{'type':'deletion','content':o(_0x478cc8,'*Remove:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4c0fe4['join']('\x20')+'\x22'))};}}}),_0x70f5ba['descriptionFactory']['registerDescriptionCallback'](_0x16bf81=>{if('tableRow'==_0x16bf81['subType']){const _0x55196b=_0x16bf81['getItems']()['filter'](_0x381d26=>_0x381d26['is']('$textProxy'))['map'](_0x2da7c6=>_0x2da7c6['data']),_0x407cfd=this['_getSuggestionCoords'](_0x16bf81),_0x5cdfed=_0x407cfd['maxRow']-_0x407cfd['minRow']+0x1;if('insertion'==_0x16bf81['type'])return _0x55196b['length']?{'type':'insertion','content':o(_0x478cc8,'*Insert:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cdfed,'\x22'+_0x55196b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x478cc8,'*Insert:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_ROW',_0x5cdfed))};if('deletion'==_0x16bf81['type'])return _0x55196b['length']?{'type':'deletion','content':o(_0x478cc8,'*Remove:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cdfed,'\x22'+_0x55196b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x478cc8,'*Remove:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_ROW',_0x5cdfed))};}if('tableColumn'==_0x16bf81['subType']){const _0x34510a=_0x16bf81['getItems']()['filter'](_0x44d50d=>_0x44d50d['is']('$textProxy'))['map'](_0xcac64c=>_0xcac64c['data']),_0x4d2fca=this['_getSuggestionCoords'](_0x16bf81),_0x187454=_0x4d2fca['maxColumn']-_0x4d2fca['minColumn']+0x1;if('insertion'==_0x16bf81['type'])return _0x34510a['length']?{'type':'insertion','content':o(_0x478cc8,'*Insert:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x187454,'\x22'+_0x34510a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x478cc8,'*Insert:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_COLUMN',_0x187454))};if('deletion'==_0x16bf81['type'])return _0x34510a['length']?{'type':'deletion','content':o(_0x478cc8,'*Remove:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x187454,'\x22'+_0x34510a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x478cc8,'*Remove:*\x20%0',o(_0x478cc8,'ELEMENT_TABLE_COLUMN',_0x187454))};}}),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x58303f),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x58303f),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x40cc08),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x40cc08),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2d66fa),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2d66fa),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x29f339),_0x70f5ba['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x29f339);}['_acceptFormatSuggestionCallbackFactory'](){const _0x51a602=this['editor'],_0xfc4af4=_0x51a602['model']['document']['selection'];return(_0x366e0f,_0x362fde)=>{_0x51a602['model']['change'](_0x571872=>{const {commandName:_0x23302e,commandParams:_0x55f856}=_0x362fde;let _0x55e17a=_0x366e0f[0x0]['end']['nodeBefore'];_0x55f856&&_0x55f856[0x0]&&!0x1===_0x55f856[0x0]['forceValue']&&(_0x55e17a=_0x366e0f[0x0]['start']['nodeAfter']);const _0x4b0846=_0x571872['createRangeIn'](_0x55e17a);if('$graveyard'==_0x4b0846['root']['rootName'])return;const _0x373f41=Array['from'](_0xfc4af4['getRanges']())['map'](_0x59eae3=>_0x3939f1['fromRange'](_0x59eae3));_0x571872['setSelection'](_0x4b0846),_0x51a602['commands']['get'](_0x23302e)['refresh'](),_0x55f856['push']({'forceDefaultExecution':!0x0}),_0x51a602['execute'](_0x23302e,..._0x55f856);const _0x38442d=_0x373f41['filter'](_0x3927a4=>'$graveyard'!=_0x3927a4['root']['rootName']);_0x38442d['length']>0x0&&_0x571872['setSelection'](_0x38442d);for(const _0xb7827f of _0x373f41)_0xb7827f['detach']();});};}['_getCoordsForCells'](_0x2e1607){const _0x2dcd54=this['editor']['plugins']['get']('TableUtils');let _0x1851b5=Number['MAX_SAFE_INTEGER'],_0x574bda=Number['MIN_SAFE_INTEGER'],_0x43df13=Number['MAX_SAFE_INTEGER'],_0x1db2e3=Number['MIN_SAFE_INTEGER'];for(const _0x3bf4f1 of _0x2e1607){if('$graveyard'==_0x3bf4f1['root']['rootName'])continue;const {row:_0x465c50,column:_0x27ea19}=_0x2dcd54['getCellLocation'](_0x3bf4f1),_0x1d983e=_0x3bf4f1['hasAttribute']('rowspan')?_0x3bf4f1['getAttribute']('rowspan')-0x1:0x0,_0x4db44e=_0x3bf4f1['hasAttribute']('colspan')?_0x3bf4f1['getAttribute']('colspan')-0x1:0x0;_0x1851b5=_0x465c50<_0x1851b5?_0x465c50:_0x1851b5,_0x574bda=_0x465c50+_0x1d983e>_0x574bda?_0x465c50+_0x1d983e:_0x574bda,_0x43df13=_0x27ea19<_0x43df13?_0x27ea19:_0x43df13,_0x1db2e3=_0x27ea19+_0x4db44e>_0x1db2e3?_0x27ea19+_0x4db44e:_0x1db2e3;}return{'minRow':_0x1851b5,'maxRow':_0x574bda,'minColumn':_0x43df13,'maxColumn':_0x1db2e3};}['_setupColumnsRowsFixing'](){const _0x5067d8=this['editor'],_0x2b5ab4=_0x5067d8['plugins']['get']('TrackChangesEditing'),_0x44d587=_0x5067d8['plugins']['get']('TableUtils');_0x5067d8['model']['document']['on']('change:data',()=>{const _0x124aab=Array['from'](_0x5067d8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x44f67d,data:_0x1eb8c8}of _0x124aab){const {group:_0x53b7ab,id:_0x43290d,subType:_0x5783cc}=_0x2b5ab4['_splitMarkerName'](_0x44f67d);if('suggestion'!=_0x53b7ab)continue;if(null!=_0x1eb8c8['oldRange'])continue;const _0x3a0fa6=_0x2b5ab4['getSuggestion'](_0x43290d);this['_tablePostFixingSubtypes']['includes'](_0x5783cc)&&this['_tableSuggestions']['add'](_0x3a0fa6);}},{'priority':'low'});const _0x4c05e5=(_0x40f067,_0x43bd93)=>{let _0x1934a0=!0x1;const _0x412260=_0x43bd93['createRangeOn'](_0x40f067),_0x26226f=_0x40f067['findAncestor']('table'),_0x4e6794=_0x44d587['getCellLocation'](_0x40f067);for(const _0x4392b4 of this['_tableSuggestions']){const _0x389611=_0x4392b4['subType'],_0x442686=_0x389611['startsWith']('tablePaste'),_0x515845=_0x389611['substr'](_0x442686?0xa:0x5),_0x3792fe=_0x515845['toLowerCase'](),_0xd118cc=_0x3792fe['substr'](0x0,0x3)+'span',_0x15b708='min'+_0x515845,_0x20a578='max'+_0x515845;if(!_0x4392b4['isInContent'])continue;if(_0x26226f!=_0x4392b4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4392b4['isIntersectingWithRange'](_0x412260))continue;const _0x1ee60d=_0x40f067['hasAttribute'](_0xd118cc)?_0x40f067['getAttribute'](_0xd118cc)-0x1:0x0,_0x3712cb=this['_getSuggestionCoords'](_0x4392b4),_0x377c82=_0x3712cb[_0x15b708],_0x25e611=_0x3712cb[_0x20a578];_0x377c82<=_0x4e6794[_0x3792fe]&&_0x4e6794[_0x3792fe]+_0x1ee60d<=_0x25e611&&(_0x4392b4['addRange'](_0x412260),_0x1934a0=!0x0);}return _0x1934a0;};_0x5067d8['model']['document']['registerPostFixer'](_0xf3e775=>{let _0xa60a44=!0x1;for(const _0x6700ed of _0x5067d8['model']['document']['differ']['getChanges']())if('insert'==_0x6700ed['type']){if('tableRow'==_0x6700ed['name']){for(const _0x4d5ef9 of _0x6700ed['position']['nodeAfter']['getChildren']())_0xa60a44=_0xa60a44||_0x4c05e5(_0x4d5ef9,_0xf3e775);}else'tableCell'==_0x6700ed['name']&&(_0xa60a44=_0xa60a44||_0x4c05e5(_0x6700ed['position']['nodeAfter'],_0xf3e775));}return _0xa60a44;});}['_getSuggestionCoords'](_0x408b93){return this['_getCoordsForCells'](_0x408b93['getRanges']()['map'](_0x390614=>_0x390614['start']['nodeAfter']));}}function Ee(_0x572d86){return Array['from'](new Set(_0x572d86)['values']());}class St extends _0x17f7ef{static get['requires'](){return[jt];}['afterInit'](){const _0x2a2965=this['editor'],_0x1a6d5c=_0x2a2965['model']['document']['selection'],_0x388af9=_0x2a2965['locale'];if(!_0x2a2965['plugins']['has']('TableEditing'))return;const _0x56ffdc=_0x2a2965['plugins']['get']('TrackChangesEditing'),_0x23aa80=_0x2a2965['plugins']['get']('TableUtils'),_0x4c75ad=_0x2a2965['plugins']['get'](jt);_0x4c75ad['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x56ffdc['enableCommand']('mergeTableCells',()=>{const _0x3f78d2=_0x23aa80['getSelectionAffectedTableCells'](_0x2a2965['model']['document']['selection']);_0x2a2965['model']['change'](()=>{_0x56ffdc['markMultiRangeBlockFormat'](_0x3f78d2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2a2965['commands']['get']('mergeTableCells')['on']('execute',(_0x12c948,_0x18ccc6)=>{_0x2a2965['commands']['get']('trackChanges')['value']&&(_0x18ccc6['length']>0x0&&_0x18ccc6[_0x18ccc6['length']-0x1]&&_0x18ccc6[_0x18ccc6['length']-0x1]['forceDefaultExecution']||_0x56ffdc['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x12c948['stop']());},{'priority':'highest'});for(const _0x4a8e28 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4f63d5=_0x2a2965['commands']['get'](_0x4a8e28);_0x56ffdc['enableCommand'](_0x4a8e28,()=>{const _0x4a8b91=_0x2a2965['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3e6ae9=>_0x3e6ae9['is']('element','tableCell')),_0x3f5b02=_0x4f63d5['value'];_0x2a2965['model']['change'](()=>{_0x56ffdc['markMultiRangeBlockFormat']([_0x4a8b91,_0x3f5b02],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1f6d4f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2b3644=_0x2a2965['commands']['get'](_0x1f6d4f);_0x56ffdc['enableCommand'](_0x1f6d4f,()=>{const _0x40d61c=_0x23aa80['getSelectionAffectedTableCells'](_0x2a2965['model']['document']['selection'])[0x0],_0x306696=_0x40d61c['findAncestor']('table'),{column:_0x40c1ff,row:_0x719a76}=_0x23aa80['getCellLocation'](_0x40d61c);let _0x2f98b1=[];if('horizontally'==_0x2b3644['direction']){const _0x1ec7dd=_0x23aa80['createTableWalker'](_0x306696,{'startRow':_0x719a76,'endRow':_0x719a76,'includeAllSlots':!0x0});_0x2f98b1=Array['from'](_0x1ec7dd)['map'](_0x17a36e=>_0x17a36e['cell']);}else{const _0xdd7d2c=_0x23aa80['createTableWalker'](_0x306696,{'column':_0x40c1ff,'includeAllSlots':!0x0});_0x2f98b1=Array['from'](_0xdd7d2c)['map'](_0x519866=>_0x519866['cell']);}_0x2a2965['model']['change'](_0x2bf8b5=>{_0x56ffdc['markBlockFormat'](_0x2bf8b5['createRangeOn'](_0x40d61c),{'commandName':_0x1f6d4f,'commandParams':[]},_0x2f98b1,_0x1f6d4f);});});}_0x56ffdc['descriptionFactory']['registerDescriptionCallback'](_0x1a0d5a=>{if('formatBlock'!=_0x1a0d5a['type']&&'formatInline'!=_0x1a0d5a['type'])return;const {data:_0x2e5797}=_0x1a0d5a;return _0x2e5797&&'mergeTableCells'==_0x2e5797['commandName']?{'type':'format','content':o(_0x388af9,'*Merge\x20cells*')}:void 0x0;}),_0x56ffdc['descriptionFactory']['registerDescriptionCallback'](_0x196556=>{if('formatBlock'!=_0x196556['type']&&'formatInline'!=_0x196556['type'])return;const {data:_0x1b5f94}=_0x196556;return _0x1b5f94?'splitTableCellVertically'==_0x1b5f94['commandName']?{'type':'format','content':o(_0x388af9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1b5f94['commandName']?{'type':'format','content':o(_0x388af9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5bc5bf=_0x4c75ad['_acceptFormatSuggestionCallbackFactory']();for(const _0x5274ec of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x56ffdc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5274ec,'accept',_0x5bc5bf);for(const _0x3097a5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x56ffdc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3097a5,'accept',_0x5bc5bf);_0x56ffdc['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x55c181=>{_0x2a2965['model']['change'](_0x9842a2=>{const _0x308146=Array['from'](_0x1a6d5c['getRanges']())['map'](_0x4d6ae5=>_0x3939f1['fromRange'](_0x4d6ae5));_0x9842a2['setSelection'](_0x55c181),_0x2a2965['commands']['get']('mergeTableCells')['refresh'](),_0x2a2965['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x43b56e=_0x308146['filter'](_0x206c4c=>'$graveyard'!=_0x206c4c['root']['rootName']);_0x43b56e['length']>0x0&&_0x9842a2['setSelection'](_0x43b56e);for(const _0x2fbb16 of _0x308146)_0x2fbb16['detach']();});});for(const _0x8929b0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x42f831=_0x2a2965['commands']['get'](_0x8929b0);_0x42f831['on']('set:isEnabled',(_0xb6609,_0x55c34f,_0x150dde)=>{if(_0x150dde){const _0x187aa7=_0x2a2965['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x505f8b=>_0x505f8b['is']('element','tableCell'));this['_areMergableCells'](_0x42f831['value'],_0x187aa7)||(_0xb6609['return']=!0x1,_0xb6609['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x19b261=this['editor']['commands']['get']('mergeTableCells'),_0x46fba9=this['editor']['plugins']['get']('TableUtils');if(!_0x19b261['isEnabled'])return!0x1;const _0xfcdda2=_0x46fba9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x353239 of _0xfcdda2)for(const _0x5109d6 of _0xfcdda2)if(_0x353239!=_0x5109d6&&!this['_areMergableCells'](_0x353239,_0x5109d6))return!0x1;return!0x0;}['_areMergableCells'](_0x149088,_0x393bb5){const _0x2af94c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13993b=this['editor']['model']['createRangeOn'](_0x149088),_0x2a1c02=this['editor']['model']['createRangeOn'](_0x393bb5),_0xecaaa8=new Set(),_0x35610c=new Set();for(const _0x13809f of _0x2af94c['getSuggestions']())if(('insertion'==_0x13809f['type']||'deletion'==_0x13809f['type']||'mergeTableCells'==_0x13809f['subType'])&&_0x13809f['isInContent']){for(const _0x5799d9 of _0x13809f['getRanges']())_0x5799d9['containsRange'](_0x13993b,!0x0)&&_0xecaaa8['add'](_0x13809f['type']+':'+_0x13809f['author']['id']),_0x5799d9['containsRange'](_0x2a1c02,!0x0)&&_0x35610c['add'](_0x13809f['type']+':'+_0x13809f['author']['id']);}if(_0xecaaa8['size']!=_0x35610c['size'])return!0x1;for(const _0x844d64 of _0xecaaa8)if(!_0x35610c['has'](_0x844d64))return!0x1;return!0x0;}}class At extends _0x17f7ef{static get['requires'](){return[jt];}['afterInit'](){const _0x283205=this['editor'];if(!_0x283205['plugins']['has']('TableEditing'))return;const _0x4c0a75=_0x283205['locale'],_0x31a883=_0x283205['plugins']['get']('TrackChangesEditing');_0x31a883['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x31a883['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x31a883['registerBlockAttribute']('headingRows'),_0x31a883['registerBlockAttribute']('headingColumns'),_0x31a883['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4c0a75,'FORMAT_HEADER_ROW')),_0x31a883['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4c0a75,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e9e71=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47f7cd=this['editor']['plugins']['get']('TableUtils'),_0x5d48b9=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x108521({showActiveMarker:_0x4ff6b8=!0x0,setDataAttribute:_0x1d27ad=!0x0}={}){return(_0x7b90b0,_0x3c6136,_0x30765c)=>{const {type:_0x36b33e,id:_0x517add}=_0x4e9e71['_splitMarkerName'](_0x3c6136['markerName']),_0xd3d60d=_0x4e9e71['getSuggestion'](_0x517add),_0x57f7f0=_0xd3d60d['data'];if('formatBlock'!=_0xd3d60d['type']||!_0x57f7f0||'setTableColumnHeader'!=_0x57f7f0['commandName'])return;if(_0x3c6136['item'])return void _0x7b90b0['stop']();if(!_0x30765c['consumable']['consume'](_0x3c6136['markerRange'],_0x7b90b0['name']))return;const _0x56e30f=_0x3c6136['markerRange']['start']['nodeAfter'],_0x2ed7c3=_0x3c6136['markerRange']['end']['nodeBefore'],_0x1dcc16=_0x56e30f['parent']['parent'],{column:_0x364c3f}=_0x47f7cd['getCellLocation'](_0x56e30f),{column:_0x234695}=_0x47f7cd['getCellLocation'](_0x2ed7c3);for(let _0x1751f6=_0x364c3f;_0x1751f6<=_0x234695;_0x1751f6++){const _0x48cd8f=_0x47f7cd['createTableWalker'](_0x1dcc16,{'column':_0x1751f6,'includeAllSlots':!0x1});for(const _0xeeb4ab of _0x48cd8f){const _0x4b91b3=_0xeeb4ab['cell'],_0x40d2e5=_0x30765c['mapper']['toViewElement'](_0x4b91b3);_0x30765c['writer']['addClass']('ck-suggestion-marker-'+_0x36b33e,_0x40d2e5),_0x1d27ad&&_0x30765c['writer']['setAttribute']('data-suggestion',_0x517add,_0x40d2e5),_0x30765c['mapper']['bindElementToMarker'](_0x40d2e5,_0x3c6136['markerName']),_0x4ff6b8&&(_0x4e9e71['activeMarkers']['includes'](_0x3c6136['markerName'])?_0x30765c['writer']['addClass']('ck-suggestion-marker--active',_0x40d2e5):_0x30765c['writer']['removeClass']('ck-suggestion-marker--active',_0x40d2e5));}}};}_0x4e9e71['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5d48b9),_0x4e9e71['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5d48b9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x108521(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xba55f0,_0xda8dcf,_0x25590b)=>{_0x25590b['options']['showSuggestionHighlights']&&_0x108521({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xba55f0,_0xda8dcf,_0x25590b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x40cbbf,_0x34d9af,_0x208256)=>{const {type:_0xbcf005,id:_0x20d7dd}=_0x4e9e71['_splitMarkerName'](_0x34d9af['markerName']),_0x4122ed=_0x4e9e71['getSuggestion'](_0x20d7dd),_0xc9c0b3=_0x4122ed['data'];if('formatBlock'!=_0x4122ed['type']||!_0xc9c0b3||'setTableColumnHeader'!=_0xc9c0b3['commandName'])return;const _0x48d1dd=_0x208256['mapper']['markerNameToElements'](_0x34d9af['markerName']);if(_0x48d1dd){for(const _0x30dd6e of _0x48d1dd)_0x208256['writer']['removeClass']('ck-suggestion-marker-'+_0xbcf005,_0x30dd6e),_0x208256['writer']['removeClass']('ck-suggestion-marker--active',_0x30dd6e),_0x208256['writer']['removeAttribute']('data-suggestion',_0x30dd6e),_0x208256['mapper']['unbindElementFromMarkerName'](_0x30dd6e,_0x34d9af['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31ebfa=this['editor'],_0x33a245=_0x31ebfa['locale'];function _0x12d17c(_0x3ae2b9){return{'type':'format','content':o(_0x33a245,'*Format:*\x20%0',_0x3ae2b9)};}_0x31ebfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e4989=>{if('formatBlock'!=_0x2e4989['type'])return;const {data:_0xf131a5}=_0x2e4989;if(_0xf131a5){if('setTableRowHeader'==_0xf131a5['commandName']){const _0x2385b3=_0xf131a5['commandParams'][0x0]['forceValue'];return _0x12d17c(o(_0x33a245,_0x2385b3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xf131a5['commandName']){const _0xd04575=_0xf131a5['commandParams'][0x0]['forceValue'];return _0x12d17c(o(_0x33a245,_0xd04575?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x4dc7b9=>[_0x4dc7b9,null]));class It extends _0x17f7ef{static get['requires'](){return[jt];}['afterInit'](){const _0x581d35=this['editor'];if(!_0x581d35['plugins']['has']('TableClipboard'))return;const _0x196f6d=_0x581d35['plugins']['get']('TrackChangesEditing'),_0x46b880=_0x581d35['plugins']['get']('TableUtils'),_0x5584a4=_0x581d35['plugins']['get'](jt),_0x53cfdc=_0x581d35['plugins']['get']('TableClipboard');_0x5584a4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x581d35['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x581d35['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x572d4d=null;_0x581d35['model']['on']('insertContent',(_0xb414cf,_0xb3c6b9)=>{const [_0x5d7ca2,_0x89f055]=_0xb3c6b9,_0x88728d=_0xb3c6b9[_0xb3c6b9['length']-0x1];_0x88728d&&_0x88728d['forceDefaultExecution']||_0x196f6d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4450d2,_0x414545,_0x2b3782,_0x533ffc,_0x146d62){if(_0x414545&&!_0x414545['is']('documentSelection'))return!0x1;const _0x30d463=_0x146d62['getTableIfOnlyTableInContent'](_0x4450d2,_0x2b3782);if(!_0x30d463||!he(_0x30d463,void 0x0,_0x533ffc))return!0x1;const _0x359f1f=_0x533ffc['getSelectionAffectedTableCells'](_0x2b3782['document']['selection']);if(!_0x359f1f['length'])return!0x1;const _0xacdd3=_0x359f1f[0x0]['findAncestor']('table'),_0x2edcdc=_0x533ffc['getRowIndexes'](_0x359f1f),_0x6c985a=_0x533ffc['getColumnIndexes'](_0x359f1f),_0xd80f03={'startRow':_0x2edcdc['first'],'endRow':_0x2edcdc['last'],'startColumn':_0x6c985a['first'],'endColumn':_0x6c985a['last']};return 0x1==_0x359f1f['length']&&(_0xd80f03['endRow']+=_0x533ffc['getRows'](_0x30d463)-0x1,_0xd80f03['endColumn']+=_0x533ffc['getColumns'](_0x30d463)-0x1),he(_0xacdd3,_0xd80f03,_0x533ffc);}(_0x5d7ca2,_0x89f055,_0x581d35['model'],_0x46b880,_0x53cfdc)&&(_0xb414cf['stop'](),_0x572d4d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x581d35['model']['change'](()=>{_0x581d35['model']['insertContent'](_0xb3c6b9[0x0],_0xb3c6b9[0x1],_0xb3c6b9[0x2],{'forceDefaultExecution':!0x0});const _0x366aaa=_0x5e29c1(),{rowInsertionRanges:_0x42ce79,columnInsertionRanges:_0x58f6b6,insertionRanges:_0x528153,deletionRanges:_0x33b2cf,cells:_0x30f22e}=_0x572d4d;_0x42ce79['length']&&_0x196f6d['markMultiRangeInsertion'](_0x42ce79,'tablePasteRow',{'tablePasteChainId':_0x366aaa}),_0x58f6b6['length']&&_0x196f6d['markMultiRangeInsertion'](_0x58f6b6,'tablePasteColumn',{'tablePasteChainId':_0x366aaa}),_0x528153['length']&&(_0x196f6d['markMultiRangeInsertion'](_0x528153,'tablePaste',{'tablePasteChainId':_0x366aaa,'skipNestingCheck':!0x0}),_0x528153['forEach'](_0x54452e=>_0x54452e['detach']?.())),_0x33b2cf['length']&&(_0x196f6d['markMultiRangeDeletion'](_0x33b2cf,'tablePaste',{'tablePasteChainId':_0x366aaa,'skipNestingCheck':!0x0}),_0x33b2cf['forEach'](_0x39735f=>_0x39735f['detach']?.()));const _0xc2d39f=_0x196f6d['markMultiRangeBlockFormat'](_0x30f22e['map'](({element:_0x4665bc})=>_0x4665bc),{'formatGroupId':_0x5e29c1()},[],'tablePasteCell',{'tablePasteChainId':_0x366aaa});if(_0xc2d39f){const _0x558f6d=_0xc2d39f['getMarkers'](),_0x2f2344=[];for(const {element:_0x3178c3,attributes:_0x42f848}of _0x30f22e){if(!_0x42f848)continue;const _0x3a6499=_0x581d35['model']['createRangeOn'](_0x3178c3),_0x1913df=_0x558f6d['find'](_0x120c95=>_0x120c95['getRange']()['isEqual'](_0x3a6499));_0x1913df&&_0x2f2344['push']([_0x1913df['name'],_0x42f848]);}_0x2f2344['length']&&_0xc2d39f['setAttribute']('markerAttributes',Object['fromEntries'](_0x2f2344));}_0x572d4d=null;}));},{'priority':_0x32be84['high']+0xa}),_0x581d35['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3aa9ab,_0x2b92ed)=>{const [_0x1679ad,_0x494499,,_0x186aa5]=_0x2b92ed;if(!_0x572d4d)return;_0x3aa9ab['stop']();const _0xbe4132=_0x1679ad['cell'],_0x245c29=_0x494499,_0x923e7f=Pe(_0xbe4132),_0x37c0a8=Pe(_0x245c29);_0x3aa9ab['return']=_0xbe4132;let _0x37b65c=null,_0xf5b10f=null;if(_0x37c0a8||_0x923e7f){if(_0x923e7f&&!_0x37c0a8){_0x186aa5['remove'](_0xbe4132['getChild'](0x0));for(const _0x3b3454 of Array['from'](_0x245c29['getChildren']()))_0x186aa5['insert'](_0x3b3454,_0xbe4132,'end');const _0x5e74ad=_0x572d4d['rowInsertionIndexes']['includes'](_0x1679ad['row']),_0x1ccaec=_0x572d4d['columnInsertionIndexes']['includes'](_0x1679ad['column']);_0x5e74ad||_0x1ccaec||(_0x37b65c=_0x3939f1['fromRange'](_0x186aa5['createRangeIn'](_0xbe4132)));}else _0x37c0a8&&!_0x923e7f&&(_0xf5b10f=_0x186aa5['createRangeIn'](_0xbe4132));}else{const _0x502c60=_0x186aa5['createElement']('tableCellSuggestion'),_0x41a2b5=_0x186aa5['createElement']('tableCellSuggestion');_0x186aa5['wrap'](_0x186aa5['createRangeIn'](_0xbe4132),_0x41a2b5),_0x186aa5['insert'](_0x502c60,_0xbe4132,0x0);for(const _0xde0c7 of Array['from'](_0x245c29['getChildren']()))_0x186aa5['insert'](_0xde0c7,_0x502c60,'end');_0x37b65c=_0x3939f1['fromRange'](_0x186aa5['createRangeOn'](_0x502c60)),_0xf5b10f=_0x3939f1['fromRange'](_0x186aa5['createRangeOn'](_0x41a2b5));}const _0x118325=Array['from'](_0x245c29['getAttributes']())['filter'](([_0x2ddd6a])=>ge['includes'](_0x2ddd6a));_0x572d4d['cells']['push']({'element':_0xbe4132,'attributes':_0x118325['length']?Object['fromEntries'](_0x118325):null}),_0x37b65c&&_0x572d4d['insertionRanges']['push'](_0x37b65c),_0xf5b10f&&_0x572d4d['deletionRanges']['push'](_0xf5b10f);},{'priority':'high'}),_0x46b880['on']('insertColumns',(_0x39426e,_0x264328)=>{const [_0x101437,_0x5c2381={}]=_0x264328;if(!_0x572d4d)return;const _0x44ff0e=_0x5c2381['at']||0x0,_0x446530=_0x5c2381['columns']||0x1;_0x572d4d['columnInsertionIndexes']=new Array(_0x446530)['fill'](_0x44ff0e)['map']((_0x3f23ce,_0x422605)=>_0x3f23ce+_0x422605);for(const {cell:_0x14e16e}of _0x46b880['createTableWalker'](_0x101437,{'startColumn':_0x44ff0e,'endColumn':_0x44ff0e+_0x446530-0x1}))_0x572d4d['columnInsertionRanges']['push'](_0x581d35['model']['createRangeOn'](_0x14e16e));},{'priority':'low'}),_0x46b880['on']('insertRows',(_0x1d2af4,_0x3101e4)=>{const [_0x236271,_0x28b64e={}]=_0x3101e4;if(!_0x572d4d)return;const _0x43df98=_0x28b64e['at']||0x0,_0x1aedfa=_0x28b64e['rows']||0x1;_0x572d4d['rowInsertionIndexes']=new Array(_0x1aedfa)['fill'](_0x43df98)['map']((_0x546d82,_0x39d29f)=>_0x546d82+_0x39d29f);for(const {cell:_0x14d69c}of _0x46b880['createTableWalker'](_0x236271,{'startRow':_0x43df98,'endRow':_0x43df98+_0x1aedfa-0x1}))_0x572d4d['rowInsertionRanges']['push'](_0x581d35['model']['createRangeOn'](_0x14d69c));},{'priority':'low'}),_0x196f6d['descriptionFactory']['registerDescriptionCallback'](_0x3582ae=>{if(_0x3582ae['subType']&&_0x3582ae['subType']['startsWith']('tablePaste'))return _0x3582ae['previous']?{}:{'type':'insertion','content':o(_0x581d35['locale'],'*Replace\x20table\x20cells*')};});const _0x199130=()=>!0x1;for(const _0x4350d9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x196f6d['_suggestionFactory']['registerCustomCallback']('insertion',_0x4350d9,'join',_0x199130),_0x196f6d['_suggestionFactory']['registerCustomCallback']('deletion',_0x4350d9,'join',_0x199130),_0x196f6d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4350d9,'join',_0x199130);_0x196f6d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x199130),_0x196f6d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5e281a,_0x3c0d75,_0x341785)=>{const _0x4f9427=_0x5e281a['map'](_0x7be763=>_0x7be763['getContainedElement']())['filter'](_0x30fa39=>_0x30fa39),_0x53a10f=new Map(_0x4f9427['map'](_0x18e8f1=>[_0x18e8f1,null]));if(_0x572d4d){for(const {element:_0x262d9e,attributes:_0x4e777c}of _0x572d4d['cells'])_0x4e777c&&_0x53a10f['set'](_0x262d9e,_0x4e777c);}else{if(_0x341785&&_0x341785['markerAttributes'])for(const [_0x1bbe74,_0x10ae62]of Object['entries'](_0x341785['markerAttributes'])){const _0x1fa85d=_0x581d35['model']['markers']['get'](_0x1bbe74),_0x520a04=_0x1fa85d?_0x1fa85d['getRange']()['getContainedElement']():null;_0x520a04&&_0x53a10f['set'](_0x520a04,_0x10ae62);}}_0x581d35['model']['change'](_0xa445bc=>{for(const [_0x20abb3,_0x573990]of _0x53a10f)_0xa445bc['setAttributes']({...Ce,..._0x573990},_0x20abb3);});});const _0x3c2df6=(_0x8c6914,_0x2d7555)=>{_0x196f6d['_suggestionFactory']['registerCustomCallback'](_0x8c6914,'tablePaste',_0x2d7555,(_0xc2c127,_0x2e329b,_0x18ded1)=>{_0x581d35['model']['change'](_0x541a5d=>{const _0x504841=[];for(const _0x3d573c of _0xc2c127){const _0x48c363=_0x3d573c['start']['nodeAfter'];_0x48c363['is']('element','tableCellSuggestion')&&_0x504841['push'](_0x48c363);}_0x196f6d['_suggestionFactory']['getSuggestionCallback'](_0x8c6914,null,_0x2d7555)(_0xc2c127,_0x2e329b,_0x18ded1);for(const _0x45f4 of _0x504841)'$graveyard'!=_0x45f4['root']['rootName']&&_0x541a5d['unwrap'](_0x45f4);});});};_0x3c2df6('insertion','accept'),_0x3c2df6('insertion','discard'),_0x3c2df6('deletion','accept'),_0x3c2df6('deletion','discard'),_0x196f6d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x36f1db=>{const _0x361649=_0x36f1db['map'](_0x3145d7=>_0x3145d7['getContainedElement']()),_0x15dde5=_0x361649[0x0]['findAncestor']('table'),{minRow:_0x2c3def,maxRow:_0x1df205}=_0x5584a4['_getCoordsForCells'](_0x361649);_0x46b880['removeRows'](_0x15dde5,{'at':_0x2c3def,'rows':_0x1df205-_0x2c3def+0x1});}),_0x196f6d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4414bb=>{const _0x1d5e50=_0x4414bb['map'](_0x551ab8=>_0x551ab8['getContainedElement']()),_0x3f2481=_0x1d5e50[0x0]['findAncestor']('table'),{minColumn:_0x41a94e,maxColumn:_0x4c728b}=_0x5584a4['_getCoordsForCells'](_0x1d5e50);_0x46b880['removeColumns'](_0x3f2481,{'at':_0x41a94e,'columns':_0x4c728b-_0x41a94e+0x1});});const _0x4687d9=(_0x3035cc,_0x55aa79)=>{if(!_0x55aa79['subType']||!_0x55aa79['subType']['startsWith']('tablePaste'))return;const _0x4a84b3=_0x55aa79['attributes']['tablePasteChainId'],_0x33320d=_0x196f6d['getSuggestions']()['filter'](_0x4148c=>_0x4148c['isInContent']&&_0x4148c['attributes']&&_0x4148c['attributes']['tablePasteChainId']==_0x4a84b3);_0x33320d['length']&&_0x55aa79['getAllAdjacentSuggestions']()['length']!=_0x33320d['length']&&_0x33320d['reduce']((_0x38ee5e,_0x33b01f)=>(_0x38ee5e['next']=_0x33b01f,_0x33b01f['previous']=_0x38ee5e,_0x33b01f));};function _0xc7fbc3(_0x48e7f1,_0x41e1a9=!0x0){const {id:_0x349172}=_0x196f6d['_splitMarkerName'](_0x48e7f1['markerName']),_0x53c577=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xddd4a2=_0x196f6d['activeMarkers']['includes'](_0x48e7f1['markerName']);return _0xddd4a2&&_0x53c577['push']('ck-suggestion-marker--active'),{'classes':_0x53c577,'attributes':{'data-suggestion':_0x349172},'priority':_0xddd4a2&&_0x41e1a9?0xbc2:0xbb8};}_0x196f6d['on']('suggestionLoaded',_0x4687d9,{'priority':'high'}),_0x196f6d['on']('suggestionUnloaded',_0x4687d9,{'priority':'high'}),_0x581d35['model']['document']['registerPostFixer'](()=>{let _0x36224e=!0x1;const _0x35b6b7=Array['from'](_0x581d35['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1648e8,data:_0x13559f}of _0x35b6b7){const {group:_0x334c8,type:_0x1e4575,id:_0x5022d5}=_0x196f6d['_splitMarkerName'](_0x1648e8);if('suggestion'!=_0x334c8||'deletion'!=_0x1e4575||_0x13559f['oldRange'])continue;if(!_0x196f6d['hasSuggestion'](_0x5022d5))continue;const _0x2fcedc=_0x196f6d['getSuggestion'](_0x5022d5)['getRanges'](),_0xa1c8b2=_0x581d35['plugins']['get']('Users')['me'];for(const _0x398b9f of _0x196f6d['getSuggestions']()){if(!_0x398b9f['isInContent']||_0x398b9f['author']!=_0xa1c8b2)continue;if('formatBlock'!=_0x398b9f['type']||'tablePasteCell'!=_0x398b9f['subType'])continue;if(_0x398b9f['getRanges']()['every'](_0x14fec7=>_0x2fcedc['some'](_0x47490e=>_0x47490e['containsRange'](_0x14fec7,!0x0)))){for(const _0x2e4d63 of _0x398b9f['getAllAdjacentSuggestions']())_0x2e4d63['isInContent']&&(_0x2e4d63['discard'](),_0x36224e=!0x0);}}}return _0x36224e;}),_0x581d35['model']['document']['registerPostFixer'](_0x475303=>{const _0x3705d3=_0x581d35['commands']['get']('redo');if(!_0x3705d3||!_0x3705d3['_createdBatches']['has'](_0x475303['batch']))return!0x1;let _0x4fa859=!0x1;const _0x5c736a=_0x581d35['plugins']['get']('Users')['me'],_0xb9a4ae=_0x581d35['model']['document']['differ']['getChanges'](),_0x39d154=Array['from'](_0x581d35['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x28e32b,data:_0x59180f})=>{const {group:_0xc8794b,subType:_0x4c8af1,authorId:_0x568f72}=_0x196f6d['_splitMarkerName'](_0x28e32b);return'suggestion'==_0xc8794b&&'tablePaste'==_0x4c8af1&&_0x568f72==_0x5c736a['id']&&!_0x59180f['oldRange'];});for(const _0x1e4b64 of _0xb9a4ae){if('insert'!=_0x1e4b64['type']||'tableCellSuggestion'!=_0x1e4b64['name']||0x1!=_0x1e4b64['length'])continue;const _0x2a8253=_0x475303['createRange'](_0x1e4b64['position'],_0x1e4b64['position']['getShiftedBy'](0x1));if(!_0x39d154['find'](({data:_0x368383})=>_0x368383['newRange']['isEqual'](_0x2a8253))){for(const {name:_0xa7def2,data:_0x4da393}of _0x39d154)if(_0x2a8253['containsRange'](_0x4da393['newRange'])){_0x475303['updateMarker'](_0xa7def2,{'range':_0x2a8253}),_0x4fa859=!0x0;break;}}}return _0x4fa859;}),_0x581d35['model']['document']['registerPostFixer'](_0x2dbdc3=>{let _0x35feac=!0x1;const _0x5dd255=_0x581d35['plugins']['get']('Users')['me'],_0x31106e=_0x196f6d['getSuggestions']()['filter'](_0x3b2504=>_0x3b2504['isInContent']&&_0x3b2504['author']==_0x5dd255),_0x42979b=new Set(),_0x4f6608=new Set();for(const _0x4218c6 of _0x31106e)if('tablePaste'==_0x4218c6['subType'])for(const _0x29faba of _0x4218c6['getMarkers']()){const _0x2f4e35=_0x29faba['getRange']()['getContainedElement']();if(_0x2f4e35){if(_0x2f4e35['is']('element','tableCellSuggestion')&&Pe(_0x2f4e35)){_0x4218c6['removeMarker'](_0x29faba['name']),_0x42979b['add'](_0x2f4e35),_0x35feac=!0x0;const _0x48cff9=_0x2f4e35['nextSibling'],_0x23e068=_0x2f4e35['previousSibling'],_0x4c8c73=_0x48cff9&&_0x48cff9['is']('element','tableCellSuggestion'),_0xb34c51=_0x23e068&&_0x23e068['is']('element','tableCellSuggestion');_0x4c8c73&&!_0x42979b['has'](_0x48cff9)&&_0x4f6608['add'](_0x48cff9),_0xb34c51&&!_0x42979b['has'](_0x23e068)&&_0x4f6608['add'](_0x23e068);}else _0x2f4e35['is']('element','paragraph')&&_0x2f4e35['isEmpty']&&(_0x4218c6['removeMarker'](_0x29faba['name']),_0x35feac=!0x0);}}else{if('tablePasteCell'==_0x4218c6['subType']){if(!_0x4218c6['attributes']||!_0x4218c6['attributes']['tablePasteChainId'])continue;const _0x2f3e2d=_0x4218c6['attributes']['markerAttributes'];if(_0x2f3e2d&&Object['keys'](_0x2f3e2d)['length'])continue;const _0x37f0cd=_0x4218c6['attributes']['tablePasteChainId'];let _0x556015=!0x0,_0x4c6eaf=!0x0;for(const _0x323410 of _0x31106e)if(_0x323410['subType']&&_0x323410['subType']['startsWith']('tablePaste')){if(!_0x323410['attributes']['tablePasteChainId']){_0x4c6eaf=!0x1;break;}if(_0x323410['id']!=_0x4218c6['id']&&_0x323410['attributes']['tablePasteChainId']==_0x37f0cd){_0x556015=!0x1;break;}}_0x4c6eaf&&_0x556015&&(_0x4218c6['removeMarkers'](),_0x35feac=!0x0);}}for(const _0x286bbb of _0x42979b)_0x2dbdc3['remove'](_0x286bbb);for(const _0x2970ad of _0x4f6608)_0x2dbdc3['unwrap'](_0x2970ad);return _0x35feac;}),_0x581d35['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4c9057,_0x502816)=>_0xc7fbc3(_0x4c9057),'converterPriority':'high'}),_0x581d35['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x29243b,_0x363942)=>_0x363942['options']['showSuggestionHighlights']?_0xc7fbc3(_0x29243b,!0x1):null,'converterPriority':'high'});const _0x4c1663=_0x581d35['editing']['view'];this['listenTo'](_0x4c1663['document'],'clipboardOutput',(_0x3cafa0,_0x32a9bc)=>{const _0x4ed8ea=[];for(const _0x16da21 of _0x4c1663['createRangeIn'](_0x32a9bc['content'])['getItems']())_0x16da21['is']('element','suggestion-td')&&_0x4ed8ea['push'](_0x16da21);_0x4c1663['change'](_0xbea287=>{for(const _0x7957d9 of _0x4ed8ea)_0xbea287['move'](_0xbea287['createRangeIn'](_0x7957d9),_0xbea287['createPositionBefore'](_0x7957d9)),_0xbea287['remove'](_0x7957d9);});});}}function Pe(_0x2cc691){if(_0x2cc691['isEmpty'])return!0x0;const _0x4b3940=_0x2cc691['getChild'](0x0);return _0x4b3940['is']('element','paragraph')&&_0x4b3940['isEmpty'];}function he(_0x6418fd,_0x2aa03c={},_0x121997){for(const {isAnchor:_0x1fe736,cellHeight:_0x9e3559,cellWidth:_0x29e503}of _0x121997['createTableWalker'](_0x6418fd,{'includeAllSlots':!0x0,..._0x2aa03c}))if(!_0x1fe736||0x1!=_0x9e3559||0x1!=_0x29e503)return!0x1;return!0x0;}class vt extends _0x17f7ef{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x161c64=this['editor']['plugins']['get']('TrackChangesEditing');_0x161c64['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x161c64['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x161c64['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x161c64['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x161c64['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x161c64['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x388772,_0x3b8785){const _0x3fc9c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27bd19=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5aeb3e=_0x3b8785['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1bc76f=_0x27bd19['getColumnGroupElement'](_0x5aeb3e);let _0x3dd22a=_0x1bc76f?_0x27bd19['getTableColumnsWidths'](_0x1bc76f):null,_0x4fd9dc=_0x5aeb3e['getAttribute']('tableWidth')||null;const _0x193d1d=_0x3b8785['tableWidth']||_0x4fd9dc,_0x29c501=_0x3b8785['columnWidths']||_0x3dd22a,_0x247693=this['editor']['plugins']['get']('Users')['me'];for(const _0x323899 of _0x3fc9c4['getSuggestions']()){const _0x30948d=_0x323899['getContainedElement']();if('resizeTable'===_0x323899['subType']&&_0x30948d===_0x5aeb3e){_0x323899['author']!==_0x247693&&_0x323899['discard']();const _0x38bc9e=_0x323899['data']['commandParams'];_0x4fd9dc=_0x38bc9e[0x0]['tableWidth'],_0x3dd22a=_0x38bc9e[0x0]['columnWidths'];break;}}_0x388772({'table':_0x5aeb3e,'tableWidth':_0x193d1d,'columnWidths':_0x29c501}),_0x3fc9c4['markBlockFormat'](_0x5aeb3e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4fd9dc,'columnWidths':_0x3dd22a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x46b589){if('formatBlock'!=_0x46b589['type']&&'formatInline'!=_0x46b589['type'])return;const {data:_0x417490}=_0x46b589;if(_0x417490&&'resizeTable'===_0x417490['formatGroupId']){const _0x1b04d9='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1b04d9)};}}}class _t extends _0x17f7ef{['afterInit'](){const _0x7a4fea=this['editor'];_0x7a4fea['plugins']['has']('Template')&&_0x7a4fea['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x17f7ef{['afterInit'](){const _0xa29d3e=this['editor'];if(!_0xa29d3e['commands']['get']('insertTableOfContents'))return;_0xa29d3e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3941dd=_0xa29d3e['plugins']['get']('TrackChangesEditing'),_0x51c408=_0xa29d3e['locale'];_0x3941dd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a62c1=>o(_0x51c408,'ELEMENT_TABLE_OF_CONTENTS',_0x1a62c1));}}class Dt extends _0x17f7ef{['afterInit'](){const _0x12ef81=this['editor'];if(!_0x12ef81['plugins']['has']('Title'))return;const _0x437298=_0x12ef81['plugins']['get']('TrackChangesEditing');_0x437298['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x12ef81['locale'],'ELEMENT_TITLE')),_0x12ef81['model']['document']['registerPostFixer'](_0x57a6b9=>{let _0x311cb8=!0x1;const _0x101022=Array['from'](_0x12ef81['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3cedd3,data:_0x20c0e7}of _0x101022){const {group:_0x41b77c}=_0x437298['_splitMarkerName'](_0x3cedd3);if('suggestion'!==_0x41b77c||!_0x20c0e7['newRange'])continue;const _0x38613c=_0x20c0e7['newRange'],_0x457bd5=_0x38613c['end']['nodeBefore'];if(!_0x457bd5||!_0x457bd5['is']('element','title-content'))continue;if(!_0x38613c['start']['isTouching'](_0x38613c['end']))continue;const _0x3b2df1=_0x12ef81['model']['schema']['getNearestSelectionRange'](_0x38613c['end'],'forward');if(_0x3b2df1&&_0x3b2df1['isCollapsed']){const _0x58c017=_0x57a6b9['createRange'](_0x38613c['start'],_0x3b2df1['start']);_0x58c017['isEqual'](_0x38613c)||(_0x57a6b9['updateMarker'](_0x3cedd3,{'range':_0x58c017}),_0x311cb8=!0x0);}_0x311cb8||(_0x57a6b9['removeMarker'](_0x3cedd3),_0x311cb8=!0x0);}return _0x311cb8;});}}class Nt extends _0x17f7ef{['afterInit'](){const _0x194dee=this['editor'],_0xab47e5=_0x194dee['plugins']['get']('TrackChangesEditing');_0x194dee['plugins']['has']('UndoEditing')&&(_0xab47e5['enableCommand']('undo'),_0xab47e5['enableCommand']('redo'));}}class Mt extends _0x17f7ef{static get['requires'](){return[jt];}['afterInit'](){const _0x205e20=this['editor'];if(!_0x205e20['plugins']['has']('TableCaptionEditing'))return;_0x205e20['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x17f7ef{['tableProperties'];['tableCellProperties'];constructor(_0x16dcac){super(_0x16dcac),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 _0x306afa=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3aaad7 of this['tableProperties'])_0x306afa['enableCommand'](_0x3aaad7,(_0x205c93,_0x524260)=>{const _0x1df6cf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3aaad7,[_0x1df6cf],this['tableProperties'],'tableProperties',_0x205c93,_0x524260);});_0x306afa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x306afa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x306afa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x31791d,_0x13ed60)=>this['handleDiscardAction'](this['tableProperties'],_0x31791d,_0x13ed60)),_0x306afa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xdd41b3 of this['tableCellProperties'])_0x306afa['enableCommand'](_0xdd41b3,(_0x391fda,_0x2360f4)=>{const _0x48402e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xdd41b3,_0x48402e,this['tableCellProperties'],'tableCellProperties',_0x391fda,_0x2360f4);});_0x306afa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x306afa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x306afa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x46c7fe,_0x2dabd0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x46c7fe,_0x2dabd0)),_0x306afa['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x306afa['descriptionFactory']['registerDescriptionCallback'](_0x2db4ca=>this['handleSuggestionDescription'](_0x2db4ca));}['_handlePropertyChange'](_0x7fbab3,_0x1f6403,_0x4b4660,_0x48d098,_0x124170,_0x4e2088){const _0x478375=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4e2088['batch'],()=>{for(const _0x15b84e of _0x1f6403){if(this['_getSuggestion'](_0x15b84e,_0x48d098))_0x124170(_0x4e2088);else{const _0x1b107b={};for(const _0x4647fb of _0x4b4660){const _0x27f693=_0x15b84e['getAttribute'](_0x4647fb);void 0x0!==_0x27f693&&(_0x1b107b[_0x4647fb]=_0x27f693);}_0x124170(_0x4e2088),_0x478375['markBlockFormat'](_0x15b84e,{'commandParams':[_0x1b107b]},[],_0x48d098);}}});}['handleDiscardAction'](_0x16d1c7,_0x1998c0,_0x1582c4){const _0x2feb7f=_0x1998c0[0x0]['start']['nodeAfter'],_0x4cf1f2=_0x1582c4['commandParams'][0x0];this['editor']['model']['change'](_0x853dc4=>{for(const _0x41f360 of _0x16d1c7)void 0x0!==_0x4cf1f2[_0x41f360]?_0x853dc4['setAttribute'](_0x41f360,_0x4cf1f2[_0x41f360],_0x2feb7f):_0x853dc4['removeAttribute'](_0x41f360,_0x2feb7f);});}['handleSuggestionDescription'](_0x4a3c58){if(_0x4a3c58['data'])switch(_0x4a3c58['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'](_0x22b808,_0x3c5d70){const _0x19c052=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x577636 of _0x19c052['getSuggestions']({'skipNotAttached':!0x0})){const _0x56a635=_0x577636['getContainedElement']();if(_0x577636['subType']===_0x3c5d70&&_0x56a635===_0x22b808)return _0x577636;}return null;}}const m='$elementName';class p extends _0x17f7ef{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xfe0aac,_0x1373d4,E,V,U,O,G,F,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,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0x15c484){function _0x412a67(_0x2e6529){return _0x2e6529['map'](_0x923b1=>String['fromCharCode'](_0x923b1))['join']('');}super(_0x15c484),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2cf986,_0x3b0641,_0x1c0356,_0x53f0a4)=>{this['_model']['change'](()=>{for(const _0x3aed6e of[..._0x53f0a4,..._0x1c0356])this['_model']['markers']['has'](_0x3aed6e)&&_0x15c484['editing']['reconvertMarker'](_0x3aed6e);});}),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']=_0x15c484['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(),_0x15c484['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x15c484['config']['get']('trackChanges.trackFormatChanges'),_0x15c484['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x15c484['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x15c484,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x412a67([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x412a67([0x34,0x30,0x34,0x38,0x31,0x30,0x33,0x38]);}['init'](){const _0x5169a9=this['editor'],_0x3fef5c=(_0x112fa1,_0x87283)=>{if('attribute'!=_0x112fa1)return'ck-suggestion-marker-'+_0x112fa1;const _0x1dabc8=_0x87283['split']('|')[0x0];return this['_isBlockAttribute'](_0x1dabc8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5169a9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x443d76=>{const {id:_0x21c3be,type:_0x1d1726,subType:_0xede91}=this['_splitMarkerName'](_0x443d76['markerName']),_0x4bf862=['ck-suggestion-marker',_0x3fef5c(_0x1d1726,_0xede91)];let _0x1ad735=0xbb8;return this['activeMarkers']['includes'](_0x443d76['markerName'])&&(_0x4bf862['push']('ck-suggestion-marker--active'),_0x1ad735=0xbc2),'deletion'==_0x1d1726&&(_0x1ad735+=0x5),{'classes':_0x4bf862,'attributes':{'data-suggestion':_0x21c3be},'priority':_0x1ad735};}}),_0x5169a9['conversion']['for']('dataDowncast')['add'](_0x224449=>{_0x224449['on']('addMarker:suggestion',(_0x2a1571,_0x17c9af,_0x57bece)=>{if(!_0x57bece['options']['showSuggestionHighlights'])return;const _0x5eda61=_0x17c9af['item'];if(!_0x5eda61)return;const _0x46f965=_0x57bece['mapper']['toViewElement'](_0x5eda61);_0x5169a9['model']['schema']['isObject'](_0x5eda61)&&_0x46f965&&!_0x46f965['getCustomProperty']('widget')&&_0x46f965['is']('containerElement')&&_0x4f25e1(_0x46f965,_0x57bece['writer']);},{'priority':'high'});}),_0x5169a9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x158fb1,_0x1390eb)=>{if(!_0x1390eb['options']['showSuggestionHighlights'])return null;const {type:_0x44e637,subType:_0x43316a}=this['_splitMarkerName'](_0x158fb1['markerName']);return{'classes':['ck-suggestion-marker',_0x3fef5c(_0x44e637,_0x43316a)],'priority':0xbb8};}});const _0x6ee31f=({showActiveMarkers:_0x1046e0=!0x0,isAttributeSuggestion:_0x2b97b1=!0x1}={})=>(_0x5dbb39,_0x49275c,_0x30fc86)=>{if(!_0x49275c['item'])return;const {id:_0x4ddf9e}=this['_splitMarkerName'](_0x49275c['markerName']);if(_0x2b97b1){const _0x4c6cb8=this['_suggestions']['get'](_0x4ddf9e),_0x729531=this['_getAttributeKey'](_0x4c6cb8);if(!this['_isBlockAttribute'](_0x729531))return;}if(_0x49275c['item']['is']('selection'))return void _0x30fc86['consumable']['consume'](_0x49275c['item'],_0x5dbb39['name']);const _0xb59a0e=_0x30fc86['mapper']['toViewElement'](_0x49275c['item']);if(_0x49275c['item']['is']('element')&&_0x5169a9['model']['schema']['isBlock'](_0x49275c['item'])&&!_0xb59a0e['getCustomProperty']('addHighlight')){_0x30fc86['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xb59a0e),_0x30fc86['writer']['setAttribute']('data-suggestion',_0x4ddf9e,_0xb59a0e),_0x30fc86['mapper']['bindElementToMarker'](_0xb59a0e,_0x49275c['markerName']),_0x1046e0&&(this['activeMarkers']['includes'](_0x49275c['markerName'])?_0x30fc86['writer']['addClass']('ck-suggestion-marker--active',_0xb59a0e):_0x30fc86['writer']['removeClass']('ck-suggestion-marker--active',_0xb59a0e));for(const _0x3eecd6 of _0x5169a9['model']['createRangeIn'](_0x49275c['item'])['getItems']())_0x30fc86['consumable']['consume'](_0x3eecd6,_0x5dbb39['name']);_0x30fc86['consumable']['consume'](_0x49275c['item'],_0x5dbb39['name']);}};_0x5169a9['conversion']['for']('dataDowncast')['add'](_0x47aeaa=>{_0x47aeaa['on']('addMarker:suggestion:formatBlock',(_0x45d1bf,_0x1eaa43,_0x15ab8d)=>{_0x15ab8d['options']['showSuggestionHighlights']&&_0x6ee31f({'showActiveMarkers':!0x1})(_0x45d1bf,_0x1eaa43,_0x15ab8d);},{'priority':'highest'});}),_0x5169a9['conversion']['for']('dataDowncast')['add'](_0xb99ba0=>{_0xb99ba0['on']('addMarker:suggestion:attribute',(_0x54beca,_0x1319e2,_0x466f97)=>{_0x466f97['options']['showSuggestionHighlights']&&_0x6ee31f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x54beca,_0x1319e2,_0x466f97);},{'priority':'highest'});}),_0x5169a9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x24a945,_0x166d1a)=>_0x166d1a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x24a945['substr'](0xb)}}),_0x5169a9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x458d36,{writer:_0x3248cf})=>{let _0x2c8239='suggestion:'+_0x458d36['getAttribute']('suggestion-type')+':'+_0x458d36['getAttribute']('id');return _0x458d36['getAttribute']('marker-count')&&(_0x2c8239+=':'+_0x458d36['getAttribute']('marker-count')),_0x3248cf['createElement']('$marker',{'data-name':_0x2c8239});}}),_0x5169a9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5169a9['conversion']['for']('editingDowncast')['add'](_0x2820ec=>{_0x2820ec['on']('addMarker:suggestion:formatBlock',_0x6ee31f(),{'priority':'high'});}),_0x5169a9['conversion']['for']('editingDowncast')['add'](_0x3f7ada=>{_0x3f7ada['on']('addMarker:suggestion:attribute',_0x6ee31f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5169a9['conversion']['for']('editingDowncast')['add'](_0x12e2ec=>{_0x12e2ec['on']('removeMarker:suggestion:formatBlock',(_0x4d9766,_0x250ea2,_0x2b0929)=>{const _0x1e85fe=_0x2b0929['mapper']['markerNameToElements'](_0x250ea2['markerName']);if(_0x1e85fe){for(const _0x2cff60 of _0x1e85fe)_0x2cff60['getCustomProperty']('addHighlight')||(_0x2b0929['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2cff60),_0x2b0929['writer']['removeAttribute']('data-suggestion',_0x2cff60),_0x2b0929['mapper']['unbindElementFromMarkerName'](_0x2cff60,_0x250ea2['markerName']));}},{'priority':'high'});}),_0x5169a9['conversion']['for']('editingDowncast')['add'](_0x1a1584=>{_0x1a1584['on']('removeMarker:suggestion:attribute',(_0x53ad8a,_0x4dbda9,_0x1a26a3)=>{const _0x428f92=_0x1a26a3['mapper']['markerNameToElements'](_0x4dbda9['markerName']);if(!_0x428f92)return;const {id:_0x5004da}=this['_splitMarkerName'](_0x4dbda9['markerName']),_0x160f00=this['_suggestions']['get'](_0x5004da),_0x5d96c7=this['_getAttributeKey'](_0x160f00);if(this['_isBlockAttribute'](_0x5d96c7)){for(const _0x9cd1c9 of _0x428f92)_0x9cd1c9['getCustomProperty']('addHighlight')||(_0x1a26a3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9cd1c9),_0x1a26a3['writer']['removeAttribute']('data-suggestion',_0x9cd1c9),_0x1a26a3['mapper']['unbindElementFromMarkerName'](_0x9cd1c9,_0x4dbda9['markerName']));}},{'priority':'high'});}),_0x5169a9['model']['document']['registerPostFixer'](_0x1e0fb7=>{let _0x1d407b=!0x1;const _0x19fc4b=Array['from'](_0x5169a9['model']['document']['differ']['getChangedMarkers']()),_0x5dd20e=new Set();for(const {name:_0x329147,data:_0x1329fd}of _0x19fc4b){const {group:_0x17e40f,type:_0x2688a7,subType:_0x499745,id:_0xbc2b6f}=this['_splitMarkerName'](_0x329147);if('suggestion'!==_0x17e40f)continue;const _0x370214=this['_suggestions']['get'](_0xbc2b6f);if(null!=_0x1329fd['newRange']){'formatInline'==_0x2688a7&&(_0x1d407b=_0x1d407b||Et(_0x1329fd['newRange'],_0x329147,_0x1e0fb7,_0x5169a9['model']['schema']));const _0x28e83c='attribute'==_0x2688a7&&this['_isBlockAttribute'](_0x499745['split']('|')[0x0]);if(_0x1329fd['newRange']['isCollapsed']||'$graveyard'==_0x1329fd['newRange']['root']['rootName']||'formatBlock'==_0x2688a7&&!Ut(_0x1329fd['newRange'])||_0x28e83c&&!Ut(_0x1329fd['newRange'])||'deletion'==_0x2688a7&&!(!Tt(_0x28d4c3=_0x1329fd['newRange'])&&!function(_0x3ca6b4){return _0x3ca6b4['start']['parent']==_0x3ca6b4['end']['nodeBefore']&&_0x3ca6b4['start']['isAtEnd'];}(_0x28d4c3)))_0x1e0fb7['removeMarker'](_0x329147),_0x1d407b=!0x0;else{if(!_0x370214||!_0x370214['isInContent'])continue;_0x5dd20e['add'](_0x370214);}}}var _0x28d4c3;return _0x5dd20e['size']>0x0&&(_0x1d407b=!!this['_joinWithAdjacentSuggestions'](_0x5dd20e)||_0x1d407b),_0x1d407b;}),_0x5169a9['model']['document']['registerPostFixer'](_0x35e9d9=>{let _0x3623c7=!0x1;for(const _0xd08a6c of _0x5169a9['model']['document']['differ']['getChanges']())if('insert'==_0xd08a6c['type'])for(const _0x5ad7da of this['_suggestions']['values']()){if(_0x5ad7da['isMultiRange']||!_0x5ad7da['isInContent'])continue;const _0x343173='formatBlock'==_0x5ad7da['type'],_0x1be57d=this['_getAttributeKey'](_0x5ad7da),_0x2582f9=_0x1be57d&&this['_isBlockAttribute'](_0x1be57d);if(!_0x343173&&!_0x2582f9)continue;const _0x67522d=_0x5ad7da['getFirstRange']();if(_0x67522d['start']['parent']!=_0x67522d['end']['parent']&&!_0x67522d['end']['isAtEnd']){const _0x1543f0=_0x5169a9['model']['createPositionAt'](_0x67522d['start']['nodeAfter'],'end'),_0x19b173=_0x5169a9['model']['createRange'](_0x67522d['start'],_0x1543f0);_0x35e9d9['updateMarker'](_0x5ad7da['getFirstMarker'](),{'range':_0x19b173}),_0x3623c7=!0x0;}}return _0x3623c7;}),_0x5169a9['model']['document']['registerPostFixer'](_0x3c58ec=>this['_processAttributeChanges'](_0x3c58ec)),_0x5169a9['model']['document']['registerPostFixer'](_0x227695=>!_0x227695['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x227695)),_0x5169a9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5169a9['model']['document']['on']('change:data',(_0x50915a,_0x15b67b)=>{if(!_0x15b67b['isLocal']||_0x15b67b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x6b7118=_0x5169a9['model']['document']['differ']['getChanges']();if(0x0==_0x6b7118['length'])return;const _0xb1c51=[],_0x46e8c4=_0x6b7118['filter'](_0x304671=>'attribute'==_0x304671['type']),_0x20d75e=_0x6b7118['filter'](_0x50f166=>'insert'==_0x50f166['type']&&'$text'!=_0x50f166['name']),_0x56939a=_0x6b7118['filter'](_0x4d163f=>'remove'==_0x4d163f['type']&&'$text'!=_0x4d163f['name']);for(const _0x3dd107 of _0x46e8c4)this['_isRegisteredAttribute'](_0x3dd107['attributeKey'])&&_0xb1c51['push']({'key':_0x3dd107['attributeKey'],'newValue':_0x3dd107['attributeNewValue'],'oldValue':_0x3dd107['attributeOldValue'],'range':Ot(_0x3dd107['range'],_0x5169a9['model'])});for(const _0x344699 of _0x20d75e){const _0x29c8e5=_0x56939a['find'](_0x2ab732=>_0x2ab732['_element']===_0x344699['_element']);if(_0x29c8e5){const _0xe5f0c=Ft(_0x344699['position']['nodeAfter'],_0x5169a9['model']);_0x29c8e5['name']!==_0x344699['name']&&_0xb1c51['push']({'key':m,'newValue':_0x344699['name'],'oldValue':_0x29c8e5['name'],'range':_0xe5f0c});for(const [_0x333e56,_0x1d7952]of _0x29c8e5['attributes']){if(!this['_isRegisteredAttribute'](_0x333e56))continue;const _0xe65108=_0x344699['attributes']['get'](_0x333e56);_0x1d7952!==_0xe65108&&_0xb1c51['push']({'key':_0x333e56,'newValue':_0xe65108,'oldValue':_0x1d7952,'range':_0xe5f0c});}for(const [_0x594c06,_0x3c4f74]of _0x344699['attributes'])this['_isRegisteredAttribute'](_0x594c06)&&(_0x29c8e5['attributes']['has'](_0x594c06)||_0xb1c51['push']({'key':_0x594c06,'newValue':_0x3c4f74,'oldValue':null,'range':_0xe5f0c}));}}0x0!=_0xb1c51['length']&&_0x5169a9['model']['enqueueChange'](_0x15b67b,_0x1eabe2=>{const _0x1d7628=_0x5e29c1();for(const {range:_0x54bddc,key:_0x478154,oldValue:_0x1bbb4c,newValue:_0x5238d3}of _0xb1c51)this['markAttributeChange'](_0x54bddc,_0x478154,_0x1bbb4c,_0x5238d3,{'groupId':_0x1d7628});this['_reduceExistingSuggestions'](_0x1eabe2,_0xb1c51);});},{'priority':'lowest'}),_0x5169a9['model']['markers']['on']('update:suggestion',(_0x10c98e,_0x2f8b2c,_0x307e04)=>{if(null==_0x307e04){const {id:_0x40c381}=this['_splitMarkerName'](_0x2f8b2c['name']),_0x5ea4c3=this['_suggestions']['get'](_0x40c381);_0x5ea4c3&&_0x5ea4c3['addMarkerName'](_0x2f8b2c['name']);}}),_0x5169a9['model']['document']['on']('change:data',()=>{const _0xb32015=Array['from'](_0x5169a9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x35860a=>'suggestion'===this['_splitMarkerName'](_0x35860a['name'])['group']);if(0x0===_0xb32015['length'])return;_0xb32015['sort']((_0x2b4aed,_0x303c3c)=>{const _0x12e600=_0x2b4aed['data']['oldRange'],_0x55db71=_0x303c3c['data']['oldRange'];return null===_0x12e600&&null===_0x55db71?0x0:null===_0x12e600&&null!==_0x55db71?-0x1:null!==_0x12e600&&null===_0x55db71?0x1:_0x12e600['start']['isBefore'](_0x55db71['start'])?-0x1:0x1;});const _0x3a80cf=new Set(),_0x1867bc=new Set();for(const {name:_0x363afd,data:_0x28f287}of _0xb32015){const {id:_0x77a1d6}=this['_splitMarkerName'](_0x363afd);if(null===_0x28f287['oldRange']){const _0x5234d9=this['_handleNewSuggestionMarker'](_0x363afd);_0x1867bc['add'](_0x5234d9);}else{const _0x22c46b=this['_suggestions']['get'](_0x77a1d6);null!==_0x28f287['newRange']||_0x22c46b['isInContent']?(_0x3a80cf['add'](_0x22c46b['head']),_0x1867bc['add'](_0x22c46b)):this['_removeSuggestion'](_0x22c46b);}}_0x1867bc['size']>0x0&&this['_refreshSuggestionsChain'](_0x1867bc);for(const _0x340e31 of _0x3a80cf)this['fire']('suggestionChanged',_0x340e31);}),_0x5169a9['model']['on']('applyOperation',(_0x1848d2,_0x2281a2)=>{const _0x7ab9d5=_0x2281a2[0x0];if(!this['_suggestions']['size'])return;if(!_0x7ab9d5['isDocumentOperation'])return;if(_0x7ab9d5['batch']['isUndo']||!_0x7ab9d5['batch']['isLocal'])return;let _0x4f7356,_0x2e5f2a;switch(_0x7ab9d5['type']){case'insert':_0x4f7356=_0x5169a9['model']['createPositionAt'](_0x7ab9d5['position']),_0x2e5f2a=_0x4f7356['getShiftedBy'](_0x7ab9d5['howMany']);break;case'split':_0x4f7356=_0x5169a9['model']['createPositionAt'](_0x7ab9d5['splitPosition']),_0x2e5f2a=_0x5169a9['model']['createPositionAt'](_0x7ab9d5['moveTargetPosition']);break;case'move':_0x4f7356=_0x5169a9['model']['createPositionAt'](_0x7ab9d5['targetPosition']),_0x2e5f2a=_0x4f7356['getShiftedBy'](_0x7ab9d5['howMany']);break;default:return;}const _0xc6c109=_0x5169a9['model']['createRange'](_0x4f7356,_0x2e5f2a);_0x5169a9['model']['change'](()=>{for(const {suggestion:_0x152b3d,meta:_0xaef5e5}of this['_findSuggestions'](_0xc6c109)){if(_0x152b3d['isMultiRange'])continue;if('formatInline'==_0x152b3d['type'])continue;const _0x26d3ca=this['_getAttributeKey'](_0x152b3d);if(_0x26d3ca&&this['_isBlockAttribute'](_0x26d3ca)&&'split'!=_0x7ab9d5['type'])continue;const _0x5de62c=_0x152b3d['data']&&_0x152b3d['data']['multipleBlocks'];('formatBlock'!=_0x152b3d['type']||'split'==_0x7ab9d5['type']&&!_0x5de62c)&&(_0xaef5e5['containsRangeInObject']||'insertion'==_0x152b3d['type']&&_0xaef5e5['isOwn']||_0x152b3d['getFirstRange']()['containsRange'](_0xc6c109)&&this['_breakSuggestionMarker'](_0x152b3d,_0x4f7356,_0x2e5f2a));}});},{'priority':'lowest'}),_0x5169a9['model']['on']('deleteContent',(_0x4acfe6,_0xecc6bb)=>{const _0x227178=_0xecc6bb[0x0],_0x5e7cb6=_0xecc6bb[0x1];if(_0x5e7cb6&&_0x5e7cb6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x227178['isCollapsed'])return;const _0x380998=_0x5169a9['model']['schema'],{start:_0x513c17,end:_0x26bc5b}=_0x227178['getFirstRange'](),_0x2e521a=_0x513c17['nodeAfter']&&_0x380998['isLimit'](_0x513c17['nodeAfter'])?null:_0x380998['getNearestSelectionRange'](_0x513c17,'forward'),_0x4e6a60=_0x26bc5b['nodeBefore']&&_0x380998['isLimit'](_0x26bc5b['nodeBefore'])?null:_0x380998['getNearestSelectionRange'](_0x26bc5b,'backward'),_0x26d121=_0x5169a9['model']['createRange'](_0x2e521a?_0x2e521a['start']:_0x513c17,_0x4e6a60?_0x4e6a60['end']:_0x26bc5b);_0x5169a9['model']['change'](_0x3f18d0=>{this['markDeletion'](_0x26d121);const _0x9bc6f0=_0x5169a9['model']['schema']['getNearestSelectionRange'](_0x26d121['start']);_0x227178['is']('documentSelection')?_0x3f18d0['setSelection'](_0x9bc6f0):_0x227178['setTo'](_0x9bc6f0);}),_0x4acfe6['stop']();},{'priority':_0x32be84['normal']+0xa}),_0x5169a9['model']['on']('insertContent',(_0xcfffc9,_0x120101)=>{const _0x5bda7b=_0x120101[_0x120101['length']-0x1];_0x5bda7b&&_0x5bda7b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5169a9['model']['change'](()=>{let _0x14fdbd=_0x5169a9['model']['insertContent'](_0x120101[0x0],_0x120101[0x1],_0x120101[0x2],{'forceDefaultExecution':!0x0});if(!_0x14fdbd)return;_0xcfffc9['return']=_0x14fdbd['clone']();const _0x356b7b=_0x14fdbd['end']['nodeBefore'],_0x22b945=_0x5169a9['model']['schema'];_0x356b7b&&_0x22b945['isBlock'](_0x356b7b)&&!_0x22b945['isObject'](_0x356b7b)&&(_0x14fdbd=_0x5169a9['model']['createRange'](_0x14fdbd['start'],_0x5169a9['model']['createPositionAt'](_0x356b7b,'end'))),this['markInsertion'](_0x14fdbd);}),_0xcfffc9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5a50a7=new $(_0x5169a9,this['_suggestions']);_0x5169a9['commands']['add']('acceptSuggestion',_0x5a50a7),this['enableCommand']('acceptSuggestion');const _0x3abdc8=new B(_0x5169a9,this['_suggestions']);_0x5169a9['commands']['add']('discardSuggestion',_0x3abdc8),this['enableCommand']('discardSuggestion'),_0x5169a9['commands']['add']('acceptAllSuggestions',new x(_0x5169a9,_0x5a50a7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5169a9['commands']['add']('discardAllSuggestions',new x(_0x5169a9,_0x3abdc8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5169a9['commands']['add']('acceptSelectedSuggestions',new R(_0x5169a9,_0x5a50a7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5169a9['commands']['add']('discardSelectedSuggestions',new R(_0x5169a9,_0x3abdc8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4d1250=_0x5169a9['plugins']['get']('CommentsRepository');this['listenTo'](_0x4d1250,'addComment',(_0x5bbba8,{threadId:_0x1a6989})=>{const _0x2f476b=this['_suggestions']['get'](_0x1a6989);_0x2f476b&&_0x2f476b['commentThread']&&0x1===_0x2f476b['commentThread']['length']&&this['_updateSuggestionData'](_0x1a6989,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4d1250,'removeComment',(_0x2dc4c9,{threadId:_0x27219f})=>{const _0x30e7c8=this['_suggestions']['get'](_0x27219f);_0x30e7c8&&_0x30e7c8['commentThread']&&!_0x30e7c8['commentThread']['length']&&this['_updateSuggestionData'](_0x27219f,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x23d583){if(this['_adapter'])throw new _0x47d488('track-changes-adapter-already-set',this);this['_adapter']=_0x23d583;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2bc44a=!0x1,toJSON:_0x5b9507=!0x1}={}){const _0x2c27d2=[];for(const _0x583c79 of this['_suggestions']['values']())_0x2bc44a&&!_0x583c79['isInContent']||_0x2c27d2['push'](_0x583c79);return _0x5b9507?_0x2c27d2['map'](_0x5e59a7=>_0x5e59a7['toJSON']()):_0x2c27d2;}['getSuggestion'](_0x336bea){const _0x2f5f1a=this['_suggestions']['get'](_0x336bea);if(!_0x2f5f1a)throw new _0x47d488('track-changes-suggestion-not-found',this);return _0x2f5f1a;}['hasSuggestion'](_0x319977){return this['_suggestions']['has'](_0x319977);}['addSuggestionData'](_0x51d956){const {authorId:_0x5ee14f,id:_0x27c06b,attributes:_0x33b841}=_0x51d956,[_0x380957,_0x29ca3d]=_0x51d956['type']['split'](':'),_0xfee1b5=this['_suggestions']['get'](_0x27c06b)||this['_createSuggestion'](_0x380957,_0x29ca3d,_0x27c06b,_0x5ee14f,_0x33b841);if(this['_addThreadToSuggestion'](_0xfee1b5),this['_checkSuggestionCorrectness'](_0xfee1b5,_0x380957,_0x29ca3d||null,_0x5ee14f),_0xfee1b5['createdAt']=_0x51d956['createdAt'],_0xfee1b5['_isDataLoaded']=!0x0,_0x33b841&&_0x33b841['@external']){const _0x467cf1=_0x33b841['@external'],_0x4d3ed5=this['_getExternalAuthor'](_0x467cf1['authorName']);_0xfee1b5['authoredAt']=_0x467cf1['createdAt'],_0xfee1b5['author']=_0x4d3ed5,_0xfee1b5['isExternal']=!0x0;}else _0xfee1b5['authoredAt']=_0x51d956['createdAt'];switch(_0x51d956['data']&&(_0xfee1b5['data']=_0x51d956['data']),_0x51d956['attributes']&&(_0xfee1b5['attributes']=_0x51d956['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xfee1b5['_saved']=!0x0),this['_suggestionState']['get'](_0xfee1b5)){case'notReady':this['_suggestionState']['set'](_0xfee1b5,'dataReady');break;case'markerReady':_0xfee1b5['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xfee1b5])),this['_refreshSuggestionsChain'](new Set([_0xfee1b5])),this['_suggestionState']['set'](_0xfee1b5,'ready'),this['fire']('suggestionLoaded',_0xfee1b5)):this['_suggestionState']['set'](_0xfee1b5,'removed');}return _0xfee1b5;}['acceptSuggestion'](_0x532900){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x128706 of _0x532900['getAllAdjacentSuggestions']())_0x128706['accept']();});});}['discardSuggestion'](_0x1d45e1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5c0cad of _0x1d45e1['getAllAdjacentSuggestions']())_0x5c0cad['discard']();});});}['enableCommand'](_0x484769,_0x51bea7){const _0x58d4f7=this['editor']['commands']['get'](_0x484769);if(!_0x58d4f7)throw new _0x47d488('track-changes-command-not-found',this,{'commandName':_0x484769});if(this['_enabledCommands']['has'](_0x58d4f7))throw new _0x47d488('track-changes-enable-command-twice',this,{'commandName':_0x484769});this['_enabledCommands']['add'](_0x58d4f7),_0x51bea7&&_0x58d4f7['on']('execute',(_0x17fc6e,_0x2a298a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2a298a['length']>0x0&&_0x2a298a[_0x2a298a['length']-0x1]&&_0x2a298a[_0x2a298a['length']-0x1]['forceDefaultExecution']?_0x2a298a['pop']():(_0x17fc6e['return']=_0x51bea7((..._0x575c60)=>_0x58d4f7['execute'](..._0x575c60,{'forceDefaultExecution':!0x0}),..._0x2a298a),_0x17fc6e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3998f4){let _0x593b08,_0x47c123;const _0x554804=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x593b08=_0x3998f4();}catch(_0x2dab76){_0x47c123=_0x2dab76;}return _0x554804||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x47c123&&_0x47d488['rethrowUnexpectedError'](_0x47c123,this),_0x593b08;}['markInsertion'](_0x108cb6,_0xc5dc96=null,_0x1203a3={}){if(_0x108cb6['isCollapsed'])return null;const _0x418441=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5bcb44,meta:_0x3d51ea}of this['_findSuggestions'](_0x108cb6,'insertion'))if(_0x3d51ea['isOwn']){if(!_0x3d51ea['isNextTo']){if(_0x3d51ea['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x5bcb44,_0x1203a3))continue;return _0x5bcb44;}if(Lt(_0x5bcb44,_0x1203a3))return _0x5bcb44;this['_breakSuggestionMarker'](_0x5bcb44,_0x108cb6['start'],_0x108cb6['end']);break;}if(_0xc5dc96==_0x5bcb44['subType']&&Lt(_0x5bcb44,_0x1203a3)){const _0x1879a3=_0x5bcb44['getFirstRange']();return _0x1879a3['start']['isEqual'](_0x108cb6['end'])?this['_setSuggestionRange'](_0x5bcb44,this['_model']['createRange'](_0x108cb6['start'],_0x1879a3['end'])):this['_setSuggestionRange'](_0x5bcb44,this['_model']['createRange'](_0x1879a3['start'],_0x108cb6['end'])),_0x5bcb44;}}const _0x40274d=_0x5e29c1(),_0x1f9376=_0x418441['id'],_0x230427=_0xc5dc96?'insertion:'+_0xc5dc96:'insertion',_0x2c0968=this['_setSuggestionData']({'id':_0x40274d,'type':_0x230427,'createdAt':new Date(),'authorId':_0x1f9376,'attributes':_0x1203a3});return this['_addSuggestionMarker'](_0x230427,_0x40274d,_0x1f9376,_0x108cb6),_0x2c0968;}['markMultiRangeInsertion'](_0x3dbb73,_0x1c0f17='multi',_0x10df22={}){const _0x3dfa15=this['editor']['plugins']['get']('Users')['me'],_0x30fe5d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1c0f17,'join');for(const _0x4dc7d9 of this['getSuggestions']())if(_0x4dc7d9['author']['id']==_0x3dfa15['id']&&'insertion'==_0x4dc7d9['type']&&_0x4dc7d9['subType']==_0x1c0f17&&Lt(_0x4dc7d9,_0x10df22)&&(_0x30fe5d(_0x4dc7d9['getRanges'](),_0x3dbb73)||_0x30fe5d(_0x3dbb73,_0x4dc7d9['getRanges']()))){for(const _0x4469f7 of _0x3dbb73)_0x4dc7d9['addRange'](_0x4469f7);return _0x4dc7d9;}for(const {suggestion:_0x2b773a,meta:_0x6ac51d}of this['_findSuggestions'](_0x3dbb73,'insertion')){if(!_0x6ac51d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x6ac51d['containsRangeInObject'])continue;if(!Lt(_0x2b773a,_0x10df22))continue;let _0x2f12e8=!0x0;for(const _0x509190 of _0x2b773a['getRanges']())for(const _0x63fc4a of _0x3dbb73)if(!_0x509190['containsRange'](_0x63fc4a)){_0x2f12e8=!0x1;break;}if(_0x2f12e8)return _0x2b773a;}const _0x4a641a=_0x5e29c1(),_0x24ca71=_0x3dfa15['id'],_0x1a9479='insertion:'+_0x1c0f17,_0x81c869=this['_setSuggestionData']({'id':_0x4a641a,'type':_0x1a9479,'createdAt':new Date(),'authorId':_0x24ca71,'attributes':_0x10df22});for(const _0x154be9 of _0x3dbb73)this['_addSuggestionMarker'](_0x1a9479,_0x4a641a,_0x24ca71,_0x154be9,u['getMultiRangeId']());return _0x81c869;}['markInlineFormat'](_0x4c420e,_0x339475,_0x167ee3=null,_0x479496={}){if(_0x167ee3=_0x167ee3||Vt(_0x339475),_0x4c420e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5b7ac1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x167ee3,'accept');return this['forceDefaultExecution'](()=>_0x5b7ac1([_0x4c420e],_0x339475,_0x479496)),null;}const _0x542cd7=this['editor']['plugins']['get']('Users')['me'],_0x5aedb0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3b39e8,meta:_0x8255c3}of this['_findSuggestions'](_0x4c420e,'insertion'))_0x8255c3['isOwn']&&!_0x8255c3['isInsideObject']&&_0x5aedb0['push'](..._0x3b39e8['getRanges']());}const _0x34adcf=function(_0x268c85,_0x401325){const _0x56d753=[];for(const _0x47011c of _0x401325){const _0x2b16f0=_0x268c85['getIntersection'](_0x47011c);_0x2b16f0&&_0x56d753['push'](_0x2b16f0);}return _0x56d753;}(_0x4c420e,_0x5aedb0),_0x2f15ce=function(_0x4f93aa,_0x583966){const _0x5bef5b=[_0x4f93aa];for(const _0x34f45 of _0x583966){let _0x15f8f1=0x0;for(;_0x15f8f1<_0x5bef5b['length'];){const _0x25e0f7=_0x5bef5b[_0x15f8f1]['getDifference'](_0x34f45);_0x5bef5b['splice'](_0x15f8f1,0x1,..._0x25e0f7),_0x15f8f1+=_0x25e0f7['length'];}}return _0x5bef5b;}(_0x4c420e,_0x5aedb0);_0x34adcf['length']&&this['_model']['change'](()=>{for(const _0x440af2 of _0x34adcf){const _0x5b45b7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x167ee3,'accept');this['forceDefaultExecution'](()=>_0x5b45b7([_0x440af2],_0x339475,_0x479496));}});for(const _0x2a1be2 of _0x2f15ce){let _0x2630ce=null,_0x1cc724=_0x2a1be2['start'],_0xce268b=_0x2a1be2['end'];for(const {suggestion:_0x185bd9,meta:_0x53765b}of this['_findSuggestions'](_0x2a1be2,'formatInline')){if(!_0x53765b['isOwn'])continue;if(_0x185bd9['subType']!=_0x167ee3)continue;if(!Lt(_0x185bd9,_0x479496))continue;const _0x4bbe7b=_0x185bd9['getFirstRange']();if(_0x4bbe7b['containsRange'](_0x2a1be2,!0x0))return null;_0x1cc724=_0x1cc724['isBefore'](_0x4bbe7b['start'])?_0x1cc724:_0x4bbe7b['start'],_0xce268b=_0xce268b['isAfter'](_0x4bbe7b['end'])?_0xce268b:_0x4bbe7b['end'],_0x2630ce?_0x4bbe7b['start']['isBefore'](_0x2630ce['getFirstRange']()['start'])?(_0x2630ce['removeMarkers'](),_0x2630ce=_0x185bd9):_0x185bd9['removeMarkers']():_0x2630ce=_0x185bd9;}const _0x118efb=this['_model']['createRange'](_0x1cc724,_0xce268b);if(_0x2630ce)this['_setSuggestionRange'](_0x2630ce,_0x118efb);else{const _0x243029=_0x5e29c1(),_0x52d5b8=_0x542cd7['id'];this['_setSuggestionData']({'id':_0x243029,'type':'formatInline:'+_0x167ee3,'data':_0x339475,'createdAt':new Date(),'authorId':_0x52d5b8,'attributes':_0x479496}),this['_addSuggestionMarker']('formatInline:'+_0x167ee3,_0x243029,_0x52d5b8,_0x118efb);}}return null;}['markBlockFormat'](_0x3d1939,_0x43d72c,_0x2f5792=[],_0x159c5c=null,_0x54421d={}){_0x43d72c['formatGroupId']||(_0x43d72c['formatGroupId']=_0x43d72c['commandName']),_0x43d72c['multipleBlocks']=_0x3d1939['is']('range'),_0x159c5c=_0x159c5c||Vt(_0x43d72c);const _0x52f5bb=_0x2f5792['map'](_0x3ebeac=>Ft(_0x3ebeac,this['_model'])),_0x2e9676=_0x3d1939['is']('range')?_0x3d1939:Ft(_0x3d1939,this['_model']);if('never'===this['_trackFormatChanges']){const _0x910233=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x159c5c,'accept');return this['forceDefaultExecution'](()=>_0x910233([_0x2e9676],_0x43d72c,_0x54421d)),null;}_0x52f5bb['push'](_0x2e9676);let _0x554275=!0x0;for(const _0x4c5968 of _0x52f5bb)if(!this['_rangeIsInLocalUserInsertion'](_0x4c5968)){_0x554275=!0x1;break;}if(_0x554275&&'always'!==this['_trackFormatChanges']){const _0x18ba4e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x159c5c,'accept');return this['forceDefaultExecution'](()=>_0x18ba4e([_0x2e9676],_0x43d72c,_0x54421d)),null;}let _0x7c824e=null,_0x4652ad=_0x2e9676['start'],_0xf52837=_0x2e9676['end'];for(const {suggestion:_0x2948a7,meta:_0x25944f}of this['_findSuggestions'](_0x2e9676,'formatBlock')){if(!_0x25944f['isOwn'])continue;if(_0x25944f['isNextTo']||_0x25944f['containsRangeInObject']||_0x25944f['isInsideObject'])continue;if(_0x2948a7['data']['formatGroupId']!=_0x43d72c['formatGroupId'])continue;if(!Lt(_0x2948a7,_0x54421d))continue;const _0x46345f=_0x2948a7['getFirstRange']();if(_0x2948a7['subType']==_0x159c5c){if(_0x46345f['containsRange'](_0x2e9676,!0x0))return null;_0x4652ad=_0x4652ad['isBefore'](_0x46345f['start'])?_0x4652ad:_0x46345f['start'],_0xf52837=_0xf52837['isAfter'](_0x46345f['end'])?_0xf52837:_0x46345f['end'],_0x7c824e?_0x46345f['start']['isBefore'](_0x7c824e['getFirstRange']()['start'])?(_0x7c824e['removeMarkers'](),_0x7c824e=_0x2948a7):_0x2948a7['removeMarkers']():_0x7c824e=_0x2948a7;}else{const _0x26ea2b=_0x2e9676['getIntersection'](_0x46345f);this['_cutOutSuggestionMarker'](_0x2948a7,_0x26ea2b);}}const _0x52ab33=this['editor']['plugins']['get']('Users')['me'],_0x25e2fa=_0x5e29c1(),_0x16bacd=_0x52ab33['id'];if(_0x7c824e)return this['_setSuggestionRange'](_0x7c824e,this['_model']['createRange'](_0x4652ad,_0xf52837)),_0x7c824e;{const _0x15cc0b=this['_setSuggestionData']({'id':_0x25e2fa,'type':'formatBlock:'+_0x159c5c,'data':_0x43d72c,'createdAt':new Date(),'authorId':_0x16bacd,'attributes':_0x54421d});return this['_addSuggestionMarker']('formatBlock:'+_0x159c5c,_0x25e2fa,_0x16bacd,this['_model']['createRange'](_0x4652ad,_0xf52837)),_0x15cc0b;}}['markMultiRangeBlockFormat'](_0x5c2d35,_0x37fa76,_0x2b7c9a=[],_0x2f2fb9=null,_0x223aa2={}){_0x37fa76['formatGroupId']||(_0x37fa76['formatGroupId']=_0x37fa76['commandName']);const _0x48cf01=_0x5c2d35[0x0];_0x37fa76['multipleBlocks']=_0x48cf01['is']('range'),_0x2f2fb9=_0x2f2fb9||Vt(_0x37fa76);const _0x5b9481=_0x2b7c9a['map'](_0x4b8d1c=>Ft(_0x4b8d1c,this['_model'])),_0x21cfb5=_0x48cf01['is']('range')?_0x5c2d35:_0x5c2d35['map'](_0x3924d7=>Ft(_0x3924d7,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2dfb7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f2fb9,'accept');return this['forceDefaultExecution'](()=>_0x2dfb7f(_0x21cfb5,_0x37fa76,_0x223aa2)),null;}_0x5b9481['push'](..._0x21cfb5);let _0x1d9bc4=!0x0;for(const _0x4de71a of _0x5b9481)if(!this['_rangeIsInLocalUserInsertion'](_0x4de71a)){_0x1d9bc4=!0x1;break;}if(_0x1d9bc4&&'always'!==this['_trackFormatChanges']){const _0x5c34c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f2fb9,'accept');return this['forceDefaultExecution'](()=>_0x5c34c4(_0x21cfb5,_0x37fa76,_0x223aa2)),null;}const _0x24ec79=this['editor']['plugins']['get']('Users')['me'];for(const _0x233a6f of this['getSuggestions']()){if(_0x233a6f['author']['id']!=_0x24ec79['id'])continue;if('formatBlock'!=_0x233a6f['type']||_0x233a6f['data']['formatGroupId']!=_0x37fa76['formatGroupId'])continue;if(!Lt(_0x233a6f,_0x223aa2))continue;const _0x5cb281=_0x233a6f['subType']==_0x2f2fb9;for(let _0x305053=0x0;_0x305053<_0x21cfb5['length'];_0x305053++){const _0x4362b1=_0x21cfb5[_0x305053];for(const _0x493c90 of _0x233a6f['getMarkers']()){const _0x438cd6=_0x493c90['getRange']();if(_0x4362b1['isEqual'](_0x438cd6)){_0x5cb281?(_0x21cfb5['splice'](_0x305053,0x1),_0x305053--):_0x233a6f['removeMarker'](_0x493c90['name']);break;}}}}if(0x0==_0x21cfb5['length'])return null;const _0x56d2a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f2fb9,'join');for(const _0x4e3dd9 of this['getSuggestions']())if(_0x4e3dd9['author']['id']==_0x24ec79['id']&&'formatBlock'==_0x4e3dd9['type']&&_0x4e3dd9['data']['formatGroupId']==_0x37fa76['formatGroupId']&&_0x4e3dd9['subType']==_0x2f2fb9&&Lt(_0x4e3dd9,_0x223aa2)&&(_0x56d2a7(_0x4e3dd9['getRanges'](),_0x21cfb5)||_0x56d2a7(_0x21cfb5,_0x4e3dd9['getRanges']()))){for(const _0x416910 of _0x21cfb5)_0x4e3dd9['addRange'](_0x416910);return _0x4e3dd9;}const _0x5190ae=_0x5e29c1(),_0x439649=_0x24ec79['id'],_0x274b0b='formatBlock:'+_0x2f2fb9,_0x230f2f=this['_setSuggestionData']({'id':_0x5190ae,'type':_0x274b0b,'data':_0x37fa76,'createdAt':new Date(),'authorId':_0x439649,'attributes':_0x223aa2});for(const _0x117d8f of _0x21cfb5)this['_addSuggestionMarker'](_0x274b0b,_0x5190ae,_0x439649,_0x117d8f,u['getMultiRangeId']());return _0x230f2f;}['markDeletion'](_0x129ae5,_0x927831=null,_0x109c83={}){if(_0x129ae5['isCollapsed'])return null;const _0x4c7d24=this['editor']['plugins']['get']('Users')['me'],_0x54afd4=new _0x3939f1(_0x129ae5['start'],_0x129ae5['end']);for(const {suggestion:_0x397d53,meta:_0x283338}of this['_findSuggestions'](_0x54afd4,'insertion'))if(_0x283338['isOwn']&&!_0x283338['isNextTo']){if(_0x397d53['isMultiRange']){const _0x50384b=_0x397d53['getRanges']()['filter'](_0x151090=>'$graveyard'!=_0x151090['root']['rootName']);_0x50384b['every'](_0xa29a64=>_0x54afd4['containsRange'](_0xa29a64,!0x0))&&_0x397d53['discard']();if(_0x50384b['some'](_0x3621c9=>_0x3621c9['containsRange'](_0x54afd4,!0x0))){const _0x2ce884=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x927831,'accept');return this['forceDefaultExecution'](()=>_0x2ce884([_0x54afd4],null,_0x109c83)),null;}}else{const _0x42a03d=_0x54afd4['getIntersection'](_0x397d53['getFirstRange']());null!==_0x42a03d&&_0x397d53['_onDiscard']([_0x42a03d],null,_0x109c83);}}if(_0x54afd4['detach'](),_0x54afd4['isCollapsed']||'$graveyard'==_0x54afd4['root']['rootName'])return null;let _0x53792d=null,_0x577e2c=_0x54afd4['start'],_0x2a78f9=_0x54afd4['end'];const _0x2b426f=this['_findSuggestions'](_0x54afd4,'deletion');for(const {suggestion:_0x162448,meta:_0x3847c4}of _0x2b426f){const _0x3260fb=this['_model']['createRange'](_0x577e2c,_0x2a78f9);if(_0x3847c4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3847c4['containsRangeInObject']&&!_0x3847c4['isInsideObject'])){if(_0x162448['isMultiRange']){if(!Lt(_0x162448,_0x109c83))continue;let _0x3190dd=!0x0;for(const _0xa859d2 of _0x162448['getRanges']()){if(_0xa859d2['containsRange'](_0x3260fb,!0x0))return _0x162448;_0x3260fb['containsRange'](_0xa859d2)||(_0x3190dd=!0x1);}_0x3190dd&&_0x162448['discard']();}else{const _0x1b23f9=_0x162448['getFirstRange']();if(_0x1b23f9['containsRange'](_0x3260fb,!0x0))return _0x162448;if(!Lt(_0x162448,_0x109c83)){_0x3260fb['containsRange'](_0x1b23f9)?_0x162448['removeMarkers']():_0x1b23f9['containsPosition'](_0x577e2c)?_0x577e2c=_0x1b23f9['end']:_0x1b23f9['containsPosition'](_0x2a78f9)&&(_0x2a78f9=_0x1b23f9['start']);continue;}_0x577e2c=_0x577e2c['isBefore'](_0x1b23f9['start'])?_0x577e2c:_0x1b23f9['start'],_0x2a78f9=_0x2a78f9['isAfter'](_0x1b23f9['end'])?_0x2a78f9:_0x1b23f9['end'],_0x109c83=Object['assign']({},_0x162448['attributes']),_0x53792d?_0x1b23f9['start']['isBefore'](_0x53792d['getFirstRange']()['start'])?(_0x53792d['removeMarkers'](),_0x53792d=_0x162448):_0x162448['removeMarkers']():_0x53792d=_0x162448;}}}if(_0x53792d)return this['_setSuggestionRange'](_0x53792d,this['_model']['createRange'](_0x577e2c,_0x2a78f9)),_0x53792d;{const _0x30dd15=_0x5e29c1(),_0x234aae=this['_model']['createRange'](_0x577e2c,_0x2a78f9),_0x5e5524=_0x4c7d24['id'],_0x3ac516=_0x927831?'deletion:'+_0x927831:'deletion',_0x21b6a4=this['_setSuggestionData']({'id':_0x30dd15,'type':_0x3ac516,'createdAt':new Date(),'authorId':_0x5e5524,'attributes':_0x109c83});return this['_addSuggestionMarker'](_0x3ac516,_0x30dd15,_0x5e5524,_0x234aae),_0x21b6a4;}}['markMultiRangeDeletion'](_0x1e8dcf,_0x586b99='multi',_0x339542={}){const _0x253a09=this['editor']['plugins']['get']('Users')['me'],_0x11839f=_0x1e8dcf['map'](_0x2a8866=>new _0x3939f1(_0x2a8866['start'],_0x2a8866['end'])),_0x591569=new Set();for(const {suggestion:_0x264419,meta:_0x580308}of this['_findSuggestions'](_0x11839f,'insertion'))_0x580308['isOwn']&&!_0x580308['isNextTo']&&_0x591569['add'](_0x264419);for(const _0x43f483 of _0x591569)if(_0x43f483['isMultiRange']){const _0x1f05c4=_0x43f483['getRanges']();(!_0x43f483['attributes']||!_0x43f483['attributes']['skipNestingCheck'])&&(_0x1f05c4['every'](_0x5532d0=>_0x11839f['some'](_0x207b45=>_0x207b45['containsRange'](_0x5532d0,!0x0)))&&_0x43f483['discard']());if(_0x11839f['every'](_0x3c9db6=>_0x1f05c4['some'](_0x5318a6=>_0x5318a6['containsRange'](_0x3c9db6,!0x0)))){const _0x1bf200=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x586b99,'accept');return this['forceDefaultExecution'](()=>_0x1bf200(_0x1e8dcf,null,_0x339542)),null;}}else{const _0x4945f1=_0x43f483['getFirstRange']();_0x11839f['some'](_0x334c5c=>_0x334c5c['containsRange'](_0x4945f1,!0x0))&&_0x43f483['discard']();if(_0x11839f['every'](_0x1f1d0f=>_0x4945f1['containsRange'](_0x1f1d0f,!0x0))){const _0x431494=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x586b99,'accept');return this['forceDefaultExecution'](()=>_0x431494(_0x11839f,null,_0x339542)),null;}}const _0x322f8a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x586b99,'join');let _0x352d1e=null;for(const _0x4c3516 of this['getSuggestions']())if(_0x4c3516['author']['id']==_0x253a09['id']&&_0x4c3516['isInContent']&&'deletion'==_0x4c3516['type']&&_0x4c3516['subType']==_0x586b99&&Lt(_0x4c3516,_0x339542)&&(_0x322f8a(_0x4c3516['getRanges'](),_0x11839f)||_0x322f8a(_0x11839f,_0x4c3516['getRanges']()))){if(_0x352d1e){if(_0x4c3516['commentThread']&&_0x4c3516['commentThread']['length'])continue;for(const _0x3e5883 of _0x4c3516['getRanges']())_0x352d1e['isIntersectingWithRange'](_0x3e5883)||_0x352d1e['addRange'](_0x3e5883);_0x4c3516['removeMarkers']();}else{_0x352d1e=_0x4c3516;for(const _0x2a94fb of _0x11839f)_0x4c3516['isIntersectingWithRange'](_0x2a94fb)||_0x4c3516['addRange'](_0x2a94fb);}}if(_0x352d1e)return _0x352d1e;_0x591569['clear']();for(const {suggestion:_0x2e4e44,meta:_0x18fd3e}of this['_findSuggestions'](_0x11839f,'deletion'))_0x18fd3e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x18fd3e['containsRangeInObject']&&!_0x18fd3e['isInsideObject'])&&Lt(_0x2e4e44,_0x339542)&&_0x591569['add'](_0x2e4e44);for(const _0x11ae43 of _0x591569){const _0xaa1759=_0x11ae43['getRanges']();if(!_0x339542||!_0x339542['skipNestingCheck']){if(_0x11839f['every'](_0x5a1a78=>_0xaa1759['some'](_0x122d6a=>_0x122d6a['containsRange'](_0x5a1a78,!0x0))))return _0x11ae43;}(!_0x11ae43['attributes']||!_0x11ae43['attributes']['skipNestingCheck'])&&(_0xaa1759['every'](_0x98a6da=>_0x11839f['some'](_0x35d634=>_0x35d634['containsRange'](_0x98a6da,!0x0)))&&_0x11ae43['discard']());}const _0x518c90=_0x5e29c1(),_0x3b8769=_0x253a09['id'],_0x18cd9d='deletion:'+_0x586b99,_0x1eca66=this['_setSuggestionData']({'id':_0x518c90,'type':_0x18cd9d,'createdAt':new Date(),'authorId':_0x3b8769,'attributes':_0x339542});for(const _0x46163e of _0x11839f)_0x46163e['detach'](),_0x46163e['isCollapsed']||'$graveyard'==_0x46163e['root']['rootName']||this['_addSuggestionMarker'](_0x18cd9d,_0x518c90,_0x3b8769,_0x46163e,u['getMultiRangeId']());return _0x1eca66;}['markAttributeChange'](_0x2bd196,_0x155edc,_0x3e57b5,_0x35638a,_0x273db0){if(_0x2bd196['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xa4f31=this['editor']['plugins']['get']('Users')['me']['id'],_0x3971b3=Array['from'](this['_suggestions']['values']())['filter'](_0x2ce803=>'attribute'==_0x2ce803['type']&&_0x2ce803['data']['key']==_0x155edc&&_0x2ce803['isIntersectingWithRange'](_0x2bd196));if('default'===this['_trackFormatChanges']){const _0x116eb4=this['_findSuggestions'](_0x2bd196,'insertion')['filter'](({meta:_0x59a3d2})=>_0x59a3d2['isOwn']&&!_0x59a3d2['isInsideObject']&&!_0x59a3d2['isNextTo'])['map'](({suggestion:_0x24f83e})=>_0x24f83e);_0x3971b3['unshift'](..._0x116eb4);}const _0x571725=new Map([[_0x2bd196,_0x3e57b5]]);for(const _0x169f1e of _0x3971b3){const _0x5ba6ae='attribute'==_0x169f1e['type']?_0x169f1e['data']['oldValue']:void 0x0,_0xfce7fe=_0x169f1e['getFirstRange'](),_0x2049f1=Array['from'](_0x571725['keys']())['find'](_0x23c10b=>_0x23c10b['isIntersecting'](_0xfce7fe));if(!_0x2049f1)continue;const _0x420a4f=_0x2049f1['getDifference'](_0xfce7fe);this['_isBlockAttribute'](_0x155edc)&&'insertion'==_0x169f1e['type']&&0x0!=_0x420a4f['length']||(_0x571725['delete'](_0x2049f1),_0x420a4f['forEach'](_0x4f77d9=>{_0x571725['set'](_0x4f77d9,_0x3e57b5);}),'insertion'!=_0x169f1e['type']&&_0x5ba6ae!=_0x35638a&&_0x571725['set'](_0x2049f1['getIntersection'](_0xfce7fe),_0x5ba6ae));}const _0x9b7c2c=[];for(const [_0x2b95cc,_0x2a1284]of _0x571725){const _0x47556c=_0x5e29c1(),_0x4d3e99={'key':_0x155edc,'oldValue':_0x2a1284,'newValue':_0x35638a};_0x155edc['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':_0x155edc});const _0x5d849e=('attribute:'+(_0x155edc+'|'+Vt({'newValue':_0x35638a})))['substring'](0x0,0x3c),_0x4b189c=this['_setSuggestionData']({'id':_0x47556c,'type':_0x5d849e,'data':_0x4d3e99,'createdAt':new Date(),'authorId':_0xa4f31,'attributes':_0x273db0});_0x9b7c2c['push'](_0x4b189c),this['_addSuggestionMarker'](_0x5d849e,_0x47556c,_0xa4f31,_0x2b95cc);}return _0x9b7c2c;}['enableDefaultAttributesIntegration'](_0xa396b7){this['enableCommand'](_0xa396b7,(_0x24b44a,..._0xd4b2b1)=>{this['_recordAttributeChanges'](()=>{_0x24b44a(..._0xd4b2b1);});});}['registerBlockAttribute'](_0x1cf58b){this['_blockAttributeKeys']['add'](_0x1cf58b);}['registerInlineAttribute'](_0x36318b){this['_inlineAttributeKeys']['add'](_0x36318b);}['_getAttributeKey'](_0xd41d6e){return'attribute'==_0xd41d6e['type']?_0xd41d6e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3160ef,_0x238f45){const _0x165fdb=_0x3160ef['getFirstMarker']();this['_model']['change'](_0x2924ac=>{_0x2924ac['updateMarker'](_0x165fdb,{'range':_0x238f45});});}['_addThreadToSuggestion'](_0x141b3f){const _0x2fc7ea=_0x141b3f['id'],_0x58323f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2fc7ea)||this['_commentsRepository']['addCommentThread']({'channelId':_0x58323f,'threadId':_0x2fc7ea,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x183b01=this['_commentsRepository']['getCommentThread'](_0x2fc7ea);_0x183b01['unbind']('isRemovable'),_0x183b01['isRemovable']=!0x1,_0x141b3f['commentThread']=_0x183b01;}['_checkSuggestionCorrectness'](_0x43435a,_0x3027d0,_0x462f64,_0x20eb47){if(_0x43435a['type']!=_0x3027d0||_0x43435a['subType']!=_0x462f64||_0x43435a['creator']['id']!=_0x20eb47)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x47d488('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xacc9f0,_0x1d049e){const _0x5313e3=_0xacc9f0['getFirstRange']();if(_0x1d049e['isEqual'](_0x5313e3))_0xacc9f0['removeMarkers']();else{if(_0x5313e3['containsRange'](_0x1d049e)){const _0xa6eaed=this['_model']['createPositionAt'](_0x1d049e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xacc9f0,this['_model']['createRange'](_0x5313e3['start'],_0xa6eaed));const _0x2c2abd=_0x5e29c1(),_0x458be9=_0xacc9f0['creator']['id'],_0x4a9469=_0xacc9f0['type']+':'+_0xacc9f0['subType'];this['_setSuggestionData']({'id':_0x2c2abd,'type':_0x4a9469,'createdAt':new Date(),'authorId':_0x458be9,'data':_0xacc9f0['data'],'attributes':_0xacc9f0['attributes']});const _0x3a05c5=this['_model']['createPositionAt'](_0x1d049e['end']['parent'],'after'),_0x4fc1f5=this['_model']['createRange'](_0x3a05c5,_0x5313e3['end']);this['_addSuggestionMarker'](_0x4a9469,_0x2c2abd,_0x458be9,_0x4fc1f5);}else{if(_0x5313e3['containsPosition'](_0x1d049e['start'])){const _0x589e6a=this['_model']['createPositionAt'](_0x1d049e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xacc9f0,this['_model']['createRange'](_0x5313e3['start'],_0x589e6a));}else{const _0x400e0d=this['_model']['createPositionAt'](_0x1d049e['end']['parent'],'after');this['_setSuggestionRange'](_0xacc9f0,this['_model']['createRange'](_0x400e0d,_0x5313e3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x980144){for(const {suggestion:_0x589a44,meta:_0x3243fd}of this['_findSuggestions'](_0x980144,'insertion')){if(!_0x3243fd['isOwn'])continue;const _0x12f098=_0x589a44['getRanges']();for(const _0x71a2dc of _0x12f098)if(!_0x980144['getDifference'](_0x71a2dc)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x53e99c){const _0x3544e6=this['editor']['plugins']['get']('Users')['getUser'](_0x53e99c);if(!_0x3544e6)throw new _0x47d488('track-changes-user-not-found',this);return _0x3544e6;}['_getExternalAuthor'](_0x22ffff){const _0x22d0ed=this['editor']['plugins']['get']('Users'),_0x304eea=_0x18cece('external:'+_0x22ffff),_0x4f95b0=_0x22d0ed['getUser'](_0x304eea);return _0x4f95b0||_0x22d0ed['addUser']({'id':_0x304eea,'name':_0x22ffff});}['_createSuggestion'](_0x43db2a,_0x2dfd8d,_0x540670,_0x452270,_0x34316f){const _0x2d23e6=this['_getAuthorFromId'](_0x452270),_0x56ee97=this['_suggestionFactory']['buildSuggestion'](_0x43db2a,_0x2dfd8d,_0x540670,_0x2d23e6,_0x34316f,_0x5de7d8=>{this['_updateSuggestionData'](_0x540670,{'attributes':_0x5de7d8});const _0x33557d=this['getSuggestion'](_0x540670);this['_joinWithAdjacentSuggestions'](new Set([_0x33557d])),this['_refreshSuggestionsChain'](new Set([_0x33557d]));});return this['listenTo'](_0x56ee97,'accept',()=>{this['_updateSuggestionData'](_0x540670,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x56ee97,'discard',()=>{this['_updateSuggestionData'](_0x540670,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x540670,_0x56ee97),this['_suggestionState']['set'](_0x56ee97,'notReady'),_0x56ee97;}['_splitMarkerName'](_0x4097cf){const _0x46602a=_0x4097cf['split'](':');return{'group':_0x46602a[0x0],'type':_0x46602a[0x1],'subType':_0x46602a['length']>=0x5?_0x46602a[0x2]:null,'id':_0x46602a['length']<0x5?_0x46602a[0x2]:_0x46602a[0x3],'authorId':_0x46602a['length']<0x5?_0x46602a[0x3]:_0x46602a[0x4],'markerCount':0x6==_0x46602a['length']?_0x46602a[0x5]:null};}['_breakSuggestionMarker'](_0x2e5bc7,_0x2e01be,_0x437bdf){const _0x4a1bec=_0x2e5bc7['getFirstRange'](),_0x4bcffc=_0x4a1bec['start'],_0x41f7a2=_0x4a1bec['end'];this['_setSuggestionRange'](_0x2e5bc7,this['_model']['createRange'](_0x4bcffc,_0x2e01be));const _0x132ed1=_0x5e29c1(),_0x30ac1a=_0x2e5bc7['creator']['id'],_0x2404d4=_0x2e5bc7['type']+(_0x2e5bc7['subType']?':'+_0x2e5bc7['subType']:'');this['_setSuggestionData']({'id':_0x132ed1,'type':_0x2404d4,'createdAt':new Date(),'authorId':_0x30ac1a,'originalSuggestionId':_0x2e5bc7['id'],'attributes':_0x2e5bc7['attributes'],'data':_0x2e5bc7['data']});const _0x48c8dd=this['_getAttributeKey'](_0x2e5bc7);('formatBlock'==_0x2e5bc7['type']||_0x48c8dd&&this['_isBlockAttribute'](_0x48c8dd))&&(_0x437bdf=this['_model']['createPositionBefore'](_0x437bdf['parent'])),this['_addSuggestionMarker'](_0x2404d4,_0x132ed1,_0x30ac1a,this['_model']['createRange'](_0x437bdf,_0x41f7a2));}['_findSuggestions'](_0x203441,_0x35cfeb=null){const _0x3fa2d5=[],_0x322ec3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x203441)||(_0x203441=[_0x203441]);for(const _0x241827 of this['getSuggestions']()){if(!_0x241827['isInContent'])continue;if(_0x35cfeb&&_0x241827['type']!=_0x35cfeb)continue;let _0x2b6b1d=!0x1;for(const _0x1b03ab of _0x241827['getRanges']()){for(const _0x502a04 of _0x203441){const _0x8da448=_0x502a04['start']['isEqual'](_0x1b03ab['end'])||_0x502a04['end']['isEqual'](_0x1b03ab['start']);if(_0x8da448||_0x502a04['getIntersection'](_0x1b03ab)){const _0x56de73=_0x502a04['containsRange'](_0x1b03ab)&&Rt(this['_model']['schema'],_0x1b03ab['start'],_0x502a04),_0x194c9f=_0x1b03ab['containsRange'](_0x502a04)&&Rt(this['_model']['schema'],_0x502a04['start'],_0x1b03ab);_0x3fa2d5['push']({'suggestion':_0x241827,'meta':{'isOwn':_0x322ec3==_0x241827['author'],'isNextTo':_0x8da448,'isInsideObject':_0x56de73,'containsRangeInObject':_0x194c9f}}),_0x2b6b1d=!0x0;break;}}if(_0x2b6b1d)break;}}return _0x3fa2d5;}['_addSuggestionMarker'](_0x3e1b14,_0x4a5b57,_0x13cd73,_0x29c1d4,_0x51de29){this['_model']['change'](_0x37c26c=>{let _0xc6b185='suggestion:'+_0x3e1b14+':'+_0x4a5b57+':'+_0x13cd73;_0x51de29&&(_0xc6b185=_0xc6b185+':'+_0x51de29),_0x37c26c['addMarker'](_0xc6b185,{'range':_0x29c1d4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x246b02){const _0x89f031=_0x246b02['previous'],_0x5737aa=_0x246b02['next'];_0x246b02['previous']=null,_0x246b02['next']=null,null!=_0x89f031&&_0x89f031['next']==_0x246b02&&(_0x89f031['next']=_0x5737aa),null!=_0x5737aa&&_0x5737aa['previous']==_0x246b02&&(_0x5737aa['previous']=_0x89f031),'ready'==this['_suggestionState']['get'](_0x246b02)&&(this['_suggestionState']['set'](_0x246b02,'removed'),this['fire']('suggestionUnloaded',_0x246b02,_0x89f031,_0x5737aa));}['_setSuggestionData'](_0x3a93da){const _0x49418c=_0x3a93da['id'],_0x5791dc=this['addSuggestionData'](_0x3a93da);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x464eb0=this['editor']['plugins']['get']('PendingActions'),_0x2efcea=_0x5791dc['hasComments'],_0xf93fa2=_0x5791dc['subType']?_0x5791dc['type']+':'+_0x5791dc['subType']:_0x5791dc['type'],_0x526ae8=this['editor']['locale'],_0x26179d=_0x464eb0['add'](o(_0x526ae8,'PENDING_ACTION_SUGGESTION')),_0x3d57ac={'id':_0x49418c,'type':_0xf93fa2,'hasComments':_0x2efcea,'data':_0x3a93da['data']||null,'originalSuggestionId':_0x3a93da['originalSuggestionId']||null,'attributes':_0x5791dc['attributes']};this['_adapter']['addSuggestion'](_0x3d57ac)['then'](_0x44e431=>{_0x5791dc['_saved']=!0x0,_0x464eb0['remove'](_0x26179d),_0x44e431&&_0x44e431['createdAt']&&(this['_suggestions']['get'](_0x49418c)['createdAt']=_0x44e431['createdAt']);})['catch'](_0x580d0b=>{throw _0x26e9c6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5791dc['discard']();}),_0x5791dc['stopListening'](),this['_suggestions']['delete'](_0x5791dc['id']),this['_suggestionState']['delete'](_0x5791dc),_0x580d0b;});}return _0x5791dc;}['_isBlockAttribute'](_0x1f859d){return this['_blockAttributeKeys']['has'](_0x1f859d);}['_updateSuggestionData'](_0x4017bc,_0x18c454){const _0x38b905=this['editor']['plugins']['get']('PendingActions'),_0x322d48=this['getSuggestion'](_0x4017bc);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x322d48['_saved']){const _0x244756=_0x38b905['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4017bc,_0x18c454)['then'](()=>{_0x38b905['remove'](_0x244756);});}else _0x322d48['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4017bc,_0x18c454);});}}['_getSuggestionData'](_0x59d635){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x47d488('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x59d635);}['_handleNewSuggestionMarker'](_0x29c995){const {id:_0x16adfd,type:_0x170a62,subType:_0x2c0ffa,authorId:_0x169e1a}=this['_splitMarkerName'](_0x29c995),_0x5cedf0=this['_suggestions']['get'](_0x16adfd)||this['_createSuggestion'](_0x170a62,_0x2c0ffa,_0x16adfd,_0x169e1a,{});switch(this['_checkSuggestionCorrectness'](_0x5cedf0,_0x170a62,_0x2c0ffa,_0x169e1a),this['_suggestionState']['get'](_0x5cedf0)){case'notReady':this['_getSuggestionData'](_0x16adfd)['then'](_0xc36cbb=>{let _0x2d0255=Promise['resolve']();_0xc36cbb['hasComments']&&(_0x2d0255=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x16adfd})),_0x2d0255['then'](()=>{this['addSuggestionData'](_0xc36cbb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5cedf0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x16adfd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5cedf0,'ready'),this['fire']('suggestionLoaded',_0x5cedf0);break;case'ready':this['fire']('suggestionChanged',_0x5cedf0);}return _0x5cedf0['addMarkerName'](_0x29c995),_0x5cedf0;}['_refreshSuggestionsChain'](_0xadd035){const _0x39aee7=Array['from'](_0xadd035),_0x3fc6c6=_0x39aee7['filter'](_0x2aba5d=>'attribute'==_0x2aba5d['type']);this['_refreshAttributeSuggestionsChain'](_0x3fc6c6);const _0x45e8cc=_0x39aee7['filter'](_0x3d7cd6=>!_0x3d7cd6['isMultiRange']&&'attribute'!=_0x3d7cd6['type']),_0x4cfd3a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x642eaa=>!_0x642eaa['isMultiRange']&&'attribute'!=_0x642eaa['type']),_0x28f52d=_0x4cfd3a['filter'](_0x44b737=>!_0xadd035['has'](_0x44b737)),_0x2a12b1=new Map(_0x4cfd3a['map'](_0x5699d5=>[_0x5699d5,this['_suggestionFactory']['getSuggestionCallback'](_0x5699d5['type'],_0x5699d5['subType'],'chain')])),_0xe24cfc=new Map(_0x4cfd3a['map'](_0x2ceb90=>[_0x2ceb90,_0x2ceb90['getFirstRange']()])),_0x134008=new Set(),_0x32ce14=new Set();for(let _0x2c6b84=0x0;_0x2c6b84<_0x45e8cc['length'];_0x2c6b84++)_0x2683a8(_0x45e8cc[_0x2c6b84],_0x45e8cc,_0x2c6b84+0x1);for(let _0x1ba83a=0x0;_0x1ba83a<_0x45e8cc['length'];_0x1ba83a++)_0x2683a8(_0x45e8cc[_0x1ba83a],_0x28f52d,0x0);const _0x16d4f4=new Set();for(let _0x1bdf23=0x0;_0x1bdf23<_0x45e8cc['length'];_0x1bdf23++){const _0x4c6733=_0x45e8cc[_0x1bdf23];!_0x32ce14['has'](_0x4c6733)&&_0x4c6733['previous']&&(_0x16d4f4['add'](_0x4c6733['previous']),_0x4c6733['previous']['next']===_0x4c6733&&(_0x4c6733['previous']['next']=null),_0x4c6733['previous']=null),!_0x134008['has'](_0x4c6733)&&_0x4c6733['next']&&(_0x16d4f4['add'](_0x4c6733['next']),_0x4c6733['next']['previous']===_0x4c6733&&(_0x4c6733['next']['previous']=null),_0x4c6733['next']=null);}function _0x2683a8(_0x48ac2d,_0x41fa21,_0x5219fb){for(let _0x5b9246=_0x5219fb;_0x5b9246<_0x41fa21['length'];_0x5b9246++){const _0x2a5716=_0x3119fb(_0x48ac2d,_0x41fa21[_0x5b9246]);_0x2a5716&&(_0x2a5716[0x0]['next']=_0x2a5716[0x1],_0x2a5716[0x1]['previous']=_0x2a5716[0x0],_0x134008['add'](_0x2a5716[0x0]),_0x32ce14['add'](_0x2a5716[0x1]));}}function _0x3119fb(_0x25c3a9,_0x4de5ea){if(_0x25c3a9['author']['id']!==_0x4de5ea['author']['id'])return null;const _0x5b3a47=_0x2a12b1['get'](_0x25c3a9)(_0x25c3a9,_0x4de5ea,_0xe24cfc['get'](_0x25c3a9),_0xe24cfc['get'](_0x4de5ea));if(!_0x5b3a47)return null;return _0x2a12b1['get'](_0x4de5ea)(_0x25c3a9,_0x4de5ea,_0xe24cfc['get'](_0x25c3a9),_0xe24cfc['get'](_0x4de5ea))?_0x5b3a47[0x1]['commentThread']&&_0x5b3a47[0x1]['commentThread']['length']?null:_0x5b3a47:null;}_0x16d4f4['size']&&this['_refreshSuggestionsChain'](_0x16d4f4);}['_refreshAttributeSuggestionsChain'](_0x438838){if(0x0==_0x438838['length'])return;const _0x3d0472=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x494eac=>'attribute'==_0x494eac['type']&&_0x494eac['_isDataLoaded']),_0x1b0810=[],_0xd9cb22=new Map();for(const _0x30df21 of _0x3d0472){const _0xfcc4d=_0x18cece(_0x30df21['attributes']);_0xd9cb22['has'](_0xfcc4d)||(_0xd9cb22['set'](_0xfcc4d,_0x1b0810['length']),_0x1b0810['push']([]));const _0x2f5cd0=_0xd9cb22['get'](_0xfcc4d);_0x1b0810[_0x2f5cd0]['push'](_0x30df21);}!(function(){_0x1b0810['sort']((_0x21e61a,_0x34357e)=>{const _0x4eedd0=_0x21e61a[0x0]['createdAt'],_0x1a5259=_0x34357e[0x0]['createdAt'];return _0x4eedd0==_0x1a5259?_0x21e61a[0x0]['attributes']['groupId']<_0x34357e[0x0]['attributes']['groupId']?-0x1:0x1:_0x4eedd0<_0x1a5259?-0x1:0x1;});for(const _0x590a35 of _0x1b0810)_0x590a35['sort']((_0x2b2c4a,_0x559679)=>_0x2b2c4a['id']<_0x559679['id']?-0x1:0x1);}());for(let _0x49e32f=0x0;_0x49e32f<_0x1b0810['length'];_0x49e32f++){if(0x0==_0x1b0810[_0x49e32f]['length'])continue;const _0x342e90=[];for(let _0x365c56=_0x49e32f+0x1;_0x365c56<_0x1b0810['length'];_0x365c56++)0x0!=_0x1b0810[_0x365c56]['length']&&_0x56890a(_0x1b0810[_0x49e32f],_0x1b0810[_0x365c56])&&_0x342e90['push'](_0x365c56);for(const _0x1b8020 of _0x342e90)_0x1b0810[_0x49e32f]=_0x1b0810[_0x49e32f]['concat'](_0x1b0810[_0x1b8020]),_0x1b0810[_0x1b8020]=[];}for(const _0x138e7b of _0x1b0810)for(let _0x43d9ce=0x0;_0x43d9ce<_0x138e7b['length'];_0x43d9ce++)_0x138e7b[_0x43d9ce]['next']=_0x138e7b[_0x43d9ce+0x1]||null;for(const _0x4011c4 of _0x1b0810)for(let _0x2d5ff0=0x0;_0x2d5ff0<_0x4011c4['length'];_0x2d5ff0++)_0x4011c4[_0x2d5ff0]['previous']=_0x4011c4[_0x2d5ff0-0x1]||null;function _0x56890a(_0x487516,_0x6c381d){if(_0x487516[0x0]['attributes']['groupId']!==_0x6c381d[0x0]['attributes']['groupId']&&_0x487516[0x0]['author']!==_0x6c381d[0x0]['author'])return!0x1;if(!function(_0x704633,_0x276a9d){if(!_0x704633['hasComments']&&!_0x276a9d['hasComments'])return!0x0;if(_0x704633['hasComments']&&_0x276a9d['hasComments'])return!0x1;if(_0x704633['hasComments']&&_0x276a9d['createdAt']<_0x704633['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x276a9d['hasComments']&&_0x704633['createdAt']<_0x276a9d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x487516[0x0],_0x6c381d[0x0]))return!0x1;const _0x52abf7=Bt(_0x487516[0x0]['attributes'],'groupId'),_0x14634a=Bt(_0x6c381d[0x0]['attributes'],'groupId');if(!_0x29bdc1(_0x52abf7,_0x14634a))return!0x1;return!!_0x487516['every'](_0xe8da27=>_0x6c381d['some'](_0x372721=>_0xe8da27['getFirstRange']()['isEqual'](_0x372721['getFirstRange']())))&&_0x6c381d['every'](_0x2f35b2=>_0x487516['some'](_0x2b1203=>_0x2f35b2['getFirstRange']()['isEqual'](_0x2b1203['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4e0a72){const _0x47c8ee=Array['from'](_0x4e0a72),_0x4e43cb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x317770=_0x4e43cb['filter'](_0x5c99ea=>!_0x4e0a72['has'](_0x5c99ea)),_0x1adc0a=new Map(_0x47c8ee['map'](_0x54863a=>[_0x54863a,this['_suggestionFactory']['getSuggestionCallback'](_0x54863a['type'],_0x54863a['subType'],'join')])),_0x58e3e5=new Map(_0x4e43cb['map'](_0x30c1ed=>[_0x30c1ed,_0x30c1ed['getRanges']()]));for(let _0x4eac1a=0x0;_0x4eac1a<_0x47c8ee['length'];_0x4eac1a++){if(_0xf337ae(this,_0x47c8ee[_0x4eac1a],_0x47c8ee,_0x4eac1a+0x1))return!0x0;}for(let _0x1c5cef=0x0;_0x1c5cef<_0x47c8ee['length'];_0x1c5cef++){if(_0xf337ae(this,_0x47c8ee[_0x1c5cef],_0x317770,0x0))return!0x0;}return!0x1;function _0xf337ae(_0xb7cb61,_0x41d84d,_0x42575e,_0x32b5b7){for(let _0x21f26e=_0x32b5b7;_0x21f26e<_0x42575e['length'];_0x21f26e++){const _0x267c31=_0x42575e[_0x21f26e];if(_0x267c31['type']!==_0x41d84d['type']||_0x267c31['author']['id']!==_0x41d84d['author']['id']||_0x267c31['subType']!==_0x41d84d['subType'])continue;if(!Pt(_0x41d84d,_0x267c31,['groupId']))continue;if('attribute'==_0x41d84d['type']&&_0x41d84d['data']['oldValue']!=_0x267c31['data']['oldValue'])continue;if('attribute'==_0x41d84d['type']&&_0xb7cb61['_isBlockAttribute'](_0x41d84d['data']['key']))continue;if('formatBlock'==_0x41d84d['type']){const _0x89f0a6=_0xb7cb61['editor']['model'],_0x27b240=_0x41d84d['getContainedElement']();if(_0x27b240&&(_0x89f0a6['schema']['isObject'](_0x27b240)||_0x89f0a6['schema']['isLimit'](_0x27b240)))continue;}const _0x1cc818=_0x1adc0a['get'](_0x41d84d),_0x20d903=_0x58e3e5['get'](_0x41d84d),_0x4ebf3c=_0x58e3e5['get'](_0x267c31),_0x5c1fb5=_0x41d84d['commentThread']&&_0x41d84d['commentThread']['length'],_0x3eb045=_0x267c31['commentThread']&&_0x267c31['commentThread']['length'];if(!_0x5c1fb5&&_0x1cc818(_0x4ebf3c,_0x20d903))return _0xb7cb61['_joinSuggestions'](_0x267c31,_0x41d84d),_0x58e3e5['delete'](_0x41d84d),!0x0;if(!_0x3eb045&&_0x1cc818(_0x20d903,_0x4ebf3c))return _0xb7cb61['_joinSuggestions'](_0x41d84d,_0x267c31),_0x58e3e5['delete'](_0x267c31),!0x0;}return!0x1;}}['_joinSuggestions'](_0x372133,_0x436461){if(_0x372133['isMultiRange']){for(const _0x2dd600 of _0x436461['getRanges']())_0x372133['addRange'](_0x2dd600);}else{const _0x4ffc18=_0x436461['getFirstRange']()['end'];this['_setSuggestionRange'](_0x372133,this['_model']['createRange'](_0x372133['getFirstRange']()['start'],_0x4ffc18));}_0x436461['removeMarkers']();}['_getMarkerAnnouncementText'](_0x20785e,_0x296513){const _0x30d443=_0x20785e['startsWith']('format')||_0x20785e['startsWith']('attribute')?'FORMATTING':_0x20785e['toUpperCase']();return o(this['editor']['locale'],_0x296513+'_'+_0x30d443+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5360e1=this['editor'];if(!_0x5360e1['ui'])return;const {ariaLiveAnnouncer:_0x48569d}=_0x5360e1['ui'];_0xae6502(this['_model'],({left:_0x44d54f,entered:_0x47b963})=>{for(const _0x2cd3e5 of _0x44d54f){const {group:_0x1c79ce,type:_0x33a833}=this['_splitMarkerName'](_0x2cd3e5['name']);if('suggestion'===_0x1c79ce){_0x48569d['announce'](this['_getMarkerAnnouncementText'](_0x33a833,'LEAVE'));break;}}for(const _0x5b1fe0 of _0x47b963){const {group:_0x5b01dd,type:_0xadfa43}=this['_splitMarkerName'](_0x5b1fe0['name']);if('suggestion'===_0x5b01dd){_0x48569d['announce'](this['_getMarkerAnnouncementText'](_0xadfa43,'ENTER'));break;}}});}['_processAttributeChanges'](_0x5c3b59){if(this['_recordAttributeSuggestions'])return!0x1;const _0x264251=this['editor'],_0x3cd827=_0x264251['model']['document']['differ']['getChanges']();if(0x0==_0x3cd827['length'])return!0x1;const _0x1f974c=[],_0x4b6594=_0x3cd827['filter'](_0x44a77b=>'attribute'==_0x44a77b['type']),_0x4cee2b=_0x3cd827['filter'](_0x59e9ee=>'insert'==_0x59e9ee['type']&&'$text'!=_0x59e9ee['name']),_0xf13e50=_0x3cd827['filter'](_0xb0b63f=>'remove'==_0xb0b63f['type']&&'$text'!=_0xb0b63f['name']);for(const _0xd08e49 of _0x4b6594)_0x1f974c['push']({'key':_0xd08e49['attributeKey'],'newValue':_0xd08e49['attributeNewValue'],'oldValue':_0xd08e49['attributeOldValue'],'range':Ot(_0xd08e49['range'],_0x264251['model'])});for(const _0x1dda16 of _0x4cee2b){const _0x5d861f=_0xf13e50['find'](_0xf7309d=>_0xf7309d['position']['isEqual'](_0x1dda16['position']));_0x5d861f&&_0x1f974c['push']({'key':m,'newValue':_0x1dda16['name'],'oldValue':_0x5d861f['name'],'range':_0x264251['model']['createRangeOn'](_0x1dda16['position']['nodeAfter'])});}return 0x0!=_0x1f974c['length']&&this['_reduceExistingSuggestions'](_0x5c3b59,_0x1f974c);}['_processAttributeSuggestions'](_0x326336){let _0x43ceea=!0x1;const _0x35e705=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x646acd=>_0x646acd['data']['newRange']&&_0x646acd['name']['startsWith']('suggestion:attribute:'));for(const _0x191b21 of _0x35e705){const {subType:_0x6f4b61,id:_0x262b91}=this['_splitMarkerName'](_0x191b21['name']),_0x183d9=_0x6f4b61['split']('|')[0x0];for(const _0x58d46b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x58d46b['id']!=_0x262b91&&'attribute'==_0x58d46b['type']&&_0x58d46b['data']&&_0x58d46b['data']['key']==_0x183d9&&_0x58d46b['getFirstRange']()['isIntersecting'](_0x191b21['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x58d46b,_0x191b21['data']['newRange'],_0x326336),_0x43ceea=!0x0);}return _0x43ceea;}['_recordAttributeChanges'](_0x4b7fd0){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4b7fd0();}['_isRegisteredAttribute'](_0x55d69d){const _0x34a990=this['_isBlockAttribute'](_0x55d69d),_0x46979d=this['_inlineAttributeKeys']['has'](_0x55d69d);return _0x34a990||_0x46979d;}['_reduceExistingSuggestions'](_0x2eb4fb,_0x33f21c){if(0x0==_0x33f21c['length'])return!0x1;let _0x53280b=!0x1;for(const _0x31f8be of _0x33f21c){const _0x1c349f=this['_findSuggestions'](_0x31f8be['range'],'attribute')['filter'](_0x1236bd=>!_0x1236bd['meta']['isNextTo'])['map'](_0x5be19e=>_0x5be19e['suggestion']),_0x25538a=_0x18cece({'newValue':_0x31f8be['newValue']});_0x1c349f['filter'](_0x57b489=>{const [_0x16e5d8,_0x5346f7]=_0x57b489['subType']['split']('|');return _0x16e5d8==_0x31f8be['key']&&_0x5346f7!=_0x25538a;})['forEach'](_0x327ef5=>{this['_reduceSuggestionAttributeRange'](_0x327ef5,_0x31f8be['range'],_0x2eb4fb),_0x53280b=!0x0;});}return _0x53280b;}['_reduceSuggestionAttributeRange'](_0x146451,_0x28335e,_0x23d5e9){const _0x1d8006=_0x146451['getFirstRange']()['getDifference'](_0x28335e);0x0!==_0x1d8006['length']?0x1!==_0x1d8006['length']?this['_breakSuggestionMarker'](_0x146451,_0x28335e['start'],_0x28335e['end']):this['_setSuggestionRange'](_0x146451,_0x1d8006[0x0]):_0x23d5e9['removeMarker'](_0x146451['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b53c1){this['_editor']=_0x5b53c1,this['_model']=_0x5b53c1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1dde0f,_0x88ac65,_0x1aa6a2,_0x208ebd,_0x207ed0,_0x3289b9){return new u(this['_model'],{'type':_0x1dde0f,'subType':_0x88ac65,'id':_0x1aa6a2,'author':_0x208ebd,'creator':_0x208ebd,'attributes':_0x207ed0,'onAttributesChange':_0x3289b9,'onAccept':(..._0x1daa17)=>this['getSuggestionCallback'](_0x1dde0f,_0x88ac65,'accept')(..._0x1daa17),'onDiscard':(..._0x1003e3)=>this['getSuggestionCallback'](_0x1dde0f,_0x88ac65,'discard')(..._0x1003e3)});}['registerCustomCallback'](_0x33d41e,_0x1003bc,_0x1f0277,_0x3974b1){const _0x2d2546=_0x33d41e+':'+_0x1003bc+':'+_0x1f0277;this['_customCallbacks']['set'](_0x2d2546,_0x3974b1);}['getSuggestionCallback'](_0x36d43f,_0x45c60d,_0x29ef36){const _0x292558=_0x36d43f+':'+_0x45c60d+':'+_0x29ef36;return this['_customCallbacks']['get'](_0x292558)||this['_defaultCallbacks']['get'](_0x36d43f+':'+_0x29ef36);}['_registerDefaultCallbacks'](){const _0x544c55=()=>!0x1,_0x2c466d=_0x6ca7a4=>{_0x6ca7a4['sort']((_0x2bcd1b,_0xbba6e4)=>_0x2bcd1b['start']['isBefore'](_0xbba6e4['start'])?0x1:-0x1),this['_model']['change'](_0x5d23e1=>{for(const _0x50fefe of _0x6ca7a4){let _0x4865ed;_0x4865ed=_0x50fefe['end']['isAtEnd']&&_0x50fefe['end']['parent']==_0x50fefe['start']['nodeAfter']?_0x5d23e1['createSelection'](_0x50fefe['start']['nodeAfter'],'on'):_0x5d23e1['createSelection'](_0x50fefe),this['_model']['deleteContent'](_0x4865ed,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4b665e=(_0x14d9e6,_0x280556)=>{_0x280556&&this['_model']['change'](_0x2994dc=>{const {commandName:_0x23de76,commandParams:_0x213672=[]}=_0x280556,_0x424172=_0x14d9e6['map'](_0x529f5d=>(Tt(_0x529f5d)&&(_0x529f5d=this['_model']['createRange'](_0x529f5d['end'])),_0x529f5d))['filter'](_0x323b45=>'$graveyard'!==_0x323b45['root']['rootName']);if(_0x424172['length']<0x1)return;const _0x441271=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x32a398=>_0x3939f1['fromRange'](_0x32a398));_0x2994dc['setSelection'](_0x424172);for(const _0x257a3d of this['_editor']['commands']['commands']())_0x257a3d['refresh']();_0x213672['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x23de76,..._0x213672);const _0x21c77a=_0x441271['filter'](_0x2e3a67=>'$graveyard'!=_0x2e3a67['root']['rootName']);_0x21c77a['length']>0x0&&_0x2994dc['setSelection'](_0x21c77a);for(const _0x4ad728 of _0x441271)_0x4ad728['detach']();});},_0x232902=(_0x32d828,_0x5c4fea)=>0x1==_0x32d828['length']&&0x1==_0x5c4fea['length']&&_0x32d828[0x0]['end']['isEqual'](_0x5c4fea[0x0]['start']),_0x523e50=(_0x1e14a7,_0x3a6cf9,_0x25cb59,_0x249e9e)=>Gt(_0x1e14a7,_0x3a6cf9,_0x25cb59,_0x249e9e,this['_model'])?[_0x1e14a7,_0x3a6cf9]:Gt(_0x3a6cf9,_0x1e14a7,_0x249e9e,_0x25cb59,this['_model'])?[_0x3a6cf9,_0x1e14a7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x544c55),this['_defaultCallbacks']['set']('insertion:discard',_0x2c466d),this['_defaultCallbacks']['set']('insertion:join',_0x232902),this['_defaultCallbacks']['set']('insertion:chain',_0x523e50),this['_defaultCallbacks']['set']('deletion:accept',_0x2c466d),this['_defaultCallbacks']['set']('deletion:discard',_0x544c55),this['_defaultCallbacks']['set']('deletion:join',_0x232902),this['_defaultCallbacks']['set']('deletion:chain',_0x523e50),this['_defaultCallbacks']['set']('formatInline:accept',_0x4b665e),this['_defaultCallbacks']['set']('formatInline:discard',_0x544c55),this['_defaultCallbacks']['set']('formatInline:join',_0x232902),this['_defaultCallbacks']['set']('formatInline:chain',_0x544c55),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4b665e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x544c55),this['_defaultCallbacks']['set']('formatBlock:join',_0x232902),this['_defaultCallbacks']['set']('formatBlock:chain',_0x544c55),this['_defaultCallbacks']['set']('attribute:accept',_0x544c55),this['_defaultCallbacks']['set']('attribute:discard',(_0x439aee,_0x3d2848)=>{if(!_0x3d2848)return;const _0x148534=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1a64e5=>{if(_0x3d2848['key']==m)for(const _0x52a972 of _0x439aee){const _0x58735d=_0x52a972['start']['nodeAfter'],_0x40f17f=_0x3d2848['oldValue'];_0x1a64e5['rename'](_0x58735d,_0x40f17f);}else{if(_0x148534['_isBlockAttribute'](_0x3d2848['key'])){for(const _0x17a966 of _0x439aee)void 0x0!==_0x3d2848['oldValue']?_0x1a64e5['setAttribute'](_0x3d2848['key'],_0x3d2848['oldValue'],_0x17a966['start']['nodeAfter']):_0x1a64e5['removeAttribute'](_0x3d2848['key'],_0x17a966['start']['nodeAfter']);}else{for(const _0x1fa871 of _0x439aee)_0x3d2848['oldValue']?_0x1a64e5['setAttribute'](_0x3d2848['key'],_0x3d2848['oldValue'],_0x1fa871):_0x1a64e5['removeAttribute'](_0x3d2848['key'],_0x1fa871);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x232902);}}function Rt(_0x31d02f,_0x4022cf,_0x4e2eab){for(const _0x15074e of _0x4022cf['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x15074e['root']==_0x15074e)return!0x1;if(!_0x4e2eab['containsItem'](_0x15074e))return!0x1;if(_0x31d02f['isObject'](_0x15074e)||_0x31d02f['isLimit'](_0x15074e))return!0x0;}return!0x1;}function Tt(_0x37ab87){return _0x37ab87['end']['parent']==_0x37ab87['start']['nodeAfter']&&_0x37ab87['end']['isAtStart'];}function Et(_0x561cb2,_0x4b637e,_0x231588,_0x119a21){const _0x1587ec=_0x47f757=>!_0x47f757['item']['is']('$textProxy')&&!_0x119a21['isObject'](_0x47f757['item']),_0x335ff4=_0x561cb2['start']['getLastMatchingPosition'](_0x1587ec),_0x7991f4=_0x561cb2['end']['getLastMatchingPosition'](_0x1587ec,{'direction':'backward'});return(!_0x561cb2['start']['isEqual'](_0x335ff4)||!_0x561cb2['end']['isEqual'](_0x7991f4))&&(_0x335ff4['isBefore'](_0x7991f4)?_0x231588['updateMarker'](_0x4b637e,{'range':_0x231588['createRange'](_0x335ff4,_0x7991f4)}):_0x231588['removeMarker'](_0x4b637e),!0x0);}function Vt(_0x450834){return _0x18cece(_0x450834);}function Ut(_0x15d1b8){const _0x440620=_0x15d1b8['start']['nodeAfter'];return _0x440620&&_0x440620['is']('element');}function Ot(_0x58e12c,_0x3a5084){return null==_0x58e12c['end']['nodeBefore']&&_0x58e12c['end']['parent']==_0x58e12c['start']['nodeAfter']?Ft(_0x58e12c['start']['nodeAfter'],_0x3a5084):_0x58e12c;}function Ft(_0x12283c,_0x4bcfe1){const _0x5c7784=_0x4bcfe1['schema']['isObject'](_0x12283c)||_0x4bcfe1['schema']['isSelectable'](_0x12283c);return _0x4bcfe1['createRange'](_0x4bcfe1['createPositionAt'](_0x12283c,'before'),_0x5c7784?_0x4bcfe1['createPositionAfter'](_0x12283c):_0x4bcfe1['createPositionAt'](_0x12283c,'end'));}function Gt(_0x1907d5,_0x387bc9,_0x8f77e0,_0x58fda3,_0xf18f2b){if(!Pt(_0x1907d5,_0x387bc9))return!0x1;if(_0x8f77e0['end']['isEqual'](_0x58fda3['start']))return!0x0;if(_0x1907d5['type']!=_0x387bc9['type'])return!0x1;if(!_0x8f77e0['end']['isTouching'](_0x58fda3['start']))return!0x1;const _0x59f2bf=_0xf18f2b['createRange'](_0x8f77e0['end'],_0x58fda3['start'])['getWalker']();for(const _0x2cacef of _0x59f2bf)if(['elementStart','elementEnd']['includes'](_0x2cacef['type'])&&_0xf18f2b['schema']['isLimit'](_0x2cacef['item']))return!0x1;return!0x0;}function Pt(_0x506ce9,_0x47186b,_0x25a423=[]){return!(!_0x506ce9['_isDataLoaded']||!_0x47186b['_isDataLoaded'])&&_0x29bdc1(Bt(_0x506ce9['attributes'],_0x25a423),Bt(_0x47186b['attributes'],_0x25a423));}function Lt(_0x3bd918,_0x2060d2){const _0x5024ab=Ht(_0x3bd918['attributes']),_0x125f26=Ht(_0x2060d2);if(!_0x3bd918['_isDataLoaded'])return!0x1;for(const _0x390a51 of Object['keys'](_0x125f26))if(!_0x29bdc1(_0x5024ab[_0x390a51],_0x125f26[_0x390a51]))return!0x1;return!0x0;}function Ht(_0x3e0d8d){const _0x1c7e08=Object['assign']({},_0x3e0d8d);return delete _0x1c7e08['skipNestingCheck'],delete _0x1c7e08['tablePasteChainId'],_0x1c7e08;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4389d6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2c6d1e,_0xa8d48b,_0x16c3d4,_0x4c5815){super(),this['model']=_0xa8d48b,this['view']=_0x16c3d4,this['commentThreadController']=_0x4c5815,this['_editor']=_0x2c6d1e,this['_acceptCommand']=_0x2c6d1e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2c6d1e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x226c6b,_0x3d08c4)=>_0x226c6b||_0x3d08c4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x139bdf=>_0x139bdf&&this['_editor']['model']['canEditAt'](_0xa8d48b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4f7b93=>_0x4f7b93&&this['_editor']['model']['canEditAt'](_0xa8d48b['getRanges']())),this['_pendingAction']=null,_0x16c3d4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x16c3d4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x16c3d4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x16c3d4,'change:isDirty',()=>{_0x16c3d4['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 _0x29f958=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x29f958);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x59fb7f{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x165721,_0x8d0a9b,_0x5db903,_0x269f26){super(_0x165721),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x8d0a9b['authoredAt']),this['bind']('authoredAt')['to'](_0x8d0a9b),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x8d0a9b,this['_localUser']=_0x5db903,this['_config']=_0x269f26,_0x269f26['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:_0x518f23}=this['_config'];this['commentsListView']=new _0x518f23(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',_0x4a7839=>_0x4a7839+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x49292c,_0x21e29c)=>_0x49292c||!!_0x21e29c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x59ef4c}=this['_config'],_0x255ddd=new _0x59ef4c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x508e99=_0x255ddd['commentInputView'];return _0x255ddd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x508e99,'value',(_0x1ec8ad,_0x4a588b,_0x4f2efd)=>!!_0x4f2efd||_0x1ec8ad&&!_0x4a588b),_0x508e99['on']('submit',(_0x4dde71,_0x43c9e9)=>{this['fire']('addComment',_0x43c9e9),_0x508e99['editor']['setData']('');}),_0x508e99['on']('cancel',()=>this['focus']()),_0x508e99['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x255ddd;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5971f8,_0x2e4969,_0x32ff78,_0xcf5c6d){super(_0x5971f8,_0x2e4969,_0x32ff78,_0xcf5c6d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x52e6f3=>_0x52e6f3&&_0x52e6f3[0x0]?_0x52e6f3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4438fa,_0x3ab115)=>{let _0xe4ca62='';for(const _0x4f4599 of _0x4438fa)_0xe4ca62+='<p>'+ds(_0x4f4599['content'],_0x4f4599['color'])+'</p>';return _0x3ab115?_0xe4ca62:_0x4fc0d0(_0xe4ca62,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5971f8,'Accept\x20suggestion'),_0x36cd8f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5971f8,'Discard\x20suggestion'),_0x36cd8f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x32f5f7(_0x5971f8,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x536173=this['bindTemplate'],_0x585200=[{'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':_0x536173['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x536173['to']('authoredAt',_0xe5f1e6=>this['_config']['formatDateTime'](_0xe5f1e6))}]}]},{'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']&&_0x585200['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x514510={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x536173['if']('isActive','ck-suggestion-wrapper--active'),_0x536173['to']('type',_0x26d328=>'ck-suggestion-'+_0x26d328),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':_0x585200}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x514510['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)),_0x514510;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x136863,_0x42aef5,_0x3414f2)=>{this['_descriptionElement']['innerHTML']=_0x3414f2;});}['_createButton'](_0x11f388,_0x28d9f1,_0x4bd346,_0x149064,_0xae8a3e){const _0x2293b1=new _0x3416da(this['locale']);return _0x2293b1['set']({'label':_0x11f388,'icon':_0x28d9f1,'tooltip':!0x0,'tooltipPosition':_0xae8a3e}),_0x2293b1['extendTemplate']({'attributes':{'class':_0x4bd346}}),_0x2293b1['on']('execute',()=>{this['fire'](_0x149064,this['_model']['id']);}),_0x2293b1;}['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(_0x4bc223,_0x3e892e){let _0x591633='';return _0x591633+=_0x4bc223['split']('*')['map']((_0xd7dbd7,_0x2ee881)=>_0x2ee881%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xd7dbd7)+'</span>':us(_0xd7dbd7))['join'](''),_0x3e892e&&(_0x591633+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3e892e['value']+'\x22\x20title=\x22'+_0x3e892e['title']+'\x22></span>'),_0x591633;}function us(_0x1e8a1d){const _0x242aed=document['createElement']('span');return _0x242aed['innerText']=_0x1e8a1d,_0x242aed['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 _0x17f7ef{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xfe0aac,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1b3f11){super(_0x1b3f11),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x59c558=this['editor']['config'];_0x59c558['define']('trackChanges.SuggestionThreadView',ne),_0x59c558['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x59c558['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5206e7,_0x54220c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x539cf7,_0x4e9f24]of this['_handleControllerBuffer']){const _0x37c4ef=this['_suggestionToController']['has'](_0x539cf7);_0x37c4ef||_0x4e9f24?_0x37c4ef&&_0x4e9f24&&this['_destroyController'](_0x539cf7):this['_initializeController'](_0x539cf7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5206e7,_0x54220c);}['init'](){const _0xb74971=this['editor'],_0x5ba1ad=_0xb74971['plugins']['get']('TrackChangesEditing'),_0x5eec99=_0xb74971['plugins']['get']('Annotations'),_0x2e3c0b=_0xb74971['plugins']['get']('EditorAnnotations'),_0x2025e6=_0xb74971['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2e3c0b['addSourceCollector'](()=>{const _0x3bd158=[];for(const [_0x160276,_0x5c3f8e]of Array['from'](this['_suggestionToController'])){const _0x255f59=_0x160276['getAllAdjacentSuggestions'](),_0x5846f7=[];for(const _0x315846 of _0x255f59){if(!_0x315846['isInContent'])continue;if(_0x315846['isMultiRange']){_0x5846f7['push'](..._0x315846['getRanges']());continue;}const _0x55b3c9=_0x315846['getFirstRange']();if(_0x5846f7['length']>0x0){const _0x32b889=_0x5846f7[0x0]['getJoined'](_0x55b3c9);if(_0x32b889){_0x5846f7[0x0]=_0x32b889;continue;}}_0x5846f7['push'](_0x55b3c9);}_0x3bd158['push']([_0x5c3f8e['view'],_0x5846f7]);}return _0x3bd158;}),this['listenTo'](_0x5ba1ad,'suggestionLoaded',(_0x6a078e,_0x5a6e8b)=>{this['listenTo'](_0x5a6e8b,'change:previous',(_0x242fa0,_0xcfd696,_0x3f754,_0x4f3af4)=>{_0x5a6e8b['isInContent']&&(null==_0x3f754?(this['_updateController'](_0x4f3af4['head']),this['_handleSuggestionControllerDelayed'](_0x5a6e8b,!0x1)):(this['_updateController'](_0x3f754['head']),null==_0x4f3af4&&this['_handleSuggestionControllerDelayed'](_0x5a6e8b,!0x0)));}),null!==_0x5a6e8b['previous']?this['_updateController'](_0x5a6e8b['head']):this['_handleSuggestionControllerDelayed'](_0x5a6e8b,!0x1);}),this['listenTo'](_0x5ba1ad,'suggestionUnloaded',(_0x58ea7c,_0x5064fc,_0x24023e)=>{this['stopListening'](_0x5064fc,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5064fc),this['_suggestionToController']['has'](_0x5064fc)&&this['_destroyController'](_0x5064fc),_0x24023e&&this['_updateController'](_0x24023e['head']);}),this['listenTo'](_0x5ba1ad,'suggestionChanged',(_0x77e3d6,_0x27cd28)=>{this['_updateController'](_0x27cd28);}),this['listenTo'](_0x5eec99,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2025e6,'addComment',(_0x36d103,{threadId:_0xc2f1bd,isFromAdapter:_0x5c5804})=>{if(_0x5c5804||!_0x5ba1ad['hasSuggestion'](_0xc2f1bd))return;const _0x31338a=_0x5ba1ad['getSuggestion'](_0xc2f1bd);this['_suggestionToController']['get'](_0x31338a)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x36af98=this['editor']['plugins']['get']('Annotations'),_0x2d97b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b9ec1=Array['from'](_0x36af98['activeAnnotations'],_0x2245fe=>_0x2245fe['innerView'])['filter'](_0x1657c0=>this['_viewToController']['has'](_0x1657c0)),_0x4028cc=[];for(const _0x4b17ae of _0x5b9ec1){const _0x379da0=this['_viewToController']['get'](_0x4b17ae)['model']['getAllAdjacentSuggestions']();_0x4028cc['push'](..._0x379da0['reduce']((_0x10e22d,_0x471526)=>[..._0x10e22d,..._0x471526['getMarkerNames']()],[]));}_0x2d97b7['activeMarkers']=_0x4028cc;}['_addUIComponentsToFactory'](){const _0xb6a213=this['editor'],_0x141586=_0xb6a213['locale'],_0x169aee=o(_0x141586,'Track\x20changes'),_0x267e62=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x169aee,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x141586,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x141586,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x141586,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x141586,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x521d70 of _0x267e62)if(ae(_0x521d70)){const _0xc1f554=_0xb6a213['commands']['get'](_0x521d70['model']['commandName']);_0x521d70['model']['bind']('isOn','isEnabled')['to'](_0xc1f554,'value','isEnabled');}_0xb6a213['ui']['componentFactory']['add']('trackChanges',_0x2ea8b4=>this['_createToolbarButton'](_0x2ea8b4,_0x267e62,_0x169aee)),_0xb6a213['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3a516d=>this['_createMenuBarMenu'](_0x3a516d,_0x267e62,_0x169aee));}['_createToolbarButton'](_0x22cc41,_0x459e45,_0xdda277){const _0x323d90=zt(_0x22cc41,Zt),_0x474c25=this['editor']['commands']['get']('trackChanges');_0x323d90['buttonView']['set']({'tooltip':_0xdda277,'label':_0xdda277,'icon':ie}),_0x323d90['buttonView']['bind']('isOn')['to'](_0x474c25,'value'),_0x323d90['buttonView']['on']('execute',()=>{_0x474c25['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x323d90,_0x459e45,{'role':'menu'});const _0x402b50=[];for(const _0x3007bf of _0x459e45)ae(_0x3007bf)&&_0x402b50['push'](this['editor']['commands']['get'](_0x3007bf['model']['commandName']));const _0x2d531a=_0x323d90['buttonView'];return _0x2d531a['actionView']['unbind']('isEnabled'),_0x2d531a['arrowView']['unbind']('isEnabled'),_0x2d531a['actionView']['bind']('isEnabled')['to'](_0x474c25,'isEnabled'),_0x2d531a['arrowView']['bind']('isEnabled')['toMany'](_0x402b50,'isEnabled',(..._0x4a1666)=>_0x4a1666['some'](_0x35e2eb=>_0x35e2eb)),_0x323d90['on']('execute',_0x115d17=>{this['editor']['execute'](_0x115d17['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x323d90;}['_createMenuBarMenu'](_0x293f1f,_0x381b65,_0x402a32){const _0x2fe84c=new Kt(_0x293f1f),_0x36049c=this['editor']['commands']['get']('trackChanges');_0x2fe84c['buttonView']['set']({'label':_0x402a32,'icon':ie});const _0x232899=new Qt(_0x293f1f);for(const _0x2a19e7 of _0x381b65){if('separator'==_0x2a19e7['type']){_0x232899['items']['add'](new Jt(_0x293f1f));continue;}const _0x28352f=new Xt(_0x293f1f,_0x2fe84c),_0x3fe999=new Yt(_0x293f1f),_0x489f31=_0x2a19e7['model'];_0x3fe999['bind'](...Object['keys'](_0x489f31))['to'](_0x489f31),_0x3fe999['delegate']('execute')['to'](_0x2fe84c),_0x3fe999['on']('execute',()=>{this['editor']['execute'](_0x489f31['commandName']),this['editor']['editing']['view']['focus']();}),_0x28352f['children']['add'](_0x3fe999),_0x232899['items']['add'](_0x28352f);}return _0x2fe84c['bind']('isEnabled')['to'](_0x36049c,'isEnabled'),_0x2fe84c['panelView']['children']['add'](_0x232899),_0x2fe84c;}['_initializeController'](_0x4d76d5){const _0x4132a6=this['editor'],_0x4c7e10=_0x4132a6['config'],_0x7286a7=_0x4132a6['plugins']['get']('Annotations'),_0x4f7e50=_0x4132a6['plugins']['get']('CommentsRepository'),_0x492d50=_0x4132a6['plugins']['get']('EditorAnnotations'),_0x3551de=_0x4132a6['plugins']['get'](_0xfe0aac)['me'],_0x4cda0a=_0x4c7e10['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xb46bd4,CommentThreadInputView:_0x373660}=_0x4132a6['plugins']['get']('CommentsUI');let _0x395ee3,_0x532b68;this['_annotationViews']['has'](_0x4d76d5['id'])?(_0x532b68=this['_annotationViews']['get'](_0x4d76d5['id']),_0x395ee3=_0x532b68['mainView']):(_0x395ee3=new _0x4cda0a(_0x4132a6['locale'],_0x4d76d5,_0x3551de,{'disableComments':this['_disableComments'],'editorConfig':_0x4c7e10['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4c7e10['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4c7e10['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4c7e10['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x38f9ee(_0x4c7e10['get']('locale')),'CommentView':_0x4c7e10['get']('comments')['CommentView'],'CommentsListView':_0xb46bd4,'CommentThreadInputView':_0x373660}),_0x395ee3['acceptButton']['on']('execute',()=>{_0x4132a6['editing']['view']['focus']();}),_0x395ee3['discardButton']['on']('execute',()=>{_0x4132a6['editing']['view']['focus']();}),_0x532b68=_0x7286a7['createAnnotationView'](this['editor']['locale'],_0x395ee3),_0x532b68['bind']('isDirty')['to'](_0x395ee3,'isDirty'),_0x532b68['bind']('length')['to'](_0x395ee3),_0x532b68['bind']('type')['to'](_0x395ee3,'type',_0x418536=>'suggestion-'+_0x418536),this['_annotationViews']['set'](_0x4d76d5['id'],_0x532b68));const _0x3b4715=_0x4f7e50['createCommentThreadController'](_0x4d76d5['commentThread'],_0x395ee3),_0x58dd5a=new oe(_0x4132a6,_0x4d76d5,_0x395ee3,_0x3b4715),_0xd9873b=_0x4d76d5['getAllAdjacentSuggestions']()['filter'](_0x1b0935=>_0x1b0935['isInContent']);_0x395ee3['descriptionParts']=_0x4132a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xd9873b),this['_suggestionToController']['set'](_0x4d76d5,_0x58dd5a),this['_viewToController']['set'](_0x395ee3,_0x58dd5a);const _0x2b24ce=_0x7286a7['createAnnotation']({'view':_0x532b68,'target':()=>{const _0x503411=[],_0x3bdd40=_0x4d76d5['getAllAdjacentSuggestions']()['filter'](_0x1cfc89=>_0x1cfc89['isInContent']);for(const _0x17fab3 of _0x3bdd40)_0x503411['push'](..._0x17fab3['getMarkers']());return _0x456120(_0x4132a6['editing'],_0x503411);},'type':()=>'suggestion-'+_0x58dd5a['view']['type']});_0x4f7e50['_bindAnnotationToEditors'](_0x395ee3,_0x2b24ce),_0x7286a7['add'](_0x2b24ce),_0x492d50['registerAnnotation'](_0x2b24ce);}['_destroyController'](_0xdbd739){const _0x401a29=this['editor']['plugins']['get']('CommentsRepository'),_0x2b7500=this['editor']['plugins']['get']('Annotations'),_0xaddebf=this['_suggestionToController']['get'](_0xdbd739),_0x262b88=_0xaddebf['view'],_0x5e4e27=_0x2b7500['getByInnerView'](_0x262b88);_0x401a29['_unbindEditors'](_0x262b88),_0x5e4e27&&_0x2b7500['remove'](_0x5e4e27),this['_suggestionToController']['delete'](_0xdbd739),this['_viewToController']['delete'](_0x262b88),_0xaddebf['destroy']();}['_updateController'](_0x1c83ca){if(!_0x1c83ca['isInContent']||!this['_suggestionToController']['has'](_0x1c83ca))return;const _0x13904a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x588292=this['_suggestionToController']['get'](_0x1c83ca),_0x464a4d=_0x1c83ca['getAllAdjacentSuggestions']();_0x588292['view']['descriptionParts']=_0x13904a['descriptionFactory']['getDescriptions'](_0x464a4d);}['destroy'](){for(const _0x1ab4d7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1ab4d7);for(const _0x27e4da of this['_annotationViews']['values']())_0x27e4da['mainView']['destroy']();super['destroy']();}}function ae(_0x178acf){return'model'in _0x178acf;}class k extends _0x17f7ef{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xc401e6){this['editor']['plugins']['get'](p)['adapter']=_0xc401e6;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3e5490){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3e5490);}['getSuggestions']({skipNotAttached:_0x19f5d2=!0x1,toJSON:_0x34d763=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x19f5d2,'toJSON':_0x34d763});}['getSuggestion'](_0x5133ce){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5133ce);}}const T=['Pagination'];class P extends _0x17f7ef{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x58540f=this['editor'];if(_0x58540f['config']['define']('trackChangesData.editorCreator',_0x39a74d=>{const _0xe49776=_0x58540f['model']['document']['getRootNames']()['reduce']((_0x11ab8f,_0x250b32)=>(_0x11ab8f[_0x250b32]='',_0x11ab8f),{});return _0x58540f['constructor']['create'](_0xe49776,_0x39a74d);}),'function'!=typeof _0x58540f['config']['get']('trackChangesData')['editorCreator'])throw new _0x47d488('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x41ba8e){return N(this['editor'],!0x0,_0x41ba8e);}['getDataWithDiscardedSuggestions'](_0x364384){return N(this['editor'],!0x1,_0x364384);}}class D extends _0x17f7ef{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x11e7f1){super(_0x11e7f1),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(_0x45f403){return void 0x0!==_0x45f403['getRootsAttributes'];}async function N(_0x466a4e,_0x33f0d0,_0x1bf6d1){const _0x1cde36=_0x68500f(_0x466a4e,T);_0x1cde36['plugins']['push'](p,D),_0x1cde36['rootsAttributes']=v(_0x466a4e)?_0x466a4e['getRootsAttributes']():void 0x0;const _0x44b11e=document['createDocumentFragment'](),_0x58c38a=_0x466a4e['config']['get']('trackChangesData')['editorCreator'],_0x3b4346=await _0x58c38a(_0x1cde36,()=>function(_0x1221f8){const _0x163bb5=document['createElement']('div');return _0x1221f8['appendChild'](_0x163bb5),_0x163bb5;}(_0x44b11e));!function(_0x43d7b5,_0x5a0f16){const _0x58a16f=_0x43d7b5['model']['document']['getRootNames']()['reduce']((_0x2b0a35,_0x56d690)=>(_0x2b0a35[_0x56d690]=_0x43d7b5['data']['get']({'rootName':_0x56d690}),_0x2b0a35),{}),_0x5d4de3=_0x43d7b5['plugins']['get']('Users')['users']['map'](_0x456a0b=>({'id':_0x456a0b['id'],'name':_0x456a0b['name']})),_0x540f56=_0x43d7b5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x35b73e=_0x43d7b5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x250d18=_0x5a0f16['plugins']['get']('Users'),_0x1c7d72=_0x5a0f16['plugins']['get']('TrackChangesEditing'),_0x36caa4=_0x5a0f16['plugins']['get']('CommentsRepository');for(const _0x328d66 of _0x5d4de3)_0x250d18['getUser'](_0x328d66['id'])||_0x250d18['addUser'](_0x328d66);_0x250d18['me']||_0x250d18['useAnonymousUser']();for(const _0x54563d of _0x540f56)_0x1c7d72['addSuggestionData'](_0x54563d);for(const _0x16bd8b of _0x35b73e)_0x36caa4['addCommentThread'](_0x16bd8b);_0x5a0f16['data']['set'](_0x58a16f);}(_0x466a4e,_0x3b4346),_0x3b4346['execute'](_0x33f0d0?'acceptAllSuggestions':'discardAllSuggestions');const _0x13946d=v(_0x3b4346)?_0x3b4346['getFullData'](_0x1bf6d1):_0x3b4346['data']['get'](_0x1bf6d1);return await _0x3b4346['destroy'](),_0x13946d;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x4679c4,PendingActions as _0x540a4e,icons as _0x4ae9a9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x306236,ObservableMixin as _0x12e385,uid as _0x4fd794,insertToPriorityArray as _0xb700eb,priorities as _0x5cd3d6,logWarning as _0x1d2539,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2ce657,View as _0x2bcc14,ButtonView as _0x19cfec,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 _0x5ed081,hashObject as _0x177557,surroundingMarkersDetector as _0x5904d0,trimHtml as _0x507d90,UserView as _0x55fa6d,getDateTimeFormatter as _0x3bd790,getAllMarkersDomElementsSorted as _0x158d66,sanitizeEditorConfig as _0x45bc19}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x267b5c,LiveRange as _0x528595,LivePosition as _0x479000}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x59682f,toWidget as _0x3c0871}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5c804f,set as _0x1a585a,isEqual as _0xa9b325,unset as _0x545ced,omit as Bt}from'lodash-es';import{Delete as _0x2f040e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2357d1,ShiftEnter as _0x3006f4}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x515ee7,_0x50f477){super(_0x515ee7),this['_enabledCommands']=_0x50f477,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 _0x92683e of this['editor']['commands']['commands']())_0x92683e['affectsData']&&!this['_enabledCommands']['has'](_0x92683e)&&_0x92683e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x547036 of this['editor']['commands']['commands']())_0x547036['affectsData']&&!this['_enabledCommands']['has'](_0x547036)&&_0x547036['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x559d3b,_0x5771a2){super(_0x559d3b),this['_suggestions']=_0x5771a2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5d61f0){const _0x35d911=this['_suggestions']['get'](_0x5d61f0);if(!_0x35d911)throw new _0x306236('track-changes-accept-suggestion-not-found',this);const _0x2581d9=_0x35d911['getRanges']();this['editor']['model']['canEditAt'](_0x2581d9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x35d911);}}class B extends ts{['_suggestions'];constructor(_0x5792b9,_0x33148a){super(_0x5792b9),this['_suggestions']=_0x33148a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xdb703f){const _0x262b79=this['_suggestions']['get'](_0xdb703f);if(!_0x262b79)throw new _0x306236('track-changes-discard-suggestion-not-found',this);const _0x8540e3=_0x262b79['getRanges']();this['editor']['model']['canEditAt'](_0x8540e3)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x262b79);}}function ss(_0x3199b4){return _0x3199b4['sort']((_0x5b4b1f,_0x33451e)=>'deletion'==_0x5b4b1f['type']&&'deletion'!=_0x33451e['type']?-0x1:'deletion'!=_0x5b4b1f['type']&&'deletion'==_0x33451e['type']?0x1:0x0);}function to(_0x8d3b4e,_0x5780c8){let _0x152dbe,_0x1c9147=0x0;const _0x290dae=[],_0x118d2d=_0x5780c8['schema'];for(;_0x1c9147<_0x8d3b4e['length'];){const _0x3c6b50=_0x8d3b4e[_0x1c9147],_0x22a67d=_0x8d3b4e[_0x1c9147+0x1];_0x152dbe||(_0x152dbe=_0x5780c8['createPositionBefore'](_0x3c6b50)),co(_0x5780c8,_0x3c6b50,_0x22a67d)||(_0x290dae['push'](_0x5780c8['createRange'](_0x152dbe,_0x118d2d['isObject'](_0x3c6b50)?_0x5780c8['createPositionAfter'](_0x3c6b50):_0x5780c8['createPositionAt'](_0x3c6b50,'end'))),_0x152dbe=null),_0x1c9147++;}return _0x290dae;}function co(_0x464fae,_0x337c4f,_0x5ec360){if(!_0x5ec360)return!0x1;const _0x4383f8=_0x464fae['createPositionAfter'](_0x337c4f),_0x252855=_0x464fae['createPositionBefore'](_0x5ec360);return _0x4383f8['isTouching'](_0x252855);}function rs(_0x3e38b0,_0x41cdf7,_0x56fd4b){for(;_0x56fd4b['length'];){const _0x1e4383=_0x56fd4b['splice'](0x0,0x64);_0x3e38b0['change'](()=>{for(const _0xcc23ee of _0x1e4383)_0xcc23ee['isInContent']&&_0x41cdf7['execute'](_0xcc23ee['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x20e621,_0x1a2795,_0x2f33d4){super(_0x20e621),this['_command']=_0x1a2795,this['_suggestions']=_0x2f33d4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3b5aca=Array['from'](this['_suggestions']['values']())['some'](_0x26a1ce=>_0x26a1ce['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3b5aca;}['execute'](){const _0x5f4c5f=ss(Array['from'](this['_suggestions']['values']()));for(const _0x504796 of _0x5f4c5f){const _0x4837cc=_0x504796['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4837cc))return;}rs(this['editor']['model'],this['_command'],_0x5f4c5f);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3aee86,_0x1f748c,_0x12a240){super(_0x3aee86),this['_command']=_0x1f748c,this['_suggestions']=_0x12a240,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x27df14=this['editor']['model']['document']['selection'],_0x411683=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x579c1c,_0x37b6c7){const _0x226408=Array['from'](_0x579c1c['getRanges']()),_0x217b95=new Set();for(const _0x38ce97 of _0x37b6c7)if(_0x38ce97['isInContent']){for(const _0x31df8d of _0x226408)for(const _0x2020dd of _0x38ce97['getRanges']())(_0x31df8d['isIntersecting'](_0x2020dd)||_0x579c1c['isCollapsed']&&!_0x38ce97['isMultiRange']&&_0x38ce97['next']&&_0x2020dd['end']['isTouching'](_0x31df8d['start']))&&_0x217b95['add'](_0x38ce97);}return _0x217b95;}(_0x27df14,_0x411683),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x50d039=ss(Array['from'](this['_selectedSuggestions']));for(const _0x46c9b0 of _0x50d039){const _0x581c71=_0x46c9b0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x581c71))return;}rs(this['editor']['model'],this['_command'],_0x50d039);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x12e385(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x292642,_0x544408){super(),this['id']=_0x544408['id'],this['type']=_0x544408['type'],this['subType']=_0x544408['subType']||null,this['author']=_0x544408['author'],this['creator']=_0x544408['creator']||_0x544408['author'],this['isExternal']=Boolean(_0x544408['attributes']&&_0x544408['attributes']['@external']),this['data']=null,this['_model']=_0x292642,this['_onAccept']=_0x544408['onAccept'],this['_onDiscard']=_0x544408['onDiscard'],this['_onAttributesChange']=_0x544408['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x544408['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 _0x76beea=this;for(;_0x76beea['previous'];)_0x76beea=_0x76beea['previous'];return _0x76beea;}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'](_0x123e44){this['_markerNames']['add'](_0x123e44);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2329a8=>this['_model']['markers']['get'](_0x2329a8))['filter'](_0x39213c=>_0x39213c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1e331a=>{for(const _0x4df952 of this['getMarkers']())_0x1e331a['removeMarker'](_0x4df952);}),this['_markerNames']['clear']();}['removeMarker'](_0xc32b37){this['_model']['change'](_0x2e64d5=>{_0x2e64d5['removeMarker'](_0xc32b37);}),this['_markerNames']['delete'](_0xc32b37);}['addRange'](_0x56052b){const _0x65e554='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x65e554),this['_model']['change'](_0x1c639a=>{_0x1c639a['addMarker'](_0x65e554,{'range':_0x56052b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2e8725){for(const _0x4a35fb of this['getRanges']())if(_0x4a35fb['isIntersecting'](_0x2e8725))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4820f2=>_0x4820f2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x203da4,_0x586922)=>[..._0x203da4,..._0x586922['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x267ce0=this['getRanges']();if(0x1!=_0x267ce0['length'])return null;const _0x1cb521=_0x267ce0[0x0],_0x30511c=_0x1cb521['start']['nodeAfter'],_0x4a8e39=_0x1cb521['end']['nodeBefore'];return _0x30511c instanceof _0x267b5c?_0x30511c!=_0x4a8e39?null:_0x30511c: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 _0x4ef185=[];let _0x333c4f=this['head'];for(;_0x333c4f;)_0x4ef185['push'](_0x333c4f),_0x333c4f=_0x333c4f['next'];return _0x4ef185;}['setAttribute'](_0xdff42f,_0x2e01ce){const _0x3b9d78=_0x5c804f(this['attributes']);_0x1a585a(_0x3b9d78,_0xdff42f,_0x2e01ce),_0xa9b325(_0x3b9d78,this['attributes'])||(this['attributes']=_0x3b9d78,this['_onAttributesChange'](_0x3b9d78));}['removeAttribute'](_0x1339b9){const _0x51d304=_0x5c804f(this['attributes']);_0x545ced(_0x51d304,_0x1339b9),_0xa9b325(_0x51d304,this['attributes'])||(this['attributes']=_0x51d304,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 _0x4fd794()['substr'](0x1,0x5);}}function o(_0x749bee,_0x57cde1,_0x45a700){const t=_0x749bee['t'];switch(_0x57cde1){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',_0x45a700);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x45a700);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x45a700);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x45a700);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x45a700);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',_0x45a700);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x45a700);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',_0x45a700);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x45a700);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x45a700);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x45a700);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x45a700);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x45a700);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x45a700);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x45a700);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x45a700);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x45a700);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x45a700);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x45a700);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x45a700);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x45a700);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x45a700);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x45a700);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'},_0x45a700);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x45a700);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x45a700);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x45a700);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x45a700);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x45a700);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'},_0x45a700);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x45a700);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x45a700);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x45a700);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x45a700);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'},_0x45a700);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x45a700);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'},_0x45a700);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'},_0x45a700);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x45a700);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'},_0x45a700);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x45a700);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'},_0x45a700);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x45a700);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x45a700);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'},_0x45a700);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'},_0x45a700);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 _0x57cde1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x22532e,_0x47447c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x22532e,this['_locale']=_0x47447c;}['getDescriptions'](_0x5de55a){const _0x413965=[],_0x47a24a=new Set(),_0x1e005b=new Set();for(let _0x4ca449=0x0;_0x4ca449<_0x5de55a['length'];_0x4ca449++){const _0x16c4f0=_0x5de55a[_0x4ca449];if(!_0x16c4f0['isInContent'])continue;const _0x570d86=this['_handleCustomCallbackDescription'](_0x16c4f0);if(_0x570d86){if(null!=_0x16c4f0['subType']){if(_0x47a24a['has'](_0x16c4f0['subType']))continue;_0x47a24a['add'](_0x16c4f0['subType']);}_0x413965['push'](_0x570d86);}else{if('attribute'!=_0x16c4f0['type'])'insertion'!=_0x16c4f0['type']&&'deletion'!=_0x16c4f0['type']||this['_handleInsertRemoveSuggestionDescription'](_0x413965,_0x16c4f0,_0x5de55a[_0x4ca449+0x1]);else{const _0xa7dbf=_0x16c4f0['data']['key'];if(_0x1e005b['has'](_0xa7dbf))continue;_0x1e005b['add'](_0x16c4f0['data']['key']),_0xa7dbf==m?this['_handleRenameSuggestionDescription'](_0x413965,_0x16c4f0):this['_handleAttributeSuggestionDescription'](_0x413965,_0x16c4f0);}}}return this['_resolveDescriptionItems'](_0x413965);}['registerDescriptionCallback'](_0x4419a9){this['_customCallbacks']['push'](_0x4419a9);}['registerElementLabel'](_0x64dfe5,_0x57f262,_0x3c3fcd=_0x5cd3d6['normal']){'function'==typeof _0x64dfe5?_0xb700eb(this['_itemLabelsCallbacks'],{'matchingCallback':_0x64dfe5,'label':_0x57f262,'priority':_0x3c3fcd}):this['_itemLabels']['set'](_0x64dfe5,_0x57f262);}['registerAttributeLabel'](_0x1afd02,_0x1056f2){this['_attributeLabels']['set'](_0x1afd02,_0x1056f2);}['getItemLabel'](_0x4e5466,_0xce8a62=0x1){let _0xd1654d;for(const _0x1bc495 of this['_itemLabelsCallbacks'])if(_0x1bc495['matchingCallback'](_0x4e5466)){_0xd1654d=_0x1bc495['label'];break;}return _0xd1654d||(_0xd1654d=this['_itemLabels']['get'](_0x4e5466['name'])),_0xd1654d?_0xd1654d(_0xce8a62):0x1!==_0xce8a62?_0xce8a62+'\x20'+_0x4e5466['name']+'s':''+_0x4e5466['name'];}['_addDescriptionItems'](_0x67d99e,_0x2de999){const _0x3ca7e1=_0x2de999['getFirstRange']()['getWalker'](),_0x5360ed='insertion'==_0x2de999['type']?'add':'remove';for(const _0x16721b of _0x3ca7e1){const _0x528b01=_0x16721b['item'],_0x28de9d=_0x67d99e[_0x67d99e['length']-0x1];if(_0x528b01['is']('$textProxy'))_0x28de9d&&_0x28de9d['type']['indexOf']('Container')>-0x1&&_0x67d99e['pop'](),_0x28de9d&&'text'==_0x28de9d['type']?_0x28de9d[_0x5360ed]+=_0x528b01['data']:_0x67d99e['push']({'type':'text','add':'add'==_0x5360ed?_0x528b01['data']:'','remove':'remove'==_0x5360ed?_0x528b01['data']:''});else{if(this['_schema']['isObject'](_0x528b01)){const _0x20c5f4=_0x528b01;if(_0x28de9d&&_0x28de9d['type']['indexOf']('Container')>-0x1&&_0x67d99e['pop'](),'elementEnd'==_0x16721b['type'])continue;_0x28de9d&&_0x28de9d['type']==_0x5360ed+'Object'&&_0x28de9d['element']['name']==_0x20c5f4['name']?_0x28de9d['quantity']++:_0x67d99e['push']({'type':_0x5360ed+'Object','element':_0x20c5f4,'quantity':0x1}),_0x3ca7e1['skip'](_0x5481a0=>!('elementEnd'==_0x5481a0['type']&&_0x5481a0['item']==_0x528b01));}else{if(this['_schema']['checkChild'](_0x528b01,'$text')||_0x528b01['is']('element','softBreak')){const _0x57820e=_0x528b01;if('add'==_0x5360ed&&'elementStart'==_0x16721b['type']||'remove'==_0x5360ed&&'elementEnd'==_0x16721b['type'])continue;if(_0x28de9d&&-0x1==_0x28de9d['type']['indexOf']('Container')){'text'==_0x28de9d['type']&&(_0x28de9d[_0x5360ed]+='\x0a');continue;}let _0xd8f1b5;if(_0xd8f1b5='add'==_0x5360ed?_0x57820e['nextSibling']&&!this['_schema']['isObject'](_0x57820e['nextSibling'])?_0x57820e['nextSibling']:null:_0x57820e['previousSibling']&&!this['_schema']['isObject'](_0x57820e['previousSibling'])?_0x57820e['previousSibling']:null,_0x57820e['isEmpty']||_0xd8f1b5&&_0xd8f1b5['isEmpty']){const _0xe74fc1=_0xd8f1b5&&_0xd8f1b5['isEmpty']?_0xd8f1b5:_0x57820e;_0x28de9d&&_0x28de9d['type']==_0x5360ed+'EmptyContainer'&&_0x28de9d['element']['name']==_0xe74fc1['name']?_0x28de9d['quantity']++:_0x67d99e['push']({'type':_0x5360ed+'EmptyContainer','element':_0xe74fc1,'quantity':0x1});}else _0x67d99e['push']({'type':_0x5360ed+'Container','element':_0x57820e});}}}}}['_resolveDescriptionItems'](_0x4e70fc){const _0x55dfe0=this['_locale'],_0x211341=[],_0x560066=[],_0x1f3524=[];for(const _0x5b8a03 of _0x4e70fc)switch(_0x5b8a03['type']){case'text':if(_0x5b8a03['add']=_0x5b8a03['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5b8a03['remove']=_0x5b8a03['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5b8a03['add']&&''!=_0x5b8a03['remove']){_0x211341['push']({'type':'replace','content':o(_0x55dfe0,'REPLACE_TEXT',['\x22'+_0x5b8a03['remove']+'\x22','\x22'+_0x5b8a03['add']+'\x22'])});continue;}if(null!=_0x5b8a03['add']['match'](/^ +$/)){_0x211341['push']({'type':'insertion','content':o(_0x55dfe0,'*Insert:*\x20%0',o(_0x55dfe0,'ELEMENT_SPACE',_0x5b8a03['add']['length']))});continue;}if(null!=_0x5b8a03['remove']['match'](/^ +$/)){_0x211341['push']({'type':'deletion','content':o(_0x55dfe0,'*Remove:*\x20%0',o(_0x55dfe0,'ELEMENT_SPACE',_0x5b8a03['remove']['length']))});continue;}if(''!=_0x5b8a03['add']){_0x211341['push']({'type':'insertion','content':o(_0x55dfe0,'*Insert:*\x20%0','\x22'+_0x5b8a03['add']+'\x22')});continue;}_0x211341['push']({'type':'deletion','content':o(_0x55dfe0,'*Remove:*\x20%0','\x22'+_0x5b8a03['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x211341['push']({'type':'insertion','content':o(_0x55dfe0,'*Insert:*\x20%0',this['getItemLabel'](_0x5b8a03['element'],_0x5b8a03['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x211341['push']({'type':'deletion','content':o(_0x55dfe0,'*Remove:*\x20%0',this['getItemLabel'](_0x5b8a03['element'],_0x5b8a03['quantity']))});continue;case'addContainer':_0x211341['push']({'type':'insertion','content':o(_0x55dfe0,'*Split:*\x20%0',this['getItemLabel'](_0x5b8a03['element'],_0x5b8a03['quantity']))});continue;case'removeContainer':_0x211341['push']({'type':'deletion','content':o(_0x55dfe0,'*Merge:*\x20%0',this['getItemLabel'](_0x5b8a03['element'],_0x5b8a03['quantity']))});continue;case'addFormat':_0x560066['push'](_0x5b8a03['key']);continue;case'removeFormat':_0x1f3524['push'](_0x5b8a03['key']);continue;default:_0x211341['push'](_0x5b8a03);}if(_0x560066['length']){const _0x2c3dbf=_0x560066['map'](_0x3a975b=>this['_attributeLabels']['has'](_0x3a975b)?this['_attributeLabels']['get'](_0x3a975b):_0x3a975b)['join'](',\x20');_0x211341['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2c3dbf)});}if(_0x1f3524['length']){const _0x5c0ad7=_0x1f3524['map'](_0x55f7e0=>this['_attributeLabels']['has'](_0x55f7e0)?this['_attributeLabels']['get'](_0x55f7e0):_0x55f7e0)['join'](',\x20');_0x211341['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5c0ad7)});}return _0x211341;}['_handleCustomCallbackDescription'](_0x1b0bb6){for(const _0x2e519e of this['_customCallbacks']){const _0x428852=_0x2e519e(_0x1b0bb6);if(_0x428852&&'type'in _0x428852)return _0x428852;}}['_handleAttributeSuggestionDescription'](_0xd7f289,_0x3fb078){const _0x239d24=_0x3fb078['data'],_0x31a897=void 0x0===_0x239d24['newValue']?'removeFormat':'addFormat';_0xd7f289['push']({'type':_0x31a897,'key':_0x239d24['key']});}['_handleRenameSuggestionDescription'](_0x3bd53a,_0x1dbf8a){_0x3bd53a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1dbf8a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1a02c2,_0x47b11c,_0x1220a0){if(this['_addDescriptionItems'](_0x1a02c2,_0x47b11c),_0x1220a0&&_0x1220a0['getFirstRange']()&&!_0x47b11c['getFirstRange']()['end']['isEqual'](_0x1220a0['getFirstRange']()['start'])){const _0x1ac6ac=_0x1a02c2[_0x1a02c2['length']-0x1],_0xe2190c='insertion'==_0x47b11c['type']?'add':'remove';_0x1ac6ac&&'text'==_0x1ac6ac['type']&&(_0x1ac6ac[_0xe2190c]+='\x0a');}}}class E extends _0x4679c4{['afterInit'](){const _0x58bbe0=this['editor'],_0x2f2a95=_0x58bbe0['plugins']['get']('TrackChangesEditing');_0x58bbe0['commands']['get']('showAIAssistant')&&_0x2f2a95['enableCommand']('showAIAssistant');}}class V extends _0x4679c4{['afterInit'](){const _0x13da29=this['editor'],_0x36ae7a=_0x13da29['locale'];if(!_0x13da29['plugins']['has']('AlignmentEditing'))return;const _0x33db53=_0x13da29['plugins']['get']('TrackChangesEditing');_0x33db53['enableDefaultAttributesIntegration']('alignment'),_0x33db53['registerBlockAttribute']('alignment'),_0x33db53['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x36ae7a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19c869=this['editor'],_0x235e2b=_0x19c869['locale'];_0x19c869['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x415976=>{if('formatBlock'!=_0x415976['type'])return;const {data:_0x10090}=_0x415976;if(_0x10090&&'alignment'==_0x10090['commandName']){const _0x5d5464=_0x10090['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x235e2b,'*Format:*\x20%0',function(_0x4e8075){switch(_0x4e8075){case'left':return o(_0x235e2b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x235e2b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x235e2b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x235e2b,'FORMAT_JUSTIFY_TEXT');}}(_0x5d5464))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4679c4{['afterInit'](){const _0x43b4cc=this['editor'],_0x3d67a2=_0x43b4cc['plugins']['get']('TrackChangesEditing'),_0x440716=_0x43b4cc['locale'];for(const _0x243f2b of ti){if(!_0x43b4cc['plugins']['has'](_0x243f2b))continue;const _0x4bfa09=_0x243f2b['slice'](0x0,-0x7)['toLowerCase'](),_0x4e0876='FORMAT_'+_0x4bfa09['toUpperCase']();_0x3d67a2['enableDefaultAttributesIntegration'](_0x4bfa09),_0x3d67a2['registerInlineAttribute'](_0x4bfa09),_0x3d67a2['descriptionFactory']['registerAttributeLabel'](_0x4bfa09,o(_0x440716,_0x4e0876));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x273d50=this['editor'],_0x434ed7=_0x273d50['locale'],_0xa9b64e=_0x273d50['plugins']['get']('TrackChangesEditing');function _0x15eb79(_0x2e42b1,_0x23a40b){_0xa9b64e['descriptionFactory']['registerDescriptionCallback'](_0x5973c8=>{if('formatInline'!=_0x5973c8['type'])return;const {data:_0x52d0b2}=_0x5973c8;return _0x52d0b2&&_0x52d0b2['commandName']===_0x2e42b1?_0x52d0b2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x434ed7,'*Format:*\x20%0',_0x23a40b)}:{'type':'format','content':o(_0x434ed7,'*Remove\x20format:*\x20%0',_0x23a40b)}:void 0x0;});}_0x15eb79('bold',o(_0x434ed7,'FORMAT_BOLD')),_0x15eb79('italic',o(_0x434ed7,'FORMAT_ITALIC')),_0x15eb79('underline',o(_0x434ed7,'FORMAT_UNDERLINE')),_0x15eb79('code',o(_0x434ed7,'FORMAT_CODE')),_0x15eb79('strikethrough',o(_0x434ed7,'FORMAT_STRIKETHROUGH')),_0x15eb79('subscript',o(_0x434ed7,'FORMAT_SUBSCRIPT')),_0x15eb79('superscript',o(_0x434ed7,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4679c4{['afterInit'](){const _0x57ade2=this['editor'],_0x4eaf67=_0x57ade2['locale'];if(!_0x57ade2['plugins']['has']('BlockQuoteEditing'))return;const _0x19b5d4=_0x57ade2['plugins']['get']('TrackChangesEditing'),_0x497e45=this['editor']['commands']['get']('blockQuote');_0x19b5d4['enableCommand']('blockQuote',(_0x310f4d,_0x335756={})=>{const _0x2c81b4=this['editor']['model']['document']['selection'],_0xfd85c7=_0x335756&&void 0x0!==_0x335756['forceValue']?_0x335756['forceValue']:!_0x497e45['value'];let _0x3afeec=[];if(_0xfd85c7){const _0x2b9a35=Array['from'](_0x2c81b4['getSelectedBlocks']())['filter'](_0x1beb9b=>oo(_0x1beb9b)||function(_0x2883b0,_0x21e555){const _0x26ca77=_0x21e555['checkChild'](_0x2883b0['parent'],'blockQuote'),_0xcb24f5=_0x21e555['checkChild'](['$root','blockQuote'],_0x2883b0);return _0x26ca77&&_0xcb24f5;}(_0x1beb9b,this['editor']['model']['schema']));_0x3afeec=to(_0x2b9a35,_0x57ade2['model']);}else{const _0x5ab074=Array['from'](_0x2c81b4['getSelectedBlocks']())['filter'](_0x5db8d7=>oo(_0x5db8d7));_0x3afeec=to(_0x5ab074,_0x57ade2['model']);}_0x57ade2['model']['change'](()=>{for(const _0x19f665 of _0x3afeec)_0x19b5d4['markBlockFormat'](_0x19f665,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xfd85c7}]});});}),_0x19b5d4['descriptionFactory']['registerDescriptionCallback'](_0x27993c=>{const {data:_0x482246}=_0x27993c;if(_0x482246&&'blockQuote'==_0x482246['commandName']){const _0xf37333=o(_0x4eaf67,'ELEMENT_BLOCK_QUOTE');return _0x482246['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4eaf67,'*Set\x20format:*\x20%0',_0xf37333)}:{'type':'format','content':o(_0x4eaf67,'*Remove\x20format:*\x20%0',_0xf37333)};}});}}function oo(_0x38bc97){return'blockQuote'==_0x38bc97['parent']['name'];}class F extends _0x4679c4{['afterInit'](){const _0xe68ea3=this['editor'];_0xe68ea3['plugins']['has']('CaseChange')&&(_0xe68ea3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xe68ea3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xe68ea3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x4679c4{['afterInit'](){const _0x349590=this['editor'];_0x349590['commands']['get']('ckbox')&&_0x349590['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4679c4{['afterInit'](){const _0x381ae1=this['editor'];if(!_0x381ae1['plugins']['has']('CodeBlock'))return;const _0x1d3775=_0x381ae1['plugins']['get']('TrackChangesEditing'),_0x8deeb0=_0x381ae1['locale'],_0x4e446f=_0x381ae1['config']['get']('codeBlock')['languages'],_0x52e1d=_0x381ae1['commands']['get']('codeBlock');_0x1d3775['enableCommand']('indentCodeBlock'),_0x1d3775['enableCommand']('outdentCodeBlock'),_0x1d3775['enableCommand']('codeBlock',(_0x468f4d,_0x5affdb={})=>{const _0x15bccc=_0x381ae1['model'],_0x1d1a36=_0x381ae1['model']['document']['selection'],_0x23ab47=_0x5affdb&&void 0x0!==_0x5affdb['forceValue']?_0x5affdb['forceValue']:!_0x52e1d['value'];let _0x25a2a0;_0x5affdb['language']||(_0x5affdb['language']=_0x4e446f[0x0]['language']),_0x25a2a0=_0x23ab47?Array['from'](_0x1d1a36['getSelectedBlocks']())['filter'](_0x514c49=>eo(_0x514c49)||function(_0x2e3a7a,_0x408cf6){if(_0x2e3a7a['is']('rootElement')||_0x408cf6['isLimit'](_0x2e3a7a))return!0x1;return _0x408cf6['checkChild'](_0x2e3a7a['parent'],'codeBlock');}(_0x514c49,_0x15bccc['schema'])):Array['from'](_0x1d1a36['getSelectedBlocks']())['filter'](_0x1648cb=>eo(_0x1648cb));const _0x2be8b2=to(_0x25a2a0,_0x15bccc);_0x15bccc['change'](()=>{for(const _0x2063a0 of _0x2be8b2)_0x1d3775['markBlockFormat'](_0x2063a0,{'commandName':'codeBlock','commandParams':[{..._0x5affdb,'forceValue':_0x23ab47}],'formatGroupId':'blockName'});});}),(_0x1d3775['descriptionFactory']['registerElementLabel']('codeBlock',_0x57dc95=>o(_0x8deeb0,'ELEMENT_CODE_BLOCK',_0x57dc95)),_0x1d3775['descriptionFactory']['registerDescriptionCallback'](_0x3e7e41=>{if('formatBlock'!=_0x3e7e41['type'])return;const _0x33b97e=_0x8deeb0['t'],{data:_0x1338f6}=_0x3e7e41;if(!_0x1338f6||'codeBlock'!=_0x1338f6['commandName'])return;const _0x3642d0=_0x1338f6['commandParams'][0x0]['language'],_0x13054a=_0x33b97e(_0x4e446f['find'](_0x535ffe=>_0x535ffe['language']===_0x3642d0)['label'])['toLowerCase']();return _0x1338f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8deeb0,'*Set\x20format:*\x20%0',o(_0x8deeb0,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x13054a+')')}:{'type':'format','content':o(_0x8deeb0,'*Remove\x20format:*\x20%0',o(_0x8deeb0,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1c2296){return'codeBlock'==_0x1c2296['name'];}class H extends _0x4679c4{['afterInit'](){const _0x1034a3=this['editor'];if(!_0x1034a3['plugins']['has']('CommentsEditing'))return;_0x1034a3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5d3d91,_0x1a0a27,_0x58a744){const _0x2711cb=[];for(const _0x380569 of _0x1a0a27['getItems']())_0x380569['hasAttribute'](_0x5d3d91)&&_0x2711cb['push'](_0x58a744['createRangeOn'](_0x380569));return _0x2711cb;}function _e(_0x2618ec,_0x3477f3,{showActiveMarker:_0x82ede6=!0x0}={}){const _0x290cf1=_0x2618ec['plugins']['get']('TrackChangesEditing');return(_0x1c8bdd,_0xfc6c47,_0x5a4588)=>{if(!_0x5a4588['consumable']['test'](_0xfc6c47['markerRange'],_0x1c8bdd['name']))return;const _0xf0aabe=_0xfc6c47['markerRange']['getWalker'](),_0x3f7433=_0xfc6c47['markerRange']['start'],_0x1c0656=_0x2618ec['model']['schema'];let _0x4cb86d=null,_0x4326a6=null,_0x397724=!0x1,_0x3bb99b=!0x1;for(const _0x14a4dd of _0xf0aabe){const _0x56ef86=_0x14a4dd['item'];_0x397724=_0x397724||_0x1c0656['isContent'](_0x56ef86);const _0x2ffd9a=_0x5a4588['mapper']['toViewElement'](_0x56ef86);if(_0x2ffd9a&&_0x2ffd9a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x14a4dd['type']&&(_0x1c0656['isBlock'](_0x56ef86)&&!_0x1c0656['isLimit'](_0x56ef86)&&(_0x56ef86['nextSibling']||_0x3f7433['isAtEnd']?_0x4cb86d&&_0x4cb86d['parent']==_0x56ef86||(_0x4cb86d=_0x56ef86,_0x409d84(_0x14a4dd['previousPosition']),_0x3bb99b=!0x0):_0x4326a6=_0x4326a6||_0x14a4dd['previousPosition']));}function _0x409d84(_0x3a1349){const _0x53c1b5=_0x5a4588['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3477f3}),_0x208949=_0x5a4588['mapper']['toViewPosition'](_0x3a1349);_0x82ede6&&_0x290cf1['activeMarkers']['includes'](_0xfc6c47['markerName'])&&_0x5a4588['writer']['addClass']('ck-suggestion-marker--active',_0x53c1b5),_0x5a4588['writer']['insert'](_0x208949,_0x53c1b5),_0x5a4588['mapper']['bindElementToMarker'](_0x53c1b5,_0xfc6c47['markerName']);}_0x397724||_0x3bb99b||!_0x4326a6||_0x409d84(_0x4326a6);};}class q extends _0x4679c4{static get['requires'](){return[_0x2f040e];}['init'](){const _0x51025c=this['editor'],_0x474278=_0x51025c['plugins']['get']('TrackChangesEditing');_0x474278['enableCommand']('delete');const _0x4a7414=_0x51025c['commands']['get']('deleteForward');_0x474278['enableCommand']('deleteForward',(_0x393f6d,_0x18bec7={})=>{const _0x534141=_0x51025c['model']['createSelection'](_0x51025c['model']['document']['selection']);_0x534141['isCollapsed']&&_0x51025c['model']['modifySelection'](_0x534141,{'direction':'forward','unit':_0x18bec7['unit']});const _0x5c2e96=_0x534141['getFirstRange'](),_0xa90883=_0x528595['fromRange'](_0x5c2e96);let _0x20e388;_0x393f6d(_0x18bec7),_0x20e388='$graveyard'==_0xa90883['root']['rootName']?_0x51025c['model']['createRange'](_0x5c2e96['start']):_0x51025c['model']['createRange'](_0xa90883['start'],_0xa90883['end']),_0xa90883['detach'](),_0x51025c['model']['enqueueChange'](_0x4a7414['buffer']['batch'],_0x171509=>{_0x4a7414['buffer']['lock'](),_0x171509['setSelection'](_0x171509['createRange'](_0x20e388['end'])),_0x4a7414['buffer']['unlock']();});}),_0x51025c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x51025c,'merge'),{'priority':'high'}),_0x51025c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4d7adf,_0x46ab86,_0x4cb138)=>{_0x4cb138['options']['showSuggestionHighlights']&&_e(_0x51025c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4d7adf,_0x46ab86,_0x4cb138);},{'priority':'high'}),_0x51025c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1da051,_0x3d65c6,_0x266590)=>{const _0x5987ff=_0x266590['mapper']['markerNameToElements'](_0x3d65c6['markerName']);if(_0x5987ff){for(const _0x4e39f9 of _0x5987ff)_0x4e39f9['is']('uiElement')&&(_0x266590['mapper']['unbindElementFromMarkerName'](_0x4e39f9,_0x3d65c6['markerName']),_0x266590['writer']['remove'](_0x4e39f9));}},{'priority':'high'});}}class z extends _0x4679c4{['afterInit'](){const _0x31ba08=this['editor'];if(!_0x31ba08['plugins']['has']('ListEditing'))return;const _0x288e66=_0x31ba08['locale'],_0x1cd993=_0x31ba08['plugins']['get']('TrackChangesEditing'),_0x28cca7=_0x31ba08['plugins']['has']('TodoListEditing'),_0x2128b4=!!_0x31ba08['config']['get']('list.multiBlock');function _0x14b086(_0x42159e){return{'type':'format','content':''+o(_0x288e66,'*Set\x20format:*\x20%0',_0x42159e)};}function _0x4f099f(_0x1c73e){return{'type':'format','content':''+o(_0x288e66,'*Remove\x20format:*\x20%0',_0x1c73e)};}_0x1cd993['enableDefaultAttributesIntegration']('numberedList'),_0x1cd993['enableDefaultAttributesIntegration']('bulletedList'),_0x1cd993['enableDefaultAttributesIntegration']('customNumberedList'),_0x1cd993['enableDefaultAttributesIntegration']('customBulletedList'),_0x1cd993['enableDefaultAttributesIntegration']('indentList'),_0x1cd993['enableDefaultAttributesIntegration']('outdentList'),_0x1cd993['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1cd993['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1cd993['registerBlockAttribute']('listItemId'),_0x1cd993['registerBlockAttribute']('listType'),_0x1cd993['registerBlockAttribute']('listIndent'),_0x2128b4&&(_0x1cd993['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1cd993['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x28cca7&&(_0x1cd993['enableDefaultAttributesIntegration']('todoList'),_0x1cd993['enableDefaultAttributesIntegration']('checkTodoList'),_0x1cd993['registerBlockAttribute']('todoListChecked'),_0x1cd993['descriptionFactory']['registerDescriptionCallback'](_0x3c9486=>{const {data:_0x33850c}=_0x3c9486;if(_0x33850c&&'todoListChecked'==_0x33850c['key'])return{'type':'format','content':_0x33850c['newValue']?o(_0x288e66,'*Check\x20item*'):o(_0x288e66,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5bcd7b=>{if(_0x5bcd7b['batch']['isUndo'])return!0x1;let _0x3e18d0=!0x1;const _0x1ff248=_0x1cd993['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x542335=>'todoListChecked'===_0x1cd993['_getAttributeKey'](_0x542335));for(const _0x48b7a0 of _0x1ff248){'todo'!=_0x48b7a0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1cd993['_findSuggestions'](_0x48b7a0['getFirstRange'](),'attribute')['find'](_0x37765a=>'listType'===_0x1cd993['_getAttributeKey'](_0x37765a['suggestion']))||(_0x5bcd7b['removeMarker'](_0x48b7a0['getFirstMarker']()),_0x3e18d0=!0x0));}return _0x3e18d0;})),_0x1cd993['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x288e66,'FORMAT_INDENT'));const _0x1f0b03={'type':'format','content':''};_0x1cd993['descriptionFactory']['registerDescriptionCallback'](_0x5b2fe8=>{const {data:_0x5eba1f}=_0x5b2fe8;if(!_0x5eba1f||'listType'!=_0x5eba1f['key'])return;let _0x34c7d6=_0x5b2fe8['head'];for(;_0x34c7d6;){if(_0x34c7d6['data']&&(('listStyle'==_0x34c7d6['data']['key']||'listMarkerStyle'==_0x34c7d6['data']['key'])&&(_0x34c7d6['data']['newValue']&&'default'!=_0x34c7d6['data']['newValue']||'default'!=_0x34c7d6['data']['oldValue']&&!_0x5eba1f['newValue'])||!_0x2128b4&&_0x34c7d6['data']['key']==m))return _0x1f0b03;_0x34c7d6=_0x34c7d6['next'];}if(null==_0x5eba1f['newValue'])switch(_0x5eba1f['oldValue']){case'bulleted':return _0x4f099f(o(_0x288e66,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f099f(o(_0x288e66,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f099f(o(_0x288e66,'ELEMENT_TODO_LIST'));}switch(_0x5eba1f['newValue']){case'bulleted':return _0x14b086(o(_0x288e66,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14b086(o(_0x288e66,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14b086(o(_0x288e66,'ELEMENT_TODO_LIST'));}}),_0x1cd993['descriptionFactory']['registerDescriptionCallback'](_0x31195f=>{const {data:_0x44a292}=_0x31195f;if(_0x44a292&&'listIndent'==_0x44a292['key'])return null==_0x44a292['newValue']||null==_0x44a292['oldValue']&&0x0==_0x44a292['newValue']?_0x1f0b03:void 0x0;}),_0x1cd993['descriptionFactory']['registerDescriptionCallback'](_0x8c69d6=>{if('attribute'!=_0x8c69d6['type'])return;const {data:_0x4ee737}=_0x8c69d6;if(!_0x4ee737||'listItemId'!=_0x4ee737['key'])return;const _0x53015d=le(_0x8c69d6);return'newValue'==_0x53015d?{'type':'format','content':o(_0x288e66,'*Merge:*\x20list\x20item')}:'oldValue'==_0x53015d?{'type':'format','content':o(_0x288e66,'*Split:*\x20list\x20item')}:_0x1f0b03;}),_0x31ba08['model']['document']['registerPostFixer'](_0x1953ac=>this['listItemIdFixer'](_0x1953ac)),_0x31ba08['model']['document']['registerPostFixer'](_0x34bde9=>this['noTrackChangesFixer'](_0x34bde9)),_0x31ba08['model']['document']['registerPostFixer'](_0x1116d9=>this['assureChains'](_0x1116d9)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5d7fa5){if(_0x5d7fa5['batch']['isUndo']||!_0x5d7fa5['batch']['isLocal'])return!0x1;let _0x18fbec=!0x1;const _0x3ad638=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8dc13b=>_0x8dc13b['data']&&'listItemId'==_0x8dc13b['data']['key'])['filter'](_0x476b35=>_0x476b35['data']['newValue']&&_0x476b35['data']['oldValue']);for(const _0xbb2a82 of _0x3ad638)le(_0xbb2a82)||(_0x5d7fa5['removeMarker'](_0xbb2a82['getFirstMarker']()),_0x18fbec=!0x0);return _0x18fbec;}['noTrackChangesFixer'](_0x495121){if(_0x495121['batch']['isUndo']||!_0x495121['batch']['isLocal'])return!0x1;const _0x778d97=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x778d97['trackChangesCommand']['value'])return!0x1;let _0x294e43=!0x1;const _0x3d313b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1c550d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3bd951=>'attribute'==_0x3bd951['type'])['filter'](_0x2e32d8=>_0x3d313b['includes'](_0x2e32d8['attributeKey']));if(0x0==_0x1c550d['length'])return _0x294e43;for(const _0x238c01 of _0x1c550d){const _0x489244=_0x778d97['_findSuggestions'](_0x238c01['range'],'attribute')['filter'](_0x3e7ffe=>!_0x3e7ffe['meta']['isNextTo'])['map'](_0x29d591=>_0x29d591['suggestion'])['filter'](_0x5543fe=>{const _0x4c87ea=_0x778d97['_getAttributeKey'](_0x5543fe);return _0x3d313b['includes'](_0x4c87ea);});if(_0x489244['length']){for(const _0x35d853 of _0x489244)_0x495121['removeMarker'](_0x35d853['getFirstMarker']());_0x294e43=!0x0;}}return _0x294e43;}['assureChains'](_0x6aa643){if(_0x6aa643['batch']['isUndo']||!_0x6aa643['batch']['isLocal'])return!0x1;const _0x465ca8=this['editor']['plugins']['get']('TrackChangesEditing');let _0x1c5412=!0x1;const _0xbd98e2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x454c3c of _0x465ca8['getSuggestions']({'skipNotAttached':!0x0})){const _0x2cafc9=_0x465ca8['_findSuggestions'](_0x454c3c['getFirstRange'](),'attribute')['map'](_0x53197f=>_0x53197f['suggestion'])['filter'](_0x23b072=>_0x23b072['data']&&_0xbd98e2['includes'](_0x23b072['data']['key']));if(!_0x2cafc9['length'])continue;const _0x286487=_0x2cafc9[0x0]['head']['attributes']['groupId'];if(!_0x2cafc9['every'](_0x5518cf=>_0x5518cf['attributes']['groupId']===_0x286487)){for(const _0x2390f0 of _0x2cafc9)_0x3659e5(_0x2390f0,_0x286487)&&(_0x1c5412=!0x0);}}return _0x1c5412;function _0x2ec7d5(_0x3fe8f3,_0x1ad8f2){for(const _0x503ee6 of _0x465ca8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b89b6=>'attribute'==_0x4b89b6['type']&&_0x4b89b6['attributes']['groupId']==_0x3fe8f3))_0x503ee6['setAttribute']('groupId',_0x1ad8f2);}function _0x3659e5(_0x34698d,_0x36c0d1){let _0x29f17c=_0x34698d['head'],_0x26a655=!0x1;for(;_0x29f17c;)_0x29f17c['attributes']['groupId']!=_0x36c0d1&&(_0x2ec7d5(_0x29f17c['attributes']['groupId'],_0x36c0d1),_0x29f17c['setAttribute']('groupId',_0x36c0d1),_0x26a655=!0x0),_0x29f17c=_0x29f17c['next'];return _0x26a655;}}['_supportLegacySuggestions'](){const _0x715138=this['editor'],_0x4c12fc=_0x715138['locale'],_0x301b91=_0x715138['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x301b91['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2c8d29,_0x3b63e2){const _0xfb4696=[];for(let _0x3b78d8 of _0x2c8d29)_0x3b78d8['start']['nodeAfter']===_0x3b78d8['end']['parent']&&(_0x3b78d8=_0x715138['model']['createRange'](_0x715138['model']['createPositionAt'](_0x3b78d8['start']['nodeAfter'],0x0))),_0xfb4696['push'](_0x3b78d8);_0x715138['model']['change'](_0x50b7b5=>{const _0x4bf270=_0x715138['model']['document']['selection'],_0x531f20=Array['from'](_0x4bf270['getRanges']())['map'](_0x1aa9fe=>_0x528595['fromRange'](_0x1aa9fe));_0x50b7b5['setSelection'](_0xfb4696),_0x715138['commands']['get'](_0x3b63e2['commandName'])['refresh'](),_0x3b63e2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x715138['execute'](_0x3b63e2['commandName'],..._0x3b63e2['commandParams']),_0x50b7b5['setSelection'](_0x531f20);for(const _0x156682 of _0x531f20)_0x156682['detach']();});}),_0x301b91['descriptionFactory']['registerElementLabel'](function(_0x4cd461){const _0x1c0ffc=!_0x715138['model']['schema']['isObject'](_0x4cd461),_0x4f6c7a=_0x4cd461['previousSibling'],_0x4613b9=_0x4cd461['nextSibling'],_0x5211ab=_0x4cd461['getAttribute']('listItemId'),_0x24a4f5=!_0x4f6c7a||_0x4f6c7a['getAttribute']('listItemId')!==_0x5211ab,_0x2a5121=!_0x4613b9||_0x4613b9['getAttribute']('listItemId')!==_0x5211ab;return _0x1c0ffc&&Boolean(_0x5211ab)&&_0x24a4f5&&_0x2a5121;},_0x5f3da6=>o(_0x4c12fc,'ELEMENT_LIST_ITEM',_0x5f3da6));}['_registerLegacyDescription'](){const _0x132815=this['editor'],_0x48b954=_0x132815['locale'];function _0x1460b4(_0x4d62d2){const _0x4d7113=_0x132815['commands']['get']('bulletedList')['value'],_0x29d8f9=_0x132815['commands']['get']('numberedList')['value'];return'numberedList'===_0x4d62d2?_0x4d7113:_0x29d8f9;}_0x132815['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xf2f184){if('formatBlock'!=_0xf2f184['type'])return;const {data:_0x575437}=_0xf2f184;if(!_0x575437)return;let _0xf3616e,_0x3c005e,_0x163f57,_0x9adda1;switch(_0x575437['commandName']){case'bulletedList':_0x163f57=_0x575437['commandParams'][0x0]['forceValue'],_0x9adda1=_0x1460b4(_0x575437['commandName']),_0xf3616e=_0x163f57?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x9adda1&&_0x132815['config']['get']('list.multiBlock')||(_0xf3616e='*Change\x20to:*\x20%0'),_0x3c005e={'type':'format','content':o(_0x48b954,_0xf3616e,o(_0x48b954,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x163f57=_0x575437['commandParams'][0x0]['forceValue'],_0x9adda1=_0x1460b4(_0x575437['commandName']),_0xf3616e=_0x163f57?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x9adda1&&_0x132815['config']['get']('list.multiBlock')||(_0xf3616e='*Change\x20to:*\x20%0'),_0x3c005e={'type':'format','content':o(_0x48b954,_0xf3616e,o(_0x48b954,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xf3616e='*Indent:*\x20%0',_0x3c005e={'type':'format','content':o(_0x48b954,_0xf3616e,o(_0x48b954,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xf3616e=function(_0x4f4a1f){const _0x32e0f8=_0x4f4a1f['getFirstRange']();let _0x1b6bcb=_0x32e0f8['start']['nodeAfter'];for(;_0x1b6bcb&&_0x32e0f8['containsItem'](_0x1b6bcb);){if(_0x1b6bcb['getAttribute']('listIndent')>0x0)return!0x1;_0x1b6bcb=_0x1b6bcb['nextSibling'];}return!0x0;}(_0xf2f184)?o(_0x48b954,'*Format:*\x20remove\x20from\x20%0',o(_0x48b954,function(_0x493d4e){return'ELEMENT_'+_0x493d4e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xf2f184))):o(_0x48b954,'*Outdent:*\x20%0',o(_0x48b954,'ELEMENT_LIST_ITEM')),_0x3c005e={'type':'format','content':_0xf3616e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x575437['multipleBlocks']&&(_0xf3616e='*Merge:*\x20%0',_0x3c005e={'type':'deletion','content':o(_0x48b954,_0xf3616e,o(_0x48b954,'ELEMENT_LIST_ITEM'))});}return _0x3c005e;});}}function le(_0x2d8463){let _0x1baf3f=_0x2d8463['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1baf3f;){const _0x53f21a=_0x1baf3f['getAttribute']('listItemId');if(!_0x53f21a)return!0x1;if(_0x53f21a==_0x2d8463['data']['newValue'])return'newValue';if(_0x53f21a==_0x2d8463['data']['oldValue'])return'oldValue';_0x1baf3f=_0x1baf3f['previousSibling'];}return!0x1;}class ue extends _0x4679c4{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2fde78=this['editor']['config']['get']('list.properties'),_0xd8472e=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fde78['styles']&&(_0xd8472e['enableDefaultAttributesIntegration']('listStyle'),_0xd8472e['registerBlockAttribute']('listStyle')),_0x2fde78['reversed']&&(_0xd8472e['enableDefaultAttributesIntegration']('listReversed'),_0xd8472e['registerBlockAttribute']('listReversed')),_0x2fde78['startIndex']&&(_0xd8472e['enableDefaultAttributesIntegration']('listStart'),_0xd8472e['registerBlockAttribute']('listStart'));const _0x4f6296={'type':'format','content':''};_0xd8472e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3f925d=this['editor']['locale'];_0xd8472e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3f925d,'FORMAT_LIST_REVERSED')),_0xd8472e['descriptionFactory']['registerDescriptionCallback'](_0x2b72de=>{const {data:_0x412ed9}=_0x2b72de;if(_0x412ed9&&'listReversed'==_0x412ed9['key'])return null==_0x412ed9['newValue']||0x0==_0x412ed9['newValue']&&null==_0x412ed9['oldValue']?_0x4f6296:void 0x0;}),_0xd8472e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3f925d,'FORMAT_LIST_START')),_0xd8472e['descriptionFactory']['registerDescriptionCallback'](_0x1346db=>{const {data:_0x3c26f6}=_0x1346db;if(_0x3c26f6&&'listStart'==_0x3c26f6['key'])return null==_0x3c26f6['newValue']||0x1==_0x3c26f6['newValue']&&null==_0x3c26f6['oldValue']?_0x4f6296:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xa74dc1=>{if(_0xa74dc1['batch']['isUndo'])return!0x1;let _0x4e5115=!0x1;const _0x28848a=_0xd8472e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dd50d=>{const _0x1a0610=_0xd8472e['_getAttributeKey'](_0x4dd50d);return'listStart'==_0x1a0610||'listReversed'==_0x1a0610;});for(const _0x416f40 of _0x28848a){const _0xe1d9a3=_0x416f40['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xe1d9a3||'customNumbered'==_0xe1d9a3)continue;_0xd8472e['_findSuggestions'](_0x416f40['getFirstRange'](),'attribute')['find'](_0x19b529=>'listType'==_0xd8472e['_getAttributeKey'](_0x19b529['suggestion']))||(_0xa74dc1['removeMarker'](_0x416f40['getFirstMarker']()),_0x4e5115=!0x0);}return _0x4e5115;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x45f0bb){const _0x5e1f1e=this['editor']['locale'],{data:_0x41822c}=_0x45f0bb,_0x1b65b9={'type':'format','content':''};if(!_0x41822c||'listStyle'!=_0x41822c['key'])return;if(!_0x41822c['oldValue'])return'default'==_0x41822c['newValue']?_0x1b65b9:{'type':'format','content':''+o(_0x5e1f1e,'*Set\x20format:*\x20%0',o(_0x5e1f1e,this['_getTranslationKeyForListStyle'](_0x41822c['newValue'])))};if(!_0x41822c['newValue']){if('default'==_0x41822c['oldValue'])return _0x1b65b9;let _0x920f57=_0x45f0bb['head'];for(;_0x920f57;){if(_0x920f57['data']&&'listType'==_0x920f57['data']['key']&&_0x920f57['data']['newValue'])return _0x1b65b9;_0x920f57=_0x920f57['next'];}return{'type':'format','content':''+o(_0x5e1f1e,'*Remove\x20format:*\x20%0',o(_0x5e1f1e,this['_getTranslationKeyForListStyle'](_0x41822c['oldValue'])))};}if('default'!=_0x41822c['newValue'])return{'type':'format','content':''+o(_0x5e1f1e,'*Set\x20format:*\x20%0',o(_0x5e1f1e,this['_getTranslationKeyForListStyle'](_0x41822c['newValue'])))};let _0x5ea1e4=_0x45f0bb['head'];for(;_0x5ea1e4;){if(_0x5ea1e4['data']&&'listType'==_0x5ea1e4['data']['key']&&_0x5ea1e4['data']['newValue']&&_0x5ea1e4['data']['oldValue'])return _0x1b65b9;_0x5ea1e4=_0x5ea1e4['next'];}return{'type':'format','content':o(_0x5e1f1e,'*Set\x20format:*\x20%0',o(_0x5e1f1e,'ELEMENT_'+_0x45f0bb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x205eb3=this['editor'],_0x21700e=_0x205eb3['locale'];_0x205eb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xecedfa=>{if('formatBlock'!=_0xecedfa['type'])return;const {data:_0x244967}=_0xecedfa;if(!_0x244967)return;let _0x575f0f,_0xc99297;switch(_0x244967['commandName']){case'listStyle':_0x575f0f='*Change\x20to:*\x20%0',_0xc99297={'type':'format','content':o(_0x21700e,_0x575f0f,o(_0x21700e,this['_getTranslationKeyForListStyle'](_0x244967['commandParams'][0x0]['type'])))};break;case'listReversed':_0x575f0f=_0x244967['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xc99297={'type':'format','content':o(_0x21700e,_0x575f0f)};break;case'listStart':_0x575f0f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xc99297={'type':'format','content':o(_0x21700e,_0x575f0f,_0x244967['commandParams'][0x0]['startIndex'])};}return _0xc99297;});}['_getTranslationKeyForListStyle'](_0x304a25){return'ELEMENT_'+function(_0x39f120){if(pe['includes'](_0x39f120))return'bulleted';if(ye['includes'](_0x39f120))return'numbered';return null;}(_0x304a25)['toUpperCase']()+'_LIST_'+_0x304a25['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4679c4{static get['requires'](){return[_0x2357d1];}['init'](){const _0x141785=this['editor'],_0x5f2616=_0x141785['plugins']['get']('TrackChangesEditing'),_0x34fced=_0x141785['commands']['get']('enter');_0x5f2616['enableCommand']('enter',()=>{_0x141785['model']['change'](_0x40c483=>{const _0x2760b2=_0x141785['model']['document']['selection'],_0x4b9b5c=_0x2760b2['getFirstPosition'](),_0x22bce8=_0x528595['fromRange'](_0x2760b2['getFirstRange']());if(_0x34fced['enterBlock'](_0x40c483)){const _0xce87da=_0x141785['model']['createPositionAt'](_0x4b9b5c['parent']['nextSibling'],0x0),_0x126f3c=_0x40c483['createRange'](_0x4b9b5c,_0xce87da);_0x5f2616['markInsertion'](_0x126f3c);}else _0x40c483['setSelection'](_0x40c483['createRange'](_0x22bce8['end']));_0x22bce8['detach'](),_0x34fced['fire']('afterExecute',{'writer':_0x40c483});});}),_0x141785['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x141785,'split'),{'priority':'high'}),_0x141785['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x33bd6d,_0x4221e2,_0x3e0431)=>{const _0x290066=_0x3e0431['mapper']['markerNameToElements'](_0x4221e2['markerName']);if(_0x290066){for(const _0x4e9f03 of _0x290066)_0x4e9f03['hasClass']('ck-suggestion-marker-split')&&(_0x3e0431['mapper']['unbindElementFromMarkerName'](_0x4e9f03,_0x4221e2['markerName']),_0x3e0431['writer']['remove'](_0x4e9f03));}},{'priority':'high'}),_0x141785['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5bd647,_0x890718,_0x318312)=>{_0x318312['options']['showSuggestionHighlights']&&_e(_0x141785,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5bd647,_0x890718,_0x318312);},{'priority':'high'});}}class J extends _0x4679c4{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x8489ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x8489ca['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x8489ca['enableCommand']('findNext'),_0x8489ca['enableCommand']('findPrevious'),_0x8489ca['enableCommand']('replace'),_0x8489ca['enableCommand']('replaceAll');}['handleFindCommand'](_0x34b114,_0x6c37a1,_0x4cfd07={}){const _0x1548a3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x34b114(_0x3208be=>('string'==typeof _0x6c37a1?_0x1548a3['findByTextCallback'](_0x6c37a1,_0x4cfd07):_0x6c37a1)(_0x3208be)['filter'](_0x594758=>!0x1===this['_isInDeletionRange'](_0x594758,_0x3208be['item'])),_0x4cfd07);}['_isInDeletionRange'](_0x4f4ba8,_0x2dfa1e){const _0x4c4da6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2dfa1e,_0x4f4ba8['start']),this['editor']['model']['createPositionAt'](_0x2dfa1e,_0x4f4ba8['end']));for(const _0x35ff6b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4c4da6['getIntersection'](_0x35ff6b['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 _0x4679c4{['afterInit'](){const _0xd17221=this['editor']['locale'],_0x2be889=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3fa065,commandName:_0x4e384c}of ro)this['editor']['plugins']['has'](_0x3fa065)&&(_0x2be889['enableDefaultAttributesIntegration'](_0x4e384c),_0x2be889['registerInlineAttribute'](_0x4e384c));_0xd17221['t'],_0x2be889['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xd17221,'FORMAT_FONT_SIZE')),_0x2be889['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xd17221,'FORMAT_FONT_FAMILY')),_0x2be889['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xd17221,'FORMAT_FONT_COLOR')),_0x2be889['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xd17221,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11744f=this['editor'],_0x5adda8=_0x11744f['locale'];_0x11744f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b6200=>{const _0x3582df=_0x5adda8['t'];if('formatInline'!=_0x2b6200['type'])return;const {data:_0x3cdcaf}=_0x2b6200;if(null!=_0x3cdcaf){if('fontSize'==_0x3cdcaf['commandName']){const _0x47a921=_0x3cdcaf['commandParams'][0x0]['value'];if(_0x47a921){const _0x3e6bb6=_0x3582df(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x33a687=>_0x33a687['model']==_0x47a921)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5adda8,'*Set\x20font\x20size:*\x20%0',_0x3e6bb6)};}return{'type':'format','content':o(_0x5adda8,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3cdcaf['commandName']){const _0x438ca4=_0x3cdcaf['commandParams'][0x0]['value'];return _0x438ca4?{'type':'format','content':o(_0x5adda8,'*Set\x20font\x20family:*\x20%0',_0x438ca4)}:{'type':'format','content':o(_0x5adda8,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3cdcaf['commandName']){const _0x4303e1=_0x3cdcaf['commandParams'][0x0]['value'];if(_0x4303e1){const _0x120a4f=_0x2ce657(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1af403=>_0x1af403['model']==_0x4303e1);let _0x3ece59=_0x4303e1,_0x5178db='';return _0x120a4f&&(_0x3ece59=_0x120a4f['label'],_0x5178db=_0x3582df(_0x3ece59)['toLowerCase']()),{'type':'format','content':o(_0x5adda8,'*Set\x20font\x20color:*\x20%0',_0x5178db)['trim'](),'color':{'value':_0x4303e1,'title':_0x5178db||_0x3ece59}};}return{'type':'format','content':o(_0x5adda8,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3cdcaf['commandName']){const _0x371728=_0x3cdcaf['commandParams'][0x0]['value'];if(_0x371728){const _0x446562=_0x2ce657(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4aa811=>_0x4aa811['model']==_0x371728);let _0x43fffb=_0x371728,_0x2a26a2='';return _0x446562&&(_0x43fffb=_0x446562['label'],_0x2a26a2=_0x3582df(_0x43fffb)['toLowerCase']()),{'type':'format','content':o(_0x5adda8,'*Set\x20font\x20background\x20color:*\x20%0',_0x2a26a2)['trim'](),'color':{'value':_0x371728,'title':_0x2a26a2||_0x43fffb}};}return{'type':'format','content':o(_0x5adda8,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4679c4{['afterInit'](){const _0x422e0b=this['editor'],_0x5ec532=_0x422e0b['plugins']['get']('TrackChangesEditing'),_0x12c65c=_0x422e0b['commands']['get']('copyFormat'),_0x2452c5=_0x422e0b['commands']['get']('pasteFormat');_0x12c65c&&_0x2452c5&&(_0x5ec532['enableDefaultAttributesIntegration']('pasteFormat'),_0x5ec532['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1f0334=this['editor'],_0x1ad14d=_0x1f0334['locale'];_0x1f0334['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c0739=>{if('formatBlock'!=_0x4c0739['type']&&'formatInline'!=_0x4c0739['type'])return;const {data:_0x290fb9}=_0x4c0739;if(_0x290fb9&&'pasteFormat'===_0x290fb9['commandName']){const _0x37404b=[],_0x15503=_0x290fb9['commandParams'][0x0];for(const [_0x58deb7,_0x34fb83]of Object['entries'](_0x15503))_0x37404b['push'](so(_0x1f0334,_0x58deb7,_0x34fb83));return _0x37404b['length']?{'type':'format','content':o(_0x1ad14d,'*Set\x20format\x20to:*\x20%0',_0x37404b['join'](',\x20'))}:{'type':'format','content':o(_0x1ad14d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4b171a,_0x592937,_0xeedd25){const _0x2dfd87=_0x4b171a['locale']['t'],_0x4857e9=_0x592937['split'](/(?=[A-Z])/)['join']('\x20'),_0x4629f8=_0x2dfd87(_0x4857e9['charAt'](0x0)['toUpperCase']()+_0x4857e9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xeedd25)return _0x4629f8;if('fontColor'===_0x592937||'fontBackgroundColor'===_0x592937){const _0x2b4d6f=_0x2ce657(_0x4b171a['config']['get']('fontColor.colors'))['find'](_0x1fecec=>_0x1fecec['model']==_0xeedd25);return _0x4629f8+'\x20('+(_0x2b4d6f?_0x2dfd87(_0x2b4d6f['label'])['toLowerCase']():_0xeedd25)+')';}if('fontSize'===_0x592937&&isNaN(parseFloat(_0xeedd25))){const _0xbd8e8b=_0x4b171a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4b171a['config']['get']('fontSize.options'))['find'](_0x33c824=>_0x33c824['model']==_0xeedd25);return _0x4629f8+'\x20('+(_0xbd8e8b?_0x2dfd87(_0xbd8e8b['title'])['toLowerCase']():_0xeedd25)+')';}return _0x4629f8+'\x20('+_0xeedd25+')';}class Y extends _0x4679c4{['_headingOptions'];['afterInit'](){const _0x393ec0=this['editor'];if(!_0x393ec0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x393ec0['config']['get']('heading.options');const _0xf74d2f=_0x393ec0['locale'],_0x28bbdf=_0x393ec0['plugins']['get']('TrackChangesEditing');_0x28bbdf['enableDefaultAttributesIntegration']('heading');for(const _0x5d5151 of this['_headingOptions'])'paragraph'!=_0x5d5151['model']&&_0x28bbdf['descriptionFactory']['registerElementLabel'](_0x5d5151['model'],_0x1174cf=>{const _0x54d480=this['_getHeadingLevel'](_0x5d5151['model']);return null!==_0x54d480?_0x2f426a(_0x1174cf,_0x54d480):_0x3468a0(_0x1174cf,_0x5d5151['title']);});function _0x2f426a(_0xd26715,_0x3bc1e3){return o(_0xf74d2f,'ELEMENT_HEADING',[_0xd26715,_0x3bc1e3]);}function _0x3468a0(_0x49a26b,_0x179814){return o(_0xf74d2f,'ELEMENT_HEADING_CUSTOM',[_0x49a26b,_0x179814]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17ff25=this['editor'],_0x5bb34d=_0x17ff25['locale'];function _0x1a4100(_0x47f6f5,_0x29e06d){return o(_0x5bb34d,'ELEMENT_HEADING_CUSTOM',[_0x47f6f5,_0x29e06d]);}_0x17ff25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2de253=>{if('formatBlock'!=_0x2de253['type'])return;const {data:_0x33fa6a}=_0x2de253;if(_0x33fa6a&&'heading'==_0x33fa6a['commandName']){const _0x9444d5=_0x33fa6a['commandParams'][0x0]['value'],_0x502b8e=this['_getHeadingLevel'](_0x9444d5);if(null!==_0x502b8e)return{'type':'format','content':o(_0x5bb34d,'*Change\x20to:*\x20%0',(_0x2950d0=0x1,_0x4afd4a=_0x502b8e,o(_0x5bb34d,'ELEMENT_HEADING',[_0x2950d0,_0x4afd4a])))};const _0x1877e8=this['_headingOptions']['find'](_0x51bd74=>_0x51bd74['model']===_0x9444d5)['title'];return{'type':'format','content':o(_0x5bb34d,'*Change\x20to:*\x20%0',_0x1a4100(0x1,_0x1877e8))};}var _0x2950d0,_0x4afd4a;});}['_getHeadingLevel'](_0x47e643){const _0x3cbac9=_0x47e643['match'](/^heading(\d+)/);if(_0x3cbac9)return _0x3cbac9[0x1];const _0x94e84e=this['_headingOptions']?.['find'](_0xbdf31f=>_0xbdf31f['model']==_0x47e643);if(_0x94e84e&&_0x94e84e['view']){const _0x5d927c=_0x94e84e['view'],_0x3c6ca8=(_0x5d927c['name']??_0x5d927c)['match'](/^h(\d+)/);if(_0x3c6ca8)return _0x3c6ca8[0x1];}return null;}}class Z extends _0x4679c4{['afterInit'](){const _0x11496a=this['editor'];if(!_0x11496a['plugins']['has']('HighlightEditing'))return;const _0x569ebb=_0x11496a['plugins']['get']('TrackChangesEditing'),_0x83acde=_0x11496a['locale'];_0x569ebb['enableDefaultAttributesIntegration']('highlight'),_0x569ebb['registerInlineAttribute']('highlight'),_0x569ebb['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x83acde,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f2323=this['editor'],_0x411ec6=_0x4f2323['locale'];_0x4f2323['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5eed96=>{if('formatInline'!=_0x5eed96['type'])return;const {data:_0x421a4c}=_0x5eed96;if(_0x421a4c&&'highlight'==_0x421a4c['commandName']){const _0x173bd1=_0x411ec6['t'],_0x1e6dfa=_0x421a4c['commandParams'][0x0]['value'];if(_0x1e6dfa){const _0x35bb3f=_0x4f2323['config']['get']('highlight.options')['find'](_0xbb5fae=>_0xbb5fae['model']==_0x1e6dfa),_0x1e1cde=_0x173bd1(_0x35bb3f['title'])['toLowerCase']();return{'type':'format','content':o(_0x411ec6,'*Set\x20highlight:*\x20%0',_0x1e1cde),'color':{'value':_0x35bb3f['color'],'title':_0x35bb3f['title']}};}return{'type':'format','content':o(_0x411ec6,'*Remove\x20highlight*',o(_0x411ec6,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4679c4{['afterInit'](){const _0xbad70c=this['editor'];if(!_0xbad70c['plugins']['has']('HorizontalLineEditing'))return;_0xbad70c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x289e65=_0xbad70c['plugins']['get']('TrackChangesEditing'),_0x2e0d88=_0xbad70c['locale'];_0x289e65['descriptionFactory']['registerElementLabel']('horizontalLine',_0x12087e=>o(_0x2e0d88,'ELEMENT_HORIZONTAL_LINE',_0x12087e)),_0xbad70c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x92dc05,{writer:_0x3eea10,options:_0x39f28a})=>{if(!_0x39f28a['showSuggestionHighlights'])return null;const _0x518ac2=_0x3eea10['createContainerElement']('div'),_0x578d7b=_0x3eea10['createEmptyElement']('hr');return _0x3eea10['addClass']('ck-horizontal-line',_0x518ac2),_0x3eea10['insert'](_0x3eea10['createPositionAt'](_0x518ac2,0x0),_0x578d7b),_0x518ac2;},'converterPriority':'high'});}}class et extends _0x4679c4{['afterInit'](){const _0x4e6e4a=this['editor'];if(!_0x4e6e4a['plugins']['has']('HtmlEmbed'))return;const _0x34195e=_0x4e6e4a['plugins']['get']('TrackChangesEditing'),_0x475f6f=_0x4e6e4a['locale'];_0x34195e['descriptionFactory']['registerElementLabel']('rawHtml',_0x1d0620=>o(_0x475f6f,'ELEMENT_HTML_EMBED',_0x1d0620)),_0x34195e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x34195e['registerBlockAttribute']('value'),_0x34195e['descriptionFactory']['registerDescriptionCallback'](_0x15769d=>{if('attribute'!=_0x15769d['type'])return;const {data:_0x589ab9}=_0x15769d;if(_0x589ab9&&'value'==_0x589ab9['key']&&_0x15769d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x495057=o(_0x475f6f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x475f6f,'*Change\x20%0\x20content*',_0x495057)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13a661=this['editor'],_0x53d580=_0x13a661['locale'];_0x13a661['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4006f6=>{if('formatBlock'!=_0x4006f6['type'])return;const {data:_0x3d6109}=_0x4006f6;if(_0x3d6109&&'htmlEmbed'==_0x3d6109['commandName']){const _0x2c8bfe=o(_0x53d580,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x53d580,'*Change\x20%0\x20content*',_0x2c8bfe)};}});}}class it extends _0x4679c4{['afterInit'](){const _0x2ce2ca=this['editor'];if(!_0x2ce2ca['plugins']['has']('ImageEditing'))return;const _0x2710cf=_0x2ce2ca['plugins']['get']('TrackChangesEditing'),_0x34ec47=_0x2ce2ca['plugins']['get']('ImageUtils'),_0x1a0dc4=_0x2ce2ca['locale'];_0x2710cf['enableCommand']('insertImage'),_0x2710cf['descriptionFactory']['registerElementLabel']('imageBlock',_0x325dab=>o(_0x1a0dc4,'ELEMENT_IMAGE',_0x325dab)),_0x2710cf['descriptionFactory']['registerElementLabel']('imageInline',_0x28c035=>o(_0x1a0dc4,'ELEMENT_INLINE_IMAGE',_0x28c035)),_0x2710cf['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1a0dc4,'ELEMENT_CAPTION')),_0x2ce2ca['plugins']['has']('ImageUploadEditing')&&_0x2710cf['enableCommand']('uploadImage'),_0x2ce2ca['plugins']['has']('ImageBlockEditing')&&_0x2ce2ca['plugins']['has']('ImageInlineEditing')&&(_0x2710cf['enableCommand']('imageTypeInline',(_0x477b13,_0x669b04)=>{const _0x4660bb=_0x34ec47['getClosestSelectedImageElement'](_0x2ce2ca['model']['document']['selection']);_0x2ce2ca['model']['change'](()=>{_0x2710cf['markBlockFormat'](_0x4660bb,{'commandName':'imageTypeInline','commandParams':[_0x669b04]},[],'convertBlockImageToInline');});}),_0x2710cf['enableCommand']('imageTypeBlock',(_0x27a8c7,_0x17a1ed)=>{_0x2ce2ca['model']['change'](_0x27e4e5=>{let _0x32da55=_0x34ec47['getClosestSelectedImageElement'](_0x2ce2ca['model']['document']['selection']),_0x3e14e4=_0x27e4e5['createRangeOn'](_0x32da55);const _0x1ffbf8=_0x479000['fromPosition'](_0x3e14e4['start'],'toPrevious'),_0x44c3c1=_0x479000['fromPosition'](_0x3e14e4['end'],'toNext');_0x2710cf['forceDefaultExecution'](()=>_0x27a8c7(_0x17a1ed)),_0x32da55=_0x34ec47['getClosestSelectedImageElement'](_0x2ce2ca['model']['document']['selection']),_0x3e14e4=_0x27e4e5['createRangeOn'](_0x32da55);const _0xc33e23=_0x27e4e5['createRange'](_0x1ffbf8,_0x44c3c1);_0x1ffbf8['detach'](),_0x44c3c1['detach'](),_0x2710cf['markBlockFormat'](_0x32da55,{'commandName':'imageTypeInline','commandParams':[_0x17a1ed]},[],'convertInlineImageToBlock'),_0xc33e23['start']['isBefore'](_0x3e14e4['start'])&&_0x2710cf['markInsertion'](_0x27e4e5['createRange'](_0xc33e23['start'],_0x3e14e4['start']),'convertInlineImageToBlock'),_0x3e14e4['end']['isBefore'](_0xc33e23['end'])&&_0x2710cf['markInsertion'](_0x27e4e5['createRange'](_0x3e14e4['end'],_0xc33e23['end']),'convertInlineImageToBlock');});}),_0x2710cf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2710cf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2710cf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2710cf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2710cf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2710cf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x42a3b0])=>{const _0x4b07db=_0x2710cf['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x437482=_0x42a3b0['start'],_0x4b9f41=_0x42a3b0['end'];const _0x1a8c7a=_0x2ce2ca['model']['schema']['getNearestSelectionRange'](_0x437482,'backward'),_0x256580=_0x2ce2ca['model']['schema']['getNearestSelectionRange'](_0x4b9f41,'forward');_0x1a8c7a['isCollapsed']&&(_0x437482=_0x1a8c7a['start']),_0x256580['isCollapsed']&&(_0x4b9f41=_0x256580['end']),_0x4b07db([_0x2ce2ca['model']['createRange'](_0x437482,_0x4b9f41)]);}),_0x2710cf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2103e0),_0x2710cf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2103e0)),_0x2ce2ca['plugins']['has']('ImageCaptionEditing')&&(_0x2710cf['enableCommand']('toggleImageCaption',(_0x3c4806,_0x5e9157)=>{const _0x4f7e8b=_0x2ce2ca['plugins']['get']('ImageCaptionUtils');let _0x239105=_0x34ec47['getClosestSelectedImageElement'](_0x2ce2ca['model']['document']['selection']),_0x8c73c5=_0x4f7e8b['getCaptionFromImageModelElement'](_0x239105);_0x2ce2ca['model']['change'](()=>{if(_0x8c73c5)return void _0x2710cf['markDeletion'](_0x2ce2ca['model']['createRangeOn'](_0x8c73c5));const _0xd1cfdc=_0x34ec47['isBlockImage'](_0x239105);_0x3c4806(_0x5e9157),_0x239105=_0x34ec47['getClosestSelectedImageElement'](_0x2ce2ca['model']['document']['selection']),_0x8c73c5=_0x4f7e8b['getCaptionFromImageModelElement'](_0x239105),_0x2710cf['markInsertion'](_0x2ce2ca['model']['createRangeOn'](_0x8c73c5),_0xd1cfdc?null:'imageCaption');});}),_0x2710cf['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2103e0));const _0x1aecd3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4e765f(_0x1b406c,_0x209022){const _0x3d7965=_0x1aecd3['findIndex'](({type:_0x58d0d1,subType:_0x5ab096})=>_0x1b406c['type']==_0x58d0d1&&_0x1b406c['subType']==_0x5ab096),_0x3afb47=_0x1aecd3['findIndex'](({type:_0x52ea8e,subType:_0x2fe12e})=>_0x209022['type']==_0x52ea8e&&_0x209022['subType']==_0x2fe12e);if(_0x3d7965<0x0||_0x3afb47<0x0)return!0x1;const _0x434ab7=_0x1b406c['getFirstRange'](),_0xb96a1e=_0x209022['getFirstRange']();if((0x0==_0x3d7965||0x1==_0x3d7965)&&0x2==_0x3afb47&&_0x434ab7['isIntersecting'](_0xb96a1e))return!0x0;if(0x2==_0x3d7965&&0x3==_0x3afb47){const _0x53ea2f=_0x2710cf['_findSuggestions'](_0x434ab7,'insertion')['filter'](({suggestion:_0x43053b,meta:_0x327135})=>_0x327135['isOwn']&&'convertInlineImageToBlock'==_0x43053b['subType']);if(_0x53ea2f['length']>0x1&&_0xb96a1e['end']['isEqual'](_0x434ab7['start']))return!0x0;if(0x1==_0x53ea2f['length']&&(_0x434ab7['start']['isEqual'](_0xb96a1e['end'])||_0x434ab7['end']['isEqual'](_0xb96a1e['start'])))return!0x0;}if(0x3==_0x3d7965&&0x3==_0x3afb47&&_0x434ab7['start']['isBefore'](_0xb96a1e['start'])){const _0x6cc873=_0x434ab7['end']['nodeAfter'],_0x577611=_0xb96a1e['start']['nodeBefore'];return _0x34ec47['isBlockImage'](_0x6cc873)&&_0x6cc873===_0x577611;}return!0x1;}function _0x2103e0(_0x4fbfd3,_0x27411f){return _0x4e765f(_0x4fbfd3,_0x27411f)?[_0x4fbfd3,_0x27411f]:_0x4e765f(_0x27411f,_0x4fbfd3)?[_0x27411f,_0x4fbfd3]:null;}_0x2ce2ca['plugins']['has']('ImageResize')&&(_0x2710cf['enableDefaultAttributesIntegration']('resizeImage'),_0x2710cf['registerBlockAttribute']('resizedWidth'),_0x2710cf['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1a0dc4,'FORMAT_IMAGE_SIZE'))),_0x2ce2ca['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2710cf['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2710cf['registerBlockAttribute']('alt')),_0x2710cf['descriptionFactory']['registerDescriptionCallback'](_0x37d343=>{if(!!_0x1aecd3['find'](({type:_0x53412f,subType:_0x355844})=>_0x37d343['type']==_0x53412f&&_0x37d343['subType']==_0x355844))return _0x37d343['previous']?{}:void 0x0;}),_0x2710cf['descriptionFactory']['registerDescriptionCallback'](_0x510dec=>{if('insertion'==_0x510dec['type']||'deletion'==_0x510dec['type']){const _0x39c15=_0x510dec['getContainedElement']();if(_0x39c15&&_0x39c15['is']('element','caption'))return{'type':'insertion'==_0x510dec['type']?'addObject':'removeObject','element':_0x39c15,'quantity':0x1};}}),_0x2710cf['descriptionFactory']['registerDescriptionCallback'](_0x5e0a4f=>'formatBlock'==_0x5e0a4f['type']&&'convertInlineImageToBlock'==_0x5e0a4f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5e0a4f['type']&&'convertBlockImageToInline'==_0x5e0a4f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2710cf['descriptionFactory']['registerDescriptionCallback'](_0x7e6f3c=>{if('attribute'!=_0x7e6f3c['type'])return;const {data:_0x43f854}=_0x7e6f3c;if(!_0x43f854||'alt'!=_0x43f854['key'])return;const _0x1351a8=_0x43f854['newValue'];return _0x1351a8?{'type':'format','content':o(_0x1a0dc4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1351a8+'\x22')}:{'type':'format','content':o(_0x1a0dc4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b458a=this['editor'],_0x39eedc=_0x5b458a['locale'];_0x5b458a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4482d6=>{if('formatBlock'!=_0x4482d6['type']&&'formatInline'!=_0x4482d6['type'])return;const {data:_0xb6bb0b}=_0x4482d6;if(_0xb6bb0b){if('imageTextAlternative'==_0xb6bb0b['commandName']){const _0x25cd2b=_0xb6bb0b['commandParams'][0x0]['newValue'];return _0x25cd2b?{'type':'format','content':o(_0x39eedc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x25cd2b+'\x22')}:{'type':'format','content':o(_0x39eedc,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xb6bb0b['commandName']){const _0x1e5167=_0xb6bb0b['commandParams'][0x0]['width'];return _0x1e5167?{'type':'format','content':o(_0x39eedc,'*Set\x20image\x20width:*\x20%0',_0x1e5167)}:{'type':'format','content':o(_0x39eedc,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4679c4{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x500566=this['editor']['locale'],_0x4dd80a=this['editor']['plugins']['get']('TrackChangesEditing');_0x4dd80a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4dd80a['registerBlockAttribute']('src'),_0x4dd80a['descriptionFactory']['registerDescriptionCallback'](_0x1ee756=>{if('attribute'!=_0x1ee756['type'])return;const {data:_0x33e43a}=_0x1ee756;return _0x33e43a&&'src'==_0x33e43a['key']?_0x33e43a['newValue']&&_0x33e43a['oldValue']?{'type':'format','content':o(_0x500566,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5f0d4b=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f0d4b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5f0d4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5f0d4b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5f0d4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdf62de=this['editor'],_0x16e724=_0xdf62de['locale'];_0xdf62de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cae9f=>{if('formatBlock'!=_0x2cae9f['type']&&'formatInline'!=_0x2cae9f['type'])return;const {data:_0x3aa36c}=_0x2cae9f;if(!_0x3aa36c||'replaceImageSource'!=_0x3aa36c['commandName'])return;return{'type':'format','content':o(_0x16e724,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4679c4{['afterInit'](){const _0x54eaf0=this['editor'];if(!_0x54eaf0['plugins']['has']('ImageStyleEditing'))return;const _0x1b2eed=_0x54eaf0['plugins']['get']('TrackChangesEditing'),_0x153404=_0x54eaf0['plugins']['get']('ImageUtils'),_0x4a5932={};_0x1b2eed['enableCommand']('imageStyle',(_0x50d1a8,_0x5ccf62)=>{const _0x41275e=_0x54eaf0['plugins']['get']('Users')['me'],_0x351424=_0x54eaf0['commands']['get']('imageStyle');let _0x436d23=_0x153404['getClosestSelectedImageElement'](_0x54eaf0['model']['document']['selection']),_0x201f3a=_0x54eaf0['model']['createRangeOn'](_0x436d23),_0x4dd9bd=_0x351424['value'];if(_0x4dd9bd==_0x5ccf62['value'])return;const _0xa217ce={'commandName':'imageStyle','commandParams':[_0x5ccf62],'formatGroupId':_0x4fd794()};_0x54eaf0['model']['change'](()=>{if(_0x1b2eed['getSuggestions']()['filter'](_0x5edcec=>_0x5edcec['isInContent']&&_0x41275e==_0x5edcec['author']&&('formatBlock'==_0x5edcec['type']||'formatInline'==_0x5edcec['type'])&&('imageStylePreApply'==_0x5edcec['subType']||'imageStylePostApply'==_0x5edcec['subType'])&&_0x5edcec['getFirstRange']()['isEqual'](_0x201f3a))['forEach'](_0x3de09b=>_0x1b2eed['discardSuggestion'](_0x3de09b['head'])),_0x436d23=_0x153404['getClosestSelectedImageElement'](_0x54eaf0['model']['document']['selection']),_0x201f3a=_0x54eaf0['model']['createRangeOn'](_0x436d23),_0x351424['refresh'](),_0x54eaf0['commands']['get']('imageTypeInline')['refresh'](),_0x54eaf0['commands']['get']('imageTypeBlock')['refresh'](),_0x4dd9bd=_0x351424['value'],_0x4dd9bd!=_0x5ccf62['value'])return _0x153404['isInlineImage'](_0x436d23)&&_0x351424['shouldConvertImageType'](_0x5ccf62['value'],_0x436d23)?(_0x50d1a8({..._0x5ccf62,'setImageSizes':!0x1}),_0x436d23=_0x153404['getClosestSelectedImageElement'](_0x54eaf0['model']['document']['selection']),void _0x1b2eed['markBlockFormat'](_0x436d23,{..._0xa217ce,'commandReversedParams':[{'value':_0x4dd9bd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x153404['isBlockImage'](_0x436d23)?_0x1b2eed['markBlockFormat'](_0x436d23,_0xa217ce,[],'imageStylePostApply'):_0x1b2eed['markInlineFormat'](_0x201f3a,_0xa217ce,'imageStylePostApply'));});});for(const _0x483053 of _0x54eaf0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4a5932[_0x483053['name']]=_0x483053['title']['toLowerCase']();_0x1b2eed['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1b2eed['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1b2eed['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1b2eed['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x52f42f])=>{_0x153404['setImageNaturalSizeAttributes'](_0x52f42f['getContainedElement']());}),_0x1b2eed['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x230d03,_0x26b28e)=>{_0x1b2eed['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x230d03,{'commandName':_0x26b28e['commandName'],'commandParams':_0x26b28e['commandReversedParams']});}),_0x1b2eed['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4f277c,_0x35b73a){if(_0x28b1a0(_0x4f277c,_0x35b73a))return[_0x4f277c,_0x35b73a];if(_0x28b1a0(_0x35b73a,_0x4f277c))return[_0x35b73a,_0x4f277c];return null;});const _0x184272=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x28b1a0(_0x352461,_0xd86bb5){const _0x1a8f1d=_0x184272['findIndex'](({type:_0x491b83,subType:_0x1db8e3})=>_0x352461['type']==_0x491b83&&_0x352461['subType']==_0x1db8e3),_0xa266a0=_0x184272['findIndex'](({type:_0x2fc73b,subType:_0x34b464})=>_0xd86bb5['type']==_0x2fc73b&&_0xd86bb5['subType']==_0x34b464);if(_0x1a8f1d<0x0||_0xa266a0<0x0)return!0x1;const _0xce8d12=_0x352461['getFirstRange'](),_0x1b982c=_0xd86bb5['getFirstRange']();if((0x0==_0x1a8f1d||0x1==_0x1a8f1d)&&0x2==_0xa266a0&&_0xce8d12['isIntersecting'](_0x1b982c))return!0x0;if(0x2==_0x1a8f1d&&0x3==_0xa266a0){const _0x3df33d=_0x1b2eed['_findSuggestions'](_0xce8d12,'insertion')['filter'](({suggestion:_0x580aab,meta:_0x47371f})=>_0x47371f['isOwn']&&'convertInlineImageToBlock'==_0x580aab['subType']);if(_0x3df33d['length']>0x1&&_0x1b982c['end']['isEqual'](_0xce8d12['start']))return!0x0;if(0x1==_0x3df33d['length']&&(_0xce8d12['start']['isEqual'](_0x1b982c['end'])||_0xce8d12['end']['isEqual'](_0x1b982c['start'])))return!0x0;}if(0x3==_0x1a8f1d&&0x3==_0xa266a0&&_0xce8d12['start']['isBefore'](_0x1b982c['start'])){const _0x10a5e3=_0xce8d12['end']['nodeAfter'],_0x52a371=_0x1b982c['start']['nodeBefore'];return _0x153404['isBlockImage'](_0x10a5e3)&&_0x10a5e3===_0x52a371;}return!0x1;}_0x54eaf0['model']['document']['registerPostFixer'](()=>{let _0x1725a4=!0x1;const _0x17021b=Array['from'](_0x54eaf0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ea905,data:_0x123de5}of _0x17021b){const {group:_0x5da7cf,type:_0x111b7b,subType:_0x1965e8,id:_0x1a207}=_0x1b2eed['_splitMarkerName'](_0x1ea905);if('suggestion'==_0x5da7cf&&_0x1b2eed['hasSuggestion'](_0x1a207)){if('formatBlock'==_0x111b7b&&('imageStylePreApply'==_0x1965e8||'imageStylePostApply'==_0x1965e8)){const _0x2876b0=_0x1b2eed['getSuggestion'](_0x1a207);if(_0x123de5['newRange']){const _0x4a2a1e=_0x2876b0['getFirstRange']()['getContainedElement']();if(_0x153404['isBlockImage'](_0x4a2a1e))continue;_0x1b2eed['discardSuggestion'](_0x2876b0),_0x1725a4=!0x0;}}if('insertion'==_0x111b7b&&'imageCaption'==_0x1965e8&&!_0x123de5['newRange']){const _0x35a038=_0x1b2eed['getSuggestion'](_0x1a207);_0x35a038['next']&&_0x35a038['next']['isInContent']&&(_0x1b2eed['discardSuggestion'](_0x35a038['next']),_0x1725a4=!0x0);}}}return _0x1725a4;}),this['_registerLegacyDescription'](_0x4a5932);}['_registerLegacyDescription'](_0x22e17e){const _0x3b88cd=this['editor'],_0x580482=_0x3b88cd['locale'];_0x3b88cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d1f8e=>{if('formatBlock'!=_0x5d1f8e['type']&&'formatInline'!=_0x5d1f8e['type'])return;const {data:_0x43bbb6}=_0x5d1f8e;if(!_0x43bbb6||'imageStyle'!=_0x43bbb6['commandName'])return;const _0x3d45ac=_0x43bbb6['commandParams'][0x0]['value'];return _0x5f3c55('side'===_0x3d45ac?o(_0x580482,'FORMAT_SIDE_IMAGE'):_0x22e17e[_0x3d45ac]||_0x3d45ac);function _0x5f3c55(_0x376cf2){return{'type':'format','content':o(_0x580482,'*Format:*\x20%0',_0x376cf2)};}});}}class ot extends _0x4679c4{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x287a78){super(_0x287a78),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4c17f0=this['editor'],_0x8ddd9b=_0x4c17f0['commands']['get']('importWord'),_0x168679=_0x4c17f0['commands']['get']('trackChanges');_0x8ddd9b&&(_0x8ddd9b['on']('execute',(_0x59d7cb,[,_0x2fcb72])=>{this['_trackChangesValueDuringImport']=_0x168679['value'],_0x2fcb72['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x8ddd9b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x8ddd9b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x168679['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4c17f0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3b45d7,_0x406363){const {suggestions:_0x5ec017}=_0x406363,_0x564635=this['editor']['commands']['get']('trackChanges'),_0x170585=_0x564635['value'];this['_trackChangesValueDuringImport']!==_0x170585&&(_0x564635['execute'](),this['_trackChangesExecuted']=!0x0),_0x5ec017&&_0x5ec017['forEach'](({id:_0x3763d9,type:_0x1a13bf,author:_0xfbda9e,created_at:_0x1b42ff})=>{const _0x1c0bfa={'id':_0x3763d9,'type':_0x1a13bf,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xfbda9e,'createdAt':_0x1b42ff?new Date(_0x1b42ff):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c0bfa);});}}class rt extends _0x4679c4{['afterInit'](){const _0x1e78cb=this['editor'],_0xbc2c2e=_0x1e78cb['plugins']['get']('TrackChangesEditing');if(_0x1e78cb['plugins']['has']('IndentEditing')&&(_0xbc2c2e['enableCommand']('indent'),_0xbc2c2e['enableCommand']('outdent')),_0x1e78cb['plugins']['has']('IndentBlock')){for(const _0xf04541 of['indentBlock','outdentBlock'])_0xbc2c2e['enableDefaultAttributesIntegration'](_0xf04541);}const _0x55d6fc=_0x1e78cb['locale'];_0xbc2c2e['registerBlockAttribute']('blockIndent'),_0xbc2c2e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x55d6fc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1faeb1=this['editor'],_0x4eae6d=_0x1faeb1['locale'],_0x519bd7=_0x1faeb1['plugins']['get']('TrackChangesEditing');_0x519bd7['descriptionFactory']['registerDescriptionCallback'](_0x1c97f6=>{if('formatBlock'!=_0x1c97f6['type'])return;const {data:_0x139686}=_0x1c97f6;if(!_0x139686)return;if('indentBlock'!=_0x139686['commandName']&&'outdentBlock'!=_0x139686['commandName'])return;const _0x9aa9bf=_0x1c97f6['getItems']()[0x0],_0x491019=_0x519bd7['descriptionFactory']['getItemLabel'](_0x9aa9bf);return'indentBlock'==_0x139686['commandName']?{'type':'format','content':o(_0x4eae6d,'*Indent:*\x20%0',_0x491019)}:'outdentBlock'==_0x139686['commandName']?{'type':'format','content':o(_0x4eae6d,'*Outdent:*\x20%0',_0x491019)}:void 0x0;});}}class at extends _0x4679c4{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4679c4{['afterInit'](){const _0x1f384d=this['editor'];if(!_0x1f384d['plugins']['has']('LinkEditing'))return;const _0x3913bc=_0x1f384d['plugins']['get']('TrackChangesEditing'),_0x132e86=_0x1f384d['commands']['get']('link');_0x3913bc['enableDefaultAttributesIntegration']('link'),_0x3913bc['enableDefaultAttributesIntegration']('unlink'),_0x3913bc['registerInlineAttribute']('linkHref');for(const _0x430304 of _0x132e86['manualDecorators'])_0x3913bc['registerInlineAttribute'](_0x430304['id']),_0x3913bc['descriptionFactory']['registerAttributeLabel'](_0x430304['id'],'link\x20('+_0x430304['label']['toLowerCase']()+')');_0x3913bc['descriptionFactory']['registerDescriptionCallback'](_0x5d8d54=>{if('attribute'!=_0x5d8d54['type'])return;const {data:_0x111e71}=_0x5d8d54;if(!_0x111e71||'linkHref'!=_0x111e71['key'])return;const _0x5e31f3=_0x111e71['newValue'],_0x34dd7a=_0x1f384d['locale'];return{'type':'format','content':null==_0x5e31f3?o(_0x34dd7a,'*Remove\x20link*'):o(_0x34dd7a,'*Set\x20link:*\x20%0','\x22'+_0x5e31f3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21afa1=this['editor'],_0x1e4305=_0x21afa1['locale'];_0x21afa1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x379258=>{if('formatInline'!=_0x379258['type'])return;const {data:_0x5b20e0}=_0x379258;if(_0x5b20e0){if('link'==_0x5b20e0['commandName']){const _0x263157=_0x5b20e0['commandParams'][0x0];return{'type':'format','content':o(_0x1e4305,'*Set\x20link:*\x20%0','\x22'+_0x263157+'\x22')};}return'unlink'==_0x5b20e0['commandName']?{'type':'format','content':o(_0x1e4305,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4679c4{['afterInit'](){const _0x40b713=this['editor'],_0x504642=_0x40b713['locale'];if(!_0x40b713['plugins']['has']('LegacyListEditing'))return;const _0x2c4342=_0x40b713['plugins']['get']('TrackChangesEditing'),_0x53f7d5=_0x40b713['plugins']['has']('LegacyTodoListEditing');function _0x1d027e(_0x372560){return()=>{const _0x12ffe3=_0x40b713['model']['document']['selection'],_0x14a7f5=_0x40b713['commands']['get'](_0x372560);if(_0x14a7f5['value'])return void _0x40b713['execute']('paragraph',{});const _0x2ffab9=_0x372560['slice'](0x0,-0x4),_0x4259b6=function(_0x4a58e3,_0x3e4ba8,_0x13f5ed){let _0x46c603=Array['from'](_0x4a58e3)['filter'](_0x152429=>function(_0x2308ea,_0x138cd9){return _0x138cd9['checkChild'](_0x2308ea['parent'],'listItem')&&!_0x138cd9['isObject'](_0x2308ea);}(_0x152429,_0x13f5ed));_0x46c603=_0x46c603['filter'](_0x6f80af=>!_0x6f80af['is']('element','listItem')||_0x6f80af['getAttribute']('listType')!=_0x3e4ba8);const _0x553965=new Set();for(const _0x2f23e6 of _0x46c603)_0x2f23e6['is']('element','listItem')?_0x553965['add'](me(_0x2f23e6)):_0x553965['add'](_0x2f23e6);return Array['from'](_0x553965);}(_0x12ffe3['getSelectedBlocks'](),_0x2ffab9,_0x40b713['model']['schema']);_0x40b713['model']['change'](()=>{for(const _0x2aeed6 of _0x4259b6)_0x2c4342['markBlockFormat'](_0x2aeed6,{'commandName':_0x372560,'commandParams':[{'forceValue':!_0x14a7f5['value']}],'formatGroupId':'blockName'},fe(_0x2aeed6));});};}function _0x15a801(_0x5ce72d){return()=>{const _0x41b993=function(_0x1c78a9){let _0x14a5d5=Array['from'](_0x1c78a9);const _0x417eb8=_0x14a5d5['findIndex'](_0x1d4c11=>'listItem'!=_0x1d4c11['name']);return _0x417eb8>-0x1&&(_0x14a5d5=_0x14a5d5['slice'](0x0,_0x417eb8)),_0x14a5d5;}(_0x40b713['model']['document']['selection']['getSelectedBlocks']()),_0x276b74=_0x40b713['model']['createRange'](_0x40b713['model']['createPositionAt'](_0x41b993[0x0],'before'),_0x40b713['model']['createPositionAt'](_0x41b993[_0x41b993['length']-0x1],'end'));_0x40b713['model']['change'](()=>{_0x2c4342['markBlockFormat'](_0x276b74,{'commandName':_0x5ce72d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1eaa55){const _0x17ecb6=new Set();for(const _0x89e5e4 of _0x1eaa55){let _0x4a212b=_0x89e5e4['nextSibling'];for(;_0x4a212b&&_0x4a212b['getAttribute']('listIndent')>_0x89e5e4['getAttribute']('listIndent');)_0x17ecb6['add'](_0x4a212b),_0x4a212b=_0x4a212b['nextSibling'];}return Array['from'](_0x17ecb6);}(_0x41b993));});};}_0x2c4342['enableCommand']('numberedList',_0x1d027e('numberedList')),_0x2c4342['enableCommand']('bulletedList',_0x1d027e('bulletedList')),_0x53f7d5&&_0x2c4342['enableCommand']('todoList',_0x1d027e('todoList')),_0x2c4342['enableCommand']('indentList',_0x15a801('indentList')),_0x2c4342['enableCommand']('outdentList',_0x15a801('outdentList')),_0x53f7d5&&_0x2c4342['enableCommand']('checkTodoList',()=>{const _0x23e11b=_0x40b713['commands']['get']('checkTodoList'),_0x54958f=Array['from'](_0x23e11b['_selectedElements']);_0x54958f['filter'](_0x5948ea=>_0x5948ea['getAttribute']('todoListChecked')!=_0x23e11b['value']),_0x40b713['model']['change'](()=>{for(const _0x24009b of _0x54958f)_0x2c4342['markBlockFormat'](_0x24009b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x23e11b['value']}]});});}),_0x2c4342['descriptionFactory']['registerElementLabel']('listItem',_0x48b339=>o(_0x504642,'ELEMENT_LIST_ITEM',_0x48b339)),_0x2c4342['descriptionFactory']['registerDescriptionCallback'](_0x31cdac=>{if('formatBlock'!=_0x31cdac['type']&&'formatInline'!=_0x31cdac['type'])return;const {data:_0x1e79b1}=_0x31cdac;if(_0x1e79b1){if('numberedList'==_0x1e79b1['commandName']||'bulletedList'==_0x1e79b1['commandName']||'todoList'==_0x1e79b1['commandName'])switch(_0x1e79b1['commandName']['replace']('List','')){case'bulleted':return _0x5a80d8(o(_0x504642,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5a80d8(o(_0x504642,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5a80d8(o(_0x504642,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1e79b1['commandName'])return{'type':'format','content':o(_0x504642,'*Indent:*\x20%0',o(_0x504642,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1e79b1['commandName'])return{'type':'format','content':o(_0x504642,'*Outdent:*\x20%0',o(_0x504642,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1e79b1['commandName'])return _0x1e79b1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x504642,'*Check\x20item*')}:{'type':'format','content':o(_0x504642,'*Uncheck\x20item*')};}function _0x5a80d8(_0x2fe37a){return{'type':'format','content':o(_0x504642,'*Change\x20to:*\x20%0',_0x2fe37a)};}});}}function me(_0x2c9c81){const _0x59932c=_0x2c9c81['getAttribute']('listIndent');if(0x0==_0x59932c)return _0x2c9c81;let _0x612a18=_0x2c9c81;for(;_0x2c9c81['previousSibling']&&_0x2c9c81['previousSibling']['is']('element','listItem');){const _0x10925b=_0x2c9c81['previousSibling']['getAttribute']('listIndent');if(_0x10925b==_0x59932c)_0x612a18=_0x2c9c81['previousSibling'];else{if(_0x10925b<_0x59932c)break;}_0x2c9c81=_0x2c9c81['previousSibling'];}return _0x612a18;}function fe(_0x22aae4){const _0x5db428=[];if(_0x22aae4['is']('element','listItem')&&_0x22aae4['getAttribute']('listIndent')>0x0){let _0x246c82=_0x22aae4['nextSibling'];for(;_0x246c82&&'listItem'==_0x246c82['name']&&_0x246c82['getAttribute']('listIndent')==_0x22aae4['getAttribute']('listIndent');)_0x5db428['push'](_0x246c82),_0x246c82=_0x246c82['nextSibling'];}return _0x5db428;}class K extends _0x4679c4{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x169297=this['editor']['config']['get']('list.properties'),_0x5d9f4d=this['editor']['plugins']['get']('TrackChangesEditing');_0x169297['styles']&&_0x5d9f4d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x169297['reversed']&&_0x5d9f4d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x169297['startIndex']&&_0x5d9f4d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5d9f4d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xfc3cea,_0x21c209={}){const _0x34382b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xeba1b2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x34382b['markMultiRangeBlockFormat'](_0xeba1b2,{'commandName':'listStyle','commandParams':[{'type':_0x21c209['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x46698b,_0x28965b={}){const _0x42e7af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bf0fd=this['_getSuggestionBlocks'](_0x7bf4be=>_0x7bf4be['is']('element','listItem')&&'numbered'===_0x7bf4be['getAttribute']('listType'));if(_0x2bf0fd['length']<0x1)return;const _0x1082ba=_0x2bf0fd['map'](_0x1e7289=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e7289,'before'),this['editor']['model']['createPositionAt'](_0x1e7289,0x0)));this['editor']['model']['change'](()=>{_0x42e7af['markMultiRangeBlockFormat'](_0x1082ba,{'commandName':'listReversed','commandParams':[{'reversed':_0x28965b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2c6d02,_0x46dee8={}){const _0x37a0bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44b6c6=this['_getSuggestionBlocks'](_0xcde091=>_0xcde091['is']('element','listItem')&&'numbered'===_0xcde091['getAttribute']('listType'));if(_0x44b6c6['length']<0x1)return;const _0x3b1902=_0x44b6c6['map'](_0x47ed29=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47ed29,'before'),this['editor']['model']['createPositionAt'](_0x47ed29,0x0)));this['editor']['model']['change'](()=>{_0x37a0bc['markMultiRangeBlockFormat'](_0x3b1902,{'commandName':'listStart','commandParams':[{'startIndex':_0x46dee8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x45335f){if('formatBlock'!=_0x45335f['type']&&'formatInline'!=_0x45335f['type'])return;const _0x16c7f1=this['editor']['locale'],{data:_0x31b4e3}=_0x45335f;if(!_0x31b4e3)return;let _0x40e772,_0x4a5852;switch(_0x31b4e3['commandName']){case'listStyle':_0x40e772='*Change\x20to:*\x20%0',_0x4a5852={'type':'format','content':o(_0x16c7f1,_0x40e772,o(_0x16c7f1,this['_getTranslationKeyForListStyle'](_0x31b4e3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40e772=_0x31b4e3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4a5852={'type':'format','content':o(_0x16c7f1,_0x40e772)};break;case'listStart':_0x40e772='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4a5852={'type':'format','content':o(_0x16c7f1,_0x40e772,_0x31b4e3['commandParams'][0x0]['startIndex'])};}return _0x4a5852;}['_getSuggestionBlocksForListStyle'](){const _0x47c0be=this['editor']['plugins']['get']('LegacyListUtils');let _0x34d04f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x34d04f[0x0]?.['is']('element','listItem')&&_0x34d04f['unshift'](..._0x47c0be['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x34d04f[_0x34d04f['length']-0x1]?.['is']('element','listItem')&&_0x34d04f['push'](..._0x47c0be['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x34d04f=[...new Set(_0x34d04f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x34d04f=_0x34d04f['filter'](_0x27391c=>_0x27391c['is']('element','listItem'))),_0x34d04f;}['_getSuggestionBlocks'](_0xd26385){const _0x4993f8=this['editor']['plugins']['get']('LegacyListUtils');let _0x599726=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xd26385)['map'](_0x20186b=>{const _0x464b5a=this['editor']['model']['createPositionAt'](_0x20186b,0x0);return[..._0x4993f8['getSiblingNodes'](_0x464b5a,'backward'),..._0x4993f8['getSiblingNodes'](_0x464b5a,'forward')];})['flat']();return _0x599726=[...new Set(_0x599726)],_0x599726;}['_getTranslationKeyForListStyle'](_0x34928e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x34928e)||'default')['toUpperCase']()+'_LIST_'+_0x34928e['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4679c4{['afterInit'](){const _0x375536=this['editor'];if(!_0x375536['plugins']['has']('MediaEmbedEditing'))return;const _0x460f59=_0x375536['plugins']['get']('TrackChangesEditing'),_0x5d0005=_0x375536['locale'];_0x460f59['enableCommand']('mediaEmbed'),_0x460f59['descriptionFactory']['registerElementLabel']('media',_0x3960aa=>o(_0x5d0005,'ELEMENT_MEDIA',_0x3960aa)),_0x375536['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x83bb4c,{writer:_0x13c69e,options:_0x25b254})=>{if(_0x25b254['showSuggestionHighlights'])return _0x13c69e['createEmptyElement']('div');},'converterPriority':'high'}),_0x375536['data']['downcastDispatcher']['on']('attribute:url:media',(_0x90b225,_0x596be0,_0x44efb6)=>{_0x44efb6['options']['showSuggestionHighlights']&&_0x90b225['stop']();},{'priority':'high'});}}class gt extends _0x4679c4{['afterInit'](){const _0x5ab1ec=this['editor'];_0x5ab1ec['plugins']['has']('MentionEditing')&&_0x5ab1ec['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4679c4{['afterInit'](){const _0x3f07aa=this['editor'],_0x5e95d6=_0x3f07aa['plugins']['get']('TrackChangesEditing');_0x3f07aa['plugins']['has']('MultiLevelList')&&(_0x5e95d6['enableDefaultAttributesIntegration']('multiLevelList'),_0x5e95d6['registerBlockAttribute']('listMarkerStyle'),_0x5e95d6['descriptionFactory']['registerDescriptionCallback'](_0x17f764=>this['handleDescriptions'](_0x17f764)));}['handleDescriptions'](_0x1b1fcb){const _0x3eda86=this['editor']['locale'],{data:_0xad0776}=_0x1b1fcb,_0x1313c9={'type':'format','content':''};if(_0xad0776&&'listMarkerStyle'==_0xad0776['key']){if(!_0xad0776['oldValue'])return{'type':'format','content':o(_0x3eda86,'*Set\x20format:*\x20%0',o(_0x3eda86,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xad0776['newValue']+')'};if(!_0xad0776['newValue']){let _0x112457=_0x1b1fcb['head'];for(;_0x112457;){if(_0x112457['data']&&'listType'==_0x112457['data']['key']&&_0x112457['data']['newValue'])return _0x1313c9;_0x112457=_0x112457['next'];}return{'type':'format','content':o(_0x3eda86,'*Remove\x20format:*\x20%0',o(_0x3eda86,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xad0776['oldValue']+')'};}}}}class mt extends _0x4679c4{['afterInit'](){const _0x409d86=this['editor'];if(!_0x409d86['plugins']['has']('PageBreakEditing'))return;_0x409d86['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x13cabd=_0x409d86['plugins']['get']('TrackChangesEditing'),_0x55d9af=_0x409d86['locale'];_0x13cabd['descriptionFactory']['registerElementLabel']('pageBreak',_0x1433ef=>o(_0x55d9af,'ELEMENT_PAGE_BREAK',_0x1433ef));}}class dt extends _0x4679c4{['afterInit'](){const _0x11c8c9=this['editor'];if(!_0x11c8c9['plugins']['has']('Paragraph'))return;const _0x50f87e=_0x11c8c9['locale'],_0x19172d=_0x11c8c9['plugins']['get']('TrackChangesEditing');_0x19172d['descriptionFactory']['registerElementLabel']('paragraph',_0x53f6c6=>o(_0x50f87e,'ELEMENT_PARAGRAPH',_0x53f6c6)),_0x19172d['enableDefaultAttributesIntegration']('paragraph'),_0x19172d['enableCommand']('insertParagraph'),_0x11c8c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x11c8c9),{'priority':'highest'}),_0x11c8c9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3448ca,_0x18510e,_0x134bff)=>{_0x134bff['options']['showSuggestionHighlights']&&nr(_0x11c8c9,{'showActiveMarker':!0x1})(_0x3448ca,_0x18510e,_0x134bff);},{'priority':'highest'});const _0x5a6c3d=_0x19172d['descriptionFactory'];_0x5a6c3d['registerDescriptionCallback'](_0xaadb66=>{if('insertion'!==_0xaadb66['type'])return;const {start:_0x4cfba5,end:_0x5c55ef}=_0xaadb66['getFirstRange']();if(!_0x4cfba5['isTouching'](_0x5c55ef)||!_0x4cfba5['nodeAfter'])return;const _0x36cdc9=_0x11c8c9['model']['schema'],_0x191fb1=_0x4cfba5['nodeAfter'];return _0x36cdc9['isBlock'](_0x191fb1)&&!_0x36cdc9['isLimit'](_0x191fb1)&&_0x36cdc9['checkChild'](_0x191fb1,'$text')?{'type':'insertion','content':o(_0x50f87e,'*Insert:*\x20%0',_0x5a6c3d['getItemLabel'](_0x191fb1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x519ca7=this['editor'],_0x45af3c=_0x519ca7['locale'];_0x519ca7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a0c41=>{if('formatBlock'!=_0x3a0c41['type'])return;const {data:_0x31a1af}=_0x3a0c41;return _0x31a1af&&'paragraph'==_0x31a1af['commandName']?{'type':'format','content':o(_0x45af3c,'*Change\x20to:*\x20%0',o(_0x45af3c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4abeea,{showActiveMarker:_0x5f0e3f=!0x0}={}){return(_0xae747a,_0x5677d3,_0x23321d)=>{const _0x3deb2d=_0x4abeea['plugins']['get']('TrackChangesEditing'),_0x51616a=_0x5677d3['markerRange']['start'],_0x478ff=_0x5677d3['markerRange']['end'],_0x39c6b6=_0x4abeea['model']['schema'];if(!_0x51616a['isTouching'](_0x478ff)||!_0x51616a['nodeAfter'])return;const _0x14bbad=_0x51616a['nodeAfter'];if(_0x39c6b6['isBlock'](_0x14bbad)&&!_0x39c6b6['isLimit'](_0x14bbad)&&_0x39c6b6['checkChild'](_0x14bbad,'$text')){if(!_0x23321d['consumable']['consume'](_0x5677d3['markerRange'],_0xae747a['name']))return;const _0x476c19=_0x23321d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x38f87b=_0x23321d['mapper']['toViewPosition'](_0x478ff);_0x5f0e3f&&_0x3deb2d['activeMarkers']['includes'](_0x5677d3['markerName'])&&_0x23321d['writer']['addClass']('ck-suggestion-marker--active',_0x476c19),_0x23321d['writer']['insert'](_0x38f87b,_0x476c19),_0x23321d['mapper']['bindElementToMarker'](_0x476c19,_0x5677d3['markerName']);}};}class pt extends _0x4679c4{['afterInit'](){const _0x4a3907=this['editor'];if(!_0x4a3907['plugins']['has']('RemoveFormatEditing'))return;_0x4a3907['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x566013=this['editor'];_0x566013['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d0fe2=>{if('formatBlock'!=_0x2d0fe2['type']&&'formatInline'!=_0x2d0fe2['type'])return;const {data:_0x310bb8}=_0x2d0fe2;return _0x310bb8&&'removeFormat'==_0x310bb8['commandName']?{'type':'format','content':o(_0x566013['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4679c4{['afterInit'](){const _0x301c70=this['editor'];if(!_0x301c70['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x186d22=_0x301c70['plugins']['get']('TrackChangesEditing');_0x186d22['enableCommand']('goToPreviousRestrictedEditingException'),_0x186d22['enableCommand']('goToNextRestrictedEditingException');const _0x48366b=_0x301c70['plugins']['get']('RestrictedEditingModeEditing');_0x48366b['enableCommand']('trackChanges'),_0x48366b['enableCommand']('acceptSuggestion'),_0x48366b['enableCommand']('discardSuggestion'),_0x48366b['enableCommand']('acceptAllSuggestions'),_0x48366b['enableCommand']('discardAllSuggestions'),_0x48366b['enableCommand']('acceptSelectedSuggestions'),_0x48366b['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4679c4{static get['requires'](){return[_0x3006f4];}['init'](){const _0x2696bb=this['editor'],_0x2ca56b=_0x2696bb['plugins']['get']('TrackChangesEditing');_0x2ca56b['enableCommand']('shiftEnter'),_0x2696bb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2696bb),{'priority':'high'}),_0x2696bb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2696bb),{'priority':'high'}),_0x2696bb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1bbea1,_0x46ad5c,_0x4b3ae2)=>{_0x4b3ae2['options']['showSuggestionHighlights']&&de(_0x2696bb,{'showActiveMarker':!0x1})(_0x1bbea1,_0x46ad5c,_0x4b3ae2);}),_0x2ca56b['descriptionFactory']['registerElementLabel']('softBreak',_0x45d2e1=>o(_0x2696bb['locale'],'ELEMENT_LINE_BREAK',_0x45d2e1));}}function de(_0xd6efea,{showActiveMarker:_0x18d138=!0x0}={}){return(_0x4c998d,_0x4d364a,_0x1b9614)=>{const _0x202e7b=_0xd6efea['plugins']['get']('TrackChangesEditing');if(!_0x1b9614['consumable']['test'](_0x4d364a['markerRange'],_0x4c998d['name']))return;const _0x50253f=_0xd6efea['model'];for(const _0x253b8a of _0x4d364a['markerRange']['getItems']()){if(!_0x253b8a['is']('element','softBreak'))continue;const _0x5ab290='deletion'==_0x4d364a['markerName']['split'](':')[0x1]?'merge':'split',_0x58a9c3=_0x1b9614['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5ab290}),_0x1e91a4=_0x1b9614['mapper']['toViewPosition'](_0x50253f['createPositionBefore'](_0x253b8a));_0x18d138&&_0x202e7b['activeMarkers']['includes'](_0x4d364a['markerName'])&&_0x1b9614['writer']['addClass']('ck-suggestion-marker--active',_0x58a9c3),_0x1b9614['writer']['insert'](_0x1e91a4,_0x58a9c3),_0x1b9614['mapper']['bindElementToMarker'](_0x58a9c3,_0x4d364a['markerName']);}};}class wt extends _0x4679c4{['afterInit'](){const _0x1c8f13=this['editor'],_0x2f62fd=_0x1c8f13['model'],_0x22703d=_0x1c8f13['locale'];if(!_0x1c8f13['plugins']['has']('StandardEditingModeEditing'))return;const _0x230e48=_0x1c8f13['plugins']['get']('TrackChangesEditing'),_0xf98fc='restrictedEditingException',_0x508154=_0x1c8f13['commands']['get'](_0xf98fc);_0x230e48['enableCommand'](_0xf98fc,(_0x1795a3,_0x5657b8={})=>{const _0x2d70ff=_0x2f62fd['document']['selection'];if(_0x2d70ff['isCollapsed'])return void _0x1795a3(_0x5657b8);const _0x466b69=void 0x0!==_0x5657b8['forceValue']?_0x5657b8['forceValue']:!_0x508154['value'];_0x2f62fd['change'](()=>{const _0x1baf2d=Array['from'](_0x2d70ff['getRanges']());for(const _0x31c4c1 of _0x1baf2d){const _0x24463f=_0x466b69?[_0x31c4c1]:io(_0xf98fc,_0x31c4c1,_0x2f62fd);for(const _0x52336d of _0x24463f)_0x230e48['markInlineFormat'](_0x52336d,{'commandName':_0xf98fc,'commandParams':[{'forceValue':_0x466b69}]});}});}),_0x230e48['descriptionFactory']['registerDescriptionCallback'](_0x2add91=>{if('formatBlock'!=_0x2add91['type']&&'formatInline'!=_0x2add91['type'])return;const {data:_0x54e606}=_0x2add91;return _0x54e606&&_0x54e606['commandName']==_0xf98fc?_0x54e606['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x22703d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x22703d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4679c4{['afterInit'](){const _0x560908=this['editor'];if(!_0x560908['plugins']['has']('Style')||!_0x560908['plugins']['has']('DataSchema'))return;const _0x86f4eb=_0x560908['plugins']['get']('TrackChangesEditing'),_0x552bad=_0x560908['locale'],_0x267e11=_0x560908['config']['get']('style')||{},_0x5971df=_0x560908['plugins']['get']('GeneralHtmlSupport'),_0x3334cf=_0x560908['plugins']['get']('StyleUtils')['normalizeConfig'](_0x560908['plugins']['get']('DataSchema'),_0x267e11['definitions']);_0x86f4eb['enableDefaultAttributesIntegration']('style');const _0x58fa33=new Set();for(const _0x2bea4f of _0x3334cf['block']){const _0x3d17f1=_0x5971df['getGhsAttributeNameForElement'](_0x2bea4f['element']);_0x58fa33['add'](_0x3d17f1);}const _0x1ebd4d=new Set();for(const _0x580b84 of _0x3334cf['inline']){const _0x154a4f=_0x5971df['getGhsAttributeNameForElement'](_0x580b84['element']);_0x1ebd4d['add'](_0x154a4f);for(const _0x4c5ec7 of _0x580b84['ghsAttributes'])_0x1ebd4d['add'](_0x4c5ec7);}for(const _0xba0d7e of _0x58fa33)_0x86f4eb['registerBlockAttribute'](_0xba0d7e),_0x86f4eb['descriptionFactory']['registerAttributeLabel'](_0xba0d7e,o(_0x552bad,'FORMAT_STYLE'));for(const _0x32edc9 of _0x1ebd4d)_0x86f4eb['registerInlineAttribute'](_0x32edc9),_0x86f4eb['descriptionFactory']['registerAttributeLabel'](_0x32edc9,o(_0x552bad,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x569367=this['editor'],_0x248f8c=_0x569367['locale'];_0x569367['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f4192=>{if('formatBlock'!=_0x5f4192['type']&&'formatInline'!=_0x5f4192['type'])return;const {data:_0x5c6a10}=_0x5f4192;return _0x5c6a10&&'style'===_0x5c6a10['commandName']?_0x5c6a10['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x248f8c,'*Set\x20format:*\x20%0',_0x5c6a10['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x248f8c,'*Remove\x20format:*\x20%0',_0x5c6a10['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4679c4{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x36bf06){super(_0x36bf06),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4fbb9a=this['editor'],_0x1ae160=_0x4fbb9a['model']['document']['selection'];if(!_0x4fbb9a['plugins']['has']('TableEditing'))return;const _0x545b74=_0x4fbb9a['locale'],_0x5ca6e2=_0x4fbb9a['plugins']['get']('TrackChangesEditing'),_0x2353f9=_0x4fbb9a['plugins']['get']('TableUtils');_0x5ca6e2['descriptionFactory']['registerElementLabel']('table',_0x464a11=>o(_0x545b74,'ELEMENT_TABLE',_0x464a11)),this['_setupColumnsRowsFixing'](),_0x5ca6e2['enableCommand']('insertTable'),_0x5ca6e2['enableCommand']('selectTableRow'),_0x5ca6e2['enableCommand']('selectTableColumn');for(const _0x2e398f of['insertTableRowAbove','insertTableRowBelow']){const _0x2e8dea=_0x4fbb9a['commands']['get'](_0x2e398f);_0x5ca6e2['enableCommand'](_0x2e398f,_0x7fe771=>{_0x4fbb9a['model']['change'](_0x4a6b22=>{_0x7fe771();const _0x2c0c02='above'===_0x2e8dea['order'],_0x1273f2=_0x2353f9['getSelectionAffectedTableCells'](_0x1ae160),_0x2f32d9=_0x2353f9['getRowIndexes'](_0x1273f2),_0x453abe=_0x2c0c02?_0x2f32d9['first']-0x1:_0x2f32d9['last']+0x1,_0xda053c=_0x1273f2[0x0]['findAncestor']('table'),_0x173eb8=_0x2353f9['createTableWalker'](_0xda053c,{'startRow':_0x453abe,'endRow':_0x453abe}),_0x4058dc=Array['from'](_0x173eb8)['map'](_0x33bfc2=>_0x4a6b22['createRangeOn'](_0x33bfc2['cell']));_0x5ca6e2['markMultiRangeInsertion'](_0x4058dc,'tableRow');});});}for(const _0x52cbe9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2b7cc3=_0x4fbb9a['commands']['get'](_0x52cbe9);_0x5ca6e2['enableCommand'](_0x52cbe9,_0x78051a=>{_0x4fbb9a['model']['change'](_0x75e6d7=>{_0x78051a();const _0x1ab8bc='left'===_0x2b7cc3['order'],_0x14b909=_0x2353f9['getSelectionAffectedTableCells'](_0x1ae160),_0x41a69d=_0x2353f9['getColumnIndexes'](_0x14b909),_0xaae59f=_0x1ab8bc?_0x41a69d['first']-0x1:_0x41a69d['last']+0x1,_0x34bb45=_0x14b909[0x0]['findAncestor']('table'),_0x15d2d1=_0x2353f9['createTableWalker'](_0x34bb45,{'startRow':0x0,'column':_0xaae59f,'includeAllSlots':!0x1}),_0x44ad4e=Array['from'](_0x15d2d1)['map'](_0x374e18=>_0x75e6d7['createRangeOn'](_0x374e18['cell']));_0x5ca6e2['markMultiRangeInsertion'](_0x44ad4e,'tableColumn');});});}for(const _0x342102 of['removeTableRow','removeTableColumn']){const _0x7cf666=_0x342102['substr'](0xb),_0x2758d8=_0x7cf666['toLowerCase'](),_0x5d6e17=_0x2758d8['substr'](0x0,0x3)+'span',_0xe4e725='table'+_0x7cf666,_0x5260fb='min'+_0x7cf666,_0x9974a7='max'+_0x7cf666;_0x5ca6e2['enableCommand'](_0x342102,()=>{_0x4fbb9a['model']['change'](_0x2853a0=>{const _0x21e5fb=_0x2353f9['getSelectionAffectedTableCells'](_0x1ae160),_0x31ed5e=_0x21e5fb[0x0]['findAncestor']('table');let _0x24fbf6;if('removeTableRow'==_0x342102){const _0x5239dc=_0x2353f9['getRowIndexes'](_0x21e5fb);_0x24fbf6={'startRow':_0x5239dc['first'],'endRow':_0x5239dc['last'],'includeAllSlots':!0x0};}else{const _0x2cf47e=_0x2353f9['getColumnIndexes'](_0x21e5fb);_0x24fbf6={'startColumn':_0x2cf47e['first'],'endColumn':_0x2cf47e['last'],'includeAllSlots':!0x0};}const _0x5d2ade=_0x2353f9['createTableWalker'](_0x31ed5e,_0x24fbf6),_0x30052b=Array['from'](_0x5d2ade)['map'](({cell:_0x2b5f0b})=>_0x2b5f0b),_0x3d9907=Ee(_0x30052b['filter'](_0x53ad99=>_0x53ad99['hasAttribute'](_0x5d6e17))),_0x57d8f3=Ee(_0x30052b['filter'](_0x36c975=>!_0x36c975['hasAttribute'](_0x5d6e17)))['map'](_0x1919d4=>_0x2853a0['createRangeOn'](_0x1919d4)),_0x23abdb=_0x5ca6e2['markMultiRangeDeletion'](_0x57d8f3,_0xe4e725);if(_0x23abdb&&('tableRow'==_0x23abdb['subType']||'tableColumn'==_0x23abdb['subType'])){const _0x3bd04a=this['_getSuggestionCoords'](_0x23abdb);for(const _0x185b0e of _0x3d9907){const _0x12fe77=_0x2853a0['createRangeOn'](_0x185b0e),_0x16c166=_0x2353f9['getCellLocation'](_0x185b0e),_0x53712b=_0x185b0e['getAttribute'](_0x5d6e17)-0x1,_0x2f132b=_0x3bd04a[_0x5260fb],_0x50ff4a=_0x3bd04a[_0x9974a7];_0x2f132b<=_0x16c166[_0x2758d8]&&_0x16c166[_0x2758d8]+_0x53712b<=_0x50ff4a&&_0x23abdb['addRange'](_0x12fe77);}}});});}function _0x3defe0(_0x35148e){const _0x5d2ea5=Array['from'](_0x1ae160['getRanges']())['map'](_0x16b985=>_0x528595['fromRange'](_0x16b985));_0x4fbb9a['model']['change'](_0x304a5c=>{const _0x401df7=_0x304a5c['batch'];_0x35148e=_0x35148e['filter'](_0x11bbeb=>'$graveyard'!=_0x11bbeb['root']['rootName']),_0x304a5c['setSelection'](_0x35148e),_0x4fbb9a['commands']['get']('removeTableRow')['refresh'](),_0x4fbb9a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4fbb9a['model']['enqueueChange'](()=>{_0x4fbb9a['model']['enqueueChange'](_0x401df7,_0x5d4745=>{const _0x246e4d=_0x5d2ea5['filter'](_0x53d4b2=>'$graveyard'!=_0x53d4b2['root']['rootName']);_0x246e4d['length']>0x0&&_0x5d4745['setSelection'](_0x246e4d);for(const _0x3251d0 of _0x5d2ea5)_0x3251d0['detach']();});});});}function _0x4891f7(_0xe4734a){_0x4fbb9a['model']['change'](_0x469a22=>{const _0x33d3ab=Array['from'](_0x1ae160['getRanges']())['map'](_0x13b1b4=>_0x528595['fromRange'](_0x13b1b4)),_0x1533e0=[];for(const _0x4046f2 of _0xe4734a)for(const _0x118232 of _0x4046f2['getItems']({'shallow':!0x0}))_0x1533e0['push'](_0x118232);for(const _0x3e71af of _0x1533e0)'$graveyard'!=_0x3e71af['root']['rootName']&&(_0x469a22['setSelection'](_0x469a22['createPositionAt'](_0x3e71af,0x0)),_0x4fbb9a['commands']['get']('removeTableColumn')['refresh'](),_0x4fbb9a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x96f9a9=_0x33d3ab['filter'](_0x27acf3=>'$graveyard'!=_0x27acf3['root']['rootName']);_0x96f9a9['length']>0x0&&_0x469a22['setSelection'](_0x96f9a9);for(const _0x39f946 of _0x33d3ab)_0x39f946['detach']();});}function _0x2a40eb(_0xd6b386,_0xc52623){return _0xc52623['every'](_0x1d22fe=>_0xd6b386['some'](_0x1f1809=>_0x1f1809['end']['isEqual'](_0x1d22fe['start'])||_0x1d22fe['end']['isEqual'](_0x1f1809['start'])));}function _0x487e22(_0x16a9e6,_0x3df916){return _0x16a9e6['some'](_0x2c4f47=>_0x3df916['some'](_0x226db3=>_0x2c4f47['end']['isTouching'](_0x226db3['start'])));}_0x4fbb9a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x257199,_0x2a9749,_0x3e4194)=>{if(!_0x3e4194['options']['showSuggestionHighlights'])return;const _0x5b5d39=_0x2a9749['item'];if(!_0x5b5d39)return;const _0x46ef92=_0x3e4194['mapper']['toViewElement'](_0x5b5d39);function _0x202495(_0x9b8bb7){return Array['isArray'](_0x9b8bb7)?_0x9b8bb7:[_0x9b8bb7];}_0x46ef92&&'tableCell'===_0x5b5d39['name']&&_0x59682f(_0x46ef92,_0x3e4194['writer'],(_0x263fd5,_0x579908,_0x289eba)=>_0x289eba['addClass'](_0x202495(_0x579908['classes']),_0x263fd5),(_0x11723a,_0x29f266,_0x527217)=>_0x527217['removeClass'](_0x202495(_0x29f266['classes']),_0x11723a));},{'priority':'highest'}),_0x5ca6e2['descriptionFactory']['registerDescriptionCallback'](_0x2bb144=>{if('insertion'!=_0x2bb144['type']&&'deletion'!=_0x2bb144['type'])return;const _0x5aacad=_0x2bb144['getContainedElement']();if(null!=_0x5aacad&&_0x5aacad['is']('element','table')){if('insertion'==_0x2bb144['type']){const _0x20d224=_0x2bb144['getItems']()['filter'](_0x1c139c=>_0x1c139c['is']('$textProxy'))['map'](_0x2190b3=>_0x2190b3['data']);if(_0x20d224['length'])return{'type':'insertion','content':o(_0x545b74,'*Insert:*\x20%0',o(_0x545b74,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x20d224['join']('\x20')+'\x22'))};}if('deletion'==_0x2bb144['type']){const _0x73ea6e=_0x2bb144['getItems']()['filter'](_0x3fd4b8=>_0x3fd4b8['is']('$textProxy'))['map'](_0x359a6b=>_0x359a6b['data']);if(_0x73ea6e['length'])return{'type':'deletion','content':o(_0x545b74,'*Remove:*\x20%0',o(_0x545b74,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x73ea6e['join']('\x20')+'\x22'))};}}}),_0x5ca6e2['descriptionFactory']['registerDescriptionCallback'](_0x1bde8c=>{if('tableRow'==_0x1bde8c['subType']){const _0x17367a=_0x1bde8c['getItems']()['filter'](_0x2c8617=>_0x2c8617['is']('$textProxy'))['map'](_0x2f21ec=>_0x2f21ec['data']),_0xbdbfa5=this['_getSuggestionCoords'](_0x1bde8c),_0x35a1b1=_0xbdbfa5['maxRow']-_0xbdbfa5['minRow']+0x1;if('insertion'==_0x1bde8c['type'])return _0x17367a['length']?{'type':'insertion','content':o(_0x545b74,'*Insert:*\x20%0',o(_0x545b74,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x35a1b1,'\x22'+_0x17367a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x545b74,'*Insert:*\x20%0',o(_0x545b74,'ELEMENT_TABLE_ROW',_0x35a1b1))};if('deletion'==_0x1bde8c['type'])return _0x17367a['length']?{'type':'deletion','content':o(_0x545b74,'*Remove:*\x20%0',o(_0x545b74,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x35a1b1,'\x22'+_0x17367a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x545b74,'*Remove:*\x20%0',o(_0x545b74,'ELEMENT_TABLE_ROW',_0x35a1b1))};}if('tableColumn'==_0x1bde8c['subType']){const _0x20f93b=_0x1bde8c['getItems']()['filter'](_0x2b828c=>_0x2b828c['is']('$textProxy'))['map'](_0x27834d=>_0x27834d['data']),_0x11bf99=this['_getSuggestionCoords'](_0x1bde8c),_0x259020=_0x11bf99['maxColumn']-_0x11bf99['minColumn']+0x1;if('insertion'==_0x1bde8c['type'])return _0x20f93b['length']?{'type':'insertion','content':o(_0x545b74,'*Insert:*\x20%0',o(_0x545b74,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x259020,'\x22'+_0x20f93b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x545b74,'*Insert:*\x20%0',o(_0x545b74,'ELEMENT_TABLE_COLUMN',_0x259020))};if('deletion'==_0x1bde8c['type'])return _0x20f93b['length']?{'type':'deletion','content':o(_0x545b74,'*Remove:*\x20%0',o(_0x545b74,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x259020,'\x22'+_0x20f93b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x545b74,'*Remove:*\x20%0',o(_0x545b74,'ELEMENT_TABLE_COLUMN',_0x259020))};}}),_0x5ca6e2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3defe0),_0x5ca6e2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3defe0),_0x5ca6e2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4891f7),_0x5ca6e2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4891f7),_0x5ca6e2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2a40eb),_0x5ca6e2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2a40eb),_0x5ca6e2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x487e22),_0x5ca6e2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x487e22);}['_acceptFormatSuggestionCallbackFactory'](){const _0x223dce=this['editor'],_0xf36217=_0x223dce['model']['document']['selection'];return(_0xa6673b,_0x3aaf06)=>{_0x223dce['model']['change'](_0x102d6f=>{const {commandName:_0xb00d0b,commandParams:_0x49fdd1}=_0x3aaf06;let _0x2b6509=_0xa6673b[0x0]['end']['nodeBefore'];_0x49fdd1&&_0x49fdd1[0x0]&&!0x1===_0x49fdd1[0x0]['forceValue']&&(_0x2b6509=_0xa6673b[0x0]['start']['nodeAfter']);const _0x5b7d05=_0x102d6f['createRangeIn'](_0x2b6509);if('$graveyard'==_0x5b7d05['root']['rootName'])return;const _0x5df5be=Array['from'](_0xf36217['getRanges']())['map'](_0x3ec52c=>_0x528595['fromRange'](_0x3ec52c));_0x102d6f['setSelection'](_0x5b7d05),_0x223dce['commands']['get'](_0xb00d0b)['refresh'](),_0x49fdd1['push']({'forceDefaultExecution':!0x0}),_0x223dce['execute'](_0xb00d0b,..._0x49fdd1);const _0x3962a2=_0x5df5be['filter'](_0x4312a0=>'$graveyard'!=_0x4312a0['root']['rootName']);_0x3962a2['length']>0x0&&_0x102d6f['setSelection'](_0x3962a2);for(const _0xc501a6 of _0x5df5be)_0xc501a6['detach']();});};}['_getCoordsForCells'](_0x267ab8){const _0x38ad7f=this['editor']['plugins']['get']('TableUtils');let _0x1fd215=Number['MAX_SAFE_INTEGER'],_0xed77d1=Number['MIN_SAFE_INTEGER'],_0x98219=Number['MAX_SAFE_INTEGER'],_0xe20e89=Number['MIN_SAFE_INTEGER'];for(const _0x289f2d of _0x267ab8){if('$graveyard'==_0x289f2d['root']['rootName'])continue;const {row:_0x29c8c5,column:_0x287c3f}=_0x38ad7f['getCellLocation'](_0x289f2d),_0xae520f=_0x289f2d['hasAttribute']('rowspan')?_0x289f2d['getAttribute']('rowspan')-0x1:0x0,_0x38d453=_0x289f2d['hasAttribute']('colspan')?_0x289f2d['getAttribute']('colspan')-0x1:0x0;_0x1fd215=_0x29c8c5<_0x1fd215?_0x29c8c5:_0x1fd215,_0xed77d1=_0x29c8c5+_0xae520f>_0xed77d1?_0x29c8c5+_0xae520f:_0xed77d1,_0x98219=_0x287c3f<_0x98219?_0x287c3f:_0x98219,_0xe20e89=_0x287c3f+_0x38d453>_0xe20e89?_0x287c3f+_0x38d453:_0xe20e89;}return{'minRow':_0x1fd215,'maxRow':_0xed77d1,'minColumn':_0x98219,'maxColumn':_0xe20e89};}['_setupColumnsRowsFixing'](){const _0x1b5ca4=this['editor'],_0x2541af=_0x1b5ca4['plugins']['get']('TrackChangesEditing'),_0xd80e98=_0x1b5ca4['plugins']['get']('TableUtils');_0x1b5ca4['model']['document']['on']('change:data',()=>{const _0x4ebd18=Array['from'](_0x1b5ca4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x244750,data:_0x41abbd}of _0x4ebd18){const {group:_0x57f7f0,id:_0x5647f8,subType:_0x9549e7}=_0x2541af['_splitMarkerName'](_0x244750);if('suggestion'!=_0x57f7f0)continue;if(null!=_0x41abbd['oldRange'])continue;const _0x20dc22=_0x2541af['getSuggestion'](_0x5647f8);this['_tablePostFixingSubtypes']['includes'](_0x9549e7)&&this['_tableSuggestions']['add'](_0x20dc22);}},{'priority':'low'});const _0x3b56ab=(_0x172fe5,_0x185c8b)=>{let _0x37a6fe=!0x1;const _0x4a0748=_0x185c8b['createRangeOn'](_0x172fe5),_0x43409a=_0x172fe5['findAncestor']('table'),_0x4c0b83=_0xd80e98['getCellLocation'](_0x172fe5);for(const _0x5d321a of this['_tableSuggestions']){const _0xbe9152=_0x5d321a['subType'],_0x378238=_0xbe9152['startsWith']('tablePaste'),_0x13d7a5=_0xbe9152['substr'](_0x378238?0xa:0x5),_0x4723a7=_0x13d7a5['toLowerCase'](),_0x2fa588=_0x4723a7['substr'](0x0,0x3)+'span',_0x5cd7a7='min'+_0x13d7a5,_0x250db2='max'+_0x13d7a5;if(!_0x5d321a['isInContent'])continue;if(_0x43409a!=_0x5d321a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5d321a['isIntersectingWithRange'](_0x4a0748))continue;const _0x365d51=_0x172fe5['hasAttribute'](_0x2fa588)?_0x172fe5['getAttribute'](_0x2fa588)-0x1:0x0,_0x202f38=this['_getSuggestionCoords'](_0x5d321a),_0x1dd3c6=_0x202f38[_0x5cd7a7],_0x26431d=_0x202f38[_0x250db2];_0x1dd3c6<=_0x4c0b83[_0x4723a7]&&_0x4c0b83[_0x4723a7]+_0x365d51<=_0x26431d&&(_0x5d321a['addRange'](_0x4a0748),_0x37a6fe=!0x0);}return _0x37a6fe;};_0x1b5ca4['model']['document']['registerPostFixer'](_0x4ac40c=>{let _0x4b00cc=!0x1;for(const _0x5b272d of _0x1b5ca4['model']['document']['differ']['getChanges']())if('insert'==_0x5b272d['type']){if('tableRow'==_0x5b272d['name']){for(const _0x334352 of _0x5b272d['position']['nodeAfter']['getChildren']())_0x4b00cc=_0x4b00cc||_0x3b56ab(_0x334352,_0x4ac40c);}else'tableCell'==_0x5b272d['name']&&(_0x4b00cc=_0x4b00cc||_0x3b56ab(_0x5b272d['position']['nodeAfter'],_0x4ac40c));}return _0x4b00cc;});}['_getSuggestionCoords'](_0x765a9c){return this['_getCoordsForCells'](_0x765a9c['getRanges']()['map'](_0x49a667=>_0x49a667['start']['nodeAfter']));}}function Ee(_0x1886f0){return Array['from'](new Set(_0x1886f0)['values']());}class St extends _0x4679c4{static get['requires'](){return[jt];}['afterInit'](){const _0x3ec778=this['editor'],_0x3fa9b7=_0x3ec778['model']['document']['selection'],_0x51e513=_0x3ec778['locale'];if(!_0x3ec778['plugins']['has']('TableEditing'))return;const _0x2d5ff7=_0x3ec778['plugins']['get']('TrackChangesEditing'),_0x319bdf=_0x3ec778['plugins']['get']('TableUtils'),_0x21cac2=_0x3ec778['plugins']['get'](jt);_0x21cac2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2d5ff7['enableCommand']('mergeTableCells',()=>{const _0xd9524c=_0x319bdf['getSelectionAffectedTableCells'](_0x3ec778['model']['document']['selection']);_0x3ec778['model']['change'](()=>{_0x2d5ff7['markMultiRangeBlockFormat'](_0xd9524c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3ec778['commands']['get']('mergeTableCells')['on']('execute',(_0x122cfc,_0x171708)=>{_0x3ec778['commands']['get']('trackChanges')['value']&&(_0x171708['length']>0x0&&_0x171708[_0x171708['length']-0x1]&&_0x171708[_0x171708['length']-0x1]['forceDefaultExecution']||_0x2d5ff7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x122cfc['stop']());},{'priority':'highest'});for(const _0x1e3106 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x13c273=_0x3ec778['commands']['get'](_0x1e3106);_0x2d5ff7['enableCommand'](_0x1e3106,()=>{const _0x14b36e=_0x3ec778['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x525125=>_0x525125['is']('element','tableCell')),_0xdcf786=_0x13c273['value'];_0x3ec778['model']['change'](()=>{_0x2d5ff7['markMultiRangeBlockFormat']([_0x14b36e,_0xdcf786],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x578b8c of['splitTableCellVertically','splitTableCellHorizontally']){const _0xabc46=_0x3ec778['commands']['get'](_0x578b8c);_0x2d5ff7['enableCommand'](_0x578b8c,()=>{const _0x50adc0=_0x319bdf['getSelectionAffectedTableCells'](_0x3ec778['model']['document']['selection'])[0x0],_0x40620a=_0x50adc0['findAncestor']('table'),{column:_0x76583e,row:_0x23e823}=_0x319bdf['getCellLocation'](_0x50adc0);let _0x13efda=[];if('horizontally'==_0xabc46['direction']){const _0x26b21c=_0x319bdf['createTableWalker'](_0x40620a,{'startRow':_0x23e823,'endRow':_0x23e823,'includeAllSlots':!0x0});_0x13efda=Array['from'](_0x26b21c)['map'](_0x39e952=>_0x39e952['cell']);}else{const _0x68c268=_0x319bdf['createTableWalker'](_0x40620a,{'column':_0x76583e,'includeAllSlots':!0x0});_0x13efda=Array['from'](_0x68c268)['map'](_0x22f941=>_0x22f941['cell']);}_0x3ec778['model']['change'](_0x3825dc=>{_0x2d5ff7['markBlockFormat'](_0x3825dc['createRangeOn'](_0x50adc0),{'commandName':_0x578b8c,'commandParams':[]},_0x13efda,_0x578b8c);});});}_0x2d5ff7['descriptionFactory']['registerDescriptionCallback'](_0x4e24ba=>{if('formatBlock'!=_0x4e24ba['type']&&'formatInline'!=_0x4e24ba['type'])return;const {data:_0x45231e}=_0x4e24ba;return _0x45231e&&'mergeTableCells'==_0x45231e['commandName']?{'type':'format','content':o(_0x51e513,'*Merge\x20cells*')}:void 0x0;}),_0x2d5ff7['descriptionFactory']['registerDescriptionCallback'](_0x414375=>{if('formatBlock'!=_0x414375['type']&&'formatInline'!=_0x414375['type'])return;const {data:_0x302e5c}=_0x414375;return _0x302e5c?'splitTableCellVertically'==_0x302e5c['commandName']?{'type':'format','content':o(_0x51e513,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x302e5c['commandName']?{'type':'format','content':o(_0x51e513,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4d4226=_0x21cac2['_acceptFormatSuggestionCallbackFactory']();for(const _0x10f235 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2d5ff7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10f235,'accept',_0x4d4226);for(const _0x1c2023 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2d5ff7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c2023,'accept',_0x4d4226);_0x2d5ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5a974e=>{_0x3ec778['model']['change'](_0x18084c=>{const _0x27fa71=Array['from'](_0x3fa9b7['getRanges']())['map'](_0x556f17=>_0x528595['fromRange'](_0x556f17));_0x18084c['setSelection'](_0x5a974e),_0x3ec778['commands']['get']('mergeTableCells')['refresh'](),_0x3ec778['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x6d49ae=_0x27fa71['filter'](_0x5d7806=>'$graveyard'!=_0x5d7806['root']['rootName']);_0x6d49ae['length']>0x0&&_0x18084c['setSelection'](_0x6d49ae);for(const _0x49e11f of _0x27fa71)_0x49e11f['detach']();});});for(const _0x4c408e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3df0df=_0x3ec778['commands']['get'](_0x4c408e);_0x3df0df['on']('set:isEnabled',(_0x271584,_0x3db7d2,_0x258553)=>{if(_0x258553){const _0x434644=_0x3ec778['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x512015=>_0x512015['is']('element','tableCell'));this['_areMergableCells'](_0x3df0df['value'],_0x434644)||(_0x271584['return']=!0x1,_0x271584['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x154b9f=this['editor']['commands']['get']('mergeTableCells'),_0x5bf535=this['editor']['plugins']['get']('TableUtils');if(!_0x154b9f['isEnabled'])return!0x1;const _0x17e99f=_0x5bf535['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1b4b15 of _0x17e99f)for(const _0x2f341b of _0x17e99f)if(_0x1b4b15!=_0x2f341b&&!this['_areMergableCells'](_0x1b4b15,_0x2f341b))return!0x1;return!0x0;}['_areMergableCells'](_0x1be92d,_0x35c48c){const _0x3e52ef=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa22710=this['editor']['model']['createRangeOn'](_0x1be92d),_0x1ab271=this['editor']['model']['createRangeOn'](_0x35c48c),_0x5d622d=new Set(),_0x7a679f=new Set();for(const _0x175948 of _0x3e52ef['getSuggestions']())if(('insertion'==_0x175948['type']||'deletion'==_0x175948['type']||'mergeTableCells'==_0x175948['subType'])&&_0x175948['isInContent']){for(const _0x19e73a of _0x175948['getRanges']())_0x19e73a['containsRange'](_0xa22710,!0x0)&&_0x5d622d['add'](_0x175948['type']+':'+_0x175948['author']['id']),_0x19e73a['containsRange'](_0x1ab271,!0x0)&&_0x7a679f['add'](_0x175948['type']+':'+_0x175948['author']['id']);}if(_0x5d622d['size']!=_0x7a679f['size'])return!0x1;for(const _0xe36a5 of _0x5d622d)if(!_0x7a679f['has'](_0xe36a5))return!0x1;return!0x0;}}class At extends _0x4679c4{static get['requires'](){return[jt];}['afterInit'](){const _0x36f20c=this['editor'];if(!_0x36f20c['plugins']['has']('TableEditing'))return;const _0x5cbc1d=_0x36f20c['locale'],_0x176a9b=_0x36f20c['plugins']['get']('TrackChangesEditing');_0x176a9b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x176a9b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x176a9b['registerBlockAttribute']('headingRows'),_0x176a9b['registerBlockAttribute']('headingColumns'),_0x176a9b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5cbc1d,'FORMAT_HEADER_ROW')),_0x176a9b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5cbc1d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fc198=this['editor']['plugins']['get']('TrackChangesEditing'),_0x299769=this['editor']['plugins']['get']('TableUtils'),_0xb54444=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x2a629b({showActiveMarker:_0x13af9d=!0x0,setDataAttribute:_0x373dcf=!0x0}={}){return(_0x2ef319,_0x217211,_0x4fe984)=>{const {type:_0x80405f,id:_0x15a46b}=_0x4fc198['_splitMarkerName'](_0x217211['markerName']),_0x390087=_0x4fc198['getSuggestion'](_0x15a46b),_0xc44e66=_0x390087['data'];if('formatBlock'!=_0x390087['type']||!_0xc44e66||'setTableColumnHeader'!=_0xc44e66['commandName'])return;if(_0x217211['item'])return void _0x2ef319['stop']();if(!_0x4fe984['consumable']['consume'](_0x217211['markerRange'],_0x2ef319['name']))return;const _0x49dc53=_0x217211['markerRange']['start']['nodeAfter'],_0x8ba5b4=_0x217211['markerRange']['end']['nodeBefore'],_0xa78a4b=_0x49dc53['parent']['parent'],{column:_0x87777b}=_0x299769['getCellLocation'](_0x49dc53),{column:_0xb80f01}=_0x299769['getCellLocation'](_0x8ba5b4);for(let _0x562511=_0x87777b;_0x562511<=_0xb80f01;_0x562511++){const _0x283a82=_0x299769['createTableWalker'](_0xa78a4b,{'column':_0x562511,'includeAllSlots':!0x1});for(const _0x254b9e of _0x283a82){const _0x560d22=_0x254b9e['cell'],_0x4c536f=_0x4fe984['mapper']['toViewElement'](_0x560d22);_0x4fe984['writer']['addClass']('ck-suggestion-marker-'+_0x80405f,_0x4c536f),_0x373dcf&&_0x4fe984['writer']['setAttribute']('data-suggestion',_0x15a46b,_0x4c536f),_0x4fe984['mapper']['bindElementToMarker'](_0x4c536f,_0x217211['markerName']),_0x13af9d&&(_0x4fc198['activeMarkers']['includes'](_0x217211['markerName'])?_0x4fe984['writer']['addClass']('ck-suggestion-marker--active',_0x4c536f):_0x4fe984['writer']['removeClass']('ck-suggestion-marker--active',_0x4c536f));}}};}_0x4fc198['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xb54444),_0x4fc198['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xb54444),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2a629b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c95d6,_0x438a0d,_0xe4e8fa)=>{_0xe4e8fa['options']['showSuggestionHighlights']&&_0x2a629b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2c95d6,_0x438a0d,_0xe4e8fa);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3705f8,_0x4f3181,_0x54e198)=>{const {type:_0x577393,id:_0x6a9066}=_0x4fc198['_splitMarkerName'](_0x4f3181['markerName']),_0xd1a27a=_0x4fc198['getSuggestion'](_0x6a9066),_0x2a407c=_0xd1a27a['data'];if('formatBlock'!=_0xd1a27a['type']||!_0x2a407c||'setTableColumnHeader'!=_0x2a407c['commandName'])return;const _0x4575f8=_0x54e198['mapper']['markerNameToElements'](_0x4f3181['markerName']);if(_0x4575f8){for(const _0x19204d of _0x4575f8)_0x54e198['writer']['removeClass']('ck-suggestion-marker-'+_0x577393,_0x19204d),_0x54e198['writer']['removeClass']('ck-suggestion-marker--active',_0x19204d),_0x54e198['writer']['removeAttribute']('data-suggestion',_0x19204d),_0x54e198['mapper']['unbindElementFromMarkerName'](_0x19204d,_0x4f3181['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x309432=this['editor'],_0x1e0aff=_0x309432['locale'];function _0x525dbf(_0x55d15f){return{'type':'format','content':o(_0x1e0aff,'*Format:*\x20%0',_0x55d15f)};}_0x309432['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x374013=>{if('formatBlock'!=_0x374013['type'])return;const {data:_0x344a5f}=_0x374013;if(_0x344a5f){if('setTableRowHeader'==_0x344a5f['commandName']){const _0x2dcf99=_0x344a5f['commandParams'][0x0]['forceValue'];return _0x525dbf(o(_0x1e0aff,_0x2dcf99?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x344a5f['commandName']){const _0x418bf4=_0x344a5f['commandParams'][0x0]['forceValue'];return _0x525dbf(o(_0x1e0aff,_0x418bf4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x1ae14b=>[_0x1ae14b,null]));class It extends _0x4679c4{static get['requires'](){return[jt];}['afterInit'](){const _0x20c907=this['editor'];if(!_0x20c907['plugins']['has']('TableClipboard'))return;const _0x20affa=_0x20c907['plugins']['get']('TrackChangesEditing'),_0x29cd33=_0x20c907['plugins']['get']('TableUtils'),_0x26bfcd=_0x20c907['plugins']['get'](jt),_0x2c059e=_0x20c907['plugins']['get']('TableClipboard');_0x26bfcd['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x20c907['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x20c907['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xe1ee93=null;_0x20c907['model']['on']('insertContent',(_0x1135a6,_0x2979e6)=>{const [_0x6eadcd,_0x2294e9]=_0x2979e6,_0x475851=_0x2979e6[_0x2979e6['length']-0x1];_0x475851&&_0x475851['forceDefaultExecution']||_0x20affa['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xc00186,_0x17dbeb,_0xe5f16b,_0x9154ce,_0x4d7275){if(_0x17dbeb&&!_0x17dbeb['is']('documentSelection'))return!0x1;const _0xd563d8=_0x4d7275['getTableIfOnlyTableInContent'](_0xc00186,_0xe5f16b);if(!_0xd563d8||!he(_0xd563d8,void 0x0,_0x9154ce))return!0x1;const _0x1cb645=_0x9154ce['getSelectionAffectedTableCells'](_0xe5f16b['document']['selection']);if(!_0x1cb645['length'])return!0x1;const _0x3162e2=_0x1cb645[0x0]['findAncestor']('table'),_0x178e3e=_0x9154ce['getRowIndexes'](_0x1cb645),_0x20e7bd=_0x9154ce['getColumnIndexes'](_0x1cb645),_0xbad417={'startRow':_0x178e3e['first'],'endRow':_0x178e3e['last'],'startColumn':_0x20e7bd['first'],'endColumn':_0x20e7bd['last']};return 0x1==_0x1cb645['length']&&(_0xbad417['endRow']+=_0x9154ce['getRows'](_0xd563d8)-0x1,_0xbad417['endColumn']+=_0x9154ce['getColumns'](_0xd563d8)-0x1),he(_0x3162e2,_0xbad417,_0x9154ce);}(_0x6eadcd,_0x2294e9,_0x20c907['model'],_0x29cd33,_0x2c059e)&&(_0x1135a6['stop'](),_0xe1ee93={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x20c907['model']['change'](()=>{_0x20c907['model']['insertContent'](_0x2979e6[0x0],_0x2979e6[0x1],_0x2979e6[0x2],{'forceDefaultExecution':!0x0});const _0x5a92f5=_0x4fd794(),{rowInsertionRanges:_0x293831,columnInsertionRanges:_0x18f65f,insertionRanges:_0x226a6e,deletionRanges:_0x49b76d,cells:_0x12dd34}=_0xe1ee93;_0x293831['length']&&_0x20affa['markMultiRangeInsertion'](_0x293831,'tablePasteRow',{'tablePasteChainId':_0x5a92f5}),_0x18f65f['length']&&_0x20affa['markMultiRangeInsertion'](_0x18f65f,'tablePasteColumn',{'tablePasteChainId':_0x5a92f5}),_0x226a6e['length']&&(_0x20affa['markMultiRangeInsertion'](_0x226a6e,'tablePaste',{'tablePasteChainId':_0x5a92f5,'skipNestingCheck':!0x0}),_0x226a6e['forEach'](_0x132621=>_0x132621['detach']?.())),_0x49b76d['length']&&(_0x20affa['markMultiRangeDeletion'](_0x49b76d,'tablePaste',{'tablePasteChainId':_0x5a92f5,'skipNestingCheck':!0x0}),_0x49b76d['forEach'](_0x487d38=>_0x487d38['detach']?.()));const _0x27a1b1=_0x20affa['markMultiRangeBlockFormat'](_0x12dd34['map'](({element:_0x5852aa})=>_0x5852aa),{'formatGroupId':_0x4fd794()},[],'tablePasteCell',{'tablePasteChainId':_0x5a92f5});if(_0x27a1b1){const _0x29fc59=_0x27a1b1['getMarkers'](),_0x39bb40=[];for(const {element:_0x5eb703,attributes:_0x548439}of _0x12dd34){if(!_0x548439)continue;const _0x529295=_0x20c907['model']['createRangeOn'](_0x5eb703),_0x4ffbce=_0x29fc59['find'](_0x154c3b=>_0x154c3b['getRange']()['isEqual'](_0x529295));_0x4ffbce&&_0x39bb40['push']([_0x4ffbce['name'],_0x548439]);}_0x39bb40['length']&&_0x27a1b1['setAttribute']('markerAttributes',Object['fromEntries'](_0x39bb40));}_0xe1ee93=null;}));},{'priority':_0x5cd3d6['high']+0xa}),_0x20c907['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x22e3d9,_0x1065bd)=>{const [_0x5c2b44,_0x1ab5ae,,_0x581957]=_0x1065bd;if(!_0xe1ee93)return;_0x22e3d9['stop']();const _0x6f6878=_0x5c2b44['cell'],_0x57f229=_0x1ab5ae,_0x2f635d=Pe(_0x6f6878),_0x4a26cc=Pe(_0x57f229);_0x22e3d9['return']=_0x6f6878;let _0x5d4b79=null,_0x56bac2=null;if(_0x4a26cc||_0x2f635d){if(_0x2f635d&&!_0x4a26cc){_0x581957['remove'](_0x6f6878['getChild'](0x0));for(const _0x56afe8 of Array['from'](_0x57f229['getChildren']()))_0x581957['insert'](_0x56afe8,_0x6f6878,'end');const _0x1569b1=_0xe1ee93['rowInsertionIndexes']['includes'](_0x5c2b44['row']),_0x33bc1e=_0xe1ee93['columnInsertionIndexes']['includes'](_0x5c2b44['column']);_0x1569b1||_0x33bc1e||(_0x5d4b79=_0x528595['fromRange'](_0x581957['createRangeIn'](_0x6f6878)));}else _0x4a26cc&&!_0x2f635d&&(_0x56bac2=_0x581957['createRangeIn'](_0x6f6878));}else{const _0x51b1d1=_0x581957['createElement']('tableCellSuggestion'),_0x132be6=_0x581957['createElement']('tableCellSuggestion');_0x581957['wrap'](_0x581957['createRangeIn'](_0x6f6878),_0x132be6),_0x581957['insert'](_0x51b1d1,_0x6f6878,0x0);for(const _0x563673 of Array['from'](_0x57f229['getChildren']()))_0x581957['insert'](_0x563673,_0x51b1d1,'end');_0x5d4b79=_0x528595['fromRange'](_0x581957['createRangeOn'](_0x51b1d1)),_0x56bac2=_0x528595['fromRange'](_0x581957['createRangeOn'](_0x132be6));}const _0x362cf0=Array['from'](_0x57f229['getAttributes']())['filter'](([_0x5a0ce6])=>ge['includes'](_0x5a0ce6));_0xe1ee93['cells']['push']({'element':_0x6f6878,'attributes':_0x362cf0['length']?Object['fromEntries'](_0x362cf0):null}),_0x5d4b79&&_0xe1ee93['insertionRanges']['push'](_0x5d4b79),_0x56bac2&&_0xe1ee93['deletionRanges']['push'](_0x56bac2);},{'priority':'high'}),_0x29cd33['on']('insertColumns',(_0x136f31,_0x2f655d)=>{const [_0x3fe2ee,_0x1da842={}]=_0x2f655d;if(!_0xe1ee93)return;const _0x235bd6=_0x1da842['at']||0x0,_0x2c414c=_0x1da842['columns']||0x1;_0xe1ee93['columnInsertionIndexes']=new Array(_0x2c414c)['fill'](_0x235bd6)['map']((_0x48014b,_0x3c3d48)=>_0x48014b+_0x3c3d48);for(const {cell:_0x56312f}of _0x29cd33['createTableWalker'](_0x3fe2ee,{'startColumn':_0x235bd6,'endColumn':_0x235bd6+_0x2c414c-0x1}))_0xe1ee93['columnInsertionRanges']['push'](_0x20c907['model']['createRangeOn'](_0x56312f));},{'priority':'low'}),_0x29cd33['on']('insertRows',(_0x599d3c,_0x4f453b)=>{const [_0x113b16,_0x47207c={}]=_0x4f453b;if(!_0xe1ee93)return;const _0x4375a4=_0x47207c['at']||0x0,_0xe1eef3=_0x47207c['rows']||0x1;_0xe1ee93['rowInsertionIndexes']=new Array(_0xe1eef3)['fill'](_0x4375a4)['map']((_0x817cf3,_0x28b857)=>_0x817cf3+_0x28b857);for(const {cell:_0x3571db}of _0x29cd33['createTableWalker'](_0x113b16,{'startRow':_0x4375a4,'endRow':_0x4375a4+_0xe1eef3-0x1}))_0xe1ee93['rowInsertionRanges']['push'](_0x20c907['model']['createRangeOn'](_0x3571db));},{'priority':'low'}),_0x20affa['descriptionFactory']['registerDescriptionCallback'](_0x344e75=>{if(_0x344e75['subType']&&_0x344e75['subType']['startsWith']('tablePaste'))return _0x344e75['previous']?{}:{'type':'insertion','content':o(_0x20c907['locale'],'*Replace\x20table\x20cells*')};});const _0x4afbd8=()=>!0x1;for(const _0x4199bc of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x20affa['_suggestionFactory']['registerCustomCallback']('insertion',_0x4199bc,'join',_0x4afbd8),_0x20affa['_suggestionFactory']['registerCustomCallback']('deletion',_0x4199bc,'join',_0x4afbd8),_0x20affa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4199bc,'join',_0x4afbd8);_0x20affa['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4afbd8),_0x20affa['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4623a2,_0x2fc859,_0x5d63bb)=>{const _0x494392=_0x4623a2['map'](_0x4e97c8=>_0x4e97c8['getContainedElement']())['filter'](_0x5e4ca0=>_0x5e4ca0),_0x281e38=new Map(_0x494392['map'](_0x315540=>[_0x315540,null]));if(_0xe1ee93){for(const {element:_0x2c21d5,attributes:_0x21dd95}of _0xe1ee93['cells'])_0x21dd95&&_0x281e38['set'](_0x2c21d5,_0x21dd95);}else{if(_0x5d63bb&&_0x5d63bb['markerAttributes'])for(const [_0x24d09f,_0x3c7853]of Object['entries'](_0x5d63bb['markerAttributes'])){const _0x396516=_0x20c907['model']['markers']['get'](_0x24d09f),_0x2f5df6=_0x396516?_0x396516['getRange']()['getContainedElement']():null;_0x2f5df6&&_0x281e38['set'](_0x2f5df6,_0x3c7853);}}_0x20c907['model']['change'](_0x30a1c3=>{for(const [_0x202643,_0xecf8e7]of _0x281e38)_0x30a1c3['setAttributes']({...Ce,..._0xecf8e7},_0x202643);});});const _0x5cb09e=(_0x3168f4,_0x368eaa)=>{_0x20affa['_suggestionFactory']['registerCustomCallback'](_0x3168f4,'tablePaste',_0x368eaa,(_0x4ee900,_0x157a1f,_0x59372f)=>{_0x20c907['model']['change'](_0x59c5cd=>{const _0x1d12c0=[];for(const _0x134ab9 of _0x4ee900){const _0x4dab66=_0x134ab9['start']['nodeAfter'];_0x4dab66['is']('element','tableCellSuggestion')&&_0x1d12c0['push'](_0x4dab66);}_0x20affa['_suggestionFactory']['getSuggestionCallback'](_0x3168f4,null,_0x368eaa)(_0x4ee900,_0x157a1f,_0x59372f);for(const _0x4b9d50 of _0x1d12c0)'$graveyard'!=_0x4b9d50['root']['rootName']&&_0x59c5cd['unwrap'](_0x4b9d50);});});};_0x5cb09e('insertion','accept'),_0x5cb09e('insertion','discard'),_0x5cb09e('deletion','accept'),_0x5cb09e('deletion','discard'),_0x20affa['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x48d92e=>{const _0x46136a=_0x48d92e['map'](_0x2d40b4=>_0x2d40b4['getContainedElement']()),_0x55e2e1=_0x46136a[0x0]['findAncestor']('table'),{minRow:_0x518f45,maxRow:_0x3bf428}=_0x26bfcd['_getCoordsForCells'](_0x46136a);_0x29cd33['removeRows'](_0x55e2e1,{'at':_0x518f45,'rows':_0x3bf428-_0x518f45+0x1});}),_0x20affa['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5d1893=>{const _0x37e438=_0x5d1893['map'](_0x224a69=>_0x224a69['getContainedElement']()),_0x52a04e=_0x37e438[0x0]['findAncestor']('table'),{minColumn:_0x4555c9,maxColumn:_0x2fafe2}=_0x26bfcd['_getCoordsForCells'](_0x37e438);_0x29cd33['removeColumns'](_0x52a04e,{'at':_0x4555c9,'columns':_0x2fafe2-_0x4555c9+0x1});});const _0x47694d=(_0x143d40,_0x61df24)=>{if(!_0x61df24['subType']||!_0x61df24['subType']['startsWith']('tablePaste'))return;const _0x432f26=_0x61df24['attributes']['tablePasteChainId'],_0xf4590b=_0x20affa['getSuggestions']()['filter'](_0x1352cc=>_0x1352cc['isInContent']&&_0x1352cc['attributes']&&_0x1352cc['attributes']['tablePasteChainId']==_0x432f26);_0xf4590b['length']&&_0x61df24['getAllAdjacentSuggestions']()['length']!=_0xf4590b['length']&&_0xf4590b['reduce']((_0x57e886,_0x5e85c1)=>(_0x57e886['next']=_0x5e85c1,_0x5e85c1['previous']=_0x57e886,_0x5e85c1));};function _0x171ea9(_0x35606a,_0x754624=!0x0){const {id:_0x44d16f}=_0x20affa['_splitMarkerName'](_0x35606a['markerName']),_0x324d32=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4fb868=_0x20affa['activeMarkers']['includes'](_0x35606a['markerName']);return _0x4fb868&&_0x324d32['push']('ck-suggestion-marker--active'),{'classes':_0x324d32,'attributes':{'data-suggestion':_0x44d16f},'priority':_0x4fb868&&_0x754624?0xbc2:0xbb8};}_0x20affa['on']('suggestionLoaded',_0x47694d,{'priority':'high'}),_0x20affa['on']('suggestionUnloaded',_0x47694d,{'priority':'high'}),_0x20c907['model']['document']['registerPostFixer'](()=>{let _0x317948=!0x1;const _0x40f676=Array['from'](_0x20c907['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d2fcf,data:_0x508071}of _0x40f676){const {group:_0x10acc1,type:_0x58936c,id:_0x2b26d4}=_0x20affa['_splitMarkerName'](_0x2d2fcf);if('suggestion'!=_0x10acc1||'deletion'!=_0x58936c||_0x508071['oldRange'])continue;if(!_0x20affa['hasSuggestion'](_0x2b26d4))continue;const _0x4c6225=_0x20affa['getSuggestion'](_0x2b26d4)['getRanges'](),_0xf0e02=_0x20c907['plugins']['get']('Users')['me'];for(const _0x52cf34 of _0x20affa['getSuggestions']()){if(!_0x52cf34['isInContent']||_0x52cf34['author']!=_0xf0e02)continue;if('formatBlock'!=_0x52cf34['type']||'tablePasteCell'!=_0x52cf34['subType'])continue;if(_0x52cf34['getRanges']()['every'](_0x4b6b72=>_0x4c6225['some'](_0x4a5ee9=>_0x4a5ee9['containsRange'](_0x4b6b72,!0x0)))){for(const _0x5ebc6c of _0x52cf34['getAllAdjacentSuggestions']())_0x5ebc6c['isInContent']&&(_0x5ebc6c['discard'](),_0x317948=!0x0);}}}return _0x317948;}),_0x20c907['model']['document']['registerPostFixer'](_0x2ef67a=>{const _0x3f8d87=_0x20c907['commands']['get']('redo');if(!_0x3f8d87||!_0x3f8d87['_createdBatches']['has'](_0x2ef67a['batch']))return!0x1;let _0x4e6761=!0x1;const _0xf772c7=_0x20c907['plugins']['get']('Users')['me'],_0x2e606f=_0x20c907['model']['document']['differ']['getChanges'](),_0x1e6a37=Array['from'](_0x20c907['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xeb5af2,data:_0x1ed1a3})=>{const {group:_0x2480f7,subType:_0x4122f4,authorId:_0x2aec6d}=_0x20affa['_splitMarkerName'](_0xeb5af2);return'suggestion'==_0x2480f7&&'tablePaste'==_0x4122f4&&_0x2aec6d==_0xf772c7['id']&&!_0x1ed1a3['oldRange'];});for(const _0x291669 of _0x2e606f){if('insert'!=_0x291669['type']||'tableCellSuggestion'!=_0x291669['name']||0x1!=_0x291669['length'])continue;const _0x57523e=_0x2ef67a['createRange'](_0x291669['position'],_0x291669['position']['getShiftedBy'](0x1));if(!_0x1e6a37['find'](({data:_0x123ebe})=>_0x123ebe['newRange']['isEqual'](_0x57523e))){for(const {name:_0x308dc2,data:_0x507cd8}of _0x1e6a37)if(_0x57523e['containsRange'](_0x507cd8['newRange'])){_0x2ef67a['updateMarker'](_0x308dc2,{'range':_0x57523e}),_0x4e6761=!0x0;break;}}}return _0x4e6761;}),_0x20c907['model']['document']['registerPostFixer'](_0x19da65=>{let _0x2fe86a=!0x1;const _0x4ac1a6=_0x20c907['plugins']['get']('Users')['me'],_0x2cbe72=_0x20affa['getSuggestions']()['filter'](_0x1c1e97=>_0x1c1e97['isInContent']&&_0x1c1e97['author']==_0x4ac1a6),_0x177bcd=new Set(),_0x46ccf1=new Set();for(const _0x3ae8a7 of _0x2cbe72)if('tablePaste'==_0x3ae8a7['subType'])for(const _0xb8f4be of _0x3ae8a7['getMarkers']()){const _0x5268c1=_0xb8f4be['getRange']()['getContainedElement']();if(_0x5268c1){if(_0x5268c1['is']('element','tableCellSuggestion')&&Pe(_0x5268c1)){_0x3ae8a7['removeMarker'](_0xb8f4be['name']),_0x177bcd['add'](_0x5268c1),_0x2fe86a=!0x0;const _0x238df7=_0x5268c1['nextSibling'],_0x1c2535=_0x5268c1['previousSibling'],_0x175829=_0x238df7&&_0x238df7['is']('element','tableCellSuggestion'),_0x381366=_0x1c2535&&_0x1c2535['is']('element','tableCellSuggestion');_0x175829&&!_0x177bcd['has'](_0x238df7)&&_0x46ccf1['add'](_0x238df7),_0x381366&&!_0x177bcd['has'](_0x1c2535)&&_0x46ccf1['add'](_0x1c2535);}else _0x5268c1['is']('element','paragraph')&&_0x5268c1['isEmpty']&&(_0x3ae8a7['removeMarker'](_0xb8f4be['name']),_0x2fe86a=!0x0);}}else{if('tablePasteCell'==_0x3ae8a7['subType']){if(!_0x3ae8a7['attributes']||!_0x3ae8a7['attributes']['tablePasteChainId'])continue;const _0x25570e=_0x3ae8a7['attributes']['markerAttributes'];if(_0x25570e&&Object['keys'](_0x25570e)['length'])continue;const _0x2c7c0e=_0x3ae8a7['attributes']['tablePasteChainId'];let _0x36c89b=!0x0,_0x195a07=!0x0;for(const _0x4277df of _0x2cbe72)if(_0x4277df['subType']&&_0x4277df['subType']['startsWith']('tablePaste')){if(!_0x4277df['attributes']['tablePasteChainId']){_0x195a07=!0x1;break;}if(_0x4277df['id']!=_0x3ae8a7['id']&&_0x4277df['attributes']['tablePasteChainId']==_0x2c7c0e){_0x36c89b=!0x1;break;}}_0x195a07&&_0x36c89b&&(_0x3ae8a7['removeMarkers'](),_0x2fe86a=!0x0);}}for(const _0x49745c of _0x177bcd)_0x19da65['remove'](_0x49745c);for(const _0x56036c of _0x46ccf1)_0x19da65['unwrap'](_0x56036c);return _0x2fe86a;}),_0x20c907['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x383cbe,_0xf6cedd)=>_0x171ea9(_0x383cbe),'converterPriority':'high'}),_0x20c907['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x441090,_0x80e6f7)=>_0x80e6f7['options']['showSuggestionHighlights']?_0x171ea9(_0x441090,!0x1):null,'converterPriority':'high'});const _0x5b9014=_0x20c907['editing']['view'];this['listenTo'](_0x5b9014['document'],'clipboardOutput',(_0x5180ac,_0x46b803)=>{const _0x6539ad=[];for(const _0x4444f8 of _0x5b9014['createRangeIn'](_0x46b803['content'])['getItems']())_0x4444f8['is']('element','suggestion-td')&&_0x6539ad['push'](_0x4444f8);_0x5b9014['change'](_0x3c364f=>{for(const _0x564217 of _0x6539ad)_0x3c364f['move'](_0x3c364f['createRangeIn'](_0x564217),_0x3c364f['createPositionBefore'](_0x564217)),_0x3c364f['remove'](_0x564217);});});}}function Pe(_0x8f9152){if(_0x8f9152['isEmpty'])return!0x0;const _0x4f9186=_0x8f9152['getChild'](0x0);return _0x4f9186['is']('element','paragraph')&&_0x4f9186['isEmpty'];}function he(_0x5e2581,_0x4ed3f3={},_0x2349dd){for(const {isAnchor:_0x446ba2,cellHeight:_0x4db097,cellWidth:_0x2d8e1a}of _0x2349dd['createTableWalker'](_0x5e2581,{'includeAllSlots':!0x0,..._0x4ed3f3}))if(!_0x446ba2||0x1!=_0x4db097||0x1!=_0x2d8e1a)return!0x1;return!0x0;}class vt extends _0x4679c4{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x237106=this['editor']['plugins']['get']('TrackChangesEditing');_0x237106['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x237106['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x237106['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x237106['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x237106['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x237106['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5d235b,_0xfe633a){const _0x4712ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x284177=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1f7758=_0xfe633a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x14a0db=_0x284177['getColumnGroupElement'](_0x1f7758);let _0x32314b=_0x14a0db?_0x284177['getTableColumnsWidths'](_0x14a0db):null,_0x151fb8=_0x1f7758['getAttribute']('tableWidth')||null;const _0x37417e=_0xfe633a['tableWidth']||_0x151fb8,_0x2191d5=_0xfe633a['columnWidths']||_0x32314b,_0x32b287=this['editor']['plugins']['get']('Users')['me'];for(const _0xf5fbf5 of _0x4712ab['getSuggestions']()){const _0x416948=_0xf5fbf5['getContainedElement']();if('resizeTable'===_0xf5fbf5['subType']&&_0x416948===_0x1f7758){_0xf5fbf5['author']!==_0x32b287&&_0xf5fbf5['discard']();const _0x4dc5b4=_0xf5fbf5['data']['commandParams'];_0x151fb8=_0x4dc5b4[0x0]['tableWidth'],_0x32314b=_0x4dc5b4[0x0]['columnWidths'];break;}}_0x5d235b({'table':_0x1f7758,'tableWidth':_0x37417e,'columnWidths':_0x2191d5}),_0x4712ab['markBlockFormat'](_0x1f7758,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x151fb8,'columnWidths':_0x32314b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x55ca53){if('formatBlock'!=_0x55ca53['type']&&'formatInline'!=_0x55ca53['type'])return;const {data:_0x5dfc66}=_0x55ca53;if(_0x5dfc66&&'resizeTable'===_0x5dfc66['formatGroupId']){const _0x1474a8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1474a8)};}}}class _t extends _0x4679c4{['afterInit'](){const _0xfade3a=this['editor'];_0xfade3a['plugins']['has']('Template')&&_0xfade3a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x4679c4{['afterInit'](){const _0x2635fc=this['editor'];if(!_0x2635fc['commands']['get']('insertTableOfContents'))return;_0x2635fc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x58ea08=_0x2635fc['plugins']['get']('TrackChangesEditing'),_0x4d767a=_0x2635fc['locale'];_0x58ea08['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4a021e=>o(_0x4d767a,'ELEMENT_TABLE_OF_CONTENTS',_0x4a021e));}}class Dt extends _0x4679c4{['afterInit'](){const _0x1e0017=this['editor'];if(!_0x1e0017['plugins']['has']('Title'))return;const _0x2a036a=_0x1e0017['plugins']['get']('TrackChangesEditing');_0x2a036a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1e0017['locale'],'ELEMENT_TITLE')),_0x1e0017['model']['document']['registerPostFixer'](_0x3ec095=>{let _0x19808a=!0x1;const _0x51c67e=Array['from'](_0x1e0017['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3cd2a9,data:_0x41b14f}of _0x51c67e){const {group:_0x15017f}=_0x2a036a['_splitMarkerName'](_0x3cd2a9);if('suggestion'!==_0x15017f||!_0x41b14f['newRange'])continue;const _0x3bdf65=_0x41b14f['newRange'],_0x1ce60d=_0x3bdf65['end']['nodeBefore'];if(!_0x1ce60d||!_0x1ce60d['is']('element','title-content'))continue;if(!_0x3bdf65['start']['isTouching'](_0x3bdf65['end']))continue;const _0x2556d9=_0x1e0017['model']['schema']['getNearestSelectionRange'](_0x3bdf65['end'],'forward');if(_0x2556d9&&_0x2556d9['isCollapsed']){const _0x276a99=_0x3ec095['createRange'](_0x3bdf65['start'],_0x2556d9['start']);_0x276a99['isEqual'](_0x3bdf65)||(_0x3ec095['updateMarker'](_0x3cd2a9,{'range':_0x276a99}),_0x19808a=!0x0);}_0x19808a||(_0x3ec095['removeMarker'](_0x3cd2a9),_0x19808a=!0x0);}return _0x19808a;});}}class Nt extends _0x4679c4{['afterInit'](){const _0x80656e=this['editor'],_0x5de1f2=_0x80656e['plugins']['get']('TrackChangesEditing');_0x80656e['plugins']['has']('UndoEditing')&&(_0x5de1f2['enableCommand']('undo'),_0x5de1f2['enableCommand']('redo'));}}class Mt extends _0x4679c4{static get['requires'](){return[jt];}['afterInit'](){const _0x4ba7b8=this['editor'];if(!_0x4ba7b8['plugins']['has']('TableCaptionEditing'))return;_0x4ba7b8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4679c4{['tableProperties'];['tableCellProperties'];constructor(_0x3a60c2){super(_0x3a60c2),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 _0x1623f6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4a3fa0 of this['tableProperties'])_0x1623f6['enableCommand'](_0x4a3fa0,(_0x598356,_0x5eff58)=>{const _0x59ccf3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4a3fa0,[_0x59ccf3],this['tableProperties'],'tableProperties',_0x598356,_0x5eff58);});_0x1623f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1623f6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1623f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x45c800,_0xd490b5)=>this['handleDiscardAction'](this['tableProperties'],_0x45c800,_0xd490b5)),_0x1623f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x43f7a5 of this['tableCellProperties'])_0x1623f6['enableCommand'](_0x43f7a5,(_0x34e9d9,_0x409540)=>{const _0x4524fe=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x43f7a5,_0x4524fe,this['tableCellProperties'],'tableCellProperties',_0x34e9d9,_0x409540);});_0x1623f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1623f6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1623f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x54f164,_0x214fb4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x54f164,_0x214fb4)),_0x1623f6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1623f6['descriptionFactory']['registerDescriptionCallback'](_0x4562bc=>this['handleSuggestionDescription'](_0x4562bc));}['_handlePropertyChange'](_0x26386d,_0x3786ee,_0x310fdd,_0x65f9db,_0x28b504,_0x2939cc){const _0x5030c3=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2939cc['batch'],()=>{for(const _0x13ca20 of _0x3786ee){if(this['_getSuggestion'](_0x13ca20,_0x65f9db))_0x28b504(_0x2939cc);else{const _0x37702b={};for(const _0x2f25d4 of _0x310fdd){const _0x23875e=_0x13ca20['getAttribute'](_0x2f25d4);void 0x0!==_0x23875e&&(_0x37702b[_0x2f25d4]=_0x23875e);}_0x28b504(_0x2939cc),_0x5030c3['markBlockFormat'](_0x13ca20,{'commandParams':[_0x37702b]},[],_0x65f9db);}}});}['handleDiscardAction'](_0x493f09,_0x157be8,_0x236306){const _0xee4a87=_0x157be8[0x0]['start']['nodeAfter'],_0x1f1989=_0x236306['commandParams'][0x0];this['editor']['model']['change'](_0x3645a8=>{for(const _0x1718c9 of _0x493f09)void 0x0!==_0x1f1989[_0x1718c9]?_0x3645a8['setAttribute'](_0x1718c9,_0x1f1989[_0x1718c9],_0xee4a87):_0x3645a8['removeAttribute'](_0x1718c9,_0xee4a87);});}['handleSuggestionDescription'](_0x32e8a8){if(_0x32e8a8['data'])switch(_0x32e8a8['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'](_0x47c2a0,_0xd0ecf1){const _0x12d610=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x10870b of _0x12d610['getSuggestions']({'skipNotAttached':!0x0})){const _0x36c65b=_0x10870b['getContainedElement']();if(_0x10870b['subType']===_0xd0ecf1&&_0x36c65b===_0x47c2a0)return _0x10870b;}return null;}}const m='$elementName';class p extends _0x4679c4{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5ed081,_0x540a4e,E,V,U,O,G,F,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,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0x4774ff){function _0x471228(_0x458bb6){return _0x458bb6['map'](_0x5ef8e1=>String['fromCharCode'](_0x5ef8e1))['join']('');}super(_0x4774ff),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x262650,_0x550614,_0x1f4df6,_0x1fe17f)=>{this['_model']['change'](()=>{for(const _0x2273f7 of[..._0x1fe17f,..._0x1f4df6])this['_model']['markers']['has'](_0x2273f7)&&_0x4774ff['editing']['reconvertMarker'](_0x2273f7);});}),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']=_0x4774ff['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(),_0x4774ff['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4774ff['config']['get']('trackChanges.trackFormatChanges'),_0x4774ff['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4774ff['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x4774ff,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x471228([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x471228([0x34,0x30,0x34,0x38,0x31,0x30,0x34,0x30]);}['init'](){const _0x574a79=this['editor'],_0x37f71f=(_0x2f3bfe,_0x169f9f)=>{if('attribute'!=_0x2f3bfe)return'ck-suggestion-marker-'+_0x2f3bfe;const _0x2512db=_0x169f9f['split']('|')[0x0];return this['_isBlockAttribute'](_0x2512db)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x574a79['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1b1833=>{const {id:_0x6379b3,type:_0xadaf96,subType:_0x56f7a2}=this['_splitMarkerName'](_0x1b1833['markerName']),_0x46e418=['ck-suggestion-marker',_0x37f71f(_0xadaf96,_0x56f7a2)];let _0x4dbbda=0xbb8;return this['activeMarkers']['includes'](_0x1b1833['markerName'])&&(_0x46e418['push']('ck-suggestion-marker--active'),_0x4dbbda=0xbc2),'deletion'==_0xadaf96&&(_0x4dbbda+=0x5),{'classes':_0x46e418,'attributes':{'data-suggestion':_0x6379b3},'priority':_0x4dbbda};}}),_0x574a79['conversion']['for']('dataDowncast')['add'](_0x314680=>{_0x314680['on']('addMarker:suggestion',(_0x31e322,_0x58259b,_0x29674a)=>{if(!_0x29674a['options']['showSuggestionHighlights'])return;const _0x2e8023=_0x58259b['item'];if(!_0x2e8023)return;const _0x436f96=_0x29674a['mapper']['toViewElement'](_0x2e8023);_0x574a79['model']['schema']['isObject'](_0x2e8023)&&_0x436f96&&!_0x436f96['getCustomProperty']('widget')&&_0x436f96['is']('containerElement')&&_0x3c0871(_0x436f96,_0x29674a['writer']);},{'priority':'high'});}),_0x574a79['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1bddbf,_0x452a74)=>{if(!_0x452a74['options']['showSuggestionHighlights'])return null;const {type:_0x431695,subType:_0x211831}=this['_splitMarkerName'](_0x1bddbf['markerName']);return{'classes':['ck-suggestion-marker',_0x37f71f(_0x431695,_0x211831)],'priority':0xbb8};}});const _0x2890a7=({showActiveMarkers:_0x522692=!0x0,isAttributeSuggestion:_0x207a63=!0x1}={})=>(_0x4a52c0,_0x50a26d,_0x44bd09)=>{if(!_0x50a26d['item'])return;const {id:_0x21f531}=this['_splitMarkerName'](_0x50a26d['markerName']);if(_0x207a63){const _0x7e3729=this['_suggestions']['get'](_0x21f531),_0x49fc31=this['_getAttributeKey'](_0x7e3729);if(!this['_isBlockAttribute'](_0x49fc31))return;}if(_0x50a26d['item']['is']('selection'))return void _0x44bd09['consumable']['consume'](_0x50a26d['item'],_0x4a52c0['name']);const _0x4daa8e=_0x44bd09['mapper']['toViewElement'](_0x50a26d['item']);if(_0x50a26d['item']['is']('element')&&_0x574a79['model']['schema']['isBlock'](_0x50a26d['item'])&&!_0x4daa8e['getCustomProperty']('addHighlight')){_0x44bd09['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4daa8e),_0x44bd09['writer']['setAttribute']('data-suggestion',_0x21f531,_0x4daa8e),_0x44bd09['mapper']['bindElementToMarker'](_0x4daa8e,_0x50a26d['markerName']),_0x522692&&(this['activeMarkers']['includes'](_0x50a26d['markerName'])?_0x44bd09['writer']['addClass']('ck-suggestion-marker--active',_0x4daa8e):_0x44bd09['writer']['removeClass']('ck-suggestion-marker--active',_0x4daa8e));for(const _0x53059a of _0x574a79['model']['createRangeIn'](_0x50a26d['item'])['getItems']())_0x44bd09['consumable']['consume'](_0x53059a,_0x4a52c0['name']);_0x44bd09['consumable']['consume'](_0x50a26d['item'],_0x4a52c0['name']);}};_0x574a79['conversion']['for']('dataDowncast')['add'](_0x2fc7f1=>{_0x2fc7f1['on']('addMarker:suggestion:formatBlock',(_0x156441,_0x1dd3e9,_0x3f1443)=>{_0x3f1443['options']['showSuggestionHighlights']&&_0x2890a7({'showActiveMarkers':!0x1})(_0x156441,_0x1dd3e9,_0x3f1443);},{'priority':'highest'});}),_0x574a79['conversion']['for']('dataDowncast')['add'](_0x562725=>{_0x562725['on']('addMarker:suggestion:attribute',(_0x149227,_0x32d6eb,_0x4b74d7)=>{_0x4b74d7['options']['showSuggestionHighlights']&&_0x2890a7({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x149227,_0x32d6eb,_0x4b74d7);},{'priority':'highest'});}),_0x574a79['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x12b77c,_0x12d4ec)=>_0x12d4ec['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x12b77c['substr'](0xb)}}),_0x574a79['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x59b29c,{writer:_0x7c3f0})=>{let _0x206264='suggestion:'+_0x59b29c['getAttribute']('suggestion-type')+':'+_0x59b29c['getAttribute']('id');return _0x59b29c['getAttribute']('marker-count')&&(_0x206264+=':'+_0x59b29c['getAttribute']('marker-count')),_0x7c3f0['createElement']('$marker',{'data-name':_0x206264});}}),_0x574a79['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x574a79['conversion']['for']('editingDowncast')['add'](_0x544974=>{_0x544974['on']('addMarker:suggestion:formatBlock',_0x2890a7(),{'priority':'high'});}),_0x574a79['conversion']['for']('editingDowncast')['add'](_0x383420=>{_0x383420['on']('addMarker:suggestion:attribute',_0x2890a7({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x574a79['conversion']['for']('editingDowncast')['add'](_0x8e80e8=>{_0x8e80e8['on']('removeMarker:suggestion:formatBlock',(_0x3a5e7a,_0x5c6438,_0x6504ff)=>{const _0x339b5c=_0x6504ff['mapper']['markerNameToElements'](_0x5c6438['markerName']);if(_0x339b5c){for(const _0x3434cc of _0x339b5c)_0x3434cc['getCustomProperty']('addHighlight')||(_0x6504ff['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3434cc),_0x6504ff['writer']['removeAttribute']('data-suggestion',_0x3434cc),_0x6504ff['mapper']['unbindElementFromMarkerName'](_0x3434cc,_0x5c6438['markerName']));}},{'priority':'high'});}),_0x574a79['conversion']['for']('editingDowncast')['add'](_0x2af5d2=>{_0x2af5d2['on']('removeMarker:suggestion:attribute',(_0x595349,_0x91c626,_0x253926)=>{const _0x36f5e6=_0x253926['mapper']['markerNameToElements'](_0x91c626['markerName']);if(!_0x36f5e6)return;const {id:_0x11881b}=this['_splitMarkerName'](_0x91c626['markerName']),_0x1a4944=this['_suggestions']['get'](_0x11881b),_0x19d017=this['_getAttributeKey'](_0x1a4944);if(this['_isBlockAttribute'](_0x19d017)){for(const _0x3c173f of _0x36f5e6)_0x3c173f['getCustomProperty']('addHighlight')||(_0x253926['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c173f),_0x253926['writer']['removeAttribute']('data-suggestion',_0x3c173f),_0x253926['mapper']['unbindElementFromMarkerName'](_0x3c173f,_0x91c626['markerName']));}},{'priority':'high'});}),_0x574a79['model']['document']['registerPostFixer'](_0x252167=>{let _0x544187=!0x1;const _0x201187=Array['from'](_0x574a79['model']['document']['differ']['getChangedMarkers']()),_0x88293f=new Set();for(const {name:_0x10a9d0,data:_0x4c9842}of _0x201187){const {group:_0x251107,type:_0x42943b,subType:_0x58a67d,id:_0x349eab}=this['_splitMarkerName'](_0x10a9d0);if('suggestion'!==_0x251107)continue;const _0x15ac8b=this['_suggestions']['get'](_0x349eab);if(null!=_0x4c9842['newRange']){'formatInline'==_0x42943b&&(_0x544187=_0x544187||Et(_0x4c9842['newRange'],_0x10a9d0,_0x252167,_0x574a79['model']['schema']));const _0x257132='attribute'==_0x42943b&&this['_isBlockAttribute'](_0x58a67d['split']('|')[0x0]);if(_0x4c9842['newRange']['isCollapsed']||'$graveyard'==_0x4c9842['newRange']['root']['rootName']||'formatBlock'==_0x42943b&&!Ut(_0x4c9842['newRange'])||_0x257132&&!Ut(_0x4c9842['newRange'])||'deletion'==_0x42943b&&!(!Tt(_0x45f7ca=_0x4c9842['newRange'])&&!function(_0xc80686){return _0xc80686['start']['parent']==_0xc80686['end']['nodeBefore']&&_0xc80686['start']['isAtEnd'];}(_0x45f7ca)))_0x252167['removeMarker'](_0x10a9d0),_0x544187=!0x0;else{if(!_0x15ac8b||!_0x15ac8b['isInContent'])continue;_0x88293f['add'](_0x15ac8b);}}}var _0x45f7ca;return _0x88293f['size']>0x0&&(_0x544187=!!this['_joinWithAdjacentSuggestions'](_0x88293f)||_0x544187),_0x544187;}),_0x574a79['model']['document']['registerPostFixer'](_0x4ca331=>{let _0x76479d=!0x1;for(const _0x3ab514 of _0x574a79['model']['document']['differ']['getChanges']())if('insert'==_0x3ab514['type'])for(const _0x36e12e of this['_suggestions']['values']()){if(_0x36e12e['isMultiRange']||!_0x36e12e['isInContent'])continue;const _0x2c1263='formatBlock'==_0x36e12e['type'],_0x4adb92=this['_getAttributeKey'](_0x36e12e),_0x5dbd0e=_0x4adb92&&this['_isBlockAttribute'](_0x4adb92);if(!_0x2c1263&&!_0x5dbd0e)continue;const _0x2e1c60=_0x36e12e['getFirstRange']();if(_0x2e1c60['start']['parent']!=_0x2e1c60['end']['parent']&&!_0x2e1c60['end']['isAtEnd']){const _0x3e9611=_0x574a79['model']['createPositionAt'](_0x2e1c60['start']['nodeAfter'],'end'),_0x989b73=_0x574a79['model']['createRange'](_0x2e1c60['start'],_0x3e9611);_0x4ca331['updateMarker'](_0x36e12e['getFirstMarker'](),{'range':_0x989b73}),_0x76479d=!0x0;}}return _0x76479d;}),_0x574a79['model']['document']['registerPostFixer'](_0x5e30d1=>this['_processAttributeChanges'](_0x5e30d1)),_0x574a79['model']['document']['registerPostFixer'](_0x349ec3=>!_0x349ec3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x349ec3)),_0x574a79['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x574a79['model']['document']['on']('change:data',(_0x443ce2,_0x4ce8cc)=>{if(!_0x4ce8cc['isLocal']||_0x4ce8cc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5eb53f=_0x574a79['model']['document']['differ']['getChanges']();if(0x0==_0x5eb53f['length'])return;const _0x5cfed7=[],_0x42e6b2=_0x5eb53f['filter'](_0x592415=>'attribute'==_0x592415['type']),_0x100645=_0x5eb53f['filter'](_0x422bdb=>'insert'==_0x422bdb['type']&&'$text'!=_0x422bdb['name']),_0x114bfe=_0x5eb53f['filter'](_0x5eaf4e=>'remove'==_0x5eaf4e['type']&&'$text'!=_0x5eaf4e['name']);for(const _0x176327 of _0x42e6b2)this['_isRegisteredAttribute'](_0x176327['attributeKey'])&&_0x5cfed7['push']({'key':_0x176327['attributeKey'],'newValue':_0x176327['attributeNewValue'],'oldValue':_0x176327['attributeOldValue'],'range':Ot(_0x176327['range'],_0x574a79['model'])});for(const _0x2eba65 of _0x100645){const _0x103752=_0x114bfe['find'](_0x281688=>_0x281688['_element']===_0x2eba65['_element']);if(_0x103752){const _0x5d6338=Ft(_0x2eba65['position']['nodeAfter'],_0x574a79['model']);_0x103752['name']!==_0x2eba65['name']&&_0x5cfed7['push']({'key':m,'newValue':_0x2eba65['name'],'oldValue':_0x103752['name'],'range':_0x5d6338});for(const [_0x305b60,_0x3398cd]of _0x103752['attributes']){if(!this['_isRegisteredAttribute'](_0x305b60))continue;const _0x5460c6=_0x2eba65['attributes']['get'](_0x305b60);_0x3398cd!==_0x5460c6&&_0x5cfed7['push']({'key':_0x305b60,'newValue':_0x5460c6,'oldValue':_0x3398cd,'range':_0x5d6338});}for(const [_0x589fd1,_0x4af6c2]of _0x2eba65['attributes'])this['_isRegisteredAttribute'](_0x589fd1)&&(_0x103752['attributes']['has'](_0x589fd1)||_0x5cfed7['push']({'key':_0x589fd1,'newValue':_0x4af6c2,'oldValue':null,'range':_0x5d6338}));}}0x0!=_0x5cfed7['length']&&_0x574a79['model']['enqueueChange'](_0x4ce8cc,_0x296a59=>{const _0x204063=_0x4fd794();for(const {range:_0x30e4ee,key:_0x3fe7a8,oldValue:_0x5947dd,newValue:_0x14b99a}of _0x5cfed7)this['markAttributeChange'](_0x30e4ee,_0x3fe7a8,_0x5947dd,_0x14b99a,{'groupId':_0x204063});this['_reduceExistingSuggestions'](_0x296a59,_0x5cfed7);});},{'priority':'lowest'}),_0x574a79['model']['markers']['on']('update:suggestion',(_0x377c9b,_0x3ef58b,_0x5a35c7)=>{if(null==_0x5a35c7){const {id:_0x3e5ea9}=this['_splitMarkerName'](_0x3ef58b['name']),_0x3b8988=this['_suggestions']['get'](_0x3e5ea9);_0x3b8988&&_0x3b8988['addMarkerName'](_0x3ef58b['name']);}}),_0x574a79['model']['document']['on']('change:data',()=>{const _0x39828a=Array['from'](_0x574a79['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1fe85b=>'suggestion'===this['_splitMarkerName'](_0x1fe85b['name'])['group']);if(0x0===_0x39828a['length'])return;_0x39828a['sort']((_0x19d841,_0x35e42e)=>{const _0x139ad8=_0x19d841['data']['oldRange'],_0x38e505=_0x35e42e['data']['oldRange'];return null===_0x139ad8&&null===_0x38e505?0x0:null===_0x139ad8&&null!==_0x38e505?-0x1:null!==_0x139ad8&&null===_0x38e505?0x1:_0x139ad8['start']['isBefore'](_0x38e505['start'])?-0x1:0x1;});const _0x1997db=new Set(),_0xfae09=new Set();for(const {name:_0xb5bff7,data:_0x538b43}of _0x39828a){const {id:_0x21feb0}=this['_splitMarkerName'](_0xb5bff7);if(null===_0x538b43['oldRange']){const _0x109e46=this['_handleNewSuggestionMarker'](_0xb5bff7);_0xfae09['add'](_0x109e46);}else{const _0x4400d6=this['_suggestions']['get'](_0x21feb0);null!==_0x538b43['newRange']||_0x4400d6['isInContent']?(_0x1997db['add'](_0x4400d6['head']),_0xfae09['add'](_0x4400d6)):this['_removeSuggestion'](_0x4400d6);}}_0xfae09['size']>0x0&&this['_refreshSuggestionsChain'](_0xfae09);for(const _0x562da3 of _0x1997db)this['fire']('suggestionChanged',_0x562da3);}),_0x574a79['model']['on']('applyOperation',(_0x55e93c,_0x386f96)=>{const _0x286b90=_0x386f96[0x0];if(!this['_suggestions']['size'])return;if(!_0x286b90['isDocumentOperation'])return;if(_0x286b90['batch']['isUndo']||!_0x286b90['batch']['isLocal'])return;let _0x1af5fa,_0x537ca6;switch(_0x286b90['type']){case'insert':_0x1af5fa=_0x574a79['model']['createPositionAt'](_0x286b90['position']),_0x537ca6=_0x1af5fa['getShiftedBy'](_0x286b90['howMany']);break;case'split':_0x1af5fa=_0x574a79['model']['createPositionAt'](_0x286b90['splitPosition']),_0x537ca6=_0x574a79['model']['createPositionAt'](_0x286b90['moveTargetPosition']);break;case'move':_0x1af5fa=_0x574a79['model']['createPositionAt'](_0x286b90['targetPosition']),_0x537ca6=_0x1af5fa['getShiftedBy'](_0x286b90['howMany']);break;default:return;}const _0x3ae663=_0x574a79['model']['createRange'](_0x1af5fa,_0x537ca6);_0x574a79['model']['change'](()=>{for(const {suggestion:_0x25dfce,meta:_0x5174d9}of this['_findSuggestions'](_0x3ae663)){if(_0x25dfce['isMultiRange'])continue;if('formatInline'==_0x25dfce['type'])continue;const _0x5b1e9b=this['_getAttributeKey'](_0x25dfce);if(_0x5b1e9b&&this['_isBlockAttribute'](_0x5b1e9b)&&'split'!=_0x286b90['type'])continue;const _0x2fe7c=_0x25dfce['data']&&_0x25dfce['data']['multipleBlocks'];('formatBlock'!=_0x25dfce['type']||'split'==_0x286b90['type']&&!_0x2fe7c)&&(_0x5174d9['containsRangeInObject']||'insertion'==_0x25dfce['type']&&_0x5174d9['isOwn']||_0x25dfce['getFirstRange']()['containsRange'](_0x3ae663)&&this['_breakSuggestionMarker'](_0x25dfce,_0x1af5fa,_0x537ca6));}});},{'priority':'lowest'}),_0x574a79['model']['on']('deleteContent',(_0x288671,_0x52b055)=>{const _0x2af248=_0x52b055[0x0],_0x271287=_0x52b055[0x1];if(_0x271287&&_0x271287['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2af248['isCollapsed'])return;const _0x1384db=_0x574a79['model']['schema'],{start:_0x2ef04f,end:_0x23d0f3}=_0x2af248['getFirstRange'](),_0x2294f5=_0x2ef04f['nodeAfter']&&_0x1384db['isLimit'](_0x2ef04f['nodeAfter'])?null:_0x1384db['getNearestSelectionRange'](_0x2ef04f,'forward'),_0x2488b6=_0x23d0f3['nodeBefore']&&_0x1384db['isLimit'](_0x23d0f3['nodeBefore'])?null:_0x1384db['getNearestSelectionRange'](_0x23d0f3,'backward'),_0x28842e=_0x574a79['model']['createRange'](_0x2294f5?_0x2294f5['start']:_0x2ef04f,_0x2488b6?_0x2488b6['end']:_0x23d0f3);_0x574a79['model']['change'](_0x2e0875=>{this['markDeletion'](_0x28842e);const _0x23216c=_0x574a79['model']['schema']['getNearestSelectionRange'](_0x28842e['start']);_0x2af248['is']('documentSelection')?_0x2e0875['setSelection'](_0x23216c):_0x2af248['setTo'](_0x23216c);}),_0x288671['stop']();},{'priority':_0x5cd3d6['normal']+0xa}),_0x574a79['model']['on']('insertContent',(_0x57efce,_0xe3e6de)=>{const _0x8839ac=_0xe3e6de[_0xe3e6de['length']-0x1];_0x8839ac&&_0x8839ac['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x574a79['model']['change'](()=>{let _0x106127=_0x574a79['model']['insertContent'](_0xe3e6de[0x0],_0xe3e6de[0x1],_0xe3e6de[0x2],{'forceDefaultExecution':!0x0});if(!_0x106127)return;_0x57efce['return']=_0x106127['clone']();const _0x5d9eab=_0x106127['end']['nodeBefore'],_0x3c63c8=_0x574a79['model']['schema'];_0x5d9eab&&_0x3c63c8['isBlock'](_0x5d9eab)&&!_0x3c63c8['isObject'](_0x5d9eab)&&(_0x106127=_0x574a79['model']['createRange'](_0x106127['start'],_0x574a79['model']['createPositionAt'](_0x5d9eab,'end'))),this['markInsertion'](_0x106127);}),_0x57efce['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x288445=new $(_0x574a79,this['_suggestions']);_0x574a79['commands']['add']('acceptSuggestion',_0x288445),this['enableCommand']('acceptSuggestion');const _0x1cd8d4=new B(_0x574a79,this['_suggestions']);_0x574a79['commands']['add']('discardSuggestion',_0x1cd8d4),this['enableCommand']('discardSuggestion'),_0x574a79['commands']['add']('acceptAllSuggestions',new x(_0x574a79,_0x288445,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x574a79['commands']['add']('discardAllSuggestions',new x(_0x574a79,_0x1cd8d4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x574a79['commands']['add']('acceptSelectedSuggestions',new R(_0x574a79,_0x288445,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x574a79['commands']['add']('discardSelectedSuggestions',new R(_0x574a79,_0x1cd8d4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x546262=_0x574a79['plugins']['get']('CommentsRepository');this['listenTo'](_0x546262,'addComment',(_0x23ec8a,{threadId:_0x1dc070})=>{const _0x3e8cf9=this['_suggestions']['get'](_0x1dc070);_0x3e8cf9&&_0x3e8cf9['commentThread']&&0x1===_0x3e8cf9['commentThread']['length']&&this['_updateSuggestionData'](_0x1dc070,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x546262,'removeComment',(_0x5a9a4c,{threadId:_0x1f9d13})=>{const _0x1dc233=this['_suggestions']['get'](_0x1f9d13);_0x1dc233&&_0x1dc233['commentThread']&&!_0x1dc233['commentThread']['length']&&this['_updateSuggestionData'](_0x1f9d13,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x52c21b){if(this['_adapter'])throw new _0x306236('track-changes-adapter-already-set',this);this['_adapter']=_0x52c21b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x591e94=!0x1,toJSON:_0x2a565b=!0x1}={}){const _0x300596=[];for(const _0x3d4d98 of this['_suggestions']['values']())_0x591e94&&!_0x3d4d98['isInContent']||_0x300596['push'](_0x3d4d98);return _0x2a565b?_0x300596['map'](_0xe0898=>_0xe0898['toJSON']()):_0x300596;}['getSuggestion'](_0x218266){const _0x17cecc=this['_suggestions']['get'](_0x218266);if(!_0x17cecc)throw new _0x306236('track-changes-suggestion-not-found',this);return _0x17cecc;}['hasSuggestion'](_0x4e6df2){return this['_suggestions']['has'](_0x4e6df2);}['addSuggestionData'](_0x2d623f){const {authorId:_0x57364e,id:_0x37e00c,attributes:_0x2cc4b5}=_0x2d623f,[_0x3f326d,_0x27ad30]=_0x2d623f['type']['split'](':'),_0x3f2aca=this['_suggestions']['get'](_0x37e00c)||this['_createSuggestion'](_0x3f326d,_0x27ad30,_0x37e00c,_0x57364e,_0x2cc4b5);if(this['_addThreadToSuggestion'](_0x3f2aca),this['_checkSuggestionCorrectness'](_0x3f2aca,_0x3f326d,_0x27ad30||null,_0x57364e),_0x3f2aca['createdAt']=_0x2d623f['createdAt'],_0x3f2aca['_isDataLoaded']=!0x0,_0x2cc4b5&&_0x2cc4b5['@external']){const _0x12557a=_0x2cc4b5['@external'],_0x15c5e5=this['_getExternalAuthor'](_0x12557a['authorName']);_0x3f2aca['authoredAt']=_0x12557a['createdAt'],_0x3f2aca['author']=_0x15c5e5,_0x3f2aca['isExternal']=!0x0;}else _0x3f2aca['authoredAt']=_0x2d623f['createdAt'];switch(_0x2d623f['data']&&(_0x3f2aca['data']=_0x2d623f['data']),_0x2d623f['attributes']&&(_0x3f2aca['attributes']=_0x2d623f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3f2aca['_saved']=!0x0),this['_suggestionState']['get'](_0x3f2aca)){case'notReady':this['_suggestionState']['set'](_0x3f2aca,'dataReady');break;case'markerReady':_0x3f2aca['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3f2aca])),this['_refreshSuggestionsChain'](new Set([_0x3f2aca])),this['_suggestionState']['set'](_0x3f2aca,'ready'),this['fire']('suggestionLoaded',_0x3f2aca)):this['_suggestionState']['set'](_0x3f2aca,'removed');}return _0x3f2aca;}['acceptSuggestion'](_0x5b8a76){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x54c400 of _0x5b8a76['getAllAdjacentSuggestions']())_0x54c400['accept']();});});}['discardSuggestion'](_0x29a57c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5205e8 of _0x29a57c['getAllAdjacentSuggestions']())_0x5205e8['discard']();});});}['enableCommand'](_0x2fc57b,_0x27f525){const _0x546d14=this['editor']['commands']['get'](_0x2fc57b);if(!_0x546d14)throw new _0x306236('track-changes-command-not-found',this,{'commandName':_0x2fc57b});if(this['_enabledCommands']['has'](_0x546d14))throw new _0x306236('track-changes-enable-command-twice',this,{'commandName':_0x2fc57b});this['_enabledCommands']['add'](_0x546d14),_0x27f525&&_0x546d14['on']('execute',(_0x468c81,_0xc73e80)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xc73e80['length']>0x0&&_0xc73e80[_0xc73e80['length']-0x1]&&_0xc73e80[_0xc73e80['length']-0x1]['forceDefaultExecution']?_0xc73e80['pop']():(_0x468c81['return']=_0x27f525((..._0x530f6c)=>_0x546d14['execute'](..._0x530f6c,{'forceDefaultExecution':!0x0}),..._0xc73e80),_0x468c81['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2485d0){let _0x38391a,_0x263a2f;const _0x2ab007=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x38391a=_0x2485d0();}catch(_0x1d21a1){_0x263a2f=_0x1d21a1;}return _0x2ab007||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x263a2f&&_0x306236['rethrowUnexpectedError'](_0x263a2f,this),_0x38391a;}['markInsertion'](_0x5d704e,_0x39c0b0=null,_0x2bbb29={}){if(_0x5d704e['isCollapsed'])return null;const _0x239553=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x28d827,meta:_0x5a64b4}of this['_findSuggestions'](_0x5d704e,'insertion'))if(_0x5a64b4['isOwn']){if(!_0x5a64b4['isNextTo']){if(_0x5a64b4['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x28d827,_0x2bbb29))continue;return _0x28d827;}if(Lt(_0x28d827,_0x2bbb29))return _0x28d827;this['_breakSuggestionMarker'](_0x28d827,_0x5d704e['start'],_0x5d704e['end']);break;}if(_0x39c0b0==_0x28d827['subType']&&Lt(_0x28d827,_0x2bbb29)){const _0x18f3bd=_0x28d827['getFirstRange']();return _0x18f3bd['start']['isEqual'](_0x5d704e['end'])?this['_setSuggestionRange'](_0x28d827,this['_model']['createRange'](_0x5d704e['start'],_0x18f3bd['end'])):this['_setSuggestionRange'](_0x28d827,this['_model']['createRange'](_0x18f3bd['start'],_0x5d704e['end'])),_0x28d827;}}const _0x3ab271=_0x4fd794(),_0x1de6cc=_0x239553['id'],_0x152f5b=_0x39c0b0?'insertion:'+_0x39c0b0:'insertion',_0x45eca3=this['_setSuggestionData']({'id':_0x3ab271,'type':_0x152f5b,'createdAt':new Date(),'authorId':_0x1de6cc,'attributes':_0x2bbb29});return this['_addSuggestionMarker'](_0x152f5b,_0x3ab271,_0x1de6cc,_0x5d704e),_0x45eca3;}['markMultiRangeInsertion'](_0x347998,_0x236907='multi',_0x2558f4={}){const _0x27c514=this['editor']['plugins']['get']('Users')['me'],_0x538cc8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x236907,'join');for(const _0x50c10c of this['getSuggestions']())if(_0x50c10c['author']['id']==_0x27c514['id']&&'insertion'==_0x50c10c['type']&&_0x50c10c['subType']==_0x236907&&Lt(_0x50c10c,_0x2558f4)&&(_0x538cc8(_0x50c10c['getRanges'](),_0x347998)||_0x538cc8(_0x347998,_0x50c10c['getRanges']()))){for(const _0x53255d of _0x347998)_0x50c10c['addRange'](_0x53255d);return _0x50c10c;}for(const {suggestion:_0x43a9c8,meta:_0x268645}of this['_findSuggestions'](_0x347998,'insertion')){if(!_0x268645['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x268645['containsRangeInObject'])continue;if(!Lt(_0x43a9c8,_0x2558f4))continue;let _0x123d06=!0x0;for(const _0x40a0b2 of _0x43a9c8['getRanges']())for(const _0x219be3 of _0x347998)if(!_0x40a0b2['containsRange'](_0x219be3)){_0x123d06=!0x1;break;}if(_0x123d06)return _0x43a9c8;}const _0x16be16=_0x4fd794(),_0x2300e2=_0x27c514['id'],_0x35f0e5='insertion:'+_0x236907,_0x585de1=this['_setSuggestionData']({'id':_0x16be16,'type':_0x35f0e5,'createdAt':new Date(),'authorId':_0x2300e2,'attributes':_0x2558f4});for(const _0x54b3d9 of _0x347998)this['_addSuggestionMarker'](_0x35f0e5,_0x16be16,_0x2300e2,_0x54b3d9,u['getMultiRangeId']());return _0x585de1;}['markInlineFormat'](_0x31d2f7,_0x4c1d45,_0x4d5cba=null,_0x2a2870={}){if(_0x4d5cba=_0x4d5cba||Vt(_0x4c1d45),_0x31d2f7['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x169b1f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d5cba,'accept');return this['forceDefaultExecution'](()=>_0x169b1f([_0x31d2f7],_0x4c1d45,_0x2a2870)),null;}const _0x5a8aa9=this['editor']['plugins']['get']('Users')['me'],_0xca10a7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4071ec,meta:_0x21258e}of this['_findSuggestions'](_0x31d2f7,'insertion'))_0x21258e['isOwn']&&!_0x21258e['isInsideObject']&&_0xca10a7['push'](..._0x4071ec['getRanges']());}const _0x46240a=function(_0x59375f,_0x21b1e5){const _0x1113ec=[];for(const _0x19baa9 of _0x21b1e5){const _0x3c7464=_0x59375f['getIntersection'](_0x19baa9);_0x3c7464&&_0x1113ec['push'](_0x3c7464);}return _0x1113ec;}(_0x31d2f7,_0xca10a7),_0x168137=function(_0x4670f6,_0xe3969){const _0x2547eb=[_0x4670f6];for(const _0x487967 of _0xe3969){let _0x133591=0x0;for(;_0x133591<_0x2547eb['length'];){const _0x22d8bc=_0x2547eb[_0x133591]['getDifference'](_0x487967);_0x2547eb['splice'](_0x133591,0x1,..._0x22d8bc),_0x133591+=_0x22d8bc['length'];}}return _0x2547eb;}(_0x31d2f7,_0xca10a7);_0x46240a['length']&&this['_model']['change'](()=>{for(const _0x2049b8 of _0x46240a){const _0x4bd5b6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d5cba,'accept');this['forceDefaultExecution'](()=>_0x4bd5b6([_0x2049b8],_0x4c1d45,_0x2a2870));}});for(const _0x205575 of _0x168137){let _0x88f54=null,_0xad541b=_0x205575['start'],_0x3993b1=_0x205575['end'];for(const {suggestion:_0x29afc6,meta:_0x23d0ae}of this['_findSuggestions'](_0x205575,'formatInline')){if(!_0x23d0ae['isOwn'])continue;if(_0x29afc6['subType']!=_0x4d5cba)continue;if(!Lt(_0x29afc6,_0x2a2870))continue;const _0x359b5c=_0x29afc6['getFirstRange']();if(_0x359b5c['containsRange'](_0x205575,!0x0))return null;_0xad541b=_0xad541b['isBefore'](_0x359b5c['start'])?_0xad541b:_0x359b5c['start'],_0x3993b1=_0x3993b1['isAfter'](_0x359b5c['end'])?_0x3993b1:_0x359b5c['end'],_0x88f54?_0x359b5c['start']['isBefore'](_0x88f54['getFirstRange']()['start'])?(_0x88f54['removeMarkers'](),_0x88f54=_0x29afc6):_0x29afc6['removeMarkers']():_0x88f54=_0x29afc6;}const _0xbfb48a=this['_model']['createRange'](_0xad541b,_0x3993b1);if(_0x88f54)this['_setSuggestionRange'](_0x88f54,_0xbfb48a);else{const _0x3dd9e0=_0x4fd794(),_0x5577e9=_0x5a8aa9['id'];this['_setSuggestionData']({'id':_0x3dd9e0,'type':'formatInline:'+_0x4d5cba,'data':_0x4c1d45,'createdAt':new Date(),'authorId':_0x5577e9,'attributes':_0x2a2870}),this['_addSuggestionMarker']('formatInline:'+_0x4d5cba,_0x3dd9e0,_0x5577e9,_0xbfb48a);}}return null;}['markBlockFormat'](_0x172d48,_0x5dc6fe,_0x5346f7=[],_0x5427da=null,_0xb56cc9={}){_0x5dc6fe['formatGroupId']||(_0x5dc6fe['formatGroupId']=_0x5dc6fe['commandName']),_0x5dc6fe['multipleBlocks']=_0x172d48['is']('range'),_0x5427da=_0x5427da||Vt(_0x5dc6fe);const _0xab75bf=_0x5346f7['map'](_0x434a47=>Ft(_0x434a47,this['_model'])),_0x1aca72=_0x172d48['is']('range')?_0x172d48:Ft(_0x172d48,this['_model']);if('never'===this['_trackFormatChanges']){const _0x520fb1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5427da,'accept');return this['forceDefaultExecution'](()=>_0x520fb1([_0x1aca72],_0x5dc6fe,_0xb56cc9)),null;}_0xab75bf['push'](_0x1aca72);let _0x452315=!0x0;for(const _0x2e0858 of _0xab75bf)if(!this['_rangeIsInLocalUserInsertion'](_0x2e0858)){_0x452315=!0x1;break;}if(_0x452315&&'always'!==this['_trackFormatChanges']){const _0x3a3d64=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5427da,'accept');return this['forceDefaultExecution'](()=>_0x3a3d64([_0x1aca72],_0x5dc6fe,_0xb56cc9)),null;}let _0x1102f1=null,_0x371c02=_0x1aca72['start'],_0x56ed38=_0x1aca72['end'];for(const {suggestion:_0x5bbd3b,meta:_0xc06c30}of this['_findSuggestions'](_0x1aca72,'formatBlock')){if(!_0xc06c30['isOwn'])continue;if(_0xc06c30['isNextTo']||_0xc06c30['containsRangeInObject']||_0xc06c30['isInsideObject'])continue;if(_0x5bbd3b['data']['formatGroupId']!=_0x5dc6fe['formatGroupId'])continue;if(!Lt(_0x5bbd3b,_0xb56cc9))continue;const _0x49893b=_0x5bbd3b['getFirstRange']();if(_0x5bbd3b['subType']==_0x5427da){if(_0x49893b['containsRange'](_0x1aca72,!0x0))return null;_0x371c02=_0x371c02['isBefore'](_0x49893b['start'])?_0x371c02:_0x49893b['start'],_0x56ed38=_0x56ed38['isAfter'](_0x49893b['end'])?_0x56ed38:_0x49893b['end'],_0x1102f1?_0x49893b['start']['isBefore'](_0x1102f1['getFirstRange']()['start'])?(_0x1102f1['removeMarkers'](),_0x1102f1=_0x5bbd3b):_0x5bbd3b['removeMarkers']():_0x1102f1=_0x5bbd3b;}else{const _0x1ebf77=_0x1aca72['getIntersection'](_0x49893b);this['_cutOutSuggestionMarker'](_0x5bbd3b,_0x1ebf77);}}const _0x3e146e=this['editor']['plugins']['get']('Users')['me'],_0x3311cd=_0x4fd794(),_0x21eeaf=_0x3e146e['id'];if(_0x1102f1)return this['_setSuggestionRange'](_0x1102f1,this['_model']['createRange'](_0x371c02,_0x56ed38)),_0x1102f1;{const _0x5d6549=this['_setSuggestionData']({'id':_0x3311cd,'type':'formatBlock:'+_0x5427da,'data':_0x5dc6fe,'createdAt':new Date(),'authorId':_0x21eeaf,'attributes':_0xb56cc9});return this['_addSuggestionMarker']('formatBlock:'+_0x5427da,_0x3311cd,_0x21eeaf,this['_model']['createRange'](_0x371c02,_0x56ed38)),_0x5d6549;}}['markMultiRangeBlockFormat'](_0x3cc600,_0x355273,_0x18a658=[],_0x49355c=null,_0x34d8f5={}){_0x355273['formatGroupId']||(_0x355273['formatGroupId']=_0x355273['commandName']);const _0x2f907a=_0x3cc600[0x0];_0x355273['multipleBlocks']=_0x2f907a['is']('range'),_0x49355c=_0x49355c||Vt(_0x355273);const _0x5b5a7=_0x18a658['map'](_0x488fda=>Ft(_0x488fda,this['_model'])),_0x5f12e0=_0x2f907a['is']('range')?_0x3cc600:_0x3cc600['map'](_0x1731e5=>Ft(_0x1731e5,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1156b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49355c,'accept');return this['forceDefaultExecution'](()=>_0x1156b8(_0x5f12e0,_0x355273,_0x34d8f5)),null;}_0x5b5a7['push'](..._0x5f12e0);let _0x5c2777=!0x0;for(const _0x1ccce4 of _0x5b5a7)if(!this['_rangeIsInLocalUserInsertion'](_0x1ccce4)){_0x5c2777=!0x1;break;}if(_0x5c2777&&'always'!==this['_trackFormatChanges']){const _0x124ed5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49355c,'accept');return this['forceDefaultExecution'](()=>_0x124ed5(_0x5f12e0,_0x355273,_0x34d8f5)),null;}const _0x5bc1b8=this['editor']['plugins']['get']('Users')['me'];for(const _0x52e442 of this['getSuggestions']()){if(_0x52e442['author']['id']!=_0x5bc1b8['id'])continue;if('formatBlock'!=_0x52e442['type']||_0x52e442['data']['formatGroupId']!=_0x355273['formatGroupId'])continue;if(!Lt(_0x52e442,_0x34d8f5))continue;const _0x176d3e=_0x52e442['subType']==_0x49355c;for(let _0x27d0f8=0x0;_0x27d0f8<_0x5f12e0['length'];_0x27d0f8++){const _0x359097=_0x5f12e0[_0x27d0f8];for(const _0x2c1b2d of _0x52e442['getMarkers']()){const _0x4611df=_0x2c1b2d['getRange']();if(_0x359097['isEqual'](_0x4611df)){_0x176d3e?(_0x5f12e0['splice'](_0x27d0f8,0x1),_0x27d0f8--):_0x52e442['removeMarker'](_0x2c1b2d['name']);break;}}}}if(0x0==_0x5f12e0['length'])return null;const _0x15cd86=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49355c,'join');for(const _0x1ebc2d of this['getSuggestions']())if(_0x1ebc2d['author']['id']==_0x5bc1b8['id']&&'formatBlock'==_0x1ebc2d['type']&&_0x1ebc2d['data']['formatGroupId']==_0x355273['formatGroupId']&&_0x1ebc2d['subType']==_0x49355c&&Lt(_0x1ebc2d,_0x34d8f5)&&(_0x15cd86(_0x1ebc2d['getRanges'](),_0x5f12e0)||_0x15cd86(_0x5f12e0,_0x1ebc2d['getRanges']()))){for(const _0x47cd2d of _0x5f12e0)_0x1ebc2d['addRange'](_0x47cd2d);return _0x1ebc2d;}const _0x388dce=_0x4fd794(),_0x144e1f=_0x5bc1b8['id'],_0x5021d3='formatBlock:'+_0x49355c,_0x22b898=this['_setSuggestionData']({'id':_0x388dce,'type':_0x5021d3,'data':_0x355273,'createdAt':new Date(),'authorId':_0x144e1f,'attributes':_0x34d8f5});for(const _0x3c4161 of _0x5f12e0)this['_addSuggestionMarker'](_0x5021d3,_0x388dce,_0x144e1f,_0x3c4161,u['getMultiRangeId']());return _0x22b898;}['markDeletion'](_0x4f4771,_0x3077e1=null,_0x38fd78={}){if(_0x4f4771['isCollapsed'])return null;const _0xd44500=this['editor']['plugins']['get']('Users')['me'],_0x425916=new _0x528595(_0x4f4771['start'],_0x4f4771['end']);for(const {suggestion:_0x59a91c,meta:_0x107dca}of this['_findSuggestions'](_0x425916,'insertion'))if(_0x107dca['isOwn']&&!_0x107dca['isNextTo']){if(_0x59a91c['isMultiRange']){const _0x1a74a2=_0x59a91c['getRanges']()['filter'](_0x501a13=>'$graveyard'!=_0x501a13['root']['rootName']);_0x1a74a2['every'](_0x16fb82=>_0x425916['containsRange'](_0x16fb82,!0x0))&&_0x59a91c['discard']();if(_0x1a74a2['some'](_0x5db9cb=>_0x5db9cb['containsRange'](_0x425916,!0x0))){const _0x5bc74c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3077e1,'accept');return this['forceDefaultExecution'](()=>_0x5bc74c([_0x425916],null,_0x38fd78)),null;}}else{const _0x35f3ef=_0x425916['getIntersection'](_0x59a91c['getFirstRange']());null!==_0x35f3ef&&_0x59a91c['_onDiscard']([_0x35f3ef],null,_0x38fd78);}}if(_0x425916['detach'](),_0x425916['isCollapsed']||'$graveyard'==_0x425916['root']['rootName'])return null;let _0x4233d8=null,_0xa961a1=_0x425916['start'],_0x4136d6=_0x425916['end'];const _0x4702b0=this['_findSuggestions'](_0x425916,'deletion');for(const {suggestion:_0x279cfb,meta:_0x99730c}of _0x4702b0){const _0x2cd114=this['_model']['createRange'](_0xa961a1,_0x4136d6);if(_0x99730c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x99730c['containsRangeInObject']&&!_0x99730c['isInsideObject'])){if(_0x279cfb['isMultiRange']){if(!Lt(_0x279cfb,_0x38fd78))continue;let _0x448734=!0x0;for(const _0x24af5f of _0x279cfb['getRanges']()){if(_0x24af5f['containsRange'](_0x2cd114,!0x0))return _0x279cfb;_0x2cd114['containsRange'](_0x24af5f)||(_0x448734=!0x1);}_0x448734&&_0x279cfb['discard']();}else{const _0x12fa79=_0x279cfb['getFirstRange']();if(_0x12fa79['containsRange'](_0x2cd114,!0x0))return _0x279cfb;if(!Lt(_0x279cfb,_0x38fd78)){_0x2cd114['containsRange'](_0x12fa79)?_0x279cfb['removeMarkers']():_0x12fa79['containsPosition'](_0xa961a1)?_0xa961a1=_0x12fa79['end']:_0x12fa79['containsPosition'](_0x4136d6)&&(_0x4136d6=_0x12fa79['start']);continue;}_0xa961a1=_0xa961a1['isBefore'](_0x12fa79['start'])?_0xa961a1:_0x12fa79['start'],_0x4136d6=_0x4136d6['isAfter'](_0x12fa79['end'])?_0x4136d6:_0x12fa79['end'],_0x38fd78=Object['assign']({},_0x279cfb['attributes']),_0x4233d8?_0x12fa79['start']['isBefore'](_0x4233d8['getFirstRange']()['start'])?(_0x4233d8['removeMarkers'](),_0x4233d8=_0x279cfb):_0x279cfb['removeMarkers']():_0x4233d8=_0x279cfb;}}}if(_0x4233d8)return this['_setSuggestionRange'](_0x4233d8,this['_model']['createRange'](_0xa961a1,_0x4136d6)),_0x4233d8;{const _0x199a93=_0x4fd794(),_0x206bb1=this['_model']['createRange'](_0xa961a1,_0x4136d6),_0x12965e=_0xd44500['id'],_0xfb99fb=_0x3077e1?'deletion:'+_0x3077e1:'deletion',_0x267b14=this['_setSuggestionData']({'id':_0x199a93,'type':_0xfb99fb,'createdAt':new Date(),'authorId':_0x12965e,'attributes':_0x38fd78});return this['_addSuggestionMarker'](_0xfb99fb,_0x199a93,_0x12965e,_0x206bb1),_0x267b14;}}['markMultiRangeDeletion'](_0x306843,_0x2ae300='multi',_0x438b9c={}){const _0x4e76f9=this['editor']['plugins']['get']('Users')['me'],_0x48bb7c=_0x306843['map'](_0x3bbd62=>new _0x528595(_0x3bbd62['start'],_0x3bbd62['end'])),_0x4708b6=new Set();for(const {suggestion:_0x175fb3,meta:_0x4ee53e}of this['_findSuggestions'](_0x48bb7c,'insertion'))_0x4ee53e['isOwn']&&!_0x4ee53e['isNextTo']&&_0x4708b6['add'](_0x175fb3);for(const _0x513807 of _0x4708b6)if(_0x513807['isMultiRange']){const _0x1a50a7=_0x513807['getRanges']();(!_0x513807['attributes']||!_0x513807['attributes']['skipNestingCheck'])&&(_0x1a50a7['every'](_0x33f2dd=>_0x48bb7c['some'](_0x515080=>_0x515080['containsRange'](_0x33f2dd,!0x0)))&&_0x513807['discard']());if(_0x48bb7c['every'](_0x1db2a2=>_0x1a50a7['some'](_0x4a5ed0=>_0x4a5ed0['containsRange'](_0x1db2a2,!0x0)))){const _0x23ca16=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2ae300,'accept');return this['forceDefaultExecution'](()=>_0x23ca16(_0x306843,null,_0x438b9c)),null;}}else{const _0x55b88c=_0x513807['getFirstRange']();_0x48bb7c['some'](_0x548443=>_0x548443['containsRange'](_0x55b88c,!0x0))&&_0x513807['discard']();if(_0x48bb7c['every'](_0x41c678=>_0x55b88c['containsRange'](_0x41c678,!0x0))){const _0x168b6b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2ae300,'accept');return this['forceDefaultExecution'](()=>_0x168b6b(_0x48bb7c,null,_0x438b9c)),null;}}const _0x2643ec=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2ae300,'join');let _0x3fba3d=null;for(const _0x3974f9 of this['getSuggestions']())if(_0x3974f9['author']['id']==_0x4e76f9['id']&&_0x3974f9['isInContent']&&'deletion'==_0x3974f9['type']&&_0x3974f9['subType']==_0x2ae300&&Lt(_0x3974f9,_0x438b9c)&&(_0x2643ec(_0x3974f9['getRanges'](),_0x48bb7c)||_0x2643ec(_0x48bb7c,_0x3974f9['getRanges']()))){if(_0x3fba3d){if(_0x3974f9['commentThread']&&_0x3974f9['commentThread']['length'])continue;for(const _0x6bceb7 of _0x3974f9['getRanges']())_0x3fba3d['isIntersectingWithRange'](_0x6bceb7)||_0x3fba3d['addRange'](_0x6bceb7);_0x3974f9['removeMarkers']();}else{_0x3fba3d=_0x3974f9;for(const _0x524851 of _0x48bb7c)_0x3974f9['isIntersectingWithRange'](_0x524851)||_0x3974f9['addRange'](_0x524851);}}if(_0x3fba3d)return _0x3fba3d;_0x4708b6['clear']();for(const {suggestion:_0x3408a6,meta:_0x2032b4}of this['_findSuggestions'](_0x48bb7c,'deletion'))_0x2032b4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2032b4['containsRangeInObject']&&!_0x2032b4['isInsideObject'])&&Lt(_0x3408a6,_0x438b9c)&&_0x4708b6['add'](_0x3408a6);for(const _0x405433 of _0x4708b6){const _0x1d4f8a=_0x405433['getRanges']();if(!_0x438b9c||!_0x438b9c['skipNestingCheck']){if(_0x48bb7c['every'](_0x5e9dcd=>_0x1d4f8a['some'](_0x4dacd2=>_0x4dacd2['containsRange'](_0x5e9dcd,!0x0))))return _0x405433;}(!_0x405433['attributes']||!_0x405433['attributes']['skipNestingCheck'])&&(_0x1d4f8a['every'](_0x344f83=>_0x48bb7c['some'](_0x33ca2e=>_0x33ca2e['containsRange'](_0x344f83,!0x0)))&&_0x405433['discard']());}const _0x56f357=_0x4fd794(),_0x4d6d28=_0x4e76f9['id'],_0x474624='deletion:'+_0x2ae300,_0x48d943=this['_setSuggestionData']({'id':_0x56f357,'type':_0x474624,'createdAt':new Date(),'authorId':_0x4d6d28,'attributes':_0x438b9c});for(const _0x510575 of _0x48bb7c)_0x510575['detach'](),_0x510575['isCollapsed']||'$graveyard'==_0x510575['root']['rootName']||this['_addSuggestionMarker'](_0x474624,_0x56f357,_0x4d6d28,_0x510575,u['getMultiRangeId']());return _0x48d943;}['markAttributeChange'](_0x4111c9,_0xe3a8a,_0xb2c750,_0x336883,_0x28fc7f){if(_0x4111c9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a1df1=this['editor']['plugins']['get']('Users')['me']['id'],_0x231613=Array['from'](this['_suggestions']['values']())['filter'](_0x351a42=>'attribute'==_0x351a42['type']&&_0x351a42['data']['key']==_0xe3a8a&&_0x351a42['isIntersectingWithRange'](_0x4111c9));if('default'===this['_trackFormatChanges']){const _0x3e43ff=this['_findSuggestions'](_0x4111c9,'insertion')['filter'](({meta:_0x427e35})=>_0x427e35['isOwn']&&!_0x427e35['isInsideObject']&&!_0x427e35['isNextTo'])['map'](({suggestion:_0x2df055})=>_0x2df055);_0x231613['unshift'](..._0x3e43ff);}const _0x1e84d2=new Map([[_0x4111c9,_0xb2c750]]);for(const _0x47a19c of _0x231613){const _0x590b01='attribute'==_0x47a19c['type']?_0x47a19c['data']['oldValue']:void 0x0,_0x3bfb7e=_0x47a19c['getFirstRange'](),_0x39ed4d=Array['from'](_0x1e84d2['keys']())['find'](_0x4caad3=>_0x4caad3['isIntersecting'](_0x3bfb7e));if(!_0x39ed4d)continue;const _0x151e24=_0x39ed4d['getDifference'](_0x3bfb7e);this['_isBlockAttribute'](_0xe3a8a)&&'insertion'==_0x47a19c['type']&&0x0!=_0x151e24['length']||(_0x1e84d2['delete'](_0x39ed4d),_0x151e24['forEach'](_0x71e649=>{_0x1e84d2['set'](_0x71e649,_0xb2c750);}),'insertion'!=_0x47a19c['type']&&_0x590b01!=_0x336883&&_0x1e84d2['set'](_0x39ed4d['getIntersection'](_0x3bfb7e),_0x590b01));}const _0x5b5393=[];for(const [_0x20c24c,_0x1b058c]of _0x1e84d2){const _0x4a0734=_0x4fd794(),_0x1ff1ea={'key':_0xe3a8a,'oldValue':_0x1b058c,'newValue':_0x336883};_0xe3a8a['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':_0xe3a8a});const _0x4274a6=('attribute:'+(_0xe3a8a+'|'+Vt({'newValue':_0x336883})))['substring'](0x0,0x3c),_0x372a25=this['_setSuggestionData']({'id':_0x4a0734,'type':_0x4274a6,'data':_0x1ff1ea,'createdAt':new Date(),'authorId':_0x2a1df1,'attributes':_0x28fc7f});_0x5b5393['push'](_0x372a25),this['_addSuggestionMarker'](_0x4274a6,_0x4a0734,_0x2a1df1,_0x20c24c);}return _0x5b5393;}['enableDefaultAttributesIntegration'](_0xbd5324){this['enableCommand'](_0xbd5324,(_0x31f18e,..._0x353ba2)=>{this['_recordAttributeChanges'](()=>{_0x31f18e(..._0x353ba2);});});}['registerBlockAttribute'](_0x5285ee){this['_blockAttributeKeys']['add'](_0x5285ee);}['registerInlineAttribute'](_0xf0d503){this['_inlineAttributeKeys']['add'](_0xf0d503);}['_getAttributeKey'](_0x47ae53){return'attribute'==_0x47ae53['type']?_0x47ae53['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x265fc3,_0x280a3d){const _0x3c2ae7=_0x265fc3['getFirstMarker']();this['_model']['change'](_0x7096e3=>{_0x7096e3['updateMarker'](_0x3c2ae7,{'range':_0x280a3d});});}['_addThreadToSuggestion'](_0x28ddc4){const _0x575b0d=_0x28ddc4['id'],_0x548b56=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x575b0d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x548b56,'threadId':_0x575b0d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3b6bbb=this['_commentsRepository']['getCommentThread'](_0x575b0d);_0x3b6bbb['unbind']('isRemovable'),_0x3b6bbb['isRemovable']=!0x1,_0x28ddc4['commentThread']=_0x3b6bbb;}['_checkSuggestionCorrectness'](_0x5cbbe1,_0x234a10,_0x27ceec,_0x54efcf){if(_0x5cbbe1['type']!=_0x234a10||_0x5cbbe1['subType']!=_0x27ceec||_0x5cbbe1['creator']['id']!=_0x54efcf)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x306236('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2b1b98,_0x266bcd){const _0x1c1a43=_0x2b1b98['getFirstRange']();if(_0x266bcd['isEqual'](_0x1c1a43))_0x2b1b98['removeMarkers']();else{if(_0x1c1a43['containsRange'](_0x266bcd)){const _0x4e5d4d=this['_model']['createPositionAt'](_0x266bcd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2b1b98,this['_model']['createRange'](_0x1c1a43['start'],_0x4e5d4d));const _0x4e05a9=_0x4fd794(),_0xd780d9=_0x2b1b98['creator']['id'],_0x2c34ca=_0x2b1b98['type']+':'+_0x2b1b98['subType'];this['_setSuggestionData']({'id':_0x4e05a9,'type':_0x2c34ca,'createdAt':new Date(),'authorId':_0xd780d9,'data':_0x2b1b98['data'],'attributes':_0x2b1b98['attributes']});const _0x419273=this['_model']['createPositionAt'](_0x266bcd['end']['parent'],'after'),_0x5ea2fd=this['_model']['createRange'](_0x419273,_0x1c1a43['end']);this['_addSuggestionMarker'](_0x2c34ca,_0x4e05a9,_0xd780d9,_0x5ea2fd);}else{if(_0x1c1a43['containsPosition'](_0x266bcd['start'])){const _0x480dd2=this['_model']['createPositionAt'](_0x266bcd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2b1b98,this['_model']['createRange'](_0x1c1a43['start'],_0x480dd2));}else{const _0x96aaed=this['_model']['createPositionAt'](_0x266bcd['end']['parent'],'after');this['_setSuggestionRange'](_0x2b1b98,this['_model']['createRange'](_0x96aaed,_0x1c1a43['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xe27220){for(const {suggestion:_0x260f67,meta:_0x3503e1}of this['_findSuggestions'](_0xe27220,'insertion')){if(!_0x3503e1['isOwn'])continue;const _0x2c12c6=_0x260f67['getRanges']();for(const _0x33fa8f of _0x2c12c6)if(!_0xe27220['getDifference'](_0x33fa8f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc22485){const _0x47afcd=this['editor']['plugins']['get']('Users')['getUser'](_0xc22485);if(!_0x47afcd)throw new _0x306236('track-changes-user-not-found',this);return _0x47afcd;}['_getExternalAuthor'](_0x11b92b){const _0x4f1906=this['editor']['plugins']['get']('Users'),_0x20be0f=_0x177557('external:'+_0x11b92b),_0x11874b=_0x4f1906['getUser'](_0x20be0f);return _0x11874b||_0x4f1906['addUser']({'id':_0x20be0f,'name':_0x11b92b});}['_createSuggestion'](_0x913fd4,_0x17edd8,_0x2a3335,_0x37fd4e,_0x24a513){const _0x3eda25=this['_getAuthorFromId'](_0x37fd4e),_0x4571e8=this['_suggestionFactory']['buildSuggestion'](_0x913fd4,_0x17edd8,_0x2a3335,_0x3eda25,_0x24a513,_0x105e6c=>{this['_updateSuggestionData'](_0x2a3335,{'attributes':_0x105e6c});const _0xb7f1a3=this['getSuggestion'](_0x2a3335);this['_joinWithAdjacentSuggestions'](new Set([_0xb7f1a3])),this['_refreshSuggestionsChain'](new Set([_0xb7f1a3]));});return this['listenTo'](_0x4571e8,'accept',()=>{this['_updateSuggestionData'](_0x2a3335,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4571e8,'discard',()=>{this['_updateSuggestionData'](_0x2a3335,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2a3335,_0x4571e8),this['_suggestionState']['set'](_0x4571e8,'notReady'),_0x4571e8;}['_splitMarkerName'](_0x5d07f0){const _0x3a8617=_0x5d07f0['split'](':');return{'group':_0x3a8617[0x0],'type':_0x3a8617[0x1],'subType':_0x3a8617['length']>=0x5?_0x3a8617[0x2]:null,'id':_0x3a8617['length']<0x5?_0x3a8617[0x2]:_0x3a8617[0x3],'authorId':_0x3a8617['length']<0x5?_0x3a8617[0x3]:_0x3a8617[0x4],'markerCount':0x6==_0x3a8617['length']?_0x3a8617[0x5]:null};}['_breakSuggestionMarker'](_0x5654b4,_0x2193ae,_0x3d5bd8){const _0x2fb1a7=_0x5654b4['getFirstRange'](),_0x45ec50=_0x2fb1a7['start'],_0x1760db=_0x2fb1a7['end'];this['_setSuggestionRange'](_0x5654b4,this['_model']['createRange'](_0x45ec50,_0x2193ae));const _0x23c407=_0x4fd794(),_0x413b20=_0x5654b4['creator']['id'],_0x5205ff=_0x5654b4['type']+(_0x5654b4['subType']?':'+_0x5654b4['subType']:'');this['_setSuggestionData']({'id':_0x23c407,'type':_0x5205ff,'createdAt':new Date(),'authorId':_0x413b20,'originalSuggestionId':_0x5654b4['id'],'attributes':_0x5654b4['attributes'],'data':_0x5654b4['data']});const _0x2b6f75=this['_getAttributeKey'](_0x5654b4);('formatBlock'==_0x5654b4['type']||_0x2b6f75&&this['_isBlockAttribute'](_0x2b6f75))&&(_0x3d5bd8=this['_model']['createPositionBefore'](_0x3d5bd8['parent'])),this['_addSuggestionMarker'](_0x5205ff,_0x23c407,_0x413b20,this['_model']['createRange'](_0x3d5bd8,_0x1760db));}['_findSuggestions'](_0xe4337f,_0x521b3d=null){const _0x31ca68=[],_0x5a78d3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xe4337f)||(_0xe4337f=[_0xe4337f]);for(const _0x3d784b of this['getSuggestions']()){if(!_0x3d784b['isInContent'])continue;if(_0x521b3d&&_0x3d784b['type']!=_0x521b3d)continue;let _0x238768=!0x1;for(const _0x2dce6c of _0x3d784b['getRanges']()){for(const _0x1c06be of _0xe4337f){const _0x7f0543=_0x1c06be['start']['isEqual'](_0x2dce6c['end'])||_0x1c06be['end']['isEqual'](_0x2dce6c['start']);if(_0x7f0543||_0x1c06be['getIntersection'](_0x2dce6c)){const _0x398971=_0x1c06be['containsRange'](_0x2dce6c)&&Rt(this['_model']['schema'],_0x2dce6c['start'],_0x1c06be),_0x493558=_0x2dce6c['containsRange'](_0x1c06be)&&Rt(this['_model']['schema'],_0x1c06be['start'],_0x2dce6c);_0x31ca68['push']({'suggestion':_0x3d784b,'meta':{'isOwn':_0x5a78d3==_0x3d784b['author'],'isNextTo':_0x7f0543,'isInsideObject':_0x398971,'containsRangeInObject':_0x493558}}),_0x238768=!0x0;break;}}if(_0x238768)break;}}return _0x31ca68;}['_addSuggestionMarker'](_0x52cd16,_0x4136a5,_0x3d3196,_0x2786b4,_0x5a57b5){this['_model']['change'](_0x483ecb=>{let _0x2d8b03='suggestion:'+_0x52cd16+':'+_0x4136a5+':'+_0x3d3196;_0x5a57b5&&(_0x2d8b03=_0x2d8b03+':'+_0x5a57b5),_0x483ecb['addMarker'](_0x2d8b03,{'range':_0x2786b4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x57a345){const _0x1b826d=_0x57a345['previous'],_0x36d5bc=_0x57a345['next'];_0x57a345['previous']=null,_0x57a345['next']=null,null!=_0x1b826d&&_0x1b826d['next']==_0x57a345&&(_0x1b826d['next']=_0x36d5bc),null!=_0x36d5bc&&_0x36d5bc['previous']==_0x57a345&&(_0x36d5bc['previous']=_0x1b826d),'ready'==this['_suggestionState']['get'](_0x57a345)&&(this['_suggestionState']['set'](_0x57a345,'removed'),this['fire']('suggestionUnloaded',_0x57a345,_0x1b826d,_0x36d5bc));}['_setSuggestionData'](_0x56c6a0){const _0x4135e7=_0x56c6a0['id'],_0x197824=this['addSuggestionData'](_0x56c6a0);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4bb890=this['editor']['plugins']['get']('PendingActions'),_0x4a2d85=_0x197824['hasComments'],_0x1f761f=_0x197824['subType']?_0x197824['type']+':'+_0x197824['subType']:_0x197824['type'],_0x14cd34=this['editor']['locale'],_0x32097c=_0x4bb890['add'](o(_0x14cd34,'PENDING_ACTION_SUGGESTION')),_0xdfbe7c={'id':_0x4135e7,'type':_0x1f761f,'hasComments':_0x4a2d85,'data':_0x56c6a0['data']||null,'originalSuggestionId':_0x56c6a0['originalSuggestionId']||null,'attributes':_0x197824['attributes']};this['_adapter']['addSuggestion'](_0xdfbe7c)['then'](_0x41d148=>{_0x197824['_saved']=!0x0,_0x4bb890['remove'](_0x32097c),_0x41d148&&_0x41d148['createdAt']&&(this['_suggestions']['get'](_0x4135e7)['createdAt']=_0x41d148['createdAt']);})['catch'](_0x514977=>{throw _0x1d2539('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x197824['discard']();}),_0x197824['stopListening'](),this['_suggestions']['delete'](_0x197824['id']),this['_suggestionState']['delete'](_0x197824),_0x514977;});}return _0x197824;}['_isBlockAttribute'](_0xb3d761){return this['_blockAttributeKeys']['has'](_0xb3d761);}['_updateSuggestionData'](_0x1b5ee7,_0x35239c){const _0x28cec7=this['editor']['plugins']['get']('PendingActions'),_0xfc31b0=this['getSuggestion'](_0x1b5ee7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xfc31b0['_saved']){const _0x413bd1=_0x28cec7['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1b5ee7,_0x35239c)['then'](()=>{_0x28cec7['remove'](_0x413bd1);});}else _0xfc31b0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1b5ee7,_0x35239c);});}}['_getSuggestionData'](_0x51b0e2){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x306236('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x51b0e2);}['_handleNewSuggestionMarker'](_0x5335f9){const {id:_0x1d6de2,type:_0x3155cd,subType:_0x1b492f,authorId:_0x3b2075}=this['_splitMarkerName'](_0x5335f9),_0x10e229=this['_suggestions']['get'](_0x1d6de2)||this['_createSuggestion'](_0x3155cd,_0x1b492f,_0x1d6de2,_0x3b2075,{});switch(this['_checkSuggestionCorrectness'](_0x10e229,_0x3155cd,_0x1b492f,_0x3b2075),this['_suggestionState']['get'](_0x10e229)){case'notReady':this['_getSuggestionData'](_0x1d6de2)['then'](_0x6a954=>{let _0x397cb1=Promise['resolve']();_0x6a954['hasComments']&&(_0x397cb1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1d6de2})),_0x397cb1['then'](()=>{this['addSuggestionData'](_0x6a954)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x10e229,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1d6de2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x10e229,'ready'),this['fire']('suggestionLoaded',_0x10e229);break;case'ready':this['fire']('suggestionChanged',_0x10e229);}return _0x10e229['addMarkerName'](_0x5335f9),_0x10e229;}['_refreshSuggestionsChain'](_0x4df0f3){const _0xeb44ff=Array['from'](_0x4df0f3),_0x1b5ac0=_0xeb44ff['filter'](_0x374f14=>'attribute'==_0x374f14['type']);this['_refreshAttributeSuggestionsChain'](_0x1b5ac0);const _0x2eda64=_0xeb44ff['filter'](_0x1de6f6=>!_0x1de6f6['isMultiRange']&&'attribute'!=_0x1de6f6['type']),_0x3d7ff3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d9372=>!_0x3d9372['isMultiRange']&&'attribute'!=_0x3d9372['type']),_0x3e264a=_0x3d7ff3['filter'](_0x24d851=>!_0x4df0f3['has'](_0x24d851)),_0x578b52=new Map(_0x3d7ff3['map'](_0x25eddd=>[_0x25eddd,this['_suggestionFactory']['getSuggestionCallback'](_0x25eddd['type'],_0x25eddd['subType'],'chain')])),_0x508cee=new Map(_0x3d7ff3['map'](_0x79181d=>[_0x79181d,_0x79181d['getFirstRange']()])),_0x402139=new Set(),_0x1ed9ac=new Set();for(let _0x53ff59=0x0;_0x53ff59<_0x2eda64['length'];_0x53ff59++)_0x424c79(_0x2eda64[_0x53ff59],_0x2eda64,_0x53ff59+0x1);for(let _0x5a1fc7=0x0;_0x5a1fc7<_0x2eda64['length'];_0x5a1fc7++)_0x424c79(_0x2eda64[_0x5a1fc7],_0x3e264a,0x0);const _0x34bd9c=new Set();for(let _0xda2d04=0x0;_0xda2d04<_0x2eda64['length'];_0xda2d04++){const _0x53f85d=_0x2eda64[_0xda2d04];!_0x1ed9ac['has'](_0x53f85d)&&_0x53f85d['previous']&&(_0x34bd9c['add'](_0x53f85d['previous']),_0x53f85d['previous']['next']===_0x53f85d&&(_0x53f85d['previous']['next']=null),_0x53f85d['previous']=null),!_0x402139['has'](_0x53f85d)&&_0x53f85d['next']&&(_0x34bd9c['add'](_0x53f85d['next']),_0x53f85d['next']['previous']===_0x53f85d&&(_0x53f85d['next']['previous']=null),_0x53f85d['next']=null);}function _0x424c79(_0xb3c6d4,_0x3afd37,_0x38e423){for(let _0x2a660f=_0x38e423;_0x2a660f<_0x3afd37['length'];_0x2a660f++){const _0x3d318e=_0x15afa9(_0xb3c6d4,_0x3afd37[_0x2a660f]);_0x3d318e&&(_0x3d318e[0x0]['next']=_0x3d318e[0x1],_0x3d318e[0x1]['previous']=_0x3d318e[0x0],_0x402139['add'](_0x3d318e[0x0]),_0x1ed9ac['add'](_0x3d318e[0x1]));}}function _0x15afa9(_0x49a956,_0x30bea4){if(_0x49a956['author']['id']!==_0x30bea4['author']['id'])return null;const _0x491e61=_0x578b52['get'](_0x49a956)(_0x49a956,_0x30bea4,_0x508cee['get'](_0x49a956),_0x508cee['get'](_0x30bea4));if(!_0x491e61)return null;return _0x578b52['get'](_0x30bea4)(_0x49a956,_0x30bea4,_0x508cee['get'](_0x49a956),_0x508cee['get'](_0x30bea4))?_0x491e61[0x1]['commentThread']&&_0x491e61[0x1]['commentThread']['length']?null:_0x491e61:null;}_0x34bd9c['size']&&this['_refreshSuggestionsChain'](_0x34bd9c);}['_refreshAttributeSuggestionsChain'](_0x21b2c3){if(0x0==_0x21b2c3['length'])return;const _0x2cce5c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34a8e8=>'attribute'==_0x34a8e8['type']&&_0x34a8e8['_isDataLoaded']),_0x4f924f=[],_0x62f05f=new Map();for(const _0x42143e of _0x2cce5c){const _0x314492=_0x177557(_0x42143e['attributes']);_0x62f05f['has'](_0x314492)||(_0x62f05f['set'](_0x314492,_0x4f924f['length']),_0x4f924f['push']([]));const _0x2a45d6=_0x62f05f['get'](_0x314492);_0x4f924f[_0x2a45d6]['push'](_0x42143e);}!(function(){_0x4f924f['sort']((_0x495bd7,_0x5bd01f)=>{const _0x4d39e3=_0x495bd7[0x0]['createdAt'],_0x3301a3=_0x5bd01f[0x0]['createdAt'];return _0x4d39e3==_0x3301a3?_0x495bd7[0x0]['attributes']['groupId']<_0x5bd01f[0x0]['attributes']['groupId']?-0x1:0x1:_0x4d39e3<_0x3301a3?-0x1:0x1;});for(const _0x13cc00 of _0x4f924f)_0x13cc00['sort']((_0x1a0d47,_0x29374d)=>_0x1a0d47['id']<_0x29374d['id']?-0x1:0x1);}());for(let _0x15e830=0x0;_0x15e830<_0x4f924f['length'];_0x15e830++){if(0x0==_0x4f924f[_0x15e830]['length'])continue;const _0x346534=[];for(let _0x3be837=_0x15e830+0x1;_0x3be837<_0x4f924f['length'];_0x3be837++)0x0!=_0x4f924f[_0x3be837]['length']&&_0x25e658(_0x4f924f[_0x15e830],_0x4f924f[_0x3be837])&&_0x346534['push'](_0x3be837);for(const _0x3ea1ec of _0x346534)_0x4f924f[_0x15e830]=_0x4f924f[_0x15e830]['concat'](_0x4f924f[_0x3ea1ec]),_0x4f924f[_0x3ea1ec]=[];}for(const _0x202d90 of _0x4f924f)for(let _0x44f38e=0x0;_0x44f38e<_0x202d90['length'];_0x44f38e++)_0x202d90[_0x44f38e]['next']=_0x202d90[_0x44f38e+0x1]||null;for(const _0x2393de of _0x4f924f)for(let _0x3262c0=0x0;_0x3262c0<_0x2393de['length'];_0x3262c0++)_0x2393de[_0x3262c0]['previous']=_0x2393de[_0x3262c0-0x1]||null;function _0x25e658(_0x359b97,_0x3bfaca){if(_0x359b97[0x0]['attributes']['groupId']!==_0x3bfaca[0x0]['attributes']['groupId']&&_0x359b97[0x0]['author']!==_0x3bfaca[0x0]['author'])return!0x1;if(!function(_0x3c23e1,_0x148367){if(!_0x3c23e1['hasComments']&&!_0x148367['hasComments'])return!0x0;if(_0x3c23e1['hasComments']&&_0x148367['hasComments'])return!0x1;if(_0x3c23e1['hasComments']&&_0x148367['createdAt']<_0x3c23e1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x148367['hasComments']&&_0x3c23e1['createdAt']<_0x148367['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x359b97[0x0],_0x3bfaca[0x0]))return!0x1;const _0x4b2d52=Bt(_0x359b97[0x0]['attributes'],'groupId'),_0x146cbc=Bt(_0x3bfaca[0x0]['attributes'],'groupId');if(!_0xa9b325(_0x4b2d52,_0x146cbc))return!0x1;return!!_0x359b97['every'](_0x1109f0=>_0x3bfaca['some'](_0x63d60e=>_0x1109f0['getFirstRange']()['isEqual'](_0x63d60e['getFirstRange']())))&&_0x3bfaca['every'](_0x50c34c=>_0x359b97['some'](_0x30946d=>_0x50c34c['getFirstRange']()['isEqual'](_0x30946d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3cfa3b){const _0x5a739f=Array['from'](_0x3cfa3b),_0x36e1d1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x42040d=_0x36e1d1['filter'](_0x15e670=>!_0x3cfa3b['has'](_0x15e670)),_0x3db7ea=new Map(_0x5a739f['map'](_0x5d6bb0=>[_0x5d6bb0,this['_suggestionFactory']['getSuggestionCallback'](_0x5d6bb0['type'],_0x5d6bb0['subType'],'join')])),_0x5c343b=new Map(_0x36e1d1['map'](_0x4dcf32=>[_0x4dcf32,_0x4dcf32['getRanges']()]));for(let _0x47dd0f=0x0;_0x47dd0f<_0x5a739f['length'];_0x47dd0f++){if(_0x555d78(this,_0x5a739f[_0x47dd0f],_0x5a739f,_0x47dd0f+0x1))return!0x0;}for(let _0x3b6a8a=0x0;_0x3b6a8a<_0x5a739f['length'];_0x3b6a8a++){if(_0x555d78(this,_0x5a739f[_0x3b6a8a],_0x42040d,0x0))return!0x0;}return!0x1;function _0x555d78(_0x330cb8,_0x59b717,_0x42618b,_0x49897f){for(let _0x2f3150=_0x49897f;_0x2f3150<_0x42618b['length'];_0x2f3150++){const _0x3098cb=_0x42618b[_0x2f3150];if(_0x3098cb['type']!==_0x59b717['type']||_0x3098cb['author']['id']!==_0x59b717['author']['id']||_0x3098cb['subType']!==_0x59b717['subType'])continue;if(!Pt(_0x59b717,_0x3098cb,['groupId']))continue;if('attribute'==_0x59b717['type']&&_0x59b717['data']['oldValue']!=_0x3098cb['data']['oldValue'])continue;if('attribute'==_0x59b717['type']&&_0x330cb8['_isBlockAttribute'](_0x59b717['data']['key']))continue;if('formatBlock'==_0x59b717['type']){const _0x391af1=_0x330cb8['editor']['model'],_0x4b7d43=_0x59b717['getContainedElement']();if(_0x4b7d43&&(_0x391af1['schema']['isObject'](_0x4b7d43)||_0x391af1['schema']['isLimit'](_0x4b7d43)))continue;}const _0x229350=_0x3db7ea['get'](_0x59b717),_0x51a1ef=_0x5c343b['get'](_0x59b717),_0x5b14fc=_0x5c343b['get'](_0x3098cb),_0x5fdd80=_0x59b717['commentThread']&&_0x59b717['commentThread']['length'],_0x4b3aeb=_0x3098cb['commentThread']&&_0x3098cb['commentThread']['length'];if(!_0x5fdd80&&_0x229350(_0x5b14fc,_0x51a1ef))return _0x330cb8['_joinSuggestions'](_0x3098cb,_0x59b717),_0x5c343b['delete'](_0x59b717),!0x0;if(!_0x4b3aeb&&_0x229350(_0x51a1ef,_0x5b14fc))return _0x330cb8['_joinSuggestions'](_0x59b717,_0x3098cb),_0x5c343b['delete'](_0x3098cb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x25f798,_0x316a9c){if(_0x25f798['isMultiRange']){for(const _0x213cd5 of _0x316a9c['getRanges']())_0x25f798['addRange'](_0x213cd5);}else{const _0x32540d=_0x316a9c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x25f798,this['_model']['createRange'](_0x25f798['getFirstRange']()['start'],_0x32540d));}_0x316a9c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x15fcd6,_0x50ed83){const _0x556ee5=_0x15fcd6['startsWith']('format')||_0x15fcd6['startsWith']('attribute')?'FORMATTING':_0x15fcd6['toUpperCase']();return o(this['editor']['locale'],_0x50ed83+'_'+_0x556ee5+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x116c5b=this['editor'];if(!_0x116c5b['ui'])return;const {ariaLiveAnnouncer:_0x110939}=_0x116c5b['ui'];_0x5904d0(this['_model'],({left:_0x1dfefe,entered:_0xf20ff3})=>{for(const _0x2b09d6 of _0x1dfefe){const {group:_0x46eadd,type:_0x4276a8}=this['_splitMarkerName'](_0x2b09d6['name']);if('suggestion'===_0x46eadd){_0x110939['announce'](this['_getMarkerAnnouncementText'](_0x4276a8,'LEAVE'));break;}}for(const _0x301b55 of _0xf20ff3){const {group:_0x1fcc3d,type:_0x235c84}=this['_splitMarkerName'](_0x301b55['name']);if('suggestion'===_0x1fcc3d){_0x110939['announce'](this['_getMarkerAnnouncementText'](_0x235c84,'ENTER'));break;}}});}['_processAttributeChanges'](_0x5ccc65){if(this['_recordAttributeSuggestions'])return!0x1;const _0x809aca=this['editor'],_0x1f9b94=_0x809aca['model']['document']['differ']['getChanges']();if(0x0==_0x1f9b94['length'])return!0x1;const _0x23ee4b=[],_0x231c46=_0x1f9b94['filter'](_0x579840=>'attribute'==_0x579840['type']),_0xc99a68=_0x1f9b94['filter'](_0xe1f156=>'insert'==_0xe1f156['type']&&'$text'!=_0xe1f156['name']),_0x41a674=_0x1f9b94['filter'](_0x5070df=>'remove'==_0x5070df['type']&&'$text'!=_0x5070df['name']);for(const _0x4916d2 of _0x231c46)_0x23ee4b['push']({'key':_0x4916d2['attributeKey'],'newValue':_0x4916d2['attributeNewValue'],'oldValue':_0x4916d2['attributeOldValue'],'range':Ot(_0x4916d2['range'],_0x809aca['model'])});for(const _0x2a9fc3 of _0xc99a68){const _0x4193a9=_0x41a674['find'](_0x348e63=>_0x348e63['position']['isEqual'](_0x2a9fc3['position']));_0x4193a9&&_0x23ee4b['push']({'key':m,'newValue':_0x2a9fc3['name'],'oldValue':_0x4193a9['name'],'range':_0x809aca['model']['createRangeOn'](_0x2a9fc3['position']['nodeAfter'])});}return 0x0!=_0x23ee4b['length']&&this['_reduceExistingSuggestions'](_0x5ccc65,_0x23ee4b);}['_processAttributeSuggestions'](_0x29656f){let _0x22b4c4=!0x1;const _0x305b65=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x423e6e=>_0x423e6e['data']['newRange']&&_0x423e6e['name']['startsWith']('suggestion:attribute:'));for(const _0x9ba716 of _0x305b65){const {subType:_0x2a225b,id:_0x85dc9c}=this['_splitMarkerName'](_0x9ba716['name']),_0x527011=_0x2a225b['split']('|')[0x0];for(const _0x5a58ae of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5a58ae['id']!=_0x85dc9c&&'attribute'==_0x5a58ae['type']&&_0x5a58ae['data']&&_0x5a58ae['data']['key']==_0x527011&&_0x5a58ae['getFirstRange']()['isIntersecting'](_0x9ba716['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5a58ae,_0x9ba716['data']['newRange'],_0x29656f),_0x22b4c4=!0x0);}return _0x22b4c4;}['_recordAttributeChanges'](_0x51cc85){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x51cc85();}['_isRegisteredAttribute'](_0x5e373e){const _0x5178bf=this['_isBlockAttribute'](_0x5e373e),_0x374f40=this['_inlineAttributeKeys']['has'](_0x5e373e);return _0x5178bf||_0x374f40;}['_reduceExistingSuggestions'](_0x5f0a91,_0xf0ffcd){if(0x0==_0xf0ffcd['length'])return!0x1;let _0x4f6e8d=!0x1;for(const _0x836666 of _0xf0ffcd){const _0x5ed92b=this['_findSuggestions'](_0x836666['range'],'attribute')['filter'](_0x256b50=>!_0x256b50['meta']['isNextTo'])['map'](_0x57ee4e=>_0x57ee4e['suggestion']),_0x201d42=_0x177557({'newValue':_0x836666['newValue']});_0x5ed92b['filter'](_0x1219ab=>{const [_0x36a326,_0x45bebc]=_0x1219ab['subType']['split']('|');return _0x36a326==_0x836666['key']&&_0x45bebc!=_0x201d42;})['forEach'](_0x2c6327=>{this['_reduceSuggestionAttributeRange'](_0x2c6327,_0x836666['range'],_0x5f0a91),_0x4f6e8d=!0x0;});}return _0x4f6e8d;}['_reduceSuggestionAttributeRange'](_0x5a570d,_0x27e74b,_0x95784f){const _0x5651f3=_0x5a570d['getFirstRange']()['getDifference'](_0x27e74b);0x0!==_0x5651f3['length']?0x1!==_0x5651f3['length']?this['_breakSuggestionMarker'](_0x5a570d,_0x27e74b['start'],_0x27e74b['end']):this['_setSuggestionRange'](_0x5a570d,_0x5651f3[0x0]):_0x95784f['removeMarker'](_0x5a570d['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x392d76){this['_editor']=_0x392d76,this['_model']=_0x392d76['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4a2bb5,_0x1c6473,_0x514426,_0x3d1850,_0x5118c6,_0x2c88a5){return new u(this['_model'],{'type':_0x4a2bb5,'subType':_0x1c6473,'id':_0x514426,'author':_0x3d1850,'creator':_0x3d1850,'attributes':_0x5118c6,'onAttributesChange':_0x2c88a5,'onAccept':(..._0xd50a3d)=>this['getSuggestionCallback'](_0x4a2bb5,_0x1c6473,'accept')(..._0xd50a3d),'onDiscard':(..._0x212200)=>this['getSuggestionCallback'](_0x4a2bb5,_0x1c6473,'discard')(..._0x212200)});}['registerCustomCallback'](_0x50e9d1,_0xd1e9e4,_0x4b7083,_0x452f9f){const _0x29bc59=_0x50e9d1+':'+_0xd1e9e4+':'+_0x4b7083;this['_customCallbacks']['set'](_0x29bc59,_0x452f9f);}['getSuggestionCallback'](_0x21e688,_0xbd7ef0,_0x3c8657){const _0x4620f3=_0x21e688+':'+_0xbd7ef0+':'+_0x3c8657;return this['_customCallbacks']['get'](_0x4620f3)||this['_defaultCallbacks']['get'](_0x21e688+':'+_0x3c8657);}['_registerDefaultCallbacks'](){const _0x6a64fe=()=>!0x1,_0x3042c5=_0x530659=>{_0x530659['sort']((_0x316ff1,_0x42b143)=>_0x316ff1['start']['isBefore'](_0x42b143['start'])?0x1:-0x1),this['_model']['change'](_0x216731=>{for(const _0x30c2bb of _0x530659){let _0x2b4018;_0x2b4018=_0x30c2bb['end']['isAtEnd']&&_0x30c2bb['end']['parent']==_0x30c2bb['start']['nodeAfter']?_0x216731['createSelection'](_0x30c2bb['start']['nodeAfter'],'on'):_0x216731['createSelection'](_0x30c2bb),this['_model']['deleteContent'](_0x2b4018,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1fea6e=(_0x268381,_0x277549)=>{_0x277549&&this['_model']['change'](_0x205fdc=>{const {commandName:_0x308897,commandParams:_0x400cb4=[]}=_0x277549,_0x25f4cd=_0x268381['map'](_0x5d4d4e=>(Tt(_0x5d4d4e)&&(_0x5d4d4e=this['_model']['createRange'](_0x5d4d4e['end'])),_0x5d4d4e))['filter'](_0x198635=>'$graveyard'!==_0x198635['root']['rootName']);if(_0x25f4cd['length']<0x1)return;const _0x6289da=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2cf660=>_0x528595['fromRange'](_0x2cf660));_0x205fdc['setSelection'](_0x25f4cd);for(const _0xba5b2 of this['_editor']['commands']['commands']())_0xba5b2['refresh']();_0x400cb4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x308897,..._0x400cb4);const _0x194195=_0x6289da['filter'](_0x17f1ac=>'$graveyard'!=_0x17f1ac['root']['rootName']);_0x194195['length']>0x0&&_0x205fdc['setSelection'](_0x194195);for(const _0x2b66ce of _0x6289da)_0x2b66ce['detach']();});},_0x520c80=(_0x44a88f,_0x1ddd2c)=>0x1==_0x44a88f['length']&&0x1==_0x1ddd2c['length']&&_0x44a88f[0x0]['end']['isEqual'](_0x1ddd2c[0x0]['start']),_0x3c4746=(_0x23a920,_0x4d607c,_0x3b550c,_0x29be08)=>Gt(_0x23a920,_0x4d607c,_0x3b550c,_0x29be08,this['_model'])?[_0x23a920,_0x4d607c]:Gt(_0x4d607c,_0x23a920,_0x29be08,_0x3b550c,this['_model'])?[_0x4d607c,_0x23a920]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x6a64fe),this['_defaultCallbacks']['set']('insertion:discard',_0x3042c5),this['_defaultCallbacks']['set']('insertion:join',_0x520c80),this['_defaultCallbacks']['set']('insertion:chain',_0x3c4746),this['_defaultCallbacks']['set']('deletion:accept',_0x3042c5),this['_defaultCallbacks']['set']('deletion:discard',_0x6a64fe),this['_defaultCallbacks']['set']('deletion:join',_0x520c80),this['_defaultCallbacks']['set']('deletion:chain',_0x3c4746),this['_defaultCallbacks']['set']('formatInline:accept',_0x1fea6e),this['_defaultCallbacks']['set']('formatInline:discard',_0x6a64fe),this['_defaultCallbacks']['set']('formatInline:join',_0x520c80),this['_defaultCallbacks']['set']('formatInline:chain',_0x6a64fe),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1fea6e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x6a64fe),this['_defaultCallbacks']['set']('formatBlock:join',_0x520c80),this['_defaultCallbacks']['set']('formatBlock:chain',_0x6a64fe),this['_defaultCallbacks']['set']('attribute:accept',_0x6a64fe),this['_defaultCallbacks']['set']('attribute:discard',(_0x3b3ae4,_0x4c61f1)=>{if(!_0x4c61f1)return;const _0x324132=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5cc9a1=>{if(_0x4c61f1['key']==m)for(const _0x2009da of _0x3b3ae4){const _0x189610=_0x2009da['start']['nodeAfter'],_0x2eb600=_0x4c61f1['oldValue'];_0x5cc9a1['rename'](_0x189610,_0x2eb600);}else{if(_0x324132['_isBlockAttribute'](_0x4c61f1['key'])){for(const _0x4e480e of _0x3b3ae4)void 0x0!==_0x4c61f1['oldValue']?_0x5cc9a1['setAttribute'](_0x4c61f1['key'],_0x4c61f1['oldValue'],_0x4e480e['start']['nodeAfter']):_0x5cc9a1['removeAttribute'](_0x4c61f1['key'],_0x4e480e['start']['nodeAfter']);}else{for(const _0x21308e of _0x3b3ae4)_0x4c61f1['oldValue']?_0x5cc9a1['setAttribute'](_0x4c61f1['key'],_0x4c61f1['oldValue'],_0x21308e):_0x5cc9a1['removeAttribute'](_0x4c61f1['key'],_0x21308e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x520c80);}}function Rt(_0x82fd9e,_0x4ec034,_0x2c6d95){for(const _0x4a0141 of _0x4ec034['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4a0141['root']==_0x4a0141)return!0x1;if(!_0x2c6d95['containsItem'](_0x4a0141))return!0x1;if(_0x82fd9e['isObject'](_0x4a0141)||_0x82fd9e['isLimit'](_0x4a0141))return!0x0;}return!0x1;}function Tt(_0x1296d6){return _0x1296d6['end']['parent']==_0x1296d6['start']['nodeAfter']&&_0x1296d6['end']['isAtStart'];}function Et(_0x1fa091,_0x454271,_0x398871,_0x4fdccc){const _0x5b76b7=_0x5c2f1b=>!_0x5c2f1b['item']['is']('$textProxy')&&!_0x4fdccc['isObject'](_0x5c2f1b['item']),_0x595b9a=_0x1fa091['start']['getLastMatchingPosition'](_0x5b76b7),_0x4fbc4b=_0x1fa091['end']['getLastMatchingPosition'](_0x5b76b7,{'direction':'backward'});return(!_0x1fa091['start']['isEqual'](_0x595b9a)||!_0x1fa091['end']['isEqual'](_0x4fbc4b))&&(_0x595b9a['isBefore'](_0x4fbc4b)?_0x398871['updateMarker'](_0x454271,{'range':_0x398871['createRange'](_0x595b9a,_0x4fbc4b)}):_0x398871['removeMarker'](_0x454271),!0x0);}function Vt(_0x314354){return _0x177557(_0x314354);}function Ut(_0x2acd1a){const _0x32d33f=_0x2acd1a['start']['nodeAfter'];return _0x32d33f&&_0x32d33f['is']('element');}function Ot(_0x57ae35,_0x44e2e1){return null==_0x57ae35['end']['nodeBefore']&&_0x57ae35['end']['parent']==_0x57ae35['start']['nodeAfter']?Ft(_0x57ae35['start']['nodeAfter'],_0x44e2e1):_0x57ae35;}function Ft(_0x448c28,_0x4a9e67){const _0x476505=_0x4a9e67['schema']['isObject'](_0x448c28)||_0x4a9e67['schema']['isSelectable'](_0x448c28);return _0x4a9e67['createRange'](_0x4a9e67['createPositionAt'](_0x448c28,'before'),_0x476505?_0x4a9e67['createPositionAfter'](_0x448c28):_0x4a9e67['createPositionAt'](_0x448c28,'end'));}function Gt(_0x9b405,_0x7d4b80,_0x5037bd,_0x29f095,_0x40dfd1){if(!Pt(_0x9b405,_0x7d4b80))return!0x1;if(_0x5037bd['end']['isEqual'](_0x29f095['start']))return!0x0;if(_0x9b405['type']!=_0x7d4b80['type'])return!0x1;if(!_0x5037bd['end']['isTouching'](_0x29f095['start']))return!0x1;const _0x35db06=_0x40dfd1['createRange'](_0x5037bd['end'],_0x29f095['start'])['getWalker']();for(const _0x27143a of _0x35db06)if(['elementStart','elementEnd']['includes'](_0x27143a['type'])&&_0x40dfd1['schema']['isLimit'](_0x27143a['item']))return!0x1;return!0x0;}function Pt(_0xdec818,_0x48d65d,_0x1e81cb=[]){return!(!_0xdec818['_isDataLoaded']||!_0x48d65d['_isDataLoaded'])&&_0xa9b325(Bt(_0xdec818['attributes'],_0x1e81cb),Bt(_0x48d65d['attributes'],_0x1e81cb));}function Lt(_0x24b3ee,_0x53f187){const _0x424288=Ht(_0x24b3ee['attributes']),_0x172645=Ht(_0x53f187);if(!_0x24b3ee['_isDataLoaded'])return!0x1;for(const _0x1caed1 of Object['keys'](_0x172645))if(!_0xa9b325(_0x424288[_0x1caed1],_0x172645[_0x1caed1]))return!0x1;return!0x0;}function Ht(_0x50438e){const _0x4d6990=Object['assign']({},_0x50438e);return delete _0x4d6990['skipNestingCheck'],delete _0x4d6990['tablePasteChainId'],_0x4d6990;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x12e385(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xc8457c,_0x246852,_0x3a908c,_0x59e79b){super(),this['model']=_0x246852,this['view']=_0x3a908c,this['commentThreadController']=_0x59e79b,this['_editor']=_0xc8457c,this['_acceptCommand']=_0xc8457c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xc8457c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x389441,_0x1c6a42)=>_0x389441||_0x1c6a42),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3082a3=>_0x3082a3&&this['_editor']['model']['canEditAt'](_0x246852['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x466439=>_0x466439&&this['_editor']['model']['canEditAt'](_0x246852['getRanges']())),this['_pendingAction']=null,_0x3a908c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3a908c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3a908c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3a908c,'change:isDirty',()=>{_0x3a908c['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 _0x10e42a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x10e42a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x2bcc14{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x5f017a,_0x5cb144,_0x81989a,_0x5df35d){super(_0x5f017a),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5cb144['authoredAt']),this['bind']('authoredAt')['to'](_0x5cb144),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5cb144,this['_localUser']=_0x81989a,this['_config']=_0x5df35d,_0x5df35d['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:_0x48ec41}=this['_config'];this['commentsListView']=new _0x48ec41(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',_0x1249ce=>_0x1249ce+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x29e20a,_0x47759e)=>_0x29e20a||!!_0x47759e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x164389}=this['_config'],_0x2f4467=new _0x164389(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1ec310=_0x2f4467['commentInputView'];return _0x2f4467['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1ec310,'value',(_0x564d10,_0x51653b,_0x6be106)=>!!_0x6be106||_0x564d10&&!_0x51653b),_0x1ec310['on']('submit',(_0x38e2d9,_0x585fe4)=>{this['fire']('addComment',_0x585fe4),_0x1ec310['editor']['setData']('');}),_0x1ec310['on']('cancel',()=>this['focus']()),_0x1ec310['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2f4467;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x1475e5,_0xbd00a0,_0x4008d2,_0x83f70c){super(_0x1475e5,_0xbd00a0,_0x4008d2,_0x83f70c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x44168e=>_0x44168e&&_0x44168e[0x0]?_0x44168e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xc66aa0,_0x19d5d7)=>{let _0x4a14cc='';for(const _0xa94339 of _0xc66aa0)_0x4a14cc+='<p>'+ds(_0xa94339['content'],_0xa94339['color'])+'</p>';return _0x19d5d7?_0x4a14cc:_0x507d90(_0x4a14cc,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x1475e5,'Accept\x20suggestion'),_0x4ae9a9['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x1475e5,'Discard\x20suggestion'),_0x4ae9a9['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x55fa6d(_0x1475e5,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1a68b2=this['bindTemplate'],_0x5f5dcf=[{'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':_0x1a68b2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1a68b2['to']('authoredAt',_0x10cee8=>this['_config']['formatDateTime'](_0x10cee8))}]}]},{'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']&&_0x5f5dcf['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5ed306={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x1a68b2['if']('isActive','ck-suggestion-wrapper--active'),_0x1a68b2['to']('type',_0x1e5d6d=>'ck-suggestion-'+_0x1e5d6d),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':_0x5f5dcf}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x5ed306['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)),_0x5ed306;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x45f9cd,_0x44b7f4,_0x1d8aec)=>{this['_descriptionElement']['innerHTML']=_0x1d8aec;});}['_createButton'](_0x529af7,_0x1ef3f9,_0x24dbcf,_0x1f544c,_0x2b34b8){const _0x232c70=new _0x19cfec(this['locale']);return _0x232c70['set']({'label':_0x529af7,'icon':_0x1ef3f9,'tooltip':!0x0,'tooltipPosition':_0x2b34b8}),_0x232c70['extendTemplate']({'attributes':{'class':_0x24dbcf}}),_0x232c70['on']('execute',()=>{this['fire'](_0x1f544c,this['_model']['id']);}),_0x232c70;}['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(_0x451e14,_0x56eef4){let _0x2a2ac4='';return _0x2a2ac4+=_0x451e14['split']('*')['map']((_0x5eb68d,_0x4d484e)=>_0x4d484e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5eb68d)+'</span>':us(_0x5eb68d))['join'](''),_0x56eef4&&(_0x2a2ac4+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x56eef4['value']+'\x22\x20title=\x22'+_0x56eef4['title']+'\x22></span>'),_0x2a2ac4;}function us(_0x339304){const _0x1c5360=document['createElement']('span');return _0x1c5360['innerText']=_0x339304,_0x1c5360['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 _0x4679c4{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5ed081,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4e36fd){super(_0x4e36fd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xad1ad8=this['editor']['config'];_0xad1ad8['define']('trackChanges.SuggestionThreadView',ne),_0xad1ad8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xad1ad8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2e11c4,_0x269f4e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x566060,_0x3816f4]of this['_handleControllerBuffer']){const _0xda6506=this['_suggestionToController']['has'](_0x566060);_0xda6506||_0x3816f4?_0xda6506&&_0x3816f4&&this['_destroyController'](_0x566060):this['_initializeController'](_0x566060);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2e11c4,_0x269f4e);}['init'](){const _0x4064ce=this['editor'],_0x5e07af=_0x4064ce['plugins']['get']('TrackChangesEditing'),_0x51400b=_0x4064ce['plugins']['get']('Annotations'),_0x87e002=_0x4064ce['plugins']['get']('EditorAnnotations'),_0x2b21eb=_0x4064ce['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x87e002['addSourceCollector'](()=>{const _0x2f090e=[];for(const [_0x239846,_0x2d0619]of Array['from'](this['_suggestionToController'])){const _0x3ff364=_0x239846['getAllAdjacentSuggestions'](),_0x1ce95d=[];for(const _0xd60a0c of _0x3ff364){if(!_0xd60a0c['isInContent'])continue;if(_0xd60a0c['isMultiRange']){_0x1ce95d['push'](..._0xd60a0c['getRanges']());continue;}const _0x27c78f=_0xd60a0c['getFirstRange']();if(_0x1ce95d['length']>0x0){const _0x2e61c3=_0x1ce95d[0x0]['getJoined'](_0x27c78f);if(_0x2e61c3){_0x1ce95d[0x0]=_0x2e61c3;continue;}}_0x1ce95d['push'](_0x27c78f);}_0x2f090e['push']([_0x2d0619['view'],_0x1ce95d]);}return _0x2f090e;}),this['listenTo'](_0x5e07af,'suggestionLoaded',(_0x5e8cfb,_0x28d4b3)=>{this['listenTo'](_0x28d4b3,'change:previous',(_0x5e2561,_0xd3293a,_0x29a27a,_0xa4d19)=>{_0x28d4b3['isInContent']&&(null==_0x29a27a?(this['_updateController'](_0xa4d19['head']),this['_handleSuggestionControllerDelayed'](_0x28d4b3,!0x1)):(this['_updateController'](_0x29a27a['head']),null==_0xa4d19&&this['_handleSuggestionControllerDelayed'](_0x28d4b3,!0x0)));}),null!==_0x28d4b3['previous']?this['_updateController'](_0x28d4b3['head']):this['_handleSuggestionControllerDelayed'](_0x28d4b3,!0x1);}),this['listenTo'](_0x5e07af,'suggestionUnloaded',(_0x5290f7,_0x10b856,_0x2f8d84)=>{this['stopListening'](_0x10b856,'change:previous'),this['_handleControllerBuffer']['delete'](_0x10b856),this['_suggestionToController']['has'](_0x10b856)&&this['_destroyController'](_0x10b856),_0x2f8d84&&this['_updateController'](_0x2f8d84['head']);}),this['listenTo'](_0x5e07af,'suggestionChanged',(_0x30ad95,_0x35b1c3)=>{this['_updateController'](_0x35b1c3);}),this['listenTo'](_0x51400b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2b21eb,'addComment',(_0x498c26,{threadId:_0x1227cd,isFromAdapter:_0x3e7b32})=>{if(_0x3e7b32||!_0x5e07af['hasSuggestion'](_0x1227cd))return;const _0x145b5a=_0x5e07af['getSuggestion'](_0x1227cd);this['_suggestionToController']['get'](_0x145b5a)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3bb683=this['editor']['plugins']['get']('Annotations'),_0x4654f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41e30b=Array['from'](_0x3bb683['activeAnnotations'],_0x566141=>_0x566141['innerView'])['filter'](_0x476af8=>this['_viewToController']['has'](_0x476af8)),_0x4970e6=[];for(const _0x400c55 of _0x41e30b){const _0x42fb7b=this['_viewToController']['get'](_0x400c55)['model']['getAllAdjacentSuggestions']();_0x4970e6['push'](..._0x42fb7b['reduce']((_0x2cde37,_0x2fb56e)=>[..._0x2cde37,..._0x2fb56e['getMarkerNames']()],[]));}_0x4654f9['activeMarkers']=_0x4970e6;}['_addUIComponentsToFactory'](){const _0x161098=this['editor'],_0x570bc8=_0x161098['locale'],_0x31a44c=o(_0x570bc8,'Track\x20changes'),_0x3c1b41=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x31a44c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x570bc8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x570bc8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x570bc8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x570bc8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x204aa3 of _0x3c1b41)if(ae(_0x204aa3)){const _0x998c27=_0x161098['commands']['get'](_0x204aa3['model']['commandName']);_0x204aa3['model']['bind']('isOn','isEnabled')['to'](_0x998c27,'value','isEnabled');}_0x161098['ui']['componentFactory']['add']('trackChanges',_0x67117c=>this['_createToolbarButton'](_0x67117c,_0x3c1b41,_0x31a44c)),_0x161098['ui']['componentFactory']['add']('menuBar:trackChanges',_0x198fea=>this['_createMenuBarMenu'](_0x198fea,_0x3c1b41,_0x31a44c));}['_createToolbarButton'](_0x653c00,_0x5cea55,_0x8e68e7){const _0x2ce483=zt(_0x653c00,Zt),_0x2b03f6=this['editor']['commands']['get']('trackChanges');_0x2ce483['buttonView']['set']({'tooltip':_0x8e68e7,'label':_0x8e68e7,'icon':ie}),_0x2ce483['buttonView']['bind']('isOn')['to'](_0x2b03f6,'value'),_0x2ce483['buttonView']['on']('execute',()=>{_0x2b03f6['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x2ce483,_0x5cea55,{'role':'menu'});const _0x560801=[];for(const _0x5a6f40 of _0x5cea55)ae(_0x5a6f40)&&_0x560801['push'](this['editor']['commands']['get'](_0x5a6f40['model']['commandName']));const _0x50484d=_0x2ce483['buttonView'];return _0x50484d['actionView']['unbind']('isEnabled'),_0x50484d['arrowView']['unbind']('isEnabled'),_0x50484d['actionView']['bind']('isEnabled')['to'](_0x2b03f6,'isEnabled'),_0x50484d['arrowView']['bind']('isEnabled')['toMany'](_0x560801,'isEnabled',(..._0x2bc939)=>_0x2bc939['some'](_0x4ad04f=>_0x4ad04f)),_0x2ce483['on']('execute',_0x2b4dc5=>{this['editor']['execute'](_0x2b4dc5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ce483;}['_createMenuBarMenu'](_0x13d11f,_0x399fb2,_0x4e79af){const _0x131f00=new Kt(_0x13d11f),_0x132c3e=this['editor']['commands']['get']('trackChanges');_0x131f00['buttonView']['set']({'label':_0x4e79af,'icon':ie});const _0x21c5be=new Qt(_0x13d11f);for(const _0x39ee06 of _0x399fb2){if('separator'==_0x39ee06['type']){_0x21c5be['items']['add'](new Jt(_0x13d11f));continue;}const _0x274406=new Xt(_0x13d11f,_0x131f00),_0x11f966=new Yt(_0x13d11f),_0x502798=_0x39ee06['model'];_0x11f966['bind'](...Object['keys'](_0x502798))['to'](_0x502798),_0x11f966['delegate']('execute')['to'](_0x131f00),_0x11f966['on']('execute',()=>{this['editor']['execute'](_0x502798['commandName']),this['editor']['editing']['view']['focus']();}),_0x274406['children']['add'](_0x11f966),_0x21c5be['items']['add'](_0x274406);}return _0x131f00['bind']('isEnabled')['to'](_0x132c3e,'isEnabled'),_0x131f00['panelView']['children']['add'](_0x21c5be),_0x131f00;}['_initializeController'](_0x541c4e){const _0x484bfb=this['editor'],_0x400246=_0x484bfb['config'],_0x922319=_0x484bfb['plugins']['get']('Annotations'),_0x30369c=_0x484bfb['plugins']['get']('CommentsRepository'),_0x212caa=_0x484bfb['plugins']['get']('EditorAnnotations'),_0x42a3eb=_0x484bfb['plugins']['get'](_0x5ed081)['me'],_0x20980f=_0x400246['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x467353,CommentThreadInputView:_0x27b900}=_0x484bfb['plugins']['get']('CommentsUI');let _0x12f416,_0x14427a;this['_annotationViews']['has'](_0x541c4e['id'])?(_0x14427a=this['_annotationViews']['get'](_0x541c4e['id']),_0x12f416=_0x14427a['mainView']):(_0x12f416=new _0x20980f(_0x484bfb['locale'],_0x541c4e,_0x42a3eb,{'disableComments':this['_disableComments'],'editorConfig':_0x400246['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x400246['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x400246['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x400246['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3bd790(_0x400246['get']('locale')),'CommentView':_0x400246['get']('comments')['CommentView'],'CommentsListView':_0x467353,'CommentThreadInputView':_0x27b900}),_0x12f416['acceptButton']['on']('execute',()=>{_0x484bfb['editing']['view']['focus']();}),_0x12f416['discardButton']['on']('execute',()=>{_0x484bfb['editing']['view']['focus']();}),_0x14427a=_0x922319['createAnnotationView'](this['editor']['locale'],_0x12f416),_0x14427a['bind']('isDirty')['to'](_0x12f416,'isDirty'),_0x14427a['bind']('length')['to'](_0x12f416),_0x14427a['bind']('type')['to'](_0x12f416,'type',_0x4972db=>'suggestion-'+_0x4972db),this['_annotationViews']['set'](_0x541c4e['id'],_0x14427a));const _0x378a52=_0x30369c['createCommentThreadController'](_0x541c4e['commentThread'],_0x12f416),_0x2628c4=new oe(_0x484bfb,_0x541c4e,_0x12f416,_0x378a52),_0x2a0cb5=_0x541c4e['getAllAdjacentSuggestions']()['filter'](_0x3fc4b4=>_0x3fc4b4['isInContent']);_0x12f416['descriptionParts']=_0x484bfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2a0cb5),this['_suggestionToController']['set'](_0x541c4e,_0x2628c4),this['_viewToController']['set'](_0x12f416,_0x2628c4);const _0x1c5638=_0x922319['createAnnotation']({'view':_0x14427a,'target':()=>{const _0xcf1a4c=[],_0x5b53ed=_0x541c4e['getAllAdjacentSuggestions']()['filter'](_0x474e6c=>_0x474e6c['isInContent']);for(const _0x54ebcc of _0x5b53ed)_0xcf1a4c['push'](..._0x54ebcc['getMarkers']());return _0x158d66(_0x484bfb['editing'],_0xcf1a4c);},'type':()=>'suggestion-'+_0x2628c4['view']['type']});_0x30369c['_bindAnnotationToEditors'](_0x12f416,_0x1c5638),_0x922319['add'](_0x1c5638),_0x212caa['registerAnnotation'](_0x1c5638);}['_destroyController'](_0x31ce5f){const _0x1025f3=this['editor']['plugins']['get']('CommentsRepository'),_0x4d298e=this['editor']['plugins']['get']('Annotations'),_0xbcf3e=this['_suggestionToController']['get'](_0x31ce5f),_0x49799e=_0xbcf3e['view'],_0x197aab=_0x4d298e['getByInnerView'](_0x49799e);_0x1025f3['_unbindEditors'](_0x49799e),_0x197aab&&_0x4d298e['remove'](_0x197aab),this['_suggestionToController']['delete'](_0x31ce5f),this['_viewToController']['delete'](_0x49799e),_0xbcf3e['destroy']();}['_updateController'](_0x47e3e1){if(!_0x47e3e1['isInContent']||!this['_suggestionToController']['has'](_0x47e3e1))return;const _0x5ab7b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x649b1b=this['_suggestionToController']['get'](_0x47e3e1),_0x545371=_0x47e3e1['getAllAdjacentSuggestions']();_0x649b1b['view']['descriptionParts']=_0x5ab7b7['descriptionFactory']['getDescriptions'](_0x545371);}['destroy'](){for(const _0x2b2ade of this['_suggestionToController']['keys']())this['_destroyController'](_0x2b2ade);for(const _0x1ed202 of this['_annotationViews']['values']())_0x1ed202['mainView']['destroy']();super['destroy']();}}function ae(_0x3ae9d3){return'model'in _0x3ae9d3;}class k extends _0x4679c4{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x54e40e){this['editor']['plugins']['get'](p)['adapter']=_0x54e40e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3c94bf){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3c94bf);}['getSuggestions']({skipNotAttached:_0x4827c1=!0x1,toJSON:_0x37f00b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4827c1,'toJSON':_0x37f00b});}['getSuggestion'](_0x61f26f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x61f26f);}}const T=['Pagination'];class P extends _0x4679c4{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x277592=this['editor'];if(_0x277592['config']['define']('trackChangesData.editorCreator',_0x48986f=>{const _0x192ff7=_0x277592['model']['document']['getRootNames']()['reduce']((_0x59955b,_0x3685fe)=>(_0x59955b[_0x3685fe]='',_0x59955b),{});return _0x277592['constructor']['create'](_0x192ff7,_0x48986f);}),'function'!=typeof _0x277592['config']['get']('trackChangesData')['editorCreator'])throw new _0x306236('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x406ae4){return N(this['editor'],!0x0,_0x406ae4);}['getDataWithDiscardedSuggestions'](_0x2ae3ac){return N(this['editor'],!0x1,_0x2ae3ac);}}class D extends _0x4679c4{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0xd5cdf8){super(_0xd5cdf8),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(_0x52601f){return void 0x0!==_0x52601f['getRootsAttributes'];}async function N(_0x377054,_0x59ba8d,_0x302720){const _0x4554b7=_0x45bc19(_0x377054,T);_0x4554b7['plugins']['push'](p,D),_0x4554b7['rootsAttributes']=v(_0x377054)?_0x377054['getRootsAttributes']():void 0x0;const _0x4e4bcf=document['createDocumentFragment'](),_0x301c57=_0x377054['config']['get']('trackChangesData')['editorCreator'],_0x365bfd=await _0x301c57(_0x4554b7,()=>function(_0x2c807a){const _0x596d40=document['createElement']('div');return _0x2c807a['appendChild'](_0x596d40),_0x596d40;}(_0x4e4bcf));!function(_0xe7cc8d,_0x3f270f){const _0x1d48ed=_0xe7cc8d['model']['document']['getRootNames']()['reduce']((_0x139589,_0x15c571)=>(_0x139589[_0x15c571]=_0xe7cc8d['data']['get']({'rootName':_0x15c571}),_0x139589),{}),_0x22d3c7=_0xe7cc8d['plugins']['get']('Users')['users']['map'](_0x282c88=>({'id':_0x282c88['id'],'name':_0x282c88['name']})),_0x276d68=_0xe7cc8d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3b7195=_0xe7cc8d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d03ec=_0x3f270f['plugins']['get']('Users'),_0x818f0d=_0x3f270f['plugins']['get']('TrackChangesEditing'),_0x224cf8=_0x3f270f['plugins']['get']('CommentsRepository');for(const _0x2c0a87 of _0x22d3c7)_0x2d03ec['getUser'](_0x2c0a87['id'])||_0x2d03ec['addUser'](_0x2c0a87);_0x2d03ec['me']||_0x2d03ec['useAnonymousUser']();for(const _0x106cee of _0x276d68)_0x818f0d['addSuggestionData'](_0x106cee);for(const _0x15ccf6 of _0x3b7195)_0x224cf8['addCommentThread'](_0x15ccf6);_0x3f270f['data']['set'](_0x1d48ed);}(_0x377054,_0x365bfd),_0x365bfd['execute'](_0x59ba8d?'acceptAllSuggestions':'discardAllSuggestions');const _0x584b1c=v(_0x365bfd)?_0x365bfd['getFullData'](_0x302720):_0x365bfd['data']['get'](_0x302720);return await _0x365bfd['destroy'](),_0x584b1c;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|