@ckeditor/ckeditor5-track-changes 45.1.0-alpha.0 → 45.1.0-alpha.1
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 +27 -27
- 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
|
|
24
|
-
_0x4a96fd(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x9e6764,_0x48b457){super(),this['id']=_0x48b457['id'],this['type']=_0x48b457['type'],this['subType']=_0x48b457['subType']||null,this['author']=_0x48b457['author'],this['creator']=_0x48b457['creator']||_0x48b457['author'],this['isExternal']=Boolean(_0x48b457['attributes']&&_0x48b457['attributes']['@external']),this['data']=null,this['_model']=_0x9e6764,this['_onAccept']=_0x48b457['onAccept'],this['_onDiscard']=_0x48b457['onDiscard'],this['_onAttributesChange']=_0x48b457['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x48b457['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 _0x5af794=this;for(;_0x5af794['previous'];)_0x5af794=_0x5af794['previous'];return _0x5af794;}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'](_0x6ccea1){this['_markerNames']['add'](_0x6ccea1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x47fe54=>this['_model']['markers']['get'](_0x47fe54))['filter'](_0x3b9922=>_0x3b9922);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1fb4cd=>{for(const _0x151a19 of this['getMarkers']())_0x1fb4cd['removeMarker'](_0x151a19);}),this['_markerNames']['clear']();}['removeMarker'](_0x576b27){this['_model']['change'](_0x24f324=>{_0x24f324['removeMarker'](_0x576b27);}),this['_markerNames']['delete'](_0x576b27);}['addRange'](_0x35bf69){const _0x3e3905='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x3e3905),this['_model']['change'](_0x38bbd0=>{_0x38bbd0['addMarker'](_0x3e3905,{'range':_0x35bf69,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x404e6d){for(const _0x8b2d4e of this['getRanges']())if(_0x8b2d4e['isIntersecting'](_0x404e6d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x212a9c=>_0x212a9c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x42c1c7,_0x351914)=>[..._0x42c1c7,..._0x351914['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xd022a0=this['getRanges']();if(0x1!=_0xd022a0['length'])return null;const _0x3a6b9b=_0xd022a0[0x0],_0xae67b6=_0x3a6b9b['start']['nodeAfter'],_0x417e69=_0x3a6b9b['end']['nodeBefore'];return _0xae67b6 instanceof _0x3032e9?_0xae67b6!=_0x417e69?null:_0xae67b6: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 _0x355e6a=[];let _0x286383=this['head'];for(;_0x286383;)_0x355e6a['push'](_0x286383),_0x286383=_0x286383['next'];return _0x355e6a;}['setAttribute'](_0xcc4df3,_0x21c046){const _0x9573fa=_0x520eaa(this['attributes']);_0x17fc1a(_0x9573fa,_0xcc4df3,_0x21c046),_0x2bdafa(_0x9573fa,this['attributes'])||(this['attributes']=_0x9573fa,this['_onAttributesChange'](_0x9573fa));}['removeAttribute'](_0x470174){const _0x5a4823=_0x520eaa(this['attributes']);_0x5704cb(_0x5a4823,_0x470174),_0x2bdafa(_0x5a4823,this['attributes'])||(this['attributes']=_0x5a4823,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 _0x2565c0()['substr'](0x1,0x5);}}function c(_0x2776b5,_0x2e261c,_0x2dead5){const _0x530d51=_0x2776b5['t'],t=_0x2776b5['t'];switch(_0x2e261c){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x2dead5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2dead5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2dead5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2dead5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2dead5);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',_0x2dead5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2dead5);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x2dead5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2dead5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2dead5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2dead5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2dead5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2dead5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2dead5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2dead5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2dead5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2dead5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2dead5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2dead5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2dead5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2dead5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2dead5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2dead5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2dead5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2dead5);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'},_0x2dead5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2dead5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2dead5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2dead5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2dead5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2dead5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2dead5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2dead5);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'},_0x2dead5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2dead5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2dead5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2dead5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2dead5);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'},_0x2dead5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2dead5);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'},_0x2dead5);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'},_0x2dead5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2dead5);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'},_0x2dead5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2dead5);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'},_0x2dead5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2dead5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2dead5);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x2dead5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2dead5);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 _0x530d51({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2dead5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x530d51({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2dead5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2dead5);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x2dead5);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x2dead5);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x2dead5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2e261c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x20b012,_0x169ea9){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x20b012,this['_locale']=_0x169ea9;}['getDescriptions'](_0x4a3f4d){const _0x47a707=[],_0x10a8d4=new Set(),_0x5408c2=new Set();for(let _0x36b415=0x0;_0x36b415<_0x4a3f4d['length'];_0x36b415++){const _0x2c9eee=_0x4a3f4d[_0x36b415];if(!_0x2c9eee['isInContent'])continue;const _0x45c549=this['_handleCustomCallbackDescription'](_0x2c9eee);if(_0x45c549){if(null!=_0x2c9eee['subType']){if(_0x10a8d4['has'](_0x2c9eee['subType']))continue;_0x10a8d4['add'](_0x2c9eee['subType']);}_0x47a707['push'](_0x45c549);}else{if('attribute'!=_0x2c9eee['type'])'insertion'!=_0x2c9eee['type']&&'deletion'!=_0x2c9eee['type']||this['_handleInsertRemoveSuggestionDescription'](_0x47a707,_0x2c9eee,_0x4a3f4d[_0x36b415+0x1]);else{const _0x3f1556=_0x2c9eee['data']['key'];if(_0x5408c2['has'](_0x3f1556))continue;_0x5408c2['add'](_0x2c9eee['data']['key']),_0x3f1556==u?this['_handleRenameSuggestionDescription'](_0x47a707,_0x2c9eee):this['_handleAttributeSuggestionDescription'](_0x47a707,_0x2c9eee);}}}return this['_resolveDescriptionItems'](_0x47a707);}['registerDescriptionCallback'](_0x26925a){this['_customCallbacks']['push'](_0x26925a);}['registerElementLabel'](_0x35cd87,_0x38a64f,_0x1267bb=_0x1896ea['normal']){'function'==typeof _0x35cd87?_0x49a35e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x35cd87,'label':_0x38a64f,'priority':_0x1267bb}):this['_itemLabels']['set'](_0x35cd87,_0x38a64f);}['registerAttributeLabel'](_0x579024,_0x4ad51f){this['_attributeLabels']['set'](_0x579024,_0x4ad51f);}['getItemLabel'](_0x9ffe04,_0x154098=0x1){let _0xdba851;for(const _0x4249ff of this['_itemLabelsCallbacks'])if(_0x4249ff['matchingCallback'](_0x9ffe04)){_0xdba851=_0x4249ff['label'];break;}return _0xdba851||(_0xdba851=this['_itemLabels']['get'](_0x9ffe04['name'])),_0xdba851?_0xdba851(_0x154098):0x1!==_0x154098?_0x154098+'\x20'+_0x9ffe04['name']+'s':''+_0x9ffe04['name'];}['_addDescriptionItems'](_0xf4769d,_0x14ffbf){const _0x474a2d=_0x14ffbf['getFirstRange']()['getWalker'](),_0x52bda3='insertion'==_0x14ffbf['type']?'add':'remove';for(const _0x4e0def of _0x474a2d){const _0x24dbc7=_0x4e0def['item'],_0x32fccc=_0xf4769d[_0xf4769d['length']-0x1];if(_0x24dbc7['is']('$textProxy'))_0x32fccc&&_0x32fccc['type']['indexOf']('Container')>-0x1&&_0xf4769d['pop'](),_0x32fccc&&'text'==_0x32fccc['type']?_0x32fccc[_0x52bda3]+=_0x24dbc7['data']:_0xf4769d['push']({'type':'text','add':'add'==_0x52bda3?_0x24dbc7['data']:'','remove':'remove'==_0x52bda3?_0x24dbc7['data']:''});else{if(this['_schema']['isObject'](_0x24dbc7)){const _0x1298d2=_0x24dbc7;if(_0x32fccc&&_0x32fccc['type']['indexOf']('Container')>-0x1&&_0xf4769d['pop'](),'elementEnd'==_0x4e0def['type'])continue;_0x32fccc&&_0x32fccc['type']==_0x52bda3+'Object'&&_0x32fccc['element']['name']==_0x1298d2['name']?_0x32fccc['quantity']++:_0xf4769d['push']({'type':_0x52bda3+'Object','element':_0x1298d2,'quantity':0x1}),_0x474a2d['skip'](_0x23f1d6=>!('elementEnd'==_0x23f1d6['type']&&_0x23f1d6['item']==_0x24dbc7));}else{if(this['_schema']['checkChild'](_0x24dbc7,'$text')||_0x24dbc7['is']('element','softBreak')){const _0x476722=_0x24dbc7;if('add'==_0x52bda3&&'elementStart'==_0x4e0def['type']||'remove'==_0x52bda3&&'elementEnd'==_0x4e0def['type'])continue;if(_0x32fccc&&-0x1==_0x32fccc['type']['indexOf']('Container')){'text'==_0x32fccc['type']&&(_0x32fccc[_0x52bda3]+='\x0a');continue;}let _0x485098;if(_0x485098='add'==_0x52bda3?_0x476722['nextSibling']&&!this['_schema']['isObject'](_0x476722['nextSibling'])?_0x476722['nextSibling']:null:_0x476722['previousSibling']&&!this['_schema']['isObject'](_0x476722['previousSibling'])?_0x476722['previousSibling']:null,_0x476722['isEmpty']||_0x485098&&_0x485098['isEmpty']){const _0x78f5fc=_0x485098&&_0x485098['isEmpty']?_0x485098:_0x476722;_0x32fccc&&_0x32fccc['type']==_0x52bda3+'EmptyContainer'&&_0x32fccc['element']['name']==_0x78f5fc['name']?_0x32fccc['quantity']++:_0xf4769d['push']({'type':_0x52bda3+'EmptyContainer','element':_0x78f5fc,'quantity':0x1});}else _0xf4769d['push']({'type':_0x52bda3+'Container','element':_0x476722});}}}}}['_resolveDescriptionItems'](_0xd0a69e){const _0x1a3550=this['_locale'],_0x2ebf1d=[],_0x3e02fb=[],_0x52ff5c=[];for(const _0x32923c of _0xd0a69e)switch(_0x32923c['type']){case'text':if(_0x32923c['add']=_0x32923c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x32923c['remove']=_0x32923c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x32923c['add']&&''!=_0x32923c['remove']){_0x2ebf1d['push']({'type':'replace','content':c(_0x1a3550,'REPLACE_TEXT',['\x22'+_0x32923c['remove']+'\x22','\x22'+_0x32923c['add']+'\x22'])});continue;}if(null!=_0x32923c['add']['match'](/^ +$/)){_0x2ebf1d['push']({'type':'insertion','content':c(_0x1a3550,'*Insert:*\x20%0',c(_0x1a3550,'ELEMENT_SPACE',_0x32923c['add']['length']))});continue;}if(null!=_0x32923c['remove']['match'](/^ +$/)){_0x2ebf1d['push']({'type':'deletion','content':c(_0x1a3550,'*Remove:*\x20%0',c(_0x1a3550,'ELEMENT_SPACE',_0x32923c['remove']['length']))});continue;}if(''!=_0x32923c['add']){_0x2ebf1d['push']({'type':'insertion','content':c(_0x1a3550,'*Insert:*\x20%0','\x22'+_0x32923c['add']+'\x22')});continue;}_0x2ebf1d['push']({'type':'deletion','content':c(_0x1a3550,'*Remove:*\x20%0','\x22'+_0x32923c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2ebf1d['push']({'type':'insertion','content':c(_0x1a3550,'*Insert:*\x20%0',this['getItemLabel'](_0x32923c['element'],_0x32923c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2ebf1d['push']({'type':'deletion','content':c(_0x1a3550,'*Remove:*\x20%0',this['getItemLabel'](_0x32923c['element'],_0x32923c['quantity']))});continue;case'addContainer':_0x2ebf1d['push']({'type':'insertion','content':c(_0x1a3550,'*Split:*\x20%0',this['getItemLabel'](_0x32923c['element'],_0x32923c['quantity']))});continue;case'removeContainer':_0x2ebf1d['push']({'type':'deletion','content':c(_0x1a3550,'*Merge:*\x20%0',this['getItemLabel'](_0x32923c['element'],_0x32923c['quantity']))});continue;case'addFormat':_0x3e02fb['push'](_0x32923c['key']);continue;case'removeFormat':_0x52ff5c['push'](_0x32923c['key']);continue;default:_0x2ebf1d['push'](_0x32923c);}if(_0x3e02fb['length']){const _0x34d495=_0x3e02fb['map'](_0x480b81=>this['_attributeLabels']['has'](_0x480b81)?this['_attributeLabels']['get'](_0x480b81):_0x480b81)['join'](',\x20');_0x2ebf1d['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x34d495)});}if(_0x52ff5c['length']){const _0xae7482=_0x52ff5c['map'](_0x97b881=>this['_attributeLabels']['has'](_0x97b881)?this['_attributeLabels']['get'](_0x97b881):_0x97b881)['join'](',\x20');_0x2ebf1d['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0xae7482)});}return _0x2ebf1d;}['_handleCustomCallbackDescription'](_0x3eca18){for(const _0x3e549c of this['_customCallbacks']){const _0x2d4d59=_0x3e549c(_0x3eca18);if(_0x2d4d59&&'type'in _0x2d4d59)return _0x2d4d59;}}['_handleAttributeSuggestionDescription'](_0x257996,_0x217dda){const _0x5232fa=_0x217dda['data'],_0x351f33=void 0x0===_0x5232fa['newValue']?'removeFormat':'addFormat';_0x257996['push']({'type':_0x351f33,'key':_0x5232fa['key']});}['_handleRenameSuggestionDescription'](_0x7758da,_0xf67fbf){_0x7758da['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xf67fbf['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x411b05,_0x29230f,_0x1f9fa4){if(this['_addDescriptionItems'](_0x411b05,_0x29230f),_0x1f9fa4&&_0x1f9fa4['getFirstRange']()&&!_0x29230f['getFirstRange']()['end']['isEqual'](_0x1f9fa4['getFirstRange']()['start'])){const _0x435967=_0x411b05[_0x411b05['length']-0x1],_0x4fd1a2='insertion'==_0x29230f['type']?'add':'remove';_0x435967&&'text'==_0x435967['type']&&(_0x435967[_0x4fd1a2]+='\x0a');}}}class U extends _0x5c587b{['afterInit'](){const _0x5f1f9a=this['editor'],_0x3637a5=_0x5f1f9a['plugins']['get']('TrackChangesEditing');_0x5f1f9a['commands']['get']('showAIAssistant')&&_0x3637a5['enableCommand']('showAIAssistant');}}class V extends _0x5c587b{['afterInit'](){const _0x16ece8=this['editor'],_0x4665e5=_0x16ece8['locale'];if(!_0x16ece8['plugins']['has']('AlignmentEditing'))return;const _0x51f2c5=_0x16ece8['plugins']['get']('TrackChangesEditing');_0x51f2c5['enableDefaultAttributesIntegration']('alignment'),_0x51f2c5['registerBlockAttribute']('alignment'),_0x51f2c5['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4665e5,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5452b0=this['editor'],_0x4eb927=_0x5452b0['locale'];_0x5452b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22f122=>{if('formatBlock'!=_0x22f122['type'])return;const {data:_0x3b3bea}=_0x22f122;if(_0x3b3bea&&'alignment'==_0x3b3bea['commandName']){const _0x4fbf10=_0x3b3bea['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x4eb927,'*Format:*\x20%0',function(_0x12dfb6){switch(_0x12dfb6){case'left':return c(_0x4eb927,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x4eb927,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x4eb927,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x4eb927,'FORMAT_JUSTIFY_TEXT');}}(_0x4fbf10))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x5c587b{['afterInit'](){const _0x121dbd=this['editor'],_0x1bb697=_0x121dbd['plugins']['get']('TrackChangesEditing'),_0x4d211a=_0x121dbd['locale'];for(const _0x32f43b of Zt){if(!_0x121dbd['plugins']['has'](_0x32f43b))continue;const _0x3e252f=_0x32f43b['slice'](0x0,-0x7)['toLowerCase'](),_0x3b8243='FORMAT_'+_0x3e252f['toUpperCase']();_0x1bb697['enableDefaultAttributesIntegration'](_0x3e252f),_0x1bb697['registerInlineAttribute'](_0x3e252f),_0x1bb697['descriptionFactory']['registerAttributeLabel'](_0x3e252f,c(_0x4d211a,_0x3b8243));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ec87d=this['editor'],_0x205515=_0x2ec87d['locale'],_0x2da106=_0x2ec87d['plugins']['get']('TrackChangesEditing');function _0x3df299(_0x257c32,_0x3bb6e2){_0x2da106['descriptionFactory']['registerDescriptionCallback'](_0xc9bd92=>{if('formatInline'!=_0xc9bd92['type'])return;const {data:_0x4d85ca}=_0xc9bd92;return _0x4d85ca&&_0x4d85ca['commandName']===_0x257c32?_0x4d85ca['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x205515,'*Format:*\x20%0',_0x3bb6e2)}:{'type':'format','content':c(_0x205515,'*Remove\x20format:*\x20%0',_0x3bb6e2)}:void 0x0;});}_0x3df299('bold',c(_0x205515,'FORMAT_BOLD')),_0x3df299('italic',c(_0x205515,'FORMAT_ITALIC')),_0x3df299('underline',c(_0x205515,'FORMAT_UNDERLINE')),_0x3df299('code',c(_0x205515,'FORMAT_CODE')),_0x3df299('strikethrough',c(_0x205515,'FORMAT_STRIKETHROUGH')),_0x3df299('subscript',c(_0x205515,'FORMAT_SUBSCRIPT')),_0x3df299('superscript',c(_0x205515,'FORMAT_SUPERSCRIPT'));}}class G extends _0x5c587b{['afterInit'](){const _0xd94662=this['editor'],_0x751cfb=_0xd94662['locale'];if(!_0xd94662['plugins']['has']('BlockQuoteEditing'))return;const _0x2a8d24=_0xd94662['plugins']['get']('TrackChangesEditing'),_0x137309=this['editor']['commands']['get']('blockQuote');_0x2a8d24['enableCommand']('blockQuote',(_0x43025e,_0x2c9f4f={})=>{const _0xa42f55=this['editor']['model']['document']['selection'],_0x57a833=_0x2c9f4f&&void 0x0!==_0x2c9f4f['forceValue']?_0x2c9f4f['forceValue']:!_0x137309['value'];let _0x4bf169=[];if(_0x57a833){const _0x5a224d=Array['from'](_0xa42f55['getSelectedBlocks']())['filter'](_0x4d8448=>oo(_0x4d8448)||function(_0x41aa0f,_0xcd20bb){const _0x8cd1ab=_0xcd20bb['checkChild'](_0x41aa0f['parent'],'blockQuote'),_0x95dc04=_0xcd20bb['checkChild'](['$root','blockQuote'],_0x41aa0f);return _0x8cd1ab&&_0x95dc04;}(_0x4d8448,this['editor']['model']['schema']));_0x4bf169=to(_0x5a224d,_0xd94662['model']);}else{const _0x51308c=Array['from'](_0xa42f55['getSelectedBlocks']())['filter'](_0x909bed=>oo(_0x909bed));_0x4bf169=to(_0x51308c,_0xd94662['model']);}_0xd94662['model']['change'](()=>{for(const _0x504228 of _0x4bf169)_0x2a8d24['markBlockFormat'](_0x504228,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x57a833}]});});}),_0x2a8d24['descriptionFactory']['registerDescriptionCallback'](_0x5c9234=>{const {data:_0x444441}=_0x5c9234;if(_0x444441&&'blockQuote'==_0x444441['commandName']){const _0x580d76=c(_0x751cfb,'ELEMENT_BLOCK_QUOTE');return _0x444441['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x751cfb,'*Set\x20format:*\x20%0',_0x580d76)}:{'type':'format','content':c(_0x751cfb,'*Remove\x20format:*\x20%0',_0x580d76)};}});}}function oo(_0x51b8f7){return'blockQuote'==_0x51b8f7['parent']['name'];}class L extends _0x5c587b{['afterInit'](){const _0x46c707=this['editor'],_0xd2739=_0x46c707['locale'],_0x469aae=_0x46c707['plugins']['get']('TrackChangesEditing');_0x46c707['plugins']['has']('BookmarkEditing')&&(_0x469aae['enableCommand']('insertBookmark'),_0x469aae['enableDefaultAttributesIntegration']('updateBookmark'),_0x469aae['registerBlockAttribute']('bookmarkId'),_0x469aae['descriptionFactory']['registerDescriptionCallback'](_0x2eef99=>{if('insertion'!=_0x2eef99['type']&&'deletion'!=_0x2eef99['type']&&'attribute'!=_0x2eef99['type'])return;const _0x9cc288=_0x2eef99['getContainedElement']();if(null==_0x9cc288)return;if(!_0x9cc288['is']('element','bookmark'))return;const _0x19a1fc=_0x9cc288['getAttribute']('bookmarkId');if('insertion'==_0x2eef99['type'])return{'type':'insertion','content':c(_0xd2739,'*Insert:*\x20%0','\x22'+_0x19a1fc+'\x22\x20'+c(_0xd2739,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2eef99['type'])return{'type':'deletion','content':c(_0xd2739,'*Remove:*\x20%0','\x22'+_0x19a1fc+'\x22\x20'+c(_0xd2739,'ELEMENT_BOOKMARK'))};const {data:_0x28c55b}=_0x2eef99;if(!_0x28c55b||'bookmarkId'!=_0x28c55b['key'])return;return{'type':'format','content':c(_0xd2739,'*Set\x20bookmark:*\x20%0','\x22'+_0x28c55b['newValue']+'\x22')};}));}}class J extends _0x5c587b{['afterInit'](){const _0x115bcc=this['editor'];_0x115bcc['plugins']['has']('CaseChange')&&(_0x115bcc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x115bcc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x115bcc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5c587b{['afterInit'](){const _0x1bc838=this['editor'];_0x1bc838['commands']['get']('ckbox')&&_0x1bc838['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x5c587b{['afterInit'](){const _0x7a601a=this['editor'];if(!_0x7a601a['plugins']['has']('CodeBlock'))return;const _0x13b0d1=_0x7a601a['plugins']['get']('TrackChangesEditing'),_0x258b01=_0x7a601a['locale'],_0x138c7c=_0x7a601a['config']['get']('codeBlock')['languages'],_0x22cce9=_0x7a601a['commands']['get']('codeBlock');_0x13b0d1['enableCommand']('indentCodeBlock'),_0x13b0d1['enableCommand']('outdentCodeBlock'),_0x13b0d1['enableCommand']('codeBlock',(_0x18e444,_0x2b05d0={})=>{const _0x86e413=_0x7a601a['model'],_0x49c05f=_0x7a601a['model']['document']['selection'],_0x3624b1=_0x2b05d0&&void 0x0!==_0x2b05d0['forceValue']?_0x2b05d0['forceValue']:!_0x22cce9['value'];let _0x20de3b;_0x2b05d0['language']||(_0x2b05d0['language']=_0x138c7c[0x0]['language']),_0x20de3b=_0x3624b1?Array['from'](_0x49c05f['getSelectedBlocks']())['filter'](_0x35699a=>eo(_0x35699a)||function(_0x50fc44,_0x434212){if(_0x50fc44['is']('rootElement')||_0x434212['isLimit'](_0x50fc44))return!0x1;return _0x434212['checkChild'](_0x50fc44['parent'],'codeBlock');}(_0x35699a,_0x86e413['schema'])):Array['from'](_0x49c05f['getSelectedBlocks']())['filter'](_0x293108=>eo(_0x293108));const _0x34bec5=to(_0x20de3b,_0x86e413);_0x86e413['change'](()=>{for(const _0x52ccbf of _0x34bec5)_0x13b0d1['markBlockFormat'](_0x52ccbf,{'commandName':'codeBlock','commandParams':[{..._0x2b05d0,'forceValue':_0x3624b1}],'formatGroupId':'blockName'});});}),(_0x13b0d1['descriptionFactory']['registerElementLabel']('codeBlock',_0x20a310=>c(_0x258b01,'ELEMENT_CODE_BLOCK',_0x20a310)),_0x13b0d1['descriptionFactory']['registerDescriptionCallback'](_0x44139f=>{if('formatBlock'!=_0x44139f['type'])return;const _0xa41fbe=_0x258b01['t'],{data:_0xe93e8d}=_0x44139f;if(!_0xe93e8d||'codeBlock'!=_0xe93e8d['commandName'])return;const _0x3d36ed=_0xe93e8d['commandParams'][0x0]['language'],_0x5c481e=_0xa41fbe(_0x138c7c['find'](_0x63b6f0=>_0x63b6f0['language']===_0x3d36ed)['label'])['toLowerCase']();return _0xe93e8d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x258b01,'*Set\x20format:*\x20%0',c(_0x258b01,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5c481e+')')}:{'type':'format','content':c(_0x258b01,'*Remove\x20format:*\x20%0',c(_0x258b01,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x45f606){return'codeBlock'==_0x45f606['name'];}class q extends _0x5c587b{['afterInit'](){const _0x1ebb36=this['editor'];if(!_0x1ebb36['plugins']['has']('CommentsEditing'))return;_0x1ebb36['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5a4e64,_0x180ddf,_0x53356d){const _0x2c3416=[];for(const _0x509ac4 of _0x180ddf['getItems']())_0x509ac4['hasAttribute'](_0x5a4e64)&&_0x2c3416['push'](_0x53356d['createRangeOn'](_0x509ac4));return _0x2c3416;}function Fe(_0x197db6,_0x1c3a9b,{showActiveMarker:_0x1ec9d1=!0x0}={}){const _0x23607f=_0x197db6['plugins']['get']('TrackChangesEditing');return(_0x3d0fa8,_0x5ed5d3,_0xe30e1d)=>{if(!_0xe30e1d['consumable']['test'](_0x5ed5d3['markerRange'],_0x3d0fa8['name']))return;const _0x1584ee=_0x5ed5d3['markerRange']['getWalker'](),_0x29aa16=_0x5ed5d3['markerRange']['start'],_0x1fa698=_0x197db6['model']['schema'];let _0x23decf=null,_0x47c424=null,_0x1cf579=!0x1,_0x55e048=!0x1;for(const _0x4ace12 of _0x1584ee){const _0x262894=_0x4ace12['item'];_0x1cf579=_0x1cf579||_0x1fa698['isContent'](_0x262894);const _0x55407e=_0xe30e1d['mapper']['toViewElement'](_0x262894);if(_0x55407e&&_0x55407e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4ace12['type']&&(_0x1fa698['isBlock'](_0x262894)&&!_0x1fa698['isLimit'](_0x262894)&&(_0x262894['nextSibling']||_0x29aa16['isAtEnd']?_0x23decf&&_0x23decf['parent']==_0x262894||(_0x23decf=_0x262894,_0x497b8c(_0x4ace12['previousPosition']),_0x55e048=!0x0):_0x47c424=_0x47c424||_0x4ace12['previousPosition']));}function _0x497b8c(_0x3b6d06){const {id:_0x4d0416,authorId:_0x21d27f}=_0x23607f['_splitMarkerName'](_0x5ed5d3['markerName']),_0x4e0138=_0xe30e1d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c3a9b,'data-suggestion':_0x4d0416,'data-author-id':_0x21d27f}),_0x48beb9=_0xe30e1d['mapper']['toViewPosition'](_0x3b6d06);_0x1ec9d1&&_0x23607f['activeMarkers']['includes'](_0x5ed5d3['markerName'])&&_0xe30e1d['writer']['addClass']('ck-suggestion-marker--active',_0x4e0138),_0xe30e1d['writer']['insert'](_0x48beb9,_0x4e0138),_0xe30e1d['mapper']['bindElementToMarker'](_0x4e0138,_0x5ed5d3['markerName']);}_0x1cf579||_0x55e048||!_0x47c424||_0x497b8c(_0x47c424);};}class z extends _0x5c587b{static get['requires'](){return[_0x323d35];}['init'](){const _0x5c16cb=this['editor'],_0x4bad68=_0x5c16cb['plugins']['get']('TrackChangesEditing');_0x4bad68['enableCommand']('delete');const _0x980bd9=_0x5c16cb['commands']['get']('deleteForward');_0x4bad68['enableCommand']('deleteForward',(_0x596990,_0x220e0c={})=>{const _0x40905d=_0x5c16cb['model']['createSelection'](_0x5c16cb['model']['document']['selection']);_0x40905d['isCollapsed']&&_0x5c16cb['model']['modifySelection'](_0x40905d,{'direction':'forward','unit':_0x220e0c['unit']});const _0x2a0327=_0x40905d['getFirstRange'](),_0x1ad7a8=_0x4ce525['fromRange'](_0x2a0327);let _0x45955a;_0x596990(_0x220e0c),_0x45955a='$graveyard'==_0x1ad7a8['root']['rootName']?_0x5c16cb['model']['createRange'](_0x2a0327['start']):_0x5c16cb['model']['createRange'](_0x1ad7a8['start'],_0x1ad7a8['end']),_0x1ad7a8['detach'](),_0x5c16cb['model']['enqueueChange'](_0x980bd9['buffer']['batch'],_0xda2f66=>{_0x980bd9['buffer']['lock'](),_0xda2f66['setSelection'](_0xda2f66['createRange'](_0x45955a['end'])),_0x980bd9['buffer']['unlock']();});}),_0x5c16cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x5c16cb,'merge'),{'priority':'high'}),_0x5c16cb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x38b311,_0x3c7017,_0x3f4e)=>{_0x3f4e['options']['showSuggestionHighlights']&&Fe(_0x5c16cb,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x38b311,_0x3c7017,_0x3f4e);},{'priority':'high'}),_0x5c16cb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xa931a2,_0x36eac5,_0x3972ef)=>{const _0x2aa418=_0x3972ef['mapper']['markerNameToElements'](_0x36eac5['markerName']);if(_0x2aa418){for(const _0x161d79 of _0x2aa418)_0x161d79['is']('uiElement')&&(_0x3972ef['mapper']['unbindElementFromMarkerName'](_0x161d79,_0x36eac5['markerName']),_0x3972ef['writer']['remove'](_0x161d79));}},{'priority':'high'});}}class W extends _0x5c587b{['afterInit'](){const _0x4065af=this['editor'];if(!_0x4065af['plugins']['has']('ListEditing'))return;const _0x27c73b=_0x4065af['locale'],_0xcb520=_0x4065af['plugins']['get']('TrackChangesEditing'),_0x49d40f=_0x4065af['plugins']['has']('TodoListEditing'),_0x475839=!!_0x4065af['config']['get']('list.multiBlock');function _0x2cffaa(_0x192e93){return{'type':'format','content':''+c(_0x27c73b,'*Set\x20format:*\x20%0',_0x192e93)};}function _0x379bad(_0x3262a5){return{'type':'format','content':''+c(_0x27c73b,'*Remove\x20format:*\x20%0',_0x3262a5)};}_0xcb520['enableDefaultAttributesIntegration']('numberedList'),_0xcb520['enableDefaultAttributesIntegration']('bulletedList'),_0xcb520['enableDefaultAttributesIntegration']('customNumberedList'),_0xcb520['enableDefaultAttributesIntegration']('customBulletedList'),_0xcb520['enableDefaultAttributesIntegration']('indentList'),_0xcb520['enableDefaultAttributesIntegration']('outdentList'),_0xcb520['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xcb520['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xcb520['registerBlockAttribute']('listItemId'),_0xcb520['registerBlockAttribute']('listType'),_0xcb520['registerBlockAttribute']('listIndent'),_0x475839&&(_0xcb520['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xcb520['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x49d40f&&(_0xcb520['enableDefaultAttributesIntegration']('todoList'),_0xcb520['enableDefaultAttributesIntegration']('checkTodoList'),_0xcb520['registerBlockAttribute']('todoListChecked'),_0xcb520['descriptionFactory']['registerDescriptionCallback'](_0x1d0c96=>{const {data:_0x2c6bbc}=_0x1d0c96;if(_0x2c6bbc&&'todoListChecked'==_0x2c6bbc['key'])return{'type':'format','content':_0x2c6bbc['newValue']?c(_0x27c73b,'*Check\x20item*'):c(_0x27c73b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x36ce3d=>{if(_0x36ce3d['batch']['isUndo'])return!0x1;let _0x127672=!0x1;const _0x294185=_0xcb520['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54f346=>'todoListChecked'===_0xcb520['_getAttributeKey'](_0x54f346));for(const _0x12b171 of _0x294185){'todo'!=_0x12b171['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xcb520['_findSuggestions'](_0x12b171['getFirstRange'](),'attribute')['find'](_0x3c7004=>'listType'===_0xcb520['_getAttributeKey'](_0x3c7004['suggestion']))||(_0x36ce3d['removeMarker'](_0x12b171['getFirstMarker']()),_0x127672=!0x0));}return _0x127672;})),_0xcb520['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x27c73b,'FORMAT_INDENT'));const _0x167353={'type':'format','content':''};_0xcb520['descriptionFactory']['registerDescriptionCallback'](_0x463882=>{const {data:_0x2186ea}=_0x463882;if(!_0x2186ea||'listType'!=_0x2186ea['key'])return;let _0x255ffc=_0x463882['head'];for(;_0x255ffc;){if(_0x255ffc['data']&&(('listStyle'==_0x255ffc['data']['key']||'listMarkerStyle'==_0x255ffc['data']['key'])&&(_0x255ffc['data']['newValue']&&'default'!=_0x255ffc['data']['newValue']||'default'!=_0x255ffc['data']['oldValue']&&!_0x2186ea['newValue'])||!_0x475839&&_0x255ffc['data']['key']==u))return _0x167353;_0x255ffc=_0x255ffc['next'];}if(null==_0x2186ea['newValue'])switch(_0x2186ea['oldValue']){case'bulleted':return _0x379bad(c(_0x27c73b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x379bad(c(_0x27c73b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x379bad(c(_0x27c73b,'ELEMENT_TODO_LIST'));}switch(_0x2186ea['newValue']){case'bulleted':return _0x2cffaa(c(_0x27c73b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2cffaa(c(_0x27c73b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2cffaa(c(_0x27c73b,'ELEMENT_TODO_LIST'));}}),_0xcb520['descriptionFactory']['registerDescriptionCallback'](_0x40c168=>{const {data:_0x5a5d35}=_0x40c168;if(_0x5a5d35&&'listIndent'==_0x5a5d35['key'])return null==_0x5a5d35['newValue']||null==_0x5a5d35['oldValue']&&0x0==_0x5a5d35['newValue']?_0x167353:void 0x0;}),_0xcb520['descriptionFactory']['registerDescriptionCallback'](_0x43a45d=>{if('attribute'!=_0x43a45d['type'])return;const {data:_0x1e10aa}=_0x43a45d;if(!_0x1e10aa||'listItemId'!=_0x1e10aa['key'])return;const _0x3f0265=Te(_0x43a45d);return'newValue'==_0x3f0265?{'type':'format','content':c(_0x27c73b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3f0265?{'type':'format','content':c(_0x27c73b,'*Split:*\x20list\x20item')}:_0x167353;}),_0x4065af['model']['document']['registerPostFixer'](_0x111238=>this['listItemIdFixer'](_0x111238)),_0x4065af['model']['document']['registerPostFixer'](_0x11e795=>this['noTrackChangesFixer'](_0x11e795)),_0x4065af['model']['document']['on']('change:data',(_0x5b32e6,_0x520935)=>{if(_0x520935['isUndo']||!_0x520935['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x24416a){if(_0x24416a['batch']['isUndo']||!_0x24416a['batch']['isLocal'])return!0x1;let _0x265dd6=!0x1;const _0x4f55df=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x294be0=>_0x294be0['data']&&'listItemId'==_0x294be0['data']['key'])['filter'](_0x267645=>_0x267645['data']['newValue']&&_0x267645['data']['oldValue']);for(const _0x468204 of _0x4f55df)Te(_0x468204)||(_0x24416a['removeMarker'](_0x468204['getFirstMarker']()),_0x265dd6=!0x0);return _0x265dd6;}['noTrackChangesFixer'](_0x2a1943){if(_0x2a1943['batch']['isUndo']||!_0x2a1943['batch']['isLocal'])return!0x1;const _0x100625=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x100625['trackChangesCommand']['value'])return!0x1;let _0xffc6a2=!0x1;const _0x419462=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x13d297=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x470e12=>'attribute'==_0x470e12['type'])['filter'](_0x972cca=>_0x419462['includes'](_0x972cca['attributeKey']));if(0x0==_0x13d297['length'])return _0xffc6a2;for(const _0x2972e1 of _0x13d297){const _0x1cddf4=_0x100625['_findSuggestions'](_0x2972e1['range'],'attribute')['filter'](_0x4f5fb7=>!_0x4f5fb7['meta']['isNextTo'])['map'](_0x383ebd=>_0x383ebd['suggestion'])['filter'](_0xe8c816=>{const _0x338868=_0x100625['_getAttributeKey'](_0xe8c816);return _0x419462['includes'](_0x338868);});if(_0x1cddf4['length']){for(const _0x305b59 of _0x1cddf4)_0x2a1943['removeMarker'](_0x305b59['getFirstMarker']());_0xffc6a2=!0x0;}}return _0xffc6a2;}['assureChains'](){const _0x33ff11=this['editor']['plugins']['get']('TrackChangesEditing'),_0x466b35=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x33effa;const _0x457f2e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4eb018=>{if(_0x4eb018['data']['oldRange']||!_0x4eb018['data']['newRange'])return null;if(!_0x4eb018['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1e7994}=_0x33ff11['_splitMarkerName'](_0x4eb018['name']);if(!_0x33ff11['hasSuggestion'](_0x1e7994))return null;const _0x35a180=_0x33ff11['getSuggestion'](_0x1e7994);return _0x466b35['includes'](_0x35a180['data']['key']);})['map'](_0x1e4663=>{const {id:_0x20d5ea}=_0x33ff11['_splitMarkerName'](_0x1e4663['name']),_0x567d09=_0x33ff11['getSuggestion'](_0x20d5ea);return _0x33effa=_0x567d09['attributes']['groupId'],_0x567d09['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x457f2e['size'])return;const _0x3bfde7=_0x33ff11['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3bcbf4=>'attribute'==_0x3bcbf4['type']&&_0x3bcbf4['data']&&_0x466b35['includes'](_0x3bcbf4['data']['key'])&&_0x3bcbf4['attributes']['groupId']!=_0x33effa)['map'](_0x4ee8a0=>({'listItem':_0x4ee8a0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ee8a0['attributes']['groupId']})),_0x9a9ace=new Set();for(const {groupId:_0x394fd5,listItem:_0x257092}of _0x3bfde7)_0x457f2e['has'](_0x257092)&&_0x9a9ace['add'](_0x394fd5);for(const _0xf8e31b of _0x33ff11['getSuggestions']())_0x9a9ace['has'](_0xf8e31b['attributes']['groupId'])&&_0xf8e31b['setAttribute']('groupId',_0x33effa);}['_supportLegacySuggestions'](){const _0x23895d=this['editor'],_0x4ffb27=_0x23895d['locale'],_0x45fcb4=_0x23895d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x45fcb4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5b8ad9,_0x90519){const _0x543ca6=[];for(let _0x2fb47e of _0x5b8ad9)_0x2fb47e['start']['nodeAfter']===_0x2fb47e['end']['parent']&&(_0x2fb47e=_0x23895d['model']['createRange'](_0x23895d['model']['createPositionAt'](_0x2fb47e['start']['nodeAfter'],0x0))),_0x543ca6['push'](_0x2fb47e);_0x23895d['model']['change'](_0x22fe24=>{const _0x3ad146=_0x23895d['model']['document']['selection'],_0x3deeaf=Array['from'](_0x3ad146['getRanges']())['map'](_0x586c99=>_0x4ce525['fromRange'](_0x586c99));_0x22fe24['setSelection'](_0x543ca6),_0x23895d['commands']['get'](_0x90519['commandName'])['refresh'](),_0x90519['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x23895d['execute'](_0x90519['commandName'],..._0x90519['commandParams']),_0x22fe24['setSelection'](_0x3deeaf);for(const _0xa865d4 of _0x3deeaf)_0xa865d4['detach']();});}),_0x45fcb4['descriptionFactory']['registerElementLabel'](function(_0x4a4d21){const _0x59a433=!_0x23895d['model']['schema']['isObject'](_0x4a4d21),_0x3f3005=_0x4a4d21['previousSibling'],_0x5609fa=_0x4a4d21['nextSibling'],_0x1368da=_0x4a4d21['getAttribute']('listItemId'),_0x4a2254=!_0x3f3005||_0x3f3005['getAttribute']('listItemId')!==_0x1368da,_0x22164c=!_0x5609fa||_0x5609fa['getAttribute']('listItemId')!==_0x1368da;return _0x59a433&&Boolean(_0x1368da)&&_0x4a2254&&_0x22164c;},_0x845099=>c(_0x4ffb27,'ELEMENT_LIST_ITEM',_0x845099));}['_registerLegacyDescription'](){const _0x29475e=this['editor'],_0x450a72=_0x29475e['locale'];function _0x20624f(_0x20cf4a){const _0x300ded=_0x29475e['commands']['get']('bulletedList')['value'],_0x5accbc=_0x29475e['commands']['get']('numberedList')['value'];return'numberedList'===_0x20cf4a?_0x300ded:_0x5accbc;}_0x29475e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x37311c){if('formatBlock'!=_0x37311c['type'])return;const {data:_0x1ebac6}=_0x37311c;if(!_0x1ebac6)return;let _0x39b151,_0x3d306f,_0x3cceb7,_0x191f12;switch(_0x1ebac6['commandName']){case'bulletedList':_0x3cceb7=_0x1ebac6['commandParams'][0x0]['forceValue'],_0x191f12=_0x20624f(_0x1ebac6['commandName']),_0x39b151=_0x3cceb7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x191f12&&_0x29475e['config']['get']('list.multiBlock')||(_0x39b151='*Change\x20to:*\x20%0'),_0x3d306f={'type':'format','content':c(_0x450a72,_0x39b151,c(_0x450a72,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3cceb7=_0x1ebac6['commandParams'][0x0]['forceValue'],_0x191f12=_0x20624f(_0x1ebac6['commandName']),_0x39b151=_0x3cceb7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x191f12&&_0x29475e['config']['get']('list.multiBlock')||(_0x39b151='*Change\x20to:*\x20%0'),_0x3d306f={'type':'format','content':c(_0x450a72,_0x39b151,c(_0x450a72,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x39b151='*Indent:*\x20%0',_0x3d306f={'type':'format','content':c(_0x450a72,_0x39b151,c(_0x450a72,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x39b151=function(_0x2a6528){const _0x25b66a=_0x2a6528['getFirstRange']();let _0x576fd9=_0x25b66a['start']['nodeAfter'];for(;_0x576fd9&&_0x25b66a['containsItem'](_0x576fd9);){if(_0x576fd9['getAttribute']('listIndent')>0x0)return!0x1;_0x576fd9=_0x576fd9['nextSibling'];}return!0x0;}(_0x37311c)?c(_0x450a72,'*Format:*\x20remove\x20from\x20%0',c(_0x450a72,function(_0x470849){return'ELEMENT_'+_0x470849['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x37311c))):c(_0x450a72,'*Outdent:*\x20%0',c(_0x450a72,'ELEMENT_LIST_ITEM')),_0x3d306f={'type':'format','content':_0x39b151};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ebac6['multipleBlocks']&&(_0x39b151='*Merge:*\x20%0',_0x3d306f={'type':'deletion','content':c(_0x450a72,_0x39b151,c(_0x450a72,'ELEMENT_LIST_ITEM'))});}return _0x3d306f;});}}function Te(_0x3dff5f){let _0x792a46=_0x3dff5f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x792a46;){const _0x2ce5ca=_0x792a46['getAttribute']('listItemId');if(!_0x2ce5ca)return!0x1;if(_0x2ce5ca==_0x3dff5f['data']['newValue'])return'newValue';if(_0x2ce5ca==_0x3dff5f['data']['oldValue'])return'oldValue';_0x792a46=_0x792a46['previousSibling'];}return!0x1;}class Se extends _0x5c587b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1d7d4d=this['editor']['config']['get']('list.properties'),_0xe69c8c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d7d4d['styles']&&(_0xe69c8c['enableDefaultAttributesIntegration']('listStyle'),_0xe69c8c['registerBlockAttribute']('listStyle')),_0x1d7d4d['reversed']&&(_0xe69c8c['enableDefaultAttributesIntegration']('listReversed'),_0xe69c8c['registerBlockAttribute']('listReversed')),_0x1d7d4d['startIndex']&&(_0xe69c8c['enableDefaultAttributesIntegration']('listStart'),_0xe69c8c['registerBlockAttribute']('listStart'));const _0x4b421a={'type':'format','content':''};_0xe69c8c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x53607f=this['editor']['locale'];_0xe69c8c['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x53607f,'FORMAT_LIST_REVERSED')),_0xe69c8c['descriptionFactory']['registerDescriptionCallback'](_0x29d660=>{const {data:_0x275939}=_0x29d660;if(_0x275939&&'listReversed'==_0x275939['key'])return null==_0x275939['newValue']||0x0==_0x275939['newValue']&&null==_0x275939['oldValue']?_0x4b421a:void 0x0;}),_0xe69c8c['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x53607f,'FORMAT_LIST_START')),_0xe69c8c['descriptionFactory']['registerDescriptionCallback'](_0x15f0cf=>{const {data:_0x3b4e88}=_0x15f0cf;if(_0x3b4e88&&'listStart'==_0x3b4e88['key'])return null==_0x3b4e88['newValue']||0x1==_0x3b4e88['newValue']&&null==_0x3b4e88['oldValue']?_0x4b421a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x27ab20=>{if(_0x27ab20['batch']['isUndo'])return!0x1;let _0x1ae1f1=!0x1;const _0x25cf05=_0xe69c8c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x518ccf=>{const _0x309a0a=_0xe69c8c['_getAttributeKey'](_0x518ccf);return'listStart'==_0x309a0a||'listReversed'==_0x309a0a;});for(const _0x4114fc of _0x25cf05){const _0xafb19=_0x4114fc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xafb19||'customNumbered'==_0xafb19)continue;_0xe69c8c['_findSuggestions'](_0x4114fc['getFirstRange'](),'attribute')['find'](_0x2501c1=>'listType'==_0xe69c8c['_getAttributeKey'](_0x2501c1['suggestion']))||(_0x27ab20['removeMarker'](_0x4114fc['getFirstMarker']()),_0x1ae1f1=!0x0);}return _0x1ae1f1;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2cdf24){const _0x593129=this['editor']['locale'],{data:_0x2ea26a}=_0x2cdf24,_0x28af94={'type':'format','content':''};if(!_0x2ea26a||'listStyle'!=_0x2ea26a['key'])return;if(!_0x2ea26a['oldValue'])return'default'==_0x2ea26a['newValue']?_0x28af94:{'type':'format','content':''+c(_0x593129,'*Set\x20format:*\x20%0',c(_0x593129,this['_getTranslationKeyForListStyle'](_0x2ea26a['newValue'])))};if(!_0x2ea26a['newValue']){if('default'==_0x2ea26a['oldValue'])return _0x28af94;let _0x27f1bb=_0x2cdf24['head'];for(;_0x27f1bb;){if(_0x27f1bb['data']&&'listType'==_0x27f1bb['data']['key']&&_0x27f1bb['data']['newValue'])return _0x28af94;_0x27f1bb=_0x27f1bb['next'];}return{'type':'format','content':''+c(_0x593129,'*Remove\x20format:*\x20%0',c(_0x593129,this['_getTranslationKeyForListStyle'](_0x2ea26a['oldValue'])))};}if('default'!=_0x2ea26a['newValue'])return{'type':'format','content':''+c(_0x593129,'*Set\x20format:*\x20%0',c(_0x593129,this['_getTranslationKeyForListStyle'](_0x2ea26a['newValue'])))};let _0x41f853=_0x2cdf24['head'];for(;_0x41f853;){if(_0x41f853['data']&&'listType'==_0x41f853['data']['key']&&_0x41f853['data']['newValue']&&_0x41f853['data']['oldValue'])return _0x28af94;_0x41f853=_0x41f853['next'];}return{'type':'format','content':c(_0x593129,'*Set\x20format:*\x20%0',c(_0x593129,'ELEMENT_'+_0x2cdf24['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xef489f=this['editor'],_0x13e682=_0xef489f['locale'];_0xef489f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cb8d1=>{if('formatBlock'!=_0x5cb8d1['type'])return;const {data:_0x902ebd}=_0x5cb8d1;if(!_0x902ebd)return;let _0x3cad4d,_0x10aea2;switch(_0x902ebd['commandName']){case'listStyle':_0x3cad4d='*Change\x20to:*\x20%0',_0x10aea2={'type':'format','content':c(_0x13e682,_0x3cad4d,c(_0x13e682,this['_getTranslationKeyForListStyle'](_0x902ebd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3cad4d=_0x902ebd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x10aea2={'type':'format','content':c(_0x13e682,_0x3cad4d)};break;case'listStart':_0x3cad4d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x10aea2={'type':'format','content':c(_0x13e682,_0x3cad4d,_0x902ebd['commandParams'][0x0]['startIndex'])};}return _0x10aea2;});}['_getTranslationKeyForListStyle'](_0x35a5ad){return'ELEMENT_'+function(_0x5c03e5){if(_e['includes'](_0x5c03e5))return'bulleted';if(Re['includes'](_0x5c03e5))return'numbered';return null;}(_0x35a5ad)['toUpperCase']()+'_LIST_'+_0x35a5ad['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5c587b{['afterInit'](){const _0x6f4aa3=this['editor'];_0x6f4aa3['commands']['get']('emoji')&&_0x6f4aa3['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5c587b{static get['requires'](){return[_0x4acdbc];}['init'](){const _0x3b1101=this['editor'],_0x17eaa9=_0x3b1101['plugins']['get']('TrackChangesEditing'),_0x21424b=_0x3b1101['commands']['get']('enter');_0x17eaa9['enableCommand']('enter',()=>{_0x3b1101['model']['change'](_0x116b88=>{const _0xb87b36=_0x3b1101['model']['document']['selection'],_0x1cb09d=_0xb87b36['getFirstPosition'](),_0x57f9b8=_0x4ce525['fromRange'](_0xb87b36['getFirstRange']());if(_0x21424b['enterBlock'](_0x116b88)){const _0x36ccd3=_0x3b1101['model']['createPositionAt'](_0x1cb09d['parent']['nextSibling'],0x0),_0x5a0b6f=_0x116b88['createRange'](_0x1cb09d,_0x36ccd3);_0x17eaa9['markInsertion'](_0x5a0b6f);}else _0x116b88['setSelection'](_0x116b88['createRange'](_0x57f9b8['end']));_0x57f9b8['detach'](),_0x21424b['fire']('afterExecute',{'writer':_0x116b88});});}),_0x3b1101['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x3b1101,'split'),{'priority':'high'}),_0x3b1101['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2369a1,_0xeac5f,_0x30a2bc)=>{const _0xcaeda4=_0x30a2bc['mapper']['markerNameToElements'](_0xeac5f['markerName']);if(_0xcaeda4){for(const _0x130f36 of _0xcaeda4)_0x130f36['hasClass']('ck-suggestion-marker-split')&&(_0x30a2bc['mapper']['unbindElementFromMarkerName'](_0x130f36,_0xeac5f['markerName']),_0x30a2bc['writer']['remove'](_0x130f36));}},{'priority':'high'}),_0x3b1101['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x573c11,_0x34bb90,_0xfddb27)=>{_0xfddb27['options']['showSuggestionHighlights']&&Fe(_0x3b1101,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x573c11,_0x34bb90,_0xfddb27);},{'priority':'high'});}}class Z extends _0x5c587b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x191ef9=this['editor']['plugins']['get']('TrackChangesEditing');_0x191ef9['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x191ef9['enableCommand']('findNext'),_0x191ef9['enableCommand']('findPrevious'),_0x191ef9['enableCommand']('replace'),_0x191ef9['enableCommand']('replaceAll');}['handleFindCommand'](_0x1443ae,_0x40dbdb,_0x39b8af={}){const _0x331bbc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1443ae(_0x45e1fc=>{let _0x4ce16c=('string'==typeof _0x40dbdb?_0x331bbc['findByTextCallback'](_0x40dbdb,_0x39b8af):_0x40dbdb)(_0x45e1fc);Array['isArray'](_0x4ce16c)&&(_0x4ce16c={'results':_0x4ce16c,'searchText':'string'==typeof _0x40dbdb?_0x40dbdb:''});const _0xefcf5f=_0x4ce16c['results']['filter'](_0x9446ff=>!0x1===this['_isInDeletionRange'](_0x9446ff,_0x45e1fc['item']));return{..._0x4ce16c,'results':_0xefcf5f};},_0x39b8af);}['_isInDeletionRange'](_0x33bc8b,_0x5bad31){const _0x35b300=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5bad31,_0x33bc8b['start']),this['editor']['model']['createPositionAt'](_0x5bad31,_0x33bc8b['end']));for(const _0x3de857 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x35b300['getIntersection'](_0x3de857['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x5c587b{['afterInit'](){const _0x1b1175=this['editor']['locale'],_0x4b527b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x26b5b4,commandName:_0x34757d}of ro)this['editor']['plugins']['has'](_0x26b5b4)&&(_0x4b527b['enableDefaultAttributesIntegration'](_0x34757d),_0x4b527b['registerInlineAttribute'](_0x34757d));_0x4b527b['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x1b1175,'FORMAT_FONT_SIZE')),_0x4b527b['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x1b1175,'FORMAT_FONT_FAMILY')),_0x4b527b['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x1b1175,'FORMAT_FONT_COLOR')),_0x4b527b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x1b1175,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9e3561=this['editor'],_0x231a1d=_0x9e3561['locale'];_0x9e3561['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14417d=>{const _0x4e848f=_0x231a1d['t'];if('formatInline'!=_0x14417d['type'])return;const {data:_0x41f054}=_0x14417d;if(null!=_0x41f054){if('fontSize'==_0x41f054['commandName']){const _0x467844=_0x41f054['commandParams'][0x0]['value'];if(_0x467844){const _0x1f0f86=_0x4e848f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4c4a7e=>_0x4c4a7e['model']==_0x467844)['title'])['toLowerCase']();return{'type':'format','content':c(_0x231a1d,'*Set\x20font\x20size:*\x20%0',_0x1f0f86)};}return{'type':'format','content':c(_0x231a1d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x41f054['commandName']){const _0x31d069=_0x41f054['commandParams'][0x0]['value'];return _0x31d069?{'type':'format','content':c(_0x231a1d,'*Set\x20font\x20family:*\x20%0',_0x31d069)}:{'type':'format','content':c(_0x231a1d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x41f054['commandName']){const _0x4af2a6=_0x41f054['commandParams'][0x0]['value'];if(_0x4af2a6){const _0x262a24=_0x5dc65d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c8ea8=>_0x5c8ea8['model']==_0x4af2a6);let _0xb9a8b6=_0x4af2a6,_0x17c94e='';return _0x262a24&&(_0xb9a8b6=_0x262a24['label'],_0x17c94e=_0x4e848f(_0xb9a8b6)['toLowerCase']()),{'type':'format','content':c(_0x231a1d,'*Set\x20font\x20color:*\x20%0',_0x17c94e)['trim'](),'color':{'value':_0x4af2a6,'title':_0x17c94e||_0xb9a8b6}};}return{'type':'format','content':c(_0x231a1d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x41f054['commandName']){const _0x12610c=_0x41f054['commandParams'][0x0]['value'];if(_0x12610c){const _0x226bc3=_0x5dc65d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x293c0a=>_0x293c0a['model']==_0x12610c);let _0x4a4393=_0x12610c,_0x202d3e='';return _0x226bc3&&(_0x4a4393=_0x226bc3['label'],_0x202d3e=_0x4e848f(_0x4a4393)['toLowerCase']()),{'type':'format','content':c(_0x231a1d,'*Set\x20font\x20background\x20color:*\x20%0',_0x202d3e)['trim'](),'color':{'value':_0x12610c,'title':_0x202d3e||_0x4a4393}};}return{'type':'format','content':c(_0x231a1d,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x5c587b{['afterInit'](){const _0x47c24e=this['editor'],_0x26fafe=_0x47c24e['plugins']['get']('TrackChangesEditing'),_0xe953d2=_0x47c24e['commands']['get']('copyFormat'),_0x55ffe4=_0x47c24e['commands']['get']('pasteFormat');_0xe953d2&&_0x55ffe4&&(_0x26fafe['enableDefaultAttributesIntegration']('pasteFormat'),_0x26fafe['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x107af1=this['editor'],_0x1b45b0=_0x107af1['locale'];_0x107af1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e3851=>{if('formatBlock'!=_0x2e3851['type']&&'formatInline'!=_0x2e3851['type'])return;const {data:_0x5f2a89}=_0x2e3851;if(_0x5f2a89&&'pasteFormat'===_0x5f2a89['commandName']){const _0x1935b7=[],_0x3f35ad=_0x5f2a89['commandParams'][0x0];for(const [_0xd37b6b,_0x58204e]of Object['entries'](_0x3f35ad))_0x1935b7['push'](so(_0x107af1,_0xd37b6b,_0x58204e));return _0x1935b7['length']?{'type':'format','content':c(_0x1b45b0,'*Set\x20format\x20to:*\x20%0',_0x1935b7['join'](',\x20'))}:{'type':'format','content':c(_0x1b45b0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x37c594,_0x4900a9,_0x2fbe90){const _0x4861ff=_0x37c594['locale']['t'],_0x4a05de=_0x4900a9['split'](/(?=[A-Z])/)['join']('\x20'),_0x1101dd=_0x4861ff(_0x4a05de['charAt'](0x0)['toUpperCase']()+_0x4a05de['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2fbe90)return _0x1101dd;if('fontColor'===_0x4900a9||'fontBackgroundColor'===_0x4900a9){const _0x45ae75=_0x5dc65d(_0x37c594['config']['get']('fontColor.colors'))['find'](_0x26908c=>_0x26908c['model']==_0x2fbe90);return _0x1101dd+'\x20('+(_0x45ae75?_0x4861ff(_0x45ae75['label'])['toLowerCase']():_0x2fbe90)+')';}if('fontSize'===_0x4900a9&&isNaN(parseFloat(_0x2fbe90))){const _0x502d3c=_0x37c594['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x37c594['config']['get']('fontSize.options'))['find'](_0x72da11=>_0x72da11['model']==_0x2fbe90);return _0x1101dd+'\x20('+(_0x502d3c?_0x4861ff(_0x502d3c['title'])['toLowerCase']():_0x2fbe90)+')';}return _0x1101dd+'\x20('+_0x2fbe90+')';}class et extends _0x5c587b{['_headingOptions'];['afterInit'](){const _0x45e9f4=this['editor'];if(!_0x45e9f4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x45e9f4['config']['get']('heading.options');const _0x3c8404=_0x45e9f4['locale'],_0x1a559e=_0x45e9f4['plugins']['get']('TrackChangesEditing');_0x1a559e['enableDefaultAttributesIntegration']('heading');for(const _0x53d6d7 of this['_headingOptions'])'paragraph'!=_0x53d6d7['model']&&_0x1a559e['descriptionFactory']['registerElementLabel'](_0x53d6d7['model'],_0x820f04=>{const _0x427f52=this['_getHeadingLevel'](_0x53d6d7['model']);return null!==_0x427f52?_0x18475d(_0x820f04,_0x427f52):_0x3d48bd(_0x820f04,_0x53d6d7['title']);});function _0x18475d(_0xfa6806,_0x5eb086){return c(_0x3c8404,'ELEMENT_HEADING',[_0xfa6806,_0x5eb086]);}function _0x3d48bd(_0x1ccf76,_0x487a29){return c(_0x3c8404,'ELEMENT_HEADING_CUSTOM',[_0x1ccf76,_0x487a29]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26a3f5=this['editor'],_0x4c1d19=_0x26a3f5['locale'];function _0x383505(_0x34303a,_0x5201ea){return c(_0x4c1d19,'ELEMENT_HEADING_CUSTOM',[_0x34303a,_0x5201ea]);}_0x26a3f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40d662=>{if('formatBlock'!=_0x40d662['type'])return;const {data:_0x22bd1a}=_0x40d662;if(_0x22bd1a&&'heading'==_0x22bd1a['commandName']){const _0x41b706=_0x22bd1a['commandParams'][0x0]['value'],_0x22fc34=this['_getHeadingLevel'](_0x41b706);if(null!==_0x22fc34)return{'type':'format','content':c(_0x4c1d19,'*Change\x20to:*\x20%0',(_0x2f1e9d=0x1,_0x25273a=_0x22fc34,c(_0x4c1d19,'ELEMENT_HEADING',[_0x2f1e9d,_0x25273a])))};const _0x1d2f7d=this['_headingOptions']['find'](_0x4e7cdf=>_0x4e7cdf['model']===_0x41b706)['title'];return{'type':'format','content':c(_0x4c1d19,'*Change\x20to:*\x20%0',_0x383505(0x1,_0x1d2f7d))};}var _0x2f1e9d,_0x25273a;});}['_getHeadingLevel'](_0x1c09c1){const _0x8c9a10=_0x1c09c1['match'](/^heading(\d+)/);if(_0x8c9a10)return _0x8c9a10[0x1];const _0x5ed28b=this['_headingOptions']?.['find'](_0x830614=>_0x830614['model']==_0x1c09c1);if(_0x5ed28b&&_0x5ed28b['view']){const _0x5612cd=_0x5ed28b['view'],_0x28cf60=(_0x5612cd['name']??_0x5612cd)['match'](/^h(\d+)/);if(_0x28cf60)return _0x28cf60[0x1];}return null;}}class nt extends _0x5c587b{['afterInit'](){const _0x387de9=this['editor'];if(!_0x387de9['plugins']['has']('HighlightEditing'))return;const _0x1796c3=_0x387de9['plugins']['get']('TrackChangesEditing'),_0x1715e8=_0x387de9['locale'];_0x1796c3['enableDefaultAttributesIntegration']('highlight'),_0x1796c3['registerInlineAttribute']('highlight'),_0x1796c3['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1715e8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ccab2=this['editor'],_0x3299db=_0x3ccab2['locale'];_0x3ccab2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x228c40=>{if('formatInline'!=_0x228c40['type'])return;const {data:_0x493abb}=_0x228c40;if(_0x493abb&&'highlight'==_0x493abb['commandName']){const _0x162976=_0x3299db['t'],_0x1aa1e0=_0x493abb['commandParams'][0x0]['value'];if(_0x1aa1e0){const _0x18c9a1=_0x3ccab2['config']['get']('highlight.options')['find'](_0x515063=>_0x515063['model']==_0x1aa1e0),_0x235abd=_0x162976(_0x18c9a1['title'])['toLowerCase']();return{'type':'format','content':c(_0x3299db,'*Set\x20highlight:*\x20%0',_0x235abd),'color':{'value':_0x18c9a1['color'],'title':_0x18c9a1['title']}};}return{'type':'format','content':c(_0x3299db,'*Remove\x20highlight*',c(_0x3299db,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5c587b{['afterInit'](){const _0x3336c8=this['editor'];if(!_0x3336c8['plugins']['has']('HorizontalLineEditing'))return;_0x3336c8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x409eea=_0x3336c8['plugins']['get']('TrackChangesEditing'),_0x2e4a79=_0x3336c8['locale'];_0x409eea['descriptionFactory']['registerElementLabel']('horizontalLine',_0xd14555=>c(_0x2e4a79,'ELEMENT_HORIZONTAL_LINE',_0xd14555)),_0x3336c8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x6c60d7,{writer:_0x4d6d69,options:_0xed4314})=>{if(!_0xed4314['showSuggestionHighlights'])return null;const _0x26d5f1=_0x4d6d69['createContainerElement']('div'),_0x248d55=_0x4d6d69['createEmptyElement']('hr');return _0x4d6d69['addClass']('ck-horizontal-line',_0x26d5f1),_0x4d6d69['insert'](_0x4d6d69['createPositionAt'](_0x26d5f1,0x0),_0x248d55),_0x26d5f1;},'converterPriority':'high'});}}class ot extends _0x5c587b{['afterInit'](){const _0x42c243=this['editor'];if(!_0x42c243['plugins']['has']('HtmlEmbed'))return;const _0x5a5c4d=_0x42c243['plugins']['get']('TrackChangesEditing'),_0x5896a6=_0x42c243['locale'];_0x5a5c4d['descriptionFactory']['registerElementLabel']('rawHtml',_0xf95b09=>c(_0x5896a6,'ELEMENT_HTML_EMBED',_0xf95b09)),_0x5a5c4d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5a5c4d['registerBlockAttribute']('value'),_0x5a5c4d['descriptionFactory']['registerDescriptionCallback'](_0x3b05bd=>{if('attribute'!=_0x3b05bd['type'])return;const {data:_0x36a214}=_0x3b05bd;if(_0x36a214&&'value'==_0x36a214['key']&&_0x3b05bd['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x195cfe=c(_0x5896a6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5896a6,'*Change\x20%0\x20content*',_0x195cfe)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe839e1=this['editor'],_0x4e3fd4=_0xe839e1['locale'];_0xe839e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40965a=>{if('formatBlock'!=_0x40965a['type'])return;const {data:_0x252e5b}=_0x40965a;if(_0x252e5b&&'htmlEmbed'==_0x252e5b['commandName']){const _0x227a58=c(_0x4e3fd4,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4e3fd4,'*Change\x20%0\x20content*',_0x227a58)};}});}}class rt extends _0x5c587b{['afterInit'](){const _0x174eb9=this['editor'];if(!_0x174eb9['plugins']['has']('ImageEditing'))return;const _0x33c3b2=_0x174eb9['plugins']['get']('TrackChangesEditing'),_0x5a80cf=_0x174eb9['plugins']['get']('ImageUtils'),_0x41b872=_0x174eb9['locale'];_0x33c3b2['enableCommand']('insertImage'),_0x33c3b2['descriptionFactory']['registerElementLabel']('imageBlock',_0x1c3002=>c(_0x41b872,'ELEMENT_IMAGE',_0x1c3002)),_0x33c3b2['descriptionFactory']['registerElementLabel']('imageInline',_0xabfd6f=>c(_0x41b872,'ELEMENT_INLINE_IMAGE',_0xabfd6f)),_0x33c3b2['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x41b872,'ELEMENT_CAPTION')),_0x174eb9['plugins']['has']('ImageUploadEditing')&&_0x33c3b2['enableCommand']('uploadImage'),_0x174eb9['plugins']['has']('ImageBlockEditing')&&_0x174eb9['plugins']['has']('ImageInlineEditing')&&(_0x33c3b2['enableCommand']('imageTypeInline',(_0x2c44da,_0x4827bf)=>{const _0x188406=_0x5a80cf['getClosestSelectedImageElement'](_0x174eb9['model']['document']['selection']);_0x174eb9['model']['change'](()=>{_0x33c3b2['markBlockFormat'](_0x188406,{'commandName':'imageTypeInline','commandParams':[_0x4827bf]},[],'convertBlockImageToInline');});}),_0x33c3b2['enableCommand']('imageTypeBlock',(_0x860d9f,_0x5a5f9c)=>{_0x174eb9['model']['change'](_0x1dd8e7=>{let _0x52bf0c=_0x5a80cf['getClosestSelectedImageElement'](_0x174eb9['model']['document']['selection']),_0xca9263=_0x1dd8e7['createRangeOn'](_0x52bf0c);const _0x141c36=_0x8e442d['fromPosition'](_0xca9263['start'],'toPrevious'),_0x265331=_0x8e442d['fromPosition'](_0xca9263['end'],'toNext');_0x33c3b2['forceDefaultExecution'](()=>_0x860d9f(_0x5a5f9c)),_0x52bf0c=_0x5a80cf['getClosestSelectedImageElement'](_0x174eb9['model']['document']['selection']),_0xca9263=_0x1dd8e7['createRangeOn'](_0x52bf0c);const _0x26bc9a=_0x1dd8e7['createRange'](_0x141c36,_0x265331);_0x141c36['detach'](),_0x265331['detach'](),_0x33c3b2['markBlockFormat'](_0x52bf0c,{'commandName':'imageTypeInline','commandParams':[_0x5a5f9c]},[],'convertInlineImageToBlock'),_0x26bc9a['start']['isBefore'](_0xca9263['start'])&&_0x33c3b2['markInsertion'](_0x1dd8e7['createRange'](_0x26bc9a['start'],_0xca9263['start']),'convertInlineImageToBlock'),_0xca9263['end']['isBefore'](_0x26bc9a['end'])&&_0x33c3b2['markInsertion'](_0x1dd8e7['createRange'](_0xca9263['end'],_0x26bc9a['end']),'convertInlineImageToBlock');});}),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x33c3b2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3ce816])=>{const _0x28f18b=_0x33c3b2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x366a4c=_0x3ce816['start'],_0x364b1c=_0x3ce816['end'];const _0xc14fcf=_0x174eb9['model']['schema']['getNearestSelectionRange'](_0x366a4c,'backward'),_0x192b91=_0x174eb9['model']['schema']['getNearestSelectionRange'](_0x364b1c,'forward');_0xc14fcf['isCollapsed']&&(_0x366a4c=_0xc14fcf['start']),_0x192b91['isCollapsed']&&(_0x364b1c=_0x192b91['end']),_0x28f18b([_0x174eb9['model']['createRange'](_0x366a4c,_0x364b1c)]);}),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3f5887),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3f5887)),_0x174eb9['plugins']['has']('ImageCaptionEditing')&&(_0x33c3b2['enableCommand']('toggleImageCaption',(_0x3e3111,_0x273376)=>{const _0x5c680c=_0x174eb9['plugins']['get']('ImageCaptionUtils');let _0x39d3aa=_0x5a80cf['getClosestSelectedImageElement'](_0x174eb9['model']['document']['selection']),_0x2f94e1=_0x5c680c['getCaptionFromImageModelElement'](_0x39d3aa);_0x174eb9['model']['change'](()=>{if(_0x2f94e1)return void _0x33c3b2['markDeletion'](_0x174eb9['model']['createRangeOn'](_0x2f94e1));const _0x5c7bad=_0x5a80cf['isBlockImage'](_0x39d3aa);_0x3e3111(_0x273376),_0x39d3aa=_0x5a80cf['getClosestSelectedImageElement'](_0x174eb9['model']['document']['selection']),_0x2f94e1=_0x5c680c['getCaptionFromImageModelElement'](_0x39d3aa),_0x33c3b2['markInsertion'](_0x174eb9['model']['createRangeOn'](_0x2f94e1),_0x5c7bad?null:'imageCaption');});}),_0x33c3b2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3f5887));const _0x10c23f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x434542(_0xf5a3a7,_0x403223){const _0x11c841=_0x10c23f['findIndex'](({type:_0x194164,subType:_0x1665ed})=>_0xf5a3a7['type']==_0x194164&&_0xf5a3a7['subType']==_0x1665ed),_0x52279d=_0x10c23f['findIndex'](({type:_0x243bac,subType:_0x41bc94})=>_0x403223['type']==_0x243bac&&_0x403223['subType']==_0x41bc94);if(_0x11c841<0x0||_0x52279d<0x0)return!0x1;const _0x544bfe=_0xf5a3a7['getFirstRange'](),_0x4b1c98=_0x403223['getFirstRange']();if((0x0==_0x11c841||0x1==_0x11c841)&&0x2==_0x52279d&&_0x544bfe['isIntersecting'](_0x4b1c98))return!0x0;if(0x2==_0x11c841&&0x3==_0x52279d){const _0x4bd5a9=_0x33c3b2['_findSuggestions'](_0x544bfe,'insertion')['filter'](({suggestion:_0xed3ad9,meta:_0x211772})=>_0x211772['isOwn']&&'convertInlineImageToBlock'==_0xed3ad9['subType']);if(_0x4bd5a9['length']>0x1&&_0x4b1c98['end']['isEqual'](_0x544bfe['start']))return!0x0;if(0x1==_0x4bd5a9['length']&&(_0x544bfe['start']['isEqual'](_0x4b1c98['end'])||_0x544bfe['end']['isEqual'](_0x4b1c98['start'])))return!0x0;}if(0x3==_0x11c841&&0x3==_0x52279d&&_0x544bfe['start']['isBefore'](_0x4b1c98['start'])){const _0x1f9027=_0x544bfe['end']['nodeAfter'],_0x41fa30=_0x4b1c98['start']['nodeBefore'];return _0x5a80cf['isBlockImage'](_0x1f9027)&&_0x1f9027===_0x41fa30;}return!0x1;}function _0x3f5887(_0x96419e,_0x473118){return _0x434542(_0x96419e,_0x473118)?[_0x96419e,_0x473118]:_0x434542(_0x473118,_0x96419e)?[_0x473118,_0x96419e]:null;}_0x174eb9['plugins']['has']('ImageResize')&&(_0x33c3b2['enableDefaultAttributesIntegration']('resizeImage'),_0x33c3b2['registerBlockAttribute']('resizedWidth'),_0x33c3b2['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x41b872,'FORMAT_IMAGE_SIZE'))),_0x174eb9['plugins']['has']('ImageTextAlternativeEditing')&&(_0x33c3b2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x33c3b2['registerBlockAttribute']('alt')),_0x174eb9['plugins']['has']('PictureEditing')&&(_0x33c3b2['registerBlockAttribute']('sources'),_0x33c3b2['descriptionFactory']['registerDescriptionCallback'](_0xab3f0e=>{if('attribute'!=_0xab3f0e['type'])return;const {data:_0x39c243}=_0xab3f0e;return _0x39c243&&'sources'==_0x39c243['key']?{'type':'format','content':''}:void 0x0;})),_0x174eb9['plugins']['has']('ImageSizeAttributes')&&(_0x33c3b2['registerBlockAttribute']('width'),_0x33c3b2['registerBlockAttribute']('height'),_0x33c3b2['descriptionFactory']['registerDescriptionCallback'](_0x2100e5=>{if('attribute'!=_0x2100e5['type'])return;const {data:_0x2b4900}=_0x2100e5;return!_0x2b4900||'width'!=_0x2b4900['key']&&'height'!=_0x2b4900['key']?void 0x0:{'type':'format','content':''};})),_0x33c3b2['descriptionFactory']['registerDescriptionCallback'](_0x18c7ba=>{if(!!_0x10c23f['find'](({type:_0x41d6be,subType:_0x37710d})=>_0x18c7ba['type']==_0x41d6be&&_0x18c7ba['subType']==_0x37710d))return _0x18c7ba['previous']?{}:void 0x0;}),_0x33c3b2['descriptionFactory']['registerDescriptionCallback'](_0x11b052=>{if('insertion'==_0x11b052['type']||'deletion'==_0x11b052['type']){const _0x4ddbed=_0x11b052['getContainedElement']();if(_0x4ddbed&&_0x4ddbed['is']('element','caption'))return{'type':'insertion'==_0x11b052['type']?'addObject':'removeObject','element':_0x4ddbed,'quantity':0x1};}}),_0x33c3b2['descriptionFactory']['registerDescriptionCallback'](_0x70fde8=>'formatBlock'==_0x70fde8['type']&&'convertInlineImageToBlock'==_0x70fde8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x70fde8['type']&&'convertBlockImageToInline'==_0x70fde8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x33c3b2['descriptionFactory']['registerDescriptionCallback'](_0x4c6d1c=>{if('attribute'!=_0x4c6d1c['type'])return;const {data:_0x4db1e0}=_0x4c6d1c;if(!_0x4db1e0||'alt'!=_0x4db1e0['key'])return;const _0x357163=_0x4db1e0['newValue'];return _0x357163?{'type':'format','content':c(_0x41b872,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x357163+'\x22')}:{'type':'format','content':c(_0x41b872,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bc59f=this['editor'],_0xecc37e=_0x4bc59f['locale'];_0x4bc59f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x460d45=>{if('formatBlock'!=_0x460d45['type']&&'formatInline'!=_0x460d45['type'])return;const {data:_0x26c13d}=_0x460d45;if(_0x26c13d){if('imageTextAlternative'==_0x26c13d['commandName']){const _0x58820d=_0x26c13d['commandParams'][0x0]['newValue'];return _0x58820d?{'type':'format','content':c(_0xecc37e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x58820d+'\x22')}:{'type':'format','content':c(_0xecc37e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x26c13d['commandName']){const _0x89cbce=_0x26c13d['commandParams'][0x0]['width'];return _0x89cbce?{'type':'format','content':c(_0xecc37e,'*Set\x20image\x20width:*\x20%0',_0x89cbce)}:{'type':'format','content':c(_0xecc37e,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5c587b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3f0757=this['editor']['locale'],_0x3c0892=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c0892['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3c0892['registerBlockAttribute']('src'),_0x3c0892['descriptionFactory']['registerDescriptionCallback'](_0x5f5690=>{if('attribute'!=_0x5f5690['type'])return;const {data:_0x5a9db0}=_0x5f5690;return _0x5a9db0&&'src'==_0x5a9db0['key']?_0x5a9db0['newValue']&&_0x5a9db0['oldValue']?{'type':'format','content':c(_0x3f0757,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x312be0=this['editor']['plugins']['get']('TrackChangesEditing');_0x312be0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x312be0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x312be0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x312be0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x325d58=this['editor'],_0x1a201f=_0x325d58['locale'];_0x325d58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b3602=>{if('formatBlock'!=_0x2b3602['type']&&'formatInline'!=_0x2b3602['type'])return;const {data:_0x407eb6}=_0x2b3602;if(!_0x407eb6||'replaceImageSource'!=_0x407eb6['commandName'])return;return{'type':'format','content':c(_0x1a201f,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5c587b{['afterInit'](){const _0x542ecb=this['editor'];if(!_0x542ecb['plugins']['has']('ImageStyleEditing'))return;const _0x47e84a=_0x542ecb['plugins']['get']('TrackChangesEditing'),_0x3fdbf4=_0x542ecb['plugins']['get']('ImageUtils'),_0x1f0593={};_0x47e84a['enableCommand']('imageStyle',(_0x53e035,_0x646281)=>{const _0x1ed321=_0x542ecb['plugins']['get']('Users')['me'],_0x1053b5=_0x542ecb['commands']['get']('imageStyle');let _0x40eaf8=_0x3fdbf4['getClosestSelectedImageElement'](_0x542ecb['model']['document']['selection']),_0x2278aa=_0x542ecb['model']['createRangeOn'](_0x40eaf8),_0x1d50f5=_0x1053b5['value'];if(_0x1d50f5==_0x646281['value'])return;const _0x1733c7={'commandName':'imageStyle','commandParams':[_0x646281],'formatGroupId':_0x2565c0()};_0x542ecb['model']['change'](()=>{if(_0x47e84a['getSuggestions']()['filter'](_0xd79a88=>_0xd79a88['isInContent']&&_0x1ed321==_0xd79a88['author']&&('formatBlock'==_0xd79a88['type']||'formatInline'==_0xd79a88['type'])&&('imageStylePreApply'==_0xd79a88['subType']||'imageStylePostApply'==_0xd79a88['subType'])&&_0xd79a88['getFirstRange']()['isEqual'](_0x2278aa))['forEach'](_0x284470=>_0x47e84a['discardSuggestion'](_0x284470['head'])),_0x40eaf8=_0x3fdbf4['getClosestSelectedImageElement'](_0x542ecb['model']['document']['selection']),_0x2278aa=_0x542ecb['model']['createRangeOn'](_0x40eaf8),_0x1053b5['refresh'](),_0x542ecb['commands']['get']('imageTypeInline')['refresh'](),_0x542ecb['commands']['get']('imageTypeBlock')['refresh'](),_0x1d50f5=_0x1053b5['value'],_0x1d50f5!=_0x646281['value'])return _0x3fdbf4['isInlineImage'](_0x40eaf8)&&_0x1053b5['shouldConvertImageType'](_0x646281['value'],_0x40eaf8)?(_0x53e035({..._0x646281,'setImageSizes':!0x1}),_0x40eaf8=_0x3fdbf4['getClosestSelectedImageElement'](_0x542ecb['model']['document']['selection']),void _0x47e84a['markBlockFormat'](_0x40eaf8,{..._0x1733c7,'commandReversedParams':[{'value':_0x1d50f5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3fdbf4['isBlockImage'](_0x40eaf8)?_0x47e84a['markBlockFormat'](_0x40eaf8,_0x1733c7,[],'imageStylePostApply'):_0x47e84a['markInlineFormat'](_0x2278aa,_0x1733c7,'imageStylePostApply'));});});for(const _0x53e828 of _0x542ecb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1f0593[_0x53e828['name']]=_0x53e828['title']['toLowerCase']();_0x47e84a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x47e84a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x47e84a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x47e84a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2a2db0])=>{_0x3fdbf4['setImageNaturalSizeAttributes'](_0x2a2db0['getContainedElement']());}),_0x47e84a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4b44e3,_0x352c60)=>{_0x47e84a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4b44e3,{'commandName':_0x352c60['commandName'],'commandParams':_0x352c60['commandReversedParams']});}),_0x47e84a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5a4dfd,_0x3b30a6){if(_0x5be2a7(_0x5a4dfd,_0x3b30a6))return[_0x5a4dfd,_0x3b30a6];if(_0x5be2a7(_0x3b30a6,_0x5a4dfd))return[_0x3b30a6,_0x5a4dfd];return null;});const _0x475108=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5be2a7(_0x108e90,_0xf71c73){const _0x416adf=_0x475108['findIndex'](({type:_0x50c832,subType:_0x1df714})=>_0x108e90['type']==_0x50c832&&_0x108e90['subType']==_0x1df714),_0x385673=_0x475108['findIndex'](({type:_0x17276a,subType:_0x3c9b01})=>_0xf71c73['type']==_0x17276a&&_0xf71c73['subType']==_0x3c9b01);if(_0x416adf<0x0||_0x385673<0x0)return!0x1;const _0x31f930=_0x108e90['getFirstRange'](),_0x10afb6=_0xf71c73['getFirstRange']();if((0x0==_0x416adf||0x1==_0x416adf)&&0x2==_0x385673&&_0x31f930['isIntersecting'](_0x10afb6))return!0x0;if(0x2==_0x416adf&&0x3==_0x385673){const _0x4fe322=_0x47e84a['_findSuggestions'](_0x31f930,'insertion')['filter'](({suggestion:_0x386f5f,meta:_0x23ed95})=>_0x23ed95['isOwn']&&'convertInlineImageToBlock'==_0x386f5f['subType']);if(_0x4fe322['length']>0x1&&_0x10afb6['end']['isEqual'](_0x31f930['start']))return!0x0;if(0x1==_0x4fe322['length']&&(_0x31f930['start']['isEqual'](_0x10afb6['end'])||_0x31f930['end']['isEqual'](_0x10afb6['start'])))return!0x0;}if(0x3==_0x416adf&&0x3==_0x385673&&_0x31f930['start']['isBefore'](_0x10afb6['start'])){const _0x522d5f=_0x31f930['end']['nodeAfter'],_0x4b7c78=_0x10afb6['start']['nodeBefore'];return _0x3fdbf4['isBlockImage'](_0x522d5f)&&_0x522d5f===_0x4b7c78;}return!0x1;}_0x542ecb['model']['document']['registerPostFixer'](()=>{let _0x34a281=!0x1;const _0x457c6f=Array['from'](_0x542ecb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34a903,data:_0x5d040c}of _0x457c6f){const {group:_0x5554c7,type:_0x4f0d43,subType:_0x10cf0a,id:_0x1d7345}=_0x47e84a['_splitMarkerName'](_0x34a903);if('suggestion'==_0x5554c7&&_0x47e84a['hasSuggestion'](_0x1d7345)){if('formatBlock'==_0x4f0d43&&('imageStylePreApply'==_0x10cf0a||'imageStylePostApply'==_0x10cf0a)){const _0x4e19ad=_0x47e84a['getSuggestion'](_0x1d7345);if(_0x5d040c['newRange']){const _0x5916d1=_0x4e19ad['getFirstRange']()['getContainedElement']();if(_0x3fdbf4['isBlockImage'](_0x5916d1))continue;_0x47e84a['discardSuggestion'](_0x4e19ad),_0x34a281=!0x0;}}if('insertion'==_0x4f0d43&&'imageCaption'==_0x10cf0a&&!_0x5d040c['newRange']){const _0x407f4e=_0x47e84a['getSuggestion'](_0x1d7345);_0x407f4e['next']&&_0x407f4e['next']['isInContent']&&(_0x47e84a['discardSuggestion'](_0x407f4e['next']),_0x34a281=!0x0);}}}return _0x34a281;}),this['_registerLegacyDescription'](_0x1f0593);}['_registerLegacyDescription'](_0x2c1682){const _0x2f9d2b=this['editor'],_0x21f120=_0x2f9d2b['locale'];_0x2f9d2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x449a7f=>{if('formatBlock'!=_0x449a7f['type']&&'formatInline'!=_0x449a7f['type'])return;const {data:_0x2c527d}=_0x449a7f;if(!_0x2c527d||'imageStyle'!=_0x2c527d['commandName'])return;const _0x856e53=_0x2c527d['commandParams'][0x0]['value'];return _0x3da26f('side'===_0x856e53?c(_0x21f120,'FORMAT_SIDE_IMAGE'):_0x2c1682[_0x856e53]||_0x856e53);function _0x3da26f(_0x1f0c14){return{'type':'format','content':c(_0x21f120,'*Format:*\x20%0',_0x1f0c14)};}});}}class ut extends _0x5c587b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3872aa){super(_0x3872aa),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x486e64=this['editor'],_0xd8d522=_0x486e64['commands']['get']('importWord'),_0x3ec571=_0x486e64['commands']['get']('trackChanges');_0xd8d522&&(_0xd8d522['on']('execute',(_0x42c981,[,_0x3e4599])=>{this['_trackChangesValueDuringImport']=_0x3ec571['value'],_0x3e4599['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd8d522,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd8d522,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3ec571['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x486e64['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x32584a,_0x4670cc){const {suggestions:_0x52c5a8}=_0x4670cc,_0x1ca191=this['editor']['commands']['get']('trackChanges'),_0x59d60b=_0x1ca191['value'];this['_trackChangesValueDuringImport']!==_0x59d60b&&(_0x1ca191['execute'](),this['_trackChangesExecuted']=!0x0),_0x52c5a8&&_0x52c5a8['forEach'](({id:_0x181785,type:_0xaed74b,author:_0x349097,created_at:_0x580b68})=>{const _0x402fc3={'id':_0x181785,'type':_0xaed74b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x349097,'createdAt':_0x580b68?new Date(_0x580b68):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x402fc3);});}}class ft extends _0x5c587b{['afterInit'](){const _0x2c37ce=this['editor'],_0xf0d73b=_0x2c37ce['plugins']['get']('TrackChangesEditing');if(_0x2c37ce['plugins']['has']('IndentEditing')&&(_0xf0d73b['enableCommand']('indent'),_0xf0d73b['enableCommand']('outdent')),_0x2c37ce['plugins']['has']('IndentBlock')){for(const _0x51f623 of['indentBlock','outdentBlock'])_0xf0d73b['enableDefaultAttributesIntegration'](_0x51f623);}const _0x55e327=_0x2c37ce['locale'];_0xf0d73b['registerBlockAttribute']('blockIndent'),_0xf0d73b['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x55e327,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cffe2=this['editor'],_0x62e94b=_0x1cffe2['locale'],_0x15be59=_0x1cffe2['plugins']['get']('TrackChangesEditing');_0x15be59['descriptionFactory']['registerDescriptionCallback'](_0x29f9a2=>{if('formatBlock'!=_0x29f9a2['type'])return;const {data:_0x129f45}=_0x29f9a2;if(!_0x129f45)return;if('indentBlock'!=_0x129f45['commandName']&&'outdentBlock'!=_0x129f45['commandName'])return;const _0x29c323=_0x29f9a2['getItems']()[0x0],_0x5e8700=_0x15be59['descriptionFactory']['getItemLabel'](_0x29c323);return'indentBlock'==_0x129f45['commandName']?{'type':'format','content':c(_0x62e94b,'*Indent:*\x20%0',_0x5e8700)}:'outdentBlock'==_0x129f45['commandName']?{'type':'format','content':c(_0x62e94b,'*Outdent:*\x20%0',_0x5e8700)}:void 0x0;});}}class ht extends _0x5c587b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5c587b{['afterInit'](){const _0x4b6eba=this['editor'];if(!_0x4b6eba['plugins']['has']('LinkEditing'))return;const _0x26097d=_0x4b6eba['plugins']['get']('TrackChangesEditing'),_0x883371=_0x4b6eba['commands']['get']('link');_0x26097d['enableDefaultAttributesIntegration']('link'),_0x26097d['enableDefaultAttributesIntegration']('unlink'),_0x26097d['registerInlineAttribute']('linkHref');for(const _0x8f5ec4 of _0x883371['manualDecorators'])_0x26097d['registerInlineAttribute'](_0x8f5ec4['id']),_0x26097d['descriptionFactory']['registerAttributeLabel'](_0x8f5ec4['id'],'link\x20('+_0x8f5ec4['label']['toLowerCase']()+')');_0x26097d['descriptionFactory']['registerDescriptionCallback'](_0x22e762=>{if('attribute'!=_0x22e762['type'])return;const {data:_0x1bfd69}=_0x22e762;if(!_0x1bfd69||'linkHref'!=_0x1bfd69['key'])return;const _0x40aa63=_0x1bfd69['newValue'],_0x279328=_0x4b6eba['locale'];return{'type':'format','content':null==_0x40aa63?c(_0x279328,'*Remove\x20link*'):c(_0x279328,'*Set\x20link:*\x20%0','\x22'+_0x40aa63+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b7f52=this['editor'],_0x1024a1=_0x5b7f52['locale'];_0x5b7f52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x141491=>{if('formatInline'!=_0x141491['type'])return;const {data:_0x497af8}=_0x141491;if(_0x497af8){if('link'==_0x497af8['commandName']){const _0x4572ce=_0x497af8['commandParams'][0x0];return{'type':'format','content':c(_0x1024a1,'*Set\x20link:*\x20%0','\x22'+_0x4572ce+'\x22')};}return'unlink'==_0x497af8['commandName']?{'type':'format','content':c(_0x1024a1,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5c587b{['afterInit'](){const _0x2905f2=this['editor'],_0x49db68=_0x2905f2['locale'];if(!_0x2905f2['plugins']['has']('LegacyListEditing'))return;const _0x341cbe=_0x2905f2['plugins']['get']('TrackChangesEditing'),_0x438e73=_0x2905f2['plugins']['has']('LegacyTodoListEditing');function _0x4c39ad(_0x462df4){return()=>{const _0x67c337=_0x2905f2['model']['document']['selection'],_0x5eb0c0=_0x2905f2['commands']['get'](_0x462df4);if(_0x5eb0c0['value'])return void _0x2905f2['execute']('paragraph',{});const _0x2c50de=_0x462df4['slice'](0x0,-0x4),_0x4f6a1c=function(_0x35ef52,_0x10d714,_0x57bb45){let _0x167213=Array['from'](_0x35ef52)['filter'](_0x1ff376=>function(_0xc44bf8,_0x325f6e){return _0x325f6e['checkChild'](_0xc44bf8['parent'],'listItem')&&!_0x325f6e['isObject'](_0xc44bf8);}(_0x1ff376,_0x57bb45));_0x167213=_0x167213['filter'](_0x2cbb05=>!_0x2cbb05['is']('element','listItem')||_0x2cbb05['getAttribute']('listType')!=_0x10d714);const _0x2fec94=new Set();for(const _0x3e1124 of _0x167213)_0x3e1124['is']('element','listItem')?_0x2fec94['add'](Le(_0x3e1124)):_0x2fec94['add'](_0x3e1124);return Array['from'](_0x2fec94);}(_0x67c337['getSelectedBlocks'](),_0x2c50de,_0x2905f2['model']['schema']);_0x2905f2['model']['change'](()=>{for(const _0x15dbba of _0x4f6a1c)_0x341cbe['markBlockFormat'](_0x15dbba,{'commandName':_0x462df4,'commandParams':[{'forceValue':!_0x5eb0c0['value']}],'formatGroupId':'blockName'},Ee(_0x15dbba));});};}function _0x35778c(_0x3acb0d){return()=>{const _0x225dfa=function(_0x3b5e8b){let _0x68c48e=Array['from'](_0x3b5e8b);const _0x244c4f=_0x68c48e['findIndex'](_0x520f9e=>'listItem'!=_0x520f9e['name']);return _0x244c4f>-0x1&&(_0x68c48e=_0x68c48e['slice'](0x0,_0x244c4f)),_0x68c48e;}(_0x2905f2['model']['document']['selection']['getSelectedBlocks']()),_0x59cac0=_0x2905f2['model']['createRange'](_0x2905f2['model']['createPositionAt'](_0x225dfa[0x0],'before'),_0x2905f2['model']['createPositionAt'](_0x225dfa[_0x225dfa['length']-0x1],'end'));_0x2905f2['model']['change'](()=>{_0x341cbe['markBlockFormat'](_0x59cac0,{'commandName':_0x3acb0d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2bd93f){const _0x57860d=new Set();for(const _0x255d85 of _0x2bd93f){let _0x5a3ac9=_0x255d85['nextSibling'];for(;_0x5a3ac9&&_0x5a3ac9['getAttribute']('listIndent')>_0x255d85['getAttribute']('listIndent');)_0x57860d['add'](_0x5a3ac9),_0x5a3ac9=_0x5a3ac9['nextSibling'];}return Array['from'](_0x57860d);}(_0x225dfa));});};}_0x341cbe['enableCommand']('numberedList',_0x4c39ad('numberedList')),_0x341cbe['enableCommand']('bulletedList',_0x4c39ad('bulletedList')),_0x438e73&&_0x341cbe['enableCommand']('todoList',_0x4c39ad('todoList')),_0x341cbe['enableCommand']('indentList',_0x35778c('indentList')),_0x341cbe['enableCommand']('outdentList',_0x35778c('outdentList')),_0x438e73&&_0x341cbe['enableCommand']('checkTodoList',()=>{const _0xc0f257=_0x2905f2['commands']['get']('checkTodoList'),_0x22c7be=Array['from'](_0xc0f257['_selectedElements']);_0x22c7be['filter'](_0x44a3a8=>_0x44a3a8['getAttribute']('todoListChecked')!=_0xc0f257['value']),_0x2905f2['model']['change'](()=>{for(const _0x458bd7 of _0x22c7be)_0x341cbe['markBlockFormat'](_0x458bd7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xc0f257['value']}]});});}),_0x341cbe['descriptionFactory']['registerElementLabel']('listItem',_0x1e6043=>c(_0x49db68,'ELEMENT_LIST_ITEM',_0x1e6043)),_0x341cbe['descriptionFactory']['registerDescriptionCallback'](_0x33deb6=>{if('formatBlock'!=_0x33deb6['type']&&'formatInline'!=_0x33deb6['type'])return;const {data:_0x201834}=_0x33deb6;if(_0x201834){if('numberedList'==_0x201834['commandName']||'bulletedList'==_0x201834['commandName']||'todoList'==_0x201834['commandName'])switch(_0x201834['commandName']['replace']('List','')){case'bulleted':return _0x1a5662(c(_0x49db68,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a5662(c(_0x49db68,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a5662(c(_0x49db68,'ELEMENT_TODO_LIST'));}if('indentList'==_0x201834['commandName'])return{'type':'format','content':c(_0x49db68,'*Indent:*\x20%0',c(_0x49db68,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x201834['commandName'])return{'type':'format','content':c(_0x49db68,'*Outdent:*\x20%0',c(_0x49db68,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x201834['commandName'])return _0x201834['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x49db68,'*Check\x20item*')}:{'type':'format','content':c(_0x49db68,'*Uncheck\x20item*')};}function _0x1a5662(_0xdd087e){return{'type':'format','content':c(_0x49db68,'*Change\x20to:*\x20%0',_0xdd087e)};}});}}function Le(_0x167cc2){const _0x432687=_0x167cc2['getAttribute']('listIndent');if(0x0==_0x432687)return _0x167cc2;let _0x22479b=_0x167cc2;for(;_0x167cc2['previousSibling']&&_0x167cc2['previousSibling']['is']('element','listItem');){const _0x4591e8=_0x167cc2['previousSibling']['getAttribute']('listIndent');if(_0x4591e8==_0x432687)_0x22479b=_0x167cc2['previousSibling'];else{if(_0x4591e8<_0x432687)break;}_0x167cc2=_0x167cc2['previousSibling'];}return _0x22479b;}function Ee(_0x46c28a){const _0x2fb98e=[];if(_0x46c28a['is']('element','listItem')&&_0x46c28a['getAttribute']('listIndent')>0x0){let _0x44d036=_0x46c28a['nextSibling'];for(;_0x44d036&&'listItem'==_0x44d036['name']&&_0x44d036['getAttribute']('listIndent')==_0x46c28a['getAttribute']('listIndent');)_0x2fb98e['push'](_0x44d036),_0x44d036=_0x44d036['nextSibling'];}return _0x2fb98e;}class Q extends _0x5c587b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4c96a1=this['editor']['config']['get']('list.properties'),_0x2391c6=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c96a1['styles']&&_0x2391c6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4c96a1['reversed']&&_0x2391c6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4c96a1['startIndex']&&_0x2391c6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2391c6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x163708,_0x4e840b={}){const _0x6d7fbf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13f636=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x6d7fbf['markMultiRangeBlockFormat'](_0x13f636,{'commandName':'listStyle','commandParams':[{'type':_0x4e840b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x16ef9d,_0x25dcd9={}){const _0x5b2b7c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33230d=this['_getSuggestionBlocks'](_0xdfa074=>_0xdfa074['is']('element','listItem')&&'numbered'===_0xdfa074['getAttribute']('listType'));if(_0x33230d['length']<0x1)return;const _0x29ab46=_0x33230d['map'](_0x3f0418=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f0418,'before'),this['editor']['model']['createPositionAt'](_0x3f0418,0x0)));this['editor']['model']['change'](()=>{_0x5b2b7c['markMultiRangeBlockFormat'](_0x29ab46,{'commandName':'listReversed','commandParams':[{'reversed':_0x25dcd9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2cc1c6,_0x492522={}){const _0x1dfe24=this['editor']['plugins']['get']('TrackChangesEditing'),_0x393777=this['_getSuggestionBlocks'](_0x2ac700=>_0x2ac700['is']('element','listItem')&&'numbered'===_0x2ac700['getAttribute']('listType'));if(_0x393777['length']<0x1)return;const _0x577a02=_0x393777['map'](_0x566c8e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x566c8e,'before'),this['editor']['model']['createPositionAt'](_0x566c8e,0x0)));this['editor']['model']['change'](()=>{_0x1dfe24['markMultiRangeBlockFormat'](_0x577a02,{'commandName':'listStart','commandParams':[{'startIndex':_0x492522['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5a8237){if('formatBlock'!=_0x5a8237['type']&&'formatInline'!=_0x5a8237['type'])return;const _0x2a08b5=this['editor']['locale'],{data:_0x1c1b6d}=_0x5a8237;if(!_0x1c1b6d)return;let _0x1fe4a5,_0x10ef67;switch(_0x1c1b6d['commandName']){case'listStyle':_0x1fe4a5='*Change\x20to:*\x20%0',_0x10ef67={'type':'format','content':c(_0x2a08b5,_0x1fe4a5,c(_0x2a08b5,this['_getTranslationKeyForListStyle'](_0x1c1b6d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1fe4a5=_0x1c1b6d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x10ef67={'type':'format','content':c(_0x2a08b5,_0x1fe4a5)};break;case'listStart':_0x1fe4a5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x10ef67={'type':'format','content':c(_0x2a08b5,_0x1fe4a5,_0x1c1b6d['commandParams'][0x0]['startIndex'])};}return _0x10ef67;}['_getSuggestionBlocksForListStyle'](){const _0x33e7f6=this['editor']['plugins']['get']('LegacyListUtils');let _0x5515d5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5515d5[0x0]?.['is']('element','listItem')&&_0x5515d5['unshift'](..._0x33e7f6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5515d5[_0x5515d5['length']-0x1]?.['is']('element','listItem')&&_0x5515d5['push'](..._0x33e7f6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5515d5=[...new Set(_0x5515d5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5515d5=_0x5515d5['filter'](_0x48001c=>_0x48001c['is']('element','listItem'))),_0x5515d5;}['_getSuggestionBlocks'](_0x25eeab){const _0x4fcd2c=this['editor']['plugins']['get']('LegacyListUtils');let _0xcc8e9a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x25eeab)['map'](_0x35dd84=>{const _0x34abfe=this['editor']['model']['createPositionAt'](_0x35dd84,0x0);return[..._0x4fcd2c['getSiblingNodes'](_0x34abfe,'backward'),..._0x4fcd2c['getSiblingNodes'](_0x34abfe,'forward')];})['flat']();return _0xcc8e9a=[...new Set(_0xcc8e9a)],_0xcc8e9a;}['_getTranslationKeyForListStyle'](_0x47a018){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x47a018)||'default')['toUpperCase']()+'_LIST_'+_0x47a018['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x5c587b{['afterInit'](){const _0x58b7db=this['editor'];if(!_0x58b7db['plugins']['has']('MediaEmbedEditing'))return;const _0x3cbdd9=_0x58b7db['plugins']['get']('TrackChangesEditing'),_0x1818f2=_0x58b7db['locale'];_0x3cbdd9['enableCommand']('mediaEmbed'),_0x3cbdd9['descriptionFactory']['registerElementLabel']('media',_0x23b250=>c(_0x1818f2,'ELEMENT_MEDIA',_0x23b250)),_0x58b7db['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3c4a8d,{writer:_0x2e1a36,options:_0x1ad1fa})=>{if(_0x1ad1fa['showSuggestionHighlights'])return _0x2e1a36['createEmptyElement']('div');},'converterPriority':'high'}),_0x58b7db['data']['downcastDispatcher']['on']('attribute:url:media',(_0x368a80,_0x23c8aa,_0x1d94f7)=>{_0x1d94f7['options']['showSuggestionHighlights']&&_0x368a80['stop']();},{'priority':'high'});}}class pt extends _0x5c587b{['afterInit'](){const _0x408100=this['editor'];_0x408100['plugins']['has']('MentionEditing')&&_0x408100['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x5c587b{['afterInit'](){const _0x56674f=this['editor'];if(!_0x56674f['plugins']['has']('MergeFieldsEditing'))return;const _0x492467=_0x56674f['plugins']['get']('TrackChangesEditing'),_0x1ad75c=_0x56674f['locale'];_0x492467['enableCommand']('insertMergeField'),_0x492467['enableCommand']('insertMergeFieldBlock'),_0x492467['enableCommand']('insertMergeFieldImage'),_0x492467['descriptionFactory']['registerElementLabel']('mergeField',_0x49bd99=>c(_0x1ad75c,'ELEMENT_MERGE_FIELD',_0x49bd99)),_0x492467['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1abca1=>c(_0x1ad75c,'ELEMENT_MERGE_FIELD',_0x1abca1)),_0x492467['descriptionFactory']['registerDescriptionCallback'](_0x439af4=>{if('insertion'!=_0x439af4['type']&&'deletion'!=_0x439af4['type'])return;const _0x55379e=_0x439af4['getContainedElement']();if(null==_0x55379e)return;const _0x26336e=_0x56674f['plugins']['get']('MergeFieldsEditing');let _0x395152;switch(_0x26336e['getMergeFieldType'](_0x55379e)){case null:return;case'image':{const _0x8bbd9e=_0x26336e['unwrapAffixes'](_0x55379e['getAttribute']('src'));_0x395152=_0x26336e['getLabel'](_0x8bbd9e)||_0x8bbd9e;break;}default:{const _0x503485=_0x55379e['getAttribute']('id');_0x395152=_0x26336e['getLabel'](_0x503485)||_0x503485;break;}}return'insertion'==_0x439af4['type']?{'type':'insertion','content':c(_0x1ad75c,'*Insert:*\x20%0','\x22'+_0x395152+'\x22\x20'+c(_0x1ad75c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1ad75c,'*Remove:*\x20%0','\x22'+_0x395152+'\x22\x20'+c(_0x1ad75c,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5c587b{['afterInit'](){const _0x51dc11=this['editor'],_0x51d8f2=_0x51dc11['plugins']['get']('TrackChangesEditing');_0x51dc11['plugins']['has']('MultiLevelList')&&(_0x51d8f2['enableDefaultAttributesIntegration']('multiLevelList'),_0x51d8f2['registerBlockAttribute']('listMarkerStyle'),_0x51d8f2['descriptionFactory']['registerDescriptionCallback'](_0x23c01d=>this['handleDescriptions'](_0x23c01d)));}['handleDescriptions'](_0x5c1d89){const _0x1da9aa=this['editor']['locale'],{data:_0x375d34}=_0x5c1d89,_0x389a0f={'type':'format','content':''};if(_0x375d34&&'listMarkerStyle'==_0x375d34['key']){if(!_0x375d34['oldValue'])return{'type':'format','content':c(_0x1da9aa,'*Set\x20format:*\x20%0',c(_0x1da9aa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x375d34['newValue']+')'};if(!_0x375d34['newValue']){let _0xe8ecea=_0x5c1d89['head'];for(;_0xe8ecea;){if(_0xe8ecea['data']&&'listType'==_0xe8ecea['data']['key']&&_0xe8ecea['data']['newValue'])return _0x389a0f;_0xe8ecea=_0xe8ecea['next'];}return{'type':'format','content':c(_0x1da9aa,'*Remove\x20format:*\x20%0',c(_0x1da9aa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x375d34['oldValue']+')'};}}}}class bt extends _0x5c587b{['afterInit'](){const _0x5df5ce=this['editor'];if(!_0x5df5ce['plugins']['has']('PageBreakEditing'))return;_0x5df5ce['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4ca5dd=_0x5df5ce['plugins']['get']('TrackChangesEditing'),_0x5c39f1=_0x5df5ce['locale'];_0x4ca5dd['descriptionFactory']['registerElementLabel']('pageBreak',_0xb7aa33=>c(_0x5c39f1,'ELEMENT_PAGE_BREAK',_0xb7aa33));}}class yt extends _0x5c587b{['afterInit'](){const _0x5abd21=this['editor'];if(!_0x5abd21['plugins']['has']('Paragraph'))return;const _0x44bf3a=_0x5abd21['locale'],_0x5e815d=_0x5abd21['plugins']['get']('TrackChangesEditing');_0x5e815d['descriptionFactory']['registerElementLabel']('paragraph',_0x3fc36b=>c(_0x44bf3a,'ELEMENT_PARAGRAPH',_0x3fc36b)),_0x5e815d['enableDefaultAttributesIntegration']('paragraph'),_0x5e815d['enableCommand']('insertParagraph'),_0x5abd21['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5abd21),{'priority':'highest'}),_0x5abd21['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x23bde6,_0x466086,_0x254bf1)=>{_0x254bf1['options']['showSuggestionHighlights']&&nr(_0x5abd21,{'showActiveMarker':!0x1})(_0x23bde6,_0x466086,_0x254bf1);},{'priority':'highest'});const _0x297f48=_0x5e815d['descriptionFactory'];_0x297f48['registerDescriptionCallback'](_0xa8b285=>{if('insertion'!==_0xa8b285['type'])return;const {start:_0x16c757,end:_0xd1c2d}=_0xa8b285['getFirstRange']();if(!_0x16c757['isTouching'](_0xd1c2d)||!_0x16c757['nodeAfter'])return;const _0xb5cb98=_0x5abd21['model']['schema'],_0x225d99=_0x16c757['nodeAfter'];return _0xb5cb98['isBlock'](_0x225d99)&&!_0xb5cb98['isLimit'](_0x225d99)&&_0xb5cb98['checkChild'](_0x225d99,'$text')?{'type':'insertion','content':c(_0x44bf3a,'*Insert:*\x20%0',_0x297f48['getItemLabel'](_0x225d99,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x442b6f=this['editor'],_0x25d30e=_0x442b6f['locale'];_0x442b6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x266deb=>{if('formatBlock'!=_0x266deb['type'])return;const {data:_0x2943d6}=_0x266deb;return _0x2943d6&&'paragraph'==_0x2943d6['commandName']?{'type':'format','content':c(_0x25d30e,'*Change\x20to:*\x20%0',c(_0x25d30e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5763e3,{showActiveMarker:_0x30921a=!0x0}={}){return(_0x492940,_0x2e7c52,_0x2c3395)=>{const _0x20f995=_0x5763e3['plugins']['get']('TrackChangesEditing'),_0x43332c=_0x2e7c52['markerRange']['start'],_0x15cd4d=_0x2e7c52['markerRange']['end'],_0x40a257=_0x5763e3['model']['schema'];if(!_0x43332c['isTouching'](_0x15cd4d)||!_0x43332c['nodeAfter'])return;const _0x3d92d1=_0x43332c['nodeAfter'];if(_0x40a257['isBlock'](_0x3d92d1)&&!_0x40a257['isLimit'](_0x3d92d1)&&_0x40a257['checkChild'](_0x3d92d1,'$text')){if(!_0x2c3395['consumable']['consume'](_0x2e7c52['markerRange'],_0x492940['name']))return;const {id:_0x5b3bb1,authorId:_0x4b39ef}=_0x20f995['_splitMarkerName'](_0x2e7c52['markerName']),_0x18621c=_0x2c3395['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5b3bb1,'data-author-id':_0x4b39ef}),_0x586f42=_0x2c3395['mapper']['toViewPosition'](_0x15cd4d);_0x30921a&&_0x20f995['activeMarkers']['includes'](_0x2e7c52['markerName'])&&_0x2c3395['writer']['addClass']('ck-suggestion-marker--active',_0x18621c),_0x2c3395['writer']['insert'](_0x586f42,_0x18621c),_0x2c3395['mapper']['bindElementToMarker'](_0x18621c,_0x2e7c52['markerName']);}};}class jt extends _0x5c587b{['afterInit'](){const _0x5d4004=this['editor'];_0x5d4004['commands']['get']('replaceSource')&&_0x5d4004['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5c587b{['afterInit'](){const _0x3f9b0f=this['editor'];if(!_0x3f9b0f['plugins']['has']('RemoveFormatEditing'))return;_0x3f9b0f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fcbad=this['editor'];_0x4fcbad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49ca5a=>{if('formatBlock'!=_0x49ca5a['type']&&'formatInline'!=_0x49ca5a['type'])return;const {data:_0x522a9f}=_0x49ca5a;return _0x522a9f&&'removeFormat'==_0x522a9f['commandName']?{'type':'format','content':c(_0x4fcbad['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x5c587b{['afterInit'](){const _0x195d17=this['editor'];if(!_0x195d17['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5cdd05=_0x195d17['plugins']['get']('TrackChangesEditing');_0x5cdd05['enableCommand']('goToPreviousRestrictedEditingException'),_0x5cdd05['enableCommand']('goToNextRestrictedEditingException');const _0x4a465c=_0x195d17['plugins']['get']('RestrictedEditingModeEditing');_0x4a465c['enableCommand']('trackChanges'),_0x4a465c['enableCommand']('acceptSuggestion'),_0x4a465c['enableCommand']('discardSuggestion'),_0x4a465c['enableCommand']('acceptAllSuggestions'),_0x4a465c['enableCommand']('discardAllSuggestions'),_0x4a465c['enableCommand']('acceptSelectedSuggestions'),_0x4a465c['enableCommand']('discardSelectedSuggestions');}}class It extends _0x5c587b{['afterInit'](){const _0x1c8c49=this['editor'];if(!_0x1c8c49['plugins']['has']('ShiftEnter'))return;const _0x31975a=_0x1c8c49['plugins']['get']('TrackChangesEditing');_0x31975a['enableCommand']('shiftEnter'),_0x1c8c49['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1c8c49),{'priority':'high'}),_0x1c8c49['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1c8c49),{'priority':'high'}),_0x1c8c49['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x112b15,_0x918bdb,_0x2f79ff)=>{_0x2f79ff['options']['showSuggestionHighlights']&&je(_0x1c8c49,{'showActiveMarker':!0x1})(_0x112b15,_0x918bdb,_0x2f79ff);}),_0x31975a['descriptionFactory']['registerElementLabel']('softBreak',_0xf05c50=>c(_0x1c8c49['locale'],'ELEMENT_LINE_BREAK',_0xf05c50));}}function je(_0x454722,{showActiveMarker:_0x3fcd98=!0x0}={}){return(_0x368ba8,_0x3d6b5b,_0x7281ba)=>{const _0x5260cf=_0x454722['plugins']['get']('TrackChangesEditing');if(!_0x7281ba['consumable']['test'](_0x3d6b5b['markerRange'],_0x368ba8['name']))return;const _0x2ce180=_0x454722['model'];for(const _0x2ce448 of _0x3d6b5b['markerRange']['getItems']()){if(!_0x2ce448['is']('element','softBreak'))continue;const _0x4bdf26='deletion'==_0x3d6b5b['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4d5a17,authorId:_0x168cab}=_0x5260cf['_splitMarkerName'](_0x3d6b5b['markerName']),_0x5077a7=_0x7281ba['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4bdf26,'data-suggestion':_0x4d5a17,'data-author-id':_0x168cab}),_0x2b3378=_0x7281ba['mapper']['toViewPosition'](_0x2ce180['createPositionBefore'](_0x2ce448));_0x3fcd98&&_0x5260cf['activeMarkers']['includes'](_0x3d6b5b['markerName'])&&_0x7281ba['writer']['addClass']('ck-suggestion-marker--active',_0x5077a7),_0x7281ba['writer']['insert'](_0x2b3378,_0x5077a7),_0x7281ba['mapper']['bindElementToMarker'](_0x5077a7,_0x3d6b5b['markerName']);}};}class _t extends _0x5c587b{['afterInit'](){const _0x40ee37=this['editor'],_0x30e172=_0x40ee37['model'],_0x32a8e1=_0x40ee37['locale'];if(!_0x40ee37['plugins']['has']('StandardEditingModeEditing'))return;const _0x324f2e=_0x40ee37['plugins']['get']('TrackChangesEditing'),_0x1d355d='restrictedEditingException',_0x392978=_0x40ee37['commands']['get'](_0x1d355d);_0x324f2e['enableCommand'](_0x1d355d,(_0x15b2b6,_0x1efe65={})=>{const _0x52dcb4=_0x30e172['document']['selection'];if(_0x52dcb4['isCollapsed'])return void _0x15b2b6(_0x1efe65);const _0x4faea1=void 0x0!==_0x1efe65['forceValue']?_0x1efe65['forceValue']:!_0x392978['value'];_0x30e172['change'](()=>{const _0x13b393=Array['from'](_0x52dcb4['getRanges']());for(const _0x29f261 of _0x13b393){const _0x48c129=_0x4faea1?[_0x29f261]:io(_0x1d355d,_0x29f261,_0x30e172);for(const _0x1f42ee of _0x48c129)_0x324f2e['markInlineFormat'](_0x1f42ee,{'commandName':_0x1d355d,'commandParams':[{'forceValue':_0x4faea1}]});}});}),_0x324f2e['descriptionFactory']['registerDescriptionCallback'](_0x4d74a0=>{if('formatBlock'!=_0x4d74a0['type']&&'formatInline'!=_0x4d74a0['type'])return;const {data:_0x471863}=_0x4d74a0;return _0x471863&&_0x471863['commandName']==_0x1d355d?_0x471863['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x32a8e1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x32a8e1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x5c587b{['afterInit'](){const _0xac617c=this['editor'];if(!_0xac617c['plugins']['has']('Style')||!_0xac617c['plugins']['has']('DataSchema'))return;const _0x4a101d=_0xac617c['plugins']['get']('TrackChangesEditing'),_0x511c04=_0xac617c['locale'],_0x5c1b2f=_0xac617c['config']['get']('style')||{},_0x126720=_0xac617c['plugins']['get']('GeneralHtmlSupport'),_0x54b0ec=_0xac617c['plugins']['get']('StyleUtils')['normalizeConfig'](_0xac617c['plugins']['get']('DataSchema'),_0x5c1b2f['definitions']);_0x4a101d['enableDefaultAttributesIntegration']('style');const _0x3f35bf=new Set();for(const _0x4e237d of _0x54b0ec['block']){const _0x46026d=_0x126720['getGhsAttributeNameForElement'](_0x4e237d['element']);_0x3f35bf['add'](_0x46026d);}const _0x32b9cb=new Set();for(const _0x34251c of _0x54b0ec['inline']){const _0xb9deeb=_0x126720['getGhsAttributeNameForElement'](_0x34251c['element']);_0x32b9cb['add'](_0xb9deeb);for(const _0x4aace9 of _0x34251c['ghsAttributes'])_0x32b9cb['add'](_0x4aace9);}for(const _0x38f6c3 of _0x3f35bf)_0x4a101d['registerBlockAttribute'](_0x38f6c3),_0x4a101d['descriptionFactory']['registerAttributeLabel'](_0x38f6c3,c(_0x511c04,'FORMAT_STYLE'));for(const _0x24f439 of _0x32b9cb)_0x4a101d['registerInlineAttribute'](_0x24f439),_0x4a101d['descriptionFactory']['registerAttributeLabel'](_0x24f439,c(_0x511c04,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16c45c=this['editor'],_0x5b1469=_0x16c45c['locale'];_0x16c45c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x597061=>{if('formatBlock'!=_0x597061['type']&&'formatInline'!=_0x597061['type'])return;const {data:_0x393808}=_0x597061;return _0x393808&&'style'===_0x393808['commandName']?_0x393808['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5b1469,'*Set\x20format:*\x20%0',_0x393808['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5b1469,'*Remove\x20format:*\x20%0',_0x393808['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5c587b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5de369){super(_0x5de369),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x473df0=this['editor'],_0x3a1707=_0x473df0['model']['document']['selection'];if(!_0x473df0['plugins']['has']('TableEditing'))return;const _0x717f3d=_0x473df0['locale'],_0x4c726a=_0x473df0['plugins']['get']('TrackChangesEditing'),_0x55b06d=_0x473df0['plugins']['get']('TableUtils');_0x4c726a['descriptionFactory']['registerElementLabel']('table',_0x42278c=>c(_0x717f3d,'ELEMENT_TABLE',_0x42278c)),this['_setupColumnsRowsFixing'](),_0x4c726a['enableCommand']('insertTable'),_0x4c726a['enableCommand']('selectTableRow'),_0x4c726a['enableCommand']('selectTableColumn');for(const _0x5c2abf of['insertTableRowAbove','insertTableRowBelow']){const _0x52d762=_0x473df0['commands']['get'](_0x5c2abf);_0x4c726a['enableCommand'](_0x5c2abf,_0x1f9e76=>{_0x473df0['model']['change'](_0x48a527=>{_0x1f9e76();const _0x590348='above'===_0x52d762['order'],_0x35941c=_0x55b06d['getSelectionAffectedTableCells'](_0x3a1707),_0x446136=_0x55b06d['getRowIndexes'](_0x35941c),_0x55fe92=_0x590348?_0x446136['first']-0x1:_0x446136['last']+0x1,_0x16a3ac=_0x35941c[0x0]['findAncestor']('table'),_0x473336=_0x55b06d['createTableWalker'](_0x16a3ac,{'startRow':_0x55fe92,'endRow':_0x55fe92}),_0x545e87=Array['from'](_0x473336)['map'](_0x828fd0=>_0x48a527['createRangeOn'](_0x828fd0['cell']));_0x4c726a['markMultiRangeInsertion'](_0x545e87,'tableRow');});});}for(const _0x52c0b4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5cd1a8=_0x473df0['commands']['get'](_0x52c0b4);_0x4c726a['enableCommand'](_0x52c0b4,_0x233669=>{_0x473df0['model']['change'](_0x4795de=>{_0x233669();const _0x328688='left'===_0x5cd1a8['order'],_0x5eb5cd=_0x55b06d['getSelectionAffectedTableCells'](_0x3a1707),_0x8f537a=_0x55b06d['getColumnIndexes'](_0x5eb5cd),_0x4488ea=_0x328688?_0x8f537a['first']-0x1:_0x8f537a['last']+0x1,_0x4b2c55=_0x5eb5cd[0x0]['findAncestor']('table'),_0x12bd6f=_0x55b06d['createTableWalker'](_0x4b2c55,{'startRow':0x0,'column':_0x4488ea,'includeAllSlots':!0x1}),_0x5d8ce6=Array['from'](_0x12bd6f)['map'](_0x2eedb9=>_0x4795de['createRangeOn'](_0x2eedb9['cell']));_0x4c726a['markMultiRangeInsertion'](_0x5d8ce6,'tableColumn');});});}for(const _0x1a5aa8 of['removeTableRow','removeTableColumn']){const _0x16c19d=_0x1a5aa8['substr'](0xb),_0xb007b3=_0x16c19d['toLowerCase'](),_0xd3ac01=_0xb007b3['substr'](0x0,0x3)+'span',_0x215973='table'+_0x16c19d,_0x16a4c2='min'+_0x16c19d,_0x2cc97b='max'+_0x16c19d;_0x4c726a['enableCommand'](_0x1a5aa8,()=>{_0x473df0['model']['change'](_0xe025da=>{const _0x4d2088=_0x55b06d['getSelectionAffectedTableCells'](_0x3a1707),_0x193891=_0x4d2088[0x0]['findAncestor']('table');let _0x3cd70c;if('removeTableRow'==_0x1a5aa8){const _0x44928b=_0x55b06d['getRowIndexes'](_0x4d2088);_0x3cd70c={'startRow':_0x44928b['first'],'endRow':_0x44928b['last'],'includeAllSlots':!0x0};}else{const _0x1fe702=_0x55b06d['getColumnIndexes'](_0x4d2088);_0x3cd70c={'startColumn':_0x1fe702['first'],'endColumn':_0x1fe702['last'],'includeAllSlots':!0x0};}const _0x38f043=_0x55b06d['createTableWalker'](_0x193891,_0x3cd70c),_0x5d9cd0=Array['from'](_0x38f043)['map'](({cell:_0x44c1a1})=>_0x44c1a1),_0x28fb73=xe(_0x5d9cd0['filter'](_0x5cab59=>_0x5cab59['hasAttribute'](_0xd3ac01))),_0x5f4e1e=xe(_0x5d9cd0['filter'](_0x3fc80b=>!_0x3fc80b['hasAttribute'](_0xd3ac01)))['map'](_0x5d95bd=>_0xe025da['createRangeOn'](_0x5d95bd)),_0x459908=_0x4c726a['markMultiRangeDeletion'](_0x5f4e1e,_0x215973);if(_0x459908&&('tableRow'==_0x459908['subType']||'tableColumn'==_0x459908['subType'])){const _0x15d714=this['_getSuggestionCoords'](_0x459908);for(const _0x282248 of _0x28fb73){const _0x13291f=_0xe025da['createRangeOn'](_0x282248),_0x38590e=_0x55b06d['getCellLocation'](_0x282248),_0x2f0a39=_0x282248['getAttribute'](_0xd3ac01)-0x1,_0x5a9c43=_0x15d714[_0x16a4c2],_0x2fce36=_0x15d714[_0x2cc97b];_0x5a9c43<=_0x38590e[_0xb007b3]&&_0x38590e[_0xb007b3]+_0x2f0a39<=_0x2fce36&&_0x459908['addRange'](_0x13291f);}}});});}function _0x2938f1(_0x17fd10){const _0x2ee1b1=Array['from'](_0x3a1707['getRanges']())['map'](_0x173bfd=>_0x4ce525['fromRange'](_0x173bfd));_0x473df0['model']['change'](_0x2f47e0=>{const _0x3cad3f=_0x2f47e0['batch'];_0x17fd10=_0x17fd10['filter'](_0x5df547=>'$graveyard'!=_0x5df547['root']['rootName']),_0x2f47e0['setSelection'](_0x17fd10),_0x473df0['commands']['get']('removeTableRow')['refresh'](),_0x473df0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x473df0['model']['enqueueChange'](()=>{_0x473df0['model']['enqueueChange'](_0x3cad3f,_0x48138d=>{const _0x590b8d=_0x2ee1b1['filter'](_0x49964f=>'$graveyard'!=_0x49964f['root']['rootName']);_0x590b8d['length']>0x0&&_0x48138d['setSelection'](_0x590b8d);for(const _0x22ffb2 of _0x2ee1b1)_0x22ffb2['detach']();});});});}function _0x52d46b(_0x3df9eb){_0x473df0['model']['change'](_0x5c4fe1=>{const _0x354266=Array['from'](_0x3a1707['getRanges']())['map'](_0x22945a=>_0x4ce525['fromRange'](_0x22945a)),_0x7caa3=[];for(const _0xc3a257 of _0x3df9eb)for(const _0x4523d6 of _0xc3a257['getItems']({'shallow':!0x0}))_0x7caa3['push'](_0x4523d6);for(const _0x5d65a7 of _0x7caa3)'$graveyard'!=_0x5d65a7['root']['rootName']&&(_0x5c4fe1['setSelection'](_0x5c4fe1['createPositionAt'](_0x5d65a7,0x0)),_0x473df0['commands']['get']('removeTableColumn')['refresh'](),_0x473df0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3fe278=_0x354266['filter'](_0x2b6705=>'$graveyard'!=_0x2b6705['root']['rootName']);_0x3fe278['length']>0x0&&_0x5c4fe1['setSelection'](_0x3fe278);for(const _0x591eb5 of _0x354266)_0x591eb5['detach']();});}function _0x185a94(_0x2cf688,_0x20a41b){return _0x20a41b['every'](_0x3acee7=>_0x2cf688['some'](_0x9a75db=>_0x9a75db['end']['isEqual'](_0x3acee7['start'])||_0x3acee7['end']['isEqual'](_0x9a75db['start'])));}function _0x8a0a2e(_0x5c54e8,_0x10c8b5){return!_0x5c54e8['some'](_0x12978d=>_0x10c8b5['some'](_0x5ba04f=>_0x12978d['isIntersecting'](_0x5ba04f)))&&_0x5c54e8['some'](_0x951263=>_0x10c8b5['some'](_0x48d8c0=>_0x951263['end']['isTouching'](_0x48d8c0['start'])));}_0x473df0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5647e1,_0x2e2ea7,_0x29a125)=>{if(!_0x29a125['options']['showSuggestionHighlights'])return;const _0x5300aa=_0x2e2ea7['item'];if(!_0x5300aa||!_0x5300aa['is']('element','tableCell'))return;const _0x1c10de=_0x29a125['mapper']['toViewElement'](_0x5300aa);if(_0x1c10de){const {id:_0x52adcb,authorId:_0x42423a}=_0x4c726a['_splitMarkerName'](_0x2e2ea7['markerName']);_0x32595d(_0x1c10de,_0x29a125['writer'],(_0x522858,_0x43fb2d,_0x144cde)=>{_0x144cde['addClass'](_0x17eaef(_0x43fb2d['classes']),_0x522858),_0x144cde['setAttribute']('data-suggestion-id',_0x52adcb,_0x522858),_0x144cde['setAttribute']('data-author-id',_0x42423a,_0x522858);},(_0x3ea562,_0x44b29f,_0x54a45d)=>{_0x54a45d['removeClass'](_0x17eaef(_0x44b29f['classes']),_0x3ea562),_0x54a45d['removeAttribute']('data-suggestion-id',_0x3ea562),_0x54a45d['removeAttribute']('data-author-id',_0x3ea562);});}},{'priority':'highest'}),_0x4c726a['descriptionFactory']['registerDescriptionCallback'](_0x4f67d9=>{if('insertion'!=_0x4f67d9['type']&&'deletion'!=_0x4f67d9['type'])return;const _0x50f5f6=_0x4f67d9['getContainedElement']();if(null!=_0x50f5f6&&_0x50f5f6['is']('element','table')){if('insertion'==_0x4f67d9['type']){const _0x1ac25a=_0x4f67d9['getItems']()['filter'](_0x432b3a=>_0x432b3a['is']('$textProxy'))['map'](_0x1e9f34=>_0x1e9f34['data']);if(_0x1ac25a['length'])return{'type':'insertion','content':c(_0x717f3d,'*Insert:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1ac25a['join']('\x20')+'\x22'))};}if('deletion'==_0x4f67d9['type']){const _0x2cf4b9=_0x4f67d9['getItems']()['filter'](_0x3e25e3=>_0x3e25e3['is']('$textProxy'))['map'](_0x33103c=>_0x33103c['data']);if(_0x2cf4b9['length'])return{'type':'deletion','content':c(_0x717f3d,'*Remove:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2cf4b9['join']('\x20')+'\x22'))};}}}),_0x4c726a['descriptionFactory']['registerDescriptionCallback'](_0x489b30=>{if('tableRow'==_0x489b30['subType']){const _0x3ec6bb=_0x489b30['getItems']()['filter'](_0x41c8fc=>_0x41c8fc['is']('$textProxy'))['map'](_0x118963=>_0x118963['data']),_0x1ab9d4=this['_getSuggestionCoords'](_0x489b30),_0x2bd1c5=_0x1ab9d4['maxRow']-_0x1ab9d4['minRow']+0x1;if('insertion'==_0x489b30['type'])return _0x3ec6bb['length']?{'type':'insertion','content':c(_0x717f3d,'*Insert:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2bd1c5,'\x22'+_0x3ec6bb['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x717f3d,'*Insert:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_ROW',_0x2bd1c5))};if('deletion'==_0x489b30['type'])return _0x3ec6bb['length']?{'type':'deletion','content':c(_0x717f3d,'*Remove:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2bd1c5,'\x22'+_0x3ec6bb['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x717f3d,'*Remove:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_ROW',_0x2bd1c5))};}if('tableColumn'==_0x489b30['subType']){const _0x96636a=_0x489b30['getItems']()['filter'](_0x537eec=>_0x537eec['is']('$textProxy'))['map'](_0x56ebba=>_0x56ebba['data']),_0x3210ee=this['_getSuggestionCoords'](_0x489b30),_0x4510af=_0x3210ee['maxColumn']-_0x3210ee['minColumn']+0x1;if('insertion'==_0x489b30['type'])return _0x96636a['length']?{'type':'insertion','content':c(_0x717f3d,'*Insert:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4510af,'\x22'+_0x96636a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x717f3d,'*Insert:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_COLUMN',_0x4510af))};if('deletion'==_0x489b30['type'])return _0x96636a['length']?{'type':'deletion','content':c(_0x717f3d,'*Remove:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4510af,'\x22'+_0x96636a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x717f3d,'*Remove:*\x20%0',c(_0x717f3d,'ELEMENT_TABLE_COLUMN',_0x4510af))};}}),_0x4c726a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2938f1),_0x4c726a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2938f1),_0x4c726a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x52d46b),_0x4c726a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x52d46b),_0x4c726a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x185a94),_0x4c726a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x185a94),_0x4c726a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x8a0a2e),_0x4c726a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x8a0a2e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x10d85e=this['editor'],_0x422630=_0x10d85e['model']['document']['selection'];return(_0x29b1ef,_0x200d09)=>{_0x10d85e['model']['change'](_0xe8a4a2=>{const {commandName:_0x4f418c,commandParams:_0x2a46db}=_0x200d09;let _0x312c41=_0x29b1ef[0x0]['end']['nodeBefore'];_0x2a46db&&_0x2a46db[0x0]&&!0x1===_0x2a46db[0x0]['forceValue']&&(_0x312c41=_0x29b1ef[0x0]['start']['nodeAfter']);const _0x52e64f=_0xe8a4a2['createRangeIn'](_0x312c41);if('$graveyard'==_0x52e64f['root']['rootName'])return;const _0x36318d=Array['from'](_0x422630['getRanges']())['map'](_0x171c40=>_0x4ce525['fromRange'](_0x171c40));_0xe8a4a2['setSelection'](_0x52e64f),_0x10d85e['commands']['get'](_0x4f418c)['refresh'](),_0x2a46db['push']({'forceDefaultExecution':!0x0}),_0x10d85e['execute'](_0x4f418c,..._0x2a46db);const _0x5b38a0=_0x36318d['filter'](_0x42126d=>'$graveyard'!=_0x42126d['root']['rootName']);_0x5b38a0['length']>0x0&&_0xe8a4a2['setSelection'](_0x5b38a0);for(const _0xb57198 of _0x36318d)_0xb57198['detach']();});};}['_getCoordsForCells'](_0x19a4b4){const _0x348e64=this['editor']['plugins']['get']('TableUtils');let _0x3bd6d5=Number['MAX_SAFE_INTEGER'],_0x4e858d=Number['MIN_SAFE_INTEGER'],_0x19240d=Number['MAX_SAFE_INTEGER'],_0x1ec358=Number['MIN_SAFE_INTEGER'];for(const _0x52779c of _0x19a4b4){if('$graveyard'==_0x52779c['root']['rootName'])continue;const {row:_0x3618fd,column:_0xa5e280}=_0x348e64['getCellLocation'](_0x52779c),_0x32bfb5=_0x52779c['hasAttribute']('rowspan')?_0x52779c['getAttribute']('rowspan')-0x1:0x0,_0x5bc6d9=_0x52779c['hasAttribute']('colspan')?_0x52779c['getAttribute']('colspan')-0x1:0x0;_0x3bd6d5=_0x3618fd<_0x3bd6d5?_0x3618fd:_0x3bd6d5,_0x4e858d=_0x3618fd+_0x32bfb5>_0x4e858d?_0x3618fd+_0x32bfb5:_0x4e858d,_0x19240d=_0xa5e280<_0x19240d?_0xa5e280:_0x19240d,_0x1ec358=_0xa5e280+_0x5bc6d9>_0x1ec358?_0xa5e280+_0x5bc6d9:_0x1ec358;}return{'minRow':_0x3bd6d5,'maxRow':_0x4e858d,'minColumn':_0x19240d,'maxColumn':_0x1ec358};}['_setupColumnsRowsFixing'](){const _0x1aece1=this['editor'],_0x418ac7=_0x1aece1['plugins']['get']('TrackChangesEditing'),_0x1bc502=_0x1aece1['plugins']['get']('TableUtils');_0x1aece1['model']['document']['on']('change:data',()=>{const _0x2d55ce=Array['from'](_0x1aece1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ebe1a,data:_0x419150}of _0x2d55ce){const {group:_0x4c75d0,id:_0x350f76,subType:_0x59e458}=_0x418ac7['_splitMarkerName'](_0x3ebe1a);if('suggestion'!=_0x4c75d0)continue;if(null!=_0x419150['oldRange'])continue;const _0x50f3af=_0x418ac7['getSuggestion'](_0x350f76);this['_tablePostFixingSubtypes']['includes'](_0x59e458)&&this['_tableSuggestions']['add'](_0x50f3af);}},{'priority':'low'});const _0xef13fb=(_0x225658,_0x2d85dd)=>{let _0x35cbf9=!0x1;const _0x3b724d=_0x2d85dd['createRangeOn'](_0x225658),_0x4b5939=_0x225658['findAncestor']('table'),_0x786501=_0x1bc502['getCellLocation'](_0x225658);for(const _0x9091f7 of this['_tableSuggestions']){const _0xfa2018=_0x9091f7['subType'],_0x11f83d=_0xfa2018['startsWith']('tablePaste'),_0x40d145=_0xfa2018['substr'](_0x11f83d?0xa:0x5),_0x3765d3=_0x40d145['toLowerCase'](),_0x1daff6=_0x3765d3['substr'](0x0,0x3)+'span',_0x25c3d4='min'+_0x40d145,_0x2572e1='max'+_0x40d145;if(!_0x9091f7['isInContent'])continue;if(_0x4b5939!=_0x9091f7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x9091f7['isIntersectingWithRange'](_0x3b724d))continue;const _0x57329d=_0x225658['hasAttribute'](_0x1daff6)?_0x225658['getAttribute'](_0x1daff6)-0x1:0x0,_0x4cd4a4=this['_getSuggestionCoords'](_0x9091f7),_0x2d15a5=_0x4cd4a4[_0x25c3d4],_0x1492b1=_0x4cd4a4[_0x2572e1];_0x2d15a5<=_0x786501[_0x3765d3]&&_0x786501[_0x3765d3]+_0x57329d<=_0x1492b1&&(_0x9091f7['addRange'](_0x3b724d),_0x35cbf9=!0x0);}return _0x35cbf9;};_0x1aece1['model']['document']['registerPostFixer'](_0x29b944=>{let _0x413744=!0x1;for(const _0x29bdc0 of _0x1aece1['model']['document']['differ']['getChanges']())if('insert'==_0x29bdc0['type']){if('tableRow'==_0x29bdc0['name']){for(const _0xbe1745 of _0x29bdc0['position']['nodeAfter']['getChildren']())_0x413744=_0x413744||_0xef13fb(_0xbe1745,_0x29b944);}else'tableCell'==_0x29bdc0['name']&&(_0x413744=_0x413744||_0xef13fb(_0x29bdc0['position']['nodeAfter'],_0x29b944));}return _0x413744;});}['_getSuggestionCoords'](_0x3379e2){return this['_getCoordsForCells'](_0x3379e2['getRanges']()['map'](_0xcdb6af=>_0xcdb6af['start']['nodeAfter']));}}function xe(_0x192863){return Array['from'](new Set(_0x192863)['values']());}class Nt extends _0x5c587b{static get['requires'](){return[Ct];}['afterInit'](){const _0x43476a=this['editor'],_0x13c2ae=_0x43476a['model']['document']['selection'],_0x35b3f3=_0x43476a['locale'];if(!_0x43476a['plugins']['has']('TableEditing'))return;const _0x55ef40=_0x43476a['plugins']['get']('TrackChangesEditing'),_0x436ab2=_0x43476a['plugins']['get']('TableUtils'),_0x17f57e=_0x43476a['plugins']['get'](Ct);_0x17f57e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x55ef40['enableCommand']('mergeTableCells',()=>{const _0x4528e1=_0x436ab2['getSelectionAffectedTableCells'](_0x43476a['model']['document']['selection']);_0x43476a['model']['change'](()=>{_0x55ef40['markMultiRangeBlockFormat'](_0x4528e1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x43476a['commands']['get']('mergeTableCells')['on']('execute',(_0x219de7,_0x1529d8)=>{_0x43476a['commands']['get']('trackChanges')['value']&&(_0x1529d8['length']>0x0&&_0x1529d8[_0x1529d8['length']-0x1]&&_0x1529d8[_0x1529d8['length']-0x1]['forceDefaultExecution']||_0x55ef40['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x219de7['stop']());},{'priority':'highest'});for(const _0x3985ce of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x317afb=_0x43476a['commands']['get'](_0x3985ce);_0x55ef40['enableCommand'](_0x3985ce,()=>{const _0xe324af=_0x43476a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xdd45d9=>_0xdd45d9['is']('element','tableCell')),_0x1d73fd=_0x317afb['value'];_0x43476a['model']['change'](()=>{_0x55ef40['markMultiRangeBlockFormat']([_0xe324af,_0x1d73fd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x407af6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4ddbcc=_0x43476a['commands']['get'](_0x407af6);_0x55ef40['enableCommand'](_0x407af6,()=>{const _0x4b2409=_0x436ab2['getSelectionAffectedTableCells'](_0x43476a['model']['document']['selection'])[0x0],_0x326889=_0x4b2409['findAncestor']('table'),{column:_0xff5b9,row:_0x41d2ac}=_0x436ab2['getCellLocation'](_0x4b2409);let _0x119cff=[];if('horizontally'==_0x4ddbcc['direction']){const _0x2074fe=_0x436ab2['createTableWalker'](_0x326889,{'startRow':_0x41d2ac,'endRow':_0x41d2ac,'includeAllSlots':!0x0});_0x119cff=Array['from'](_0x2074fe)['map'](_0x5ce80f=>_0x5ce80f['cell']);}else{const _0x1fea87=_0x436ab2['createTableWalker'](_0x326889,{'column':_0xff5b9,'includeAllSlots':!0x0});_0x119cff=Array['from'](_0x1fea87)['map'](_0x3da2b2=>_0x3da2b2['cell']);}_0x43476a['model']['change'](_0x2afc2a=>{_0x55ef40['markBlockFormat'](_0x2afc2a['createRangeOn'](_0x4b2409),{'commandName':_0x407af6,'commandParams':[]},_0x119cff,_0x407af6);});});}_0x55ef40['descriptionFactory']['registerDescriptionCallback'](_0x29909c=>{if('formatBlock'!=_0x29909c['type']&&'formatInline'!=_0x29909c['type'])return;const {data:_0x11ffe5}=_0x29909c;return _0x11ffe5&&'mergeTableCells'==_0x11ffe5['commandName']?{'type':'format','content':c(_0x35b3f3,'*Merge\x20cells*')}:void 0x0;}),_0x55ef40['descriptionFactory']['registerDescriptionCallback'](_0x5e87d6=>{if('formatBlock'!=_0x5e87d6['type']&&'formatInline'!=_0x5e87d6['type'])return;const {data:_0x3a52fd}=_0x5e87d6;return _0x3a52fd?'splitTableCellVertically'==_0x3a52fd['commandName']?{'type':'format','content':c(_0x35b3f3,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3a52fd['commandName']?{'type':'format','content':c(_0x35b3f3,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x25d222=_0x17f57e['_acceptFormatSuggestionCallbackFactory']();for(const _0x2d9e29 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x55ef40['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d9e29,'accept',_0x25d222);for(const _0x55b7db of['splitTableCellVertically','splitTableCellHorizontally'])_0x55ef40['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x55b7db,'accept',_0x25d222);_0x55ef40['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x21a569=>{_0x43476a['model']['change'](_0x7e59b6=>{const _0x3198ba=Array['from'](_0x13c2ae['getRanges']())['map'](_0x3fed58=>_0x4ce525['fromRange'](_0x3fed58));_0x7e59b6['setSelection'](_0x21a569),_0x43476a['commands']['get']('mergeTableCells')['refresh'](),_0x43476a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3b677b=_0x3198ba['filter'](_0x2f315d=>'$graveyard'!=_0x2f315d['root']['rootName']);_0x3b677b['length']>0x0&&_0x7e59b6['setSelection'](_0x3b677b);for(const _0x1caf00 of _0x3198ba)_0x1caf00['detach']();});});for(const _0x277ca6 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x200530=_0x43476a['commands']['get'](_0x277ca6);_0x200530['on']('set:isEnabled',(_0x3056f7,_0x2a160f,_0x4a0942)=>{if(_0x4a0942){const _0x4ff71e=_0x43476a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45af95=>_0x45af95['is']('element','tableCell'));this['_areMergableCells'](_0x200530['value'],_0x4ff71e)||(_0x3056f7['return']=!0x1,_0x3056f7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5e1049=this['editor']['commands']['get']('mergeTableCells'),_0x55b86e=this['editor']['plugins']['get']('TableUtils');if(!_0x5e1049['isEnabled'])return!0x1;const _0x144d69=_0x55b86e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4ee42c of _0x144d69)for(const _0x2d8d9e of _0x144d69)if(_0x4ee42c!=_0x2d8d9e&&!this['_areMergableCells'](_0x4ee42c,_0x2d8d9e))return!0x1;return!0x0;}['_areMergableCells'](_0x3de79d,_0x40d27e){const _0x2b72ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35a692=this['editor']['model']['createRangeOn'](_0x3de79d),_0x183a47=this['editor']['model']['createRangeOn'](_0x40d27e),_0x288502=new Set(),_0x4f0d6c=new Set();for(const _0x51dc81 of _0x2b72ca['getSuggestions']())if(('insertion'==_0x51dc81['type']||'deletion'==_0x51dc81['type']||'mergeTableCells'==_0x51dc81['subType'])&&_0x51dc81['isInContent']){for(const _0x2338d5 of _0x51dc81['getRanges']())_0x2338d5['containsRange'](_0x35a692,!0x0)&&_0x288502['add'](_0x51dc81['type']+':'+_0x51dc81['author']['id']),_0x2338d5['containsRange'](_0x183a47,!0x0)&&_0x4f0d6c['add'](_0x51dc81['type']+':'+_0x51dc81['author']['id']);}if(_0x288502['size']!=_0x4f0d6c['size'])return!0x1;for(const _0x5ace0b of _0x288502)if(!_0x4f0d6c['has'](_0x5ace0b))return!0x1;return!0x0;}}class Dt extends _0x5c587b{static get['requires'](){return[Ct];}['afterInit'](){const _0x5945c0=this['editor'];if(!_0x5945c0['plugins']['has']('TableEditing'))return;const _0xac5776=_0x5945c0['locale'],_0xd73feb=_0x5945c0['plugins']['get']('TrackChangesEditing');_0xd73feb['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xd73feb['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xd73feb['registerBlockAttribute']('headingRows'),_0xd73feb['registerBlockAttribute']('headingColumns'),_0xd73feb['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xac5776,'FORMAT_HEADER_ROW')),_0xd73feb['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xac5776,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x525139=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd90d66=this['editor']['plugins']['get']('TableUtils'),_0x1394a7=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5234b0({showActiveMarker:_0x5312da=!0x0,setDataAttribute:_0x1e5a26=!0x0}={}){return(_0x253300,_0x2a6cb8,_0x5975d8)=>{const {type:_0x40ab08,id:_0xb1efa4}=_0x525139['_splitMarkerName'](_0x2a6cb8['markerName']),_0x443bd5=_0x525139['getSuggestion'](_0xb1efa4),_0xce8548=_0x443bd5['data'];if('formatBlock'!=_0x443bd5['type']||!_0xce8548||'setTableColumnHeader'!=_0xce8548['commandName'])return;if(_0x2a6cb8['item'])return void _0x253300['stop']();if(!_0x5975d8['consumable']['consume'](_0x2a6cb8['markerRange'],_0x253300['name']))return;const _0x39ba9e=_0x2a6cb8['markerRange']['start']['nodeAfter'],_0x4f1cda=_0x2a6cb8['markerRange']['end']['nodeBefore'],_0xa4d063=_0x39ba9e['parent']['parent'],{column:_0x55c38f}=_0xd90d66['getCellLocation'](_0x39ba9e),{column:_0x43ba5d}=_0xd90d66['getCellLocation'](_0x4f1cda);for(let _0x18d819=_0x55c38f;_0x18d819<=_0x43ba5d;_0x18d819++){const _0x2bd7d9=_0xd90d66['createTableWalker'](_0xa4d063,{'column':_0x18d819,'includeAllSlots':!0x1});for(const _0x31ee30 of _0x2bd7d9){const _0x4a3546=_0x31ee30['cell'],_0x4afc01=_0x5975d8['mapper']['toViewElement'](_0x4a3546);_0x5975d8['writer']['addClass']('ck-suggestion-marker-'+_0x40ab08,_0x4afc01),_0x1e5a26&&_0x5975d8['writer']['setAttribute']('data-suggestion',_0xb1efa4,_0x4afc01),_0x5975d8['mapper']['bindElementToMarker'](_0x4afc01,_0x2a6cb8['markerName']),_0x5312da&&(_0x525139['activeMarkers']['includes'](_0x2a6cb8['markerName'])?_0x5975d8['writer']['addClass']('ck-suggestion-marker--active',_0x4afc01):_0x5975d8['writer']['removeClass']('ck-suggestion-marker--active',_0x4afc01));}}};}_0x525139['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1394a7),_0x525139['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1394a7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5234b0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x494b23,_0x31f49d,_0x5a6ced)=>{_0x5a6ced['options']['showSuggestionHighlights']&&_0x5234b0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x494b23,_0x31f49d,_0x5a6ced);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4a3824,_0x6a5701,_0x1e182f)=>{const {type:_0x5740e2,id:_0x4d14ba}=_0x525139['_splitMarkerName'](_0x6a5701['markerName']),_0x53fd50=_0x525139['getSuggestion'](_0x4d14ba),_0x4e50cd=_0x53fd50['data'];if('formatBlock'!=_0x53fd50['type']||!_0x4e50cd||'setTableColumnHeader'!=_0x4e50cd['commandName'])return;const _0x200d43=_0x1e182f['mapper']['markerNameToElements'](_0x6a5701['markerName']);if(_0x200d43){for(const _0x2c010d of _0x200d43)_0x1e182f['writer']['removeClass']('ck-suggestion-marker-'+_0x5740e2,_0x2c010d),_0x1e182f['writer']['removeClass']('ck-suggestion-marker--active',_0x2c010d),_0x1e182f['writer']['removeAttribute']('data-suggestion',_0x2c010d),_0x1e182f['mapper']['unbindElementFromMarkerName'](_0x2c010d,_0x6a5701['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x253cc0=this['editor'],_0xcaff91=_0x253cc0['locale'];function _0x575690(_0x50a071){return{'type':'format','content':c(_0xcaff91,'*Format:*\x20%0',_0x50a071)};}_0x253cc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x71b754=>{if('formatBlock'!=_0x71b754['type'])return;const {data:_0x3ba066}=_0x71b754;if(_0x3ba066){if('setTableRowHeader'==_0x3ba066['commandName']){const _0x1c3305=_0x3ba066['commandParams'][0x0]['forceValue'];return _0x575690(c(_0xcaff91,_0x1c3305?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3ba066['commandName']){const _0x5df7b0=_0x3ba066['commandParams'][0x0]['forceValue'];return _0x575690(c(_0xcaff91,_0x5df7b0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x5c587b{['afterInit'](){const _0x215ed0=this['editor'],_0x3d3a3f=_0x215ed0['locale'],_0x677bcf=_0x215ed0['plugins']['get']('TrackChangesEditing');function _0x5af795(_0x1538c2){return{'type':'format','content':''+c(_0x3d3a3f,'*Set\x20table\x20type:*\x20%0',_0x1538c2)};}_0x215ed0['plugins']['has']('TableLayout')&&(_0x677bcf['enableCommand']('insertTableLayout'),_0x677bcf['enableDefaultAttributesIntegration']('tableType'),_0x677bcf['registerBlockAttribute']('tableType'),_0x677bcf['descriptionFactory']['registerElementLabel'](_0x588614=>_0x588614['is']('element','table')&&'layout'===_0x588614['getAttribute']('tableType'),_0x37a652=>c(_0x3d3a3f,'ELEMENT_LAYOUT_TABLE',_0x37a652)),_0x677bcf['descriptionFactory']['registerDescriptionCallback'](_0x5ad0b2=>{const {data:_0x4158d9}=_0x5ad0b2;if(_0x4158d9&&'tableType'==_0x4158d9['key'])switch(_0x4158d9['newValue']){case'layout':return _0x5af795(c(_0x3d3a3f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5af795(c(_0x3d3a3f,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x354c95=>[_0x354c95,null]));class $t extends _0x5c587b{static get['requires'](){return[Ct];}['afterInit'](){const _0x126c7a=this['editor'];if(!_0x126c7a['plugins']['has']('TableClipboard'))return;const _0x178207=_0x126c7a['plugins']['get']('TrackChangesEditing'),_0x44cbd7=_0x126c7a['plugins']['get']('TableUtils'),_0x2374fc=_0x126c7a['plugins']['get'](Ct),_0x5e20d3=_0x126c7a['plugins']['get']('TableClipboard'),_0xf5a088=_0x126c7a['plugins']['get']('TableSelection'),_0x3c8056=_0x126c7a['plugins']['get'](_0x4a7527);_0x2374fc['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x126c7a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x126c7a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5446af=null,_0x2ad211=!0x1;_0x3c8056['on']('contentInsertion',(_0x2bec3c,_0x1e2b24)=>{_0x2ad211='paste'===_0x1e2b24['method'];}),_0x126c7a['model']['on']('insertContent',(_0x25161a,_0xca1a60)=>{if(!_0x2ad211&&null===_0xf5a088['getSelectedTableCells']())return;const [_0x5f53ba,_0x47bc5c]=_0xca1a60,_0x511ee1=_0xca1a60[_0xca1a60['length']-0x1];_0x511ee1&&_0x511ee1['forceDefaultExecution']||_0x178207['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3c9d30,_0xf7c3a,_0x26f5aa,_0x3120a1,_0x204e0b){if(_0xf7c3a&&!_0xf7c3a['is']('documentSelection'))return!0x1;const _0x1031f7=_0x204e0b['getTableIfOnlyTableInContent'](_0x3c9d30,_0x26f5aa);if(!_0x1031f7||!He(_0x1031f7,void 0x0,_0x3120a1))return!0x1;const _0x2f2720=_0x3120a1['getSelectionAffectedTableCells'](_0x26f5aa['document']['selection']);if(!_0x2f2720['length'])return!0x1;const _0x339a59=_0x2f2720[0x0]['findAncestor']('table'),_0x3234f4=_0x3120a1['getRowIndexes'](_0x2f2720),_0x25c6f3=_0x3120a1['getColumnIndexes'](_0x2f2720),_0x27cd82={'startRow':_0x3234f4['first'],'endRow':_0x3234f4['last'],'startColumn':_0x25c6f3['first'],'endColumn':_0x25c6f3['last']};return 0x1==_0x2f2720['length']&&(_0x27cd82['endRow']+=_0x3120a1['getRows'](_0x1031f7)-0x1,_0x27cd82['endColumn']+=_0x3120a1['getColumns'](_0x1031f7)-0x1),He(_0x339a59,_0x27cd82,_0x3120a1);}(_0x5f53ba,_0x47bc5c,_0x126c7a['model'],_0x44cbd7,_0x5e20d3)&&(_0x25161a['stop'](),_0x5446af={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x126c7a['model']['change'](()=>{_0x126c7a['model']['insertContent'](_0xca1a60[0x0],_0xca1a60[0x1],_0xca1a60[0x2],{'forceDefaultExecution':!0x0});const _0x492330=_0x2565c0(),{rowInsertionRanges:_0x47ddba,columnInsertionRanges:_0x5948e7,insertionRanges:_0x40f9cc,deletionRanges:_0x5afbee,cells:_0x3cdcbb}=_0x5446af;_0x47ddba['length']&&_0x178207['markMultiRangeInsertion'](_0x47ddba,'tablePasteRow',{'tablePasteChainId':_0x492330}),_0x5948e7['length']&&_0x178207['markMultiRangeInsertion'](_0x5948e7,'tablePasteColumn',{'tablePasteChainId':_0x492330}),_0x40f9cc['length']&&(_0x178207['markMultiRangeInsertion'](_0x40f9cc,'tablePaste',{'tablePasteChainId':_0x492330,'skipNestingCheck':!0x0}),_0x40f9cc['forEach'](_0x401996=>_0x401996['detach']?.())),_0x5afbee['length']&&(_0x178207['markMultiRangeDeletion'](_0x5afbee,'tablePaste',{'tablePasteChainId':_0x492330,'skipNestingCheck':!0x0}),_0x5afbee['forEach'](_0x596295=>_0x596295['detach']?.()));const _0x594255=_0x178207['markMultiRangeBlockFormat'](_0x3cdcbb['map'](({element:_0x42cb88})=>_0x42cb88),{'formatGroupId':_0x2565c0()},[],'tablePasteCell',{'tablePasteChainId':_0x492330});if(_0x594255){const _0x5905ef=_0x594255['getMarkers'](),_0x7d1b54=[];for(const {element:_0x5a07e2,attributes:_0x2f2cda}of _0x3cdcbb){if(!_0x2f2cda)continue;const _0x411812=_0x126c7a['model']['createRangeOn'](_0x5a07e2),_0x59a630=_0x5905ef['find'](_0x3228bb=>_0x3228bb['getRange']()['isEqual'](_0x411812));_0x59a630&&_0x7d1b54['push']([_0x59a630['name'],_0x2f2cda]);}_0x7d1b54['length']&&_0x594255['setAttribute']('markerAttributes',Object['fromEntries'](_0x7d1b54));}_0x5446af=null;}));},{'priority':_0x1896ea['high']+0xa}),_0x3c8056['on']('contentInsertion',()=>{_0x2ad211=!0x1;},{'priority':'lowest'}),_0x126c7a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x28a0bc,_0xb990e3)=>{const [_0x1c5d03,_0x521a2b,,_0x13e5c9]=_0xb990e3;if(!_0x5446af)return;_0x28a0bc['stop']();const _0x33b306=_0x1c5d03['cell'],_0x342c7d=_0x521a2b,_0x3d457a=De(_0x33b306),_0x45fa17=De(_0x342c7d);_0x28a0bc['return']=_0x33b306;let _0x4e73c0=null,_0x5b3ff6=null;if(_0x45fa17||_0x3d457a){if(_0x3d457a&&!_0x45fa17){_0x13e5c9['remove'](_0x33b306['getChild'](0x0));for(const _0x454479 of Array['from'](_0x342c7d['getChildren']()))_0x13e5c9['insert'](_0x454479,_0x33b306,'end');const _0x4c3e20=_0x5446af['rowInsertionIndexes']['includes'](_0x1c5d03['row']),_0x9bab4a=_0x5446af['columnInsertionIndexes']['includes'](_0x1c5d03['column']);_0x4c3e20||_0x9bab4a||(_0x4e73c0=_0x4ce525['fromRange'](_0x13e5c9['createRangeIn'](_0x33b306)));}else _0x45fa17&&!_0x3d457a&&(_0x5b3ff6=_0x13e5c9['createRangeIn'](_0x33b306));}else{const _0x2651b6=_0x13e5c9['createElement']('tableCellSuggestion'),_0x1a8b87=_0x13e5c9['createElement']('tableCellSuggestion');_0x13e5c9['wrap'](_0x13e5c9['createRangeIn'](_0x33b306),_0x1a8b87),_0x13e5c9['insert'](_0x2651b6,_0x33b306,0x0);for(const _0x237044 of Array['from'](_0x342c7d['getChildren']()))_0x13e5c9['insert'](_0x237044,_0x2651b6,'end');_0x4e73c0=_0x4ce525['fromRange'](_0x13e5c9['createRangeOn'](_0x2651b6)),_0x5b3ff6=_0x4ce525['fromRange'](_0x13e5c9['createRangeOn'](_0x1a8b87));}const _0x4bebc8=Array['from'](_0x342c7d['getAttributes']())['filter'](([_0x589ac5])=>Oe['includes'](_0x589ac5));_0x5446af['cells']['push']({'element':_0x33b306,'attributes':_0x4bebc8['length']?Object['fromEntries'](_0x4bebc8):null}),_0x4e73c0&&_0x5446af['insertionRanges']['push'](_0x4e73c0),_0x5b3ff6&&_0x5446af['deletionRanges']['push'](_0x5b3ff6);},{'priority':'high'}),_0x44cbd7['on']('insertColumns',(_0x5c64d5,_0x5057e5)=>{const [_0x343638,_0x2efbb0={}]=_0x5057e5;if(!_0x5446af)return;const _0x3ded29=_0x2efbb0['at']||0x0,_0x2529e4=_0x2efbb0['columns']||0x1;_0x5446af['columnInsertionIndexes']=new Array(_0x2529e4)['fill'](_0x3ded29)['map']((_0x259ff7,_0x8f0e39)=>_0x259ff7+_0x8f0e39);for(const {cell:_0x143618}of _0x44cbd7['createTableWalker'](_0x343638,{'startColumn':_0x3ded29,'endColumn':_0x3ded29+_0x2529e4-0x1}))_0x5446af['columnInsertionRanges']['push'](_0x126c7a['model']['createRangeOn'](_0x143618));},{'priority':'low'}),_0x44cbd7['on']('insertRows',(_0x5ebf74,_0x40f52c)=>{const [_0x349a61,_0x12d240={}]=_0x40f52c;if(!_0x5446af)return;const _0x5c5700=_0x12d240['at']||0x0,_0x510e8e=_0x12d240['rows']||0x1;_0x5446af['rowInsertionIndexes']=new Array(_0x510e8e)['fill'](_0x5c5700)['map']((_0x5d7665,_0x2cc009)=>_0x5d7665+_0x2cc009);for(const {cell:_0x36891c}of _0x44cbd7['createTableWalker'](_0x349a61,{'startRow':_0x5c5700,'endRow':_0x5c5700+_0x510e8e-0x1}))_0x5446af['rowInsertionRanges']['push'](_0x126c7a['model']['createRangeOn'](_0x36891c));},{'priority':'low'}),_0x178207['descriptionFactory']['registerDescriptionCallback'](_0x469cf9=>{if(_0x469cf9['subType']&&_0x469cf9['subType']['startsWith']('tablePaste'))return _0x469cf9['previous']?{}:{'type':'insertion','content':c(_0x126c7a['locale'],'*Replace\x20table\x20cells*')};});const _0x207722=()=>!0x1;for(const _0x118cab of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x178207['_suggestionFactory']['registerCustomCallback']('insertion',_0x118cab,'join',_0x207722),_0x178207['_suggestionFactory']['registerCustomCallback']('deletion',_0x118cab,'join',_0x207722),_0x178207['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x118cab,'join',_0x207722);_0x178207['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x207722),_0x178207['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2dd5dc,_0x39c3a4,_0x117ecf)=>{const _0x32bde6=_0x2dd5dc['map'](_0x3f76ff=>_0x3f76ff['getContainedElement']())['filter'](_0x262df6=>_0x262df6),_0x215745=new Map(_0x32bde6['map'](_0x2a8d60=>[_0x2a8d60,null]));if(_0x5446af){for(const {element:_0x5ca87b,attributes:_0x332cc3}of _0x5446af['cells'])_0x332cc3&&_0x215745['set'](_0x5ca87b,_0x332cc3);}else{if(_0x117ecf&&_0x117ecf['markerAttributes'])for(const [_0x4f39b6,_0x5d6c51]of Object['entries'](_0x117ecf['markerAttributes'])){const _0x1c3ec0=_0x126c7a['model']['markers']['get'](_0x4f39b6),_0x16cdbc=_0x1c3ec0?_0x1c3ec0['getRange']()['getContainedElement']():null;_0x16cdbc&&_0x215745['set'](_0x16cdbc,_0x5d6c51);}}_0x126c7a['model']['change'](_0x1010d8=>{for(const [_0x1e9ea3,_0x2cb295]of _0x215745)_0x1010d8['setAttributes']({...Ue,..._0x2cb295},_0x1e9ea3);});});const _0x14b1ac=(_0x4f5d7a,_0x527068)=>{_0x178207['_suggestionFactory']['registerCustomCallback'](_0x4f5d7a,'tablePaste',_0x527068,(_0x404a21,_0x2b2a32,_0x322c8c)=>{_0x126c7a['model']['change'](_0xe65908=>{const _0x4a0eb9=[];for(const _0x22e541 of _0x404a21){const _0x5680b3=_0x22e541['start']['nodeAfter'];_0x5680b3['is']('element','tableCellSuggestion')&&_0x4a0eb9['push'](_0x5680b3);}_0x178207['_suggestionFactory']['getSuggestionCallback'](_0x4f5d7a,null,_0x527068)(_0x404a21,_0x2b2a32,_0x322c8c);for(const _0x5f0743 of _0x4a0eb9)'$graveyard'!=_0x5f0743['root']['rootName']&&_0xe65908['unwrap'](_0x5f0743);});});};_0x14b1ac('insertion','accept'),_0x14b1ac('insertion','discard'),_0x14b1ac('deletion','accept'),_0x14b1ac('deletion','discard'),_0x178207['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5dab89=>{const _0x126308=_0x5dab89['map'](_0x412606=>_0x412606['getContainedElement']()),_0x14a85d=_0x126308[0x0]['findAncestor']('table'),{minRow:_0x5ac3d7,maxRow:_0x376104}=_0x2374fc['_getCoordsForCells'](_0x126308);_0x44cbd7['removeRows'](_0x14a85d,{'at':_0x5ac3d7,'rows':_0x376104-_0x5ac3d7+0x1});}),_0x178207['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x55ec54=>{const _0x1a622c=_0x55ec54['map'](_0x1ed1ac=>_0x1ed1ac['getContainedElement']()),_0xf24186=_0x1a622c[0x0]['findAncestor']('table'),{minColumn:_0x53d8a9,maxColumn:_0x16f3df}=_0x2374fc['_getCoordsForCells'](_0x1a622c);_0x44cbd7['removeColumns'](_0xf24186,{'at':_0x53d8a9,'columns':_0x16f3df-_0x53d8a9+0x1});});const _0x17f7a4=(_0x27f909,_0x3caa6f)=>{if(!_0x3caa6f['subType']||!_0x3caa6f['subType']['startsWith']('tablePaste'))return;const _0x143eae=_0x3caa6f['attributes']['tablePasteChainId'],_0x5d7a2c=_0x178207['getSuggestions']()['filter'](_0x803fa9=>_0x803fa9['isInContent']&&_0x803fa9['attributes']&&_0x803fa9['attributes']['tablePasteChainId']==_0x143eae);_0x5d7a2c['length']&&_0x3caa6f['getAllAdjacentSuggestions']()['length']!=_0x5d7a2c['length']&&_0x5d7a2c['reduce']((_0x2a96e9,_0x3ac658)=>(_0x2a96e9['next']=_0x3ac658,_0x3ac658['previous']=_0x2a96e9,_0x3ac658));};function _0x6edef3(_0xa1f237,_0x3a9917=!0x0){const {id:_0x3a679a,authorId:_0x51c2dd}=_0x178207['_splitMarkerName'](_0xa1f237['markerName']),_0x593e34=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5bd774=_0x178207['activeMarkers']['includes'](_0xa1f237['markerName']);return _0x5bd774&&_0x593e34['push']('ck-suggestion-marker--active'),{'classes':_0x593e34,'attributes':{'data-suggestion':_0x3a679a,'data-author-id':_0x51c2dd},'priority':_0x5bd774&&_0x3a9917?0xbc2:0xbb8};}_0x178207['on']('suggestionLoaded',_0x17f7a4,{'priority':'high'}),_0x178207['on']('suggestionUnloaded',_0x17f7a4,{'priority':'high'}),_0x126c7a['model']['document']['registerPostFixer'](()=>{let _0x103193=!0x1;const _0x3de166=Array['from'](_0x126c7a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x121cde,data:_0x55d52b}of _0x3de166){const {group:_0x2afb83,type:_0x4909f6,id:_0x1ea2c1}=_0x178207['_splitMarkerName'](_0x121cde);if('suggestion'!=_0x2afb83||'deletion'!=_0x4909f6||_0x55d52b['oldRange'])continue;if(!_0x178207['hasSuggestion'](_0x1ea2c1))continue;const _0x3b5fbb=_0x178207['getSuggestion'](_0x1ea2c1)['getRanges'](),_0x5a2a67=_0x126c7a['plugins']['get']('Users')['me'];for(const _0xa6411b of _0x178207['getSuggestions']()){if(!_0xa6411b['isInContent']||_0xa6411b['author']!=_0x5a2a67)continue;if('formatBlock'!=_0xa6411b['type']||'tablePasteCell'!=_0xa6411b['subType'])continue;if(_0xa6411b['getRanges']()['every'](_0x3afeac=>_0x3b5fbb['some'](_0x59b105=>_0x59b105['containsRange'](_0x3afeac,!0x0)))){for(const _0x56643d of _0xa6411b['getAllAdjacentSuggestions']())_0x56643d['isInContent']&&(_0x56643d['discard'](),_0x103193=!0x0);}}}return _0x103193;}),_0x126c7a['model']['document']['registerPostFixer'](_0x448221=>{const _0x441d4d=_0x126c7a['commands']['get']('redo');if(!_0x441d4d||!_0x441d4d['_createdBatches']['has'](_0x448221['batch']))return!0x1;let _0x4ee22c=!0x1;const _0x55b6f8=_0x126c7a['plugins']['get']('Users')['me'],_0x523cec=_0x126c7a['model']['document']['differ']['getChanges'](),_0xaa6484=Array['from'](_0x126c7a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2cbc7b,data:_0x2bd12c})=>{const {group:_0x364f2d,subType:_0x32e99f,authorId:_0xaf206a}=_0x178207['_splitMarkerName'](_0x2cbc7b);return'suggestion'==_0x364f2d&&'tablePaste'==_0x32e99f&&_0xaf206a==_0x55b6f8['id']&&!_0x2bd12c['oldRange'];});for(const _0x3ac04a of _0x523cec){if('insert'!=_0x3ac04a['type']||'tableCellSuggestion'!=_0x3ac04a['name']||0x1!=_0x3ac04a['length'])continue;const _0x3053a1=_0x448221['createRange'](_0x3ac04a['position'],_0x3ac04a['position']['getShiftedBy'](0x1));if(!_0xaa6484['find'](({data:_0x581841})=>_0x581841['newRange']['isEqual'](_0x3053a1))){for(const {name:_0x21be96,data:_0x100eb0}of _0xaa6484)if(_0x3053a1['containsRange'](_0x100eb0['newRange'])){_0x448221['updateMarker'](_0x21be96,{'range':_0x3053a1}),_0x4ee22c=!0x0;break;}}}return _0x4ee22c;}),_0x126c7a['model']['document']['registerPostFixer'](_0x2c4a39=>{let _0x48aad2=!0x1;const _0x4a892f=_0x126c7a['plugins']['get']('Users')['me'],_0x34b271=_0x178207['getSuggestions']()['filter'](_0x3731bf=>_0x3731bf['isInContent']&&_0x3731bf['author']==_0x4a892f),_0x57916f=new Set(),_0x2a3fc1=new Set();for(const _0x4093d8 of _0x34b271)if('tablePaste'==_0x4093d8['subType'])for(const _0x38c85e of _0x4093d8['getMarkers']()){const _0x494237=_0x38c85e['getRange']()['getContainedElement']();if(_0x494237){if(_0x494237['is']('element','tableCellSuggestion')&&De(_0x494237)){_0x4093d8['removeMarker'](_0x38c85e['name']),_0x57916f['add'](_0x494237),_0x48aad2=!0x0;const _0x5ab6b0=_0x494237['nextSibling'],_0x73990e=_0x494237['previousSibling'],_0x23ee4f=_0x5ab6b0&&_0x5ab6b0['is']('element','tableCellSuggestion'),_0x78296=_0x73990e&&_0x73990e['is']('element','tableCellSuggestion');_0x23ee4f&&!_0x57916f['has'](_0x5ab6b0)&&_0x2a3fc1['add'](_0x5ab6b0),_0x78296&&!_0x57916f['has'](_0x73990e)&&_0x2a3fc1['add'](_0x73990e);}else _0x494237['is']('element','paragraph')&&_0x494237['isEmpty']&&(_0x4093d8['removeMarker'](_0x38c85e['name']),_0x48aad2=!0x0);}}else{if('tablePasteCell'==_0x4093d8['subType']){if(!_0x4093d8['attributes']||!_0x4093d8['attributes']['tablePasteChainId'])continue;const _0xeb3a8f=_0x4093d8['attributes']['markerAttributes'];if(_0xeb3a8f&&Object['keys'](_0xeb3a8f)['length'])continue;const _0x1e372b=_0x4093d8['attributes']['tablePasteChainId'];let _0x490966=!0x0,_0x23bc36=!0x0;for(const _0x3e748a of _0x34b271)if(_0x3e748a['subType']&&_0x3e748a['subType']['startsWith']('tablePaste')){if(!_0x3e748a['attributes']['tablePasteChainId']){_0x23bc36=!0x1;break;}if(_0x3e748a['id']!=_0x4093d8['id']&&_0x3e748a['attributes']['tablePasteChainId']==_0x1e372b){_0x490966=!0x1;break;}}_0x23bc36&&_0x490966&&(_0x4093d8['removeMarkers'](),_0x48aad2=!0x0);}}for(const _0xa352f5 of _0x57916f)_0x2c4a39['remove'](_0xa352f5);for(const _0x217eee of _0x2a3fc1)_0x2c4a39['unwrap'](_0x217eee);return _0x48aad2;}),_0x126c7a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x20129a=>_0x6edef3(_0x20129a),'converterPriority':'high'}),_0x126c7a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x252bd8,_0x25f62d)=>_0x25f62d['options']['showSuggestionHighlights']?_0x6edef3(_0x252bd8,!0x1):null,'converterPriority':'high'});const _0x15b093=_0x126c7a['editing']['view'];this['listenTo'](_0x15b093['document'],'clipboardOutput',(_0xd304d0,_0x3eb8ae)=>{const _0x4c66d1=[];for(const _0x2c9cb1 of _0x15b093['createRangeIn'](_0x3eb8ae['content'])['getItems']())_0x2c9cb1['is']('element','suggestion-td')&&_0x4c66d1['push'](_0x2c9cb1);_0x15b093['change'](_0x8fee18=>{for(const _0x1f3ecd of _0x4c66d1)_0x8fee18['move'](_0x8fee18['createRangeIn'](_0x1f3ecd),_0x8fee18['createPositionBefore'](_0x1f3ecd)),_0x8fee18['remove'](_0x1f3ecd);});});}}function De(_0x2563c3){if(_0x2563c3['isEmpty'])return!0x0;const _0x16a9fd=_0x2563c3['getChild'](0x0);return _0x16a9fd['is']('element','paragraph')&&_0x16a9fd['isEmpty'];}function He(_0x582435,_0x31497d={},_0x534b0a){for(const {isAnchor:_0x11b592,cellHeight:_0x4b96c2,cellWidth:_0x16cda8}of _0x534b0a['createTableWalker'](_0x582435,{'includeAllSlots':!0x0,..._0x31497d}))if(!_0x11b592||0x1!=_0x4b96c2||0x1!=_0x16cda8)return!0x1;return!0x0;}class Bt extends _0x5c587b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1d9889=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d9889['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1d9889['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1d9889['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d9889['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1d9889['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1d9889['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x50e1de,_0x1275c2){const _0x5c3789=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b935a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x27c056=_0x1275c2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x41056c=_0x5b935a['getColumnGroupElement'](_0x27c056);let _0xc44669=_0x41056c?_0x5b935a['getTableColumnsWidths'](_0x41056c):null,_0x53c2a1=_0x27c056['getAttribute']('tableWidth')||null;const _0x56411c=_0x1275c2['tableWidth']||_0x53c2a1,_0x59e7f8=_0x1275c2['columnWidths']||_0xc44669,_0x569701=this['editor']['plugins']['get']('Users')['me'];for(const _0x3be7d4 of _0x5c3789['getSuggestions']()){const _0x12862e=_0x3be7d4['getContainedElement']();if('resizeTable'===_0x3be7d4['subType']&&_0x12862e===_0x27c056){_0x3be7d4['author']!==_0x569701&&_0x3be7d4['discard']();const _0x4adb4a=_0x3be7d4['data']['commandParams'];_0x53c2a1=_0x4adb4a[0x0]['tableWidth'],_0xc44669=_0x4adb4a[0x0]['columnWidths'];break;}}_0x50e1de({'table':_0x27c056,'tableWidth':_0x56411c,'columnWidths':_0x59e7f8}),_0x5c3789['markBlockFormat'](_0x27c056,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x53c2a1,'columnWidths':_0xc44669}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4306c3){if('formatBlock'!=_0x4306c3['type']&&'formatInline'!=_0x4306c3['type'])return;const {data:_0x1b6a01}=_0x4306c3;if(_0x1b6a01&&'resizeTable'===_0x1b6a01['formatGroupId']){const _0xb59e4c='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0xb59e4c)};}}}class xt extends _0x5c587b{['afterInit'](){const _0x200921=this['editor'];_0x200921['plugins']['has']('Template')&&_0x200921['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x5c587b{['afterInit'](){const _0x4f4cff=this['editor'];if(!_0x4f4cff['commands']['get']('insertTableOfContents'))return;_0x4f4cff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x22fac8=_0x4f4cff['plugins']['get']('TrackChangesEditing'),_0x4684ca=_0x4f4cff['locale'];_0x22fac8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x419cb7=>c(_0x4684ca,'ELEMENT_TABLE_OF_CONTENTS',_0x419cb7));}}class Rt extends _0x5c587b{['afterInit'](){const _0x49fdb4=this['editor'];if(!_0x49fdb4['plugins']['has']('Title'))return;const _0x142706=_0x49fdb4['plugins']['get']('TrackChangesEditing');_0x142706['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x49fdb4['locale'],'ELEMENT_TITLE')),_0x49fdb4['model']['document']['registerPostFixer'](_0x13fd99=>{let _0x15a297=!0x1;const _0x17d58a=Array['from'](_0x49fdb4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45f2c7,data:_0x36394e}of _0x17d58a){const {group:_0x29af6a}=_0x142706['_splitMarkerName'](_0x45f2c7);if('suggestion'!==_0x29af6a||!_0x36394e['newRange'])continue;const _0x2bed73=_0x36394e['newRange'],_0x2219c9=_0x2bed73['end']['nodeBefore'];if(!_0x2219c9||!_0x2219c9['is']('element','title-content'))continue;if(!_0x2bed73['start']['isTouching'](_0x2bed73['end']))continue;const _0x23d63e=_0x49fdb4['model']['schema']['getNearestSelectionRange'](_0x2bed73['end'],'forward');if(_0x23d63e&&_0x23d63e['isCollapsed']){const _0x210f6e=_0x13fd99['createRange'](_0x2bed73['start'],_0x23d63e['start']);_0x210f6e['isEqual'](_0x2bed73)||(_0x13fd99['updateMarker'](_0x45f2c7,{'range':_0x210f6e}),_0x15a297=!0x0);}_0x15a297||(_0x13fd99['removeMarker'](_0x45f2c7),_0x15a297=!0x0);}return _0x15a297;});}}class Tt extends _0x5c587b{['afterInit'](){const _0x3e22e5=this['editor'],_0x60d967=_0x3e22e5['plugins']['get']('TrackChangesEditing');_0x3e22e5['plugins']['has']('Uploadcare')&&(_0x60d967['enableCommand']('uploadcare'),_0x3e22e5['plugins']['has']('UploadcareImageEdit')&&(_0x60d967['enableCommand']('uploadcareImageEdit'),_0x60d967['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x60d967['registerBlockAttribute']('uploadcareImageId'),_0x60d967['descriptionFactory']['registerDescriptionCallback'](_0x57f0d7=>{if('attribute'!=_0x57f0d7['type'])return;const {data:_0x621438}=_0x57f0d7;return _0x621438&&'uploadcareImageId'==_0x621438['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5c587b{['afterInit'](){const _0x50466a=this['editor'],_0x20e774=_0x50466a['plugins']['get']('TrackChangesEditing');_0x50466a['plugins']['has']('UndoEditing')&&(_0x20e774['enableCommand']('undo'),_0x20e774['enableCommand']('redo'));}}class Ut extends _0x5c587b{static get['requires'](){return[Ct];}['afterInit'](){const _0x42d3c5=this['editor'];if(!_0x42d3c5['plugins']['has']('TableCaptionEditing'))return;_0x42d3c5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5c587b{['tableProperties'];['tableCellProperties'];constructor(_0x270b1e){super(_0x270b1e),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1a3645=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1302b7 of this['tableProperties'])_0x1a3645['enableCommand'](_0x1302b7,(_0x4f4aed,_0x24e8f2)=>{const _0x34476a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1302b7,[_0x34476a],this['tableProperties'],'tableProperties',_0x4f4aed,_0x24e8f2);});_0x1a3645['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1a3645['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a3645['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x555b4f,_0x9b18a3)=>this['handleDiscardAction'](this['tableProperties'],_0x555b4f,_0x9b18a3)),_0x1a3645['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x30ece0 of this['tableCellProperties'])_0x1a3645['enableCommand'](_0x30ece0,(_0xa47cb4,_0x4153d5)=>{const _0x46e3df=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x30ece0,_0x46e3df,this['tableCellProperties'],'tableCellProperties',_0xa47cb4,_0x4153d5);});_0x1a3645['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1a3645['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a3645['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x199465,_0x1dd92e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x199465,_0x1dd92e)),_0x1a3645['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1a3645['descriptionFactory']['registerDescriptionCallback'](_0x2c4ab9=>this['handleSuggestionDescription'](_0x2c4ab9));}['_handlePropertyChange'](_0x31da77,_0x254c30,_0x49c4da,_0x4fbdd8,_0x142799,_0x133a0a){const _0x4a6988=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x133a0a['batch'],()=>{for(const _0x5e4ff2 of _0x254c30){if(this['_getSuggestion'](_0x5e4ff2,_0x4fbdd8))_0x142799(_0x133a0a);else{const _0x977b1f={};for(const _0x326659 of _0x49c4da){const _0x3f46e3=_0x5e4ff2['getAttribute'](_0x326659);void 0x0!==_0x3f46e3&&(_0x977b1f[_0x326659]=_0x3f46e3);}_0x142799(_0x133a0a),_0x4a6988['markBlockFormat'](_0x5e4ff2,{'commandParams':[_0x977b1f]},[],_0x4fbdd8);}}});}['handleDiscardAction'](_0x2bd37b,_0x458c0a,_0x4e3d37){const _0x5c291f=_0x458c0a[0x0]['start']['nodeAfter'],_0x2e8e4c=_0x4e3d37['commandParams'][0x0];this['editor']['model']['change'](_0x185221=>{for(const _0x31199 of _0x2bd37b)void 0x0!==_0x2e8e4c[_0x31199]?_0x185221['setAttribute'](_0x31199,_0x2e8e4c[_0x31199],_0x5c291f):_0x185221['removeAttribute'](_0x31199,_0x5c291f);});}['handleSuggestionDescription'](_0x5ab184){if(_0x5ab184['data'])switch(_0x5ab184['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x591e33,_0x16643a){const _0x315c7a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x191bdb of _0x315c7a['getSuggestions']({'skipNotAttached':!0x0})){const _0x4955fb=_0x191bdb['getContainedElement']();if(_0x191bdb['subType']===_0x16643a&&_0x4955fb===_0x591e33)return _0x191bdb;}return null;}}const u='$elementName';class p extends _0x5c587b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x4ad932,_0xaf915d,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e6557){super(_0x2e6557),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x278485,_0x1b2dbf,_0x12fa92,_0x473ee4)=>{this['_model']['change'](()=>{for(const _0x42c175 of[..._0x473ee4,..._0x12fa92])this['_model']['markers']['has'](_0x42c175)&&_0x2e6557['editing']['reconvertMarker'](_0x42c175);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2e6557['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x2e6557['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2e6557['config']['get']('trackChanges.trackFormatChanges'),_0x2e6557['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2e6557['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2e6557,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x22cda2=this['editor'],_0x1adb96=(_0x2b24dd,_0xa1882b)=>{if('attribute'!=_0x2b24dd)return'ck-suggestion-marker-'+_0x2b24dd;const _0x3a8b4b=_0xa1882b['split']('|')[0x0];return this['_isBlockAttribute'](_0x3a8b4b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x22cda2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x471e7d=>{const {id:_0x3df52b,authorId:_0x31d3be,type:_0x5151a4,subType:_0x58eefe}=this['_splitMarkerName'](_0x471e7d['markerName']),_0x293fd8=['ck-suggestion-marker',_0x1adb96(_0x5151a4,_0x58eefe)];let _0x20b56d=0xbb8;return this['activeMarkers']['includes'](_0x471e7d['markerName'])&&(_0x293fd8['push']('ck-suggestion-marker--active'),_0x20b56d=0xbc2),'deletion'==_0x5151a4&&(_0x20b56d+=0x5),{'classes':_0x293fd8,'attributes':{'data-suggestion':_0x3df52b,'data-author-id':_0x31d3be},'priority':_0x20b56d};}}),_0x22cda2['conversion']['for']('dataDowncast')['add'](_0x325ce6=>{_0x325ce6['on']('addMarker:suggestion',(_0x348d1a,_0x11cfd2,_0x25929a)=>{if(!_0x25929a['options']['showSuggestionHighlights'])return;const _0x26773a=_0x11cfd2['item'];if(!_0x26773a)return;const _0x17fbea=_0x25929a['mapper']['toViewElement'](_0x26773a);_0x22cda2['model']['schema']['isObject'](_0x26773a)&&_0x17fbea&&!_0x17fbea['getCustomProperty']('widget')&&_0x17fbea['is']('containerElement')&&_0x3dc284(_0x17fbea,_0x25929a['writer']);},{'priority':'high'});}),_0x22cda2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2a8143,_0x5dfbb2)=>{if(!_0x5dfbb2['options']['showSuggestionHighlights'])return null;const {id:_0x560667,authorId:_0x2e63e8,type:_0x483263,subType:_0x119dbc}=this['_splitMarkerName'](_0x2a8143['markerName']);return{'classes':['ck-suggestion-marker',_0x1adb96(_0x483263,_0x119dbc)],'priority':0xbb8,'attributes':{'data-suggestion':_0x560667,'data-author-id':_0x2e63e8}};}});const _0x4b8830=({showActiveMarkers:_0x203051=!0x0,isAttributeSuggestion:_0x1b3387=!0x1}={})=>(_0x47c735,_0x4cc4e0,_0x5dd48c)=>{if(!_0x4cc4e0['item'])return;const {id:_0x26bb3c,authorId:_0x2fc8c1}=this['_splitMarkerName'](_0x4cc4e0['markerName']);if(_0x1b3387){const _0x49e5d7=this['_suggestions']['get'](_0x26bb3c),_0x3f22cc=this['_getAttributeKey'](_0x49e5d7);if(!this['_isBlockAttribute'](_0x3f22cc))return;}if(_0x4cc4e0['item']['is']('selection'))return void _0x5dd48c['consumable']['consume'](_0x4cc4e0['item'],_0x47c735['name']);const _0x4943a6=_0x5dd48c['mapper']['toViewElement'](_0x4cc4e0['item']);if(_0x4cc4e0['item']['is']('element')&&_0x22cda2['model']['schema']['isBlock'](_0x4cc4e0['item'])&&!_0x4943a6['getCustomProperty']('addHighlight')){_0x5dd48c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4943a6),_0x5dd48c['writer']['setAttribute']('data-suggestion',_0x26bb3c,_0x4943a6),_0x5dd48c['writer']['setAttribute']('data-author-id',_0x2fc8c1,_0x4943a6),_0x5dd48c['mapper']['bindElementToMarker'](_0x4943a6,_0x4cc4e0['markerName']),_0x203051&&(this['activeMarkers']['includes'](_0x4cc4e0['markerName'])?_0x5dd48c['writer']['addClass']('ck-suggestion-marker--active',_0x4943a6):_0x5dd48c['writer']['removeClass']('ck-suggestion-marker--active',_0x4943a6));for(const _0x4a6366 of _0x22cda2['model']['createRangeIn'](_0x4cc4e0['item'])['getItems']())_0x5dd48c['consumable']['consume'](_0x4a6366,_0x47c735['name']);_0x5dd48c['consumable']['consume'](_0x4cc4e0['item'],_0x47c735['name']);}};_0x22cda2['conversion']['for']('dataDowncast')['add'](_0x5d129f=>{_0x5d129f['on']('addMarker:suggestion:formatBlock',(_0x361df0,_0x158802,_0x4424f8)=>{_0x4424f8['options']['showSuggestionHighlights']&&_0x4b8830({'showActiveMarkers':!0x1})(_0x361df0,_0x158802,_0x4424f8);},{'priority':'highest'});}),_0x22cda2['conversion']['for']('dataDowncast')['add'](_0x5762e8=>{_0x5762e8['on']('addMarker:suggestion:attribute',(_0x240e7f,_0x308259,_0x2943b3)=>{_0x2943b3['options']['showSuggestionHighlights']&&_0x4b8830({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x240e7f,_0x308259,_0x2943b3);},{'priority':'highest'});}),_0x22cda2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1c79bf,_0x507c38)=>{if(_0x507c38['options']['showSuggestionHighlights']){const {id:_0x552ebb,authorId:_0x23de70}=this['_splitMarkerName'](_0x1c79bf);return _0x1c79bf['includes'](':split')||_0x1c79bf['includes'](':merge')?{'group':'suggestion','name':_0x1c79bf['substr'](0xb),'attributes':{'data-suggestion':_0x552ebb,'data-author-id':_0x23de70}}:null;}return{'group':'suggestion','name':_0x1c79bf['substr'](0xb)};}}),_0x22cda2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x13fddf,{writer:_0x219fa3})=>{let _0x47ee66='suggestion:'+_0x13fddf['getAttribute']('suggestion-type')+':'+_0x13fddf['getAttribute']('id');return _0x13fddf['getAttribute']('marker-count')&&(_0x47ee66+=':'+_0x13fddf['getAttribute']('marker-count')),_0x219fa3['createElement']('$marker',{'data-name':_0x47ee66});}}),_0x22cda2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x22cda2['conversion']['for']('editingDowncast')['add'](_0x5d896a=>{_0x5d896a['on']('addMarker:suggestion:formatBlock',_0x4b8830(),{'priority':'high'});}),_0x22cda2['conversion']['for']('editingDowncast')['add'](_0x21bfde=>{_0x21bfde['on']('addMarker:suggestion:attribute',_0x4b8830({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x22cda2['conversion']['for']('editingDowncast')['add'](_0x971905=>{_0x971905['on']('removeMarker:suggestion:formatBlock',(_0x230cd7,_0x29fd97,_0x392ebc)=>{const _0x3af4ad=_0x392ebc['mapper']['markerNameToElements'](_0x29fd97['markerName']);if(_0x3af4ad){for(const _0x481f1e of _0x3af4ad)_0x481f1e['getCustomProperty']('addHighlight')||(_0x392ebc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x481f1e),_0x392ebc['writer']['removeAttribute']('data-suggestion',_0x481f1e),_0x392ebc['writer']['removeAttribute']('data-author-id',_0x481f1e),_0x392ebc['mapper']['unbindElementFromMarkerName'](_0x481f1e,_0x29fd97['markerName']));}},{'priority':'high'});}),_0x22cda2['conversion']['for']('editingDowncast')['add'](_0x40cafa=>{_0x40cafa['on']('removeMarker:suggestion:attribute',(_0x429fa2,_0x45e64e,_0x3987d6)=>{const _0xc6a972=_0x3987d6['mapper']['markerNameToElements'](_0x45e64e['markerName']);if(!_0xc6a972)return;const {id:_0x1d9047}=this['_splitMarkerName'](_0x45e64e['markerName']),_0x555e5a=this['_suggestions']['get'](_0x1d9047),_0x593910=this['_getAttributeKey'](_0x555e5a);if(this['_isBlockAttribute'](_0x593910)){for(const _0x5a0c96 of _0xc6a972)_0x5a0c96['getCustomProperty']('addHighlight')||(_0x3987d6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a0c96),_0x3987d6['writer']['removeAttribute']('data-suggestion',_0x5a0c96),_0x3987d6['writer']['removeAttribute']('data-author-id',_0x5a0c96),_0x3987d6['mapper']['unbindElementFromMarkerName'](_0x5a0c96,_0x45e64e['markerName']));}},{'priority':'high'});}),_0x22cda2['model']['document']['registerPostFixer'](_0x5df94e=>{let _0x18f535=!0x1;const _0x589168=Array['from'](_0x22cda2['model']['document']['differ']['getChangedMarkers']()),_0x256392=new Set();for(const {name:_0x349717,data:_0x4dfae7}of _0x589168){const {group:_0x39468c,type:_0x262c9d,subType:_0x5c6e88,id:_0xe9caba}=this['_splitMarkerName'](_0x349717);if('suggestion'!==_0x39468c)continue;const _0x15a1f6=this['_suggestions']['get'](_0xe9caba);if(null!=_0x4dfae7['newRange']){'formatInline'==_0x262c9d&&(_0x18f535=_0x18f535||Jt(_0x4dfae7['newRange'],_0x349717,_0x5df94e,_0x22cda2['model']['schema']));const _0x33d71e='attribute'==_0x262c9d&&this['_isBlockAttribute'](_0x5c6e88['split']('|')[0x0]);if(_0x4dfae7['newRange']['isCollapsed']||'$graveyard'==_0x4dfae7['newRange']['root']['rootName']||'formatBlock'==_0x262c9d&&!Ht(_0x4dfae7['newRange'])||_0x33d71e&&!Ht(_0x4dfae7['newRange'])||'deletion'==_0x262c9d&&!(!Lt(_0x2418de=_0x4dfae7['newRange'])&&!function(_0x44a1bd){return _0x44a1bd['start']['parent']==_0x44a1bd['end']['nodeBefore']&&_0x44a1bd['start']['isAtEnd'];}(_0x2418de)))_0x5df94e['removeMarker'](_0x349717),_0x18f535=!0x0;else{if(!_0x15a1f6||!_0x15a1f6['isInContent'])continue;if(_0x4dfae7['newRange']&&_0x4dfae7['oldRange']&&_0x4dfae7['newRange']['isEqual'](_0x4dfae7['oldRange']))continue;_0x256392['add'](_0x15a1f6);}}}var _0x2418de;return _0x256392['size']>0x0&&(_0x18f535=!!this['_joinWithAdjacentSuggestions'](_0x256392)||_0x18f535),_0x18f535;}),_0x22cda2['model']['document']['registerPostFixer'](_0x252fa3=>{let _0x4be804=!0x1;for(const _0x450d19 of _0x22cda2['model']['document']['differ']['getChanges']())if('insert'==_0x450d19['type'])for(const _0x51b245 of this['_suggestions']['values']()){if(_0x51b245['isMultiRange']||!_0x51b245['isInContent'])continue;const _0x418941='formatBlock'==_0x51b245['type'],_0x1de846=this['_getAttributeKey'](_0x51b245),_0x34d8bc=_0x1de846&&this['_isBlockAttribute'](_0x1de846);if(!_0x418941&&!_0x34d8bc)continue;const _0x2f43ec=_0x51b245['getFirstRange']();if(_0x2f43ec['start']['parent']!=_0x2f43ec['end']['parent']&&!_0x2f43ec['end']['isAtEnd']){const _0x2aacfb=_0x22cda2['model']['createPositionAt'](_0x2f43ec['start']['nodeAfter'],'end'),_0x429b4b=_0x22cda2['model']['createRange'](_0x2f43ec['start'],_0x2aacfb);_0x252fa3['updateMarker'](_0x51b245['getFirstMarker'](),{'range':_0x429b4b}),_0x4be804=!0x0;}}return _0x4be804;}),_0x22cda2['model']['document']['registerPostFixer'](_0x2c73a8=>this['_processAttributeChanges'](_0x2c73a8)),_0x22cda2['model']['document']['registerPostFixer'](_0x45f662=>!_0x45f662['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x45f662)),_0x22cda2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x22cda2['model']['document']['on']('change:data',(_0x259334,_0x5d16f3)=>{if(!_0x5d16f3['isLocal']||_0x5d16f3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x15c8d8=_0x22cda2['model']['document']['differ']['getChanges']();if(0x0==_0x15c8d8['length'])return;const _0xc368bf=[],_0x299d24=_0x15c8d8['filter'](_0x585bc7=>'attribute'==_0x585bc7['type']),_0x4fb040=_0x15c8d8['filter'](_0x16366c=>'insert'==_0x16366c['type']&&'$text'!=_0x16366c['name']);for(const _0x3b85e2 of _0x299d24)this['_isRegisteredAttribute'](_0x3b85e2['attributeKey'])&&_0xc368bf['push']({'key':_0x3b85e2['attributeKey'],'newValue':_0x3b85e2['attributeNewValue'],'oldValue':_0x3b85e2['attributeOldValue'],'range':qt(_0x3b85e2['range'],_0x22cda2['model'])});for(const _0x2ab124 of _0x4fb040){if('rename'!=_0x2ab124['action']&&'refresh'!=_0x2ab124['action'])continue;const _0x2ab0a2=zt(_0x2ab124['position']['nodeAfter'],_0x22cda2['model']),_0x18651c=_0x2ab124['before'];'rename'==_0x2ab124['action']&&_0xc368bf['push']({'key':u,'newValue':_0x2ab124['name'],'oldValue':_0x18651c['name'],'range':_0x2ab0a2});for(const [_0x4906ef,_0x157b09]of _0x18651c['attributes']){if(!this['_isRegisteredAttribute'](_0x4906ef))continue;const _0x4e1ccb=_0x2ab124['attributes']['get'](_0x4906ef);_0x157b09!==_0x4e1ccb&&_0xc368bf['push']({'key':_0x4906ef,'newValue':_0x4e1ccb,'oldValue':_0x157b09,'range':_0x2ab0a2});}for(const [_0x103f28,_0x50adb6]of _0x2ab124['attributes'])this['_isRegisteredAttribute'](_0x103f28)&&(_0x18651c['attributes']['has'](_0x103f28)||_0xc368bf['push']({'key':_0x103f28,'newValue':_0x50adb6,'oldValue':null,'range':_0x2ab0a2}));}0x0!=_0xc368bf['length']&&_0x22cda2['model']['enqueueChange'](_0x5d16f3,_0x1f0408=>{const _0x11039d=_0x2565c0();for(const {range:_0x48fb8f,key:_0x53334b,oldValue:_0x1f9ca1,newValue:_0x133463}of _0xc368bf)this['markAttributeChange'](_0x48fb8f,_0x53334b,_0x1f9ca1,_0x133463,{'groupId':_0x11039d});this['_reduceExistingSuggestions'](_0x1f0408,_0xc368bf);});},{'priority':'lowest'}),_0x22cda2['model']['markers']['on']('update:suggestion',(_0x157c30,_0x570d5e,_0x38e99f)=>{if(null==_0x38e99f){const {id:_0x4cea05}=this['_splitMarkerName'](_0x570d5e['name']),_0x136e47=this['_suggestions']['get'](_0x4cea05);_0x136e47&&_0x136e47['addMarkerName'](_0x570d5e['name']);}}),_0x22cda2['model']['document']['on']('change:data',()=>{const _0xce4627=Array['from'](_0x22cda2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5b230d=>'suggestion'===this['_splitMarkerName'](_0x5b230d['name'])['group']);if(0x0===_0xce4627['length'])return;_0xce4627['sort']((_0x1135ee,_0x4eb666)=>{const _0xaf60ef=_0x1135ee['data']['oldRange'],_0x190bc6=_0x4eb666['data']['oldRange'];return null===_0xaf60ef&&null===_0x190bc6?0x0:null===_0xaf60ef&&null!==_0x190bc6?-0x1:null!==_0xaf60ef&&null===_0x190bc6?0x1:_0xaf60ef['start']['isBefore'](_0x190bc6['start'])?-0x1:0x1;});const _0x118af7=new Set(),_0x177a40=new Set();for(const {name:_0x113252,data:_0xad5b}of _0xce4627){const {id:_0x550e3a}=this['_splitMarkerName'](_0x113252);if(null===_0xad5b['oldRange']){const _0x2820d5=this['_handleNewSuggestionMarker'](_0x113252);_0x177a40['add'](_0x2820d5);}else{const _0x5eea8d=this['_suggestions']['get'](_0x550e3a);null!==_0xad5b['newRange']||_0x5eea8d['isInContent']?(_0x118af7['add'](_0x5eea8d['head']),_0x177a40['add'](_0x5eea8d)):this['_removeSuggestion'](_0x5eea8d);}}_0x177a40['size']>0x0&&this['_refreshSuggestionsChain'](_0x177a40);for(const _0xf67c4b of _0x118af7)this['fire']('suggestionChanged',_0xf67c4b);}),_0x22cda2['model']['on']('applyOperation',(_0x2c63cf,_0x3e2cc1)=>{const _0x487992=_0x3e2cc1[0x0];if(!this['_suggestions']['size'])return;if(!_0x487992['isDocumentOperation'])return;if(_0x487992['batch']['isUndo']||!_0x487992['batch']['isLocal'])return;let _0x3eab3c,_0xc6894;switch(_0x487992['type']){case'insert':_0x3eab3c=_0x22cda2['model']['createPositionAt'](_0x487992['position']),_0xc6894=_0x3eab3c['getShiftedBy'](_0x487992['howMany']);break;case'split':_0x3eab3c=_0x22cda2['model']['createPositionAt'](_0x487992['splitPosition']),_0xc6894=_0x22cda2['model']['createPositionAt'](_0x487992['moveTargetPosition']);break;case'move':_0x3eab3c=_0x22cda2['model']['createPositionAt'](_0x487992['targetPosition']),_0xc6894=_0x3eab3c['getShiftedBy'](_0x487992['howMany']);break;default:return;}const _0x53123e=_0x22cda2['model']['createRange'](_0x3eab3c,_0xc6894);_0x22cda2['model']['change'](()=>{for(const {suggestion:_0xfbc658,meta:_0x18ab3d}of this['_findSuggestions'](_0x53123e)){if(_0xfbc658['isMultiRange'])continue;if('formatInline'==_0xfbc658['type'])continue;const _0x5422ba=this['_getAttributeKey'](_0xfbc658);if(_0x5422ba&&this['_isBlockAttribute'](_0x5422ba)&&'split'!=_0x487992['type'])continue;const _0xd600f9=_0xfbc658['data']&&_0xfbc658['data']['multipleBlocks'];('formatBlock'!=_0xfbc658['type']||'split'==_0x487992['type']&&!_0xd600f9)&&(_0x18ab3d['containsRangeInObject']||'insertion'==_0xfbc658['type']&&_0x18ab3d['isOwn']||_0xfbc658['getFirstRange']()['containsRange'](_0x53123e)&&this['_breakSuggestionMarker'](_0xfbc658,_0x3eab3c,_0xc6894));}});},{'priority':'lowest'}),_0x22cda2['model']['on']('deleteContent',(_0x2a136b,_0x1d35c1)=>{const _0x1df4c1=_0x1d35c1[0x0],_0x178528=_0x1d35c1[0x1];if(_0x178528&&_0x178528['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1df4c1['isCollapsed'])return;const _0x159a04=_0x22cda2['model']['schema'],{start:_0x1a9981,end:_0x3949c8}=_0x1df4c1['getFirstRange'](),_0x2929ad=_0x1a9981['nodeAfter']&&_0x159a04['isLimit'](_0x1a9981['nodeAfter'])?null:_0x159a04['getNearestSelectionRange'](_0x1a9981,'forward'),_0x1517ec=_0x3949c8['nodeBefore']&&_0x159a04['isLimit'](_0x3949c8['nodeBefore'])?null:_0x159a04['getNearestSelectionRange'](_0x3949c8,'backward'),_0x363b66=_0x22cda2['model']['createRange'](_0x2929ad?_0x2929ad['start']:_0x1a9981,_0x1517ec?_0x1517ec['end']:_0x3949c8);_0x22cda2['model']['change'](_0x1d635d=>{this['markDeletion'](_0x363b66);const _0x2570ee=_0x22cda2['model']['schema']['getNearestSelectionRange'](_0x363b66['start']);_0x1df4c1['is']('documentSelection')?_0x1d635d['setSelection'](_0x2570ee):_0x1df4c1['setTo'](_0x2570ee);}),_0x2a136b['stop']();},{'priority':_0x1896ea['normal']+0xa}),_0x22cda2['model']['on']('insertContent',(_0x3846c2,_0x5752de)=>{const _0x34d5f1=_0x5752de[_0x5752de['length']-0x1];_0x34d5f1&&_0x34d5f1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x22cda2['model']['change'](()=>{let _0x20d21e=_0x22cda2['model']['insertContent'](_0x5752de[0x0],_0x5752de[0x1],_0x5752de[0x2],{'forceDefaultExecution':!0x0});if(!_0x20d21e)return;_0x3846c2['return']=_0x20d21e['clone']();const _0x40239e=_0x20d21e['end']['nodeBefore'],_0x2fd61a=_0x22cda2['model']['schema'];_0x40239e&&_0x2fd61a['isBlock'](_0x40239e)&&!_0x2fd61a['isObject'](_0x40239e)&&(_0x20d21e=_0x22cda2['model']['createRange'](_0x20d21e['start'],_0x22cda2['model']['createPositionAt'](_0x40239e,'end'))),this['markInsertion'](_0x20d21e);}),_0x3846c2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3c9b8d=new x(_0x22cda2,this['_suggestions']);_0x22cda2['commands']['add']('acceptSuggestion',_0x3c9b8d),this['enableCommand']('acceptSuggestion');const _0x2eff40=new O(_0x22cda2,this['_suggestions']);_0x22cda2['commands']['add']('discardSuggestion',_0x2eff40),this['enableCommand']('discardSuggestion'),_0x22cda2['commands']['add']('acceptAllSuggestions',new R(_0x22cda2,_0x3c9b8d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x22cda2['commands']['add']('discardAllSuggestions',new R(_0x22cda2,_0x2eff40,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x22cda2['commands']['add']('acceptSelectedSuggestions',new E(_0x22cda2,_0x3c9b8d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x22cda2['commands']['add']('discardSelectedSuggestions',new E(_0x22cda2,_0x2eff40,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x10abc4=_0x22cda2['plugins']['get']('CommentsRepository');this['listenTo'](_0x10abc4,'addComment',(_0x49b719,{threadId:_0x27999c})=>{const _0x4dbc68=this['_suggestions']['get'](_0x27999c);_0x4dbc68&&_0x4dbc68['commentThread']&&0x1===_0x4dbc68['commentThread']['length']&&this['_updateSuggestionData'](_0x27999c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x10abc4,'removeComment',(_0x3024b3,{threadId:_0x5428e9})=>{const _0x585ef9=this['_suggestions']['get'](_0x5428e9);_0x585ef9&&_0x585ef9['commentThread']&&!_0x585ef9['commentThread']['length']&&this['_updateSuggestionData'](_0x5428e9,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4d7c44){const _0x526a5c=_0x52f7ab([0x70,0x4a,0x4f,0x56,0x4c,0x4d,0x6e,0x4e,0x49,0x6c,0x33,0x54,0x65,0x47,0x52,0x75,0x48,0x76,0x72,0x4b,0x32,0x31,0x39,0x36,0x7a,0x30,0x73,0x6f,0x58,0x66,0x71,0x42,0x59,0x78,0x55,0x45,0x44,0x62,0x35,0x6d,0x68,0x50,0x37,0x64,0x43,0x57,0x38,0x34,0x51,0x67,0x5a,0x53,0x6b,0x79,0x63,0x6a,0x46,0x74,0x69,0x77,0x41,0x61]),_0x2cc1b1=0x1825f21,_0x40f628=0x1853809^_0x2cc1b1,_0x24a1ba=window[_0x52f7ab([0x44,0x61,0x74,0x65])][_0x52f7ab([0x6e,0x6f,0x77])](),_0xe65fc5=_0x4d7c44[_0x52f7ab([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a95d0=new window[(_0x52f7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x547af1=>{_0xe65fc5[_0x52f7ab([0x6f,0x6e,0x63,0x65])](_0x52f7ab([0x72,0x65,0x61,0x64,0x79]),_0x547af1);}),_0x41acc0={[_0x52f7ab([0x6b,0x74,0x79])]:_0x52f7ab([0x45,0x43]),[_0x52f7ab([0x75,0x73,0x65])]:_0x52f7ab([0x73,0x69,0x67]),[_0x52f7ab([0x63,0x72,0x76])]:_0x52f7ab([0x50,0x2d,0x32,0x35,0x36]),[_0x52f7ab([0x78])]:_0x52f7ab([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x52f7ab([0x79])]:_0x52f7ab([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x52f7ab([0x61,0x6c,0x67])]:_0x52f7ab([0x45,0x53,0x32,0x35,0x36])},_0x575ff1=_0xe65fc5[_0x52f7ab([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52f7ab([0x67,0x65,0x74])](_0x52f7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x13d78d(){let _0x4c7a5a,_0x2fcb16=null,_0x1b6386=null;try{if(_0x575ff1==_0x52f7ab([0x47,0x50,0x4c]))return _0x52f7ab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c7a5a=_0x541f76(),!_0x4c7a5a)return _0x52f7ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c7a5a[_0x52f7ab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b6386=_0x5a0440(_0x4c7a5a[_0x52f7ab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c7a5a[_0x52f7ab([0x6a,0x74,0x69])])),await _0x1dae12()?_0x165db3()?_0x5ed695()?_0x52f7ab([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x300a76()?(_0x4c7a5a[_0x52f7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52f7ab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fcb16=_0x4521a8(_0x52f7ab([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c7a5a[_0x52f7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52f7ab([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fcb16=_0x4521a8(_0x52f7ab([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b7b59()):_0x52f7ab([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52f7ab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52f7ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5e970c){return _0x52f7ab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ed695(){const _0x208e9b=[_0x52f7ab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52f7ab([0x74,0x72,0x69,0x61,0x6c])][_0x52f7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c7a5a[_0x52f7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x24a1ba/0x3e8:0xe10*_0x40f628;return _0x4c7a5a[_0x52f7ab([0x65,0x78,0x70])]<_0x208e9b;}function _0x165db3(){const _0x16b32f=_0x4c7a5a[_0x52f7ab([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x16b32f)return!0x1;if(_0x16b32f[_0x52f7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52f7ab([0x2a])))return!0x0;if(_0x16b32f[_0x52f7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52f7ab([0x54,0x43])))return!0x0;if(_0x16b32f[_0x52f7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52f7ab([0x52,0x54,0x43]))){if(_0xc1b6ab())return!0x0;if(_0x58799a()||_0x54f851())return!0x0;}return!0x1;}function _0x300a76(){const _0x510174=_0x4c7a5a[_0x52f7ab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x510174||0x0==_0x510174[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x522617}=new URL(window[_0x52f7ab([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x510174[_0x52f7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x522617))return!0x0;const _0x1fed90=_0x522617[_0x52f7ab([0x73,0x70,0x6c,0x69,0x74])](_0x52f7ab([0x2e]));return _0x510174[_0x52f7ab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38ec22=>_0x38ec22[_0x52f7ab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52f7ab([0x2a])))[_0x52f7ab([0x6d,0x61,0x70])](_0x21e2c4=>_0x21e2c4[_0x52f7ab([0x73,0x70,0x6c,0x69,0x74])](_0x52f7ab([0x2e])))[_0x52f7ab([0x73,0x6f,0x6d,0x65])](_0x183ec5=>_0x1fed90[_0x52f7ab([0x65,0x76,0x65,0x72,0x79])]((_0x4b8bc3,_0x2ebf57)=>_0x183ec5[_0x2ebf57]===_0x4b8bc3||_0x183ec5[_0x2ebf57]===_0x52f7ab([0x2a])));}function _0x1b7b59(){return _0x2fcb16&&_0x1b6386?new window[(_0x52f7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb76b7b,_0x3115b)=>{_0x2fcb16[_0x52f7ab([0x74,0x68,0x65,0x6e])](_0xb76b7b,_0x3115b),_0x1b6386[_0x52f7ab([0x74,0x68,0x65,0x6e])](_0x26fb1f=>{_0x26fb1f!=_0x52f7ab([0x56,0x61,0x6c,0x69,0x64])&&_0xb76b7b(_0x26fb1f);},_0x3115b);}):_0x2fcb16||_0x1b6386||_0x52f7ab([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a0440(_0x37e708,_0x4d9356){return new window[(_0x52f7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4365d4=>{if(_0x364f68())return _0x4365d4(_0x52f7ab([0x56,0x61,0x6c,0x69,0x64]));_0x4779d4(),_0xe65fc5[_0x52f7ab([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52f7ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b5b59=!0x1;const _0x149777=_0x2565c0();function _0x315a44(_0x181e7a){return!!_0x181e7a&&(typeof _0x181e7a===_0x52f7ab([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x181e7a===_0x52f7ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x181e7a[_0x52f7ab([0x74,0x68,0x65,0x6e])]===_0x52f7ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x181e7a[_0x52f7ab([0x63,0x61,0x74,0x63,0x68])]===_0x52f7ab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c24af(_0x470d81){_0x5f04bb(_0x470d81)[_0x52f7ab([0x74,0x68,0x65,0x6e])](_0x32997c=>{if(!_0x32997c||_0x32997c[_0x52f7ab([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52f7ab([0x6f,0x6b]))return _0x52f7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x287e5f(_0x3062c0(_0x149777+_0x4d9356))!=_0x32997c[_0x52f7ab([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52f7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52f7ab([0x56,0x61,0x6c,0x69,0x64]);})[_0x52f7ab([0x74,0x68,0x65,0x6e])](_0x2c3bc9=>(_0x26e0a0(),_0x2c3bc9),()=>{const _0x169359=_0x39121e();return null==_0x169359?(_0x26e0a0(),_0x52f7ab([0x56,0x61,0x6c,0x69,0x64])):_0x52f7ab(_0x24a1ba-_0x169359>(0x258edb21^_0x2cc1b1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52f7ab([0x74,0x68,0x65,0x6e])](_0x4365d4)[_0x52f7ab([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4365d4(_0x52f7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b148f=0x1b4b1a1^_0x2cc1b1;function _0x26e0a0(){const _0x4316f3=_0x52f7ab([0x6c,0x6c,0x63,0x74,0x2d])+_0x287e5f(_0x3062c0(_0x37e708)),_0x5f4d48=_0x397f65(_0x287e5f(window[_0x52f7ab([0x4d,0x61,0x74,0x68])][_0x52f7ab([0x63,0x65,0x69,0x6c])](_0x24a1ba/_0x2b148f)));window[_0x52f7ab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52f7ab([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4316f3,_0x5f4d48);}function _0x39121e(){const _0x5e4f2f=_0x52f7ab([0x6c,0x6c,0x63,0x74,0x2d])+_0x287e5f(_0x3062c0(_0x37e708)),_0x47a796=window[_0x52f7ab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52f7ab([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e4f2f);return _0x47a796?window[_0x52f7ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x397f65(_0x47a796),0x10)*_0x2b148f:null;}function _0x5f04bb(_0x5b60d9){return new window[(_0x52f7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44f60f,_0xbbf25c)=>{_0x5b60d9[_0x52f7ab([0x74,0x68,0x65,0x6e])](_0x44f60f,_0xbbf25c),window[_0x52f7ab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xbbf25c,0x1838be1^_0x2cc1b1);});}}_0xe65fc5[_0x52f7ab([0x6f,0x6e])](_0x52f7ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14c4bd,_0x4afe14)=>{if(_0x4afe14[0x0]!=_0x37e708)return _0x4365d4(_0x52f7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4afe14[0x1]={..._0x4afe14[0x1],[_0x52f7ab([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x149777};},{[_0x52f7ab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52f7ab([0x68,0x69,0x67,0x68])}),_0xe65fc5[_0x52f7ab([0x6f,0x6e])](_0x52f7ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x23f164=>{_0x315a44(_0x23f164[_0x52f7ab([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b5b59=!0x0,_0x4c24af(_0x23f164[_0x52f7ab([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52f7ab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52f7ab([0x6c,0x6f,0x77])}),_0x3a95d0[_0x52f7ab([0x74,0x68,0x65,0x6e])](()=>{_0x1b5b59||_0x4365d4(_0x52f7ab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x364f68(){return _0xe65fc5[_0x52f7ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52f7ab([0x76,0x69,0x65,0x77])][_0x52f7ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52f7ab([0x61,0x75,0x74,0x6f]);}function _0x4779d4(){_0xe65fc5[_0x52f7ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52f7ab([0x76,0x69,0x65,0x77])][_0x52f7ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52f7ab([0x61,0x75,0x74,0x6f]);}}function _0x4521a8(_0x44e1b1){const _0x7751ec=[new window[(_0x52f7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3073e6=>setTimeout(_0x3073e6,0x18b61ed^_0x2cc1b1)),_0x3a95d0[_0x52f7ab([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52f7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x224c60=>{let _0x39cd2e=0x0;_0xe65fc5[_0x52f7ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x52f7ab([0x6f,0x6e])](_0x52f7ab([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x55f9c0,_0x406375)=>{_0x406375[0x0][_0x52f7ab([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39cd2e++,_0x39cd2e==(0x1825ed9^_0x2cc1b1)&&(_0x224c60(),_0x55f9c0[_0x52f7ab([0x6f,0x66,0x66])]());});}))];return window[_0x52f7ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52f7ab([0x72,0x61,0x63,0x65])](_0x7751ec)[_0x52f7ab([0x74,0x68,0x65,0x6e])](()=>_0x44e1b1);}async function _0x311854(){await _0x3a95d0,_0xe65fc5[_0x52f7ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x52f7ab([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1da356,_0xe65fc5[_0x52f7ab([0x6d,0x6f,0x64,0x65,0x6c])][_0x52f7ab([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1da356,_0xe65fc5[_0x52f7ab([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52f7ab([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc1b6ab(){return _0x428f7f(_0x52f7ab([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x57b766(_0x52f7ab([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x52f7ab([0x73,0x74,0x61,0x74,0x65])]==_0x52f7ab([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x58799a(){return _0x428f7f(_0x52f7ab([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x54f851(){return _0x428f7f(_0x52f7ab([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1f97a7(_0x23117e){const _0x3f4b04=_0x22917a();_0xe65fc5[_0x3f4b04]=_0x52f7ab([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x23117e,_0x23117e!=_0x52f7ab([0x56,0x61,0x6c,0x69,0x64])&&_0x311854();}function _0x22917a(){const _0x10421c=window[_0x52f7ab([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52f7ab([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52f7ab([0x6e,0x6f,0x77])]())[_0x52f7ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52f7ab([0x2e]),'');let _0x46385f=_0x52f7ab([0x70]);for(let _0x5c540a=0x0;_0x5c540a<_0x10421c[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c540a+=0x2){let _0x52bb8b=window[_0x52f7ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10421c[_0x52f7ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c540a,_0x5c540a+0x2));_0x52bb8b>=_0x526a5c[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52bb8b-=_0x526a5c[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x46385f+=_0x526a5c[_0x52bb8b];}return _0x46385f;}function _0x541f76(){const _0x5cc387=_0x575ff1[_0x52f7ab([0x73,0x70,0x6c,0x69,0x74])](_0x52f7ab([0x2e]));if(0x3!=_0x5cc387[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x301460(_0x5cc387[0x1]);function _0x301460(_0x41151d){const _0x221059=_0x3c5392(_0x41151d);return _0x221059&&_0x1b639d()?_0x221059:null;function _0x1b639d(){const _0x158595=_0x221059[_0x52f7ab([0x6a,0x74,0x69])],_0x51e663=window[_0x52f7ab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x158595[_0x52f7ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x158595[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe39168={..._0x221059,[_0x52f7ab([0x6a,0x74,0x69])]:_0x158595[_0x52f7ab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x158595[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe39168[_0x52f7ab([0x76,0x63])],_0x3062c0(_0xe39168)==_0x51e663;}}}async function _0x1dae12(){let _0x10bd87=!0x0;try{const _0x287057=_0x575ff1[_0x52f7ab([0x73,0x70,0x6c,0x69,0x74])](_0x52f7ab([0x2e])),[_0x1fb46e,_0x28b0b9,_0x2b520b]=_0x287057;return _0x368f55(_0x1fb46e),await _0x216096(_0x1fb46e,_0x28b0b9,_0x2b520b),_0x10bd87;}catch(_0x22d843){return!0x1;}function _0x368f55(_0x99be54){const _0x44836f=_0x3c5392(_0x99be54);_0x44836f&&_0x44836f[_0x52f7ab([0x61,0x6c,0x67])]==_0x52f7ab([0x45,0x53,0x32,0x35,0x36])||(_0x10bd87=!0x1);}async function _0x216096(_0x80389b,_0x445a3d,_0x2abf94){const _0x778bc3=window[_0x52f7ab([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52f7ab([0x66,0x72,0x6f,0x6d])](_0x4161e1(_0x2abf94),_0x6f72bc=>_0x6f72bc[_0x52f7ab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5f2bdc=new window[(_0x52f7ab([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52f7ab([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x80389b+_0x52f7ab([0x2e])+_0x445a3d),_0x3c6690=window[_0x52f7ab([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52f7ab([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c6690)return;const _0x3ad5d2=await _0x3c6690[_0x52f7ab([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52f7ab([0x6a,0x77,0x6b]),_0x41acc0,{[_0x52f7ab([0x6e,0x61,0x6d,0x65])]:_0x52f7ab([0x45,0x43,0x44,0x53,0x41]),[_0x52f7ab([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52f7ab([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52f7ab([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c6690[_0x52f7ab([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52f7ab([0x6e,0x61,0x6d,0x65])]:_0x52f7ab([0x45,0x43,0x44,0x53,0x41]),[_0x52f7ab([0x68,0x61,0x73,0x68])]:{[_0x52f7ab([0x6e,0x61,0x6d,0x65])]:_0x52f7ab([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ad5d2,_0x778bc3,_0x5f2bdc)||(_0x10bd87=!0x1);}}function _0x3c5392(_0x5f5369){return _0x5f5369[_0x52f7ab([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52f7ab([0x65,0x79]))?JSON[_0x52f7ab([0x70,0x61,0x72,0x73,0x65])](_0x4161e1(_0x5f5369)):null;}function _0x4161e1(_0x42b24d){return window[_0x52f7ab([0x61,0x74,0x6f,0x62])](_0x42b24d[_0x52f7ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52f7ab([0x2b]))[_0x52f7ab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52f7ab([0x2f])));}function _0x3062c0(_0x403f34){let _0x18bf2f=0x1505;function _0x26b221(_0x398563){for(let _0xd8ffe2=0x0;_0xd8ffe2<_0x398563[_0x52f7ab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd8ffe2++){const _0x5aca39=_0x398563[_0x52f7ab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd8ffe2);_0x18bf2f=(_0x18bf2f<<0x5)+_0x18bf2f+_0x5aca39,_0x18bf2f&=_0x18bf2f;}}function _0x3a8016(_0x34edee){Array[_0x52f7ab([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34edee)?_0x34edee[_0x52f7ab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a8016):_0x34edee&&typeof _0x34edee==_0x52f7ab([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52f7ab([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34edee)[_0x52f7ab([0x73,0x6f,0x72,0x74])]()[_0x52f7ab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ebfd7,_0x117f7d])=>{_0x26b221(_0x3ebfd7),_0x3a8016(_0x117f7d);}):_0x26b221(window[_0x52f7ab([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34edee));}return _0x3a8016(_0x403f34),_0x18bf2f>>>0x0;}function _0x287e5f(_0x59b48b){return _0x59b48b[_0x52f7ab([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52f7ab([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52f7ab([0x30]));}function _0x397f65(_0x1e3f97){return _0x1e3f97[_0x52f7ab([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52f7ab([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52f7ab([0x6a,0x6f,0x69,0x6e])]('');}function _0x428f7f(_0x277655){return _0xe65fc5[_0x52f7ab([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52f7ab([0x68,0x61,0x73])](_0x277655);}function _0x57b766(_0x9b3416){return _0xe65fc5[_0x52f7ab([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x52f7ab([0x67,0x65,0x74])](_0x9b3416);}function _0x1da356(){}function _0x52f7ab(_0xfc7b0e){return _0xfc7b0e['map'](_0x1ad9eb=>String['fromCharCode'](_0x1ad9eb))['join']('');}_0x1f97a7(await _0x13d78d());}(this);}set['adapter'](_0xcd9efc){if(this['_adapter'])throw new _0x152d77('track-changes-adapter-already-set',this);this['_adapter']=_0xcd9efc;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x501ca7=!0x1,toJSON:_0x122d40=!0x1}={}){const _0x2fa432=[];for(const _0x16a097 of this['_suggestions']['values']())_0x501ca7&&!_0x16a097['isInContent']||_0x2fa432['push'](_0x16a097);return _0x122d40?_0x2fa432['map'](_0x2d6d5c=>_0x2d6d5c['toJSON']()):_0x2fa432;}['getSuggestion'](_0x569a05){const _0xf87ccf=this['_suggestions']['get'](_0x569a05);if(!_0xf87ccf)throw new _0x152d77('track-changes-suggestion-not-found',this);return _0xf87ccf;}['hasSuggestion'](_0x50fbfc){return this['_suggestions']['has'](_0x50fbfc);}['addSuggestionData'](_0x3100ac){const {authorId:_0x49cd32,id:_0x297d75,attributes:_0x3ca1d1}=_0x3100ac,[_0x547de9,_0x1b779b]=_0x3100ac['type']['split'](':'),_0x1a483b=this['_suggestions']['get'](_0x297d75)||this['_createSuggestion'](_0x547de9,_0x1b779b,_0x297d75,_0x49cd32,_0x3ca1d1);if(this['_addThreadToSuggestion'](_0x1a483b),this['_checkSuggestionCorrectness'](_0x1a483b,_0x547de9,_0x1b779b||null,_0x49cd32),_0x1a483b['createdAt']=_0x3100ac['createdAt'],_0x1a483b['_isDataLoaded']=!0x0,_0x3ca1d1&&_0x3ca1d1['@external']){const _0x1a6825=_0x3ca1d1['@external'],_0x5723cf=this['_getExternalAuthor'](_0x1a6825['authorName']);_0x1a483b['authoredAt']=_0x1a6825['createdAt'],_0x1a483b['author']=_0x5723cf,_0x1a483b['isExternal']=!0x0;}else _0x1a483b['authoredAt']=_0x3100ac['createdAt'];switch(_0x3100ac['data']&&(_0x1a483b['data']=_0x3100ac['data']),_0x3100ac['attributes']&&(_0x1a483b['attributes']=_0x3100ac['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1a483b['_saved']=!0x0),this['_suggestionState']['get'](_0x1a483b)){case'notReady':this['_suggestionState']['set'](_0x1a483b,'dataReady');break;case'markerReady':_0x1a483b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1a483b])),this['_refreshSuggestionsChain'](new Set([_0x1a483b])),this['_suggestionState']['set'](_0x1a483b,'ready'),this['fire']('suggestionLoaded',_0x1a483b)):this['_suggestionState']['set'](_0x1a483b,'removed');}return _0x1a483b;}['acceptSuggestion'](_0x32ab9e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5905c7 of _0x32ab9e['getAllAdjacentSuggestions']())_0x5905c7['accept']();});});}['discardSuggestion'](_0x13eeb1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x363bca of _0x13eeb1['getAllAdjacentSuggestions']())_0x363bca['discard']();});});}['enableCommand'](_0x53dc59,_0x5aaf3){const _0x70ff9f=this['editor']['commands']['get'](_0x53dc59);if(!_0x70ff9f)throw new _0x152d77('track-changes-command-not-found',this,{'commandName':_0x53dc59});if(this['_enabledCommands']['has'](_0x70ff9f))throw new _0x152d77('track-changes-enable-command-twice',this,{'commandName':_0x53dc59});this['_enabledCommands']['add'](_0x70ff9f),_0x5aaf3&&_0x70ff9f['on']('execute',(_0x3bfbc8,_0x137c37)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x137c37['length']>0x0&&_0x137c37[_0x137c37['length']-0x1]&&_0x137c37[_0x137c37['length']-0x1]['forceDefaultExecution']?_0x137c37['pop']():(_0x3bfbc8['return']=_0x5aaf3((..._0x58d52d)=>_0x70ff9f['execute'](..._0x58d52d,{'forceDefaultExecution':!0x0}),..._0x137c37),_0x3bfbc8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x20c72d){let _0x2044da,_0x54c81c;const _0x2bf330=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2044da=_0x20c72d();}catch(_0x3c93ce){_0x54c81c=_0x3c93ce;}return _0x2bf330||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x54c81c&&_0x152d77['rethrowUnexpectedError'](_0x54c81c,this),_0x2044da;}['markInsertion'](_0x16b77c,_0x493932=null,_0x2097af={}){if(_0x16b77c['isCollapsed'])return null;const _0x30dc46=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2097af['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x21f264,meta:_0x439a7c}of this['_findSuggestions'](_0x16b77c,'insertion'))if(_0x439a7c['isOwn']){if(!_0x439a7c['isNextTo']){if(_0x439a7c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x21f264,_0x2097af))continue;return _0x21f264;}if(Xt(_0x21f264,_0x2097af))return _0x21f264;this['_breakSuggestionMarker'](_0x21f264,_0x16b77c['start'],_0x16b77c['end']);break;}if(_0x493932==_0x21f264['subType']&&Xt(_0x21f264,_0x2097af)){const _0x53938e=_0x21f264['getFirstRange']();return _0x53938e['start']['isEqual'](_0x16b77c['end'])?this['_setSuggestionRange'](_0x21f264,this['_model']['createRange'](_0x16b77c['start'],_0x53938e['end'])):this['_setSuggestionRange'](_0x21f264,this['_model']['createRange'](_0x53938e['start'],_0x16b77c['end'])),_0x21f264;}}const _0x5d3750=_0x2565c0(),_0x542c89=_0x30dc46['id'],_0x52b348=_0x493932?'insertion:'+_0x493932:'insertion',_0x5a5321=this['_setSuggestionData']({'id':_0x5d3750,'type':_0x52b348,'createdAt':new Date(),'authorId':_0x542c89,'attributes':_0x2097af});return this['_addSuggestionMarker'](_0x52b348,_0x5d3750,_0x542c89,_0x16b77c),_0x5a5321;}['markMultiRangeInsertion'](_0x1df187,_0x468993='multi',_0x5ec143={}){const _0x369816=this['editor']['plugins']['get']('Users')['me'],_0x5f4782=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x468993,'join');this['_trackingSessionId']&&(_0x5ec143['trackingSessionId']=this['_trackingSessionId']);for(const _0x16b139 of this['getSuggestions']())if(_0x16b139['author']['id']==_0x369816['id']&&'insertion'==_0x16b139['type']&&_0x16b139['subType']==_0x468993&&Xt(_0x16b139,_0x5ec143)&&(_0x5f4782(_0x16b139['getRanges'](),_0x1df187)||_0x5f4782(_0x1df187,_0x16b139['getRanges']()))){for(const _0x518d25 of _0x1df187)_0x16b139['addRange'](_0x518d25);return _0x16b139;}for(const {suggestion:_0x5d0efb,meta:_0x55f4f5}of this['_findSuggestions'](_0x1df187,'insertion')){if(!_0x55f4f5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x55f4f5['containsRangeInObject'])continue;if(!Xt(_0x5d0efb,_0x5ec143))continue;let _0x439da7=!0x0;for(const _0xdd07fa of _0x5d0efb['getRanges']())for(const _0x5db597 of _0x1df187)if(!_0xdd07fa['containsRange'](_0x5db597)){_0x439da7=!0x1;break;}if(_0x439da7)return _0x5d0efb;}const _0x397f80=_0x2565c0(),_0x2d07e0=_0x369816['id'],_0x1ef4f3='insertion:'+_0x468993,_0x24bc79=this['_setSuggestionData']({'id':_0x397f80,'type':_0x1ef4f3,'createdAt':new Date(),'authorId':_0x2d07e0,'attributes':_0x5ec143});for(const _0x32ab39 of _0x1df187)this['_addSuggestionMarker'](_0x1ef4f3,_0x397f80,_0x2d07e0,_0x32ab39,o['getMultiRangeId']());return _0x24bc79;}['markInlineFormat'](_0x410453,_0x42d7b4,_0x2efcd5=null,_0x5e2fc4={}){if(_0x2efcd5=_0x2efcd5||Kt(_0x42d7b4),_0x410453['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5e2fc4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3d7415=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2efcd5,'accept');return this['forceDefaultExecution'](()=>_0x3d7415([_0x410453],_0x42d7b4,_0x5e2fc4)),null;}const _0x36576a=this['editor']['plugins']['get']('Users')['me'],_0x17237a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5dc69a,meta:_0x3cfcd6}of this['_findSuggestions'](_0x410453,'insertion'))_0x3cfcd6['isOwn']&&!_0x3cfcd6['isInsideObject']&&_0x17237a['push'](..._0x5dc69a['getRanges']());}const _0x5e3ee3=function(_0x3def73,_0x3147b8){const _0x3c548e=[];for(const _0x49f599 of _0x3147b8){const _0x308067=_0x3def73['getIntersection'](_0x49f599);_0x308067&&_0x3c548e['push'](_0x308067);}return _0x3c548e;}(_0x410453,_0x17237a),_0x54a3ff=function(_0x2bee8e,_0x357343){const _0x119574=[_0x2bee8e];for(const _0x3ee666 of _0x357343){let _0x3397b0=0x0;for(;_0x3397b0<_0x119574['length'];){const _0x16a559=_0x119574[_0x3397b0]['getDifference'](_0x3ee666);_0x119574['splice'](_0x3397b0,0x1,..._0x16a559),_0x3397b0+=_0x16a559['length'];}}return _0x119574;}(_0x410453,_0x17237a);_0x5e3ee3['length']&&this['_model']['change'](()=>{for(const _0x1f77af of _0x5e3ee3){const _0x125097=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2efcd5,'accept');this['forceDefaultExecution'](()=>_0x125097([_0x1f77af],_0x42d7b4,_0x5e2fc4));}});for(const _0x13de36 of _0x54a3ff){let _0x31f0ed=null,_0x459a95=_0x13de36['start'],_0x5cae27=_0x13de36['end'];for(const {suggestion:_0xcf228e,meta:_0x3241d1}of this['_findSuggestions'](_0x13de36,'formatInline')){if(!_0x3241d1['isOwn'])continue;if(_0xcf228e['subType']!=_0x2efcd5)continue;if(!Xt(_0xcf228e,_0x5e2fc4))continue;const _0x1deb33=_0xcf228e['getFirstRange']();if(_0x1deb33['containsRange'](_0x13de36,!0x0))return null;_0x459a95=_0x459a95['isBefore'](_0x1deb33['start'])?_0x459a95:_0x1deb33['start'],_0x5cae27=_0x5cae27['isAfter'](_0x1deb33['end'])?_0x5cae27:_0x1deb33['end'],_0x31f0ed?_0x1deb33['start']['isBefore'](_0x31f0ed['getFirstRange']()['start'])?(_0x31f0ed['removeMarkers'](),_0x31f0ed=_0xcf228e):_0xcf228e['removeMarkers']():_0x31f0ed=_0xcf228e;}const _0x3dfff5=this['_model']['createRange'](_0x459a95,_0x5cae27);if(_0x31f0ed)this['_setSuggestionRange'](_0x31f0ed,_0x3dfff5);else{const _0x4470f0=_0x2565c0(),_0x3b2523=_0x36576a['id'];this['_setSuggestionData']({'id':_0x4470f0,'type':'formatInline:'+_0x2efcd5,'data':_0x42d7b4,'createdAt':new Date(),'authorId':_0x3b2523,'attributes':_0x5e2fc4}),this['_addSuggestionMarker']('formatInline:'+_0x2efcd5,_0x4470f0,_0x3b2523,_0x3dfff5);}}return null;}['markBlockFormat'](_0xccf8c,_0x2cdd42,_0x22a74e=[],_0x4608d5=null,_0x44b826={}){_0x2cdd42['formatGroupId']||(_0x2cdd42['formatGroupId']=_0x2cdd42['commandName']),_0x2cdd42['multipleBlocks']=_0xccf8c['is']('range'),_0x4608d5=_0x4608d5||Kt(_0x2cdd42);const _0x1774d0=_0x22a74e['map'](_0x501b7d=>zt(_0x501b7d,this['_model'])),_0x1e1592=_0xccf8c['is']('range')?_0xccf8c:zt(_0xccf8c,this['_model']);if(this['_trackingSessionId']&&(_0x44b826['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1fffde=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4608d5,'accept');return this['forceDefaultExecution'](()=>_0x1fffde([_0x1e1592],_0x2cdd42,_0x44b826)),null;}_0x1774d0['push'](_0x1e1592);let _0x43f53c=!0x0;for(const _0xb25201 of _0x1774d0)if(!this['_rangeIsInLocalUserInsertion'](_0xb25201)){_0x43f53c=!0x1;break;}if(_0x43f53c&&'always'!==this['_trackFormatChanges']){const _0x223d36=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4608d5,'accept');return this['forceDefaultExecution'](()=>_0x223d36([_0x1e1592],_0x2cdd42,_0x44b826)),null;}let _0x1aeaeb=null,_0x11e492=_0x1e1592['start'],_0x4ca989=_0x1e1592['end'];for(const {suggestion:_0x356a8b,meta:_0x484ace}of this['_findSuggestions'](_0x1e1592,'formatBlock')){if(!_0x484ace['isOwn'])continue;if(_0x484ace['isNextTo']||_0x484ace['containsRangeInObject']||_0x484ace['isInsideObject'])continue;if(_0x356a8b['data']['formatGroupId']!=_0x2cdd42['formatGroupId'])continue;if(!Xt(_0x356a8b,_0x44b826))continue;const _0x37bd04=_0x356a8b['getFirstRange']();if(_0x356a8b['subType']==_0x4608d5){if(_0x37bd04['containsRange'](_0x1e1592,!0x0))return null;_0x11e492=_0x11e492['isBefore'](_0x37bd04['start'])?_0x11e492:_0x37bd04['start'],_0x4ca989=_0x4ca989['isAfter'](_0x37bd04['end'])?_0x4ca989:_0x37bd04['end'],_0x1aeaeb?_0x37bd04['start']['isBefore'](_0x1aeaeb['getFirstRange']()['start'])?(_0x1aeaeb['removeMarkers'](),_0x1aeaeb=_0x356a8b):_0x356a8b['removeMarkers']():_0x1aeaeb=_0x356a8b;}else{const _0xf80f91=_0x1e1592['getIntersection'](_0x37bd04);this['_cutOutSuggestionMarker'](_0x356a8b,_0xf80f91);}}const _0x2b4404=this['editor']['plugins']['get']('Users')['me'],_0xc0b9bf=_0x2565c0(),_0x307a1f=_0x2b4404['id'];if(_0x1aeaeb)return this['_setSuggestionRange'](_0x1aeaeb,this['_model']['createRange'](_0x11e492,_0x4ca989)),_0x1aeaeb;{const _0x5a4c93=this['_setSuggestionData']({'id':_0xc0b9bf,'type':'formatBlock:'+_0x4608d5,'data':_0x2cdd42,'createdAt':new Date(),'authorId':_0x307a1f,'attributes':_0x44b826});return this['_addSuggestionMarker']('formatBlock:'+_0x4608d5,_0xc0b9bf,_0x307a1f,this['_model']['createRange'](_0x11e492,_0x4ca989)),_0x5a4c93;}}['markMultiRangeBlockFormat'](_0xefd4e9,_0x4aa20e,_0x43343f=[],_0x13ce1a=null,_0x3f6827={}){_0x4aa20e['formatGroupId']||(_0x4aa20e['formatGroupId']=_0x4aa20e['commandName']);const _0x2633dd=_0xefd4e9[0x0];_0x4aa20e['multipleBlocks']=_0x2633dd['is']('range'),_0x13ce1a=_0x13ce1a||Kt(_0x4aa20e);const _0x484cd1=_0x43343f['map'](_0x1290fd=>zt(_0x1290fd,this['_model'])),_0x4b5252=_0x2633dd['is']('range')?_0xefd4e9:_0xefd4e9['map'](_0x59d1be=>zt(_0x59d1be,this['_model']));if(this['_trackingSessionId']&&(_0x3f6827['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x244456=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ce1a,'accept');return this['forceDefaultExecution'](()=>_0x244456(_0x4b5252,_0x4aa20e,_0x3f6827)),null;}_0x484cd1['push'](..._0x4b5252);let _0x134850=!0x0;for(const _0x2c3faa of _0x484cd1)if(!this['_rangeIsInLocalUserInsertion'](_0x2c3faa)){_0x134850=!0x1;break;}if(_0x134850&&'always'!==this['_trackFormatChanges']){const _0x2b3d99=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ce1a,'accept');return this['forceDefaultExecution'](()=>_0x2b3d99(_0x4b5252,_0x4aa20e,_0x3f6827)),null;}const _0x4b4591=this['editor']['plugins']['get']('Users')['me'];for(const _0x173cda of this['getSuggestions']()){if(_0x173cda['author']['id']!=_0x4b4591['id'])continue;if('formatBlock'!=_0x173cda['type']||_0x173cda['data']['formatGroupId']!=_0x4aa20e['formatGroupId'])continue;if(!Xt(_0x173cda,_0x3f6827))continue;const _0x55dae5=_0x173cda['subType']==_0x13ce1a;for(let _0x4b3371=0x0;_0x4b3371<_0x4b5252['length'];_0x4b3371++){const _0x5ba514=_0x4b5252[_0x4b3371];for(const _0x2aa378 of _0x173cda['getMarkers']()){const _0x3efb27=_0x2aa378['getRange']();if(_0x5ba514['isEqual'](_0x3efb27)){_0x55dae5?(_0x4b5252['splice'](_0x4b3371,0x1),_0x4b3371--):_0x173cda['removeMarker'](_0x2aa378['name']);break;}}}}if(0x0==_0x4b5252['length'])return null;const _0x2a1731=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ce1a,'join');for(const _0x19e9a1 of this['getSuggestions']())if(_0x19e9a1['author']['id']==_0x4b4591['id']&&'formatBlock'==_0x19e9a1['type']&&_0x19e9a1['data']['formatGroupId']==_0x4aa20e['formatGroupId']&&_0x19e9a1['subType']==_0x13ce1a&&Xt(_0x19e9a1,_0x3f6827)&&(_0x2a1731(_0x19e9a1['getRanges'](),_0x4b5252)||_0x2a1731(_0x4b5252,_0x19e9a1['getRanges']()))){for(const _0x1eaea1 of _0x4b5252)_0x19e9a1['addRange'](_0x1eaea1);return _0x19e9a1;}const _0x462d7b=_0x2565c0(),_0x523b15=_0x4b4591['id'],_0xd9b839='formatBlock:'+_0x13ce1a,_0x264e6d=this['_setSuggestionData']({'id':_0x462d7b,'type':_0xd9b839,'data':_0x4aa20e,'createdAt':new Date(),'authorId':_0x523b15,'attributes':_0x3f6827});for(const _0x414ea3 of _0x4b5252)this['_addSuggestionMarker'](_0xd9b839,_0x462d7b,_0x523b15,_0x414ea3,o['getMultiRangeId']());return _0x264e6d;}['markDeletion'](_0x8773c1,_0x4d2dd8=null,_0x70757e={}){if(_0x8773c1['isCollapsed'])return null;const _0x5d8d0f=this['editor']['plugins']['get']('Users')['me'],_0x1c0434=new _0x4ce525(_0x8773c1['start'],_0x8773c1['end']);this['_trackingSessionId']&&(_0x70757e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x46f2c8,meta:_0x369284}of this['_findSuggestions'](_0x1c0434,'insertion'))if(_0x369284['isOwn']&&!_0x369284['isNextTo']){if(_0x46f2c8['isMultiRange']){const _0x1281c3=_0x46f2c8['getRanges']()['filter'](_0x5cff00=>'$graveyard'!=_0x5cff00['root']['rootName']);_0x1281c3['every'](_0x4c8ec3=>_0x1c0434['containsRange'](_0x4c8ec3,!0x0))&&_0x46f2c8['discard']();if(_0x1281c3['some'](_0x175bf9=>_0x175bf9['containsRange'](_0x1c0434,!0x0))){const _0x590aa9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d2dd8,'accept');return this['forceDefaultExecution'](()=>_0x590aa9([_0x1c0434],null,_0x70757e)),null;}}else{const _0x5d24a2=_0x1c0434['getIntersection'](_0x46f2c8['getFirstRange']());null!==_0x5d24a2&&_0x46f2c8['_onDiscard']([_0x5d24a2],null,_0x70757e);}}if(_0x1c0434['detach'](),_0x1c0434['isCollapsed']||'$graveyard'==_0x1c0434['root']['rootName'])return null;let _0x3178c0=null,_0x4c8736=_0x1c0434['start'],_0x48f76b=_0x1c0434['end'];const _0x4a1ac4=this['_findSuggestions'](_0x1c0434,'deletion');for(const {suggestion:_0x1fa246,meta:_0x135dcf}of _0x4a1ac4){const _0x570f56=this['_model']['createRange'](_0x4c8736,_0x48f76b);if(_0x135dcf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x135dcf['containsRangeInObject']&&!_0x135dcf['isInsideObject'])){if(_0x1fa246['isMultiRange']){if(!Xt(_0x1fa246,_0x70757e))continue;let _0x866d14=!0x0;for(const _0x26f34a of _0x1fa246['getRanges']()){if(_0x26f34a['containsRange'](_0x570f56,!0x0))return _0x1fa246;_0x570f56['containsRange'](_0x26f34a)||(_0x866d14=!0x1);}_0x866d14&&_0x1fa246['discard']();}else{const _0x2367da=_0x1fa246['getFirstRange']();if(_0x2367da['containsRange'](_0x570f56,!0x0))return _0x1fa246;if(!Xt(_0x1fa246,_0x70757e)){_0x570f56['containsRange'](_0x2367da)?_0x1fa246['removeMarkers']():_0x2367da['containsPosition'](_0x4c8736)?_0x4c8736=_0x2367da['end']:_0x2367da['containsPosition'](_0x48f76b)&&(_0x48f76b=_0x2367da['start']);continue;}_0x4c8736=_0x4c8736['isBefore'](_0x2367da['start'])?_0x4c8736:_0x2367da['start'],_0x48f76b=_0x48f76b['isAfter'](_0x2367da['end'])?_0x48f76b:_0x2367da['end'],_0x70757e=Object['assign']({},_0x1fa246['attributes']),_0x3178c0?_0x2367da['start']['isBefore'](_0x3178c0['getFirstRange']()['start'])?(_0x3178c0['removeMarkers'](),_0x3178c0=_0x1fa246):_0x1fa246['removeMarkers']():_0x3178c0=_0x1fa246;}}}if(_0x3178c0)return this['_setSuggestionRange'](_0x3178c0,this['_model']['createRange'](_0x4c8736,_0x48f76b)),_0x3178c0;{const _0x477cd0=_0x2565c0(),_0x2c8685=this['_model']['createRange'](_0x4c8736,_0x48f76b),_0x39238a=_0x5d8d0f['id'],_0x352f4a=_0x4d2dd8?'deletion:'+_0x4d2dd8:'deletion',_0x3d1228=this['_setSuggestionData']({'id':_0x477cd0,'type':_0x352f4a,'createdAt':new Date(),'authorId':_0x39238a,'attributes':_0x70757e});return this['_addSuggestionMarker'](_0x352f4a,_0x477cd0,_0x39238a,_0x2c8685),_0x3d1228;}}['markMultiRangeDeletion'](_0x2b3d43,_0x248cbf='multi',_0x17daaf={}){const _0x49084e=this['editor']['plugins']['get']('Users')['me'],_0x2fac7e=_0x2b3d43['map'](_0x2e2a7a=>new _0x4ce525(_0x2e2a7a['start'],_0x2e2a7a['end'])),_0x29b8ef=new Set();this['_trackingSessionId']&&(_0x17daaf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4bfda5,meta:_0x488bc2}of this['_findSuggestions'](_0x2fac7e,'insertion'))_0x488bc2['isOwn']&&!_0x488bc2['isNextTo']&&_0x29b8ef['add'](_0x4bfda5);for(const _0x1a1266 of _0x29b8ef)if(_0x1a1266['isMultiRange']){const _0x37b69c=_0x1a1266['getRanges']();(!_0x1a1266['attributes']||!_0x1a1266['attributes']['skipNestingCheck'])&&(_0x37b69c['every'](_0x204b08=>_0x2fac7e['some'](_0x5baed1=>_0x5baed1['containsRange'](_0x204b08,!0x0)))&&_0x1a1266['discard']());if(_0x2fac7e['every'](_0x2bf1ec=>_0x37b69c['some'](_0x9d91ca=>_0x9d91ca['containsRange'](_0x2bf1ec,!0x0)))){const _0x2055c4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x248cbf,'accept');return this['forceDefaultExecution'](()=>_0x2055c4(_0x2b3d43,null,_0x17daaf)),null;}}else{const _0x47a8a5=_0x1a1266['getFirstRange']();_0x2fac7e['some'](_0xaecb02=>_0xaecb02['containsRange'](_0x47a8a5,!0x0))&&_0x1a1266['discard']();if(_0x2fac7e['every'](_0xd0562c=>_0x47a8a5['containsRange'](_0xd0562c,!0x0))){const _0x76fb85=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x248cbf,'accept');return this['forceDefaultExecution'](()=>_0x76fb85(_0x2fac7e,null,_0x17daaf)),null;}}const _0x217ea4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x248cbf,'join');let _0x44346d=null;for(const _0x46d101 of this['getSuggestions']())if(_0x46d101['author']['id']==_0x49084e['id']&&_0x46d101['isInContent']&&'deletion'==_0x46d101['type']&&_0x46d101['subType']==_0x248cbf&&Xt(_0x46d101,_0x17daaf)&&(_0x217ea4(_0x46d101['getRanges'](),_0x2fac7e)||_0x217ea4(_0x2fac7e,_0x46d101['getRanges']()))){if(_0x44346d){if(_0x46d101['commentThread']&&_0x46d101['commentThread']['length'])continue;for(const _0x376633 of _0x46d101['getRanges']())_0x44346d['isIntersectingWithRange'](_0x376633)||_0x44346d['addRange'](_0x376633);_0x46d101['removeMarkers']();}else{_0x44346d=_0x46d101;for(const _0x2033bf of _0x2fac7e)_0x46d101['isIntersectingWithRange'](_0x2033bf)||_0x46d101['addRange'](_0x2033bf);}}if(_0x44346d)return _0x44346d;_0x29b8ef['clear']();for(const {suggestion:_0x3b54b0,meta:_0x40459d}of this['_findSuggestions'](_0x2fac7e,'deletion'))_0x40459d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x40459d['containsRangeInObject']&&!_0x40459d['isInsideObject'])&&Xt(_0x3b54b0,_0x17daaf)&&_0x29b8ef['add'](_0x3b54b0);for(const _0x34e980 of _0x29b8ef){const _0x3faab4=_0x34e980['getRanges']();if(!_0x17daaf||!_0x17daaf['skipNestingCheck']){if(_0x2fac7e['every'](_0x52cb6a=>_0x3faab4['some'](_0x4b62dc=>_0x4b62dc['containsRange'](_0x52cb6a,!0x0))))return _0x34e980;}(!_0x34e980['attributes']||!_0x34e980['attributes']['skipNestingCheck'])&&(_0x3faab4['every'](_0x1db555=>_0x2fac7e['some'](_0x385206=>_0x385206['containsRange'](_0x1db555,!0x0)))&&_0x34e980['discard']());}const _0x1e0e1b=_0x2565c0(),_0x358f4b=_0x49084e['id'],_0x22e1cc='deletion:'+_0x248cbf,_0x50fc5f=this['_setSuggestionData']({'id':_0x1e0e1b,'type':_0x22e1cc,'createdAt':new Date(),'authorId':_0x358f4b,'attributes':_0x17daaf});for(const _0x5671a7 of _0x2fac7e)_0x5671a7['detach'](),_0x5671a7['isCollapsed']||'$graveyard'==_0x5671a7['root']['rootName']||this['_addSuggestionMarker'](_0x22e1cc,_0x1e0e1b,_0x358f4b,_0x5671a7,o['getMultiRangeId']());return _0x50fc5f;}['markAttributeChange'](_0xfbb50a,_0x1a5cad,_0x4acc92,_0x17b4af,_0xe971b){if(_0xfbb50a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2e00b8=this['editor']['plugins']['get']('Users')['me']['id'],_0x5a68bb=Array['from'](this['_suggestions']['values']())['filter'](_0x4bb448=>'attribute'==_0x4bb448['type']&&_0x4bb448['data']['key']==_0x1a5cad&&_0x4bb448['isIntersectingWithRange'](_0xfbb50a));if(this['_trackingSessionId']&&(_0xe971b['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xe9fd99=this['_findSuggestions'](_0xfbb50a,'insertion')['filter'](({meta:_0x408ca5})=>_0x408ca5['isOwn']&&!_0x408ca5['isInsideObject']&&!_0x408ca5['isNextTo'])['map'](({suggestion:_0x2d1cbe})=>_0x2d1cbe);_0x5a68bb['unshift'](..._0xe9fd99);}const _0xb45bd=new Map([[_0xfbb50a,_0x4acc92]]);for(const _0x5df760 of _0x5a68bb){const _0x463a63='attribute'==_0x5df760['type']?_0x5df760['data']['oldValue']:void 0x0,_0x5b16ff=_0x5df760['getFirstRange'](),_0x450baf=Array['from'](_0xb45bd['keys']())['find'](_0x33c5c4=>_0x33c5c4['isIntersecting'](_0x5b16ff));if(!_0x450baf)continue;const _0x8dcb0=_0x450baf['getDifference'](_0x5b16ff);this['_isBlockAttribute'](_0x1a5cad)&&'insertion'==_0x5df760['type']&&0x0!=_0x8dcb0['length']||(_0xb45bd['delete'](_0x450baf),_0x8dcb0['forEach'](_0x4404ad=>{_0xb45bd['set'](_0x4404ad,_0x4acc92);}),'insertion'!=_0x5df760['type']&&_0x463a63!=_0x17b4af&&_0xb45bd['set'](_0x450baf['getIntersection'](_0x5b16ff),_0x463a63));}const _0x59fe92=[];for(const [_0x2e02fb,_0x15cc74]of _0xb45bd){const _0x46dc1e=_0x2565c0(),_0xd3f813={'key':_0x1a5cad,'oldValue':_0x15cc74,'newValue':_0x17b4af};_0x1a5cad['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':_0x1a5cad});const _0x10398a=('attribute:'+(_0x1a5cad+'|'+Kt({'newValue':_0x17b4af})))['substring'](0x0,0x3c),_0xdad828=this['_setSuggestionData']({'id':_0x46dc1e,'type':_0x10398a,'data':_0xd3f813,'createdAt':new Date(),'authorId':_0x2e00b8,'attributes':_0xe971b});_0x59fe92['push'](_0xdad828),this['_addSuggestionMarker'](_0x10398a,_0x46dc1e,_0x2e00b8,_0x2e02fb);}return _0x59fe92;}['enableDefaultAttributesIntegration'](_0x3ae639){this['enableCommand'](_0x3ae639,(_0xa338b4,..._0x20a06a)=>{this['_recordAttributeChanges'](()=>{_0xa338b4(..._0x20a06a);});});}['registerBlockAttribute'](_0x4d95d4){this['_blockAttributeKeys']['add'](_0x4d95d4);}['registerInlineAttribute'](_0x521a81){this['_inlineAttributeKeys']['add'](_0x521a81);}['startTrackingSession'](_0x45f110){return this['_trackingSessionId']=void 0x0!==_0x45f110?_0x45f110:_0x2565c0(),this['_trackingSessionId'];}['_getAttributeKey'](_0x114d7e){return'attribute'==_0x114d7e['type']?_0x114d7e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3f94b7,_0x1cce4a){const _0x5cb933=_0x3f94b7['getFirstMarker']();this['_model']['change'](_0x3accad=>{_0x3accad['updateMarker'](_0x5cb933,{'range':_0x1cce4a});});}['_addThreadToSuggestion'](_0x2bf629){const _0x5b51ea=_0x2bf629['id'],_0x425825=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5b51ea)||this['_commentsRepository']['addCommentThread']({'channelId':_0x425825,'threadId':_0x5b51ea,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1d61b9=this['_commentsRepository']['getCommentThread'](_0x5b51ea);_0x1d61b9['unbind']('isRemovable'),_0x1d61b9['isRemovable']=!0x1,_0x2bf629['commentThread']=_0x1d61b9;}['_checkSuggestionCorrectness'](_0xaea263,_0x4fef2f,_0x879e1b,_0x23e635){if(_0xaea263['type']!=_0x4fef2f||_0xaea263['subType']!=_0x879e1b||_0xaea263['creator']['id']!=_0x23e635)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x152d77('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2b170c,_0x48923a){const _0x5a0780=_0x2b170c['getFirstRange']();if(_0x48923a['isEqual'](_0x5a0780))_0x2b170c['removeMarkers']();else{if(_0x5a0780['containsRange'](_0x48923a)){const _0xe7b962=this['_model']['createPositionAt'](_0x48923a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2b170c,this['_model']['createRange'](_0x5a0780['start'],_0xe7b962));const _0x46cd87=_0x2565c0(),_0x15f3f8=_0x2b170c['creator']['id'],_0x33d064=_0x2b170c['type']+':'+_0x2b170c['subType'];this['_setSuggestionData']({'id':_0x46cd87,'type':_0x33d064,'createdAt':new Date(),'authorId':_0x15f3f8,'data':_0x2b170c['data'],'attributes':_0x2b170c['attributes']});const _0x462955=this['_model']['createPositionAt'](_0x48923a['end']['parent'],'after'),_0x1dcdf4=this['_model']['createRange'](_0x462955,_0x5a0780['end']);this['_addSuggestionMarker'](_0x33d064,_0x46cd87,_0x15f3f8,_0x1dcdf4);}else{if(_0x5a0780['containsPosition'](_0x48923a['start'])){const _0x13b039=this['_model']['createPositionAt'](_0x48923a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2b170c,this['_model']['createRange'](_0x5a0780['start'],_0x13b039));}else{const _0x24812c=this['_model']['createPositionAt'](_0x48923a['end']['parent'],'after');this['_setSuggestionRange'](_0x2b170c,this['_model']['createRange'](_0x24812c,_0x5a0780['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4a6df4){for(const {suggestion:_0x5e1a95,meta:_0x143df1}of this['_findSuggestions'](_0x4a6df4,'insertion')){if(!_0x143df1['isOwn'])continue;const _0x59b592=_0x5e1a95['getRanges']();for(const _0x43402d of _0x59b592)if(!_0x4a6df4['getDifference'](_0x43402d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2e782f){const _0x42b64e=this['editor']['plugins']['get']('Users')['getUser'](_0x2e782f);if(!_0x42b64e)throw new _0x152d77('track-changes-user-not-found',this);return _0x42b64e;}['_getExternalAuthor'](_0x272b2a){const _0x15100c=this['editor']['plugins']['get']('Users'),_0x3849e2=_0x681558('external:'+_0x272b2a),_0x1718db=_0x15100c['getUser'](_0x3849e2);return _0x1718db||_0x15100c['addUser']({'id':_0x3849e2,'name':_0x272b2a});}['_createSuggestion'](_0x398c11,_0x4972a9,_0x33ac79,_0x584e0c,_0x160749){const _0x45f43a=this['_getAuthorFromId'](_0x584e0c),_0x442d58=this['_suggestionFactory']['buildSuggestion'](_0x398c11,_0x4972a9,_0x33ac79,_0x45f43a,_0x160749,_0x5b05b1=>{this['_updateSuggestionData'](_0x33ac79,{'attributes':_0x5b05b1});const _0x339cdc=this['getSuggestion'](_0x33ac79);this['_joinWithAdjacentSuggestions'](new Set([_0x339cdc])),this['_refreshSuggestionsChain'](new Set([_0x339cdc]));});return this['listenTo'](_0x442d58,'accept',()=>{this['_updateSuggestionData'](_0x33ac79,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x442d58,'discard',()=>{this['_updateSuggestionData'](_0x33ac79,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x33ac79,_0x442d58),this['_suggestionState']['set'](_0x442d58,'notReady'),_0x442d58;}['_splitMarkerName'](_0xd3cc56){const _0x2679c4=_0xd3cc56['split'](':');return{'group':_0x2679c4[0x0],'type':_0x2679c4[0x1],'subType':_0x2679c4['length']>=0x5?_0x2679c4[0x2]:null,'id':_0x2679c4['length']<0x5?_0x2679c4[0x2]:_0x2679c4[0x3],'authorId':_0x2679c4['length']<0x5?_0x2679c4[0x3]:_0x2679c4[0x4],'markerCount':0x6==_0x2679c4['length']?_0x2679c4[0x5]:null};}['_breakSuggestionMarker'](_0x42ae5a,_0x531036,_0x599256){const _0x22d17e=_0x42ae5a['getFirstRange'](),_0x160ee0=_0x22d17e['start'],_0x1b6b19=_0x22d17e['end'];this['_setSuggestionRange'](_0x42ae5a,this['_model']['createRange'](_0x160ee0,_0x531036));const _0x18bfa2=_0x2565c0(),_0x53ef16=_0x42ae5a['creator']['id'],_0x431482=_0x42ae5a['type']+(_0x42ae5a['subType']?':'+_0x42ae5a['subType']:'');this['_setSuggestionData']({'id':_0x18bfa2,'type':_0x431482,'createdAt':new Date(),'authorId':_0x53ef16,'originalSuggestionId':_0x42ae5a['id'],'attributes':_0x42ae5a['attributes'],'data':_0x42ae5a['data']});const _0x54c9e7=this['_getAttributeKey'](_0x42ae5a);('formatBlock'==_0x42ae5a['type']||_0x54c9e7&&this['_isBlockAttribute'](_0x54c9e7))&&(_0x599256=this['_model']['createPositionBefore'](_0x599256['parent'])),this['_addSuggestionMarker'](_0x431482,_0x18bfa2,_0x53ef16,this['_model']['createRange'](_0x599256,_0x1b6b19));}['_findSuggestions'](_0xbb9e47,_0x2889d1=null){const _0xbf2634=[],_0x44043f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xbb9e47)||(_0xbb9e47=[_0xbb9e47]);for(const _0x13a9bd of this['getSuggestions']()){if(!_0x13a9bd['isInContent'])continue;if(_0x2889d1&&_0x13a9bd['type']!=_0x2889d1)continue;let _0x46e84f=!0x1;for(const _0x353f90 of _0x13a9bd['getRanges']()){for(const _0x373c84 of _0xbb9e47){const _0x2033fa=_0x373c84['start']['isEqual'](_0x353f90['end'])||_0x373c84['end']['isEqual'](_0x353f90['start']);if(_0x2033fa||_0x373c84['getIntersection'](_0x353f90)){const _0x419171=_0x373c84['containsRange'](_0x353f90)&&Gt(this['_model']['schema'],_0x353f90['start'],_0x373c84),_0x232ee6=_0x353f90['containsRange'](_0x373c84)&&Gt(this['_model']['schema'],_0x373c84['start'],_0x353f90);_0xbf2634['push']({'suggestion':_0x13a9bd,'meta':{'isOwn':_0x44043f==_0x13a9bd['author'],'isNextTo':_0x2033fa,'isInsideObject':_0x419171,'containsRangeInObject':_0x232ee6}}),_0x46e84f=!0x0;break;}}if(_0x46e84f)break;}}return _0xbf2634;}['_addSuggestionMarker'](_0x41f5ed,_0x1670a7,_0x26f5df,_0x53bd8b,_0x4c9477){this['_model']['change'](_0x2acf2c=>{let _0x34559f='suggestion:'+_0x41f5ed+':'+_0x1670a7+':'+_0x26f5df;_0x4c9477&&(_0x34559f=_0x34559f+':'+_0x4c9477),_0x2acf2c['addMarker'](_0x34559f,{'range':_0x53bd8b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1a1f37){const _0x487959=_0x1a1f37['previous'],_0x56e9bb=_0x1a1f37['next'];_0x1a1f37['previous']=null,_0x1a1f37['next']=null,null!=_0x487959&&_0x487959['next']==_0x1a1f37&&(_0x487959['next']=_0x56e9bb),null!=_0x56e9bb&&_0x56e9bb['previous']==_0x1a1f37&&(_0x56e9bb['previous']=_0x487959),'ready'==this['_suggestionState']['get'](_0x1a1f37)&&(this['_suggestionState']['set'](_0x1a1f37,'removed'),this['fire']('suggestionUnloaded',_0x1a1f37,_0x487959,_0x56e9bb));}['_setSuggestionData'](_0x3d9524){const _0x29bb40=_0x3d9524['id'],_0x21f61b=this['addSuggestionData'](_0x3d9524);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x21eca5=this['editor']['plugins']['get']('PendingActions'),_0x27e31a=_0x21f61b['hasComments'],_0x25fcaf=_0x21f61b['subType']?_0x21f61b['type']+':'+_0x21f61b['subType']:_0x21f61b['type'],_0x469fb1=this['editor']['locale'],_0x5db975=_0x21eca5['add'](c(_0x469fb1,'PENDING_ACTION_SUGGESTION')),_0x5f0aed={'id':_0x29bb40,'type':_0x25fcaf,'hasComments':_0x27e31a,'data':_0x3d9524['data']||null,'originalSuggestionId':_0x3d9524['originalSuggestionId']||null,'attributes':_0x21f61b['attributes']};this['_adapter']['addSuggestion'](_0x5f0aed)['then'](_0x3e2fdb=>{_0x21f61b['_saved']=!0x0,_0x21eca5['remove'](_0x5db975),_0x3e2fdb&&_0x3e2fdb['createdAt']&&(this['_suggestions']['get'](_0x29bb40)['createdAt']=_0x3e2fdb['createdAt']);})['catch'](_0x5c4b48=>{throw _0x46eb67('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x21f61b['discard']();}),_0x21f61b['stopListening'](),this['_suggestions']['delete'](_0x21f61b['id']),this['_suggestionState']['delete'](_0x21f61b),_0x5c4b48;});}return _0x21f61b;}['_isBlockAttribute'](_0x377b72){return this['_blockAttributeKeys']['has'](_0x377b72);}['_updateSuggestionData'](_0x56794e,_0xb817c2){const _0x3fed7d=this['editor']['plugins']['get']('PendingActions'),_0x5b12e3=this['getSuggestion'](_0x56794e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5b12e3['_saved']){const _0x2eef6a=_0x3fed7d['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x56794e,_0xb817c2)['then'](()=>{_0x3fed7d['remove'](_0x2eef6a);});}else _0x5b12e3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x56794e,_0xb817c2);});}}['_getSuggestionData'](_0x4cf2ed){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x152d77('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4cf2ed);}['_handleNewSuggestionMarker'](_0x23354e){const {id:_0x273e79,type:_0x3845e9,subType:_0xfb248f,authorId:_0x5aa0fb}=this['_splitMarkerName'](_0x23354e),_0x23c0d0=this['_suggestions']['get'](_0x273e79)||this['_createSuggestion'](_0x3845e9,_0xfb248f,_0x273e79,_0x5aa0fb,{});switch(this['_checkSuggestionCorrectness'](_0x23c0d0,_0x3845e9,_0xfb248f,_0x5aa0fb),this['_suggestionState']['get'](_0x23c0d0)){case'notReady':this['_getSuggestionData'](_0x273e79)['then'](_0x4d3ccd=>{let _0x14f4a7=Promise['resolve']();_0x4d3ccd['hasComments']&&(_0x14f4a7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x273e79})),_0x14f4a7['then'](()=>{this['addSuggestionData'](_0x4d3ccd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x23c0d0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x273e79,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x23c0d0,'ready'),this['fire']('suggestionLoaded',_0x23c0d0);break;case'ready':this['fire']('suggestionChanged',_0x23c0d0);}return _0x23c0d0['addMarkerName'](_0x23354e),_0x23c0d0;}['_refreshSuggestionsChain'](_0x2070ef){const _0x568e26=Array['from'](_0x2070ef),_0x1de0e6=_0x568e26['filter'](_0x49edbd=>'attribute'==_0x49edbd['type']);this['_refreshAttributeSuggestionsChain'](_0x1de0e6);const _0x3c6705=_0x568e26['filter'](_0x1d7b66=>!_0x1d7b66['isMultiRange']&&'attribute'!=_0x1d7b66['type']),_0x3ff80d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dc5c8=>!_0x5dc5c8['isMultiRange']&&'attribute'!=_0x5dc5c8['type']),_0x1040ca=_0x3ff80d['filter'](_0x278ed3=>!_0x2070ef['has'](_0x278ed3)),_0x36964b=new Map(_0x3ff80d['map'](_0x4b429b=>[_0x4b429b,this['_suggestionFactory']['getSuggestionCallback'](_0x4b429b['type'],_0x4b429b['subType'],'chain')])),_0x2334fa=new Map(_0x3ff80d['map'](_0x2d48a6=>[_0x2d48a6,_0x2d48a6['getFirstRange']()])),_0x441ecd=new Set(),_0x5616fe=new Set();for(let _0xbcec9a=0x0;_0xbcec9a<_0x3c6705['length'];_0xbcec9a++)_0x2a490f(_0x3c6705[_0xbcec9a],_0x3c6705,_0xbcec9a+0x1);for(let _0x481cea=0x0;_0x481cea<_0x3c6705['length'];_0x481cea++)_0x2a490f(_0x3c6705[_0x481cea],_0x1040ca,0x0);const _0xdd926d=new Set();for(let _0x520db6=0x0;_0x520db6<_0x3c6705['length'];_0x520db6++){const _0x55d704=_0x3c6705[_0x520db6];!_0x5616fe['has'](_0x55d704)&&_0x55d704['previous']&&(_0xdd926d['add'](_0x55d704['previous']),_0x55d704['previous']['next']===_0x55d704&&(_0x55d704['previous']['next']=null),_0x55d704['previous']=null),!_0x441ecd['has'](_0x55d704)&&_0x55d704['next']&&(_0xdd926d['add'](_0x55d704['next']),_0x55d704['next']['previous']===_0x55d704&&(_0x55d704['next']['previous']=null),_0x55d704['next']=null);}function _0x2a490f(_0x2aaf6d,_0x514e37,_0x343803){for(let _0x17d08b=_0x343803;_0x17d08b<_0x514e37['length'];_0x17d08b++){const _0x169056=_0x1d4d77(_0x2aaf6d,_0x514e37[_0x17d08b]);_0x169056&&(_0x169056[0x0]['next']=_0x169056[0x1],_0x169056[0x1]['previous']=_0x169056[0x0],_0x441ecd['add'](_0x169056[0x0]),_0x5616fe['add'](_0x169056[0x1]));}}function _0x1d4d77(_0x30af43,_0x1661f9){if(_0x30af43['author']['id']!==_0x1661f9['author']['id'])return null;const _0x1e13d3=_0x36964b['get'](_0x30af43)(_0x30af43,_0x1661f9,_0x2334fa['get'](_0x30af43),_0x2334fa['get'](_0x1661f9));if(!_0x1e13d3)return null;return _0x36964b['get'](_0x1661f9)(_0x30af43,_0x1661f9,_0x2334fa['get'](_0x30af43),_0x2334fa['get'](_0x1661f9))?_0x1e13d3[0x1]['commentThread']&&_0x1e13d3[0x1]['commentThread']['length']?null:_0x1e13d3:null;}_0xdd926d['size']&&this['_refreshSuggestionsChain'](_0xdd926d);}['_refreshAttributeSuggestionsChain'](_0x1ade0a){if(0x0==_0x1ade0a['length'])return;const _0x7162d9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c3c53=>'attribute'==_0x3c3c53['type']&&_0x3c3c53['_isDataLoaded']),_0x1d9c0a=[],_0x28dd08=new Map();for(const _0x2a7e08 of _0x7162d9){const _0x30edd0=_0x681558(_0x2a7e08['attributes']);_0x28dd08['has'](_0x30edd0)||(_0x28dd08['set'](_0x30edd0,_0x1d9c0a['length']),_0x1d9c0a['push']([]));const _0x23218b=_0x28dd08['get'](_0x30edd0);_0x1d9c0a[_0x23218b]['push'](_0x2a7e08);}!(function(){_0x1d9c0a['sort']((_0x3216f2,_0x1fa322)=>{const _0x4ec28c=_0x3216f2[0x0]['createdAt'],_0x193db9=_0x1fa322[0x0]['createdAt'];return _0x4ec28c==_0x193db9?_0x3216f2[0x0]['attributes']['groupId']<_0x1fa322[0x0]['attributes']['groupId']?-0x1:0x1:_0x4ec28c<_0x193db9?-0x1:0x1;});for(const _0x6cb7c4 of _0x1d9c0a)_0x6cb7c4['sort']((_0x18bc65,_0x175461)=>_0x18bc65['id']<_0x175461['id']?-0x1:0x1);}());for(let _0x4e16f3=0x0;_0x4e16f3<_0x1d9c0a['length'];_0x4e16f3++){if(0x0==_0x1d9c0a[_0x4e16f3]['length'])continue;const _0x5e01ce=[];for(let _0x8988c6=_0x4e16f3+0x1;_0x8988c6<_0x1d9c0a['length'];_0x8988c6++)0x0!=_0x1d9c0a[_0x8988c6]['length']&&_0x5e887e(_0x1d9c0a[_0x4e16f3],_0x1d9c0a[_0x8988c6])&&_0x5e01ce['push'](_0x8988c6);for(const _0x16f942 of _0x5e01ce)_0x1d9c0a[_0x4e16f3]=_0x1d9c0a[_0x4e16f3]['concat'](_0x1d9c0a[_0x16f942]),_0x1d9c0a[_0x16f942]=[];}for(const _0x59760e of _0x1d9c0a)for(let _0x313e4e=0x0;_0x313e4e<_0x59760e['length'];_0x313e4e++){const _0x2c9dc0=_0x59760e[_0x313e4e+0x1]||null;_0x59760e[_0x313e4e]['next']!==_0x2c9dc0&&(_0x59760e[_0x313e4e]['next']=_0x2c9dc0);}for(const _0x19f692 of _0x1d9c0a)for(let _0x5a989b=0x0;_0x5a989b<_0x19f692['length'];_0x5a989b++){const _0x5e5abe=_0x19f692[_0x5a989b-0x1]||null;_0x19f692[_0x5a989b]['previous']!==_0x5e5abe&&(_0x19f692[_0x5a989b]['previous']=_0x5e5abe);}function _0x5e887e(_0x5c0c26,_0x59a3d6){if(_0x5c0c26[0x0]['attributes']['groupId']!==_0x59a3d6[0x0]['attributes']['groupId']&&_0x5c0c26[0x0]['author']!==_0x59a3d6[0x0]['author'])return!0x1;if(!function(_0x24768d,_0x4ee03f){if(!_0x24768d['hasComments']&&!_0x4ee03f['hasComments'])return!0x0;if(_0x24768d['hasComments']&&_0x4ee03f['hasComments'])return!0x1;if(_0x24768d['hasComments']&&_0x4ee03f['createdAt']<_0x24768d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4ee03f['hasComments']&&_0x24768d['createdAt']<_0x4ee03f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5c0c26[0x0],_0x59a3d6[0x0]))return!0x1;const _0x4a17ee=Ft(_0x5c0c26[0x0]['attributes'],['groupId','trackingSessionId']),_0x563c7a=Ft(_0x59a3d6[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2bdafa(_0x4a17ee,_0x563c7a))return!0x1;if(_0x5c0c26[0x0]['attributes']['groupId']==_0x59a3d6[0x0]['attributes']['groupId'])return!0x0;if(_0x5c0c26[0x0]['attributes']['trackingSessionId']!==_0x59a3d6[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5c0c26['every'](_0x22b280=>_0x59a3d6['some'](_0x177494=>_0x22b280['getFirstRange']()['isEqual'](_0x177494['getFirstRange']())))&&_0x59a3d6['every'](_0x578a65=>_0x5c0c26['some'](_0x136783=>_0x578a65['getFirstRange']()['isEqual'](_0x136783['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1086da){const _0x54ca22=Array['from'](_0x1086da),_0x577adf=this['getSuggestions']({'skipNotAttached':!0x0}),_0x413d8b=_0x577adf['filter'](_0x590a2e=>!_0x1086da['has'](_0x590a2e)),_0x1d6165=new Map(_0x54ca22['map'](_0x41e821=>[_0x41e821,this['_suggestionFactory']['getSuggestionCallback'](_0x41e821['type'],_0x41e821['subType'],'join')])),_0x3ede24=new Map(_0x577adf['map'](_0x365041=>[_0x365041,_0x365041['getRanges']()]));for(let _0x3208a2=0x0;_0x3208a2<_0x54ca22['length'];_0x3208a2++){if(_0x18122d(this,_0x54ca22[_0x3208a2],_0x54ca22,_0x3208a2+0x1))return!0x0;}for(let _0x34eefc=0x0;_0x34eefc<_0x54ca22['length'];_0x34eefc++){if(_0x18122d(this,_0x54ca22[_0x34eefc],_0x413d8b,0x0))return!0x0;}return!0x1;function _0x18122d(_0x5c621d,_0x26e3d5,_0x95345e,_0x4cdc86){for(let _0xd76551=_0x4cdc86;_0xd76551<_0x95345e['length'];_0xd76551++){const _0x30e58c=_0x95345e[_0xd76551];if(_0x30e58c['type']!==_0x26e3d5['type']||_0x30e58c['author']['id']!==_0x26e3d5['author']['id']||_0x30e58c['subType']!==_0x26e3d5['subType'])continue;if(!Qt(_0x26e3d5,_0x30e58c))continue;if('attribute'==_0x26e3d5['type']&&_0x26e3d5['data']['oldValue']!=_0x30e58c['data']['oldValue'])continue;if('attribute'==_0x26e3d5['type']&&_0x5c621d['_isBlockAttribute'](_0x26e3d5['data']['key']))continue;if('formatBlock'==_0x26e3d5['type']){const _0x53397d=_0x5c621d['editor']['model'],_0x53ac36=_0x26e3d5['getContainedElement']();if(_0x53ac36&&(_0x53397d['schema']['isObject'](_0x53ac36)||_0x53397d['schema']['isLimit'](_0x53ac36)))continue;}const _0x46f515=_0x1d6165['get'](_0x26e3d5),_0x55da8c=_0x3ede24['get'](_0x26e3d5),_0x5bb20a=_0x3ede24['get'](_0x30e58c),_0x2a1ca4=_0x26e3d5['commentThread']&&_0x26e3d5['commentThread']['length'],_0x158255=_0x30e58c['commentThread']&&_0x30e58c['commentThread']['length'];if(!_0x2a1ca4&&_0x46f515(_0x5bb20a,_0x55da8c))return _0x5c621d['_joinSuggestions'](_0x30e58c,_0x26e3d5),_0x3ede24['delete'](_0x26e3d5),!0x0;if(!_0x158255&&_0x46f515(_0x55da8c,_0x5bb20a))return _0x5c621d['_joinSuggestions'](_0x26e3d5,_0x30e58c),_0x3ede24['delete'](_0x30e58c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x49c525,_0x50a1ba){if(_0x49c525['isMultiRange']){for(const _0x43ce62 of _0x50a1ba['getRanges']())_0x49c525['addRange'](_0x43ce62);}else{const _0x21c19f=_0x50a1ba['getFirstRange']()['end'];this['_setSuggestionRange'](_0x49c525,this['_model']['createRange'](_0x49c525['getFirstRange']()['start'],_0x21c19f));}_0x50a1ba['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1c5400,_0x59c096,_0x164eff){const _0x2b77b9=_0x1c5400['startsWith']('format')||_0x1c5400['startsWith']('attribute')?'FORMATTING':_0x1c5400['toUpperCase']();return c(this['editor']['locale'],_0x59c096+'_'+_0x2b77b9+'_SUGGESTION_ANNOUNCEMENT',_0x164eff);}['_initAriaMarkerChangeAnnouncements'](){const _0x413fe6=this['editor'];if(!_0x413fe6['ui'])return;const {ariaLiveAnnouncer:_0x4fd907}=_0x413fe6['ui'];_0x391ca5(this['_model'],({left:_0x10249b,entered:_0x2ce844})=>{for(const _0x124dbd of _0x10249b){const {group:_0x35de1e,type:_0x19c259}=this['_splitMarkerName'](_0x124dbd['name']);if('suggestion'===_0x35de1e){_0x4fd907['announce'](this['_getMarkerAnnouncementText'](_0x19c259,'LEAVE'));break;}}for(const _0x1d5c7b of _0x2ce844){const {group:_0xf7acb3,type:_0x1af31a}=this['_splitMarkerName'](_0x1d5c7b['name']);if('suggestion'===_0xf7acb3){_0x4fd907['announce'](this['_getMarkerAnnouncementText'](_0x1af31a,'ENTER',_0x3e0024(_0x2ae37a)));break;}}});}['_processAttributeChanges'](_0x191e4a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x188f1c=this['editor'],_0x4fe4ba=_0x188f1c['model']['document']['differ']['getChanges']();if(0x0==_0x4fe4ba['length'])return!0x1;const _0x34f2cb=[],_0x53e342=_0x4fe4ba['filter'](_0x27dcc0=>'attribute'==_0x27dcc0['type']),_0x11c2b8=_0x4fe4ba['filter'](_0x33db3f=>'insert'==_0x33db3f['type']&&'$text'!=_0x33db3f['name']),_0x23fb2e=_0x4fe4ba['filter'](_0x13cdfa=>'remove'==_0x13cdfa['type']&&'$text'!=_0x13cdfa['name']);for(const _0x72b965 of _0x53e342)_0x34f2cb['push']({'key':_0x72b965['attributeKey'],'newValue':_0x72b965['attributeNewValue'],'oldValue':_0x72b965['attributeOldValue'],'range':qt(_0x72b965['range'],_0x188f1c['model'])});for(const _0x27667f of _0x11c2b8){const _0x2c7696=_0x23fb2e['find'](_0x248018=>_0x248018['position']['isEqual'](_0x27667f['position']));_0x2c7696&&_0x34f2cb['push']({'key':u,'newValue':_0x27667f['name'],'oldValue':_0x2c7696['name'],'range':_0x188f1c['model']['createRangeOn'](_0x27667f['position']['nodeAfter'])});}return 0x0!=_0x34f2cb['length']&&this['_reduceExistingSuggestions'](_0x191e4a,_0x34f2cb);}['_processAttributeSuggestions'](_0xf07d7d){let _0x176376=!0x1;const _0x5e5653=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x7d2c15=>_0x7d2c15['data']['newRange']&&_0x7d2c15['name']['startsWith']('suggestion:attribute:'));for(const _0x21d037 of _0x5e5653){const {subType:_0x5b82e1,id:_0x242f42}=this['_splitMarkerName'](_0x21d037['name']),_0x574d32=_0x5b82e1['split']('|')[0x0];for(const _0x431ded of this['getSuggestions']({'skipNotAttached':!0x0}))_0x431ded['id']!=_0x242f42&&'attribute'==_0x431ded['type']&&_0x431ded['data']&&_0x431ded['data']['key']==_0x574d32&&_0x431ded['getFirstRange']()['isIntersecting'](_0x21d037['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x431ded,_0x21d037['data']['newRange'],_0xf07d7d),_0x176376=!0x0);}return _0x176376;}['_recordAttributeChanges'](_0x261220){this['_recordAttributeSuggestions']=!0x0,_0x261220();}['_isRegisteredAttribute'](_0x272c2d){const _0x206a51=this['_isBlockAttribute'](_0x272c2d),_0x44687e=this['_inlineAttributeKeys']['has'](_0x272c2d);return _0x206a51||_0x44687e;}['_reduceExistingSuggestions'](_0x1fbeed,_0x403f6b){if(0x0==_0x403f6b['length'])return!0x1;let _0x3fd548=!0x1;for(const _0x5a617f of _0x403f6b){const _0xdea722=this['_findSuggestions'](_0x5a617f['range'],'attribute')['filter'](_0x257c3c=>!_0x257c3c['meta']['isNextTo'])['map'](_0x5b7098=>_0x5b7098['suggestion']),_0x1c64a7=_0x681558({'newValue':_0x5a617f['newValue']});_0xdea722['filter'](_0x465d67=>{const [_0x4f88e5,_0x407f42]=_0x465d67['subType']['split']('|');return _0x4f88e5==_0x5a617f['key']&&_0x407f42!=_0x1c64a7;})['forEach'](_0x348501=>{this['_reduceSuggestionAttributeRange'](_0x348501,_0x5a617f['range'],_0x1fbeed),_0x3fd548=!0x0;});}return _0x3fd548;}['_reduceSuggestionAttributeRange'](_0x1315dd,_0x1cb116,_0x2e2931){const _0x33051a=_0x1315dd['getFirstRange']()['getDifference'](_0x1cb116);0x0!==_0x33051a['length']?0x1!==_0x33051a['length']?this['_breakSuggestionMarker'](_0x1315dd,_0x1cb116['start'],_0x1cb116['end']):this['_setSuggestionRange'](_0x1315dd,_0x33051a[0x0]):_0x2e2931['removeMarker'](_0x1315dd['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1ac9a5){this['_editor']=_0x1ac9a5,this['_model']=_0x1ac9a5['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x8d8b98,_0x12a435,_0x500fbd,_0x4df611,_0x3fbb7a,_0x186efc){return new o(this['_model'],{'type':_0x8d8b98,'subType':_0x12a435,'id':_0x500fbd,'author':_0x4df611,'creator':_0x4df611,'attributes':_0x3fbb7a,'onAttributesChange':_0x186efc,'onAccept':(..._0x30e446)=>this['getSuggestionCallback'](_0x8d8b98,_0x12a435,'accept')(..._0x30e446),'onDiscard':(..._0x449994)=>this['getSuggestionCallback'](_0x8d8b98,_0x12a435,'discard')(..._0x449994)});}['registerCustomCallback'](_0x40348a,_0x2bcc84,_0x1726ac,_0xabbccc){const _0x469fdf=_0x40348a+':'+_0x2bcc84+':'+_0x1726ac;this['_customCallbacks']['set'](_0x469fdf,_0xabbccc);}['getSuggestionCallback'](_0x5b994f,_0x1618f3,_0x3ade22){const _0xc1b1e8=_0x5b994f+':'+_0x1618f3+':'+_0x3ade22;return this['_customCallbacks']['get'](_0xc1b1e8)||this['_defaultCallbacks']['get'](_0x5b994f+':'+_0x3ade22);}['_registerDefaultCallbacks'](){const _0x581368=()=>!0x1,_0x1eb2fb=_0x5cd194=>{_0x5cd194['sort']((_0x18333e,_0x5a96d3)=>_0x18333e['start']['isBefore'](_0x5a96d3['start'])?0x1:-0x1),this['_model']['change'](_0x2ad400=>{for(const _0x594d6e of _0x5cd194){let _0x2fa520;_0x2fa520=_0x594d6e['end']['isAtEnd']&&_0x594d6e['end']['parent']==_0x594d6e['start']['nodeAfter']?_0x2ad400['createSelection'](_0x594d6e['start']['nodeAfter'],'on'):_0x2ad400['createSelection'](_0x594d6e),this['_model']['deleteContent'](_0x2fa520,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x32e074=(_0x8f095e,_0x3b68de)=>{_0x3b68de&&this['_model']['change'](_0x40189a=>{const {commandName:_0x51bf3e,commandParams:_0x385ede=[]}=_0x3b68de,_0x1c3e41=_0x8f095e['map'](_0x1f9def=>(Lt(_0x1f9def)&&(_0x1f9def=this['_model']['createRange'](_0x1f9def['end'])),_0x1f9def))['filter'](_0x27c836=>'$graveyard'!==_0x27c836['root']['rootName']);if(_0x1c3e41['length']<0x1)return;const _0x7f454a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5ad2e8=>_0x4ce525['fromRange'](_0x5ad2e8));_0x40189a['setSelection'](_0x1c3e41);for(const _0x4f7587 of this['_editor']['commands']['commands']())_0x4f7587['refresh']();_0x385ede['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x51bf3e,..._0x385ede);const _0x1e5c6e=_0x7f454a['filter'](_0x2bb7cf=>'$graveyard'!=_0x2bb7cf['root']['rootName']);_0x1e5c6e['length']>0x0&&_0x40189a['setSelection'](_0x1e5c6e);for(const _0x1240d6 of _0x7f454a)_0x1240d6['detach']();});},_0x524cd7=(_0x3504ca,_0x17601d)=>0x1==_0x3504ca['length']&&0x1==_0x17601d['length']&&_0x3504ca[0x0]['end']['isEqual'](_0x17601d[0x0]['start']),_0x3dfd98=(_0x5d9c34,_0x2a4840,_0x23dfa7,_0x44020a)=>Wt(_0x5d9c34,_0x2a4840,_0x23dfa7,_0x44020a)?[_0x5d9c34,_0x2a4840]:Wt(_0x2a4840,_0x5d9c34,_0x44020a,_0x23dfa7)?[_0x2a4840,_0x5d9c34]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x581368),this['_defaultCallbacks']['set']('insertion:discard',_0x1eb2fb),this['_defaultCallbacks']['set']('insertion:join',_0x524cd7),this['_defaultCallbacks']['set']('insertion:chain',_0x3dfd98),this['_defaultCallbacks']['set']('deletion:accept',_0x1eb2fb),this['_defaultCallbacks']['set']('deletion:discard',_0x581368),this['_defaultCallbacks']['set']('deletion:join',_0x524cd7),this['_defaultCallbacks']['set']('deletion:chain',_0x3dfd98),this['_defaultCallbacks']['set']('formatInline:accept',_0x32e074),this['_defaultCallbacks']['set']('formatInline:discard',_0x581368),this['_defaultCallbacks']['set']('formatInline:join',_0x524cd7),this['_defaultCallbacks']['set']('formatInline:chain',_0x581368),this['_defaultCallbacks']['set']('formatBlock:accept',_0x32e074),this['_defaultCallbacks']['set']('formatBlock:discard',_0x581368),this['_defaultCallbacks']['set']('formatBlock:join',_0x524cd7),this['_defaultCallbacks']['set']('formatBlock:chain',_0x581368),this['_defaultCallbacks']['set']('attribute:accept',_0x581368),this['_defaultCallbacks']['set']('attribute:discard',(_0x1aa9e1,_0x4ef0f4)=>{if(!_0x4ef0f4)return;const _0xa74ca3=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x122e8c=>{if(_0x4ef0f4['key']==u)for(const _0x4d236f of _0x1aa9e1){const _0x57a0f4=_0x4d236f['start']['nodeAfter'],_0x74b9a3=_0x4ef0f4['oldValue'];_0x122e8c['rename'](_0x57a0f4,_0x74b9a3);}else{if(_0xa74ca3['_isBlockAttribute'](_0x4ef0f4['key'])){for(const _0x236e36 of _0x1aa9e1)void 0x0!==_0x4ef0f4['oldValue']?_0x122e8c['setAttribute'](_0x4ef0f4['key'],_0x4ef0f4['oldValue'],_0x236e36['start']['nodeAfter']):_0x122e8c['removeAttribute'](_0x4ef0f4['key'],_0x236e36['start']['nodeAfter']);}else{for(const _0x598c41 of _0x1aa9e1)_0x4ef0f4['oldValue']?_0x122e8c['setAttribute'](_0x4ef0f4['key'],_0x4ef0f4['oldValue'],_0x598c41):_0x122e8c['removeAttribute'](_0x4ef0f4['key'],_0x598c41);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x524cd7);}}function Gt(_0x2c6c0d,_0x5d5d9f,_0x25db87){for(const _0x2a739c of _0x5d5d9f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2a739c['root']==_0x2a739c)return!0x1;if(!_0x25db87['containsItem'](_0x2a739c))return!0x1;if(_0x2c6c0d['isObject'](_0x2a739c)||_0x2c6c0d['isLimit'](_0x2a739c))return!0x0;}return!0x1;}function Lt(_0x381620){return _0x381620['end']['parent']==_0x381620['start']['nodeAfter']&&_0x381620['end']['isAtStart'];}function Jt(_0x57406b,_0x59462d,_0x313f16,_0x4a4f8f){const _0x5bd6e2=_0x3a787=>!_0x3a787['item']['is']('$textProxy')&&!_0x4a4f8f['isObject'](_0x3a787['item']),_0x16aacf=_0x57406b['start']['getLastMatchingPosition'](_0x5bd6e2),_0x44a78f=_0x57406b['end']['getLastMatchingPosition'](_0x5bd6e2,{'direction':'backward'});return(!_0x57406b['start']['isEqual'](_0x16aacf)||!_0x57406b['end']['isEqual'](_0x44a78f))&&(_0x16aacf['isBefore'](_0x44a78f)?_0x313f16['updateMarker'](_0x59462d,{'range':_0x313f16['createRange'](_0x16aacf,_0x44a78f)}):_0x313f16['removeMarker'](_0x59462d),!0x0);}function Kt(_0x4b4d8d){return _0x681558(_0x4b4d8d);}function Ht(_0x13bbbb){const _0x28adad=_0x13bbbb['start']['nodeAfter'];return _0x28adad&&_0x28adad['is']('element');}function qt(_0x39cf88,_0x220656){return null==_0x39cf88['end']['nodeBefore']&&_0x39cf88['end']['parent']==_0x39cf88['start']['nodeAfter']?zt(_0x39cf88['start']['nodeAfter'],_0x220656):_0x39cf88;}function zt(_0x3aa4ce,_0x265e3f){const _0x2be692=_0x265e3f['schema']['isObject'](_0x3aa4ce)||_0x265e3f['schema']['isSelectable'](_0x3aa4ce);return _0x265e3f['createRange'](_0x265e3f['createPositionAt'](_0x3aa4ce,'before'),_0x2be692?_0x265e3f['createPositionAfter'](_0x3aa4ce):_0x265e3f['createPositionAt'](_0x3aa4ce,'end'));}function Wt(_0x366f0d,_0xf38734,_0x4e5313,_0x3f316c){return!!Qt(_0x366f0d,_0xf38734)&&_0x4e5313['end']['isEqual'](_0x3f316c['start']);}function Qt(_0x419176,_0x545bdd){if(!_0x419176['_isDataLoaded']||!_0x545bdd['_isDataLoaded'])return!0x1;const _0x3f4c06=new Set(Object['keys'](_0x419176['attributes'])),_0x410e42=new Set(Object['keys'](_0x545bdd['attributes']));if(_0x3f4c06['delete']('groupId'),_0x410e42['delete']('groupId'),0x0==_0x3f4c06['size']&&0x0==_0x410e42['size'])return!0x0;if(_0x3f4c06['size']!=_0x410e42['size'])return!0x1;const _0xe9cc85={..._0x419176['attributes']},_0x208f4d={..._0x545bdd['attributes']};return delete _0xe9cc85['groupId'],delete _0x208f4d['groupId'],JSON['stringify'](_0xe9cc85)==JSON['stringify'](_0x208f4d);}function Xt(_0x4c6bbb,_0x313c11){const _0x2a85f3=Yt(_0x4c6bbb['attributes']),_0x5e8d36=Yt(_0x313c11);if(!_0x4c6bbb['_isDataLoaded'])return!0x1;for(const _0x332449 of Object['keys'](_0x5e8d36))if(!_0x2bdafa(_0x2a85f3[_0x332449],_0x5e8d36[_0x332449]))return!0x1;return!0x0;}function Yt(_0x89eb95){const _0x285257=Object['assign']({},_0x89eb95);return delete _0x285257['skipNestingCheck'],delete _0x285257['tablePasteChainId'],_0x285257;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4a96fd(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x10cc95,_0xe141b4,_0xd40873,_0xced258){super(),this['model']=_0xe141b4,this['view']=_0xd40873,this['commentThreadController']=_0xced258,this['_editor']=_0x10cc95,this['_acceptCommand']=_0x10cc95['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x10cc95['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x59157c,_0x25c221)=>_0x59157c||_0x25c221),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x35c9aa=>_0x35c9aa&&this['_editor']['model']['canEditAt'](_0xe141b4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x33495f=>_0x33495f&&this['_editor']['model']['canEditAt'](_0xe141b4['getRanges']())),this['_pendingAction']=null,_0xd40873['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xd40873,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xd40873,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xd40873,'change:isDirty',()=>{_0xd40873['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 _0xaaf275=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xaaf275);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2475f2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x122f74,_0x17e781,_0x34f7ac,_0x3fbcfd){super(_0x122f74),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2b609f(_0x122f74,c(_0x122f74,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x17e781['authoredAt']),this['bind']('authoredAt')['to'](_0x17e781),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x17e781,'authoredAt',this,'descriptionParts',(_0x5c7002,_0x3e4aaf,_0x1bd103)=>{const _0x5e377f=_0x1bd103['map'](_0x5870ab=>ls(_0x5870ab['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5c7002-0x1,_0x17e781['author']['name'],_0x3e4aaf?_0x3fbcfd['formatDateTime'](_0x3e4aaf):'',new DOMParser()['parseFromString'](_0x5e377f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x54f94d(),this['focusTracker']=new _0x283f73(),this['keystrokes']=new _0x274642(),this['focusCycler']=new _0x5b8716({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2ef43b=>_0x2ef43b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x17e781,this['_localUser']=_0x34f7ac,this['_config']=_0x3fbcfd,_0x3fbcfd['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5a3c9a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3626ac}=this['_config'];this['commentsListView']=new _0x3626ac(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',_0x558cbf=>_0x558cbf+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5bccc4,_0x261b85)=>_0x5bccc4||!!_0x261b85);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1523e5}=this['_config'],_0x2f113a=new _0x1523e5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5e137f=_0x2f113a['commentInputView'];return _0x2f113a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5e137f,'value',(_0x27b968,_0x117f15,_0xd5e1cb)=>!!_0xd5e1cb||_0x27b968&&!_0x117f15),_0x5e137f['on']('submit',(_0x1fd189,_0x110fd9)=>{this['fire']('addComment',_0x110fd9),_0x5e137f['editor']['setData']('');}),_0x5e137f['on']('cancel',()=>this['focus']()),_0x5e137f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2f113a;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x15cf53,_0x313dd7,_0x3b38c0,_0xfd8eba){super(_0x15cf53,_0x313dd7,_0x3b38c0,_0xfd8eba),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5232ac=>_0x5232ac&&_0x5232ac[0x0]?_0x5232ac[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1fb9a4,_0x53b708)=>{let _0x134efe='';for(const _0x180d0e of _0x1fb9a4)_0x134efe+='<p>'+ls(_0x180d0e['content'],_0x180d0e['color'])+'</p>';return _0x53b708?_0x134efe:ti(_0x134efe,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xfd8eba['SuggestionView'](_0x15cf53,_0x313dd7,{'formatDateTime':_0xfd8eba['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x57ce0a=this['bindTemplate'],_0x4530a3=[this['suggestionView']];return this['commentsListView']&&_0x4530a3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4530a3['push'](this['commentThreadInputView']),_0x4530a3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x57ce0a['if']('isActive','ck-suggestion-wrapper--active'),_0x57ce0a['to']('type',_0x160303=>'ck-suggestion-'+_0x160303),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':0x0,'role':'listitem','aria-label':_0x57ce0a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4530a3};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x2475f2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x52f2ac,_0xb46d63,_0x16992f){super(_0x52f2ac),this['_model']=_0xb46d63,this['_config']=_0x16992f,this['set']('description',''),this['bind']('authoredAt')['to'](_0xb46d63),this['acceptButton']=this['_createButton'](c(_0x52f2ac,'Accept\x20suggestion'),_0xdde516,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x52f2ac,'Discard\x20suggestion'),_0x2f3378,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4fbc1c(_0x52f2ac,_0xb46d63['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x54f94d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x283f73(),this['keystrokes']=new _0x274642(),this['focusCycler']=new _0x5b8716({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x343dac=>_0x343dac['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5dca10=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5dca10['innerHTML']=this['description'],this['on']('change:description',(_0x278e23,_0x4c4b65,_0x2358ef)=>{_0x5dca10['innerHTML']=_0x2358ef;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5692ba=this['bindTemplate'],_0x3ca298=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5692ba['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5692ba['to']('authoredAt',_0x33d238=>this['_config']['formatDateTime'](_0x33d238))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x3ca298['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x3ca298}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3bb6a4,_0x41a76f,_0x4ee66b,_0x5580f2,_0x2ad583){const _0x20db59=new _0x36278a(this['locale']);return _0x20db59['set']({'label':_0x3bb6a4,'icon':_0x41a76f,'tooltip':!0x0,'tooltipPosition':_0x2ad583}),_0x20db59['extendTemplate']({'attributes':{'class':_0x4ee66b}}),_0x20db59['on']('execute',()=>{this['fire'](_0x5580f2,this['_model']['id']);}),_0x20db59;}['_setupKeyboardNavigation'](){const _0x10078c=this['element'];this['keystrokes']['listenTo'](_0x10078c);for(const _0x2ab60f of this['focusables'])this['focusTracker']['add'](_0x2ab60f['element']),this['keystrokes']['listenTo'](_0x2ab60f['element']);this['keystrokes']['set']('enter',(_0x59bfbf,_0x2e64f2)=>{_0x10078c===_0x59bfbf['target']&&(this['focusCycler']['focusFirst'](),_0x2e64f2());}),this['keystrokes']['set']('esc',(_0x16bd8a,_0x4a4ced)=>{_0x10078c!==_0x16bd8a['target']&&(this['focus'](),_0x4a4ced());});}}class d extends _0x5c587b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4ad932,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8295b3){super(_0x8295b3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4b135b=this['editor']['config'];_0x4b135b['define']('trackChanges.SuggestionThreadView',fe),_0x4b135b['define']('trackChanges.SuggestionView',we),_0x4b135b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4b135b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5aeb2d,_0x579865){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x28d4d1,_0x20285b]of this['_handleControllerBuffer']){const _0x268e9b=this['_suggestionToController']['has'](_0x28d4d1);_0x268e9b||_0x20285b?_0x268e9b&&_0x20285b&&this['_destroyController'](_0x28d4d1):this['_initializeController'](_0x28d4d1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5aeb2d,_0x579865);}['init'](){const _0x201885=this['editor'],_0x56782e=_0x201885['plugins']['get']('TrackChangesEditing'),_0x27ebc3=_0x201885['plugins']['get']('Annotations'),_0x158599=_0x201885['plugins']['get']('EditorAnnotations'),_0x12339b=_0x201885['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x158599['addSourceCollector'](()=>{const _0x186610=[];for(const [_0x168197,_0xb5cb29]of Array['from'](this['_suggestionToController'])){const _0x5d18aa=_0x168197['getAllAdjacentSuggestions'](),_0x348c37=[];for(const _0x87504e of _0x5d18aa){if(!_0x87504e['isInContent'])continue;if(_0x87504e['isMultiRange']){_0x348c37['push'](..._0x87504e['getRanges']());continue;}const _0x5320b9=_0x87504e['getFirstRange']();if(_0x348c37['length']>0x0){const _0x1b8960=_0x348c37[0x0]['getJoined'](_0x5320b9);if(_0x1b8960){_0x348c37[0x0]=_0x1b8960;continue;}}_0x348c37['push'](_0x5320b9);}_0x186610['push']([_0xb5cb29['view'],_0x348c37]);}return _0x186610;}),this['listenTo'](_0x56782e,'suggestionLoaded',(_0x1ce626,_0x3e92f9)=>{this['listenTo'](_0x3e92f9,'change:previous',(_0x3d0652,_0x4fe154,_0x578d80,_0x2000ba)=>{_0x3e92f9['isInContent']&&(null==_0x578d80?(this['_updateController'](_0x2000ba['head']),this['_handleSuggestionControllerDelayed'](_0x3e92f9,!0x1)):(this['_updateController'](_0x578d80['head']),null==_0x2000ba&&this['_handleSuggestionControllerDelayed'](_0x3e92f9,!0x0)));}),null!==_0x3e92f9['previous']?this['_updateController'](_0x3e92f9['head']):this['_handleSuggestionControllerDelayed'](_0x3e92f9,!0x1);}),this['listenTo'](_0x56782e,'suggestionUnloaded',(_0x817e21,_0x120fe8,_0x2e87b3)=>{this['stopListening'](_0x120fe8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x120fe8),this['_suggestionToController']['has'](_0x120fe8)&&this['_destroyController'](_0x120fe8),_0x2e87b3&&this['_updateController'](_0x2e87b3['head']);}),this['listenTo'](_0x56782e,'suggestionChanged',(_0x12eaf5,_0x54d61a)=>{this['_updateController'](_0x54d61a);}),this['listenTo'](_0x27ebc3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x12339b,'addComment',(_0x1307ab,{threadId:_0x52a6f3,isFromAdapter:_0x289062})=>{if(_0x289062||!_0x56782e['hasSuggestion'](_0x52a6f3))return;const _0x30c253=_0x56782e['getSuggestion'](_0x52a6f3);this['_suggestionToController']['get'](_0x30c253)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4fe764=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x326365;for(const _0x3f7fe1 in _0x4fe764){const _0x8624db=_0x3f7fe1,_0x59dec1=_0x4fe764[_0x8624db];if('trackChangesLicenseKeyValid'==_0x59dec1||'trackChangesLicenseKeyInvalid'==_0x59dec1||'trackChangesLicenseKeyExpired'==_0x59dec1||'trackChangesLicenseKeyDomainLimit'==_0x59dec1||'trackChangesLicenseKeyNotAllowed'==_0x59dec1||'trackChangesLicenseKeyEvaluationLimit'==_0x59dec1||'trackChangesLicenseKeyTrialLimit'==_0x59dec1||'trackChangesLicenseKeyUsageLimit'==_0x59dec1){delete _0x4fe764[_0x8624db],_0x326365=_0x59dec1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x326365&&_0x4fe764['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x326365&&_0x4fe764['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x326365&&_0x4fe764['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x326365&&_0x4fe764['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x326365&&_0x4fe764['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x326365&&_0x4fe764['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x326365&&_0x4fe764['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3ae4e4=this['editor']['plugins']['get']('Annotations'),_0x1adfd5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36ce89=Array['from'](_0x3ae4e4['activeAnnotations'],_0x1d3c48=>_0x1d3c48['innerView'])['filter'](_0x35fdfe=>this['_viewToController']['has'](_0x35fdfe)),_0x53c0d9=[];for(const _0x3f441d of _0x36ce89){const _0x5196fd=this['_viewToController']['get'](_0x3f441d)['model']['getAllAdjacentSuggestions']();_0x53c0d9['push'](..._0x5196fd['reduce']((_0x5857f1,_0x19cca4)=>[..._0x5857f1,..._0x19cca4['getMarkerNames']()],[]));}_0x1adfd5['activeMarkers']=_0x53c0d9;}['_addUIComponentsToFactory'](){const _0x4a66b6=this['editor'],_0x402470=_0x4a66b6['locale'],_0x3e1666=c(_0x402470,'Track\x20changes'),_0x252a35=new _0x1b1e11([{'type':'switchbutton','model':new _0x2e09f9({'withText':!0x0,'isToggleable':!0x0,'label':_0x3e1666,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2e09f9({'withText':!0x0,'label':c(_0x402470,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e09f9({'withText':!0x0,'label':c(_0x402470,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e09f9({'withText':!0x0,'label':c(_0x402470,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e09f9({'withText':!0x0,'label':c(_0x402470,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4a66b6['plugins']['has']('TrackChangesPreview')&&_0x252a35['addMany']([{'type':'separator'},{'type':'button','model':new _0x2e09f9({'withText':!0x0,'label':c(_0x402470,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x312668 of _0x252a35)if(ke(_0x312668)){const _0x5d6786=_0x4a66b6['commands']['get'](_0x312668['model']['commandName']);_0x312668['model']['bind']('isOn','isEnabled')['to'](_0x5d6786,'value','isEnabled');}_0x4a66b6['ui']['componentFactory']['add']('trackChanges',_0x4851a7=>this['_createToolbarButton'](_0x4851a7,_0x252a35,_0x3e1666)),_0x4a66b6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1a6295=>this['_createMenuBarMenu'](_0x1a6295,_0x252a35,_0x3e1666));}['_createToolbarButton'](_0x1b631d,_0x23305b,_0x3f5d34){const _0x1862ff=_0x508bcb(_0x1b631d,_0x5139dc),_0x13b5b7=this['editor']['commands']['get']('trackChanges');_0x1862ff['buttonView']['set']({'tooltip':_0x3f5d34,'label':_0x3f5d34,'icon':_0xdf51b8}),_0x1862ff['buttonView']['bind']('isOn')['to'](_0x13b5b7,'value'),_0x1862ff['buttonView']['on']('execute',()=>{_0x13b5b7['execute'](),this['editor']['editing']['view']['focus']();}),_0xe1ca2d(_0x1862ff,_0x23305b,{'role':'menu'});const _0x377b76=[];for(const _0x5d55db of _0x23305b)ke(_0x5d55db)&&_0x377b76['push'](this['editor']['commands']['get'](_0x5d55db['model']['commandName']));const _0x18eada=_0x1862ff['buttonView'];return _0x18eada['actionView']['unbind']('isEnabled'),_0x18eada['arrowView']['unbind']('isEnabled'),_0x18eada['actionView']['bind']('isEnabled')['to'](_0x13b5b7,'isEnabled'),_0x18eada['arrowView']['bind']('isEnabled')['toMany'](_0x377b76,'isEnabled',(..._0x4f51dc)=>_0x4f51dc['some'](_0x565c49=>_0x565c49)),_0x1862ff['on']('execute',_0x5ea051=>{this['editor']['execute'](_0x5ea051['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1862ff;}['_createMenuBarMenu'](_0x4381f7,_0x16cf28,_0x1e7da5){const _0x48612f=new _0xf0a468(_0x4381f7),_0x37171c=this['editor']['commands']['get']('trackChanges');_0x48612f['buttonView']['set']({'label':_0x1e7da5,'icon':_0xdf51b8});const _0x367392=new _0x243af0(_0x4381f7);for(const _0x23415b of _0x16cf28){if('separator'==_0x23415b['type']){_0x367392['items']['add'](new _0x3bf768(_0x4381f7));continue;}const _0x3d4f88=new _0x9d1ca6(_0x4381f7,_0x48612f),_0x266323=new _0x74500b(_0x4381f7),_0x5d6f11=_0x23415b['model'];_0x266323['bind'](...Object['keys'](_0x5d6f11))['to'](_0x5d6f11),_0x266323['delegate']('execute')['to'](_0x48612f),_0x266323['on']('execute',()=>{this['editor']['execute'](_0x5d6f11['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d4f88['children']['add'](_0x266323),_0x367392['items']['add'](_0x3d4f88);}return _0x48612f['bind']('isEnabled')['to'](_0x37171c,'isEnabled'),_0x48612f['panelView']['children']['add'](_0x367392),_0x48612f;}['_initializeController'](_0xf8b1fc){const _0x5ff0e0=this['editor'],_0x16f108=_0x5ff0e0['config'],_0x233e6e=_0x5ff0e0['plugins']['get']('Annotations'),_0x54f67a=_0x5ff0e0['plugins']['get']('CommentsRepository'),_0x281aa5=_0x5ff0e0['plugins']['get']('EditorAnnotations'),_0x3c6577=_0x5ff0e0['plugins']['get'](_0x4ad932)['me'],_0x3404d1=_0x16f108['get']('trackChanges')['SuggestionThreadView'],_0x511cee=_0x16f108['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x58b96a,CommentThreadInputView:_0x4f2aa0}=_0x5ff0e0['plugins']['get']('CommentsUI');let _0x4f07d4,_0x3643ba,_0x3d43ab;this['_annotationViews']['has'](_0xf8b1fc['id'])?(_0x3643ba=this['_annotationViews']['get'](_0xf8b1fc['id']),_0x4f07d4=_0x3643ba['mainView']):(_0x4f07d4=new _0x3404d1(_0x5ff0e0['locale'],_0xf8b1fc,_0x3c6577,{'disableComments':this['_disableComments'],'editorConfig':{..._0x16f108['get']('comments.editorConfig'),'licenseKey':_0x16f108['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x16f108['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x16f108['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x16f108['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x194c34(_0x16f108['get']('locale'),_0x5ff0e0['locale']),'CommentView':_0x16f108['get']('comments')['CommentView'],'CommentsListView':_0x58b96a,'CommentThreadInputView':_0x4f2aa0,'SuggestionView':_0x511cee}),_0x4f07d4['suggestionView']['acceptButton']['on']('execute',()=>{_0x5ff0e0['editing']['view']['focus']();}),_0x4f07d4['suggestionView']['discardButton']['on']('execute',()=>{_0x5ff0e0['editing']['view']['focus']();}),_0x3643ba=_0x233e6e['createAnnotationView'](this['editor']['locale'],_0x4f07d4),_0x3643ba['bind']('isDirty')['to'](_0x4f07d4,'isDirty'),_0x3643ba['bind']('length')['to'](_0x4f07d4),_0x3643ba['bind']('type')['to'](_0x4f07d4,'type',_0x5e4c7=>'suggestion-'+_0x5e4c7),_0x4f07d4['on']('escape',()=>{_0x3d43ab['fire']('escape');}),this['_annotationViews']['set'](_0xf8b1fc['id'],_0x3643ba));const _0x2c1b69=_0x54f67a['createCommentThreadController'](_0xf8b1fc['commentThread'],_0x4f07d4),_0x1be7f9=new pe(_0x5ff0e0,_0xf8b1fc,_0x4f07d4,_0x2c1b69),_0x416f8e=_0xf8b1fc['getAllAdjacentSuggestions']()['filter'](_0x36193a=>_0x36193a['isInContent']);_0x4f07d4['descriptionParts']=_0x5ff0e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x416f8e),this['_suggestionToController']['set'](_0xf8b1fc,_0x1be7f9),this['_viewToController']['set'](_0x4f07d4,_0x1be7f9),_0x3d43ab=_0x233e6e['createAnnotation']({'view':_0x3643ba,'target':()=>{const _0x430a82=[],_0x4ec791=_0xf8b1fc['getAllAdjacentSuggestions']()['filter'](_0x47c0fe=>_0x47c0fe['isInContent']);for(const _0x4ca384 of _0x4ec791)_0x430a82['push'](..._0x4ca384['getMarkers']());return _0x36e74e(_0x5ff0e0['editing'],_0x430a82);},'type':()=>'suggestion-'+_0x1be7f9['view']['type']}),_0x54f67a['_bindAnnotationToEditors'](_0x4f07d4,_0x3d43ab),_0x233e6e['add'](_0x3d43ab),_0x281aa5['registerAnnotation'](_0x3d43ab);}['_destroyController'](_0x1f9540){const _0x2bbc02=this['editor']['plugins']['get']('CommentsRepository'),_0x392a3c=this['editor']['plugins']['get']('Annotations'),_0x43adb0=this['_suggestionToController']['get'](_0x1f9540),_0x5e2b49=_0x43adb0['view'],_0x3fdae2=_0x392a3c['getByInnerView'](_0x5e2b49);_0x2bbc02['_unbindEditors'](_0x5e2b49),_0x3fdae2&&_0x392a3c['remove'](_0x3fdae2),this['_suggestionToController']['delete'](_0x1f9540),this['_viewToController']['delete'](_0x5e2b49),_0x43adb0['destroy']();}['_updateController'](_0x3891be){if(!_0x3891be['isInContent']||!this['_suggestionToController']['has'](_0x3891be))return;const _0x26ce90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aa1bd=this['_suggestionToController']['get'](_0x3891be),_0x132433=_0x3891be['getAllAdjacentSuggestions']();_0x1aa1bd['view']['descriptionParts']=_0x26ce90['descriptionFactory']['getDescriptions'](_0x132433);}['destroy'](){for(const _0x1a2afe of this['_suggestionToController']['keys']())this['_destroyController'](_0x1a2afe);for(const _0x34eea2 of this['_annotationViews']['values']())_0x34eea2['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x14fc5a){return'model'in _0x14fc5a;}class k extends _0x5c587b{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5169f9){this['editor']['plugins']['get'](p)['adapter']=_0x5169f9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5d6121){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5d6121);}['getSuggestions']({skipNotAttached:_0x5b45bc=!0x1,toJSON:_0x1ade71=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5b45bc,'toJSON':_0x1ade71});}['getSuggestion'](_0x55c37d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x55c37d);}}const w=['Pagination'];class T extends _0x5c587b{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2059bf=this['editor'];if(_0x2059bf['config']['define']('trackChangesData.editorCreator',_0x2c30f0=>{const _0x42ab28=_0x2059bf['model']['document']['getRootNames']()['reduce']((_0x2ff861,_0x56f92e)=>(_0x2ff861[_0x56f92e]='',_0x2ff861),{});return _0x2059bf['constructor']['create'](_0x42ab28,_0x2c30f0);}),'function'!=typeof _0x2059bf['config']['get']('trackChangesData')['editorCreator'])throw new _0x152d77('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x48cd68){return N(this['editor'],!0x0,_0x48cd68);}['getDataWithDiscardedSuggestions'](_0x550154){return N(this['editor'],!0x1,_0x550154);}}class D extends _0x5c587b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x99fcee){function _0x18f71d(_0x1fad47){return _0x1fad47['map'](_0x49e9c1=>String['fromCharCode'](_0x49e9c1))['join']('');}super(_0x99fcee),this['result']='end',_0x99fcee[_0x18f71d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18f71d([0x76,0x69,0x65,0x77])][_0x18f71d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18f71d([0x61,0x75,0x74,0x6f]),_0x99fcee[_0x18f71d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x18f71d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18f71d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x18f71d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x18f71d([0x6f,0x6b])});}['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 Ge(_0x25890c){return void 0x0!==_0x25890c['getRootsAttributes'];}async function N(_0x18f6cb,_0x56d9da,_0x3cba96){const _0x326104=_0x3b7191(_0x18f6cb,w);_0x326104['plugins']['push'](p,D),_0x326104['rootsAttributes']=Ge(_0x18f6cb)?_0x18f6cb['getRootsAttributes']():void 0x0;const _0x51a8ec=document['createDocumentFragment'](),_0x471288=_0x18f6cb['config']['get']('trackChangesData')['editorCreator'],_0x3a6879=await _0x471288(_0x326104,()=>function(_0x1cc38d){const _0x3b20c6=document['createElement']('div');return _0x1cc38d['appendChild'](_0x3b20c6),_0x3b20c6;}(_0x51a8ec));!function(_0x3541a6,_0x4d0390){const _0x4d0580=_0x3541a6['model']['document']['getRootNames']()['reduce']((_0x2751ce,_0xc718e0)=>(_0x2751ce[_0xc718e0]=_0x3541a6['data']['get']({'rootName':_0xc718e0}),_0x2751ce),{}),_0xa4bec=_0x3541a6['plugins']['get']('Users')['users']['map'](_0x573ce4=>({'id':_0x573ce4['id'],'name':_0x573ce4['name']})),_0x4e9bb3=_0x3541a6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3eb877=_0x3541a6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4a1721=_0x4d0390['plugins']['get']('Users'),_0x568029=_0x4d0390['plugins']['get']('TrackChangesEditing'),_0x2f2d69=_0x4d0390['plugins']['get']('CommentsRepository');for(const _0x1a54be of _0x2f2d69['getCommentThreads']())_0x1a54be['remove']();for(const _0x350590 of _0xa4bec)_0x4a1721['getUser'](_0x350590['id'])||_0x4a1721['addUser'](_0x350590);_0x4a1721['me']||_0x4a1721['useAnonymousUser']();for(const _0x1de63b of _0x3eb877)_0x2f2d69['addCommentThread'](_0x1de63b);for(const _0x2f7524 of _0x4e9bb3)_0x568029['addSuggestionData'](_0x2f7524);_0x4d0390['data']['set'](_0x4d0580);}(_0x18f6cb,_0x3a6879),_0x3a6879['execute'](_0x56d9da?'acceptAllSuggestions':'discardAllSuggestions');const _0x47535b=Ge(_0x3a6879)?_0x3a6879['getFullData'](_0x3cba96):_0x3a6879['data']['get'](_0x3cba96);return await _0x3a6879['destroy'](),_0x47535b;}class Me extends _0x2475f2{['options'];constructor(_0x534c93,_0x322fb2){super(_0x534c93),this['options']=_0x322fb2,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x2bc375,_0xa5dc6b){if(!this['element'])return;const _0xf960ef=[];for(const [_0x3e22be,_0x35f389]of _0x2bc375){const _0x24c7eb=document['createElement']('div');_0x24c7eb['setAttribute']('data-ck-root-name',_0x3e22be),_0x24c7eb['className']=_0x35f389['classes']+'\x20ck-track-changes-preview__root-container',_0x24c7eb['innerHTML']=_0x35f389['content'],_0xf960ef['push'](_0x24c7eb);}_0xa5dc6b(this['element'],_0xf960ef),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2cff90{constructor(_0x4b8ea6){super(_0x4b8ea6),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x8fd362=this['editor'],_0x4c127b=_0x8fd362['locale'],_0x333f18=_0x8fd362['plugins']['get']('Dialog');let _0x5db47a;const _0x177961=function(_0x98579f){const _0x127b81={};if('editables'in _0x98579f['ui']['view']){for(const [_0x27b08c,_0x5cbfcf]of Object['entries'](_0x98579f['ui']['view']['editables']))_0x127b81[_0x27b08c]=_0x5cbfcf['element'];}else _0x127b81[_0x98579f['model']['document']['getRootNames']()[0x0]]=_0x98579f['ui']['view']['editable']['element'];return _0x127b81;}(_0x8fd362),_0x36e44b=function(_0x1d4273){let _0x152ef0=0x0;for(const _0x17f849 of Object['values'](_0x1d4273))_0x152ef0=Math['max'](_0x152ef0,_0x17f849['getBoundingClientRect']()['width']);let _0x5f1f94=0x0;for(const _0x583dbf of Object['values'](_0x1d4273))_0x5f1f94+=_0x583dbf['getBoundingClientRect']()['height'];const _0x2d31a9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x19967a=Math['min'](_0x5f1f94,_0x2d31a9);return{'width':_0x152ef0,'height':_0x19967a};}(_0x177961);_0x333f18['show']({'id':'finalContentPreview','title':c(_0x4c127b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x4c127b,{'dialogRects':_0x36e44b}),'onHide':()=>{_0x5db47a['detachFromDom']();},'onShow':()=>{_0x8fd362['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x213835=>{const _0x218139=this['_standarizeRootsData'](_0x213835,_0x8fd362,_0x177961);_0x333f18['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x218139,_0x8fd362['config']['get']('trackChanges.preview.renderFunction'));}),_0x5db47a=new _0x26a838(_0x4c127b,[_0x333f18['view']]),_0x5db47a['attachToDom'](),_0x5db47a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x8fd362['once']('destroy',()=>{_0x5db47a['detachFromDom']();});const _0x5c371a=_0x333f18['view']['headerView']['class'];_0x333f18['view']['headerView']['class']=_0x5c371a?_0x5c371a+'\x20ck-reset_all':'ck-reset_all',_0x333f18['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x333f18['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x73a1b7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xe03cdc=_0x73a1b7['previewMode'],_0x28e019={};if('$labels'===_0xe03cdc){for(const _0x266b41 of _0x73a1b7['getMergeFieldsIds']())_0x28e019[_0x266b41]=_0x73a1b7['getLabel'](_0x266b41)||_0x266b41;}else{const _0x149587='$defaultValues'===_0xe03cdc?_0x73a1b7['getDefaultValues']():_0x73a1b7['getDataSetValues'](_0xe03cdc,!0x0);for(const _0x259bec of Object['entries'](_0x149587)){const [_0xe61434,_0x5b22d0]=_0x259bec;_0x28e019[_0xe61434]=null!==_0x5b22d0?_0x5b22d0:_0x73a1b7['getLabel'](_0xe61434)||_0xe61434;}}return{'mergeFieldsData':_0x28e019};}['_standarizeRootsData'](_0x4635d7,_0xfe20fc,_0x57cf96){let _0x522725;if('string'==typeof _0x4635d7){const _0x3aca76=_0xfe20fc['model']['document']['getRootNames']()[0x0];_0x522725={[_0x3aca76]:_0x4635d7};}else _0x522725=_0x4635d7;const _0x182ff5=this['_fixMediaEmbeds'](_0x522725,_0xfe20fc),_0x454b3e=function(_0x326956,_0x4c43ab){for(const [_0x48b566,_0x4ab52b]of _0x326956)_0x4ab52b['classes']=_0x4c43ab[_0x48b566]['classList']['value']['replace']('ck-focused','');return _0x326956;}(this['_sortRoots'](_0xfe20fc)['reduce']((_0x4fe158,_0x865ddd)=>(_0x4fe158['push']([_0x865ddd,{'content':_0x182ff5[_0x865ddd],'classes':''}]),_0x4fe158),[]),_0x57cf96);return _0x454b3e;}['_fixMediaEmbeds'](_0x5a588d,_0x516189){if(!_0x516189['plugins']['has']('MediaEmbedEditing'))return _0x5a588d;const _0x3c498b=_0x516189['plugins']['get']('MediaEmbedEditing');for(const [_0xbb639e,_0x219481]of Object['entries'](_0x5a588d)){const _0x17ff52=document['createElement']('div');_0x17ff52['innerHTML']=_0x219481,(_0x17ff52['querySelectorAll']('figure.media')['forEach'](_0x382936=>{const _0x58b353=_0x382936['querySelector']('oembed');if(_0x58b353){const _0x124948=_0x58b353['getAttribute']('url');if(_0x124948){const _0x14eecf=_0x3c498b['registry']['getMediaViewElement'](new _0x4121d4(_0x516189['editing']['view']['document']),_0x124948,{'elementName':'','renderForEditingView':!0x0}),_0x397cbc=document['createElement']('div');_0x397cbc['classList']['add']('ck-media__wrapper'),_0x14eecf['render'](_0x397cbc,_0x516189['editing']['view']['domConverter']),_0x58b353['replaceWith'](_0x397cbc);}}}),_0x5a588d[_0xbb639e]=_0x17ff52['innerHTML']);}return _0x5a588d;}['_sortRoots'](_0x147427){if(!function(_0x2e357f){return void 0x0!==_0x2e357f['getRootsAttributes'];}(_0x147427))return _0x147427['model']['document']['getRootNames']();const _0x3b6e31=[],_0x3a8f4a=new Map();for(const _0x2fb408 of _0x147427['model']['document']['getRootNames']()){const _0x341bcb=_0x147427['editing']['view']['getDomRoot'](_0x2fb408)['getClientRects']()['item'](0x0);_0x3b6e31['push'](_0x2fb408),_0x3a8f4a['set'](_0x2fb408,_0x341bcb);}return _0x3b6e31['sort']((_0x408fd2,_0x228158)=>{const _0x198d27=_0x3a8f4a['get'](_0x408fd2),_0x30758e=_0x3a8f4a['get'](_0x228158);return _0x198d27['y']-_0x30758e['y']||_0x198d27['x']-_0x30758e['x'];}),_0x3b6e31;}}class te extends _0x5c587b{static get['requires'](){return[T,_0xcefc8d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xed70eb){super(_0xed70eb),_0xed70eb['commands']['add']('previewFinalContent',new re(this['editor'])),_0xed70eb['config']['define']('trackChanges.preview.renderFunction',(_0x2f2adb,_0x3da15a)=>{for(const _0x47d701 of _0x3da15a)_0x2f2adb['appendChild'](_0x47d701);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x32b6b5,Plugin as _0x340863,PendingActions as _0x57cef0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x40045b,ObservableMixin as _0x46dd88,uid as _0xce776c,priorities as _0x1695e6,insertToPriorityArray as _0x1eaed6,toArray as _0xa4e2e,logWarning as _0x528bc4,getEnvKeystrokeText as _0x1c110e,FocusTracker as _0x311895,KeystrokeHandler as _0x4f0fab,Collection as _0x1058f8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1e9063,IconCancel as _0x518775,IconTrackChanges as _0x13a5b0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1fdbb9,View as _0x3b701c,ViewCollection as _0x39ea4f,FocusCycler as _0x4a65cd,ViewModel as _0x36dc75,createDropdown as _0x371626,SplitButtonView as _0x52d14e,addListToDropdown as _0x1ef00b,MenuBarMenuView as _0x4b745c,MenuBarMenuListView as _0x55c13b,ListSeparatorView as _0x3bcb16,MenuBarMenuListItemView as _0x37d0b4,MenuBarMenuListItemButtonView as _0x2525f1,BodyCollection as _0x217904,Dialog as _0x41eb44}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xbdd14b,hashObject as _0x7d0f3d,surroundingMarkersDetector as _0x283126,FOCUS_ANNOTATION_KEYSTROKE as _0x18a943,AriaDescriptionView as _0x1669f4,setupThreadKeyboardNavigation as _0x11f5e2,trimHtml as ti,UserView as _0x2a7f99,LateFocusButtonView as _0x1e290a,getDateTimeFormatter as _0x2dcd84,getAllMarkersDomElementsSorted as _0x355fa4,sanitizeEditorConfig as _0x19edc8}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x28b207,LiveRange as _0x44e392,LivePosition as _0x5bdd0b,DowncastWriter as _0x33faa8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1c9741,toWidget as _0x38edb5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x30d83f,set as _0xddc687,isEqual as _0xb1d1f6,unset as _0x20da98,omit as Ft}from'es-toolkit/compat';import{Delete as _0x54b360,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x14d299}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x469236}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x32b6b5{['_enabledCommands'];constructor(_0x98efd1,_0x2320cf){super(_0x98efd1),this['_enabledCommands']=_0x2320cf,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 _0x54b148 of this['editor']['commands']['commands']())_0x54b148['affectsData']&&!this['_enabledCommands']['has'](_0x54b148)&&_0x54b148['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x22f2b8 of this['editor']['commands']['commands']())_0x22f2b8['affectsData']&&!this['_enabledCommands']['has'](_0x22f2b8)&&_0x22f2b8['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x32b6b5{['_suggestions'];constructor(_0x241f74,_0x2f5f4c){super(_0x241f74),this['_suggestions']=_0x2f5f4c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2b3284){const _0x362edc=this['_suggestions']['get'](_0x2b3284);if(!_0x362edc)throw new _0x40045b('track-changes-accept-suggestion-not-found',this);const _0x366219=_0x362edc['getRanges']();this['editor']['model']['canEditAt'](_0x366219)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x362edc);}}class O extends _0x32b6b5{['_suggestions'];constructor(_0xd3a26f,_0x14d00c){super(_0xd3a26f),this['_suggestions']=_0x14d00c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1f24df){const _0x366dfd=this['_suggestions']['get'](_0x1f24df);if(!_0x366dfd)throw new _0x40045b('track-changes-discard-suggestion-not-found',this);const _0x361ab1=_0x366dfd['getRanges']();this['editor']['model']['canEditAt'](_0x361ab1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x366dfd);}}function ls(_0x62fa0f,_0xc07b6b){let _0x4db4db='';return _0x4db4db+=_0x62fa0f['split']('*')['map']((_0x27eac9,_0x5118c1)=>_0x5118c1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x27eac9)+'</span>':nn(_0x27eac9))['join'](''),_0xc07b6b&&(_0x4db4db+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xc07b6b['value']+'\x22\x20title=\x22'+_0xc07b6b['title']+'\x22></span>'),_0x4db4db;}function nn(_0x40882f){const _0x1ddc74=document['createElement']('span');return _0x1ddc74['innerText']=_0x40882f,_0x1ddc74['innerHTML'];}function ts(_0x118fc3){return _0x118fc3['sort']((_0x2951a0,_0x1209db)=>'deletion'==_0x2951a0['type']&&'deletion'!=_0x1209db['type']?-0x1:'deletion'!=_0x2951a0['type']&&'deletion'==_0x1209db['type']?0x1:0x0);}function to(_0x5d626e,_0x433de1){let _0x22fa82,_0x5def6b=0x0;const _0x1f88b0=[],_0x3ee449=_0x433de1['schema'];for(;_0x5def6b<_0x5d626e['length'];){const _0x371a52=_0x5d626e[_0x5def6b],_0x502c43=_0x5d626e[_0x5def6b+0x1];_0x22fa82||(_0x22fa82=_0x433de1['createPositionBefore'](_0x371a52)),on(_0x433de1,_0x371a52,_0x502c43)||(_0x1f88b0['push'](_0x433de1['createRange'](_0x22fa82,_0x3ee449['isObject'](_0x371a52)?_0x433de1['createPositionAfter'](_0x371a52):_0x433de1['createPositionAt'](_0x371a52,'end'))),_0x22fa82=null),_0x5def6b++;}return _0x1f88b0;}function on(_0x1ff5a9,_0x4bcc0d,_0x3e9855){if(!_0x3e9855)return!0x1;const _0x147d65=_0x1ff5a9['createPositionAfter'](_0x4bcc0d),_0x1fa437=_0x1ff5a9['createPositionBefore'](_0x3e9855);return _0x147d65['isTouching'](_0x1fa437);}function rs(_0x3238ea,_0x4cc371,_0xa2c907){for(;_0xa2c907['length'];){const _0x422bdb=_0xa2c907['splice'](0x0,0x64);_0x3238ea['change'](()=>{for(const _0x4740b5 of _0x422bdb)_0x4740b5['isInContent']&&_0x4cc371['execute'](_0x4740b5['id']);});}}class R extends _0x32b6b5{['_command'];['_suggestions'];constructor(_0x358ba6,_0x13a87b,_0x5320c5){super(_0x358ba6),this['_command']=_0x13a87b,this['_suggestions']=_0x5320c5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x460d8a=Array['from'](this['_suggestions']['values']())['some'](_0x52de1c=>_0x52de1c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x460d8a;}['execute'](){const _0x259d6c=ts(Array['from'](this['_suggestions']['values']()));for(const _0x255328 of _0x259d6c){const _0x5e1d7f=_0x255328['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5e1d7f))return;}rs(this['editor']['model'],this['_command'],_0x259d6c);}}class E extends _0x32b6b5{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x602e0a,_0x453497,_0x11c30e){super(_0x602e0a),this['_command']=_0x453497,this['_suggestions']=_0x11c30e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x8a7455=this['editor']['model']['document']['selection'],_0x1145aa=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2e4aca,_0x1ebafa){const _0x562044=Array['from'](_0x2e4aca['getRanges']()),_0x424bd6=new Set();for(const _0x418da7 of _0x1ebafa)if(_0x418da7['isInContent']){for(const _0x54cb4d of _0x562044)for(const _0x50160c of _0x418da7['getRanges']())(_0x54cb4d['isIntersecting'](_0x50160c)||_0x2e4aca['isCollapsed']&&!_0x418da7['isMultiRange']&&_0x418da7['next']&&_0x50160c['end']['isTouching'](_0x54cb4d['start']))&&_0x424bd6['add'](_0x418da7);}return _0x424bd6;}(_0x8a7455,_0x1145aa),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x42093f=ts(Array['from'](this['_selectedSuggestions']));for(const _0x42a7fc of _0x42093f){const _0x426cb8=_0x42a7fc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x426cb8))return;}rs(this['editor']['model'],this['_command'],_0x42093f);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x46dd88(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x68e50d,_0x55b871){super(),this['id']=_0x55b871['id'],this['type']=_0x55b871['type'],this['subType']=_0x55b871['subType']||null,this['author']=_0x55b871['author'],this['creator']=_0x55b871['creator']||_0x55b871['author'],this['isExternal']=Boolean(_0x55b871['attributes']&&_0x55b871['attributes']['@external']),this['data']=null,this['_model']=_0x68e50d,this['_onAccept']=_0x55b871['onAccept'],this['_onDiscard']=_0x55b871['onDiscard'],this['_onAttributesChange']=_0x55b871['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x55b871['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 _0x1fbbc0=this;for(;_0x1fbbc0['previous'];)_0x1fbbc0=_0x1fbbc0['previous'];return _0x1fbbc0;}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'](_0x2166c0){this['_markerNames']['add'](_0x2166c0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x255e00=>this['_model']['markers']['get'](_0x255e00))['filter'](_0x34221b=>_0x34221b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4661f7=>{for(const _0x4897b6 of this['getMarkers']())_0x4661f7['removeMarker'](_0x4897b6);}),this['_markerNames']['clear']();}['removeMarker'](_0xbda1e0){this['_model']['change'](_0x3ae9df=>{_0x3ae9df['removeMarker'](_0xbda1e0);}),this['_markerNames']['delete'](_0xbda1e0);}['addRange'](_0x42cc75){const _0x58dbb1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x58dbb1),this['_model']['change'](_0xa7cf08=>{_0xa7cf08['addMarker'](_0x58dbb1,{'range':_0x42cc75,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x467920){for(const _0x11bb2f of this['getRanges']())if(_0x11bb2f['isIntersecting'](_0x467920))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x152540=>_0x152540['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5a773d,_0x103f2e)=>[..._0x5a773d,..._0x103f2e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x53de24=this['getRanges']();if(0x1!=_0x53de24['length'])return null;const _0x182ed5=_0x53de24[0x0],_0x1b13e3=_0x182ed5['start']['nodeAfter'],_0x1e46ec=_0x182ed5['end']['nodeBefore'];return _0x1b13e3 instanceof _0x28b207?_0x1b13e3!=_0x1e46ec?null:_0x1b13e3: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 _0x152f44=[];let _0x4e4f3a=this['head'];for(;_0x4e4f3a;)_0x152f44['push'](_0x4e4f3a),_0x4e4f3a=_0x4e4f3a['next'];return _0x152f44;}['setAttribute'](_0x80544a,_0x45adcd){const _0x4603c3=_0x30d83f(this['attributes']);_0xddc687(_0x4603c3,_0x80544a,_0x45adcd),_0xb1d1f6(_0x4603c3,this['attributes'])||(this['attributes']=_0x4603c3,this['_onAttributesChange'](_0x4603c3));}['removeAttribute'](_0x417a67){const _0x1a2ef2=_0x30d83f(this['attributes']);_0x20da98(_0x1a2ef2,_0x417a67),_0xb1d1f6(_0x1a2ef2,this['attributes'])||(this['attributes']=_0x1a2ef2,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 _0xce776c()['substr'](0x1,0x5);}}function c(_0x4f7d43,_0x5318c9,_0x537231){const _0x43c95e=_0x4f7d43['t'],t=_0x4f7d43['t'];switch(_0x5318c9){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x537231);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x537231);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x537231);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x537231);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x537231);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',_0x537231);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x537231);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x537231);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x537231);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x537231);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x537231);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x537231);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x537231);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x537231);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x537231);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x537231);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x537231);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x537231);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x537231);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x537231);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x537231);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x537231);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x537231);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x537231);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x537231);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'},_0x537231);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x537231);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x537231);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x537231);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x537231);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x537231);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x537231);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x537231);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'},_0x537231);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x537231);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x537231);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x537231);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x537231);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'},_0x537231);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x537231);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'},_0x537231);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'},_0x537231);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x537231);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'},_0x537231);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x537231);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'},_0x537231);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x537231);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x537231);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x537231);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x537231);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 _0x43c95e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x537231);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x43c95e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x537231);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x537231);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x537231);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x537231);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x537231);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5318c9;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x512b9b,_0x56cb14){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x512b9b,this['_locale']=_0x56cb14;}['getDescriptions'](_0x492e23){const _0x5245b2=[],_0x5132fd=new Set(),_0x273033=new Set();for(let _0x302e0a=0x0;_0x302e0a<_0x492e23['length'];_0x302e0a++){const _0x410d22=_0x492e23[_0x302e0a];if(!_0x410d22['isInContent'])continue;const _0x4daea1=this['_handleCustomCallbackDescription'](_0x410d22);if(_0x4daea1){if(null!=_0x410d22['subType']){if(_0x5132fd['has'](_0x410d22['subType']))continue;_0x5132fd['add'](_0x410d22['subType']);}_0x5245b2['push'](_0x4daea1);}else{if('attribute'!=_0x410d22['type'])'insertion'!=_0x410d22['type']&&'deletion'!=_0x410d22['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5245b2,_0x410d22,_0x492e23[_0x302e0a+0x1]);else{const _0x3cb9fa=_0x410d22['data']['key'];if(_0x273033['has'](_0x3cb9fa))continue;_0x273033['add'](_0x410d22['data']['key']),_0x3cb9fa==u?this['_handleRenameSuggestionDescription'](_0x5245b2,_0x410d22):this['_handleAttributeSuggestionDescription'](_0x5245b2,_0x410d22);}}}return this['_resolveDescriptionItems'](_0x5245b2);}['registerDescriptionCallback'](_0x53e712){this['_customCallbacks']['push'](_0x53e712);}['registerElementLabel'](_0xcab711,_0x23a891,_0x3f4f12=_0x1695e6['normal']){'function'==typeof _0xcab711?_0x1eaed6(this['_itemLabelsCallbacks'],{'matchingCallback':_0xcab711,'label':_0x23a891,'priority':_0x3f4f12}):this['_itemLabels']['set'](_0xcab711,_0x23a891);}['registerAttributeLabel'](_0x360623,_0x793f1a){this['_attributeLabels']['set'](_0x360623,_0x793f1a);}['getItemLabel'](_0x557dac,_0x49f14b=0x1){let _0x448efb;for(const _0x258396 of this['_itemLabelsCallbacks'])if(_0x258396['matchingCallback'](_0x557dac)){_0x448efb=_0x258396['label'];break;}return _0x448efb||(_0x448efb=this['_itemLabels']['get'](_0x557dac['name'])),_0x448efb?_0x448efb(_0x49f14b):0x1!==_0x49f14b?_0x49f14b+'\x20'+_0x557dac['name']+'s':''+_0x557dac['name'];}['_addDescriptionItems'](_0x2ab3e6,_0x17d0e0){const _0xb6e5b7=_0x17d0e0['getFirstRange']()['getWalker'](),_0x4bd033='insertion'==_0x17d0e0['type']?'add':'remove';for(const _0x3cc2b6 of _0xb6e5b7){const _0x48da89=_0x3cc2b6['item'],_0x35b487=_0x2ab3e6[_0x2ab3e6['length']-0x1];if(_0x48da89['is']('$textProxy'))_0x35b487&&_0x35b487['type']['indexOf']('Container')>-0x1&&_0x2ab3e6['pop'](),_0x35b487&&'text'==_0x35b487['type']?_0x35b487[_0x4bd033]+=_0x48da89['data']:_0x2ab3e6['push']({'type':'text','add':'add'==_0x4bd033?_0x48da89['data']:'','remove':'remove'==_0x4bd033?_0x48da89['data']:''});else{if(this['_schema']['isObject'](_0x48da89)){const _0x467225=_0x48da89;if(_0x35b487&&_0x35b487['type']['indexOf']('Container')>-0x1&&_0x2ab3e6['pop'](),'elementEnd'==_0x3cc2b6['type'])continue;_0x35b487&&_0x35b487['type']==_0x4bd033+'Object'&&_0x35b487['element']['name']==_0x467225['name']?_0x35b487['quantity']++:_0x2ab3e6['push']({'type':_0x4bd033+'Object','element':_0x467225,'quantity':0x1}),_0xb6e5b7['skip'](_0x543b8f=>!('elementEnd'==_0x543b8f['type']&&_0x543b8f['item']==_0x48da89));}else{if(this['_schema']['checkChild'](_0x48da89,'$text')||_0x48da89['is']('element','softBreak')){const _0x1a507b=_0x48da89;if('add'==_0x4bd033&&'elementStart'==_0x3cc2b6['type']||'remove'==_0x4bd033&&'elementEnd'==_0x3cc2b6['type'])continue;if(_0x35b487&&-0x1==_0x35b487['type']['indexOf']('Container')){'text'==_0x35b487['type']&&(_0x35b487[_0x4bd033]+='\x0a');continue;}let _0x517639;if(_0x517639='add'==_0x4bd033?_0x1a507b['nextSibling']&&!this['_schema']['isObject'](_0x1a507b['nextSibling'])?_0x1a507b['nextSibling']:null:_0x1a507b['previousSibling']&&!this['_schema']['isObject'](_0x1a507b['previousSibling'])?_0x1a507b['previousSibling']:null,_0x1a507b['isEmpty']||_0x517639&&_0x517639['isEmpty']){const _0x453d94=_0x517639&&_0x517639['isEmpty']?_0x517639:_0x1a507b;_0x35b487&&_0x35b487['type']==_0x4bd033+'EmptyContainer'&&_0x35b487['element']['name']==_0x453d94['name']?_0x35b487['quantity']++:_0x2ab3e6['push']({'type':_0x4bd033+'EmptyContainer','element':_0x453d94,'quantity':0x1});}else _0x2ab3e6['push']({'type':_0x4bd033+'Container','element':_0x1a507b});}}}}}['_resolveDescriptionItems'](_0x25e033){const _0x10c67e=this['_locale'],_0x3ab980=[],_0x5c8a7c=[],_0x2bb897=[];for(const _0x3faea2 of _0x25e033)switch(_0x3faea2['type']){case'text':if(_0x3faea2['add']=_0x3faea2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3faea2['remove']=_0x3faea2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3faea2['add']&&''!=_0x3faea2['remove']){_0x3ab980['push']({'type':'replace','content':c(_0x10c67e,'REPLACE_TEXT',['\x22'+_0x3faea2['remove']+'\x22','\x22'+_0x3faea2['add']+'\x22'])});continue;}if(null!=_0x3faea2['add']['match'](/^ +$/)){_0x3ab980['push']({'type':'insertion','content':c(_0x10c67e,'*Insert:*\x20%0',c(_0x10c67e,'ELEMENT_SPACE',_0x3faea2['add']['length']))});continue;}if(null!=_0x3faea2['remove']['match'](/^ +$/)){_0x3ab980['push']({'type':'deletion','content':c(_0x10c67e,'*Remove:*\x20%0',c(_0x10c67e,'ELEMENT_SPACE',_0x3faea2['remove']['length']))});continue;}if(''!=_0x3faea2['add']){_0x3ab980['push']({'type':'insertion','content':c(_0x10c67e,'*Insert:*\x20%0','\x22'+_0x3faea2['add']+'\x22')});continue;}_0x3ab980['push']({'type':'deletion','content':c(_0x10c67e,'*Remove:*\x20%0','\x22'+_0x3faea2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3ab980['push']({'type':'insertion','content':c(_0x10c67e,'*Insert:*\x20%0',this['getItemLabel'](_0x3faea2['element'],_0x3faea2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3ab980['push']({'type':'deletion','content':c(_0x10c67e,'*Remove:*\x20%0',this['getItemLabel'](_0x3faea2['element'],_0x3faea2['quantity']))});continue;case'addContainer':_0x3ab980['push']({'type':'insertion','content':c(_0x10c67e,'*Split:*\x20%0',this['getItemLabel'](_0x3faea2['element'],_0x3faea2['quantity']))});continue;case'removeContainer':_0x3ab980['push']({'type':'deletion','content':c(_0x10c67e,'*Merge:*\x20%0',this['getItemLabel'](_0x3faea2['element'],_0x3faea2['quantity']))});continue;case'addFormat':_0x5c8a7c['push'](_0x3faea2['key']);continue;case'removeFormat':_0x2bb897['push'](_0x3faea2['key']);continue;default:_0x3ab980['push'](_0x3faea2);}if(_0x5c8a7c['length']){const _0x49dcfb=_0x5c8a7c['map'](_0x1f5075=>this['_attributeLabels']['has'](_0x1f5075)?this['_attributeLabels']['get'](_0x1f5075):_0x1f5075)['join'](',\x20');_0x3ab980['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x49dcfb)});}if(_0x2bb897['length']){const _0x2b4cd8=_0x2bb897['map'](_0x4f94eb=>this['_attributeLabels']['has'](_0x4f94eb)?this['_attributeLabels']['get'](_0x4f94eb):_0x4f94eb)['join'](',\x20');_0x3ab980['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x2b4cd8)});}return _0x3ab980;}['_handleCustomCallbackDescription'](_0x35954b){for(const _0x5944ac of this['_customCallbacks']){const _0x1d177c=_0x5944ac(_0x35954b);if(_0x1d177c&&'type'in _0x1d177c)return _0x1d177c;}}['_handleAttributeSuggestionDescription'](_0x15162f,_0xc1e9e6){const _0xd2c3a9=_0xc1e9e6['data'],_0x55f5f1=void 0x0===_0xd2c3a9['newValue']?'removeFormat':'addFormat';_0x15162f['push']({'type':_0x55f5f1,'key':_0xd2c3a9['key']});}['_handleRenameSuggestionDescription'](_0x49ac05,_0x3b732b){_0x49ac05['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3b732b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x52e69e,_0x1b07f0,_0x243e03){if(this['_addDescriptionItems'](_0x52e69e,_0x1b07f0),_0x243e03&&_0x243e03['getFirstRange']()&&!_0x1b07f0['getFirstRange']()['end']['isEqual'](_0x243e03['getFirstRange']()['start'])){const _0x52dee7=_0x52e69e[_0x52e69e['length']-0x1],_0x11ac1f='insertion'==_0x1b07f0['type']?'add':'remove';_0x52dee7&&'text'==_0x52dee7['type']&&(_0x52dee7[_0x11ac1f]+='\x0a');}}}class U extends _0x340863{['afterInit'](){const _0x31a434=this['editor'],_0x4a5cc2=_0x31a434['plugins']['get']('TrackChangesEditing');_0x31a434['commands']['get']('showAIAssistant')&&_0x4a5cc2['enableCommand']('showAIAssistant');}}class V extends _0x340863{['afterInit'](){const _0x197534=this['editor'],_0x2141bf=_0x197534['locale'];if(!_0x197534['plugins']['has']('AlignmentEditing'))return;const _0x4b7629=_0x197534['plugins']['get']('TrackChangesEditing');_0x4b7629['enableDefaultAttributesIntegration']('alignment'),_0x4b7629['registerBlockAttribute']('alignment'),_0x4b7629['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x2141bf,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb8777f=this['editor'],_0x28873d=_0xb8777f['locale'];_0xb8777f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40105d=>{if('formatBlock'!=_0x40105d['type'])return;const {data:_0x2acd58}=_0x40105d;if(_0x2acd58&&'alignment'==_0x2acd58['commandName']){const _0x47f340=_0x2acd58['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x28873d,'*Format:*\x20%0',function(_0x19e0c9){switch(_0x19e0c9){case'left':return c(_0x28873d,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x28873d,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x28873d,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x28873d,'FORMAT_JUSTIFY_TEXT');}}(_0x47f340))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x340863{['afterInit'](){const _0x34e1b0=this['editor'],_0x5d4a27=_0x34e1b0['plugins']['get']('TrackChangesEditing'),_0xb9fcab=_0x34e1b0['locale'];for(const _0x3c4ddf of Zt){if(!_0x34e1b0['plugins']['has'](_0x3c4ddf))continue;const _0xc5476e=_0x3c4ddf['slice'](0x0,-0x7)['toLowerCase'](),_0x41aba8='FORMAT_'+_0xc5476e['toUpperCase']();_0x5d4a27['enableDefaultAttributesIntegration'](_0xc5476e),_0x5d4a27['registerInlineAttribute'](_0xc5476e),_0x5d4a27['descriptionFactory']['registerAttributeLabel'](_0xc5476e,c(_0xb9fcab,_0x41aba8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58496c=this['editor'],_0x297a95=_0x58496c['locale'],_0x227523=_0x58496c['plugins']['get']('TrackChangesEditing');function _0x54524b(_0x1a56c1,_0x54a1b5){_0x227523['descriptionFactory']['registerDescriptionCallback'](_0x26f876=>{if('formatInline'!=_0x26f876['type'])return;const {data:_0x1586ec}=_0x26f876;return _0x1586ec&&_0x1586ec['commandName']===_0x1a56c1?_0x1586ec['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x297a95,'*Format:*\x20%0',_0x54a1b5)}:{'type':'format','content':c(_0x297a95,'*Remove\x20format:*\x20%0',_0x54a1b5)}:void 0x0;});}_0x54524b('bold',c(_0x297a95,'FORMAT_BOLD')),_0x54524b('italic',c(_0x297a95,'FORMAT_ITALIC')),_0x54524b('underline',c(_0x297a95,'FORMAT_UNDERLINE')),_0x54524b('code',c(_0x297a95,'FORMAT_CODE')),_0x54524b('strikethrough',c(_0x297a95,'FORMAT_STRIKETHROUGH')),_0x54524b('subscript',c(_0x297a95,'FORMAT_SUBSCRIPT')),_0x54524b('superscript',c(_0x297a95,'FORMAT_SUPERSCRIPT'));}}class G extends _0x340863{['afterInit'](){const _0x4726c7=this['editor'],_0x59e3b7=_0x4726c7['locale'];if(!_0x4726c7['plugins']['has']('BlockQuoteEditing'))return;const _0x102729=_0x4726c7['plugins']['get']('TrackChangesEditing'),_0x16220d=this['editor']['commands']['get']('blockQuote');_0x102729['enableCommand']('blockQuote',(_0x34609f,_0x308de8={})=>{const _0x1bd849=this['editor']['model']['document']['selection'],_0x23e6ab=_0x308de8&&void 0x0!==_0x308de8['forceValue']?_0x308de8['forceValue']:!_0x16220d['value'];let _0x1b702c=[];if(_0x23e6ab){const _0x400c00=Array['from'](_0x1bd849['getSelectedBlocks']())['filter'](_0x466c05=>oo(_0x466c05)||function(_0x319998,_0x264484){const _0x26e1f8=_0x264484['checkChild'](_0x319998['parent'],'blockQuote'),_0x1f62ea=_0x264484['checkChild'](['$root','blockQuote'],_0x319998);return _0x26e1f8&&_0x1f62ea;}(_0x466c05,this['editor']['model']['schema']));_0x1b702c=to(_0x400c00,_0x4726c7['model']);}else{const _0x281376=Array['from'](_0x1bd849['getSelectedBlocks']())['filter'](_0x213ea4=>oo(_0x213ea4));_0x1b702c=to(_0x281376,_0x4726c7['model']);}_0x4726c7['model']['change'](()=>{for(const _0x166ada of _0x1b702c)_0x102729['markBlockFormat'](_0x166ada,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x23e6ab}]});});}),_0x102729['descriptionFactory']['registerDescriptionCallback'](_0x41570e=>{const {data:_0x2a3610}=_0x41570e;if(_0x2a3610&&'blockQuote'==_0x2a3610['commandName']){const _0x201d15=c(_0x59e3b7,'ELEMENT_BLOCK_QUOTE');return _0x2a3610['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59e3b7,'*Set\x20format:*\x20%0',_0x201d15)}:{'type':'format','content':c(_0x59e3b7,'*Remove\x20format:*\x20%0',_0x201d15)};}});}}function oo(_0x5850d7){return'blockQuote'==_0x5850d7['parent']['name'];}class L extends _0x340863{['afterInit'](){const _0x345aac=this['editor'],_0x3976f5=_0x345aac['locale'],_0x48da28=_0x345aac['plugins']['get']('TrackChangesEditing');_0x345aac['plugins']['has']('BookmarkEditing')&&(_0x48da28['enableCommand']('insertBookmark'),_0x48da28['enableDefaultAttributesIntegration']('updateBookmark'),_0x48da28['registerBlockAttribute']('bookmarkId'),_0x48da28['descriptionFactory']['registerDescriptionCallback'](_0x205d17=>{if('insertion'!=_0x205d17['type']&&'deletion'!=_0x205d17['type']&&'attribute'!=_0x205d17['type'])return;const _0xfefee5=_0x205d17['getContainedElement']();if(null==_0xfefee5)return;if(!_0xfefee5['is']('element','bookmark'))return;const _0x5b8436=_0xfefee5['getAttribute']('bookmarkId');if('insertion'==_0x205d17['type'])return{'type':'insertion','content':c(_0x3976f5,'*Insert:*\x20%0','\x22'+_0x5b8436+'\x22\x20'+c(_0x3976f5,'ELEMENT_BOOKMARK'))};if('deletion'==_0x205d17['type'])return{'type':'deletion','content':c(_0x3976f5,'*Remove:*\x20%0','\x22'+_0x5b8436+'\x22\x20'+c(_0x3976f5,'ELEMENT_BOOKMARK'))};const {data:_0x1d14e5}=_0x205d17;if(!_0x1d14e5||'bookmarkId'!=_0x1d14e5['key'])return;return{'type':'format','content':c(_0x3976f5,'*Set\x20bookmark:*\x20%0','\x22'+_0x1d14e5['newValue']+'\x22')};}));}}class J extends _0x340863{['afterInit'](){const _0x5c658b=this['editor'];_0x5c658b['plugins']['has']('CaseChange')&&(_0x5c658b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5c658b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5c658b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x340863{['afterInit'](){const _0x8fed05=this['editor'];_0x8fed05['commands']['get']('ckbox')&&_0x8fed05['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x340863{['afterInit'](){const _0x451afa=this['editor'];if(!_0x451afa['plugins']['has']('CodeBlock'))return;const _0x59c691=_0x451afa['plugins']['get']('TrackChangesEditing'),_0x3b053a=_0x451afa['locale'],_0x110066=_0x451afa['config']['get']('codeBlock')['languages'],_0x4eaf84=_0x451afa['commands']['get']('codeBlock');_0x59c691['enableCommand']('indentCodeBlock'),_0x59c691['enableCommand']('outdentCodeBlock'),_0x59c691['enableCommand']('codeBlock',(_0x11f39a,_0x5c2adf={})=>{const _0x324176=_0x451afa['model'],_0x33a98c=_0x451afa['model']['document']['selection'],_0x2ec6ff=_0x5c2adf&&void 0x0!==_0x5c2adf['forceValue']?_0x5c2adf['forceValue']:!_0x4eaf84['value'];let _0x304ff7;_0x5c2adf['language']||(_0x5c2adf['language']=_0x110066[0x0]['language']),_0x304ff7=_0x2ec6ff?Array['from'](_0x33a98c['getSelectedBlocks']())['filter'](_0x5b193c=>eo(_0x5b193c)||function(_0x430a48,_0x2b6adf){if(_0x430a48['is']('rootElement')||_0x2b6adf['isLimit'](_0x430a48))return!0x1;return _0x2b6adf['checkChild'](_0x430a48['parent'],'codeBlock');}(_0x5b193c,_0x324176['schema'])):Array['from'](_0x33a98c['getSelectedBlocks']())['filter'](_0x22a1db=>eo(_0x22a1db));const _0x3edb76=to(_0x304ff7,_0x324176);_0x324176['change'](()=>{for(const _0x558628 of _0x3edb76)_0x59c691['markBlockFormat'](_0x558628,{'commandName':'codeBlock','commandParams':[{..._0x5c2adf,'forceValue':_0x2ec6ff}],'formatGroupId':'blockName'});});}),(_0x59c691['descriptionFactory']['registerElementLabel']('codeBlock',_0x37fe09=>c(_0x3b053a,'ELEMENT_CODE_BLOCK',_0x37fe09)),_0x59c691['descriptionFactory']['registerDescriptionCallback'](_0x3181b0=>{if('formatBlock'!=_0x3181b0['type'])return;const _0x257105=_0x3b053a['t'],{data:_0x51be4e}=_0x3181b0;if(!_0x51be4e||'codeBlock'!=_0x51be4e['commandName'])return;const _0x2146df=_0x51be4e['commandParams'][0x0]['language'],_0x52edbb=_0x257105(_0x110066['find'](_0x5aca6f=>_0x5aca6f['language']===_0x2146df)['label'])['toLowerCase']();return _0x51be4e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3b053a,'*Set\x20format:*\x20%0',c(_0x3b053a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52edbb+')')}:{'type':'format','content':c(_0x3b053a,'*Remove\x20format:*\x20%0',c(_0x3b053a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x190789){return'codeBlock'==_0x190789['name'];}class q extends _0x340863{['afterInit'](){const _0x2b156a=this['editor'];if(!_0x2b156a['plugins']['has']('CommentsEditing'))return;_0x2b156a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x72b549,_0x3a3d23,_0x58d887){const _0x358f8b=[];for(const _0x4e4858 of _0x3a3d23['getItems']())_0x4e4858['hasAttribute'](_0x72b549)&&_0x358f8b['push'](_0x58d887['createRangeOn'](_0x4e4858));return _0x358f8b;}function Fe(_0x54debc,_0x1c09bb,{showActiveMarker:_0x169e63=!0x0}={}){const _0x184473=_0x54debc['plugins']['get']('TrackChangesEditing');return(_0x1cb924,_0xfeb9dc,_0x959cf0)=>{if(!_0x959cf0['consumable']['test'](_0xfeb9dc['markerRange'],_0x1cb924['name']))return;const _0xea94fd=_0xfeb9dc['markerRange']['getWalker'](),_0x526ae6=_0xfeb9dc['markerRange']['start'],_0x3a375b=_0x54debc['model']['schema'];let _0x409111=null,_0x427fa9=null,_0x4a353d=!0x1,_0x2ac6d5=!0x1;for(const _0x4a80ec of _0xea94fd){const _0x130f12=_0x4a80ec['item'];_0x4a353d=_0x4a353d||_0x3a375b['isContent'](_0x130f12);const _0x3bed20=_0x959cf0['mapper']['toViewElement'](_0x130f12);if(_0x3bed20&&_0x3bed20['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a80ec['type']&&(_0x3a375b['isBlock'](_0x130f12)&&!_0x3a375b['isLimit'](_0x130f12)&&(_0x130f12['nextSibling']||_0x526ae6['isAtEnd']?_0x409111&&_0x409111['parent']==_0x130f12||(_0x409111=_0x130f12,_0x32bbfb(_0x4a80ec['previousPosition']),_0x2ac6d5=!0x0):_0x427fa9=_0x427fa9||_0x4a80ec['previousPosition']));}function _0x32bbfb(_0x3f6891){const {id:_0x46692d,authorId:_0x11b9bb}=_0x184473['_splitMarkerName'](_0xfeb9dc['markerName']),_0x54dfc4=_0x959cf0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c09bb,'data-suggestion':_0x46692d,'data-author-id':_0x11b9bb}),_0x50258a=_0x959cf0['mapper']['toViewPosition'](_0x3f6891);_0x169e63&&_0x184473['activeMarkers']['includes'](_0xfeb9dc['markerName'])&&_0x959cf0['writer']['addClass']('ck-suggestion-marker--active',_0x54dfc4),_0x959cf0['writer']['insert'](_0x50258a,_0x54dfc4),_0x959cf0['mapper']['bindElementToMarker'](_0x54dfc4,_0xfeb9dc['markerName']);}_0x4a353d||_0x2ac6d5||!_0x427fa9||_0x32bbfb(_0x427fa9);};}class z extends _0x340863{static get['requires'](){return[_0x54b360];}['init'](){const _0xb30f2=this['editor'],_0x42f83f=_0xb30f2['plugins']['get']('TrackChangesEditing');_0x42f83f['enableCommand']('delete');const _0x18460d=_0xb30f2['commands']['get']('deleteForward');_0x42f83f['enableCommand']('deleteForward',(_0x507808,_0x35295c={})=>{const _0x455aa2=_0xb30f2['model']['createSelection'](_0xb30f2['model']['document']['selection']);_0x455aa2['isCollapsed']&&_0xb30f2['model']['modifySelection'](_0x455aa2,{'direction':'forward','unit':_0x35295c['unit']});const _0x579dc8=_0x455aa2['getFirstRange'](),_0x4ef8b5=_0x44e392['fromRange'](_0x579dc8);let _0x3edc63;_0x507808(_0x35295c),_0x3edc63='$graveyard'==_0x4ef8b5['root']['rootName']?_0xb30f2['model']['createRange'](_0x579dc8['start']):_0xb30f2['model']['createRange'](_0x4ef8b5['start'],_0x4ef8b5['end']),_0x4ef8b5['detach'](),_0xb30f2['model']['enqueueChange'](_0x18460d['buffer']['batch'],_0x4d666f=>{_0x18460d['buffer']['lock'](),_0x4d666f['setSelection'](_0x4d666f['createRange'](_0x3edc63['end'])),_0x18460d['buffer']['unlock']();});}),_0xb30f2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0xb30f2,'merge'),{'priority':'high'}),_0xb30f2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x592a1d,_0x5dc071,_0x3939fc)=>{_0x3939fc['options']['showSuggestionHighlights']&&Fe(_0xb30f2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x592a1d,_0x5dc071,_0x3939fc);},{'priority':'high'}),_0xb30f2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5d996b,_0x2c4412,_0xae1410)=>{const _0x59b09d=_0xae1410['mapper']['markerNameToElements'](_0x2c4412['markerName']);if(_0x59b09d){for(const _0x111666 of _0x59b09d)_0x111666['is']('uiElement')&&(_0xae1410['mapper']['unbindElementFromMarkerName'](_0x111666,_0x2c4412['markerName']),_0xae1410['writer']['remove'](_0x111666));}},{'priority':'high'});}}class W extends _0x340863{['afterInit'](){const _0x1c4082=this['editor'];if(!_0x1c4082['plugins']['has']('ListEditing'))return;const _0x3c3aa5=_0x1c4082['locale'],_0x25f7d1=_0x1c4082['plugins']['get']('TrackChangesEditing'),_0x2c1538=_0x1c4082['plugins']['has']('TodoListEditing'),_0x40ee12=!!_0x1c4082['config']['get']('list.multiBlock');function _0x15bcac(_0x89e091){return{'type':'format','content':''+c(_0x3c3aa5,'*Set\x20format:*\x20%0',_0x89e091)};}function _0xe2dc93(_0x17834b){return{'type':'format','content':''+c(_0x3c3aa5,'*Remove\x20format:*\x20%0',_0x17834b)};}_0x25f7d1['enableDefaultAttributesIntegration']('numberedList'),_0x25f7d1['enableDefaultAttributesIntegration']('bulletedList'),_0x25f7d1['enableDefaultAttributesIntegration']('customNumberedList'),_0x25f7d1['enableDefaultAttributesIntegration']('customBulletedList'),_0x25f7d1['enableDefaultAttributesIntegration']('indentList'),_0x25f7d1['enableDefaultAttributesIntegration']('outdentList'),_0x25f7d1['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x25f7d1['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x25f7d1['registerBlockAttribute']('listItemId'),_0x25f7d1['registerBlockAttribute']('listType'),_0x25f7d1['registerBlockAttribute']('listIndent'),_0x40ee12&&(_0x25f7d1['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x25f7d1['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2c1538&&(_0x25f7d1['enableDefaultAttributesIntegration']('todoList'),_0x25f7d1['enableDefaultAttributesIntegration']('checkTodoList'),_0x25f7d1['registerBlockAttribute']('todoListChecked'),_0x25f7d1['descriptionFactory']['registerDescriptionCallback'](_0x4bb5b9=>{const {data:_0x168d90}=_0x4bb5b9;if(_0x168d90&&'todoListChecked'==_0x168d90['key'])return{'type':'format','content':_0x168d90['newValue']?c(_0x3c3aa5,'*Check\x20item*'):c(_0x3c3aa5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x32c685=>{if(_0x32c685['batch']['isUndo'])return!0x1;let _0xb44923=!0x1;const _0x3f1a8b=_0x25f7d1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x319baf=>'todoListChecked'===_0x25f7d1['_getAttributeKey'](_0x319baf));for(const _0x4ee053 of _0x3f1a8b){'todo'!=_0x4ee053['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x25f7d1['_findSuggestions'](_0x4ee053['getFirstRange'](),'attribute')['find'](_0x506fae=>'listType'===_0x25f7d1['_getAttributeKey'](_0x506fae['suggestion']))||(_0x32c685['removeMarker'](_0x4ee053['getFirstMarker']()),_0xb44923=!0x0));}return _0xb44923;})),_0x25f7d1['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x3c3aa5,'FORMAT_INDENT'));const _0x525c90={'type':'format','content':''};_0x25f7d1['descriptionFactory']['registerDescriptionCallback'](_0x2c49ae=>{const {data:_0x5d217d}=_0x2c49ae;if(!_0x5d217d||'listType'!=_0x5d217d['key'])return;let _0x576b01=_0x2c49ae['head'];for(;_0x576b01;){if(_0x576b01['data']&&(('listStyle'==_0x576b01['data']['key']||'listMarkerStyle'==_0x576b01['data']['key'])&&(_0x576b01['data']['newValue']&&'default'!=_0x576b01['data']['newValue']||'default'!=_0x576b01['data']['oldValue']&&!_0x5d217d['newValue'])||!_0x40ee12&&_0x576b01['data']['key']==u))return _0x525c90;_0x576b01=_0x576b01['next'];}if(null==_0x5d217d['newValue'])switch(_0x5d217d['oldValue']){case'bulleted':return _0xe2dc93(c(_0x3c3aa5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe2dc93(c(_0x3c3aa5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe2dc93(c(_0x3c3aa5,'ELEMENT_TODO_LIST'));}switch(_0x5d217d['newValue']){case'bulleted':return _0x15bcac(c(_0x3c3aa5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15bcac(c(_0x3c3aa5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15bcac(c(_0x3c3aa5,'ELEMENT_TODO_LIST'));}}),_0x25f7d1['descriptionFactory']['registerDescriptionCallback'](_0x68be72=>{const {data:_0x272021}=_0x68be72;if(_0x272021&&'listIndent'==_0x272021['key'])return null==_0x272021['newValue']||null==_0x272021['oldValue']&&0x0==_0x272021['newValue']?_0x525c90:void 0x0;}),_0x25f7d1['descriptionFactory']['registerDescriptionCallback'](_0x448b11=>{if('attribute'!=_0x448b11['type'])return;const {data:_0x2fadfe}=_0x448b11;if(!_0x2fadfe||'listItemId'!=_0x2fadfe['key'])return;const _0x2a1de1=Te(_0x448b11);return'newValue'==_0x2a1de1?{'type':'format','content':c(_0x3c3aa5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2a1de1?{'type':'format','content':c(_0x3c3aa5,'*Split:*\x20list\x20item')}:_0x525c90;}),_0x1c4082['model']['document']['registerPostFixer'](_0x135dc8=>this['listItemIdFixer'](_0x135dc8)),_0x1c4082['model']['document']['registerPostFixer'](_0x3777a6=>this['noTrackChangesFixer'](_0x3777a6)),_0x1c4082['model']['document']['on']('change:data',(_0x564b5c,_0x8fc891)=>{if(_0x8fc891['isUndo']||!_0x8fc891['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x573997){if(_0x573997['batch']['isUndo']||!_0x573997['batch']['isLocal'])return!0x1;let _0x1d594b=!0x1;const _0x540f9e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1eca94=>_0x1eca94['data']&&'listItemId'==_0x1eca94['data']['key'])['filter'](_0x4034b8=>_0x4034b8['data']['newValue']&&_0x4034b8['data']['oldValue']);for(const _0x163f0d of _0x540f9e)Te(_0x163f0d)||(_0x573997['removeMarker'](_0x163f0d['getFirstMarker']()),_0x1d594b=!0x0);return _0x1d594b;}['noTrackChangesFixer'](_0x78701){if(_0x78701['batch']['isUndo']||!_0x78701['batch']['isLocal'])return!0x1;const _0x12570e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x12570e['trackChangesCommand']['value'])return!0x1;let _0x8bdad4=!0x1;const _0x132fd0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1b12ce=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1769ed=>'attribute'==_0x1769ed['type'])['filter'](_0x328492=>_0x132fd0['includes'](_0x328492['attributeKey']));if(0x0==_0x1b12ce['length'])return _0x8bdad4;for(const _0x54da44 of _0x1b12ce){const _0x5be4ba=_0x12570e['_findSuggestions'](_0x54da44['range'],'attribute')['filter'](_0x4736d6=>!_0x4736d6['meta']['isNextTo'])['map'](_0x35d80e=>_0x35d80e['suggestion'])['filter'](_0xe381fb=>{const _0x5cdbfa=_0x12570e['_getAttributeKey'](_0xe381fb);return _0x132fd0['includes'](_0x5cdbfa);});if(_0x5be4ba['length']){for(const _0xe74480 of _0x5be4ba)_0x78701['removeMarker'](_0xe74480['getFirstMarker']());_0x8bdad4=!0x0;}}return _0x8bdad4;}['assureChains'](){const _0x46e60b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x78ef35=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4e0b72;const _0x147c39=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2e1de6=>{if(_0x2e1de6['data']['oldRange']||!_0x2e1de6['data']['newRange'])return null;if(!_0x2e1de6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x38c4f8}=_0x46e60b['_splitMarkerName'](_0x2e1de6['name']);if(!_0x46e60b['hasSuggestion'](_0x38c4f8))return null;const _0x2408ba=_0x46e60b['getSuggestion'](_0x38c4f8);return _0x78ef35['includes'](_0x2408ba['data']['key']);})['map'](_0x435350=>{const {id:_0x4a47a9}=_0x46e60b['_splitMarkerName'](_0x435350['name']),_0x43f38d=_0x46e60b['getSuggestion'](_0x4a47a9);return _0x4e0b72=_0x43f38d['attributes']['groupId'],_0x43f38d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x147c39['size'])return;const _0x5c86c5=_0x46e60b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6e47b5=>'attribute'==_0x6e47b5['type']&&_0x6e47b5['data']&&_0x78ef35['includes'](_0x6e47b5['data']['key'])&&_0x6e47b5['attributes']['groupId']!=_0x4e0b72)['map'](_0x56530e=>({'listItem':_0x56530e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x56530e['attributes']['groupId']})),_0x5bb4c5=new Set();for(const {groupId:_0x3ad115,listItem:_0x57dc76}of _0x5c86c5)_0x147c39['has'](_0x57dc76)&&_0x5bb4c5['add'](_0x3ad115);for(const _0x3c333b of _0x46e60b['getSuggestions']())_0x5bb4c5['has'](_0x3c333b['attributes']['groupId'])&&_0x3c333b['setAttribute']('groupId',_0x4e0b72);}['_supportLegacySuggestions'](){const _0x24580b=this['editor'],_0x34f343=_0x24580b['locale'],_0x4dd05f=_0x24580b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4dd05f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3f6028,_0x9a7b0a){const _0xa76e89=[];for(let _0x5f270c of _0x3f6028)_0x5f270c['start']['nodeAfter']===_0x5f270c['end']['parent']&&(_0x5f270c=_0x24580b['model']['createRange'](_0x24580b['model']['createPositionAt'](_0x5f270c['start']['nodeAfter'],0x0))),_0xa76e89['push'](_0x5f270c);_0x24580b['model']['change'](_0x41a8fc=>{const _0x8e6375=_0x24580b['model']['document']['selection'],_0x5c0c07=Array['from'](_0x8e6375['getRanges']())['map'](_0x10c94d=>_0x44e392['fromRange'](_0x10c94d));_0x41a8fc['setSelection'](_0xa76e89),_0x24580b['commands']['get'](_0x9a7b0a['commandName'])['refresh'](),_0x9a7b0a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x24580b['execute'](_0x9a7b0a['commandName'],..._0x9a7b0a['commandParams']),_0x41a8fc['setSelection'](_0x5c0c07);for(const _0x5d481e of _0x5c0c07)_0x5d481e['detach']();});}),_0x4dd05f['descriptionFactory']['registerElementLabel'](function(_0x1e7ffd){const _0x5f0e95=!_0x24580b['model']['schema']['isObject'](_0x1e7ffd),_0x47ea75=_0x1e7ffd['previousSibling'],_0x377249=_0x1e7ffd['nextSibling'],_0x4747d6=_0x1e7ffd['getAttribute']('listItemId'),_0x1c0338=!_0x47ea75||_0x47ea75['getAttribute']('listItemId')!==_0x4747d6,_0x1a5ff2=!_0x377249||_0x377249['getAttribute']('listItemId')!==_0x4747d6;return _0x5f0e95&&Boolean(_0x4747d6)&&_0x1c0338&&_0x1a5ff2;},_0x40e471=>c(_0x34f343,'ELEMENT_LIST_ITEM',_0x40e471));}['_registerLegacyDescription'](){const _0x2c335f=this['editor'],_0x277b59=_0x2c335f['locale'];function _0x499378(_0x351d22){const _0x2fbb28=_0x2c335f['commands']['get']('bulletedList')['value'],_0x4d1072=_0x2c335f['commands']['get']('numberedList')['value'];return'numberedList'===_0x351d22?_0x2fbb28:_0x4d1072;}_0x2c335f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5a00cc){if('formatBlock'!=_0x5a00cc['type'])return;const {data:_0x2cba75}=_0x5a00cc;if(!_0x2cba75)return;let _0x51d2a4,_0x590a83,_0x7d95e6,_0x1a2f39;switch(_0x2cba75['commandName']){case'bulletedList':_0x7d95e6=_0x2cba75['commandParams'][0x0]['forceValue'],_0x1a2f39=_0x499378(_0x2cba75['commandName']),_0x51d2a4=_0x7d95e6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1a2f39&&_0x2c335f['config']['get']('list.multiBlock')||(_0x51d2a4='*Change\x20to:*\x20%0'),_0x590a83={'type':'format','content':c(_0x277b59,_0x51d2a4,c(_0x277b59,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x7d95e6=_0x2cba75['commandParams'][0x0]['forceValue'],_0x1a2f39=_0x499378(_0x2cba75['commandName']),_0x51d2a4=_0x7d95e6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1a2f39&&_0x2c335f['config']['get']('list.multiBlock')||(_0x51d2a4='*Change\x20to:*\x20%0'),_0x590a83={'type':'format','content':c(_0x277b59,_0x51d2a4,c(_0x277b59,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x51d2a4='*Indent:*\x20%0',_0x590a83={'type':'format','content':c(_0x277b59,_0x51d2a4,c(_0x277b59,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x51d2a4=function(_0x474d74){const _0x48ba0b=_0x474d74['getFirstRange']();let _0x59b7c4=_0x48ba0b['start']['nodeAfter'];for(;_0x59b7c4&&_0x48ba0b['containsItem'](_0x59b7c4);){if(_0x59b7c4['getAttribute']('listIndent')>0x0)return!0x1;_0x59b7c4=_0x59b7c4['nextSibling'];}return!0x0;}(_0x5a00cc)?c(_0x277b59,'*Format:*\x20remove\x20from\x20%0',c(_0x277b59,function(_0x2c3980){return'ELEMENT_'+_0x2c3980['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5a00cc))):c(_0x277b59,'*Outdent:*\x20%0',c(_0x277b59,'ELEMENT_LIST_ITEM')),_0x590a83={'type':'format','content':_0x51d2a4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2cba75['multipleBlocks']&&(_0x51d2a4='*Merge:*\x20%0',_0x590a83={'type':'deletion','content':c(_0x277b59,_0x51d2a4,c(_0x277b59,'ELEMENT_LIST_ITEM'))});}return _0x590a83;});}}function Te(_0x188911){let _0x3eb846=_0x188911['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3eb846;){const _0x291ad7=_0x3eb846['getAttribute']('listItemId');if(!_0x291ad7)return!0x1;if(_0x291ad7==_0x188911['data']['newValue'])return'newValue';if(_0x291ad7==_0x188911['data']['oldValue'])return'oldValue';_0x3eb846=_0x3eb846['previousSibling'];}return!0x1;}class Se extends _0x340863{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x267e5c=this['editor']['config']['get']('list.properties'),_0x2f540f=this['editor']['plugins']['get']('TrackChangesEditing');_0x267e5c['styles']&&(_0x2f540f['enableDefaultAttributesIntegration']('listStyle'),_0x2f540f['registerBlockAttribute']('listStyle')),_0x267e5c['reversed']&&(_0x2f540f['enableDefaultAttributesIntegration']('listReversed'),_0x2f540f['registerBlockAttribute']('listReversed')),_0x267e5c['startIndex']&&(_0x2f540f['enableDefaultAttributesIntegration']('listStart'),_0x2f540f['registerBlockAttribute']('listStart'));const _0x340dbc={'type':'format','content':''};_0x2f540f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x384c9b=this['editor']['locale'];_0x2f540f['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x384c9b,'FORMAT_LIST_REVERSED')),_0x2f540f['descriptionFactory']['registerDescriptionCallback'](_0x12c381=>{const {data:_0x2c2a5c}=_0x12c381;if(_0x2c2a5c&&'listReversed'==_0x2c2a5c['key'])return null==_0x2c2a5c['newValue']||0x0==_0x2c2a5c['newValue']&&null==_0x2c2a5c['oldValue']?_0x340dbc:void 0x0;}),_0x2f540f['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x384c9b,'FORMAT_LIST_START')),_0x2f540f['descriptionFactory']['registerDescriptionCallback'](_0x2a33a4=>{const {data:_0x4ed124}=_0x2a33a4;if(_0x4ed124&&'listStart'==_0x4ed124['key'])return null==_0x4ed124['newValue']||0x1==_0x4ed124['newValue']&&null==_0x4ed124['oldValue']?_0x340dbc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x198f39=>{if(_0x198f39['batch']['isUndo'])return!0x1;let _0x280cc3=!0x1;const _0x15c2e7=_0x2f540f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x482534=>{const _0x221863=_0x2f540f['_getAttributeKey'](_0x482534);return'listStart'==_0x221863||'listReversed'==_0x221863;});for(const _0x3b475f of _0x15c2e7){const _0x407e34=_0x3b475f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x407e34||'customNumbered'==_0x407e34)continue;_0x2f540f['_findSuggestions'](_0x3b475f['getFirstRange'](),'attribute')['find'](_0x379eb3=>'listType'==_0x2f540f['_getAttributeKey'](_0x379eb3['suggestion']))||(_0x198f39['removeMarker'](_0x3b475f['getFirstMarker']()),_0x280cc3=!0x0);}return _0x280cc3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x29df6c){const _0x8402e4=this['editor']['locale'],{data:_0x3e79e5}=_0x29df6c,_0x3f6325={'type':'format','content':''};if(!_0x3e79e5||'listStyle'!=_0x3e79e5['key'])return;if(!_0x3e79e5['oldValue'])return'default'==_0x3e79e5['newValue']?_0x3f6325:{'type':'format','content':''+c(_0x8402e4,'*Set\x20format:*\x20%0',c(_0x8402e4,this['_getTranslationKeyForListStyle'](_0x3e79e5['newValue'])))};if(!_0x3e79e5['newValue']){if('default'==_0x3e79e5['oldValue'])return _0x3f6325;let _0x313303=_0x29df6c['head'];for(;_0x313303;){if(_0x313303['data']&&'listType'==_0x313303['data']['key']&&_0x313303['data']['newValue'])return _0x3f6325;_0x313303=_0x313303['next'];}return{'type':'format','content':''+c(_0x8402e4,'*Remove\x20format:*\x20%0',c(_0x8402e4,this['_getTranslationKeyForListStyle'](_0x3e79e5['oldValue'])))};}if('default'!=_0x3e79e5['newValue'])return{'type':'format','content':''+c(_0x8402e4,'*Set\x20format:*\x20%0',c(_0x8402e4,this['_getTranslationKeyForListStyle'](_0x3e79e5['newValue'])))};let _0x2b10b3=_0x29df6c['head'];for(;_0x2b10b3;){if(_0x2b10b3['data']&&'listType'==_0x2b10b3['data']['key']&&_0x2b10b3['data']['newValue']&&_0x2b10b3['data']['oldValue'])return _0x3f6325;_0x2b10b3=_0x2b10b3['next'];}return{'type':'format','content':c(_0x8402e4,'*Set\x20format:*\x20%0',c(_0x8402e4,'ELEMENT_'+_0x29df6c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x18b939=this['editor'],_0x1693a7=_0x18b939['locale'];_0x18b939['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c401c=>{if('formatBlock'!=_0x5c401c['type'])return;const {data:_0x4c66bb}=_0x5c401c;if(!_0x4c66bb)return;let _0x39c835,_0x4ba6e1;switch(_0x4c66bb['commandName']){case'listStyle':_0x39c835='*Change\x20to:*\x20%0',_0x4ba6e1={'type':'format','content':c(_0x1693a7,_0x39c835,c(_0x1693a7,this['_getTranslationKeyForListStyle'](_0x4c66bb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39c835=_0x4c66bb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ba6e1={'type':'format','content':c(_0x1693a7,_0x39c835)};break;case'listStart':_0x39c835='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ba6e1={'type':'format','content':c(_0x1693a7,_0x39c835,_0x4c66bb['commandParams'][0x0]['startIndex'])};}return _0x4ba6e1;});}['_getTranslationKeyForListStyle'](_0x4c9ff8){return'ELEMENT_'+function(_0x1e3cd3){if(_e['includes'](_0x1e3cd3))return'bulleted';if(Re['includes'](_0x1e3cd3))return'numbered';return null;}(_0x4c9ff8)['toUpperCase']()+'_LIST_'+_0x4c9ff8['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x340863{['afterInit'](){const _0x53344e=this['editor'];_0x53344e['commands']['get']('emoji')&&_0x53344e['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x340863{static get['requires'](){return[_0x14d299];}['init'](){const _0x17d2fb=this['editor'],_0x308f85=_0x17d2fb['plugins']['get']('TrackChangesEditing'),_0xd0d121=_0x17d2fb['commands']['get']('enter');_0x308f85['enableCommand']('enter',()=>{_0x17d2fb['model']['change'](_0x50b095=>{const _0x11a709=_0x17d2fb['model']['document']['selection'],_0x35336d=_0x11a709['getFirstPosition'](),_0x726b81=_0x44e392['fromRange'](_0x11a709['getFirstRange']());if(_0xd0d121['enterBlock'](_0x50b095)){const _0x1ae2eb=_0x17d2fb['model']['createPositionAt'](_0x35336d['parent']['nextSibling'],0x0),_0x45c397=_0x50b095['createRange'](_0x35336d,_0x1ae2eb);_0x308f85['markInsertion'](_0x45c397);}else _0x50b095['setSelection'](_0x50b095['createRange'](_0x726b81['end']));_0x726b81['detach'](),_0xd0d121['fire']('afterExecute',{'writer':_0x50b095});});}),_0x17d2fb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x17d2fb,'split'),{'priority':'high'}),_0x17d2fb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x134a70,_0x11204c,_0x34d453)=>{const _0x9c020d=_0x34d453['mapper']['markerNameToElements'](_0x11204c['markerName']);if(_0x9c020d){for(const _0x3b3c27 of _0x9c020d)_0x3b3c27['hasClass']('ck-suggestion-marker-split')&&(_0x34d453['mapper']['unbindElementFromMarkerName'](_0x3b3c27,_0x11204c['markerName']),_0x34d453['writer']['remove'](_0x3b3c27));}},{'priority':'high'}),_0x17d2fb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e8785,_0xe391a6,_0x58f50e)=>{_0x58f50e['options']['showSuggestionHighlights']&&Fe(_0x17d2fb,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2e8785,_0xe391a6,_0x58f50e);},{'priority':'high'});}}class Z extends _0x340863{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3b6b27=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b6b27['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3b6b27['enableCommand']('findNext'),_0x3b6b27['enableCommand']('findPrevious'),_0x3b6b27['enableCommand']('replace'),_0x3b6b27['enableCommand']('replaceAll');}['handleFindCommand'](_0x156b88,_0x1fba2f,_0x307d57={}){const _0x421887=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x156b88(_0x2fc599=>{let _0x46823f=('string'==typeof _0x1fba2f?_0x421887['findByTextCallback'](_0x1fba2f,_0x307d57):_0x1fba2f)(_0x2fc599);Array['isArray'](_0x46823f)&&(_0x46823f={'results':_0x46823f,'searchText':'string'==typeof _0x1fba2f?_0x1fba2f:''});const _0xdc80af=_0x46823f['results']['filter'](_0x23de33=>!0x1===this['_isInDeletionRange'](_0x23de33,_0x2fc599['item']));return{..._0x46823f,'results':_0xdc80af};},_0x307d57);}['_isInDeletionRange'](_0x516505,_0x29376f){const _0x3dd9e2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29376f,_0x516505['start']),this['editor']['model']['createPositionAt'](_0x29376f,_0x516505['end']));for(const _0x2cbfb3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3dd9e2['getIntersection'](_0x2cbfb3['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x340863{['afterInit'](){const _0x2158fc=this['editor']['locale'],_0x5c5be0=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x7e2a79,commandName:_0x5ab920}of ro)this['editor']['plugins']['has'](_0x7e2a79)&&(_0x5c5be0['enableDefaultAttributesIntegration'](_0x5ab920),_0x5c5be0['registerInlineAttribute'](_0x5ab920));_0x5c5be0['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x2158fc,'FORMAT_FONT_SIZE')),_0x5c5be0['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x2158fc,'FORMAT_FONT_FAMILY')),_0x5c5be0['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x2158fc,'FORMAT_FONT_COLOR')),_0x5c5be0['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x2158fc,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fff53=this['editor'],_0x3ec527=_0x4fff53['locale'];_0x4fff53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b9958=>{const _0x2ee299=_0x3ec527['t'];if('formatInline'!=_0x1b9958['type'])return;const {data:_0xb408ad}=_0x1b9958;if(null!=_0xb408ad){if('fontSize'==_0xb408ad['commandName']){const _0x5434c9=_0xb408ad['commandParams'][0x0]['value'];if(_0x5434c9){const _0x1479c2=_0x2ee299(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x40e73a=>_0x40e73a['model']==_0x5434c9)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3ec527,'*Set\x20font\x20size:*\x20%0',_0x1479c2)};}return{'type':'format','content':c(_0x3ec527,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xb408ad['commandName']){const _0x5a024d=_0xb408ad['commandParams'][0x0]['value'];return _0x5a024d?{'type':'format','content':c(_0x3ec527,'*Set\x20font\x20family:*\x20%0',_0x5a024d)}:{'type':'format','content':c(_0x3ec527,'*Reset\x20font\x20family*')};}if('fontColor'==_0xb408ad['commandName']){const _0x3bf37e=_0xb408ad['commandParams'][0x0]['value'];if(_0x3bf37e){const _0x23babb=_0x1fdbb9(this['editor']['config']['get']('fontColor.colors'))['find'](_0x55647d=>_0x55647d['model']==_0x3bf37e);let _0x48b831=_0x3bf37e,_0x21ec94='';return _0x23babb&&(_0x48b831=_0x23babb['label'],_0x21ec94=_0x2ee299(_0x48b831)['toLowerCase']()),{'type':'format','content':c(_0x3ec527,'*Set\x20font\x20color:*\x20%0',_0x21ec94)['trim'](),'color':{'value':_0x3bf37e,'title':_0x21ec94||_0x48b831}};}return{'type':'format','content':c(_0x3ec527,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xb408ad['commandName']){const _0x21f3cb=_0xb408ad['commandParams'][0x0]['value'];if(_0x21f3cb){const _0x5d8247=_0x1fdbb9(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5e410e=>_0x5e410e['model']==_0x21f3cb);let _0x38e1c8=_0x21f3cb,_0x1e6c43='';return _0x5d8247&&(_0x38e1c8=_0x5d8247['label'],_0x1e6c43=_0x2ee299(_0x38e1c8)['toLowerCase']()),{'type':'format','content':c(_0x3ec527,'*Set\x20font\x20background\x20color:*\x20%0',_0x1e6c43)['trim'](),'color':{'value':_0x21f3cb,'title':_0x1e6c43||_0x38e1c8}};}return{'type':'format','content':c(_0x3ec527,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x340863{['afterInit'](){const _0x1b2056=this['editor'],_0x2c53d2=_0x1b2056['plugins']['get']('TrackChangesEditing'),_0x41ba3e=_0x1b2056['commands']['get']('copyFormat'),_0x41eb5a=_0x1b2056['commands']['get']('pasteFormat');_0x41ba3e&&_0x41eb5a&&(_0x2c53d2['enableDefaultAttributesIntegration']('pasteFormat'),_0x2c53d2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4666e2=this['editor'],_0x99e829=_0x4666e2['locale'];_0x4666e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xece4eb=>{if('formatBlock'!=_0xece4eb['type']&&'formatInline'!=_0xece4eb['type'])return;const {data:_0x5c8aa8}=_0xece4eb;if(_0x5c8aa8&&'pasteFormat'===_0x5c8aa8['commandName']){const _0xed290b=[],_0x1fd3fa=_0x5c8aa8['commandParams'][0x0];for(const [_0x95d73d,_0x18e7e1]of Object['entries'](_0x1fd3fa))_0xed290b['push'](so(_0x4666e2,_0x95d73d,_0x18e7e1));return _0xed290b['length']?{'type':'format','content':c(_0x99e829,'*Set\x20format\x20to:*\x20%0',_0xed290b['join'](',\x20'))}:{'type':'format','content':c(_0x99e829,'*Remove\x20all\x20formatting*')};}});}}function so(_0x38ae2b,_0x3c9430,_0x3e9914){const _0xc11e1f=_0x38ae2b['locale']['t'],_0x49031f=_0x3c9430['split'](/(?=[A-Z])/)['join']('\x20'),_0x2df4d9=_0xc11e1f(_0x49031f['charAt'](0x0)['toUpperCase']()+_0x49031f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3e9914)return _0x2df4d9;if('fontColor'===_0x3c9430||'fontBackgroundColor'===_0x3c9430){const _0x1a3d43=_0x1fdbb9(_0x38ae2b['config']['get']('fontColor.colors'))['find'](_0x2664f1=>_0x2664f1['model']==_0x3e9914);return _0x2df4d9+'\x20('+(_0x1a3d43?_0xc11e1f(_0x1a3d43['label'])['toLowerCase']():_0x3e9914)+')';}if('fontSize'===_0x3c9430&&isNaN(parseFloat(_0x3e9914))){const _0x21db4d=_0x38ae2b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x38ae2b['config']['get']('fontSize.options'))['find'](_0x3c851d=>_0x3c851d['model']==_0x3e9914);return _0x2df4d9+'\x20('+(_0x21db4d?_0xc11e1f(_0x21db4d['title'])['toLowerCase']():_0x3e9914)+')';}return _0x2df4d9+'\x20('+_0x3e9914+')';}class et extends _0x340863{['_headingOptions'];['afterInit'](){const _0x5adaa0=this['editor'];if(!_0x5adaa0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5adaa0['config']['get']('heading.options');const _0x387628=_0x5adaa0['locale'],_0x557036=_0x5adaa0['plugins']['get']('TrackChangesEditing');_0x557036['enableDefaultAttributesIntegration']('heading');for(const _0x381e3f of this['_headingOptions'])'paragraph'!=_0x381e3f['model']&&_0x557036['descriptionFactory']['registerElementLabel'](_0x381e3f['model'],_0x3c5d15=>{const _0x2bdbf0=this['_getHeadingLevel'](_0x381e3f['model']);return null!==_0x2bdbf0?_0x2b5faa(_0x3c5d15,_0x2bdbf0):_0x31c12c(_0x3c5d15,_0x381e3f['title']);});function _0x2b5faa(_0x43f2f7,_0x3baafa){return c(_0x387628,'ELEMENT_HEADING',[_0x43f2f7,_0x3baafa]);}function _0x31c12c(_0x15d2e4,_0x29a506){return c(_0x387628,'ELEMENT_HEADING_CUSTOM',[_0x15d2e4,_0x29a506]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59b886=this['editor'],_0x5d7ea5=_0x59b886['locale'];function _0x5e76e4(_0x3df711,_0x20212a){return c(_0x5d7ea5,'ELEMENT_HEADING_CUSTOM',[_0x3df711,_0x20212a]);}_0x59b886['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51a7dc=>{if('formatBlock'!=_0x51a7dc['type'])return;const {data:_0x4d9612}=_0x51a7dc;if(_0x4d9612&&'heading'==_0x4d9612['commandName']){const _0x1f2e12=_0x4d9612['commandParams'][0x0]['value'],_0x27ff48=this['_getHeadingLevel'](_0x1f2e12);if(null!==_0x27ff48)return{'type':'format','content':c(_0x5d7ea5,'*Change\x20to:*\x20%0',(_0x270eb5=0x1,_0x230399=_0x27ff48,c(_0x5d7ea5,'ELEMENT_HEADING',[_0x270eb5,_0x230399])))};const _0x1cce37=this['_headingOptions']['find'](_0x439578=>_0x439578['model']===_0x1f2e12)['title'];return{'type':'format','content':c(_0x5d7ea5,'*Change\x20to:*\x20%0',_0x5e76e4(0x1,_0x1cce37))};}var _0x270eb5,_0x230399;});}['_getHeadingLevel'](_0x45fbb0){const _0x188c6b=_0x45fbb0['match'](/^heading(\d+)/);if(_0x188c6b)return _0x188c6b[0x1];const _0x1834fb=this['_headingOptions']?.['find'](_0x18ee4b=>_0x18ee4b['model']==_0x45fbb0);if(_0x1834fb&&_0x1834fb['view']){const _0x5ae9d1=_0x1834fb['view'],_0x29e475=(_0x5ae9d1['name']??_0x5ae9d1)['match'](/^h(\d+)/);if(_0x29e475)return _0x29e475[0x1];}return null;}}class nt extends _0x340863{['afterInit'](){const _0x25bcd1=this['editor'];if(!_0x25bcd1['plugins']['has']('HighlightEditing'))return;const _0x3c2a1f=_0x25bcd1['plugins']['get']('TrackChangesEditing'),_0x2ccc0d=_0x25bcd1['locale'];_0x3c2a1f['enableDefaultAttributesIntegration']('highlight'),_0x3c2a1f['registerInlineAttribute']('highlight'),_0x3c2a1f['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2ccc0d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10260f=this['editor'],_0x4cb1c1=_0x10260f['locale'];_0x10260f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x387182=>{if('formatInline'!=_0x387182['type'])return;const {data:_0x3fb4e5}=_0x387182;if(_0x3fb4e5&&'highlight'==_0x3fb4e5['commandName']){const _0x4a4094=_0x4cb1c1['t'],_0x4c371b=_0x3fb4e5['commandParams'][0x0]['value'];if(_0x4c371b){const _0x1f8b9a=_0x10260f['config']['get']('highlight.options')['find'](_0x1e08f7=>_0x1e08f7['model']==_0x4c371b),_0x488e21=_0x4a4094(_0x1f8b9a['title'])['toLowerCase']();return{'type':'format','content':c(_0x4cb1c1,'*Set\x20highlight:*\x20%0',_0x488e21),'color':{'value':_0x1f8b9a['color'],'title':_0x1f8b9a['title']}};}return{'type':'format','content':c(_0x4cb1c1,'*Remove\x20highlight*',c(_0x4cb1c1,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x340863{['afterInit'](){const _0x416143=this['editor'];if(!_0x416143['plugins']['has']('HorizontalLineEditing'))return;_0x416143['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x51bc28=_0x416143['plugins']['get']('TrackChangesEditing'),_0x3d5b60=_0x416143['locale'];_0x51bc28['descriptionFactory']['registerElementLabel']('horizontalLine',_0x140e58=>c(_0x3d5b60,'ELEMENT_HORIZONTAL_LINE',_0x140e58)),_0x416143['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2a5e81,{writer:_0x34428a,options:_0x32cebc})=>{if(!_0x32cebc['showSuggestionHighlights'])return null;const _0x2347b1=_0x34428a['createContainerElement']('div'),_0x33a366=_0x34428a['createEmptyElement']('hr');return _0x34428a['addClass']('ck-horizontal-line',_0x2347b1),_0x34428a['insert'](_0x34428a['createPositionAt'](_0x2347b1,0x0),_0x33a366),_0x2347b1;},'converterPriority':'high'});}}class ot extends _0x340863{['afterInit'](){const _0x2d61e1=this['editor'];if(!_0x2d61e1['plugins']['has']('HtmlEmbed'))return;const _0xdcbe4e=_0x2d61e1['plugins']['get']('TrackChangesEditing'),_0x428761=_0x2d61e1['locale'];_0xdcbe4e['descriptionFactory']['registerElementLabel']('rawHtml',_0xe69266=>c(_0x428761,'ELEMENT_HTML_EMBED',_0xe69266)),_0xdcbe4e['enableDefaultAttributesIntegration']('htmlEmbed'),_0xdcbe4e['registerBlockAttribute']('value'),_0xdcbe4e['descriptionFactory']['registerDescriptionCallback'](_0x5cbc7a=>{if('attribute'!=_0x5cbc7a['type'])return;const {data:_0x4f9abb}=_0x5cbc7a;if(_0x4f9abb&&'value'==_0x4f9abb['key']&&_0x5cbc7a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xfdd7ab=c(_0x428761,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x428761,'*Change\x20%0\x20content*',_0xfdd7ab)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x368cad=this['editor'],_0x1fcb75=_0x368cad['locale'];_0x368cad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36a98e=>{if('formatBlock'!=_0x36a98e['type'])return;const {data:_0x34b5f6}=_0x36a98e;if(_0x34b5f6&&'htmlEmbed'==_0x34b5f6['commandName']){const _0x315f17=c(_0x1fcb75,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1fcb75,'*Change\x20%0\x20content*',_0x315f17)};}});}}class rt extends _0x340863{['afterInit'](){const _0x350c14=this['editor'];if(!_0x350c14['plugins']['has']('ImageEditing'))return;const _0x49538d=_0x350c14['plugins']['get']('TrackChangesEditing'),_0x124e71=_0x350c14['plugins']['get']('ImageUtils'),_0x3d44b6=_0x350c14['locale'];_0x49538d['enableCommand']('insertImage'),_0x49538d['descriptionFactory']['registerElementLabel']('imageBlock',_0x40e092=>c(_0x3d44b6,'ELEMENT_IMAGE',_0x40e092)),_0x49538d['descriptionFactory']['registerElementLabel']('imageInline',_0x2d21b4=>c(_0x3d44b6,'ELEMENT_INLINE_IMAGE',_0x2d21b4)),_0x49538d['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3d44b6,'ELEMENT_CAPTION')),_0x350c14['plugins']['has']('ImageUploadEditing')&&_0x49538d['enableCommand']('uploadImage'),_0x350c14['plugins']['has']('ImageBlockEditing')&&_0x350c14['plugins']['has']('ImageInlineEditing')&&(_0x49538d['enableCommand']('imageTypeInline',(_0x323f7a,_0x4e3711)=>{const _0x170ebc=_0x124e71['getClosestSelectedImageElement'](_0x350c14['model']['document']['selection']);_0x350c14['model']['change'](()=>{_0x49538d['markBlockFormat'](_0x170ebc,{'commandName':'imageTypeInline','commandParams':[_0x4e3711]},[],'convertBlockImageToInline');});}),_0x49538d['enableCommand']('imageTypeBlock',(_0x3fc3e3,_0x3f92b4)=>{_0x350c14['model']['change'](_0x68ba15=>{let _0x6dafd4=_0x124e71['getClosestSelectedImageElement'](_0x350c14['model']['document']['selection']),_0x46ff49=_0x68ba15['createRangeOn'](_0x6dafd4);const _0x235876=_0x5bdd0b['fromPosition'](_0x46ff49['start'],'toPrevious'),_0x4309e4=_0x5bdd0b['fromPosition'](_0x46ff49['end'],'toNext');_0x49538d['forceDefaultExecution'](()=>_0x3fc3e3(_0x3f92b4)),_0x6dafd4=_0x124e71['getClosestSelectedImageElement'](_0x350c14['model']['document']['selection']),_0x46ff49=_0x68ba15['createRangeOn'](_0x6dafd4);const _0x560f0a=_0x68ba15['createRange'](_0x235876,_0x4309e4);_0x235876['detach'](),_0x4309e4['detach'](),_0x49538d['markBlockFormat'](_0x6dafd4,{'commandName':'imageTypeInline','commandParams':[_0x3f92b4]},[],'convertInlineImageToBlock'),_0x560f0a['start']['isBefore'](_0x46ff49['start'])&&_0x49538d['markInsertion'](_0x68ba15['createRange'](_0x560f0a['start'],_0x46ff49['start']),'convertInlineImageToBlock'),_0x46ff49['end']['isBefore'](_0x560f0a['end'])&&_0x49538d['markInsertion'](_0x68ba15['createRange'](_0x46ff49['end'],_0x560f0a['end']),'convertInlineImageToBlock');});}),_0x49538d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x49538d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x49538d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x49538d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x49538d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x49538d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1b99aa])=>{const _0x5de010=_0x49538d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x400a82=_0x1b99aa['start'],_0x1f6454=_0x1b99aa['end'];const _0x5461d6=_0x350c14['model']['schema']['getNearestSelectionRange'](_0x400a82,'backward'),_0xeeda1d=_0x350c14['model']['schema']['getNearestSelectionRange'](_0x1f6454,'forward');_0x5461d6['isCollapsed']&&(_0x400a82=_0x5461d6['start']),_0xeeda1d['isCollapsed']&&(_0x1f6454=_0xeeda1d['end']),_0x5de010([_0x350c14['model']['createRange'](_0x400a82,_0x1f6454)]);}),_0x49538d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x19ce19),_0x49538d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x19ce19)),_0x350c14['plugins']['has']('ImageCaptionEditing')&&(_0x49538d['enableCommand']('toggleImageCaption',(_0x508ab3,_0x1b6ade)=>{const _0x182fd5=_0x350c14['plugins']['get']('ImageCaptionUtils');let _0x514e57=_0x124e71['getClosestSelectedImageElement'](_0x350c14['model']['document']['selection']),_0x47dc4a=_0x182fd5['getCaptionFromImageModelElement'](_0x514e57);_0x350c14['model']['change'](()=>{if(_0x47dc4a)return void _0x49538d['markDeletion'](_0x350c14['model']['createRangeOn'](_0x47dc4a));const _0x2ca238=_0x124e71['isBlockImage'](_0x514e57);_0x508ab3(_0x1b6ade),_0x514e57=_0x124e71['getClosestSelectedImageElement'](_0x350c14['model']['document']['selection']),_0x47dc4a=_0x182fd5['getCaptionFromImageModelElement'](_0x514e57),_0x49538d['markInsertion'](_0x350c14['model']['createRangeOn'](_0x47dc4a),_0x2ca238?null:'imageCaption');});}),_0x49538d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x19ce19));const _0xa9d2c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x11c427(_0x4a939a,_0x4f6c43){const _0x2708b7=_0xa9d2c['findIndex'](({type:_0x2a10b1,subType:_0x29d487})=>_0x4a939a['type']==_0x2a10b1&&_0x4a939a['subType']==_0x29d487),_0x5e2363=_0xa9d2c['findIndex'](({type:_0x398bf1,subType:_0x5399cf})=>_0x4f6c43['type']==_0x398bf1&&_0x4f6c43['subType']==_0x5399cf);if(_0x2708b7<0x0||_0x5e2363<0x0)return!0x1;const _0x57fdf1=_0x4a939a['getFirstRange'](),_0x120ccf=_0x4f6c43['getFirstRange']();if((0x0==_0x2708b7||0x1==_0x2708b7)&&0x2==_0x5e2363&&_0x57fdf1['isIntersecting'](_0x120ccf))return!0x0;if(0x2==_0x2708b7&&0x3==_0x5e2363){const _0x47a422=_0x49538d['_findSuggestions'](_0x57fdf1,'insertion')['filter'](({suggestion:_0x17dee0,meta:_0x1659eb})=>_0x1659eb['isOwn']&&'convertInlineImageToBlock'==_0x17dee0['subType']);if(_0x47a422['length']>0x1&&_0x120ccf['end']['isEqual'](_0x57fdf1['start']))return!0x0;if(0x1==_0x47a422['length']&&(_0x57fdf1['start']['isEqual'](_0x120ccf['end'])||_0x57fdf1['end']['isEqual'](_0x120ccf['start'])))return!0x0;}if(0x3==_0x2708b7&&0x3==_0x5e2363&&_0x57fdf1['start']['isBefore'](_0x120ccf['start'])){const _0x370105=_0x57fdf1['end']['nodeAfter'],_0x195542=_0x120ccf['start']['nodeBefore'];return _0x124e71['isBlockImage'](_0x370105)&&_0x370105===_0x195542;}return!0x1;}function _0x19ce19(_0x2089b8,_0x2a2bcc){return _0x11c427(_0x2089b8,_0x2a2bcc)?[_0x2089b8,_0x2a2bcc]:_0x11c427(_0x2a2bcc,_0x2089b8)?[_0x2a2bcc,_0x2089b8]:null;}_0x350c14['plugins']['has']('ImageResize')&&(_0x49538d['enableDefaultAttributesIntegration']('resizeImage'),_0x49538d['registerBlockAttribute']('resizedWidth'),_0x49538d['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3d44b6,'FORMAT_IMAGE_SIZE'))),_0x350c14['plugins']['has']('ImageTextAlternativeEditing')&&(_0x49538d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x49538d['registerBlockAttribute']('alt')),_0x350c14['plugins']['has']('PictureEditing')&&(_0x49538d['registerBlockAttribute']('sources'),_0x49538d['descriptionFactory']['registerDescriptionCallback'](_0x50b2e2=>{if('attribute'!=_0x50b2e2['type'])return;const {data:_0x1b73bf}=_0x50b2e2;return _0x1b73bf&&'sources'==_0x1b73bf['key']?{'type':'format','content':''}:void 0x0;})),_0x350c14['plugins']['has']('ImageSizeAttributes')&&(_0x49538d['registerBlockAttribute']('width'),_0x49538d['registerBlockAttribute']('height'),_0x49538d['descriptionFactory']['registerDescriptionCallback'](_0x13b689=>{if('attribute'!=_0x13b689['type'])return;const {data:_0x3cdabe}=_0x13b689;return!_0x3cdabe||'width'!=_0x3cdabe['key']&&'height'!=_0x3cdabe['key']?void 0x0:{'type':'format','content':''};})),_0x49538d['descriptionFactory']['registerDescriptionCallback'](_0x2b34e5=>{if(!!_0xa9d2c['find'](({type:_0x161cbd,subType:_0x250ebb})=>_0x2b34e5['type']==_0x161cbd&&_0x2b34e5['subType']==_0x250ebb))return _0x2b34e5['previous']?{}:void 0x0;}),_0x49538d['descriptionFactory']['registerDescriptionCallback'](_0x48fce4=>{if('insertion'==_0x48fce4['type']||'deletion'==_0x48fce4['type']){const _0x1a3312=_0x48fce4['getContainedElement']();if(_0x1a3312&&_0x1a3312['is']('element','caption'))return{'type':'insertion'==_0x48fce4['type']?'addObject':'removeObject','element':_0x1a3312,'quantity':0x1};}}),_0x49538d['descriptionFactory']['registerDescriptionCallback'](_0x106999=>'formatBlock'==_0x106999['type']&&'convertInlineImageToBlock'==_0x106999['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x106999['type']&&'convertBlockImageToInline'==_0x106999['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x49538d['descriptionFactory']['registerDescriptionCallback'](_0x234080=>{if('attribute'!=_0x234080['type'])return;const {data:_0x3e1ed9}=_0x234080;if(!_0x3e1ed9||'alt'!=_0x3e1ed9['key'])return;const _0x524423=_0x3e1ed9['newValue'];return _0x524423?{'type':'format','content':c(_0x3d44b6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x524423+'\x22')}:{'type':'format','content':c(_0x3d44b6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a69a7=this['editor'],_0x36808f=_0x1a69a7['locale'];_0x1a69a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x584bfb=>{if('formatBlock'!=_0x584bfb['type']&&'formatInline'!=_0x584bfb['type'])return;const {data:_0x5b0ceb}=_0x584bfb;if(_0x5b0ceb){if('imageTextAlternative'==_0x5b0ceb['commandName']){const _0x4d6430=_0x5b0ceb['commandParams'][0x0]['newValue'];return _0x4d6430?{'type':'format','content':c(_0x36808f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4d6430+'\x22')}:{'type':'format','content':c(_0x36808f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5b0ceb['commandName']){const _0x21bc89=_0x5b0ceb['commandParams'][0x0]['width'];return _0x21bc89?{'type':'format','content':c(_0x36808f,'*Set\x20image\x20width:*\x20%0',_0x21bc89)}:{'type':'format','content':c(_0x36808f,'*Reset\x20image\x20width*')};}}});}}class at extends _0x340863{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x44881d=this['editor']['locale'],_0x3ff038=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ff038['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3ff038['registerBlockAttribute']('src'),_0x3ff038['descriptionFactory']['registerDescriptionCallback'](_0x1fc80b=>{if('attribute'!=_0x1fc80b['type'])return;const {data:_0x3745b6}=_0x1fc80b;return _0x3745b6&&'src'==_0x3745b6['key']?_0x3745b6['newValue']&&_0x3745b6['oldValue']?{'type':'format','content':c(_0x44881d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x39b4bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x39b4bf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x39b4bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x39b4bf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x39b4bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1be3ad=this['editor'],_0x4c1820=_0x1be3ad['locale'];_0x1be3ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x193805=>{if('formatBlock'!=_0x193805['type']&&'formatInline'!=_0x193805['type'])return;const {data:_0x795c39}=_0x193805;if(!_0x795c39||'replaceImageSource'!=_0x795c39['commandName'])return;return{'type':'format','content':c(_0x4c1820,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x340863{['afterInit'](){const _0x16ede4=this['editor'];if(!_0x16ede4['plugins']['has']('ImageStyleEditing'))return;const _0x3a2ec5=_0x16ede4['plugins']['get']('TrackChangesEditing'),_0x3c51b8=_0x16ede4['plugins']['get']('ImageUtils'),_0x495865={};_0x3a2ec5['enableCommand']('imageStyle',(_0x22b1ee,_0x9d1be6)=>{const _0x9ad3b0=_0x16ede4['plugins']['get']('Users')['me'],_0x1bddef=_0x16ede4['commands']['get']('imageStyle');let _0x44a6e3=_0x3c51b8['getClosestSelectedImageElement'](_0x16ede4['model']['document']['selection']),_0x908fd7=_0x16ede4['model']['createRangeOn'](_0x44a6e3),_0x349f93=_0x1bddef['value'];if(_0x349f93==_0x9d1be6['value'])return;const _0x59b55a={'commandName':'imageStyle','commandParams':[_0x9d1be6],'formatGroupId':_0xce776c()};_0x16ede4['model']['change'](()=>{if(_0x3a2ec5['getSuggestions']()['filter'](_0x5a0ddc=>_0x5a0ddc['isInContent']&&_0x9ad3b0==_0x5a0ddc['author']&&('formatBlock'==_0x5a0ddc['type']||'formatInline'==_0x5a0ddc['type'])&&('imageStylePreApply'==_0x5a0ddc['subType']||'imageStylePostApply'==_0x5a0ddc['subType'])&&_0x5a0ddc['getFirstRange']()['isEqual'](_0x908fd7))['forEach'](_0x55a083=>_0x3a2ec5['discardSuggestion'](_0x55a083['head'])),_0x44a6e3=_0x3c51b8['getClosestSelectedImageElement'](_0x16ede4['model']['document']['selection']),_0x908fd7=_0x16ede4['model']['createRangeOn'](_0x44a6e3),_0x1bddef['refresh'](),_0x16ede4['commands']['get']('imageTypeInline')['refresh'](),_0x16ede4['commands']['get']('imageTypeBlock')['refresh'](),_0x349f93=_0x1bddef['value'],_0x349f93!=_0x9d1be6['value'])return _0x3c51b8['isInlineImage'](_0x44a6e3)&&_0x1bddef['shouldConvertImageType'](_0x9d1be6['value'],_0x44a6e3)?(_0x22b1ee({..._0x9d1be6,'setImageSizes':!0x1}),_0x44a6e3=_0x3c51b8['getClosestSelectedImageElement'](_0x16ede4['model']['document']['selection']),void _0x3a2ec5['markBlockFormat'](_0x44a6e3,{..._0x59b55a,'commandReversedParams':[{'value':_0x349f93||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3c51b8['isBlockImage'](_0x44a6e3)?_0x3a2ec5['markBlockFormat'](_0x44a6e3,_0x59b55a,[],'imageStylePostApply'):_0x3a2ec5['markInlineFormat'](_0x908fd7,_0x59b55a,'imageStylePostApply'));});});for(const _0x47e263 of _0x16ede4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x495865[_0x47e263['name']]=_0x47e263['title']['toLowerCase']();_0x3a2ec5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3a2ec5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3a2ec5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3a2ec5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5554a2])=>{_0x3c51b8['setImageNaturalSizeAttributes'](_0x5554a2['getContainedElement']());}),_0x3a2ec5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x52ee0f,_0xa8ee24)=>{_0x3a2ec5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x52ee0f,{'commandName':_0xa8ee24['commandName'],'commandParams':_0xa8ee24['commandReversedParams']});}),_0x3a2ec5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3a0a51,_0x45d66a){if(_0x371cc4(_0x3a0a51,_0x45d66a))return[_0x3a0a51,_0x45d66a];if(_0x371cc4(_0x45d66a,_0x3a0a51))return[_0x45d66a,_0x3a0a51];return null;});const _0x12fec8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x371cc4(_0x3ea726,_0x513e21){const _0x37c9a0=_0x12fec8['findIndex'](({type:_0x229314,subType:_0x4fa155})=>_0x3ea726['type']==_0x229314&&_0x3ea726['subType']==_0x4fa155),_0x217c2f=_0x12fec8['findIndex'](({type:_0x24c4ed,subType:_0x571b0e})=>_0x513e21['type']==_0x24c4ed&&_0x513e21['subType']==_0x571b0e);if(_0x37c9a0<0x0||_0x217c2f<0x0)return!0x1;const _0x429f2e=_0x3ea726['getFirstRange'](),_0x38f83d=_0x513e21['getFirstRange']();if((0x0==_0x37c9a0||0x1==_0x37c9a0)&&0x2==_0x217c2f&&_0x429f2e['isIntersecting'](_0x38f83d))return!0x0;if(0x2==_0x37c9a0&&0x3==_0x217c2f){const _0x78aea4=_0x3a2ec5['_findSuggestions'](_0x429f2e,'insertion')['filter'](({suggestion:_0x569b88,meta:_0x43bf03})=>_0x43bf03['isOwn']&&'convertInlineImageToBlock'==_0x569b88['subType']);if(_0x78aea4['length']>0x1&&_0x38f83d['end']['isEqual'](_0x429f2e['start']))return!0x0;if(0x1==_0x78aea4['length']&&(_0x429f2e['start']['isEqual'](_0x38f83d['end'])||_0x429f2e['end']['isEqual'](_0x38f83d['start'])))return!0x0;}if(0x3==_0x37c9a0&&0x3==_0x217c2f&&_0x429f2e['start']['isBefore'](_0x38f83d['start'])){const _0x32bfa1=_0x429f2e['end']['nodeAfter'],_0x537ac0=_0x38f83d['start']['nodeBefore'];return _0x3c51b8['isBlockImage'](_0x32bfa1)&&_0x32bfa1===_0x537ac0;}return!0x1;}_0x16ede4['model']['document']['registerPostFixer'](()=>{let _0x1c62a7=!0x1;const _0x18960b=Array['from'](_0x16ede4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45481a,data:_0x54751a}of _0x18960b){const {group:_0x1c91a4,type:_0x230fb2,subType:_0x14b311,id:_0x3826e8}=_0x3a2ec5['_splitMarkerName'](_0x45481a);if('suggestion'==_0x1c91a4&&_0x3a2ec5['hasSuggestion'](_0x3826e8)){if('formatBlock'==_0x230fb2&&('imageStylePreApply'==_0x14b311||'imageStylePostApply'==_0x14b311)){const _0x5ab6f6=_0x3a2ec5['getSuggestion'](_0x3826e8);if(_0x54751a['newRange']){const _0x44f830=_0x5ab6f6['getFirstRange']()['getContainedElement']();if(_0x3c51b8['isBlockImage'](_0x44f830))continue;_0x3a2ec5['discardSuggestion'](_0x5ab6f6),_0x1c62a7=!0x0;}}if('insertion'==_0x230fb2&&'imageCaption'==_0x14b311&&!_0x54751a['newRange']){const _0x2b83d1=_0x3a2ec5['getSuggestion'](_0x3826e8);_0x2b83d1['next']&&_0x2b83d1['next']['isInContent']&&(_0x3a2ec5['discardSuggestion'](_0x2b83d1['next']),_0x1c62a7=!0x0);}}}return _0x1c62a7;}),this['_registerLegacyDescription'](_0x495865);}['_registerLegacyDescription'](_0x450395){const _0x7b6444=this['editor'],_0x114eb1=_0x7b6444['locale'];_0x7b6444['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59406f=>{if('formatBlock'!=_0x59406f['type']&&'formatInline'!=_0x59406f['type'])return;const {data:_0x1ecfe8}=_0x59406f;if(!_0x1ecfe8||'imageStyle'!=_0x1ecfe8['commandName'])return;const _0x3a0ff2=_0x1ecfe8['commandParams'][0x0]['value'];return _0x533eab('side'===_0x3a0ff2?c(_0x114eb1,'FORMAT_SIDE_IMAGE'):_0x450395[_0x3a0ff2]||_0x3a0ff2);function _0x533eab(_0x47dbb0){return{'type':'format','content':c(_0x114eb1,'*Format:*\x20%0',_0x47dbb0)};}});}}class ut extends _0x340863{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5372a6){super(_0x5372a6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x211aed=this['editor'],_0x39f499=_0x211aed['commands']['get']('importWord'),_0x58eb38=_0x211aed['commands']['get']('trackChanges');_0x39f499&&(_0x39f499['on']('execute',(_0x521355,[,_0x38bf97])=>{this['_trackChangesValueDuringImport']=_0x58eb38['value'],_0x38bf97['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x39f499,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x39f499,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x58eb38['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x211aed['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1e15db,_0x1ec569){const {suggestions:_0x114515}=_0x1ec569,_0x3bf148=this['editor']['commands']['get']('trackChanges'),_0x50194e=_0x3bf148['value'];this['_trackChangesValueDuringImport']!==_0x50194e&&(_0x3bf148['execute'](),this['_trackChangesExecuted']=!0x0),_0x114515&&_0x114515['forEach'](({id:_0xea0444,type:_0x57f634,author:_0x42de25,created_at:_0x484347})=>{const _0x4685f2={'id':_0xea0444,'type':_0x57f634,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x42de25,'createdAt':_0x484347?new Date(_0x484347):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4685f2);});}}class ft extends _0x340863{['afterInit'](){const _0x134bbd=this['editor'],_0xc826ee=_0x134bbd['plugins']['get']('TrackChangesEditing');if(_0x134bbd['plugins']['has']('IndentEditing')&&(_0xc826ee['enableCommand']('indent'),_0xc826ee['enableCommand']('outdent')),_0x134bbd['plugins']['has']('IndentBlock')){for(const _0x16aa43 of['indentBlock','outdentBlock'])_0xc826ee['enableDefaultAttributesIntegration'](_0x16aa43);}const _0x2a512a=_0x134bbd['locale'];_0xc826ee['registerBlockAttribute']('blockIndent'),_0xc826ee['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x2a512a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2110cf=this['editor'],_0x29488c=_0x2110cf['locale'],_0x1edb02=_0x2110cf['plugins']['get']('TrackChangesEditing');_0x1edb02['descriptionFactory']['registerDescriptionCallback'](_0x2f8a38=>{if('formatBlock'!=_0x2f8a38['type'])return;const {data:_0x366723}=_0x2f8a38;if(!_0x366723)return;if('indentBlock'!=_0x366723['commandName']&&'outdentBlock'!=_0x366723['commandName'])return;const _0x584651=_0x2f8a38['getItems']()[0x0],_0x44b3dc=_0x1edb02['descriptionFactory']['getItemLabel'](_0x584651);return'indentBlock'==_0x366723['commandName']?{'type':'format','content':c(_0x29488c,'*Indent:*\x20%0',_0x44b3dc)}:'outdentBlock'==_0x366723['commandName']?{'type':'format','content':c(_0x29488c,'*Outdent:*\x20%0',_0x44b3dc)}:void 0x0;});}}class ht extends _0x340863{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x340863{['afterInit'](){const _0x43a0dc=this['editor'];if(!_0x43a0dc['plugins']['has']('LinkEditing'))return;const _0x2b648b=_0x43a0dc['plugins']['get']('TrackChangesEditing'),_0x21db0e=_0x43a0dc['commands']['get']('link');_0x2b648b['enableDefaultAttributesIntegration']('link'),_0x2b648b['enableDefaultAttributesIntegration']('unlink'),_0x2b648b['registerInlineAttribute']('linkHref');for(const _0x1802a8 of _0x21db0e['manualDecorators'])_0x2b648b['registerInlineAttribute'](_0x1802a8['id']),_0x2b648b['descriptionFactory']['registerAttributeLabel'](_0x1802a8['id'],'link\x20('+_0x1802a8['label']['toLowerCase']()+')');_0x2b648b['descriptionFactory']['registerDescriptionCallback'](_0x3ec0a4=>{if('attribute'!=_0x3ec0a4['type'])return;const {data:_0x446028}=_0x3ec0a4;if(!_0x446028||'linkHref'!=_0x446028['key'])return;const _0x1cf242=_0x446028['newValue'],_0x2e5f96=_0x43a0dc['locale'];return{'type':'format','content':null==_0x1cf242?c(_0x2e5f96,'*Remove\x20link*'):c(_0x2e5f96,'*Set\x20link:*\x20%0','\x22'+_0x1cf242+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x258509=this['editor'],_0x17c663=_0x258509['locale'];_0x258509['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44581c=>{if('formatInline'!=_0x44581c['type'])return;const {data:_0x5ae3af}=_0x44581c;if(_0x5ae3af){if('link'==_0x5ae3af['commandName']){const _0x2edd32=_0x5ae3af['commandParams'][0x0];return{'type':'format','content':c(_0x17c663,'*Set\x20link:*\x20%0','\x22'+_0x2edd32+'\x22')};}return'unlink'==_0x5ae3af['commandName']?{'type':'format','content':c(_0x17c663,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x340863{['afterInit'](){const _0x3e6340=this['editor'],_0x25f36e=_0x3e6340['locale'];if(!_0x3e6340['plugins']['has']('LegacyListEditing'))return;const _0x325946=_0x3e6340['plugins']['get']('TrackChangesEditing'),_0x3a2890=_0x3e6340['plugins']['has']('LegacyTodoListEditing');function _0x1b7764(_0xd227d0){return()=>{const _0x56c439=_0x3e6340['model']['document']['selection'],_0x1ce29e=_0x3e6340['commands']['get'](_0xd227d0);if(_0x1ce29e['value'])return void _0x3e6340['execute']('paragraph',{});const _0x4b456f=_0xd227d0['slice'](0x0,-0x4),_0x5a7e84=function(_0x1c5673,_0x1658ad,_0x395671){let _0x4fcdf5=Array['from'](_0x1c5673)['filter'](_0x114a40=>function(_0xe3c062,_0x3dc997){return _0x3dc997['checkChild'](_0xe3c062['parent'],'listItem')&&!_0x3dc997['isObject'](_0xe3c062);}(_0x114a40,_0x395671));_0x4fcdf5=_0x4fcdf5['filter'](_0x48b150=>!_0x48b150['is']('element','listItem')||_0x48b150['getAttribute']('listType')!=_0x1658ad);const _0x20edc3=new Set();for(const _0x51db21 of _0x4fcdf5)_0x51db21['is']('element','listItem')?_0x20edc3['add'](Le(_0x51db21)):_0x20edc3['add'](_0x51db21);return Array['from'](_0x20edc3);}(_0x56c439['getSelectedBlocks'](),_0x4b456f,_0x3e6340['model']['schema']);_0x3e6340['model']['change'](()=>{for(const _0x2636af of _0x5a7e84)_0x325946['markBlockFormat'](_0x2636af,{'commandName':_0xd227d0,'commandParams':[{'forceValue':!_0x1ce29e['value']}],'formatGroupId':'blockName'},Ee(_0x2636af));});};}function _0x5215a1(_0x5eab1b){return()=>{const _0x458167=function(_0x2e12d0){let _0x4dc1ad=Array['from'](_0x2e12d0);const _0x34e397=_0x4dc1ad['findIndex'](_0x394bbf=>'listItem'!=_0x394bbf['name']);return _0x34e397>-0x1&&(_0x4dc1ad=_0x4dc1ad['slice'](0x0,_0x34e397)),_0x4dc1ad;}(_0x3e6340['model']['document']['selection']['getSelectedBlocks']()),_0x1cf4c7=_0x3e6340['model']['createRange'](_0x3e6340['model']['createPositionAt'](_0x458167[0x0],'before'),_0x3e6340['model']['createPositionAt'](_0x458167[_0x458167['length']-0x1],'end'));_0x3e6340['model']['change'](()=>{_0x325946['markBlockFormat'](_0x1cf4c7,{'commandName':_0x5eab1b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5d0345){const _0xf044cf=new Set();for(const _0xfd182d of _0x5d0345){let _0x52dc3d=_0xfd182d['nextSibling'];for(;_0x52dc3d&&_0x52dc3d['getAttribute']('listIndent')>_0xfd182d['getAttribute']('listIndent');)_0xf044cf['add'](_0x52dc3d),_0x52dc3d=_0x52dc3d['nextSibling'];}return Array['from'](_0xf044cf);}(_0x458167));});};}_0x325946['enableCommand']('numberedList',_0x1b7764('numberedList')),_0x325946['enableCommand']('bulletedList',_0x1b7764('bulletedList')),_0x3a2890&&_0x325946['enableCommand']('todoList',_0x1b7764('todoList')),_0x325946['enableCommand']('indentList',_0x5215a1('indentList')),_0x325946['enableCommand']('outdentList',_0x5215a1('outdentList')),_0x3a2890&&_0x325946['enableCommand']('checkTodoList',()=>{const _0x2a06d2=_0x3e6340['commands']['get']('checkTodoList'),_0x468254=Array['from'](_0x2a06d2['_selectedElements']);_0x468254['filter'](_0x56145a=>_0x56145a['getAttribute']('todoListChecked')!=_0x2a06d2['value']),_0x3e6340['model']['change'](()=>{for(const _0x4fa402 of _0x468254)_0x325946['markBlockFormat'](_0x4fa402,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2a06d2['value']}]});});}),_0x325946['descriptionFactory']['registerElementLabel']('listItem',_0x40fb42=>c(_0x25f36e,'ELEMENT_LIST_ITEM',_0x40fb42)),_0x325946['descriptionFactory']['registerDescriptionCallback'](_0x26e241=>{if('formatBlock'!=_0x26e241['type']&&'formatInline'!=_0x26e241['type'])return;const {data:_0x188fa3}=_0x26e241;if(_0x188fa3){if('numberedList'==_0x188fa3['commandName']||'bulletedList'==_0x188fa3['commandName']||'todoList'==_0x188fa3['commandName'])switch(_0x188fa3['commandName']['replace']('List','')){case'bulleted':return _0x2c6e63(c(_0x25f36e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c6e63(c(_0x25f36e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c6e63(c(_0x25f36e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x188fa3['commandName'])return{'type':'format','content':c(_0x25f36e,'*Indent:*\x20%0',c(_0x25f36e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x188fa3['commandName'])return{'type':'format','content':c(_0x25f36e,'*Outdent:*\x20%0',c(_0x25f36e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x188fa3['commandName'])return _0x188fa3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x25f36e,'*Check\x20item*')}:{'type':'format','content':c(_0x25f36e,'*Uncheck\x20item*')};}function _0x2c6e63(_0x14fba0){return{'type':'format','content':c(_0x25f36e,'*Change\x20to:*\x20%0',_0x14fba0)};}});}}function Le(_0xba9778){const _0x585a16=_0xba9778['getAttribute']('listIndent');if(0x0==_0x585a16)return _0xba9778;let _0x35e7cf=_0xba9778;for(;_0xba9778['previousSibling']&&_0xba9778['previousSibling']['is']('element','listItem');){const _0x17848e=_0xba9778['previousSibling']['getAttribute']('listIndent');if(_0x17848e==_0x585a16)_0x35e7cf=_0xba9778['previousSibling'];else{if(_0x17848e<_0x585a16)break;}_0xba9778=_0xba9778['previousSibling'];}return _0x35e7cf;}function Ee(_0x11fd54){const _0x56dea4=[];if(_0x11fd54['is']('element','listItem')&&_0x11fd54['getAttribute']('listIndent')>0x0){let _0x156da6=_0x11fd54['nextSibling'];for(;_0x156da6&&'listItem'==_0x156da6['name']&&_0x156da6['getAttribute']('listIndent')==_0x11fd54['getAttribute']('listIndent');)_0x56dea4['push'](_0x156da6),_0x156da6=_0x156da6['nextSibling'];}return _0x56dea4;}class Q extends _0x340863{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x42429c=this['editor']['config']['get']('list.properties'),_0x1a29e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x42429c['styles']&&_0x1a29e2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x42429c['reversed']&&_0x1a29e2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x42429c['startIndex']&&_0x1a29e2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1a29e2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xa93070,_0x25caa5={}){const _0x528529=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17c809=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x528529['markMultiRangeBlockFormat'](_0x17c809,{'commandName':'listStyle','commandParams':[{'type':_0x25caa5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1abc42,_0x50f489={}){const _0x53ed14=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fd9ab=this['_getSuggestionBlocks'](_0x518142=>_0x518142['is']('element','listItem')&&'numbered'===_0x518142['getAttribute']('listType'));if(_0x3fd9ab['length']<0x1)return;const _0x3af8b9=_0x3fd9ab['map'](_0x2d1e4b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d1e4b,'before'),this['editor']['model']['createPositionAt'](_0x2d1e4b,0x0)));this['editor']['model']['change'](()=>{_0x53ed14['markMultiRangeBlockFormat'](_0x3af8b9,{'commandName':'listReversed','commandParams':[{'reversed':_0x50f489['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1be702,_0x30b658={}){const _0xe8beb2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d5661=this['_getSuggestionBlocks'](_0xa53609=>_0xa53609['is']('element','listItem')&&'numbered'===_0xa53609['getAttribute']('listType'));if(_0x1d5661['length']<0x1)return;const _0x1699af=_0x1d5661['map'](_0x3b5697=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b5697,'before'),this['editor']['model']['createPositionAt'](_0x3b5697,0x0)));this['editor']['model']['change'](()=>{_0xe8beb2['markMultiRangeBlockFormat'](_0x1699af,{'commandName':'listStart','commandParams':[{'startIndex':_0x30b658['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5c3bd9){if('formatBlock'!=_0x5c3bd9['type']&&'formatInline'!=_0x5c3bd9['type'])return;const _0x5413b8=this['editor']['locale'],{data:_0x48e885}=_0x5c3bd9;if(!_0x48e885)return;let _0x2f9acf,_0x1904f8;switch(_0x48e885['commandName']){case'listStyle':_0x2f9acf='*Change\x20to:*\x20%0',_0x1904f8={'type':'format','content':c(_0x5413b8,_0x2f9acf,c(_0x5413b8,this['_getTranslationKeyForListStyle'](_0x48e885['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2f9acf=_0x48e885['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1904f8={'type':'format','content':c(_0x5413b8,_0x2f9acf)};break;case'listStart':_0x2f9acf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1904f8={'type':'format','content':c(_0x5413b8,_0x2f9acf,_0x48e885['commandParams'][0x0]['startIndex'])};}return _0x1904f8;}['_getSuggestionBlocksForListStyle'](){const _0x34da5c=this['editor']['plugins']['get']('LegacyListUtils');let _0x287058=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x287058[0x0]?.['is']('element','listItem')&&_0x287058['unshift'](..._0x34da5c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x287058[_0x287058['length']-0x1]?.['is']('element','listItem')&&_0x287058['push'](..._0x34da5c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x287058=[...new Set(_0x287058)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x287058=_0x287058['filter'](_0x1783b1=>_0x1783b1['is']('element','listItem'))),_0x287058;}['_getSuggestionBlocks'](_0x24b628){const _0x55e084=this['editor']['plugins']['get']('LegacyListUtils');let _0x2266c3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x24b628)['map'](_0x4558c9=>{const _0x5614fe=this['editor']['model']['createPositionAt'](_0x4558c9,0x0);return[..._0x55e084['getSiblingNodes'](_0x5614fe,'backward'),..._0x55e084['getSiblingNodes'](_0x5614fe,'forward')];})['flat']();return _0x2266c3=[...new Set(_0x2266c3)],_0x2266c3;}['_getTranslationKeyForListStyle'](_0x84989e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x84989e)||'default')['toUpperCase']()+'_LIST_'+_0x84989e['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x340863{['afterInit'](){const _0x508fd5=this['editor'];if(!_0x508fd5['plugins']['has']('MediaEmbedEditing'))return;const _0x562000=_0x508fd5['plugins']['get']('TrackChangesEditing'),_0x4d1647=_0x508fd5['locale'];_0x562000['enableCommand']('mediaEmbed'),_0x562000['descriptionFactory']['registerElementLabel']('media',_0x53be46=>c(_0x4d1647,'ELEMENT_MEDIA',_0x53be46)),_0x508fd5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x43c045,{writer:_0x49a72c,options:_0xb27a5c})=>{if(_0xb27a5c['showSuggestionHighlights'])return _0x49a72c['createEmptyElement']('div');},'converterPriority':'high'}),_0x508fd5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1f3111,_0x5aeb40,_0x384fe2)=>{_0x384fe2['options']['showSuggestionHighlights']&&_0x1f3111['stop']();},{'priority':'high'});}}class pt extends _0x340863{['afterInit'](){const _0x2e941a=this['editor'];_0x2e941a['plugins']['has']('MentionEditing')&&_0x2e941a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x340863{['afterInit'](){const _0x377fe5=this['editor'];if(!_0x377fe5['plugins']['has']('MergeFieldsEditing'))return;const _0x360681=_0x377fe5['plugins']['get']('TrackChangesEditing'),_0x29930b=_0x377fe5['locale'];_0x360681['enableCommand']('insertMergeField'),_0x360681['enableCommand']('insertMergeFieldBlock'),_0x360681['enableCommand']('insertMergeFieldImage'),_0x360681['descriptionFactory']['registerElementLabel']('mergeField',_0x231ebc=>c(_0x29930b,'ELEMENT_MERGE_FIELD',_0x231ebc)),_0x360681['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x27e788=>c(_0x29930b,'ELEMENT_MERGE_FIELD',_0x27e788)),_0x360681['descriptionFactory']['registerDescriptionCallback'](_0x474367=>{if('insertion'!=_0x474367['type']&&'deletion'!=_0x474367['type'])return;const _0x2a56c6=_0x474367['getContainedElement']();if(null==_0x2a56c6)return;const _0x2872c5=_0x377fe5['plugins']['get']('MergeFieldsEditing');let _0x296f8f;switch(_0x2872c5['getMergeFieldType'](_0x2a56c6)){case null:return;case'image':{const _0x5129c3=_0x2872c5['unwrapAffixes'](_0x2a56c6['getAttribute']('src'));_0x296f8f=_0x2872c5['getLabel'](_0x5129c3)||_0x5129c3;break;}default:{const _0x19989a=_0x2a56c6['getAttribute']('id');_0x296f8f=_0x2872c5['getLabel'](_0x19989a)||_0x19989a;break;}}return'insertion'==_0x474367['type']?{'type':'insertion','content':c(_0x29930b,'*Insert:*\x20%0','\x22'+_0x296f8f+'\x22\x20'+c(_0x29930b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x29930b,'*Remove:*\x20%0','\x22'+_0x296f8f+'\x22\x20'+c(_0x29930b,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x340863{['afterInit'](){const _0x597123=this['editor'],_0x5f264f=_0x597123['plugins']['get']('TrackChangesEditing');_0x597123['plugins']['has']('MultiLevelList')&&(_0x5f264f['enableDefaultAttributesIntegration']('multiLevelList'),_0x5f264f['registerBlockAttribute']('listMarkerStyle'),_0x5f264f['descriptionFactory']['registerDescriptionCallback'](_0x186e79=>this['handleDescriptions'](_0x186e79)));}['handleDescriptions'](_0x165563){const _0x20f74d=this['editor']['locale'],{data:_0x368f09}=_0x165563,_0x55101d={'type':'format','content':''};if(_0x368f09&&'listMarkerStyle'==_0x368f09['key']){if(!_0x368f09['oldValue'])return{'type':'format','content':c(_0x20f74d,'*Set\x20format:*\x20%0',c(_0x20f74d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x368f09['newValue']+')'};if(!_0x368f09['newValue']){let _0x5659e2=_0x165563['head'];for(;_0x5659e2;){if(_0x5659e2['data']&&'listType'==_0x5659e2['data']['key']&&_0x5659e2['data']['newValue'])return _0x55101d;_0x5659e2=_0x5659e2['next'];}return{'type':'format','content':c(_0x20f74d,'*Remove\x20format:*\x20%0',c(_0x20f74d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x368f09['oldValue']+')'};}}}}class bt extends _0x340863{['afterInit'](){const _0xef9a98=this['editor'];if(!_0xef9a98['plugins']['has']('PageBreakEditing'))return;_0xef9a98['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x586c10=_0xef9a98['plugins']['get']('TrackChangesEditing'),_0xd861de=_0xef9a98['locale'];_0x586c10['descriptionFactory']['registerElementLabel']('pageBreak',_0x572c10=>c(_0xd861de,'ELEMENT_PAGE_BREAK',_0x572c10));}}class yt extends _0x340863{['afterInit'](){const _0x411009=this['editor'];if(!_0x411009['plugins']['has']('Paragraph'))return;const _0x2134e2=_0x411009['locale'],_0x2a16a5=_0x411009['plugins']['get']('TrackChangesEditing');_0x2a16a5['descriptionFactory']['registerElementLabel']('paragraph',_0x5b2f5f=>c(_0x2134e2,'ELEMENT_PARAGRAPH',_0x5b2f5f)),_0x2a16a5['enableDefaultAttributesIntegration']('paragraph'),_0x2a16a5['enableCommand']('insertParagraph'),_0x411009['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x411009),{'priority':'highest'}),_0x411009['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2024ea,_0x54496b,_0x167b7a)=>{_0x167b7a['options']['showSuggestionHighlights']&&nr(_0x411009,{'showActiveMarker':!0x1})(_0x2024ea,_0x54496b,_0x167b7a);},{'priority':'highest'});const _0x58df4d=_0x2a16a5['descriptionFactory'];_0x58df4d['registerDescriptionCallback'](_0x3d8a82=>{if('insertion'!==_0x3d8a82['type'])return;const {start:_0x3cd593,end:_0x2a7007}=_0x3d8a82['getFirstRange']();if(!_0x3cd593['isTouching'](_0x2a7007)||!_0x3cd593['nodeAfter'])return;const _0x558fe0=_0x411009['model']['schema'],_0x4f1a70=_0x3cd593['nodeAfter'];return _0x558fe0['isBlock'](_0x4f1a70)&&!_0x558fe0['isLimit'](_0x4f1a70)&&_0x558fe0['checkChild'](_0x4f1a70,'$text')?{'type':'insertion','content':c(_0x2134e2,'*Insert:*\x20%0',_0x58df4d['getItemLabel'](_0x4f1a70,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33e4b6=this['editor'],_0x3d6d59=_0x33e4b6['locale'];_0x33e4b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x383d65=>{if('formatBlock'!=_0x383d65['type'])return;const {data:_0x20a948}=_0x383d65;return _0x20a948&&'paragraph'==_0x20a948['commandName']?{'type':'format','content':c(_0x3d6d59,'*Change\x20to:*\x20%0',c(_0x3d6d59,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1b7490,{showActiveMarker:_0x4e0432=!0x0}={}){return(_0x2c255a,_0x242d9f,_0x4c4910)=>{const _0x501fbd=_0x1b7490['plugins']['get']('TrackChangesEditing'),_0x536dcc=_0x242d9f['markerRange']['start'],_0x1d96a0=_0x242d9f['markerRange']['end'],_0x3806f1=_0x1b7490['model']['schema'];if(!_0x536dcc['isTouching'](_0x1d96a0)||!_0x536dcc['nodeAfter'])return;const _0x57ef12=_0x536dcc['nodeAfter'];if(_0x3806f1['isBlock'](_0x57ef12)&&!_0x3806f1['isLimit'](_0x57ef12)&&_0x3806f1['checkChild'](_0x57ef12,'$text')){if(!_0x4c4910['consumable']['consume'](_0x242d9f['markerRange'],_0x2c255a['name']))return;const {id:_0x163d2f,authorId:_0x233c86}=_0x501fbd['_splitMarkerName'](_0x242d9f['markerName']),_0x1930c3=_0x4c4910['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x163d2f,'data-author-id':_0x233c86}),_0x5836f6=_0x4c4910['mapper']['toViewPosition'](_0x1d96a0);_0x4e0432&&_0x501fbd['activeMarkers']['includes'](_0x242d9f['markerName'])&&_0x4c4910['writer']['addClass']('ck-suggestion-marker--active',_0x1930c3),_0x4c4910['writer']['insert'](_0x5836f6,_0x1930c3),_0x4c4910['mapper']['bindElementToMarker'](_0x1930c3,_0x242d9f['markerName']);}};}class jt extends _0x340863{['afterInit'](){const _0x245013=this['editor'];_0x245013['commands']['get']('replaceSource')&&_0x245013['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x340863{['afterInit'](){const _0x13485f=this['editor'];if(!_0x13485f['plugins']['has']('RemoveFormatEditing'))return;_0x13485f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fa3da=this['editor'];_0x2fa3da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1840ba=>{if('formatBlock'!=_0x1840ba['type']&&'formatInline'!=_0x1840ba['type'])return;const {data:_0x52371d}=_0x1840ba;return _0x52371d&&'removeFormat'==_0x52371d['commandName']?{'type':'format','content':c(_0x2fa3da['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x340863{['afterInit'](){const _0x1bbada=this['editor'];if(!_0x1bbada['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x433a26=_0x1bbada['plugins']['get']('TrackChangesEditing');_0x433a26['enableCommand']('goToPreviousRestrictedEditingException'),_0x433a26['enableCommand']('goToNextRestrictedEditingException');const _0x4d7624=_0x1bbada['plugins']['get']('RestrictedEditingModeEditing');_0x4d7624['enableCommand']('trackChanges'),_0x4d7624['enableCommand']('acceptSuggestion'),_0x4d7624['enableCommand']('discardSuggestion'),_0x4d7624['enableCommand']('acceptAllSuggestions'),_0x4d7624['enableCommand']('discardAllSuggestions'),_0x4d7624['enableCommand']('acceptSelectedSuggestions'),_0x4d7624['enableCommand']('discardSelectedSuggestions');}}class It extends _0x340863{['afterInit'](){const _0x58075b=this['editor'];if(!_0x58075b['plugins']['has']('ShiftEnter'))return;const _0x53dd24=_0x58075b['plugins']['get']('TrackChangesEditing');_0x53dd24['enableCommand']('shiftEnter'),_0x58075b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x58075b),{'priority':'high'}),_0x58075b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x58075b),{'priority':'high'}),_0x58075b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x40a8b7,_0x586b51,_0x4de1f9)=>{_0x4de1f9['options']['showSuggestionHighlights']&&je(_0x58075b,{'showActiveMarker':!0x1})(_0x40a8b7,_0x586b51,_0x4de1f9);}),_0x53dd24['descriptionFactory']['registerElementLabel']('softBreak',_0x38fd45=>c(_0x58075b['locale'],'ELEMENT_LINE_BREAK',_0x38fd45));}}function je(_0x17fda8,{showActiveMarker:_0x1f8c9a=!0x0}={}){return(_0x57ec37,_0x59587b,_0x4ea0c3)=>{const _0x276df7=_0x17fda8['plugins']['get']('TrackChangesEditing');if(!_0x4ea0c3['consumable']['test'](_0x59587b['markerRange'],_0x57ec37['name']))return;const _0x537b3f=_0x17fda8['model'];for(const _0x1dfa12 of _0x59587b['markerRange']['getItems']()){if(!_0x1dfa12['is']('element','softBreak'))continue;const _0x13e402='deletion'==_0x59587b['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x475c91,authorId:_0x96f73c}=_0x276df7['_splitMarkerName'](_0x59587b['markerName']),_0x4a82c7=_0x4ea0c3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x13e402,'data-suggestion':_0x475c91,'data-author-id':_0x96f73c}),_0x465b5c=_0x4ea0c3['mapper']['toViewPosition'](_0x537b3f['createPositionBefore'](_0x1dfa12));_0x1f8c9a&&_0x276df7['activeMarkers']['includes'](_0x59587b['markerName'])&&_0x4ea0c3['writer']['addClass']('ck-suggestion-marker--active',_0x4a82c7),_0x4ea0c3['writer']['insert'](_0x465b5c,_0x4a82c7),_0x4ea0c3['mapper']['bindElementToMarker'](_0x4a82c7,_0x59587b['markerName']);}};}class _t extends _0x340863{['afterInit'](){const _0x25333a=this['editor'],_0x59dac6=_0x25333a['model'],_0x33cb18=_0x25333a['locale'];if(!_0x25333a['plugins']['has']('StandardEditingModeEditing'))return;const _0x1b5276=_0x25333a['plugins']['get']('TrackChangesEditing'),_0x1220f7='restrictedEditingException',_0x151e53=_0x25333a['commands']['get'](_0x1220f7);_0x1b5276['enableCommand'](_0x1220f7,(_0x492c90,_0x4c0c78={})=>{const _0x29a6c8=_0x59dac6['document']['selection'];if(_0x29a6c8['isCollapsed'])return void _0x492c90(_0x4c0c78);const _0x1d2971=void 0x0!==_0x4c0c78['forceValue']?_0x4c0c78['forceValue']:!_0x151e53['value'];_0x59dac6['change'](()=>{const _0x515fe2=Array['from'](_0x29a6c8['getRanges']());for(const _0x422a8a of _0x515fe2){const _0x1fcc3b=_0x1d2971?[_0x422a8a]:io(_0x1220f7,_0x422a8a,_0x59dac6);for(const _0x31cd96 of _0x1fcc3b)_0x1b5276['markInlineFormat'](_0x31cd96,{'commandName':_0x1220f7,'commandParams':[{'forceValue':_0x1d2971}]});}});}),_0x1b5276['descriptionFactory']['registerDescriptionCallback'](_0x43eb27=>{if('formatBlock'!=_0x43eb27['type']&&'formatInline'!=_0x43eb27['type'])return;const {data:_0x14a990}=_0x43eb27;return _0x14a990&&_0x14a990['commandName']==_0x1220f7?_0x14a990['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x33cb18,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x33cb18,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x340863{['afterInit'](){const _0x5a762f=this['editor'];if(!_0x5a762f['plugins']['has']('Style')||!_0x5a762f['plugins']['has']('DataSchema'))return;const _0x20d3fe=_0x5a762f['plugins']['get']('TrackChangesEditing'),_0x355f6b=_0x5a762f['locale'],_0xfecd65=_0x5a762f['config']['get']('style')||{},_0x5a9762=_0x5a762f['plugins']['get']('GeneralHtmlSupport'),_0x1be0c1=_0x5a762f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5a762f['plugins']['get']('DataSchema'),_0xfecd65['definitions']);_0x20d3fe['enableDefaultAttributesIntegration']('style');const _0x5b7c0a=new Set();for(const _0x2b2662 of _0x1be0c1['block']){const _0x2744f2=_0x5a9762['getGhsAttributeNameForElement'](_0x2b2662['element']);_0x5b7c0a['add'](_0x2744f2);}const _0x5de4e7=new Set();for(const _0x5b0719 of _0x1be0c1['inline']){const _0x1c487b=_0x5a9762['getGhsAttributeNameForElement'](_0x5b0719['element']);_0x5de4e7['add'](_0x1c487b);for(const _0x1699c2 of _0x5b0719['ghsAttributes'])_0x5de4e7['add'](_0x1699c2);}for(const _0xb6fd54 of _0x5b7c0a)_0x20d3fe['registerBlockAttribute'](_0xb6fd54),_0x20d3fe['descriptionFactory']['registerAttributeLabel'](_0xb6fd54,c(_0x355f6b,'FORMAT_STYLE'));for(const _0x421062 of _0x5de4e7)_0x20d3fe['registerInlineAttribute'](_0x421062),_0x20d3fe['descriptionFactory']['registerAttributeLabel'](_0x421062,c(_0x355f6b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4353e9=this['editor'],_0x20fe89=_0x4353e9['locale'];_0x4353e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c9536=>{if('formatBlock'!=_0x5c9536['type']&&'formatInline'!=_0x5c9536['type'])return;const {data:_0x1996ed}=_0x5c9536;return _0x1996ed&&'style'===_0x1996ed['commandName']?_0x1996ed['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x20fe89,'*Set\x20format:*\x20%0',_0x1996ed['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x20fe89,'*Remove\x20format:*\x20%0',_0x1996ed['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x340863{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x130a18){super(_0x130a18),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x18053e=this['editor'],_0x23a3a2=_0x18053e['model']['document']['selection'];if(!_0x18053e['plugins']['has']('TableEditing'))return;const _0x128631=_0x18053e['locale'],_0x16a70a=_0x18053e['plugins']['get']('TrackChangesEditing'),_0x359818=_0x18053e['plugins']['get']('TableUtils');_0x16a70a['descriptionFactory']['registerElementLabel']('table',_0x387b69=>c(_0x128631,'ELEMENT_TABLE',_0x387b69)),this['_setupColumnsRowsFixing'](),_0x16a70a['enableCommand']('insertTable'),_0x16a70a['enableCommand']('selectTableRow'),_0x16a70a['enableCommand']('selectTableColumn');for(const _0x20e5c7 of['insertTableRowAbove','insertTableRowBelow']){const _0x13f5e3=_0x18053e['commands']['get'](_0x20e5c7);_0x16a70a['enableCommand'](_0x20e5c7,_0x40e697=>{_0x18053e['model']['change'](_0x13bf0a=>{_0x40e697();const _0x5898a4='above'===_0x13f5e3['order'],_0x1fc9f9=_0x359818['getSelectionAffectedTableCells'](_0x23a3a2),_0x2f77a7=_0x359818['getRowIndexes'](_0x1fc9f9),_0x283d08=_0x5898a4?_0x2f77a7['first']-0x1:_0x2f77a7['last']+0x1,_0x1af63a=_0x1fc9f9[0x0]['findAncestor']('table'),_0x168f44=_0x359818['createTableWalker'](_0x1af63a,{'startRow':_0x283d08,'endRow':_0x283d08}),_0xe2f82=Array['from'](_0x168f44)['map'](_0x49ca4f=>_0x13bf0a['createRangeOn'](_0x49ca4f['cell']));_0x16a70a['markMultiRangeInsertion'](_0xe2f82,'tableRow');});});}for(const _0x27c97d of['insertTableColumnLeft','insertTableColumnRight']){const _0x18c63f=_0x18053e['commands']['get'](_0x27c97d);_0x16a70a['enableCommand'](_0x27c97d,_0x42614d=>{_0x18053e['model']['change'](_0x52e60e=>{_0x42614d();const _0x4b5146='left'===_0x18c63f['order'],_0x4bc9fa=_0x359818['getSelectionAffectedTableCells'](_0x23a3a2),_0x327566=_0x359818['getColumnIndexes'](_0x4bc9fa),_0x5cb2d1=_0x4b5146?_0x327566['first']-0x1:_0x327566['last']+0x1,_0x33be8c=_0x4bc9fa[0x0]['findAncestor']('table'),_0x203803=_0x359818['createTableWalker'](_0x33be8c,{'startRow':0x0,'column':_0x5cb2d1,'includeAllSlots':!0x1}),_0x5cc70a=Array['from'](_0x203803)['map'](_0x4c76d7=>_0x52e60e['createRangeOn'](_0x4c76d7['cell']));_0x16a70a['markMultiRangeInsertion'](_0x5cc70a,'tableColumn');});});}for(const _0x162bf2 of['removeTableRow','removeTableColumn']){const _0x5c8c70=_0x162bf2['substr'](0xb),_0x27d9e3=_0x5c8c70['toLowerCase'](),_0x1cd791=_0x27d9e3['substr'](0x0,0x3)+'span',_0x5dea49='table'+_0x5c8c70,_0x215a3f='min'+_0x5c8c70,_0x301c05='max'+_0x5c8c70;_0x16a70a['enableCommand'](_0x162bf2,()=>{_0x18053e['model']['change'](_0x54b2a7=>{const _0x2016db=_0x359818['getSelectionAffectedTableCells'](_0x23a3a2),_0x49c1db=_0x2016db[0x0]['findAncestor']('table');let _0x14c02f;if('removeTableRow'==_0x162bf2){const _0x1f873f=_0x359818['getRowIndexes'](_0x2016db);_0x14c02f={'startRow':_0x1f873f['first'],'endRow':_0x1f873f['last'],'includeAllSlots':!0x0};}else{const _0x245e86=_0x359818['getColumnIndexes'](_0x2016db);_0x14c02f={'startColumn':_0x245e86['first'],'endColumn':_0x245e86['last'],'includeAllSlots':!0x0};}const _0x4fdfda=_0x359818['createTableWalker'](_0x49c1db,_0x14c02f),_0x163c59=Array['from'](_0x4fdfda)['map'](({cell:_0x321f20})=>_0x321f20),_0x4df525=xe(_0x163c59['filter'](_0x16a5b5=>_0x16a5b5['hasAttribute'](_0x1cd791))),_0x8d35b5=xe(_0x163c59['filter'](_0x95103=>!_0x95103['hasAttribute'](_0x1cd791)))['map'](_0x16a8b7=>_0x54b2a7['createRangeOn'](_0x16a8b7)),_0x272f7a=_0x16a70a['markMultiRangeDeletion'](_0x8d35b5,_0x5dea49);if(_0x272f7a&&('tableRow'==_0x272f7a['subType']||'tableColumn'==_0x272f7a['subType'])){const _0x1a1cc1=this['_getSuggestionCoords'](_0x272f7a);for(const _0x3646b0 of _0x4df525){const _0x197708=_0x54b2a7['createRangeOn'](_0x3646b0),_0x4817d3=_0x359818['getCellLocation'](_0x3646b0),_0x1901df=_0x3646b0['getAttribute'](_0x1cd791)-0x1,_0x325887=_0x1a1cc1[_0x215a3f],_0x394575=_0x1a1cc1[_0x301c05];_0x325887<=_0x4817d3[_0x27d9e3]&&_0x4817d3[_0x27d9e3]+_0x1901df<=_0x394575&&_0x272f7a['addRange'](_0x197708);}}});});}function _0xaf986f(_0x16b0cf){const _0x4429d0=Array['from'](_0x23a3a2['getRanges']())['map'](_0x3002d5=>_0x44e392['fromRange'](_0x3002d5));_0x18053e['model']['change'](_0x1c4f3a=>{const _0x29b9a1=_0x1c4f3a['batch'];_0x16b0cf=_0x16b0cf['filter'](_0x2c02b6=>'$graveyard'!=_0x2c02b6['root']['rootName']),_0x1c4f3a['setSelection'](_0x16b0cf),_0x18053e['commands']['get']('removeTableRow')['refresh'](),_0x18053e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x18053e['model']['enqueueChange'](()=>{_0x18053e['model']['enqueueChange'](_0x29b9a1,_0x49e7a8=>{const _0x2f2dfa=_0x4429d0['filter'](_0x257564=>'$graveyard'!=_0x257564['root']['rootName']);_0x2f2dfa['length']>0x0&&_0x49e7a8['setSelection'](_0x2f2dfa);for(const _0x4131c5 of _0x4429d0)_0x4131c5['detach']();});});});}function _0x4ed3b9(_0x378a48){_0x18053e['model']['change'](_0x144d55=>{const _0x448880=Array['from'](_0x23a3a2['getRanges']())['map'](_0x3582ef=>_0x44e392['fromRange'](_0x3582ef)),_0x3ea12=[];for(const _0x4bd79e of _0x378a48)for(const _0x498419 of _0x4bd79e['getItems']({'shallow':!0x0}))_0x3ea12['push'](_0x498419);for(const _0xce1630 of _0x3ea12)'$graveyard'!=_0xce1630['root']['rootName']&&(_0x144d55['setSelection'](_0x144d55['createPositionAt'](_0xce1630,0x0)),_0x18053e['commands']['get']('removeTableColumn')['refresh'](),_0x18053e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x26a839=_0x448880['filter'](_0x3fa567=>'$graveyard'!=_0x3fa567['root']['rootName']);_0x26a839['length']>0x0&&_0x144d55['setSelection'](_0x26a839);for(const _0x3825e9 of _0x448880)_0x3825e9['detach']();});}function _0x26b2a4(_0x2523ad,_0x86d7b9){return _0x86d7b9['every'](_0x282f98=>_0x2523ad['some'](_0x141f94=>_0x141f94['end']['isEqual'](_0x282f98['start'])||_0x282f98['end']['isEqual'](_0x141f94['start'])));}function _0x4166f9(_0x540965,_0x2b8e9d){return!_0x540965['some'](_0x562184=>_0x2b8e9d['some'](_0x2c509a=>_0x562184['isIntersecting'](_0x2c509a)))&&_0x540965['some'](_0x5dd65c=>_0x2b8e9d['some'](_0x15fd67=>_0x5dd65c['end']['isTouching'](_0x15fd67['start'])));}_0x18053e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18ae13,_0x4077cd,_0x4bf464)=>{if(!_0x4bf464['options']['showSuggestionHighlights'])return;const _0x35eed1=_0x4077cd['item'];if(!_0x35eed1||!_0x35eed1['is']('element','tableCell'))return;const _0x254f2c=_0x4bf464['mapper']['toViewElement'](_0x35eed1);if(_0x254f2c){const {id:_0x130fef,authorId:_0x2cea33}=_0x16a70a['_splitMarkerName'](_0x4077cd['markerName']);_0x1c9741(_0x254f2c,_0x4bf464['writer'],(_0x38893d,_0x1ad9ae,_0x19e5a5)=>{_0x19e5a5['addClass'](_0xa4e2e(_0x1ad9ae['classes']),_0x38893d),_0x19e5a5['setAttribute']('data-suggestion-id',_0x130fef,_0x38893d),_0x19e5a5['setAttribute']('data-author-id',_0x2cea33,_0x38893d);},(_0x331dd4,_0x4842d0,_0xc31875)=>{_0xc31875['removeClass'](_0xa4e2e(_0x4842d0['classes']),_0x331dd4),_0xc31875['removeAttribute']('data-suggestion-id',_0x331dd4),_0xc31875['removeAttribute']('data-author-id',_0x331dd4);});}},{'priority':'highest'}),_0x16a70a['descriptionFactory']['registerDescriptionCallback'](_0x3f0cf6=>{if('insertion'!=_0x3f0cf6['type']&&'deletion'!=_0x3f0cf6['type'])return;const _0x429bfd=_0x3f0cf6['getContainedElement']();if(null!=_0x429bfd&&_0x429bfd['is']('element','table')){if('insertion'==_0x3f0cf6['type']){const _0x2bb143=_0x3f0cf6['getItems']()['filter'](_0x4d4452=>_0x4d4452['is']('$textProxy'))['map'](_0x4b8ca6=>_0x4b8ca6['data']);if(_0x2bb143['length'])return{'type':'insertion','content':c(_0x128631,'*Insert:*\x20%0',c(_0x128631,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2bb143['join']('\x20')+'\x22'))};}if('deletion'==_0x3f0cf6['type']){const _0x5b2b04=_0x3f0cf6['getItems']()['filter'](_0x33fbba=>_0x33fbba['is']('$textProxy'))['map'](_0x388ba7=>_0x388ba7['data']);if(_0x5b2b04['length'])return{'type':'deletion','content':c(_0x128631,'*Remove:*\x20%0',c(_0x128631,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5b2b04['join']('\x20')+'\x22'))};}}}),_0x16a70a['descriptionFactory']['registerDescriptionCallback'](_0x296b2f=>{if('tableRow'==_0x296b2f['subType']){const _0x24292d=_0x296b2f['getItems']()['filter'](_0xf5d11a=>_0xf5d11a['is']('$textProxy'))['map'](_0x27d4ce=>_0x27d4ce['data']),_0x420f9d=this['_getSuggestionCoords'](_0x296b2f),_0x107c7c=_0x420f9d['maxRow']-_0x420f9d['minRow']+0x1;if('insertion'==_0x296b2f['type'])return _0x24292d['length']?{'type':'insertion','content':c(_0x128631,'*Insert:*\x20%0',c(_0x128631,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x107c7c,'\x22'+_0x24292d['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x128631,'*Insert:*\x20%0',c(_0x128631,'ELEMENT_TABLE_ROW',_0x107c7c))};if('deletion'==_0x296b2f['type'])return _0x24292d['length']?{'type':'deletion','content':c(_0x128631,'*Remove:*\x20%0',c(_0x128631,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x107c7c,'\x22'+_0x24292d['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x128631,'*Remove:*\x20%0',c(_0x128631,'ELEMENT_TABLE_ROW',_0x107c7c))};}if('tableColumn'==_0x296b2f['subType']){const _0x2d5669=_0x296b2f['getItems']()['filter'](_0x219ad0=>_0x219ad0['is']('$textProxy'))['map'](_0x12616f=>_0x12616f['data']),_0x6aceac=this['_getSuggestionCoords'](_0x296b2f),_0x57fb19=_0x6aceac['maxColumn']-_0x6aceac['minColumn']+0x1;if('insertion'==_0x296b2f['type'])return _0x2d5669['length']?{'type':'insertion','content':c(_0x128631,'*Insert:*\x20%0',c(_0x128631,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x57fb19,'\x22'+_0x2d5669['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x128631,'*Insert:*\x20%0',c(_0x128631,'ELEMENT_TABLE_COLUMN',_0x57fb19))};if('deletion'==_0x296b2f['type'])return _0x2d5669['length']?{'type':'deletion','content':c(_0x128631,'*Remove:*\x20%0',c(_0x128631,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x57fb19,'\x22'+_0x2d5669['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x128631,'*Remove:*\x20%0',c(_0x128631,'ELEMENT_TABLE_COLUMN',_0x57fb19))};}}),_0x16a70a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xaf986f),_0x16a70a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xaf986f),_0x16a70a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4ed3b9),_0x16a70a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4ed3b9),_0x16a70a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x26b2a4),_0x16a70a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x26b2a4),_0x16a70a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4166f9),_0x16a70a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4166f9);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4f28b3=this['editor'],_0x2535ef=_0x4f28b3['model']['document']['selection'];return(_0x569631,_0x2b2258)=>{_0x4f28b3['model']['change'](_0x3057de=>{const {commandName:_0x58b8eb,commandParams:_0x364c91}=_0x2b2258;let _0x22f437=_0x569631[0x0]['end']['nodeBefore'];_0x364c91&&_0x364c91[0x0]&&!0x1===_0x364c91[0x0]['forceValue']&&(_0x22f437=_0x569631[0x0]['start']['nodeAfter']);const _0x3e2fae=_0x3057de['createRangeIn'](_0x22f437);if('$graveyard'==_0x3e2fae['root']['rootName'])return;const _0x2d475a=Array['from'](_0x2535ef['getRanges']())['map'](_0x1137c4=>_0x44e392['fromRange'](_0x1137c4));_0x3057de['setSelection'](_0x3e2fae),_0x4f28b3['commands']['get'](_0x58b8eb)['refresh'](),_0x364c91['push']({'forceDefaultExecution':!0x0}),_0x4f28b3['execute'](_0x58b8eb,..._0x364c91);const _0x24565f=_0x2d475a['filter'](_0x290a84=>'$graveyard'!=_0x290a84['root']['rootName']);_0x24565f['length']>0x0&&_0x3057de['setSelection'](_0x24565f);for(const _0x207f7e of _0x2d475a)_0x207f7e['detach']();});};}['_getCoordsForCells'](_0x10f3d5){const _0x5ce494=this['editor']['plugins']['get']('TableUtils');let _0x5a207c=Number['MAX_SAFE_INTEGER'],_0x59fc44=Number['MIN_SAFE_INTEGER'],_0x460d24=Number['MAX_SAFE_INTEGER'],_0x316328=Number['MIN_SAFE_INTEGER'];for(const _0x526aee of _0x10f3d5){if('$graveyard'==_0x526aee['root']['rootName'])continue;const {row:_0x119b6b,column:_0x3e9502}=_0x5ce494['getCellLocation'](_0x526aee),_0x44efcd=_0x526aee['hasAttribute']('rowspan')?_0x526aee['getAttribute']('rowspan')-0x1:0x0,_0x5667c5=_0x526aee['hasAttribute']('colspan')?_0x526aee['getAttribute']('colspan')-0x1:0x0;_0x5a207c=_0x119b6b<_0x5a207c?_0x119b6b:_0x5a207c,_0x59fc44=_0x119b6b+_0x44efcd>_0x59fc44?_0x119b6b+_0x44efcd:_0x59fc44,_0x460d24=_0x3e9502<_0x460d24?_0x3e9502:_0x460d24,_0x316328=_0x3e9502+_0x5667c5>_0x316328?_0x3e9502+_0x5667c5:_0x316328;}return{'minRow':_0x5a207c,'maxRow':_0x59fc44,'minColumn':_0x460d24,'maxColumn':_0x316328};}['_setupColumnsRowsFixing'](){const _0x178179=this['editor'],_0x37e526=_0x178179['plugins']['get']('TrackChangesEditing'),_0x6af0c0=_0x178179['plugins']['get']('TableUtils');_0x178179['model']['document']['on']('change:data',()=>{const _0xc1fb36=Array['from'](_0x178179['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x102112,data:_0x57d49e}of _0xc1fb36){const {group:_0x5f5202,id:_0xe2d552,subType:_0x26a58a}=_0x37e526['_splitMarkerName'](_0x102112);if('suggestion'!=_0x5f5202)continue;if(null!=_0x57d49e['oldRange'])continue;const _0x59d2a1=_0x37e526['getSuggestion'](_0xe2d552);this['_tablePostFixingSubtypes']['includes'](_0x26a58a)&&this['_tableSuggestions']['add'](_0x59d2a1);}},{'priority':'low'});const _0x5e6098=(_0x504500,_0x36c56b)=>{let _0x1b4066=!0x1;const _0x62c83b=_0x36c56b['createRangeOn'](_0x504500),_0x5512d7=_0x504500['findAncestor']('table'),_0x5a4835=_0x6af0c0['getCellLocation'](_0x504500);for(const _0x6da9b1 of this['_tableSuggestions']){const _0x297990=_0x6da9b1['subType'],_0xb9806a=_0x297990['startsWith']('tablePaste'),_0x1605b7=_0x297990['substr'](_0xb9806a?0xa:0x5),_0xa51ae2=_0x1605b7['toLowerCase'](),_0x1e7ea6=_0xa51ae2['substr'](0x0,0x3)+'span',_0x57a614='min'+_0x1605b7,_0x3dc9da='max'+_0x1605b7;if(!_0x6da9b1['isInContent'])continue;if(_0x5512d7!=_0x6da9b1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x6da9b1['isIntersectingWithRange'](_0x62c83b))continue;const _0xa8b728=_0x504500['hasAttribute'](_0x1e7ea6)?_0x504500['getAttribute'](_0x1e7ea6)-0x1:0x0,_0x59ced3=this['_getSuggestionCoords'](_0x6da9b1),_0x2e1b03=_0x59ced3[_0x57a614],_0x58aa4e=_0x59ced3[_0x3dc9da];_0x2e1b03<=_0x5a4835[_0xa51ae2]&&_0x5a4835[_0xa51ae2]+_0xa8b728<=_0x58aa4e&&(_0x6da9b1['addRange'](_0x62c83b),_0x1b4066=!0x0);}return _0x1b4066;};_0x178179['model']['document']['registerPostFixer'](_0x3d2ce9=>{let _0x552400=!0x1;for(const _0xc3cbf3 of _0x178179['model']['document']['differ']['getChanges']())if('insert'==_0xc3cbf3['type']){if('tableRow'==_0xc3cbf3['name']){for(const _0x1ef3b5 of _0xc3cbf3['position']['nodeAfter']['getChildren']())_0x552400=_0x552400||_0x5e6098(_0x1ef3b5,_0x3d2ce9);}else'tableCell'==_0xc3cbf3['name']&&(_0x552400=_0x552400||_0x5e6098(_0xc3cbf3['position']['nodeAfter'],_0x3d2ce9));}return _0x552400;});}['_getSuggestionCoords'](_0x35b114){return this['_getCoordsForCells'](_0x35b114['getRanges']()['map'](_0x28eeae=>_0x28eeae['start']['nodeAfter']));}}function xe(_0x7523c6){return Array['from'](new Set(_0x7523c6)['values']());}class Nt extends _0x340863{static get['requires'](){return[Ct];}['afterInit'](){const _0x3345f8=this['editor'],_0x5e2e14=_0x3345f8['model']['document']['selection'],_0xb95acf=_0x3345f8['locale'];if(!_0x3345f8['plugins']['has']('TableEditing'))return;const _0x4ed3f3=_0x3345f8['plugins']['get']('TrackChangesEditing'),_0x10df7e=_0x3345f8['plugins']['get']('TableUtils'),_0x5e4e72=_0x3345f8['plugins']['get'](Ct);_0x5e4e72['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4ed3f3['enableCommand']('mergeTableCells',()=>{const _0x3a1b5a=_0x10df7e['getSelectionAffectedTableCells'](_0x3345f8['model']['document']['selection']);_0x3345f8['model']['change'](()=>{_0x4ed3f3['markMultiRangeBlockFormat'](_0x3a1b5a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3345f8['commands']['get']('mergeTableCells')['on']('execute',(_0x28146b,_0x3d15c8)=>{_0x3345f8['commands']['get']('trackChanges')['value']&&(_0x3d15c8['length']>0x0&&_0x3d15c8[_0x3d15c8['length']-0x1]&&_0x3d15c8[_0x3d15c8['length']-0x1]['forceDefaultExecution']||_0x4ed3f3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x28146b['stop']());},{'priority':'highest'});for(const _0x4733d8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2891d2=_0x3345f8['commands']['get'](_0x4733d8);_0x4ed3f3['enableCommand'](_0x4733d8,()=>{const _0x1bd980=_0x3345f8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x29cf57=>_0x29cf57['is']('element','tableCell')),_0x5aa6b1=_0x2891d2['value'];_0x3345f8['model']['change'](()=>{_0x4ed3f3['markMultiRangeBlockFormat']([_0x1bd980,_0x5aa6b1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1ba946 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x470d0a=_0x3345f8['commands']['get'](_0x1ba946);_0x4ed3f3['enableCommand'](_0x1ba946,()=>{const _0x4fce6b=_0x10df7e['getSelectionAffectedTableCells'](_0x3345f8['model']['document']['selection'])[0x0],_0x6d98f7=_0x4fce6b['findAncestor']('table'),{column:_0x11db15,row:_0x283bc0}=_0x10df7e['getCellLocation'](_0x4fce6b);let _0x1c364b=[];if('horizontally'==_0x470d0a['direction']){const _0x24bc05=_0x10df7e['createTableWalker'](_0x6d98f7,{'startRow':_0x283bc0,'endRow':_0x283bc0,'includeAllSlots':!0x0});_0x1c364b=Array['from'](_0x24bc05)['map'](_0x1f579e=>_0x1f579e['cell']);}else{const _0xa510c1=_0x10df7e['createTableWalker'](_0x6d98f7,{'column':_0x11db15,'includeAllSlots':!0x0});_0x1c364b=Array['from'](_0xa510c1)['map'](_0x6e3d88=>_0x6e3d88['cell']);}_0x3345f8['model']['change'](_0x3dd21a=>{_0x4ed3f3['markBlockFormat'](_0x3dd21a['createRangeOn'](_0x4fce6b),{'commandName':_0x1ba946,'commandParams':[]},_0x1c364b,_0x1ba946);});});}_0x4ed3f3['descriptionFactory']['registerDescriptionCallback'](_0x560411=>{if('formatBlock'!=_0x560411['type']&&'formatInline'!=_0x560411['type'])return;const {data:_0x46ac84}=_0x560411;return _0x46ac84&&'mergeTableCells'==_0x46ac84['commandName']?{'type':'format','content':c(_0xb95acf,'*Merge\x20cells*')}:void 0x0;}),_0x4ed3f3['descriptionFactory']['registerDescriptionCallback'](_0x323e9c=>{if('formatBlock'!=_0x323e9c['type']&&'formatInline'!=_0x323e9c['type'])return;const {data:_0xf3a29a}=_0x323e9c;return _0xf3a29a?'splitTableCellVertically'==_0xf3a29a['commandName']?{'type':'format','content':c(_0xb95acf,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xf3a29a['commandName']?{'type':'format','content':c(_0xb95acf,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1830c3=_0x5e4e72['_acceptFormatSuggestionCallbackFactory']();for(const _0x392d87 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4ed3f3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x392d87,'accept',_0x1830c3);for(const _0x290ae5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4ed3f3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x290ae5,'accept',_0x1830c3);_0x4ed3f3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x213cfe=>{_0x3345f8['model']['change'](_0x5c20ff=>{const _0x1ba0d7=Array['from'](_0x5e2e14['getRanges']())['map'](_0x35b11e=>_0x44e392['fromRange'](_0x35b11e));_0x5c20ff['setSelection'](_0x213cfe),_0x3345f8['commands']['get']('mergeTableCells')['refresh'](),_0x3345f8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4b0487=_0x1ba0d7['filter'](_0x13b017=>'$graveyard'!=_0x13b017['root']['rootName']);_0x4b0487['length']>0x0&&_0x5c20ff['setSelection'](_0x4b0487);for(const _0x15d926 of _0x1ba0d7)_0x15d926['detach']();});});for(const _0x301605 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x57efa4=_0x3345f8['commands']['get'](_0x301605);_0x57efa4['on']('set:isEnabled',(_0x31d5b9,_0x13cdb4,_0x4131ab)=>{if(_0x4131ab){const _0xc79187=_0x3345f8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x98e6d8=>_0x98e6d8['is']('element','tableCell'));this['_areMergableCells'](_0x57efa4['value'],_0xc79187)||(_0x31d5b9['return']=!0x1,_0x31d5b9['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1202ca=this['editor']['commands']['get']('mergeTableCells'),_0x362e0c=this['editor']['plugins']['get']('TableUtils');if(!_0x1202ca['isEnabled'])return!0x1;const _0xdd0b74=_0x362e0c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4881d2 of _0xdd0b74)for(const _0x56b9d4 of _0xdd0b74)if(_0x4881d2!=_0x56b9d4&&!this['_areMergableCells'](_0x4881d2,_0x56b9d4))return!0x1;return!0x0;}['_areMergableCells'](_0x4cb731,_0x4454bc){const _0x469303=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a6f14=this['editor']['model']['createRangeOn'](_0x4cb731),_0x248df8=this['editor']['model']['createRangeOn'](_0x4454bc),_0x152de0=new Set(),_0xf2b279=new Set();for(const _0x27ae37 of _0x469303['getSuggestions']())if(('insertion'==_0x27ae37['type']||'deletion'==_0x27ae37['type']||'mergeTableCells'==_0x27ae37['subType'])&&_0x27ae37['isInContent']){for(const _0x443405 of _0x27ae37['getRanges']())_0x443405['containsRange'](_0x5a6f14,!0x0)&&_0x152de0['add'](_0x27ae37['type']+':'+_0x27ae37['author']['id']),_0x443405['containsRange'](_0x248df8,!0x0)&&_0xf2b279['add'](_0x27ae37['type']+':'+_0x27ae37['author']['id']);}if(_0x152de0['size']!=_0xf2b279['size'])return!0x1;for(const _0x416bd3 of _0x152de0)if(!_0xf2b279['has'](_0x416bd3))return!0x1;return!0x0;}}class Dt extends _0x340863{static get['requires'](){return[Ct];}['afterInit'](){const _0x36e76c=this['editor'];if(!_0x36e76c['plugins']['has']('TableEditing'))return;const _0xcf8dd3=_0x36e76c['locale'],_0x606324=_0x36e76c['plugins']['get']('TrackChangesEditing');_0x606324['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x606324['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x606324['registerBlockAttribute']('headingRows'),_0x606324['registerBlockAttribute']('headingColumns'),_0x606324['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xcf8dd3,'FORMAT_HEADER_ROW')),_0x606324['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xcf8dd3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x51d9f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdf6428=this['editor']['plugins']['get']('TableUtils'),_0x3ece6f=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x4b401({showActiveMarker:_0x804253=!0x0,setDataAttribute:_0x5d8de4=!0x0}={}){return(_0x4618b4,_0xcf07f2,_0x265ab8)=>{const {type:_0xc087b7,id:_0x3e0a86}=_0x51d9f5['_splitMarkerName'](_0xcf07f2['markerName']),_0x4c6675=_0x51d9f5['getSuggestion'](_0x3e0a86),_0x576e74=_0x4c6675['data'];if('formatBlock'!=_0x4c6675['type']||!_0x576e74||'setTableColumnHeader'!=_0x576e74['commandName'])return;if(_0xcf07f2['item'])return void _0x4618b4['stop']();if(!_0x265ab8['consumable']['consume'](_0xcf07f2['markerRange'],_0x4618b4['name']))return;const _0x2ceec0=_0xcf07f2['markerRange']['start']['nodeAfter'],_0x3f5bcb=_0xcf07f2['markerRange']['end']['nodeBefore'],_0x3ac363=_0x2ceec0['parent']['parent'],{column:_0x185682}=_0xdf6428['getCellLocation'](_0x2ceec0),{column:_0x27f7f5}=_0xdf6428['getCellLocation'](_0x3f5bcb);for(let _0x2c5a3c=_0x185682;_0x2c5a3c<=_0x27f7f5;_0x2c5a3c++){const _0x3be2cf=_0xdf6428['createTableWalker'](_0x3ac363,{'column':_0x2c5a3c,'includeAllSlots':!0x1});for(const _0x453f60 of _0x3be2cf){const _0x48c5f7=_0x453f60['cell'],_0x18eacf=_0x265ab8['mapper']['toViewElement'](_0x48c5f7);_0x265ab8['writer']['addClass']('ck-suggestion-marker-'+_0xc087b7,_0x18eacf),_0x5d8de4&&_0x265ab8['writer']['setAttribute']('data-suggestion',_0x3e0a86,_0x18eacf),_0x265ab8['mapper']['bindElementToMarker'](_0x18eacf,_0xcf07f2['markerName']),_0x804253&&(_0x51d9f5['activeMarkers']['includes'](_0xcf07f2['markerName'])?_0x265ab8['writer']['addClass']('ck-suggestion-marker--active',_0x18eacf):_0x265ab8['writer']['removeClass']('ck-suggestion-marker--active',_0x18eacf));}}};}_0x51d9f5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3ece6f),_0x51d9f5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3ece6f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4b401(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3ec41e,_0x27425c,_0x1e9853)=>{_0x1e9853['options']['showSuggestionHighlights']&&_0x4b401({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3ec41e,_0x27425c,_0x1e9853);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4ada1d,_0x1e7d1c,_0x57b3ec)=>{const {type:_0x474b25,id:_0xfda569}=_0x51d9f5['_splitMarkerName'](_0x1e7d1c['markerName']),_0x605aad=_0x51d9f5['getSuggestion'](_0xfda569),_0x55ca81=_0x605aad['data'];if('formatBlock'!=_0x605aad['type']||!_0x55ca81||'setTableColumnHeader'!=_0x55ca81['commandName'])return;const _0x40127e=_0x57b3ec['mapper']['markerNameToElements'](_0x1e7d1c['markerName']);if(_0x40127e){for(const _0x704460 of _0x40127e)_0x57b3ec['writer']['removeClass']('ck-suggestion-marker-'+_0x474b25,_0x704460),_0x57b3ec['writer']['removeClass']('ck-suggestion-marker--active',_0x704460),_0x57b3ec['writer']['removeAttribute']('data-suggestion',_0x704460),_0x57b3ec['mapper']['unbindElementFromMarkerName'](_0x704460,_0x1e7d1c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x535f69=this['editor'],_0x366bd5=_0x535f69['locale'];function _0x149aa4(_0x2b9367){return{'type':'format','content':c(_0x366bd5,'*Format:*\x20%0',_0x2b9367)};}_0x535f69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28483f=>{if('formatBlock'!=_0x28483f['type'])return;const {data:_0x4442e3}=_0x28483f;if(_0x4442e3){if('setTableRowHeader'==_0x4442e3['commandName']){const _0x4e05a3=_0x4442e3['commandParams'][0x0]['forceValue'];return _0x149aa4(c(_0x366bd5,_0x4e05a3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4442e3['commandName']){const _0x1c2048=_0x4442e3['commandParams'][0x0]['forceValue'];return _0x149aa4(c(_0x366bd5,_0x1c2048?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x340863{['afterInit'](){const _0xa1a2aa=this['editor'],_0x1c3f2b=_0xa1a2aa['locale'],_0x53048c=_0xa1a2aa['plugins']['get']('TrackChangesEditing');function _0x232419(_0x5695d9){return{'type':'format','content':''+c(_0x1c3f2b,'*Set\x20table\x20type:*\x20%0',_0x5695d9)};}_0xa1a2aa['plugins']['has']('TableLayout')&&(_0x53048c['enableCommand']('insertTableLayout'),_0x53048c['enableDefaultAttributesIntegration']('tableType'),_0x53048c['registerBlockAttribute']('tableType'),_0x53048c['descriptionFactory']['registerElementLabel'](_0x17f5aa=>_0x17f5aa['is']('element','table')&&'layout'===_0x17f5aa['getAttribute']('tableType'),_0x5ac1c9=>c(_0x1c3f2b,'ELEMENT_LAYOUT_TABLE',_0x5ac1c9)),_0x53048c['descriptionFactory']['registerDescriptionCallback'](_0x25c511=>{const {data:_0x5a2016}=_0x25c511;if(_0x5a2016&&'tableType'==_0x5a2016['key'])switch(_0x5a2016['newValue']){case'layout':return _0x232419(c(_0x1c3f2b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x232419(c(_0x1c3f2b,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x47a328=>[_0x47a328,null]));class $t extends _0x340863{static get['requires'](){return[Ct];}['afterInit'](){const _0x53dbb5=this['editor'];if(!_0x53dbb5['plugins']['has']('TableClipboard'))return;const _0x3a9fd5=_0x53dbb5['plugins']['get']('TrackChangesEditing'),_0x2b601b=_0x53dbb5['plugins']['get']('TableUtils'),_0x4d5df9=_0x53dbb5['plugins']['get'](Ct),_0x45800f=_0x53dbb5['plugins']['get']('TableClipboard'),_0x3b7c5b=_0x53dbb5['plugins']['get']('TableSelection'),_0x44cabd=_0x53dbb5['plugins']['get'](_0x469236);_0x4d5df9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x53dbb5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x53dbb5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x20d7b7=null,_0x2729a8=!0x1;_0x44cabd['on']('contentInsertion',(_0x2b10df,_0x197449)=>{_0x2729a8='paste'===_0x197449['method'];}),_0x53dbb5['model']['on']('insertContent',(_0x41042e,_0x266202)=>{if(!_0x2729a8&&null===_0x3b7c5b['getSelectedTableCells']())return;const [_0x1dfefc,_0x59b8cc]=_0x266202,_0x473a37=_0x266202[_0x266202['length']-0x1];_0x473a37&&_0x473a37['forceDefaultExecution']||_0x3a9fd5['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x61a972,_0x55e299,_0x3e7f1b,_0x5f3878,_0x5a9c15){if(_0x55e299&&!_0x55e299['is']('documentSelection'))return!0x1;const _0x8cf6f2=_0x5a9c15['getTableIfOnlyTableInContent'](_0x61a972,_0x3e7f1b);if(!_0x8cf6f2||!He(_0x8cf6f2,void 0x0,_0x5f3878))return!0x1;const _0x1a3373=_0x5f3878['getSelectionAffectedTableCells'](_0x3e7f1b['document']['selection']);if(!_0x1a3373['length'])return!0x1;const _0x1c043c=_0x1a3373[0x0]['findAncestor']('table'),_0x2d7cf1=_0x5f3878['getRowIndexes'](_0x1a3373),_0x1de9be=_0x5f3878['getColumnIndexes'](_0x1a3373),_0xcf135b={'startRow':_0x2d7cf1['first'],'endRow':_0x2d7cf1['last'],'startColumn':_0x1de9be['first'],'endColumn':_0x1de9be['last']};return 0x1==_0x1a3373['length']&&(_0xcf135b['endRow']+=_0x5f3878['getRows'](_0x8cf6f2)-0x1,_0xcf135b['endColumn']+=_0x5f3878['getColumns'](_0x8cf6f2)-0x1),He(_0x1c043c,_0xcf135b,_0x5f3878);}(_0x1dfefc,_0x59b8cc,_0x53dbb5['model'],_0x2b601b,_0x45800f)&&(_0x41042e['stop'](),_0x20d7b7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x53dbb5['model']['change'](()=>{_0x53dbb5['model']['insertContent'](_0x266202[0x0],_0x266202[0x1],_0x266202[0x2],{'forceDefaultExecution':!0x0});const _0xba6cfb=_0xce776c(),{rowInsertionRanges:_0x418b51,columnInsertionRanges:_0x1f241f,insertionRanges:_0x517302,deletionRanges:_0x91dfea,cells:_0x37509b}=_0x20d7b7;_0x418b51['length']&&_0x3a9fd5['markMultiRangeInsertion'](_0x418b51,'tablePasteRow',{'tablePasteChainId':_0xba6cfb}),_0x1f241f['length']&&_0x3a9fd5['markMultiRangeInsertion'](_0x1f241f,'tablePasteColumn',{'tablePasteChainId':_0xba6cfb}),_0x517302['length']&&(_0x3a9fd5['markMultiRangeInsertion'](_0x517302,'tablePaste',{'tablePasteChainId':_0xba6cfb,'skipNestingCheck':!0x0}),_0x517302['forEach'](_0x715a9e=>_0x715a9e['detach']?.())),_0x91dfea['length']&&(_0x3a9fd5['markMultiRangeDeletion'](_0x91dfea,'tablePaste',{'tablePasteChainId':_0xba6cfb,'skipNestingCheck':!0x0}),_0x91dfea['forEach'](_0x58d53b=>_0x58d53b['detach']?.()));const _0x548531=_0x3a9fd5['markMultiRangeBlockFormat'](_0x37509b['map'](({element:_0x2f5535})=>_0x2f5535),{'formatGroupId':_0xce776c()},[],'tablePasteCell',{'tablePasteChainId':_0xba6cfb});if(_0x548531){const _0xdfe31c=_0x548531['getMarkers'](),_0x36ce92=[];for(const {element:_0x1c1293,attributes:_0x1f6b5f}of _0x37509b){if(!_0x1f6b5f)continue;const _0x192c71=_0x53dbb5['model']['createRangeOn'](_0x1c1293),_0x35261a=_0xdfe31c['find'](_0x22b12e=>_0x22b12e['getRange']()['isEqual'](_0x192c71));_0x35261a&&_0x36ce92['push']([_0x35261a['name'],_0x1f6b5f]);}_0x36ce92['length']&&_0x548531['setAttribute']('markerAttributes',Object['fromEntries'](_0x36ce92));}_0x20d7b7=null;}));},{'priority':_0x1695e6['high']+0xa}),_0x44cabd['on']('contentInsertion',()=>{_0x2729a8=!0x1;},{'priority':'lowest'}),_0x53dbb5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2c6cf7,_0x3e27ac)=>{const [_0x976010,_0x2b806d,,_0x4ade68]=_0x3e27ac;if(!_0x20d7b7)return;_0x2c6cf7['stop']();const _0x5a0cf5=_0x976010['cell'],_0x1fb39c=_0x2b806d,_0x19155c=De(_0x5a0cf5),_0x45b303=De(_0x1fb39c);_0x2c6cf7['return']=_0x5a0cf5;let _0x3b6091=null,_0xfcb4ee=null;if(_0x45b303||_0x19155c){if(_0x19155c&&!_0x45b303){_0x4ade68['remove'](_0x5a0cf5['getChild'](0x0));for(const _0x1fde90 of Array['from'](_0x1fb39c['getChildren']()))_0x4ade68['insert'](_0x1fde90,_0x5a0cf5,'end');const _0x478714=_0x20d7b7['rowInsertionIndexes']['includes'](_0x976010['row']),_0x39f8d=_0x20d7b7['columnInsertionIndexes']['includes'](_0x976010['column']);_0x478714||_0x39f8d||(_0x3b6091=_0x44e392['fromRange'](_0x4ade68['createRangeIn'](_0x5a0cf5)));}else _0x45b303&&!_0x19155c&&(_0xfcb4ee=_0x4ade68['createRangeIn'](_0x5a0cf5));}else{const _0x4794f0=_0x4ade68['createElement']('tableCellSuggestion'),_0x597bcc=_0x4ade68['createElement']('tableCellSuggestion');_0x4ade68['wrap'](_0x4ade68['createRangeIn'](_0x5a0cf5),_0x597bcc),_0x4ade68['insert'](_0x4794f0,_0x5a0cf5,0x0);for(const _0x229677 of Array['from'](_0x1fb39c['getChildren']()))_0x4ade68['insert'](_0x229677,_0x4794f0,'end');_0x3b6091=_0x44e392['fromRange'](_0x4ade68['createRangeOn'](_0x4794f0)),_0xfcb4ee=_0x44e392['fromRange'](_0x4ade68['createRangeOn'](_0x597bcc));}const _0x5bb4c6=Array['from'](_0x1fb39c['getAttributes']())['filter'](([_0xf2a360])=>Oe['includes'](_0xf2a360));_0x20d7b7['cells']['push']({'element':_0x5a0cf5,'attributes':_0x5bb4c6['length']?Object['fromEntries'](_0x5bb4c6):null}),_0x3b6091&&_0x20d7b7['insertionRanges']['push'](_0x3b6091),_0xfcb4ee&&_0x20d7b7['deletionRanges']['push'](_0xfcb4ee);},{'priority':'high'}),_0x2b601b['on']('insertColumns',(_0x17e835,_0x3e7757)=>{const [_0x549e25,_0x575417={}]=_0x3e7757;if(!_0x20d7b7)return;const _0x23e57d=_0x575417['at']||0x0,_0x3bdb95=_0x575417['columns']||0x1;_0x20d7b7['columnInsertionIndexes']=new Array(_0x3bdb95)['fill'](_0x23e57d)['map']((_0x3585fe,_0x1bd7a3)=>_0x3585fe+_0x1bd7a3);for(const {cell:_0x59af6c}of _0x2b601b['createTableWalker'](_0x549e25,{'startColumn':_0x23e57d,'endColumn':_0x23e57d+_0x3bdb95-0x1}))_0x20d7b7['columnInsertionRanges']['push'](_0x53dbb5['model']['createRangeOn'](_0x59af6c));},{'priority':'low'}),_0x2b601b['on']('insertRows',(_0x516fb1,_0xc63b2d)=>{const [_0x36eb37,_0x3c047a={}]=_0xc63b2d;if(!_0x20d7b7)return;const _0x5d67a5=_0x3c047a['at']||0x0,_0x2ab747=_0x3c047a['rows']||0x1;_0x20d7b7['rowInsertionIndexes']=new Array(_0x2ab747)['fill'](_0x5d67a5)['map']((_0x3edbb8,_0x830432)=>_0x3edbb8+_0x830432);for(const {cell:_0x3bf9ca}of _0x2b601b['createTableWalker'](_0x36eb37,{'startRow':_0x5d67a5,'endRow':_0x5d67a5+_0x2ab747-0x1}))_0x20d7b7['rowInsertionRanges']['push'](_0x53dbb5['model']['createRangeOn'](_0x3bf9ca));},{'priority':'low'}),_0x3a9fd5['descriptionFactory']['registerDescriptionCallback'](_0x1061bf=>{if(_0x1061bf['subType']&&_0x1061bf['subType']['startsWith']('tablePaste'))return _0x1061bf['previous']?{}:{'type':'insertion','content':c(_0x53dbb5['locale'],'*Replace\x20table\x20cells*')};});const _0xe71f96=()=>!0x1;for(const _0x523ebe of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3a9fd5['_suggestionFactory']['registerCustomCallback']('insertion',_0x523ebe,'join',_0xe71f96),_0x3a9fd5['_suggestionFactory']['registerCustomCallback']('deletion',_0x523ebe,'join',_0xe71f96),_0x3a9fd5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x523ebe,'join',_0xe71f96);_0x3a9fd5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xe71f96),_0x3a9fd5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4bfb27,_0x180b1c,_0x137ede)=>{const _0x348de6=_0x4bfb27['map'](_0xc838a4=>_0xc838a4['getContainedElement']())['filter'](_0x5c8caa=>_0x5c8caa),_0x1b2093=new Map(_0x348de6['map'](_0x55d08d=>[_0x55d08d,null]));if(_0x20d7b7){for(const {element:_0x245748,attributes:_0x1a5397}of _0x20d7b7['cells'])_0x1a5397&&_0x1b2093['set'](_0x245748,_0x1a5397);}else{if(_0x137ede&&_0x137ede['markerAttributes'])for(const [_0x5b4c93,_0x257fad]of Object['entries'](_0x137ede['markerAttributes'])){const _0x27e3e0=_0x53dbb5['model']['markers']['get'](_0x5b4c93),_0xfb3299=_0x27e3e0?_0x27e3e0['getRange']()['getContainedElement']():null;_0xfb3299&&_0x1b2093['set'](_0xfb3299,_0x257fad);}}_0x53dbb5['model']['change'](_0x1ccfa0=>{for(const [_0x4f83f1,_0x5ce9a3]of _0x1b2093)_0x1ccfa0['setAttributes']({...Ue,..._0x5ce9a3},_0x4f83f1);});});const _0x2ead4b=(_0x2e133a,_0x261c1c)=>{_0x3a9fd5['_suggestionFactory']['registerCustomCallback'](_0x2e133a,'tablePaste',_0x261c1c,(_0x4845b6,_0x1a9a26,_0x57fae0)=>{_0x53dbb5['model']['change'](_0x41b605=>{const _0x4387f4=[];for(const _0x41245d of _0x4845b6){const _0x438e57=_0x41245d['start']['nodeAfter'];_0x438e57['is']('element','tableCellSuggestion')&&_0x4387f4['push'](_0x438e57);}_0x3a9fd5['_suggestionFactory']['getSuggestionCallback'](_0x2e133a,null,_0x261c1c)(_0x4845b6,_0x1a9a26,_0x57fae0);for(const _0xad2ff7 of _0x4387f4)'$graveyard'!=_0xad2ff7['root']['rootName']&&_0x41b605['unwrap'](_0xad2ff7);});});};_0x2ead4b('insertion','accept'),_0x2ead4b('insertion','discard'),_0x2ead4b('deletion','accept'),_0x2ead4b('deletion','discard'),_0x3a9fd5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x313b39=>{const _0xa5c08b=_0x313b39['map'](_0x345d0c=>_0x345d0c['getContainedElement']()),_0x31b8d6=_0xa5c08b[0x0]['findAncestor']('table'),{minRow:_0x3541ea,maxRow:_0x130e4b}=_0x4d5df9['_getCoordsForCells'](_0xa5c08b);_0x2b601b['removeRows'](_0x31b8d6,{'at':_0x3541ea,'rows':_0x130e4b-_0x3541ea+0x1});}),_0x3a9fd5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5a5f7b=>{const _0x4ce528=_0x5a5f7b['map'](_0x5db707=>_0x5db707['getContainedElement']()),_0x1e5c73=_0x4ce528[0x0]['findAncestor']('table'),{minColumn:_0x206365,maxColumn:_0x208ef6}=_0x4d5df9['_getCoordsForCells'](_0x4ce528);_0x2b601b['removeColumns'](_0x1e5c73,{'at':_0x206365,'columns':_0x208ef6-_0x206365+0x1});});const _0xe809b0=(_0x1fc730,_0x489c02)=>{if(!_0x489c02['subType']||!_0x489c02['subType']['startsWith']('tablePaste'))return;const _0x2024bc=_0x489c02['attributes']['tablePasteChainId'],_0x1aee28=_0x3a9fd5['getSuggestions']()['filter'](_0x3cc1a8=>_0x3cc1a8['isInContent']&&_0x3cc1a8['attributes']&&_0x3cc1a8['attributes']['tablePasteChainId']==_0x2024bc);_0x1aee28['length']&&_0x489c02['getAllAdjacentSuggestions']()['length']!=_0x1aee28['length']&&_0x1aee28['reduce']((_0x248c69,_0x45d37a)=>(_0x248c69['next']=_0x45d37a,_0x45d37a['previous']=_0x248c69,_0x45d37a));};function _0x37ee2e(_0x121040,_0x104743=!0x0){const {id:_0x1e965a,authorId:_0x364fb9}=_0x3a9fd5['_splitMarkerName'](_0x121040['markerName']),_0x226f06=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5cab6b=_0x3a9fd5['activeMarkers']['includes'](_0x121040['markerName']);return _0x5cab6b&&_0x226f06['push']('ck-suggestion-marker--active'),{'classes':_0x226f06,'attributes':{'data-suggestion':_0x1e965a,'data-author-id':_0x364fb9},'priority':_0x5cab6b&&_0x104743?0xbc2:0xbb8};}_0x3a9fd5['on']('suggestionLoaded',_0xe809b0,{'priority':'high'}),_0x3a9fd5['on']('suggestionUnloaded',_0xe809b0,{'priority':'high'}),_0x53dbb5['model']['document']['registerPostFixer'](()=>{let _0x49d0e7=!0x1;const _0x4232c7=Array['from'](_0x53dbb5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xaceb33,data:_0x4f456b}of _0x4232c7){const {group:_0x40cd6c,type:_0xa91620,id:_0x10eedf}=_0x3a9fd5['_splitMarkerName'](_0xaceb33);if('suggestion'!=_0x40cd6c||'deletion'!=_0xa91620||_0x4f456b['oldRange'])continue;if(!_0x3a9fd5['hasSuggestion'](_0x10eedf))continue;const _0x564261=_0x3a9fd5['getSuggestion'](_0x10eedf)['getRanges'](),_0x17f0a5=_0x53dbb5['plugins']['get']('Users')['me'];for(const _0x2f26f3 of _0x3a9fd5['getSuggestions']()){if(!_0x2f26f3['isInContent']||_0x2f26f3['author']!=_0x17f0a5)continue;if('formatBlock'!=_0x2f26f3['type']||'tablePasteCell'!=_0x2f26f3['subType'])continue;if(_0x2f26f3['getRanges']()['every'](_0x1fb805=>_0x564261['some'](_0x478ebe=>_0x478ebe['containsRange'](_0x1fb805,!0x0)))){for(const _0x2985ae of _0x2f26f3['getAllAdjacentSuggestions']())_0x2985ae['isInContent']&&(_0x2985ae['discard'](),_0x49d0e7=!0x0);}}}return _0x49d0e7;}),_0x53dbb5['model']['document']['registerPostFixer'](_0x35818d=>{const _0x58a033=_0x53dbb5['commands']['get']('redo');if(!_0x58a033||!_0x58a033['_createdBatches']['has'](_0x35818d['batch']))return!0x1;let _0x2c2ee6=!0x1;const _0x39fe11=_0x53dbb5['plugins']['get']('Users')['me'],_0x2198a0=_0x53dbb5['model']['document']['differ']['getChanges'](),_0x227ce1=Array['from'](_0x53dbb5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x12e4c8,data:_0x1eb78b})=>{const {group:_0x24b07f,subType:_0x208871,authorId:_0xd6f88e}=_0x3a9fd5['_splitMarkerName'](_0x12e4c8);return'suggestion'==_0x24b07f&&'tablePaste'==_0x208871&&_0xd6f88e==_0x39fe11['id']&&!_0x1eb78b['oldRange'];});for(const _0x2d49f0 of _0x2198a0){if('insert'!=_0x2d49f0['type']||'tableCellSuggestion'!=_0x2d49f0['name']||0x1!=_0x2d49f0['length'])continue;const _0x24389e=_0x35818d['createRange'](_0x2d49f0['position'],_0x2d49f0['position']['getShiftedBy'](0x1));if(!_0x227ce1['find'](({data:_0x51e4be})=>_0x51e4be['newRange']['isEqual'](_0x24389e))){for(const {name:_0x5e4e7b,data:_0x5dac1a}of _0x227ce1)if(_0x24389e['containsRange'](_0x5dac1a['newRange'])){_0x35818d['updateMarker'](_0x5e4e7b,{'range':_0x24389e}),_0x2c2ee6=!0x0;break;}}}return _0x2c2ee6;}),_0x53dbb5['model']['document']['registerPostFixer'](_0x5c3751=>{let _0x1e0d48=!0x1;const _0x15ef49=_0x53dbb5['plugins']['get']('Users')['me'],_0x553354=_0x3a9fd5['getSuggestions']()['filter'](_0x2f07d9=>_0x2f07d9['isInContent']&&_0x2f07d9['author']==_0x15ef49),_0x26cc71=new Set(),_0x1d8975=new Set();for(const _0x532cc1 of _0x553354)if('tablePaste'==_0x532cc1['subType'])for(const _0x2f996c of _0x532cc1['getMarkers']()){const _0x57eda7=_0x2f996c['getRange']()['getContainedElement']();if(_0x57eda7){if(_0x57eda7['is']('element','tableCellSuggestion')&&De(_0x57eda7)){_0x532cc1['removeMarker'](_0x2f996c['name']),_0x26cc71['add'](_0x57eda7),_0x1e0d48=!0x0;const _0x4116f0=_0x57eda7['nextSibling'],_0x2f8b7a=_0x57eda7['previousSibling'],_0x2b699f=_0x4116f0&&_0x4116f0['is']('element','tableCellSuggestion'),_0x95fe4e=_0x2f8b7a&&_0x2f8b7a['is']('element','tableCellSuggestion');_0x2b699f&&!_0x26cc71['has'](_0x4116f0)&&_0x1d8975['add'](_0x4116f0),_0x95fe4e&&!_0x26cc71['has'](_0x2f8b7a)&&_0x1d8975['add'](_0x2f8b7a);}else _0x57eda7['is']('element','paragraph')&&_0x57eda7['isEmpty']&&(_0x532cc1['removeMarker'](_0x2f996c['name']),_0x1e0d48=!0x0);}}else{if('tablePasteCell'==_0x532cc1['subType']){if(!_0x532cc1['attributes']||!_0x532cc1['attributes']['tablePasteChainId'])continue;const _0x1de7b9=_0x532cc1['attributes']['markerAttributes'];if(_0x1de7b9&&Object['keys'](_0x1de7b9)['length'])continue;const _0x34119f=_0x532cc1['attributes']['tablePasteChainId'];let _0x342a1d=!0x0,_0x3f3f24=!0x0;for(const _0x37432d of _0x553354)if(_0x37432d['subType']&&_0x37432d['subType']['startsWith']('tablePaste')){if(!_0x37432d['attributes']['tablePasteChainId']){_0x3f3f24=!0x1;break;}if(_0x37432d['id']!=_0x532cc1['id']&&_0x37432d['attributes']['tablePasteChainId']==_0x34119f){_0x342a1d=!0x1;break;}}_0x3f3f24&&_0x342a1d&&(_0x532cc1['removeMarkers'](),_0x1e0d48=!0x0);}}for(const _0x297b36 of _0x26cc71)_0x5c3751['remove'](_0x297b36);for(const _0x3ca2ee of _0x1d8975)_0x5c3751['unwrap'](_0x3ca2ee);return _0x1e0d48;}),_0x53dbb5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x81378b=>_0x37ee2e(_0x81378b),'converterPriority':'high'}),_0x53dbb5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x6804,_0x55ac13)=>_0x55ac13['options']['showSuggestionHighlights']?_0x37ee2e(_0x6804,!0x1):null,'converterPriority':'high'});const _0x5746ab=_0x53dbb5['editing']['view'];this['listenTo'](_0x5746ab['document'],'clipboardOutput',(_0x708cd4,_0x3f7371)=>{const _0x4ecd7e=[];for(const _0x603db7 of _0x5746ab['createRangeIn'](_0x3f7371['content'])['getItems']())_0x603db7['is']('element','suggestion-td')&&_0x4ecd7e['push'](_0x603db7);_0x5746ab['change'](_0x266ac7=>{for(const _0x1f33c4 of _0x4ecd7e)_0x266ac7['move'](_0x266ac7['createRangeIn'](_0x1f33c4),_0x266ac7['createPositionBefore'](_0x1f33c4)),_0x266ac7['remove'](_0x1f33c4);});});}}function De(_0x358b0b){if(_0x358b0b['isEmpty'])return!0x0;const _0x23176a=_0x358b0b['getChild'](0x0);return _0x23176a['is']('element','paragraph')&&_0x23176a['isEmpty'];}function He(_0x456d31,_0x296943={},_0x7f392){for(const {isAnchor:_0x1e5800,cellHeight:_0x1cac22,cellWidth:_0x23c3e4}of _0x7f392['createTableWalker'](_0x456d31,{'includeAllSlots':!0x0,..._0x296943}))if(!_0x1e5800||0x1!=_0x1cac22||0x1!=_0x23c3e4)return!0x1;return!0x0;}class Bt extends _0x340863{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3dd78e=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dd78e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3dd78e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3dd78e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3dd78e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3dd78e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3dd78e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x368104,_0x57e741){const _0x4da232=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e813a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4f09d6=_0x57e741['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4a0857=_0x2e813a['getColumnGroupElement'](_0x4f09d6);let _0x508bf5=_0x4a0857?_0x2e813a['getTableColumnsWidths'](_0x4a0857):null,_0x8cec70=_0x4f09d6['getAttribute']('tableWidth')||null;const _0x4bca88=_0x57e741['tableWidth']||_0x8cec70,_0x4218a0=_0x57e741['columnWidths']||_0x508bf5,_0x198382=this['editor']['plugins']['get']('Users')['me'];for(const _0x3890ec of _0x4da232['getSuggestions']()){const _0x110e25=_0x3890ec['getContainedElement']();if('resizeTable'===_0x3890ec['subType']&&_0x110e25===_0x4f09d6){_0x3890ec['author']!==_0x198382&&_0x3890ec['discard']();const _0xbbc5a=_0x3890ec['data']['commandParams'];_0x8cec70=_0xbbc5a[0x0]['tableWidth'],_0x508bf5=_0xbbc5a[0x0]['columnWidths'];break;}}_0x368104({'table':_0x4f09d6,'tableWidth':_0x4bca88,'columnWidths':_0x4218a0}),_0x4da232['markBlockFormat'](_0x4f09d6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x8cec70,'columnWidths':_0x508bf5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x368d0a){if('formatBlock'!=_0x368d0a['type']&&'formatInline'!=_0x368d0a['type'])return;const {data:_0xb1f059}=_0x368d0a;if(_0xb1f059&&'resizeTable'===_0xb1f059['formatGroupId']){const _0x2173cb='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2173cb)};}}}class xt extends _0x340863{['afterInit'](){const _0x1284ba=this['editor'];_0x1284ba['plugins']['has']('Template')&&_0x1284ba['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x340863{['afterInit'](){const _0x21a8d8=this['editor'];if(!_0x21a8d8['commands']['get']('insertTableOfContents'))return;_0x21a8d8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x23053a=_0x21a8d8['plugins']['get']('TrackChangesEditing'),_0x1ae517=_0x21a8d8['locale'];_0x23053a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x29f3a3=>c(_0x1ae517,'ELEMENT_TABLE_OF_CONTENTS',_0x29f3a3));}}class Rt extends _0x340863{['afterInit'](){const _0x544e4c=this['editor'];if(!_0x544e4c['plugins']['has']('Title'))return;const _0xbc8e75=_0x544e4c['plugins']['get']('TrackChangesEditing');_0xbc8e75['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x544e4c['locale'],'ELEMENT_TITLE')),_0x544e4c['model']['document']['registerPostFixer'](_0x5d46aa=>{let _0x2a3775=!0x1;const _0x4460ff=Array['from'](_0x544e4c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2afcb5,data:_0x15ac99}of _0x4460ff){const {group:_0x642c50}=_0xbc8e75['_splitMarkerName'](_0x2afcb5);if('suggestion'!==_0x642c50||!_0x15ac99['newRange'])continue;const _0x1cb013=_0x15ac99['newRange'],_0x2edcbb=_0x1cb013['end']['nodeBefore'];if(!_0x2edcbb||!_0x2edcbb['is']('element','title-content'))continue;if(!_0x1cb013['start']['isTouching'](_0x1cb013['end']))continue;const _0x473b0a=_0x544e4c['model']['schema']['getNearestSelectionRange'](_0x1cb013['end'],'forward');if(_0x473b0a&&_0x473b0a['isCollapsed']){const _0x3af866=_0x5d46aa['createRange'](_0x1cb013['start'],_0x473b0a['start']);_0x3af866['isEqual'](_0x1cb013)||(_0x5d46aa['updateMarker'](_0x2afcb5,{'range':_0x3af866}),_0x2a3775=!0x0);}_0x2a3775||(_0x5d46aa['removeMarker'](_0x2afcb5),_0x2a3775=!0x0);}return _0x2a3775;});}}class Tt extends _0x340863{['afterInit'](){const _0x270d2d=this['editor'],_0x1543b3=_0x270d2d['plugins']['get']('TrackChangesEditing');_0x270d2d['plugins']['has']('Uploadcare')&&(_0x1543b3['enableCommand']('uploadcare'),_0x270d2d['plugins']['has']('UploadcareImageEdit')&&(_0x1543b3['enableCommand']('uploadcareImageEdit'),_0x1543b3['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1543b3['registerBlockAttribute']('uploadcareImageId'),_0x1543b3['descriptionFactory']['registerDescriptionCallback'](_0x1284ad=>{if('attribute'!=_0x1284ad['type'])return;const {data:_0x4f73fb}=_0x1284ad;return _0x4f73fb&&'uploadcareImageId'==_0x4f73fb['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x340863{['afterInit'](){const _0x332eb8=this['editor'],_0x5e4a4b=_0x332eb8['plugins']['get']('TrackChangesEditing');_0x332eb8['plugins']['has']('UndoEditing')&&(_0x5e4a4b['enableCommand']('undo'),_0x5e4a4b['enableCommand']('redo'));}}class Ut extends _0x340863{static get['requires'](){return[Ct];}['afterInit'](){const _0x13650f=this['editor'];if(!_0x13650f['plugins']['has']('TableCaptionEditing'))return;_0x13650f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x340863{['tableProperties'];['tableCellProperties'];constructor(_0x1e4173){super(_0x1e4173),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xce6de9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x52742a of this['tableProperties'])_0xce6de9['enableCommand'](_0x52742a,(_0xf79d0e,_0x5499e3)=>{const _0x30b5e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x52742a,[_0x30b5e],this['tableProperties'],'tableProperties',_0xf79d0e,_0x5499e3);});_0xce6de9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xce6de9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xce6de9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1f6ff2,_0x1786f5)=>this['handleDiscardAction'](this['tableProperties'],_0x1f6ff2,_0x1786f5)),_0xce6de9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4550ed of this['tableCellProperties'])_0xce6de9['enableCommand'](_0x4550ed,(_0x5eb059,_0x1c4396)=>{const _0x3c2c85=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4550ed,_0x3c2c85,this['tableCellProperties'],'tableCellProperties',_0x5eb059,_0x1c4396);});_0xce6de9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xce6de9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xce6de9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x24cf6b,_0x53a38c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x24cf6b,_0x53a38c)),_0xce6de9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xce6de9['descriptionFactory']['registerDescriptionCallback'](_0x240113=>this['handleSuggestionDescription'](_0x240113));}['_handlePropertyChange'](_0x144506,_0x258102,_0x578ddb,_0x2c1ff3,_0x342272,_0x30c2b4){const _0x3e6a0e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x30c2b4['batch'],()=>{for(const _0xfccb04 of _0x258102){if(this['_getSuggestion'](_0xfccb04,_0x2c1ff3))_0x342272(_0x30c2b4);else{const _0x441e8e={};for(const _0x568910 of _0x578ddb){const _0x4492c2=_0xfccb04['getAttribute'](_0x568910);void 0x0!==_0x4492c2&&(_0x441e8e[_0x568910]=_0x4492c2);}_0x342272(_0x30c2b4),_0x3e6a0e['markBlockFormat'](_0xfccb04,{'commandParams':[_0x441e8e]},[],_0x2c1ff3);}}});}['handleDiscardAction'](_0x4550a6,_0x3b828c,_0x472fad){const _0x163591=_0x3b828c[0x0]['start']['nodeAfter'],_0xfa1cac=_0x472fad['commandParams'][0x0];this['editor']['model']['change'](_0x64ff17=>{for(const _0x3a135a of _0x4550a6)void 0x0!==_0xfa1cac[_0x3a135a]?_0x64ff17['setAttribute'](_0x3a135a,_0xfa1cac[_0x3a135a],_0x163591):_0x64ff17['removeAttribute'](_0x3a135a,_0x163591);});}['handleSuggestionDescription'](_0x5d9cdd){if(_0x5d9cdd['data'])switch(_0x5d9cdd['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x16d556,_0x19b93f){const _0x59244f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2e1384 of _0x59244f['getSuggestions']({'skipNotAttached':!0x0})){const _0x5e49e4=_0x2e1384['getContainedElement']();if(_0x2e1384['subType']===_0x19b93f&&_0x5e49e4===_0x16d556)return _0x2e1384;}return null;}}const u='$elementName';class p extends _0x340863{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0xbdd14b,_0x57cef0,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x575c84){super(_0x575c84),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2319e6,_0x222507,_0x2310b7,_0x432d35)=>{this['_model']['change'](()=>{for(const _0x2a73e0 of[..._0x432d35,..._0x2310b7])this['_model']['markers']['has'](_0x2a73e0)&&_0x575c84['editing']['reconvertMarker'](_0x2a73e0);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x575c84['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x575c84['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x575c84['config']['get']('trackChanges.trackFormatChanges'),_0x575c84['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x575c84['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x575c84,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1e6347=this['editor'],_0x518a73=(_0x54deed,_0x2c2426)=>{if('attribute'!=_0x54deed)return'ck-suggestion-marker-'+_0x54deed;const _0x456de9=_0x2c2426['split']('|')[0x0];return this['_isBlockAttribute'](_0x456de9)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1e6347['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4fdbc1=>{const {id:_0x3e9c64,authorId:_0x6c8850,type:_0x11c9b4,subType:_0x45267f}=this['_splitMarkerName'](_0x4fdbc1['markerName']),_0x59448a=['ck-suggestion-marker',_0x518a73(_0x11c9b4,_0x45267f)];let _0x27cdee=0xbb8;return this['activeMarkers']['includes'](_0x4fdbc1['markerName'])&&(_0x59448a['push']('ck-suggestion-marker--active'),_0x27cdee=0xbc2),'deletion'==_0x11c9b4&&(_0x27cdee+=0x5),{'classes':_0x59448a,'attributes':{'data-suggestion':_0x3e9c64,'data-author-id':_0x6c8850},'priority':_0x27cdee};}}),_0x1e6347['conversion']['for']('dataDowncast')['add'](_0x44d7b=>{_0x44d7b['on']('addMarker:suggestion',(_0x2b0e13,_0x30aeae,_0x8090b5)=>{if(!_0x8090b5['options']['showSuggestionHighlights'])return;const _0x548935=_0x30aeae['item'];if(!_0x548935)return;const _0x7bfe5c=_0x8090b5['mapper']['toViewElement'](_0x548935);_0x1e6347['model']['schema']['isObject'](_0x548935)&&_0x7bfe5c&&!_0x7bfe5c['getCustomProperty']('widget')&&_0x7bfe5c['is']('containerElement')&&_0x38edb5(_0x7bfe5c,_0x8090b5['writer']);},{'priority':'high'});}),_0x1e6347['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x21e78f,_0x380029)=>{if(!_0x380029['options']['showSuggestionHighlights'])return null;const {id:_0x31eba8,authorId:_0x18efd9,type:_0x5ce9e0,subType:_0x36dbdc}=this['_splitMarkerName'](_0x21e78f['markerName']);return{'classes':['ck-suggestion-marker',_0x518a73(_0x5ce9e0,_0x36dbdc)],'priority':0xbb8,'attributes':{'data-suggestion':_0x31eba8,'data-author-id':_0x18efd9}};}});const _0x1c0485=({showActiveMarkers:_0x234874=!0x0,isAttributeSuggestion:_0x302611=!0x1}={})=>(_0x32f13f,_0x215fa4,_0x4cf5ec)=>{if(!_0x215fa4['item'])return;const {id:_0x42af31,authorId:_0x138358}=this['_splitMarkerName'](_0x215fa4['markerName']);if(_0x302611){const _0x14a99c=this['_suggestions']['get'](_0x42af31),_0x124f41=this['_getAttributeKey'](_0x14a99c);if(!this['_isBlockAttribute'](_0x124f41))return;}if(_0x215fa4['item']['is']('selection'))return void _0x4cf5ec['consumable']['consume'](_0x215fa4['item'],_0x32f13f['name']);const _0x75fc3c=_0x4cf5ec['mapper']['toViewElement'](_0x215fa4['item']);if(_0x215fa4['item']['is']('element')&&_0x1e6347['model']['schema']['isBlock'](_0x215fa4['item'])&&!_0x75fc3c['getCustomProperty']('addHighlight')){_0x4cf5ec['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x75fc3c),_0x4cf5ec['writer']['setAttribute']('data-suggestion',_0x42af31,_0x75fc3c),_0x4cf5ec['writer']['setAttribute']('data-author-id',_0x138358,_0x75fc3c),_0x4cf5ec['mapper']['bindElementToMarker'](_0x75fc3c,_0x215fa4['markerName']),_0x234874&&(this['activeMarkers']['includes'](_0x215fa4['markerName'])?_0x4cf5ec['writer']['addClass']('ck-suggestion-marker--active',_0x75fc3c):_0x4cf5ec['writer']['removeClass']('ck-suggestion-marker--active',_0x75fc3c));for(const _0x2ef3b5 of _0x1e6347['model']['createRangeIn'](_0x215fa4['item'])['getItems']())_0x4cf5ec['consumable']['consume'](_0x2ef3b5,_0x32f13f['name']);_0x4cf5ec['consumable']['consume'](_0x215fa4['item'],_0x32f13f['name']);}};_0x1e6347['conversion']['for']('dataDowncast')['add'](_0x5cc84b=>{_0x5cc84b['on']('addMarker:suggestion:formatBlock',(_0x2037d3,_0x50e529,_0x23219a)=>{_0x23219a['options']['showSuggestionHighlights']&&_0x1c0485({'showActiveMarkers':!0x1})(_0x2037d3,_0x50e529,_0x23219a);},{'priority':'highest'});}),_0x1e6347['conversion']['for']('dataDowncast')['add'](_0x17238e=>{_0x17238e['on']('addMarker:suggestion:attribute',(_0xcaf2a7,_0x2298e8,_0x22ad5f)=>{_0x22ad5f['options']['showSuggestionHighlights']&&_0x1c0485({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xcaf2a7,_0x2298e8,_0x22ad5f);},{'priority':'highest'});}),_0x1e6347['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x151385,_0xe9ff4a)=>{if(_0xe9ff4a['options']['showSuggestionHighlights']){const {id:_0x2275ee,authorId:_0x39ac72}=this['_splitMarkerName'](_0x151385);return _0x151385['includes'](':split')||_0x151385['includes'](':merge')?{'group':'suggestion','name':_0x151385['substr'](0xb),'attributes':{'data-suggestion':_0x2275ee,'data-author-id':_0x39ac72}}:null;}return{'group':'suggestion','name':_0x151385['substr'](0xb)};}}),_0x1e6347['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xf4ddee,{writer:_0x5a4fa9})=>{let _0x107a21='suggestion:'+_0xf4ddee['getAttribute']('suggestion-type')+':'+_0xf4ddee['getAttribute']('id');return _0xf4ddee['getAttribute']('marker-count')&&(_0x107a21+=':'+_0xf4ddee['getAttribute']('marker-count')),_0x5a4fa9['createElement']('$marker',{'data-name':_0x107a21});}}),_0x1e6347['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1e6347['conversion']['for']('editingDowncast')['add'](_0xd16be3=>{_0xd16be3['on']('addMarker:suggestion:formatBlock',_0x1c0485(),{'priority':'high'});}),_0x1e6347['conversion']['for']('editingDowncast')['add'](_0x432f89=>{_0x432f89['on']('addMarker:suggestion:attribute',_0x1c0485({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1e6347['conversion']['for']('editingDowncast')['add'](_0x367c44=>{_0x367c44['on']('removeMarker:suggestion:formatBlock',(_0xde035f,_0x30342b,_0x169d69)=>{const _0x3e80a4=_0x169d69['mapper']['markerNameToElements'](_0x30342b['markerName']);if(_0x3e80a4){for(const _0xb16d29 of _0x3e80a4)_0xb16d29['getCustomProperty']('addHighlight')||(_0x169d69['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xb16d29),_0x169d69['writer']['removeAttribute']('data-suggestion',_0xb16d29),_0x169d69['writer']['removeAttribute']('data-author-id',_0xb16d29),_0x169d69['mapper']['unbindElementFromMarkerName'](_0xb16d29,_0x30342b['markerName']));}},{'priority':'high'});}),_0x1e6347['conversion']['for']('editingDowncast')['add'](_0x33afc0=>{_0x33afc0['on']('removeMarker:suggestion:attribute',(_0x2cbb0c,_0x170c01,_0x27aca3)=>{const _0x447459=_0x27aca3['mapper']['markerNameToElements'](_0x170c01['markerName']);if(!_0x447459)return;const {id:_0x47bcc1}=this['_splitMarkerName'](_0x170c01['markerName']),_0x532133=this['_suggestions']['get'](_0x47bcc1),_0x487836=this['_getAttributeKey'](_0x532133);if(this['_isBlockAttribute'](_0x487836)){for(const _0x5a5235 of _0x447459)_0x5a5235['getCustomProperty']('addHighlight')||(_0x27aca3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a5235),_0x27aca3['writer']['removeAttribute']('data-suggestion',_0x5a5235),_0x27aca3['writer']['removeAttribute']('data-author-id',_0x5a5235),_0x27aca3['mapper']['unbindElementFromMarkerName'](_0x5a5235,_0x170c01['markerName']));}},{'priority':'high'});}),_0x1e6347['model']['document']['registerPostFixer'](_0x131810=>{let _0x53c7bb=!0x1;const _0x3e8604=Array['from'](_0x1e6347['model']['document']['differ']['getChangedMarkers']()),_0x246827=new Set();for(const {name:_0x5782f8,data:_0x5db16e}of _0x3e8604){const {group:_0x7d6e8c,type:_0x31b7e9,subType:_0x1e3167,id:_0x23b8b2}=this['_splitMarkerName'](_0x5782f8);if('suggestion'!==_0x7d6e8c)continue;const _0x330051=this['_suggestions']['get'](_0x23b8b2);if(null!=_0x5db16e['newRange']){'formatInline'==_0x31b7e9&&(_0x53c7bb=_0x53c7bb||Jt(_0x5db16e['newRange'],_0x5782f8,_0x131810,_0x1e6347['model']['schema']));const _0x5d73c2='attribute'==_0x31b7e9&&this['_isBlockAttribute'](_0x1e3167['split']('|')[0x0]);if(_0x5db16e['newRange']['isCollapsed']||'$graveyard'==_0x5db16e['newRange']['root']['rootName']||'formatBlock'==_0x31b7e9&&!Ht(_0x5db16e['newRange'])||_0x5d73c2&&!Ht(_0x5db16e['newRange'])||'deletion'==_0x31b7e9&&!(!Lt(_0x53b3d2=_0x5db16e['newRange'])&&!function(_0x452e75){return _0x452e75['start']['parent']==_0x452e75['end']['nodeBefore']&&_0x452e75['start']['isAtEnd'];}(_0x53b3d2)))_0x131810['removeMarker'](_0x5782f8),_0x53c7bb=!0x0;else{if(!_0x330051||!_0x330051['isInContent'])continue;if(_0x5db16e['newRange']&&_0x5db16e['oldRange']&&_0x5db16e['newRange']['isEqual'](_0x5db16e['oldRange']))continue;_0x246827['add'](_0x330051);}}}var _0x53b3d2;return _0x246827['size']>0x0&&(_0x53c7bb=!!this['_joinWithAdjacentSuggestions'](_0x246827)||_0x53c7bb),_0x53c7bb;}),_0x1e6347['model']['document']['registerPostFixer'](_0x28bd02=>{let _0x46175f=!0x1;for(const _0x5afd6a of _0x1e6347['model']['document']['differ']['getChanges']())if('insert'==_0x5afd6a['type'])for(const _0x33bb53 of this['_suggestions']['values']()){if(_0x33bb53['isMultiRange']||!_0x33bb53['isInContent'])continue;const _0x3dea06='formatBlock'==_0x33bb53['type'],_0x1f94e8=this['_getAttributeKey'](_0x33bb53),_0x35fdb7=_0x1f94e8&&this['_isBlockAttribute'](_0x1f94e8);if(!_0x3dea06&&!_0x35fdb7)continue;const _0x31407c=_0x33bb53['getFirstRange']();if(_0x31407c['start']['parent']!=_0x31407c['end']['parent']&&!_0x31407c['end']['isAtEnd']){const _0x4eefeb=_0x1e6347['model']['createPositionAt'](_0x31407c['start']['nodeAfter'],'end'),_0x2440ec=_0x1e6347['model']['createRange'](_0x31407c['start'],_0x4eefeb);_0x28bd02['updateMarker'](_0x33bb53['getFirstMarker'](),{'range':_0x2440ec}),_0x46175f=!0x0;}}return _0x46175f;}),_0x1e6347['model']['document']['registerPostFixer'](_0x698829=>this['_processAttributeChanges'](_0x698829)),_0x1e6347['model']['document']['registerPostFixer'](_0x1d52db=>!_0x1d52db['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1d52db)),_0x1e6347['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1e6347['model']['document']['on']('change:data',(_0x4fdc9b,_0x5be42e)=>{if(!_0x5be42e['isLocal']||_0x5be42e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x445964=_0x1e6347['model']['document']['differ']['getChanges']();if(0x0==_0x445964['length'])return;const _0x38a993=[],_0x223e2d=_0x445964['filter'](_0x40b012=>'attribute'==_0x40b012['type']),_0x3b3c02=_0x445964['filter'](_0x3debdf=>'insert'==_0x3debdf['type']&&'$text'!=_0x3debdf['name']);for(const _0xa47e0d of _0x223e2d)this['_isRegisteredAttribute'](_0xa47e0d['attributeKey'])&&_0x38a993['push']({'key':_0xa47e0d['attributeKey'],'newValue':_0xa47e0d['attributeNewValue'],'oldValue':_0xa47e0d['attributeOldValue'],'range':qt(_0xa47e0d['range'],_0x1e6347['model'])});for(const _0x343fba of _0x3b3c02){if('rename'!=_0x343fba['action']&&'refresh'!=_0x343fba['action'])continue;const _0x309018=zt(_0x343fba['position']['nodeAfter'],_0x1e6347['model']),_0x36b595=_0x343fba['before'];'rename'==_0x343fba['action']&&_0x38a993['push']({'key':u,'newValue':_0x343fba['name'],'oldValue':_0x36b595['name'],'range':_0x309018});for(const [_0x533997,_0x228d86]of _0x36b595['attributes']){if(!this['_isRegisteredAttribute'](_0x533997))continue;const _0x3b2e93=_0x343fba['attributes']['get'](_0x533997);_0x228d86!==_0x3b2e93&&_0x38a993['push']({'key':_0x533997,'newValue':_0x3b2e93,'oldValue':_0x228d86,'range':_0x309018});}for(const [_0x4e0ffe,_0x497ef5]of _0x343fba['attributes'])this['_isRegisteredAttribute'](_0x4e0ffe)&&(_0x36b595['attributes']['has'](_0x4e0ffe)||_0x38a993['push']({'key':_0x4e0ffe,'newValue':_0x497ef5,'oldValue':null,'range':_0x309018}));}0x0!=_0x38a993['length']&&_0x1e6347['model']['enqueueChange'](_0x5be42e,_0x459688=>{const _0x7408ac=_0xce776c();for(const {range:_0x262191,key:_0x5e1fa8,oldValue:_0x2a6fd3,newValue:_0x4a8950}of _0x38a993)this['markAttributeChange'](_0x262191,_0x5e1fa8,_0x2a6fd3,_0x4a8950,{'groupId':_0x7408ac});this['_reduceExistingSuggestions'](_0x459688,_0x38a993);});},{'priority':'lowest'}),_0x1e6347['model']['markers']['on']('update:suggestion',(_0x170a99,_0x1062bb,_0x2f8b10)=>{if(null==_0x2f8b10){const {id:_0x2fc1df}=this['_splitMarkerName'](_0x1062bb['name']),_0x4ceb0b=this['_suggestions']['get'](_0x2fc1df);_0x4ceb0b&&_0x4ceb0b['addMarkerName'](_0x1062bb['name']);}}),_0x1e6347['model']['document']['on']('change:data',()=>{const _0x4fc72e=Array['from'](_0x1e6347['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1d6cdc=>'suggestion'===this['_splitMarkerName'](_0x1d6cdc['name'])['group']);if(0x0===_0x4fc72e['length'])return;_0x4fc72e['sort']((_0x1e8cd7,_0x56eb4d)=>{const _0x51363d=_0x1e8cd7['data']['oldRange'],_0x148172=_0x56eb4d['data']['oldRange'];return null===_0x51363d&&null===_0x148172?0x0:null===_0x51363d&&null!==_0x148172?-0x1:null!==_0x51363d&&null===_0x148172?0x1:_0x51363d['start']['isBefore'](_0x148172['start'])?-0x1:0x1;});const _0x2961bb=new Set(),_0x3a21b5=new Set();for(const {name:_0x58bc99,data:_0x195afd}of _0x4fc72e){const {id:_0x5b4202}=this['_splitMarkerName'](_0x58bc99);if(null===_0x195afd['oldRange']){const _0x5c6b08=this['_handleNewSuggestionMarker'](_0x58bc99);_0x3a21b5['add'](_0x5c6b08);}else{const _0x25f2a5=this['_suggestions']['get'](_0x5b4202);null!==_0x195afd['newRange']||_0x25f2a5['isInContent']?(_0x2961bb['add'](_0x25f2a5['head']),_0x3a21b5['add'](_0x25f2a5)):this['_removeSuggestion'](_0x25f2a5);}}_0x3a21b5['size']>0x0&&this['_refreshSuggestionsChain'](_0x3a21b5);for(const _0xcc1eb0 of _0x2961bb)this['fire']('suggestionChanged',_0xcc1eb0);}),_0x1e6347['model']['on']('applyOperation',(_0x49ce73,_0x21e1c0)=>{const _0x4114da=_0x21e1c0[0x0];if(!this['_suggestions']['size'])return;if(!_0x4114da['isDocumentOperation'])return;if(_0x4114da['batch']['isUndo']||!_0x4114da['batch']['isLocal'])return;let _0x415145,_0x1bb22d;switch(_0x4114da['type']){case'insert':_0x415145=_0x1e6347['model']['createPositionAt'](_0x4114da['position']),_0x1bb22d=_0x415145['getShiftedBy'](_0x4114da['howMany']);break;case'split':_0x415145=_0x1e6347['model']['createPositionAt'](_0x4114da['splitPosition']),_0x1bb22d=_0x1e6347['model']['createPositionAt'](_0x4114da['moveTargetPosition']);break;case'move':_0x415145=_0x1e6347['model']['createPositionAt'](_0x4114da['targetPosition']),_0x1bb22d=_0x415145['getShiftedBy'](_0x4114da['howMany']);break;default:return;}const _0x6ae1db=_0x1e6347['model']['createRange'](_0x415145,_0x1bb22d);_0x1e6347['model']['change'](()=>{for(const {suggestion:_0x3c8078,meta:_0x35c17e}of this['_findSuggestions'](_0x6ae1db)){if(_0x3c8078['isMultiRange'])continue;if('formatInline'==_0x3c8078['type'])continue;const _0x32bd05=this['_getAttributeKey'](_0x3c8078);if(_0x32bd05&&this['_isBlockAttribute'](_0x32bd05)&&'split'!=_0x4114da['type'])continue;const _0x427d59=_0x3c8078['data']&&_0x3c8078['data']['multipleBlocks'];('formatBlock'!=_0x3c8078['type']||'split'==_0x4114da['type']&&!_0x427d59)&&(_0x35c17e['containsRangeInObject']||'insertion'==_0x3c8078['type']&&_0x35c17e['isOwn']||_0x3c8078['getFirstRange']()['containsRange'](_0x6ae1db)&&this['_breakSuggestionMarker'](_0x3c8078,_0x415145,_0x1bb22d));}});},{'priority':'lowest'}),_0x1e6347['model']['on']('deleteContent',(_0xa66d33,_0x9abdc2)=>{const _0xb7e67e=_0x9abdc2[0x0],_0x1f788c=_0x9abdc2[0x1];if(_0x1f788c&&_0x1f788c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xb7e67e['isCollapsed'])return;const _0x2ead23=_0x1e6347['model']['schema'],{start:_0x11711b,end:_0x472944}=_0xb7e67e['getFirstRange'](),_0x5b1564=_0x11711b['nodeAfter']&&_0x2ead23['isLimit'](_0x11711b['nodeAfter'])?null:_0x2ead23['getNearestSelectionRange'](_0x11711b,'forward'),_0xef74e6=_0x472944['nodeBefore']&&_0x2ead23['isLimit'](_0x472944['nodeBefore'])?null:_0x2ead23['getNearestSelectionRange'](_0x472944,'backward'),_0x426b1d=_0x1e6347['model']['createRange'](_0x5b1564?_0x5b1564['start']:_0x11711b,_0xef74e6?_0xef74e6['end']:_0x472944);_0x1e6347['model']['change'](_0x533ab7=>{this['markDeletion'](_0x426b1d);const _0x399511=_0x1e6347['model']['schema']['getNearestSelectionRange'](_0x426b1d['start']);_0xb7e67e['is']('documentSelection')?_0x533ab7['setSelection'](_0x399511):_0xb7e67e['setTo'](_0x399511);}),_0xa66d33['stop']();},{'priority':_0x1695e6['normal']+0xa}),_0x1e6347['model']['on']('insertContent',(_0x162574,_0x4497ae)=>{const _0x47b7e1=_0x4497ae[_0x4497ae['length']-0x1];_0x47b7e1&&_0x47b7e1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1e6347['model']['change'](()=>{let _0x5d67af=_0x1e6347['model']['insertContent'](_0x4497ae[0x0],_0x4497ae[0x1],_0x4497ae[0x2],{'forceDefaultExecution':!0x0});if(!_0x5d67af)return;_0x162574['return']=_0x5d67af['clone']();const _0x279e35=_0x5d67af['end']['nodeBefore'],_0x613d36=_0x1e6347['model']['schema'];_0x279e35&&_0x613d36['isBlock'](_0x279e35)&&!_0x613d36['isObject'](_0x279e35)&&(_0x5d67af=_0x1e6347['model']['createRange'](_0x5d67af['start'],_0x1e6347['model']['createPositionAt'](_0x279e35,'end'))),this['markInsertion'](_0x5d67af);}),_0x162574['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xd98ebe=new x(_0x1e6347,this['_suggestions']);_0x1e6347['commands']['add']('acceptSuggestion',_0xd98ebe),this['enableCommand']('acceptSuggestion');const _0x7137bf=new O(_0x1e6347,this['_suggestions']);_0x1e6347['commands']['add']('discardSuggestion',_0x7137bf),this['enableCommand']('discardSuggestion'),_0x1e6347['commands']['add']('acceptAllSuggestions',new R(_0x1e6347,_0xd98ebe,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1e6347['commands']['add']('discardAllSuggestions',new R(_0x1e6347,_0x7137bf,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1e6347['commands']['add']('acceptSelectedSuggestions',new E(_0x1e6347,_0xd98ebe,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1e6347['commands']['add']('discardSelectedSuggestions',new E(_0x1e6347,_0x7137bf,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3fcb98=_0x1e6347['plugins']['get']('CommentsRepository');this['listenTo'](_0x3fcb98,'addComment',(_0x3b5394,{threadId:_0x4df773})=>{const _0x4c5c7e=this['_suggestions']['get'](_0x4df773);_0x4c5c7e&&_0x4c5c7e['commentThread']&&0x1===_0x4c5c7e['commentThread']['length']&&this['_updateSuggestionData'](_0x4df773,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3fcb98,'removeComment',(_0x4a4ead,{threadId:_0x3fe9e6})=>{const _0x182232=this['_suggestions']['get'](_0x3fe9e6);_0x182232&&_0x182232['commentThread']&&!_0x182232['commentThread']['length']&&this['_updateSuggestionData'](_0x3fe9e6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xe14a17){const _0x53dc8f=_0x43c810([0x76,0x73,0x36,0x59,0x78,0x71,0x6c,0x53,0x42,0x79,0x75,0x56,0x4d,0x55,0x50,0x4c,0x57,0x58,0x31,0x64,0x30,0x6e,0x6b,0x43,0x47,0x72,0x68,0x6d,0x62,0x67,0x69,0x6a,0x5a,0x45,0x4e,0x37,0x7a,0x35,0x44,0x6f,0x65,0x46,0x51,0x70,0x4f,0x4b,0x77,0x32,0x61,0x4a,0x54,0x41,0x49,0x39,0x52,0x63,0x74,0x38,0x34,0x48,0x66,0x33]),_0x3b5fe9=0x12bb0fc3,_0x52bd93=0x12bc6883^_0x3b5fe9,_0x18bcd8=window[_0x43c810([0x44,0x61,0x74,0x65])][_0x43c810([0x6e,0x6f,0x77])](),_0x55026c=_0xe14a17[_0x43c810([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb4d936=new window[(_0x43c810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4afa8b=>{_0x55026c[_0x43c810([0x6f,0x6e,0x63,0x65])](_0x43c810([0x72,0x65,0x61,0x64,0x79]),_0x4afa8b);}),_0x5a4568={[_0x43c810([0x6b,0x74,0x79])]:_0x43c810([0x45,0x43]),[_0x43c810([0x75,0x73,0x65])]:_0x43c810([0x73,0x69,0x67]),[_0x43c810([0x63,0x72,0x76])]:_0x43c810([0x50,0x2d,0x32,0x35,0x36]),[_0x43c810([0x78])]:_0x43c810([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x43c810([0x79])]:_0x43c810([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x43c810([0x61,0x6c,0x67])]:_0x43c810([0x45,0x53,0x32,0x35,0x36])},_0x341a55=_0x55026c[_0x43c810([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43c810([0x67,0x65,0x74])](_0x43c810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ea214(){let _0x2a8405,_0x5c507f=null,_0x371860=null;try{if(_0x341a55==_0x43c810([0x47,0x50,0x4c]))return _0x43c810([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a8405=_0x65b499(),!_0x2a8405)return _0x43c810([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a8405[_0x43c810([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x371860=_0x4e0b2a(_0x2a8405[_0x43c810([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a8405[_0x43c810([0x6a,0x74,0x69])])),await _0x49a978()?_0x12df5c()?_0x4a4168()?_0x43c810([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x513c4d()?(_0x2a8405[_0x43c810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43c810([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c507f=_0x34bbdc(_0x43c810([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2a8405[_0x43c810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43c810([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c507f=_0x34bbdc(_0x43c810([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59bfc1()):_0x43c810([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43c810([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43c810([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1ddee5){return _0x43c810([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a4168(){const _0x1556e6=[_0x43c810([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43c810([0x74,0x72,0x69,0x61,0x6c])][_0x43c810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a8405[_0x43c810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18bcd8/0x3e8:0xe10*_0x52bd93;return _0x2a8405[_0x43c810([0x65,0x78,0x70])]<_0x1556e6;}function _0x12df5c(){const _0x5b5821=_0x2a8405[_0x43c810([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5b5821)return!0x1;if(_0x5b5821[_0x43c810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43c810([0x2a])))return!0x0;if(_0x5b5821[_0x43c810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43c810([0x54,0x43])))return!0x0;if(_0x5b5821[_0x43c810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43c810([0x52,0x54,0x43]))){if(_0x380ba8())return!0x0;if(_0x1baf26()||_0x940d9d())return!0x0;}return!0x1;}function _0x513c4d(){const _0x5e998d=_0x2a8405[_0x43c810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e998d||0x0==_0x5e998d[_0x43c810([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55ed8e}=new URL(window[_0x43c810([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e998d[_0x43c810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55ed8e))return!0x0;const _0x4f6dcb=_0x55ed8e[_0x43c810([0x73,0x70,0x6c,0x69,0x74])](_0x43c810([0x2e]));return _0x5e998d[_0x43c810([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x144cd1=>_0x144cd1[_0x43c810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43c810([0x2a])))[_0x43c810([0x6d,0x61,0x70])](_0x40f3b8=>_0x40f3b8[_0x43c810([0x73,0x70,0x6c,0x69,0x74])](_0x43c810([0x2e])))[_0x43c810([0x73,0x6f,0x6d,0x65])](_0x1656ce=>_0x4f6dcb[_0x43c810([0x65,0x76,0x65,0x72,0x79])]((_0x54983f,_0x32438c)=>_0x1656ce[_0x32438c]===_0x54983f||_0x1656ce[_0x32438c]===_0x43c810([0x2a])));}function _0x59bfc1(){return _0x5c507f&&_0x371860?new window[(_0x43c810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x265f46,_0x263789)=>{_0x5c507f[_0x43c810([0x74,0x68,0x65,0x6e])](_0x265f46,_0x263789),_0x371860[_0x43c810([0x74,0x68,0x65,0x6e])](_0x123668=>{_0x123668!=_0x43c810([0x56,0x61,0x6c,0x69,0x64])&&_0x265f46(_0x123668);},_0x263789);}):_0x5c507f||_0x371860||_0x43c810([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4e0b2a(_0x4817bb,_0x2264d9){return new window[(_0x43c810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a5093=>{if(_0x4ed7f3())return _0x2a5093(_0x43c810([0x56,0x61,0x6c,0x69,0x64]));_0x4a3578(),_0x55026c[_0x43c810([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43c810([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x754fb=!0x1;const _0x2803d4=_0xce776c();function _0x28decc(_0x57c909){return!!_0x57c909&&(typeof _0x57c909===_0x43c810([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57c909===_0x43c810([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57c909[_0x43c810([0x74,0x68,0x65,0x6e])]===_0x43c810([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57c909[_0x43c810([0x63,0x61,0x74,0x63,0x68])]===_0x43c810([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e9f47(_0x2b23db){_0x42b812(_0x2b23db)[_0x43c810([0x74,0x68,0x65,0x6e])](_0x4db1dd=>{if(!_0x4db1dd||_0x4db1dd[_0x43c810([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43c810([0x6f,0x6b]))return _0x43c810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12cda9(_0x303a70(_0x2803d4+_0x2264d9))!=_0x4db1dd[_0x43c810([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43c810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43c810([0x56,0x61,0x6c,0x69,0x64]);})[_0x43c810([0x74,0x68,0x65,0x6e])](_0x3b5933=>(_0x1bf0bb(),_0x3b5933),()=>{const _0x13493a=_0x2e1851();return null==_0x13493a?(_0x1bf0bb(),_0x43c810([0x56,0x61,0x6c,0x69,0x64])):_0x43c810(_0x18bcd8-_0x13493a>(0x36b78bc3^_0x3b5fe9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43c810([0x74,0x68,0x65,0x6e])](_0x2a5093)[_0x43c810([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2a5093(_0x43c810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x28984c=0x128de143^_0x3b5fe9;function _0x1bf0bb(){const _0x40cba9=_0x43c810([0x6c,0x6c,0x63,0x74,0x2d])+_0x12cda9(_0x303a70(_0x4817bb)),_0x3acfb2=_0x31153d(_0x12cda9(window[_0x43c810([0x4d,0x61,0x74,0x68])][_0x43c810([0x63,0x65,0x69,0x6c])](_0x18bcd8/_0x28984c)));window[_0x43c810([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43c810([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40cba9,_0x3acfb2);}function _0x2e1851(){const _0x24cbd8=_0x43c810([0x6c,0x6c,0x63,0x74,0x2d])+_0x12cda9(_0x303a70(_0x4817bb)),_0x3933a5=window[_0x43c810([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43c810([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24cbd8);return _0x3933a5?window[_0x43c810([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31153d(_0x3933a5),0x10)*_0x28984c:null;}function _0x42b812(_0x5585f1){return new window[(_0x43c810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x759443,_0x504c60)=>{_0x5585f1[_0x43c810([0x74,0x68,0x65,0x6e])](_0x759443,_0x504c60),window[_0x43c810([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x504c60,0x12badb03^_0x3b5fe9);});}}_0x55026c[_0x43c810([0x6f,0x6e])](_0x43c810([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x571263,_0x2d495a)=>{if(_0x2d495a[0x0]!=_0x4817bb)return _0x2a5093(_0x43c810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d495a[0x1]={..._0x2d495a[0x1],[_0x43c810([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2803d4};},{[_0x43c810([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43c810([0x68,0x69,0x67,0x68])}),_0x55026c[_0x43c810([0x6f,0x6e])](_0x43c810([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x25cc69=>{_0x28decc(_0x25cc69[_0x43c810([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x754fb=!0x0,_0x1e9f47(_0x25cc69[_0x43c810([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43c810([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43c810([0x6c,0x6f,0x77])}),_0xb4d936[_0x43c810([0x74,0x68,0x65,0x6e])](()=>{_0x754fb||_0x2a5093(_0x43c810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ed7f3(){return _0x55026c[_0x43c810([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43c810([0x76,0x69,0x65,0x77])][_0x43c810([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43c810([0x61,0x75,0x74,0x6f]);}function _0x4a3578(){_0x55026c[_0x43c810([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43c810([0x76,0x69,0x65,0x77])][_0x43c810([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43c810([0x61,0x75,0x74,0x6f]);}}function _0x34bbdc(_0x1305bd){const _0x5cb4f8=[new window[(_0x43c810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e0bf5=>setTimeout(_0x5e0bf5,0x12b2310f^_0x3b5fe9)),_0xb4d936[_0x43c810([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43c810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1eaaa7=>{let _0x1acb8a=0x0;_0x55026c[_0x43c810([0x6d,0x6f,0x64,0x65,0x6c])][_0x43c810([0x6f,0x6e])](_0x43c810([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f1ab7,_0x5bcf2e)=>{_0x5bcf2e[0x0][_0x43c810([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1acb8a++,_0x1acb8a==(0x12bb0e3b^_0x3b5fe9)&&(_0x1eaaa7(),_0x4f1ab7[_0x43c810([0x6f,0x66,0x66])]());});}))];return window[_0x43c810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43c810([0x72,0x61,0x63,0x65])](_0x5cb4f8)[_0x43c810([0x74,0x68,0x65,0x6e])](()=>_0x1305bd);}async function _0x3b524d(){await _0xb4d936,_0x55026c[_0x43c810([0x6d,0x6f,0x64,0x65,0x6c])][_0x43c810([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x6ae63e,_0x55026c[_0x43c810([0x6d,0x6f,0x64,0x65,0x6c])][_0x43c810([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x6ae63e,_0x55026c[_0x43c810([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43c810([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x380ba8(){return _0x3601a5(_0x43c810([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x552c36(_0x43c810([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x43c810([0x73,0x74,0x61,0x74,0x65])]==_0x43c810([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1baf26(){return _0x3601a5(_0x43c810([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x940d9d(){return _0x3601a5(_0x43c810([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1c9f9e(_0x22e9a1){const _0x1cb6a7=_0x35e422();_0x55026c[_0x1cb6a7]=_0x43c810([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x22e9a1,_0x22e9a1!=_0x43c810([0x56,0x61,0x6c,0x69,0x64])&&_0x3b524d();}function _0x35e422(){const _0x33412f=window[_0x43c810([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43c810([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43c810([0x6e,0x6f,0x77])]())[_0x43c810([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43c810([0x2e]),'');let _0x5383a1=_0x43c810([0x76]);for(let _0x30c5a2=0x0;_0x30c5a2<_0x33412f[_0x43c810([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30c5a2+=0x2){let _0x4ebde9=window[_0x43c810([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33412f[_0x43c810([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30c5a2,_0x30c5a2+0x2));_0x4ebde9>=_0x53dc8f[_0x43c810([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ebde9-=_0x53dc8f[_0x43c810([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5383a1+=_0x53dc8f[_0x4ebde9];}return _0x5383a1;}function _0x65b499(){const _0x4f21f7=_0x341a55[_0x43c810([0x73,0x70,0x6c,0x69,0x74])](_0x43c810([0x2e]));if(0x3!=_0x4f21f7[_0x43c810([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a920b(_0x4f21f7[0x1]);function _0x5a920b(_0x4022d0){const _0x3f0205=_0x1f87a2(_0x4022d0);return _0x3f0205&&_0x438322()?_0x3f0205:null;function _0x438322(){const _0x2dd7c2=_0x3f0205[_0x43c810([0x6a,0x74,0x69])],_0xa2f59f=window[_0x43c810([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dd7c2[_0x43c810([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2dd7c2[_0x43c810([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x343b27={..._0x3f0205,[_0x43c810([0x6a,0x74,0x69])]:_0x2dd7c2[_0x43c810([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2dd7c2[_0x43c810([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x343b27[_0x43c810([0x76,0x63])],_0x303a70(_0x343b27)==_0xa2f59f;}}}async function _0x49a978(){let _0x3bee24=!0x0;try{const _0x5b6c60=_0x341a55[_0x43c810([0x73,0x70,0x6c,0x69,0x74])](_0x43c810([0x2e])),[_0x5437ce,_0x5f07e1,_0x3a8d6e]=_0x5b6c60;return _0x47ea31(_0x5437ce),await _0x5c3f0a(_0x5437ce,_0x5f07e1,_0x3a8d6e),_0x3bee24;}catch(_0x338666){return!0x1;}function _0x47ea31(_0x122d8b){const _0x1cf4e8=_0x1f87a2(_0x122d8b);_0x1cf4e8&&_0x1cf4e8[_0x43c810([0x61,0x6c,0x67])]==_0x43c810([0x45,0x53,0x32,0x35,0x36])||(_0x3bee24=!0x1);}async function _0x5c3f0a(_0x2d3021,_0x2edb70,_0x48acc2){const _0x4401b3=window[_0x43c810([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43c810([0x66,0x72,0x6f,0x6d])](_0x128482(_0x48acc2),_0x36a83b=>_0x36a83b[_0x43c810([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37ca41=new window[(_0x43c810([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43c810([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d3021+_0x43c810([0x2e])+_0x2edb70),_0x4ad5e1=window[_0x43c810([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43c810([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ad5e1)return;const _0x4dd2ee=await _0x4ad5e1[_0x43c810([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43c810([0x6a,0x77,0x6b]),_0x5a4568,{[_0x43c810([0x6e,0x61,0x6d,0x65])]:_0x43c810([0x45,0x43,0x44,0x53,0x41]),[_0x43c810([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43c810([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43c810([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ad5e1[_0x43c810([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43c810([0x6e,0x61,0x6d,0x65])]:_0x43c810([0x45,0x43,0x44,0x53,0x41]),[_0x43c810([0x68,0x61,0x73,0x68])]:{[_0x43c810([0x6e,0x61,0x6d,0x65])]:_0x43c810([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4dd2ee,_0x4401b3,_0x37ca41)||(_0x3bee24=!0x1);}}function _0x1f87a2(_0x2a53f1){return _0x2a53f1[_0x43c810([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43c810([0x65,0x79]))?JSON[_0x43c810([0x70,0x61,0x72,0x73,0x65])](_0x128482(_0x2a53f1)):null;}function _0x128482(_0xfc3c13){return window[_0x43c810([0x61,0x74,0x6f,0x62])](_0xfc3c13[_0x43c810([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43c810([0x2b]))[_0x43c810([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43c810([0x2f])));}function _0x303a70(_0x153df1){let _0x1d00c5=0x1505;function _0x66d64c(_0x3cb663){for(let _0x31794d=0x0;_0x31794d<_0x3cb663[_0x43c810([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31794d++){const _0xa7030a=_0x3cb663[_0x43c810([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31794d);_0x1d00c5=(_0x1d00c5<<0x5)+_0x1d00c5+_0xa7030a,_0x1d00c5&=_0x1d00c5;}}function _0x9a8c10(_0x379a0b){Array[_0x43c810([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x379a0b)?_0x379a0b[_0x43c810([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9a8c10):_0x379a0b&&typeof _0x379a0b==_0x43c810([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43c810([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x379a0b)[_0x43c810([0x73,0x6f,0x72,0x74])]()[_0x43c810([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x335ad2,_0x58f503])=>{_0x66d64c(_0x335ad2),_0x9a8c10(_0x58f503);}):_0x66d64c(window[_0x43c810([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x379a0b));}return _0x9a8c10(_0x153df1),_0x1d00c5>>>0x0;}function _0x12cda9(_0x3ee61){return _0x3ee61[_0x43c810([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43c810([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43c810([0x30]));}function _0x31153d(_0x5cb7f2){return _0x5cb7f2[_0x43c810([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43c810([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43c810([0x6a,0x6f,0x69,0x6e])]('');}function _0x3601a5(_0x2d8600){return _0x55026c[_0x43c810([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43c810([0x68,0x61,0x73])](_0x2d8600);}function _0x552c36(_0x48362f){return _0x55026c[_0x43c810([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43c810([0x67,0x65,0x74])](_0x48362f);}function _0x6ae63e(){}function _0x43c810(_0x27ef77){return _0x27ef77['map'](_0xe02400=>String['fromCharCode'](_0xe02400))['join']('');}_0x1c9f9e(await _0x3ea214());}(this);}set['adapter'](_0x51f9fd){if(this['_adapter'])throw new _0x40045b('track-changes-adapter-already-set',this);this['_adapter']=_0x51f9fd;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1d26b5=!0x1,toJSON:_0x4cec7d=!0x1}={}){const _0x12de9c=[];for(const _0xdc05be of this['_suggestions']['values']())_0x1d26b5&&!_0xdc05be['isInContent']||_0x12de9c['push'](_0xdc05be);return _0x4cec7d?_0x12de9c['map'](_0x1fd2e4=>_0x1fd2e4['toJSON']()):_0x12de9c;}['getSuggestion'](_0x1b5389){const _0x3ce7da=this['_suggestions']['get'](_0x1b5389);if(!_0x3ce7da)throw new _0x40045b('track-changes-suggestion-not-found',this);return _0x3ce7da;}['hasSuggestion'](_0x329f69){return this['_suggestions']['has'](_0x329f69);}['addSuggestionData'](_0x483ef5){const {authorId:_0x154118,id:_0x482a1b,attributes:_0x33988a}=_0x483ef5,[_0x55922a,_0x3e36a7]=_0x483ef5['type']['split'](':'),_0x9f1991=this['_suggestions']['get'](_0x482a1b)||this['_createSuggestion'](_0x55922a,_0x3e36a7,_0x482a1b,_0x154118,_0x33988a);if(this['_addThreadToSuggestion'](_0x9f1991),this['_checkSuggestionCorrectness'](_0x9f1991,_0x55922a,_0x3e36a7||null,_0x154118),_0x9f1991['createdAt']=_0x483ef5['createdAt'],_0x9f1991['_isDataLoaded']=!0x0,_0x33988a&&_0x33988a['@external']){const _0x442505=_0x33988a['@external'],_0x23eb95=this['_getExternalAuthor'](_0x442505['authorName']);_0x9f1991['authoredAt']=_0x442505['createdAt'],_0x9f1991['author']=_0x23eb95,_0x9f1991['isExternal']=!0x0;}else _0x9f1991['authoredAt']=_0x483ef5['createdAt'];switch(_0x483ef5['data']&&(_0x9f1991['data']=_0x483ef5['data']),_0x483ef5['attributes']&&(_0x9f1991['attributes']=_0x483ef5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x9f1991['_saved']=!0x0),this['_suggestionState']['get'](_0x9f1991)){case'notReady':this['_suggestionState']['set'](_0x9f1991,'dataReady');break;case'markerReady':_0x9f1991['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x9f1991])),this['_refreshSuggestionsChain'](new Set([_0x9f1991])),this['_suggestionState']['set'](_0x9f1991,'ready'),this['fire']('suggestionLoaded',_0x9f1991)):this['_suggestionState']['set'](_0x9f1991,'removed');}return _0x9f1991;}['acceptSuggestion'](_0x37a929){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3861c7 of _0x37a929['getAllAdjacentSuggestions']())_0x3861c7['accept']();});});}['discardSuggestion'](_0x24e8b8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x49c4dd of _0x24e8b8['getAllAdjacentSuggestions']())_0x49c4dd['discard']();});});}['enableCommand'](_0x411bcb,_0x1ac21e){const _0x2c5cce=this['editor']['commands']['get'](_0x411bcb);if(!_0x2c5cce)throw new _0x40045b('track-changes-command-not-found',this,{'commandName':_0x411bcb});if(this['_enabledCommands']['has'](_0x2c5cce))throw new _0x40045b('track-changes-enable-command-twice',this,{'commandName':_0x411bcb});this['_enabledCommands']['add'](_0x2c5cce),_0x1ac21e&&_0x2c5cce['on']('execute',(_0x4c1999,_0x56ff22)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x56ff22['length']>0x0&&_0x56ff22[_0x56ff22['length']-0x1]&&_0x56ff22[_0x56ff22['length']-0x1]['forceDefaultExecution']?_0x56ff22['pop']():(_0x4c1999['return']=_0x1ac21e((..._0x2a4ff3)=>_0x2c5cce['execute'](..._0x2a4ff3,{'forceDefaultExecution':!0x0}),..._0x56ff22),_0x4c1999['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2e339f){let _0x47204f,_0x12b22b;const _0x2293ce=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x47204f=_0x2e339f();}catch(_0x394570){_0x12b22b=_0x394570;}return _0x2293ce||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x12b22b&&_0x40045b['rethrowUnexpectedError'](_0x12b22b,this),_0x47204f;}['markInsertion'](_0x297ecd,_0x8d15d8=null,_0xdcc7c7={}){if(_0x297ecd['isCollapsed'])return null;const _0x1e0967=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xdcc7c7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4c6ba7,meta:_0x2877e3}of this['_findSuggestions'](_0x297ecd,'insertion'))if(_0x2877e3['isOwn']){if(!_0x2877e3['isNextTo']){if(_0x2877e3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x4c6ba7,_0xdcc7c7))continue;return _0x4c6ba7;}if(Xt(_0x4c6ba7,_0xdcc7c7))return _0x4c6ba7;this['_breakSuggestionMarker'](_0x4c6ba7,_0x297ecd['start'],_0x297ecd['end']);break;}if(_0x8d15d8==_0x4c6ba7['subType']&&Xt(_0x4c6ba7,_0xdcc7c7)){const _0x4cb7a0=_0x4c6ba7['getFirstRange']();return _0x4cb7a0['start']['isEqual'](_0x297ecd['end'])?this['_setSuggestionRange'](_0x4c6ba7,this['_model']['createRange'](_0x297ecd['start'],_0x4cb7a0['end'])):this['_setSuggestionRange'](_0x4c6ba7,this['_model']['createRange'](_0x4cb7a0['start'],_0x297ecd['end'])),_0x4c6ba7;}}const _0xf11259=_0xce776c(),_0x1aabd3=_0x1e0967['id'],_0x1523bc=_0x8d15d8?'insertion:'+_0x8d15d8:'insertion',_0x140085=this['_setSuggestionData']({'id':_0xf11259,'type':_0x1523bc,'createdAt':new Date(),'authorId':_0x1aabd3,'attributes':_0xdcc7c7});return this['_addSuggestionMarker'](_0x1523bc,_0xf11259,_0x1aabd3,_0x297ecd),_0x140085;}['markMultiRangeInsertion'](_0x4aab13,_0x1be82c='multi',_0x41725e={}){const _0x170525=this['editor']['plugins']['get']('Users')['me'],_0x5f960e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1be82c,'join');this['_trackingSessionId']&&(_0x41725e['trackingSessionId']=this['_trackingSessionId']);for(const _0x5bbff9 of this['getSuggestions']())if(_0x5bbff9['author']['id']==_0x170525['id']&&'insertion'==_0x5bbff9['type']&&_0x5bbff9['subType']==_0x1be82c&&Xt(_0x5bbff9,_0x41725e)&&(_0x5f960e(_0x5bbff9['getRanges'](),_0x4aab13)||_0x5f960e(_0x4aab13,_0x5bbff9['getRanges']()))){for(const _0x2fa283 of _0x4aab13)_0x5bbff9['addRange'](_0x2fa283);return _0x5bbff9;}for(const {suggestion:_0x5870a6,meta:_0xc12ca5}of this['_findSuggestions'](_0x4aab13,'insertion')){if(!_0xc12ca5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xc12ca5['containsRangeInObject'])continue;if(!Xt(_0x5870a6,_0x41725e))continue;let _0x11ac87=!0x0;for(const _0x4e5fd7 of _0x5870a6['getRanges']())for(const _0x250031 of _0x4aab13)if(!_0x4e5fd7['containsRange'](_0x250031)){_0x11ac87=!0x1;break;}if(_0x11ac87)return _0x5870a6;}const _0x4f6c71=_0xce776c(),_0x446af9=_0x170525['id'],_0xfaa011='insertion:'+_0x1be82c,_0x46e588=this['_setSuggestionData']({'id':_0x4f6c71,'type':_0xfaa011,'createdAt':new Date(),'authorId':_0x446af9,'attributes':_0x41725e});for(const _0x422e27 of _0x4aab13)this['_addSuggestionMarker'](_0xfaa011,_0x4f6c71,_0x446af9,_0x422e27,o['getMultiRangeId']());return _0x46e588;}['markInlineFormat'](_0xe2545e,_0x14283a,_0x2f6479=null,_0x2e0181={}){if(_0x2f6479=_0x2f6479||Kt(_0x14283a),_0xe2545e['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2e0181['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xe659fd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f6479,'accept');return this['forceDefaultExecution'](()=>_0xe659fd([_0xe2545e],_0x14283a,_0x2e0181)),null;}const _0x56a9fc=this['editor']['plugins']['get']('Users')['me'],_0x2fc6b8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5cbe33,meta:_0x5a14de}of this['_findSuggestions'](_0xe2545e,'insertion'))_0x5a14de['isOwn']&&!_0x5a14de['isInsideObject']&&_0x2fc6b8['push'](..._0x5cbe33['getRanges']());}const _0x80be42=function(_0x1e40a3,_0x249b73){const _0x35275a=[];for(const _0x15045f of _0x249b73){const _0x31c1b9=_0x1e40a3['getIntersection'](_0x15045f);_0x31c1b9&&_0x35275a['push'](_0x31c1b9);}return _0x35275a;}(_0xe2545e,_0x2fc6b8),_0x469807=function(_0x2c3b0d,_0x2250b3){const _0xf18580=[_0x2c3b0d];for(const _0x393415 of _0x2250b3){let _0x48a0cb=0x0;for(;_0x48a0cb<_0xf18580['length'];){const _0x3081a3=_0xf18580[_0x48a0cb]['getDifference'](_0x393415);_0xf18580['splice'](_0x48a0cb,0x1,..._0x3081a3),_0x48a0cb+=_0x3081a3['length'];}}return _0xf18580;}(_0xe2545e,_0x2fc6b8);_0x80be42['length']&&this['_model']['change'](()=>{for(const _0x278de4 of _0x80be42){const _0x48dd9e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f6479,'accept');this['forceDefaultExecution'](()=>_0x48dd9e([_0x278de4],_0x14283a,_0x2e0181));}});for(const _0x1a234f of _0x469807){let _0x3372f3=null,_0x113a45=_0x1a234f['start'],_0xba5a69=_0x1a234f['end'];for(const {suggestion:_0x41f337,meta:_0x58e344}of this['_findSuggestions'](_0x1a234f,'formatInline')){if(!_0x58e344['isOwn'])continue;if(_0x41f337['subType']!=_0x2f6479)continue;if(!Xt(_0x41f337,_0x2e0181))continue;const _0x4d2150=_0x41f337['getFirstRange']();if(_0x4d2150['containsRange'](_0x1a234f,!0x0))return null;_0x113a45=_0x113a45['isBefore'](_0x4d2150['start'])?_0x113a45:_0x4d2150['start'],_0xba5a69=_0xba5a69['isAfter'](_0x4d2150['end'])?_0xba5a69:_0x4d2150['end'],_0x3372f3?_0x4d2150['start']['isBefore'](_0x3372f3['getFirstRange']()['start'])?(_0x3372f3['removeMarkers'](),_0x3372f3=_0x41f337):_0x41f337['removeMarkers']():_0x3372f3=_0x41f337;}const _0x225083=this['_model']['createRange'](_0x113a45,_0xba5a69);if(_0x3372f3)this['_setSuggestionRange'](_0x3372f3,_0x225083);else{const _0x5677f6=_0xce776c(),_0x143542=_0x56a9fc['id'];this['_setSuggestionData']({'id':_0x5677f6,'type':'formatInline:'+_0x2f6479,'data':_0x14283a,'createdAt':new Date(),'authorId':_0x143542,'attributes':_0x2e0181}),this['_addSuggestionMarker']('formatInline:'+_0x2f6479,_0x5677f6,_0x143542,_0x225083);}}return null;}['markBlockFormat'](_0x143142,_0x1485cf,_0x3e7ead=[],_0x269c08=null,_0x31ac80={}){_0x1485cf['formatGroupId']||(_0x1485cf['formatGroupId']=_0x1485cf['commandName']),_0x1485cf['multipleBlocks']=_0x143142['is']('range'),_0x269c08=_0x269c08||Kt(_0x1485cf);const _0x36884f=_0x3e7ead['map'](_0x3172ad=>zt(_0x3172ad,this['_model'])),_0x311286=_0x143142['is']('range')?_0x143142:zt(_0x143142,this['_model']);if(this['_trackingSessionId']&&(_0x31ac80['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d09d2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x269c08,'accept');return this['forceDefaultExecution'](()=>_0x1d09d2([_0x311286],_0x1485cf,_0x31ac80)),null;}_0x36884f['push'](_0x311286);let _0x28f8bb=!0x0;for(const _0x54b828 of _0x36884f)if(!this['_rangeIsInLocalUserInsertion'](_0x54b828)){_0x28f8bb=!0x1;break;}if(_0x28f8bb&&'always'!==this['_trackFormatChanges']){const _0x4ddaea=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x269c08,'accept');return this['forceDefaultExecution'](()=>_0x4ddaea([_0x311286],_0x1485cf,_0x31ac80)),null;}let _0x4b9cfd=null,_0x1afe11=_0x311286['start'],_0x2d625e=_0x311286['end'];for(const {suggestion:_0x51e47e,meta:_0x1a05d5}of this['_findSuggestions'](_0x311286,'formatBlock')){if(!_0x1a05d5['isOwn'])continue;if(_0x1a05d5['isNextTo']||_0x1a05d5['containsRangeInObject']||_0x1a05d5['isInsideObject'])continue;if(_0x51e47e['data']['formatGroupId']!=_0x1485cf['formatGroupId'])continue;if(!Xt(_0x51e47e,_0x31ac80))continue;const _0x8ebdfd=_0x51e47e['getFirstRange']();if(_0x51e47e['subType']==_0x269c08){if(_0x8ebdfd['containsRange'](_0x311286,!0x0))return null;_0x1afe11=_0x1afe11['isBefore'](_0x8ebdfd['start'])?_0x1afe11:_0x8ebdfd['start'],_0x2d625e=_0x2d625e['isAfter'](_0x8ebdfd['end'])?_0x2d625e:_0x8ebdfd['end'],_0x4b9cfd?_0x8ebdfd['start']['isBefore'](_0x4b9cfd['getFirstRange']()['start'])?(_0x4b9cfd['removeMarkers'](),_0x4b9cfd=_0x51e47e):_0x51e47e['removeMarkers']():_0x4b9cfd=_0x51e47e;}else{const _0x2cdfc2=_0x311286['getIntersection'](_0x8ebdfd);this['_cutOutSuggestionMarker'](_0x51e47e,_0x2cdfc2);}}const _0xe4521c=this['editor']['plugins']['get']('Users')['me'],_0x21b084=_0xce776c(),_0x16b806=_0xe4521c['id'];if(_0x4b9cfd)return this['_setSuggestionRange'](_0x4b9cfd,this['_model']['createRange'](_0x1afe11,_0x2d625e)),_0x4b9cfd;{const _0x5556a9=this['_setSuggestionData']({'id':_0x21b084,'type':'formatBlock:'+_0x269c08,'data':_0x1485cf,'createdAt':new Date(),'authorId':_0x16b806,'attributes':_0x31ac80});return this['_addSuggestionMarker']('formatBlock:'+_0x269c08,_0x21b084,_0x16b806,this['_model']['createRange'](_0x1afe11,_0x2d625e)),_0x5556a9;}}['markMultiRangeBlockFormat'](_0xab0083,_0x24dbd1,_0x2191c6=[],_0x375c0c=null,_0x18d63d={}){_0x24dbd1['formatGroupId']||(_0x24dbd1['formatGroupId']=_0x24dbd1['commandName']);const _0x3a6a7e=_0xab0083[0x0];_0x24dbd1['multipleBlocks']=_0x3a6a7e['is']('range'),_0x375c0c=_0x375c0c||Kt(_0x24dbd1);const _0x46c7e0=_0x2191c6['map'](_0x47d41d=>zt(_0x47d41d,this['_model'])),_0x1c463f=_0x3a6a7e['is']('range')?_0xab0083:_0xab0083['map'](_0xafbe54=>zt(_0xafbe54,this['_model']));if(this['_trackingSessionId']&&(_0x18d63d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5adf27=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x375c0c,'accept');return this['forceDefaultExecution'](()=>_0x5adf27(_0x1c463f,_0x24dbd1,_0x18d63d)),null;}_0x46c7e0['push'](..._0x1c463f);let _0xdcd344=!0x0;for(const _0x4a0a7b of _0x46c7e0)if(!this['_rangeIsInLocalUserInsertion'](_0x4a0a7b)){_0xdcd344=!0x1;break;}if(_0xdcd344&&'always'!==this['_trackFormatChanges']){const _0x2ee27c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x375c0c,'accept');return this['forceDefaultExecution'](()=>_0x2ee27c(_0x1c463f,_0x24dbd1,_0x18d63d)),null;}const _0x303342=this['editor']['plugins']['get']('Users')['me'];for(const _0x4e7072 of this['getSuggestions']()){if(_0x4e7072['author']['id']!=_0x303342['id'])continue;if('formatBlock'!=_0x4e7072['type']||_0x4e7072['data']['formatGroupId']!=_0x24dbd1['formatGroupId'])continue;if(!Xt(_0x4e7072,_0x18d63d))continue;const _0x38165a=_0x4e7072['subType']==_0x375c0c;for(let _0x1ef0e4=0x0;_0x1ef0e4<_0x1c463f['length'];_0x1ef0e4++){const _0xa50ea4=_0x1c463f[_0x1ef0e4];for(const _0x16348b of _0x4e7072['getMarkers']()){const _0x35464e=_0x16348b['getRange']();if(_0xa50ea4['isEqual'](_0x35464e)){_0x38165a?(_0x1c463f['splice'](_0x1ef0e4,0x1),_0x1ef0e4--):_0x4e7072['removeMarker'](_0x16348b['name']);break;}}}}if(0x0==_0x1c463f['length'])return null;const _0x567be8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x375c0c,'join');for(const _0x4b9fff of this['getSuggestions']())if(_0x4b9fff['author']['id']==_0x303342['id']&&'formatBlock'==_0x4b9fff['type']&&_0x4b9fff['data']['formatGroupId']==_0x24dbd1['formatGroupId']&&_0x4b9fff['subType']==_0x375c0c&&Xt(_0x4b9fff,_0x18d63d)&&(_0x567be8(_0x4b9fff['getRanges'](),_0x1c463f)||_0x567be8(_0x1c463f,_0x4b9fff['getRanges']()))){for(const _0x45295b of _0x1c463f)_0x4b9fff['addRange'](_0x45295b);return _0x4b9fff;}const _0x5e862f=_0xce776c(),_0x2e6ab5=_0x303342['id'],_0x4d5567='formatBlock:'+_0x375c0c,_0x9fb139=this['_setSuggestionData']({'id':_0x5e862f,'type':_0x4d5567,'data':_0x24dbd1,'createdAt':new Date(),'authorId':_0x2e6ab5,'attributes':_0x18d63d});for(const _0x3c893e of _0x1c463f)this['_addSuggestionMarker'](_0x4d5567,_0x5e862f,_0x2e6ab5,_0x3c893e,o['getMultiRangeId']());return _0x9fb139;}['markDeletion'](_0x207eae,_0x1145c6=null,_0x495111={}){if(_0x207eae['isCollapsed'])return null;const _0x5d9d35=this['editor']['plugins']['get']('Users')['me'],_0x1d50ee=new _0x44e392(_0x207eae['start'],_0x207eae['end']);this['_trackingSessionId']&&(_0x495111['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1313b8,meta:_0x19ab3}of this['_findSuggestions'](_0x1d50ee,'insertion'))if(_0x19ab3['isOwn']&&!_0x19ab3['isNextTo']){if(_0x1313b8['isMultiRange']){const _0x35ad48=_0x1313b8['getRanges']()['filter'](_0x4b0fbc=>'$graveyard'!=_0x4b0fbc['root']['rootName']);_0x35ad48['every'](_0x545b52=>_0x1d50ee['containsRange'](_0x545b52,!0x0))&&_0x1313b8['discard']();if(_0x35ad48['some'](_0xb005c2=>_0xb005c2['containsRange'](_0x1d50ee,!0x0))){const _0x518aaa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1145c6,'accept');return this['forceDefaultExecution'](()=>_0x518aaa([_0x1d50ee],null,_0x495111)),null;}}else{const _0x1ec1dd=_0x1d50ee['getIntersection'](_0x1313b8['getFirstRange']());null!==_0x1ec1dd&&_0x1313b8['_onDiscard']([_0x1ec1dd],null,_0x495111);}}if(_0x1d50ee['detach'](),_0x1d50ee['isCollapsed']||'$graveyard'==_0x1d50ee['root']['rootName'])return null;let _0x3e39b5=null,_0x5af34e=_0x1d50ee['start'],_0x5a79b9=_0x1d50ee['end'];const _0x42a0d5=this['_findSuggestions'](_0x1d50ee,'deletion');for(const {suggestion:_0x44ccc1,meta:_0x884654}of _0x42a0d5){const _0x149b80=this['_model']['createRange'](_0x5af34e,_0x5a79b9);if(_0x884654['isOwn']&&(this['_mergeNestedSuggestions']||!_0x884654['containsRangeInObject']&&!_0x884654['isInsideObject'])){if(_0x44ccc1['isMultiRange']){if(!Xt(_0x44ccc1,_0x495111))continue;let _0x3e4c0c=!0x0;for(const _0x380ae7 of _0x44ccc1['getRanges']()){if(_0x380ae7['containsRange'](_0x149b80,!0x0))return _0x44ccc1;_0x149b80['containsRange'](_0x380ae7)||(_0x3e4c0c=!0x1);}_0x3e4c0c&&_0x44ccc1['discard']();}else{const _0x369fab=_0x44ccc1['getFirstRange']();if(_0x369fab['containsRange'](_0x149b80,!0x0))return _0x44ccc1;if(!Xt(_0x44ccc1,_0x495111)){_0x149b80['containsRange'](_0x369fab)?_0x44ccc1['removeMarkers']():_0x369fab['containsPosition'](_0x5af34e)?_0x5af34e=_0x369fab['end']:_0x369fab['containsPosition'](_0x5a79b9)&&(_0x5a79b9=_0x369fab['start']);continue;}_0x5af34e=_0x5af34e['isBefore'](_0x369fab['start'])?_0x5af34e:_0x369fab['start'],_0x5a79b9=_0x5a79b9['isAfter'](_0x369fab['end'])?_0x5a79b9:_0x369fab['end'],_0x495111=Object['assign']({},_0x44ccc1['attributes']),_0x3e39b5?_0x369fab['start']['isBefore'](_0x3e39b5['getFirstRange']()['start'])?(_0x3e39b5['removeMarkers'](),_0x3e39b5=_0x44ccc1):_0x44ccc1['removeMarkers']():_0x3e39b5=_0x44ccc1;}}}if(_0x3e39b5)return this['_setSuggestionRange'](_0x3e39b5,this['_model']['createRange'](_0x5af34e,_0x5a79b9)),_0x3e39b5;{const _0x389db9=_0xce776c(),_0x3e062f=this['_model']['createRange'](_0x5af34e,_0x5a79b9),_0x128347=_0x5d9d35['id'],_0x549a56=_0x1145c6?'deletion:'+_0x1145c6:'deletion',_0x449f15=this['_setSuggestionData']({'id':_0x389db9,'type':_0x549a56,'createdAt':new Date(),'authorId':_0x128347,'attributes':_0x495111});return this['_addSuggestionMarker'](_0x549a56,_0x389db9,_0x128347,_0x3e062f),_0x449f15;}}['markMultiRangeDeletion'](_0x19ca04,_0x4c27d3='multi',_0x9de5a1={}){const _0x4f61fb=this['editor']['plugins']['get']('Users')['me'],_0x5aad93=_0x19ca04['map'](_0x5039b=>new _0x44e392(_0x5039b['start'],_0x5039b['end'])),_0x33e0e5=new Set();this['_trackingSessionId']&&(_0x9de5a1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x48c716,meta:_0x119ca9}of this['_findSuggestions'](_0x5aad93,'insertion'))_0x119ca9['isOwn']&&!_0x119ca9['isNextTo']&&_0x33e0e5['add'](_0x48c716);for(const _0x55475b of _0x33e0e5)if(_0x55475b['isMultiRange']){const _0x32685a=_0x55475b['getRanges']();(!_0x55475b['attributes']||!_0x55475b['attributes']['skipNestingCheck'])&&(_0x32685a['every'](_0x56acdf=>_0x5aad93['some'](_0x1462dc=>_0x1462dc['containsRange'](_0x56acdf,!0x0)))&&_0x55475b['discard']());if(_0x5aad93['every'](_0x321463=>_0x32685a['some'](_0x5240ab=>_0x5240ab['containsRange'](_0x321463,!0x0)))){const _0x402955=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c27d3,'accept');return this['forceDefaultExecution'](()=>_0x402955(_0x19ca04,null,_0x9de5a1)),null;}}else{const _0x55467b=_0x55475b['getFirstRange']();_0x5aad93['some'](_0x1f4dfd=>_0x1f4dfd['containsRange'](_0x55467b,!0x0))&&_0x55475b['discard']();if(_0x5aad93['every'](_0x134965=>_0x55467b['containsRange'](_0x134965,!0x0))){const _0x5638eb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c27d3,'accept');return this['forceDefaultExecution'](()=>_0x5638eb(_0x5aad93,null,_0x9de5a1)),null;}}const _0xed6787=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c27d3,'join');let _0x5cf0ec=null;for(const _0x52f372 of this['getSuggestions']())if(_0x52f372['author']['id']==_0x4f61fb['id']&&_0x52f372['isInContent']&&'deletion'==_0x52f372['type']&&_0x52f372['subType']==_0x4c27d3&&Xt(_0x52f372,_0x9de5a1)&&(_0xed6787(_0x52f372['getRanges'](),_0x5aad93)||_0xed6787(_0x5aad93,_0x52f372['getRanges']()))){if(_0x5cf0ec){if(_0x52f372['commentThread']&&_0x52f372['commentThread']['length'])continue;for(const _0xd01fb3 of _0x52f372['getRanges']())_0x5cf0ec['isIntersectingWithRange'](_0xd01fb3)||_0x5cf0ec['addRange'](_0xd01fb3);_0x52f372['removeMarkers']();}else{_0x5cf0ec=_0x52f372;for(const _0x4a1624 of _0x5aad93)_0x52f372['isIntersectingWithRange'](_0x4a1624)||_0x52f372['addRange'](_0x4a1624);}}if(_0x5cf0ec)return _0x5cf0ec;_0x33e0e5['clear']();for(const {suggestion:_0x55bfa4,meta:_0x262ed8}of this['_findSuggestions'](_0x5aad93,'deletion'))_0x262ed8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x262ed8['containsRangeInObject']&&!_0x262ed8['isInsideObject'])&&Xt(_0x55bfa4,_0x9de5a1)&&_0x33e0e5['add'](_0x55bfa4);for(const _0x359770 of _0x33e0e5){const _0x5496c5=_0x359770['getRanges']();if(!_0x9de5a1||!_0x9de5a1['skipNestingCheck']){if(_0x5aad93['every'](_0x2c04c8=>_0x5496c5['some'](_0x2c324e=>_0x2c324e['containsRange'](_0x2c04c8,!0x0))))return _0x359770;}(!_0x359770['attributes']||!_0x359770['attributes']['skipNestingCheck'])&&(_0x5496c5['every'](_0x53ea44=>_0x5aad93['some'](_0x392b00=>_0x392b00['containsRange'](_0x53ea44,!0x0)))&&_0x359770['discard']());}const _0x7dc801=_0xce776c(),_0x16d241=_0x4f61fb['id'],_0x4b864a='deletion:'+_0x4c27d3,_0x52b5a5=this['_setSuggestionData']({'id':_0x7dc801,'type':_0x4b864a,'createdAt':new Date(),'authorId':_0x16d241,'attributes':_0x9de5a1});for(const _0x1ea9cd of _0x5aad93)_0x1ea9cd['detach'](),_0x1ea9cd['isCollapsed']||'$graveyard'==_0x1ea9cd['root']['rootName']||this['_addSuggestionMarker'](_0x4b864a,_0x7dc801,_0x16d241,_0x1ea9cd,o['getMultiRangeId']());return _0x52b5a5;}['markAttributeChange'](_0x43c68d,_0x375269,_0x47673a,_0x370664,_0x3a02e9){if(_0x43c68d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x8066c0=this['editor']['plugins']['get']('Users')['me']['id'],_0x514667=Array['from'](this['_suggestions']['values']())['filter'](_0x1f4fac=>'attribute'==_0x1f4fac['type']&&_0x1f4fac['data']['key']==_0x375269&&_0x1f4fac['isIntersectingWithRange'](_0x43c68d));if(this['_trackingSessionId']&&(_0x3a02e9['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x462d9a=this['_findSuggestions'](_0x43c68d,'insertion')['filter'](({meta:_0x2372cf})=>_0x2372cf['isOwn']&&!_0x2372cf['isInsideObject']&&!_0x2372cf['isNextTo'])['map'](({suggestion:_0x386b53})=>_0x386b53);_0x514667['unshift'](..._0x462d9a);}const _0x11a94c=new Map([[_0x43c68d,_0x47673a]]);for(const _0xe5697d of _0x514667){const _0x5e2401='attribute'==_0xe5697d['type']?_0xe5697d['data']['oldValue']:void 0x0,_0x207208=_0xe5697d['getFirstRange'](),_0x412916=Array['from'](_0x11a94c['keys']())['find'](_0x5d18d2=>_0x5d18d2['isIntersecting'](_0x207208));if(!_0x412916)continue;const _0x3959f4=_0x412916['getDifference'](_0x207208);this['_isBlockAttribute'](_0x375269)&&'insertion'==_0xe5697d['type']&&0x0!=_0x3959f4['length']||(_0x11a94c['delete'](_0x412916),_0x3959f4['forEach'](_0x442e12=>{_0x11a94c['set'](_0x442e12,_0x47673a);}),'insertion'!=_0xe5697d['type']&&_0x5e2401!=_0x370664&&_0x11a94c['set'](_0x412916['getIntersection'](_0x207208),_0x5e2401));}const _0x3246fe=[];for(const [_0x2c5c80,_0x5e8281]of _0x11a94c){const _0x2b3235=_0xce776c(),_0x14d709={'key':_0x375269,'oldValue':_0x5e8281,'newValue':_0x370664};_0x375269['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':_0x375269});const _0x5df095=('attribute:'+(_0x375269+'|'+Kt({'newValue':_0x370664})))['substring'](0x0,0x3c),_0x1ff9c9=this['_setSuggestionData']({'id':_0x2b3235,'type':_0x5df095,'data':_0x14d709,'createdAt':new Date(),'authorId':_0x8066c0,'attributes':_0x3a02e9});_0x3246fe['push'](_0x1ff9c9),this['_addSuggestionMarker'](_0x5df095,_0x2b3235,_0x8066c0,_0x2c5c80);}return _0x3246fe;}['enableDefaultAttributesIntegration'](_0x49f01f){this['enableCommand'](_0x49f01f,(_0x47042d,..._0x532228)=>{this['_recordAttributeChanges'](()=>{_0x47042d(..._0x532228);});});}['registerBlockAttribute'](_0x3b68a6){this['_blockAttributeKeys']['add'](_0x3b68a6);}['registerInlineAttribute'](_0x48bc4b){this['_inlineAttributeKeys']['add'](_0x48bc4b);}['startTrackingSession'](_0x163729){return this['_trackingSessionId']=void 0x0!==_0x163729?_0x163729:_0xce776c(),this['_trackingSessionId'];}['_getAttributeKey'](_0x55e180){return'attribute'==_0x55e180['type']?_0x55e180['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x78f0ad,_0x3e3dd4){const _0x5404b5=_0x78f0ad['getFirstMarker']();this['_model']['change'](_0x5cc42f=>{_0x5cc42f['updateMarker'](_0x5404b5,{'range':_0x3e3dd4});});}['_addThreadToSuggestion'](_0x1b5ac2){const _0x29fdbb=_0x1b5ac2['id'],_0x30f253=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x29fdbb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x30f253,'threadId':_0x29fdbb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x55837d=this['_commentsRepository']['getCommentThread'](_0x29fdbb);_0x55837d['unbind']('isRemovable'),_0x55837d['isRemovable']=!0x1,_0x1b5ac2['commentThread']=_0x55837d;}['_checkSuggestionCorrectness'](_0x292721,_0x54b278,_0x3fe0ea,_0x3d6586){if(_0x292721['type']!=_0x54b278||_0x292721['subType']!=_0x3fe0ea||_0x292721['creator']['id']!=_0x3d6586)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x40045b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x44ec23,_0x557f11){const _0x8a7144=_0x44ec23['getFirstRange']();if(_0x557f11['isEqual'](_0x8a7144))_0x44ec23['removeMarkers']();else{if(_0x8a7144['containsRange'](_0x557f11)){const _0x432395=this['_model']['createPositionAt'](_0x557f11['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44ec23,this['_model']['createRange'](_0x8a7144['start'],_0x432395));const _0x3e11a9=_0xce776c(),_0x379675=_0x44ec23['creator']['id'],_0x4f4b8e=_0x44ec23['type']+':'+_0x44ec23['subType'];this['_setSuggestionData']({'id':_0x3e11a9,'type':_0x4f4b8e,'createdAt':new Date(),'authorId':_0x379675,'data':_0x44ec23['data'],'attributes':_0x44ec23['attributes']});const _0xd61ec7=this['_model']['createPositionAt'](_0x557f11['end']['parent'],'after'),_0x55fa55=this['_model']['createRange'](_0xd61ec7,_0x8a7144['end']);this['_addSuggestionMarker'](_0x4f4b8e,_0x3e11a9,_0x379675,_0x55fa55);}else{if(_0x8a7144['containsPosition'](_0x557f11['start'])){const _0x58a755=this['_model']['createPositionAt'](_0x557f11['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44ec23,this['_model']['createRange'](_0x8a7144['start'],_0x58a755));}else{const _0x5edb76=this['_model']['createPositionAt'](_0x557f11['end']['parent'],'after');this['_setSuggestionRange'](_0x44ec23,this['_model']['createRange'](_0x5edb76,_0x8a7144['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5b62c8){for(const {suggestion:_0x111a23,meta:_0x187b16}of this['_findSuggestions'](_0x5b62c8,'insertion')){if(!_0x187b16['isOwn'])continue;const _0x4956de=_0x111a23['getRanges']();for(const _0x216fd9 of _0x4956de)if(!_0x5b62c8['getDifference'](_0x216fd9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x18f06a){const _0xe4c11a=this['editor']['plugins']['get']('Users')['getUser'](_0x18f06a);if(!_0xe4c11a)throw new _0x40045b('track-changes-user-not-found',this);return _0xe4c11a;}['_getExternalAuthor'](_0x1ce680){const _0x46c153=this['editor']['plugins']['get']('Users'),_0x437afb=_0x7d0f3d('external:'+_0x1ce680),_0x31e237=_0x46c153['getUser'](_0x437afb);return _0x31e237||_0x46c153['addUser']({'id':_0x437afb,'name':_0x1ce680});}['_createSuggestion'](_0x12857f,_0x2ea03b,_0x56509e,_0x32f084,_0x4ca141){const _0x21b706=this['_getAuthorFromId'](_0x32f084),_0x3e02aa=this['_suggestionFactory']['buildSuggestion'](_0x12857f,_0x2ea03b,_0x56509e,_0x21b706,_0x4ca141,_0x373d09=>{this['_updateSuggestionData'](_0x56509e,{'attributes':_0x373d09});const _0x40f81c=this['getSuggestion'](_0x56509e);this['_joinWithAdjacentSuggestions'](new Set([_0x40f81c])),this['_refreshSuggestionsChain'](new Set([_0x40f81c]));});return this['listenTo'](_0x3e02aa,'accept',()=>{this['_updateSuggestionData'](_0x56509e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3e02aa,'discard',()=>{this['_updateSuggestionData'](_0x56509e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x56509e,_0x3e02aa),this['_suggestionState']['set'](_0x3e02aa,'notReady'),_0x3e02aa;}['_splitMarkerName'](_0x34d683){const _0x149bf0=_0x34d683['split'](':');return{'group':_0x149bf0[0x0],'type':_0x149bf0[0x1],'subType':_0x149bf0['length']>=0x5?_0x149bf0[0x2]:null,'id':_0x149bf0['length']<0x5?_0x149bf0[0x2]:_0x149bf0[0x3],'authorId':_0x149bf0['length']<0x5?_0x149bf0[0x3]:_0x149bf0[0x4],'markerCount':0x6==_0x149bf0['length']?_0x149bf0[0x5]:null};}['_breakSuggestionMarker'](_0x3f93a2,_0x31d226,_0x1f5781){const _0x1b960d=_0x3f93a2['getFirstRange'](),_0x348868=_0x1b960d['start'],_0x1059b4=_0x1b960d['end'];this['_setSuggestionRange'](_0x3f93a2,this['_model']['createRange'](_0x348868,_0x31d226));const _0x12bbfa=_0xce776c(),_0x4d89eb=_0x3f93a2['creator']['id'],_0xc880a2=_0x3f93a2['type']+(_0x3f93a2['subType']?':'+_0x3f93a2['subType']:'');this['_setSuggestionData']({'id':_0x12bbfa,'type':_0xc880a2,'createdAt':new Date(),'authorId':_0x4d89eb,'originalSuggestionId':_0x3f93a2['id'],'attributes':_0x3f93a2['attributes'],'data':_0x3f93a2['data']});const _0x3ff3d0=this['_getAttributeKey'](_0x3f93a2);('formatBlock'==_0x3f93a2['type']||_0x3ff3d0&&this['_isBlockAttribute'](_0x3ff3d0))&&(_0x1f5781=this['_model']['createPositionBefore'](_0x1f5781['parent'])),this['_addSuggestionMarker'](_0xc880a2,_0x12bbfa,_0x4d89eb,this['_model']['createRange'](_0x1f5781,_0x1059b4));}['_findSuggestions'](_0xf22335,_0xdf4624=null){const _0x586f1f=[],_0x55dd50=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xf22335)||(_0xf22335=[_0xf22335]);for(const _0x5d6abf of this['getSuggestions']()){if(!_0x5d6abf['isInContent'])continue;if(_0xdf4624&&_0x5d6abf['type']!=_0xdf4624)continue;let _0x8059e4=!0x1;for(const _0x480a38 of _0x5d6abf['getRanges']()){for(const _0x39378d of _0xf22335){const _0x4e9fc1=_0x39378d['start']['isEqual'](_0x480a38['end'])||_0x39378d['end']['isEqual'](_0x480a38['start']);if(_0x4e9fc1||_0x39378d['getIntersection'](_0x480a38)){const _0x55d998=_0x39378d['containsRange'](_0x480a38)&&Gt(this['_model']['schema'],_0x480a38['start'],_0x39378d),_0x5b903c=_0x480a38['containsRange'](_0x39378d)&&Gt(this['_model']['schema'],_0x39378d['start'],_0x480a38);_0x586f1f['push']({'suggestion':_0x5d6abf,'meta':{'isOwn':_0x55dd50==_0x5d6abf['author'],'isNextTo':_0x4e9fc1,'isInsideObject':_0x55d998,'containsRangeInObject':_0x5b903c}}),_0x8059e4=!0x0;break;}}if(_0x8059e4)break;}}return _0x586f1f;}['_addSuggestionMarker'](_0x2e31d3,_0x2cb12b,_0x4201bc,_0x2abe91,_0x26caf2){this['_model']['change'](_0x488b75=>{let _0x4738fe='suggestion:'+_0x2e31d3+':'+_0x2cb12b+':'+_0x4201bc;_0x26caf2&&(_0x4738fe=_0x4738fe+':'+_0x26caf2),_0x488b75['addMarker'](_0x4738fe,{'range':_0x2abe91,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2638ac){const _0x4e5376=_0x2638ac['previous'],_0x401609=_0x2638ac['next'];_0x2638ac['previous']=null,_0x2638ac['next']=null,null!=_0x4e5376&&_0x4e5376['next']==_0x2638ac&&(_0x4e5376['next']=_0x401609),null!=_0x401609&&_0x401609['previous']==_0x2638ac&&(_0x401609['previous']=_0x4e5376),'ready'==this['_suggestionState']['get'](_0x2638ac)&&(this['_suggestionState']['set'](_0x2638ac,'removed'),this['fire']('suggestionUnloaded',_0x2638ac,_0x4e5376,_0x401609));}['_setSuggestionData'](_0xfc4f8d){const _0xc3e2e2=_0xfc4f8d['id'],_0x15a2cd=this['addSuggestionData'](_0xfc4f8d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5c78ca=this['editor']['plugins']['get']('PendingActions'),_0x26bc82=_0x15a2cd['hasComments'],_0x39d7cf=_0x15a2cd['subType']?_0x15a2cd['type']+':'+_0x15a2cd['subType']:_0x15a2cd['type'],_0x3ec3c8=this['editor']['locale'],_0x57bdbc=_0x5c78ca['add'](c(_0x3ec3c8,'PENDING_ACTION_SUGGESTION')),_0x47e103={'id':_0xc3e2e2,'type':_0x39d7cf,'hasComments':_0x26bc82,'data':_0xfc4f8d['data']||null,'originalSuggestionId':_0xfc4f8d['originalSuggestionId']||null,'attributes':_0x15a2cd['attributes']};this['_adapter']['addSuggestion'](_0x47e103)['then'](_0x258f04=>{_0x15a2cd['_saved']=!0x0,_0x5c78ca['remove'](_0x57bdbc),_0x258f04&&_0x258f04['createdAt']&&(this['_suggestions']['get'](_0xc3e2e2)['createdAt']=_0x258f04['createdAt']);})['catch'](_0x9b0554=>{throw _0x528bc4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x15a2cd['discard']();}),_0x15a2cd['stopListening'](),this['_suggestions']['delete'](_0x15a2cd['id']),this['_suggestionState']['delete'](_0x15a2cd),_0x9b0554;});}return _0x15a2cd;}['_isBlockAttribute'](_0x49a856){return this['_blockAttributeKeys']['has'](_0x49a856);}['_updateSuggestionData'](_0x49ddd7,_0x593f7a){const _0x1d00e7=this['editor']['plugins']['get']('PendingActions'),_0x36cc0f=this['getSuggestion'](_0x49ddd7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x36cc0f['_saved']){const _0xf77eed=_0x1d00e7['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x49ddd7,_0x593f7a)['then'](()=>{_0x1d00e7['remove'](_0xf77eed);});}else _0x36cc0f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x49ddd7,_0x593f7a);});}}['_getSuggestionData'](_0x328c3f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x40045b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x328c3f);}['_handleNewSuggestionMarker'](_0x3f2d9a){const {id:_0x2ff9aa,type:_0x22d059,subType:_0x50fd47,authorId:_0x3e60c6}=this['_splitMarkerName'](_0x3f2d9a),_0x590916=this['_suggestions']['get'](_0x2ff9aa)||this['_createSuggestion'](_0x22d059,_0x50fd47,_0x2ff9aa,_0x3e60c6,{});switch(this['_checkSuggestionCorrectness'](_0x590916,_0x22d059,_0x50fd47,_0x3e60c6),this['_suggestionState']['get'](_0x590916)){case'notReady':this['_getSuggestionData'](_0x2ff9aa)['then'](_0x506846=>{let _0x553eea=Promise['resolve']();_0x506846['hasComments']&&(_0x553eea=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ff9aa})),_0x553eea['then'](()=>{this['addSuggestionData'](_0x506846)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x590916,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ff9aa,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x590916,'ready'),this['fire']('suggestionLoaded',_0x590916);break;case'ready':this['fire']('suggestionChanged',_0x590916);}return _0x590916['addMarkerName'](_0x3f2d9a),_0x590916;}['_refreshSuggestionsChain'](_0x425a90){const _0x524123=Array['from'](_0x425a90),_0xac41a6=_0x524123['filter'](_0x264f8e=>'attribute'==_0x264f8e['type']);this['_refreshAttributeSuggestionsChain'](_0xac41a6);const _0x6cf36d=_0x524123['filter'](_0xee4416=>!_0xee4416['isMultiRange']&&'attribute'!=_0xee4416['type']),_0x28631f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cf007=>!_0x5cf007['isMultiRange']&&'attribute'!=_0x5cf007['type']),_0x11623f=_0x28631f['filter'](_0x44b45e=>!_0x425a90['has'](_0x44b45e)),_0x19915f=new Map(_0x28631f['map'](_0xe094c4=>[_0xe094c4,this['_suggestionFactory']['getSuggestionCallback'](_0xe094c4['type'],_0xe094c4['subType'],'chain')])),_0x4d4e08=new Map(_0x28631f['map'](_0xe0200f=>[_0xe0200f,_0xe0200f['getFirstRange']()])),_0x59abc1=new Set(),_0x2f1fa8=new Set();for(let _0x33ba06=0x0;_0x33ba06<_0x6cf36d['length'];_0x33ba06++)_0x5e9af4(_0x6cf36d[_0x33ba06],_0x6cf36d,_0x33ba06+0x1);for(let _0x32260a=0x0;_0x32260a<_0x6cf36d['length'];_0x32260a++)_0x5e9af4(_0x6cf36d[_0x32260a],_0x11623f,0x0);const _0x145e37=new Set();for(let _0x495003=0x0;_0x495003<_0x6cf36d['length'];_0x495003++){const _0x55edd8=_0x6cf36d[_0x495003];!_0x2f1fa8['has'](_0x55edd8)&&_0x55edd8['previous']&&(_0x145e37['add'](_0x55edd8['previous']),_0x55edd8['previous']['next']===_0x55edd8&&(_0x55edd8['previous']['next']=null),_0x55edd8['previous']=null),!_0x59abc1['has'](_0x55edd8)&&_0x55edd8['next']&&(_0x145e37['add'](_0x55edd8['next']),_0x55edd8['next']['previous']===_0x55edd8&&(_0x55edd8['next']['previous']=null),_0x55edd8['next']=null);}function _0x5e9af4(_0x2d2a6f,_0x596d9c,_0x53fa24){for(let _0x23d311=_0x53fa24;_0x23d311<_0x596d9c['length'];_0x23d311++){const _0x4f5686=_0x566779(_0x2d2a6f,_0x596d9c[_0x23d311]);_0x4f5686&&(_0x4f5686[0x0]['next']=_0x4f5686[0x1],_0x4f5686[0x1]['previous']=_0x4f5686[0x0],_0x59abc1['add'](_0x4f5686[0x0]),_0x2f1fa8['add'](_0x4f5686[0x1]));}}function _0x566779(_0x2fda8b,_0x27a8a4){if(_0x2fda8b['author']['id']!==_0x27a8a4['author']['id'])return null;const _0x1dd815=_0x19915f['get'](_0x2fda8b)(_0x2fda8b,_0x27a8a4,_0x4d4e08['get'](_0x2fda8b),_0x4d4e08['get'](_0x27a8a4));if(!_0x1dd815)return null;return _0x19915f['get'](_0x27a8a4)(_0x2fda8b,_0x27a8a4,_0x4d4e08['get'](_0x2fda8b),_0x4d4e08['get'](_0x27a8a4))?_0x1dd815[0x1]['commentThread']&&_0x1dd815[0x1]['commentThread']['length']?null:_0x1dd815:null;}_0x145e37['size']&&this['_refreshSuggestionsChain'](_0x145e37);}['_refreshAttributeSuggestionsChain'](_0x35c99f){if(0x0==_0x35c99f['length'])return;const _0x29c81f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e380a=>'attribute'==_0x5e380a['type']&&_0x5e380a['_isDataLoaded']),_0x257297=[],_0x5b7b16=new Map();for(const _0x109699 of _0x29c81f){const _0x4e94ec=_0x7d0f3d(_0x109699['attributes']);_0x5b7b16['has'](_0x4e94ec)||(_0x5b7b16['set'](_0x4e94ec,_0x257297['length']),_0x257297['push']([]));const _0x2e2eb0=_0x5b7b16['get'](_0x4e94ec);_0x257297[_0x2e2eb0]['push'](_0x109699);}!(function(){_0x257297['sort']((_0xf2dab2,_0xb8ffa5)=>{const _0x2208f7=_0xf2dab2[0x0]['createdAt'],_0x166e19=_0xb8ffa5[0x0]['createdAt'];return _0x2208f7==_0x166e19?_0xf2dab2[0x0]['attributes']['groupId']<_0xb8ffa5[0x0]['attributes']['groupId']?-0x1:0x1:_0x2208f7<_0x166e19?-0x1:0x1;});for(const _0x35584d of _0x257297)_0x35584d['sort']((_0x380153,_0x2d949c)=>_0x380153['id']<_0x2d949c['id']?-0x1:0x1);}());for(let _0x77e838=0x0;_0x77e838<_0x257297['length'];_0x77e838++){if(0x0==_0x257297[_0x77e838]['length'])continue;const _0x107561=[];for(let _0xba2481=_0x77e838+0x1;_0xba2481<_0x257297['length'];_0xba2481++)0x0!=_0x257297[_0xba2481]['length']&&_0x30f833(_0x257297[_0x77e838],_0x257297[_0xba2481])&&_0x107561['push'](_0xba2481);for(const _0x22686b of _0x107561)_0x257297[_0x77e838]=_0x257297[_0x77e838]['concat'](_0x257297[_0x22686b]),_0x257297[_0x22686b]=[];}for(const _0x15a78c of _0x257297)for(let _0x131afe=0x0;_0x131afe<_0x15a78c['length'];_0x131afe++){const _0x3d2c37=_0x15a78c[_0x131afe+0x1]||null;_0x15a78c[_0x131afe]['next']!==_0x3d2c37&&(_0x15a78c[_0x131afe]['next']=_0x3d2c37);}for(const _0x2c1f3c of _0x257297)for(let _0x9919d3=0x0;_0x9919d3<_0x2c1f3c['length'];_0x9919d3++){const _0x1a2e9a=_0x2c1f3c[_0x9919d3-0x1]||null;_0x2c1f3c[_0x9919d3]['previous']!==_0x1a2e9a&&(_0x2c1f3c[_0x9919d3]['previous']=_0x1a2e9a);}function _0x30f833(_0xb0bae4,_0xbd8cb){if(_0xb0bae4[0x0]['attributes']['groupId']!==_0xbd8cb[0x0]['attributes']['groupId']&&_0xb0bae4[0x0]['author']!==_0xbd8cb[0x0]['author'])return!0x1;if(!function(_0x1aff1c,_0x115918){if(!_0x1aff1c['hasComments']&&!_0x115918['hasComments'])return!0x0;if(_0x1aff1c['hasComments']&&_0x115918['hasComments'])return!0x1;if(_0x1aff1c['hasComments']&&_0x115918['createdAt']<_0x1aff1c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x115918['hasComments']&&_0x1aff1c['createdAt']<_0x115918['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xb0bae4[0x0],_0xbd8cb[0x0]))return!0x1;const _0x367118=Ft(_0xb0bae4[0x0]['attributes'],['groupId','trackingSessionId']),_0x3bb0ff=Ft(_0xbd8cb[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xb1d1f6(_0x367118,_0x3bb0ff))return!0x1;if(_0xb0bae4[0x0]['attributes']['groupId']==_0xbd8cb[0x0]['attributes']['groupId'])return!0x0;if(_0xb0bae4[0x0]['attributes']['trackingSessionId']!==_0xbd8cb[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xb0bae4['every'](_0x5c96ac=>_0xbd8cb['some'](_0x19bbe8=>_0x5c96ac['getFirstRange']()['isEqual'](_0x19bbe8['getFirstRange']())))&&_0xbd8cb['every'](_0x4caf77=>_0xb0bae4['some'](_0x39d7a3=>_0x4caf77['getFirstRange']()['isEqual'](_0x39d7a3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x49bfca){const _0x513491=Array['from'](_0x49bfca),_0xd33f66=this['getSuggestions']({'skipNotAttached':!0x0}),_0x498e22=_0xd33f66['filter'](_0x7f7c7=>!_0x49bfca['has'](_0x7f7c7)),_0x32a6f1=new Map(_0x513491['map'](_0x39c96b=>[_0x39c96b,this['_suggestionFactory']['getSuggestionCallback'](_0x39c96b['type'],_0x39c96b['subType'],'join')])),_0x1bd885=new Map(_0xd33f66['map'](_0x2e32cc=>[_0x2e32cc,_0x2e32cc['getRanges']()]));for(let _0x1db3a1=0x0;_0x1db3a1<_0x513491['length'];_0x1db3a1++){if(_0x535923(this,_0x513491[_0x1db3a1],_0x513491,_0x1db3a1+0x1))return!0x0;}for(let _0xa398f8=0x0;_0xa398f8<_0x513491['length'];_0xa398f8++){if(_0x535923(this,_0x513491[_0xa398f8],_0x498e22,0x0))return!0x0;}return!0x1;function _0x535923(_0x56b7e7,_0x16ea6d,_0xae2b92,_0x3a3439){for(let _0x2d827c=_0x3a3439;_0x2d827c<_0xae2b92['length'];_0x2d827c++){const _0x29c07f=_0xae2b92[_0x2d827c];if(_0x29c07f['type']!==_0x16ea6d['type']||_0x29c07f['author']['id']!==_0x16ea6d['author']['id']||_0x29c07f['subType']!==_0x16ea6d['subType'])continue;if(!Qt(_0x16ea6d,_0x29c07f))continue;if('attribute'==_0x16ea6d['type']&&_0x16ea6d['data']['oldValue']!=_0x29c07f['data']['oldValue'])continue;if('attribute'==_0x16ea6d['type']&&_0x56b7e7['_isBlockAttribute'](_0x16ea6d['data']['key']))continue;if('formatBlock'==_0x16ea6d['type']){const _0x4a95fc=_0x56b7e7['editor']['model'],_0x4d6b77=_0x16ea6d['getContainedElement']();if(_0x4d6b77&&(_0x4a95fc['schema']['isObject'](_0x4d6b77)||_0x4a95fc['schema']['isLimit'](_0x4d6b77)))continue;}const _0x46051a=_0x32a6f1['get'](_0x16ea6d),_0x485ebd=_0x1bd885['get'](_0x16ea6d),_0x1ca83c=_0x1bd885['get'](_0x29c07f),_0x3645fe=_0x16ea6d['commentThread']&&_0x16ea6d['commentThread']['length'],_0xe762c2=_0x29c07f['commentThread']&&_0x29c07f['commentThread']['length'];if(!_0x3645fe&&_0x46051a(_0x1ca83c,_0x485ebd))return _0x56b7e7['_joinSuggestions'](_0x29c07f,_0x16ea6d),_0x1bd885['delete'](_0x16ea6d),!0x0;if(!_0xe762c2&&_0x46051a(_0x485ebd,_0x1ca83c))return _0x56b7e7['_joinSuggestions'](_0x16ea6d,_0x29c07f),_0x1bd885['delete'](_0x29c07f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x47cbe1,_0x10e0b3){if(_0x47cbe1['isMultiRange']){for(const _0x1f3ee1 of _0x10e0b3['getRanges']())_0x47cbe1['addRange'](_0x1f3ee1);}else{const _0x12e08e=_0x10e0b3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x47cbe1,this['_model']['createRange'](_0x47cbe1['getFirstRange']()['start'],_0x12e08e));}_0x10e0b3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x249946,_0x391e68,_0x1ba40f){const _0x52f8d9=_0x249946['startsWith']('format')||_0x249946['startsWith']('attribute')?'FORMATTING':_0x249946['toUpperCase']();return c(this['editor']['locale'],_0x391e68+'_'+_0x52f8d9+'_SUGGESTION_ANNOUNCEMENT',_0x1ba40f);}['_initAriaMarkerChangeAnnouncements'](){const _0x1508c6=this['editor'];if(!_0x1508c6['ui'])return;const {ariaLiveAnnouncer:_0x273744}=_0x1508c6['ui'];_0x283126(this['_model'],({left:_0x34522d,entered:_0x5443ca})=>{for(const _0x661e66 of _0x34522d){const {group:_0x5284ad,type:_0x3a6c14}=this['_splitMarkerName'](_0x661e66['name']);if('suggestion'===_0x5284ad){_0x273744['announce'](this['_getMarkerAnnouncementText'](_0x3a6c14,'LEAVE'));break;}}for(const _0x28113a of _0x5443ca){const {group:_0x4ea4fd,type:_0x40b2f0}=this['_splitMarkerName'](_0x28113a['name']);if('suggestion'===_0x4ea4fd){_0x273744['announce'](this['_getMarkerAnnouncementText'](_0x40b2f0,'ENTER',_0x1c110e(_0x18a943)));break;}}});}['_processAttributeChanges'](_0x2effea){if(this['_recordAttributeSuggestions'])return!0x1;const _0x202ad5=this['editor'],_0x7d7dd2=_0x202ad5['model']['document']['differ']['getChanges']();if(0x0==_0x7d7dd2['length'])return!0x1;const _0x296bf5=[],_0x4409a0=_0x7d7dd2['filter'](_0x498c74=>'attribute'==_0x498c74['type']),_0x10b002=_0x7d7dd2['filter'](_0x96297a=>'insert'==_0x96297a['type']&&'$text'!=_0x96297a['name']),_0x26910d=_0x7d7dd2['filter'](_0x5f4fc0=>'remove'==_0x5f4fc0['type']&&'$text'!=_0x5f4fc0['name']);for(const _0x45378b of _0x4409a0)_0x296bf5['push']({'key':_0x45378b['attributeKey'],'newValue':_0x45378b['attributeNewValue'],'oldValue':_0x45378b['attributeOldValue'],'range':qt(_0x45378b['range'],_0x202ad5['model'])});for(const _0x208633 of _0x10b002){const _0x149912=_0x26910d['find'](_0x1468ec=>_0x1468ec['position']['isEqual'](_0x208633['position']));_0x149912&&_0x296bf5['push']({'key':u,'newValue':_0x208633['name'],'oldValue':_0x149912['name'],'range':_0x202ad5['model']['createRangeOn'](_0x208633['position']['nodeAfter'])});}return 0x0!=_0x296bf5['length']&&this['_reduceExistingSuggestions'](_0x2effea,_0x296bf5);}['_processAttributeSuggestions'](_0x268eb0){let _0x5c8f90=!0x1;const _0x545257=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2b1f29=>_0x2b1f29['data']['newRange']&&_0x2b1f29['name']['startsWith']('suggestion:attribute:'));for(const _0x21be62 of _0x545257){const {subType:_0x19932c,id:_0x1b1b7f}=this['_splitMarkerName'](_0x21be62['name']),_0x27110d=_0x19932c['split']('|')[0x0];for(const _0x3a5e67 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3a5e67['id']!=_0x1b1b7f&&'attribute'==_0x3a5e67['type']&&_0x3a5e67['data']&&_0x3a5e67['data']['key']==_0x27110d&&_0x3a5e67['getFirstRange']()['isIntersecting'](_0x21be62['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3a5e67,_0x21be62['data']['newRange'],_0x268eb0),_0x5c8f90=!0x0);}return _0x5c8f90;}['_recordAttributeChanges'](_0x1bfa90){this['_recordAttributeSuggestions']=!0x0,_0x1bfa90();}['_isRegisteredAttribute'](_0x415fcc){const _0x112f87=this['_isBlockAttribute'](_0x415fcc),_0x179aaf=this['_inlineAttributeKeys']['has'](_0x415fcc);return _0x112f87||_0x179aaf;}['_reduceExistingSuggestions'](_0x358e7e,_0x4d4fd4){if(0x0==_0x4d4fd4['length'])return!0x1;let _0x26be0b=!0x1;for(const _0x124919 of _0x4d4fd4){const _0xadedb6=this['_findSuggestions'](_0x124919['range'],'attribute')['filter'](_0x5f3b04=>!_0x5f3b04['meta']['isNextTo'])['map'](_0x5004c7=>_0x5004c7['suggestion']),_0x187f09=_0x7d0f3d({'newValue':_0x124919['newValue']});_0xadedb6['filter'](_0x27bed3=>{const [_0x4985d2,_0x18fab8]=_0x27bed3['subType']['split']('|');return _0x4985d2==_0x124919['key']&&_0x18fab8!=_0x187f09;})['forEach'](_0x3610e2=>{this['_reduceSuggestionAttributeRange'](_0x3610e2,_0x124919['range'],_0x358e7e),_0x26be0b=!0x0;});}return _0x26be0b;}['_reduceSuggestionAttributeRange'](_0x37872c,_0x4bf29d,_0x44ab05){const _0x42b795=_0x37872c['getFirstRange']()['getDifference'](_0x4bf29d);0x0!==_0x42b795['length']?0x1!==_0x42b795['length']?this['_breakSuggestionMarker'](_0x37872c,_0x4bf29d['start'],_0x4bf29d['end']):this['_setSuggestionRange'](_0x37872c,_0x42b795[0x0]):_0x44ab05['removeMarker'](_0x37872c['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1afa16){this['_editor']=_0x1afa16,this['_model']=_0x1afa16['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1ab47c,_0x3facda,_0x6aabf5,_0xa9d2c8,_0x25574f,_0x452c2a){return new o(this['_model'],{'type':_0x1ab47c,'subType':_0x3facda,'id':_0x6aabf5,'author':_0xa9d2c8,'creator':_0xa9d2c8,'attributes':_0x25574f,'onAttributesChange':_0x452c2a,'onAccept':(..._0x307baf)=>this['getSuggestionCallback'](_0x1ab47c,_0x3facda,'accept')(..._0x307baf),'onDiscard':(..._0x1a7ef6)=>this['getSuggestionCallback'](_0x1ab47c,_0x3facda,'discard')(..._0x1a7ef6)});}['registerCustomCallback'](_0x2897a6,_0x201538,_0x34bab1,_0x235e9b){const _0x8806c7=_0x2897a6+':'+_0x201538+':'+_0x34bab1;this['_customCallbacks']['set'](_0x8806c7,_0x235e9b);}['getSuggestionCallback'](_0x52bd38,_0x17d968,_0x24c095){const _0xf63a09=_0x52bd38+':'+_0x17d968+':'+_0x24c095;return this['_customCallbacks']['get'](_0xf63a09)||this['_defaultCallbacks']['get'](_0x52bd38+':'+_0x24c095);}['_registerDefaultCallbacks'](){const _0x3c83f1=()=>!0x1,_0x1026ca=_0x3b5a48=>{_0x3b5a48['sort']((_0x342e9e,_0x10e86a)=>_0x342e9e['start']['isBefore'](_0x10e86a['start'])?0x1:-0x1),this['_model']['change'](_0x36dce7=>{for(const _0x19253c of _0x3b5a48){let _0x16a198;_0x16a198=_0x19253c['end']['isAtEnd']&&_0x19253c['end']['parent']==_0x19253c['start']['nodeAfter']?_0x36dce7['createSelection'](_0x19253c['start']['nodeAfter'],'on'):_0x36dce7['createSelection'](_0x19253c),this['_model']['deleteContent'](_0x16a198,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4a44ff=(_0x45bafa,_0x5d864f)=>{_0x5d864f&&this['_model']['change'](_0x49a45a=>{const {commandName:_0x5a2539,commandParams:_0x4f69bb=[]}=_0x5d864f,_0x2790e2=_0x45bafa['map'](_0xff0a0f=>(Lt(_0xff0a0f)&&(_0xff0a0f=this['_model']['createRange'](_0xff0a0f['end'])),_0xff0a0f))['filter'](_0x295e06=>'$graveyard'!==_0x295e06['root']['rootName']);if(_0x2790e2['length']<0x1)return;const _0x30040d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2f8aa4=>_0x44e392['fromRange'](_0x2f8aa4));_0x49a45a['setSelection'](_0x2790e2);for(const _0x13e077 of this['_editor']['commands']['commands']())_0x13e077['refresh']();_0x4f69bb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5a2539,..._0x4f69bb);const _0x5c8729=_0x30040d['filter'](_0x2e25d0=>'$graveyard'!=_0x2e25d0['root']['rootName']);_0x5c8729['length']>0x0&&_0x49a45a['setSelection'](_0x5c8729);for(const _0x5d39b5 of _0x30040d)_0x5d39b5['detach']();});},_0x271c9f=(_0x4926e2,_0x448b7a)=>0x1==_0x4926e2['length']&&0x1==_0x448b7a['length']&&_0x4926e2[0x0]['end']['isEqual'](_0x448b7a[0x0]['start']),_0xee2be1=(_0x5a9c35,_0x27486e,_0x4f3ece,_0x23ab63)=>Wt(_0x5a9c35,_0x27486e,_0x4f3ece,_0x23ab63)?[_0x5a9c35,_0x27486e]:Wt(_0x27486e,_0x5a9c35,_0x23ab63,_0x4f3ece)?[_0x27486e,_0x5a9c35]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3c83f1),this['_defaultCallbacks']['set']('insertion:discard',_0x1026ca),this['_defaultCallbacks']['set']('insertion:join',_0x271c9f),this['_defaultCallbacks']['set']('insertion:chain',_0xee2be1),this['_defaultCallbacks']['set']('deletion:accept',_0x1026ca),this['_defaultCallbacks']['set']('deletion:discard',_0x3c83f1),this['_defaultCallbacks']['set']('deletion:join',_0x271c9f),this['_defaultCallbacks']['set']('deletion:chain',_0xee2be1),this['_defaultCallbacks']['set']('formatInline:accept',_0x4a44ff),this['_defaultCallbacks']['set']('formatInline:discard',_0x3c83f1),this['_defaultCallbacks']['set']('formatInline:join',_0x271c9f),this['_defaultCallbacks']['set']('formatInline:chain',_0x3c83f1),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4a44ff),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3c83f1),this['_defaultCallbacks']['set']('formatBlock:join',_0x271c9f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3c83f1),this['_defaultCallbacks']['set']('attribute:accept',_0x3c83f1),this['_defaultCallbacks']['set']('attribute:discard',(_0x354909,_0x1ef0d0)=>{if(!_0x1ef0d0)return;const _0x2e899e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x37c165=>{if(_0x1ef0d0['key']==u)for(const _0x520e7c of _0x354909){const _0x149c76=_0x520e7c['start']['nodeAfter'],_0x4b5508=_0x1ef0d0['oldValue'];_0x37c165['rename'](_0x149c76,_0x4b5508);}else{if(_0x2e899e['_isBlockAttribute'](_0x1ef0d0['key'])){for(const _0x14101a of _0x354909)void 0x0!==_0x1ef0d0['oldValue']?_0x37c165['setAttribute'](_0x1ef0d0['key'],_0x1ef0d0['oldValue'],_0x14101a['start']['nodeAfter']):_0x37c165['removeAttribute'](_0x1ef0d0['key'],_0x14101a['start']['nodeAfter']);}else{for(const _0x4a9757 of _0x354909)_0x1ef0d0['oldValue']?_0x37c165['setAttribute'](_0x1ef0d0['key'],_0x1ef0d0['oldValue'],_0x4a9757):_0x37c165['removeAttribute'](_0x1ef0d0['key'],_0x4a9757);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x271c9f);}}function Gt(_0x415337,_0x1f5a74,_0x12586c){for(const _0x2e8342 of _0x1f5a74['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2e8342['root']==_0x2e8342)return!0x1;if(!_0x12586c['containsItem'](_0x2e8342))return!0x1;if(_0x415337['isObject'](_0x2e8342)||_0x415337['isLimit'](_0x2e8342))return!0x0;}return!0x1;}function Lt(_0x29fc08){return _0x29fc08['end']['parent']==_0x29fc08['start']['nodeAfter']&&_0x29fc08['end']['isAtStart'];}function Jt(_0x54d798,_0x136f20,_0x2dd26d,_0x481a65){const _0x47d057=_0x3c1bdd=>!_0x3c1bdd['item']['is']('$textProxy')&&!_0x481a65['isObject'](_0x3c1bdd['item']),_0xc2541d=_0x54d798['start']['getLastMatchingPosition'](_0x47d057),_0x127ba0=_0x54d798['end']['getLastMatchingPosition'](_0x47d057,{'direction':'backward'});return(!_0x54d798['start']['isEqual'](_0xc2541d)||!_0x54d798['end']['isEqual'](_0x127ba0))&&(_0xc2541d['isBefore'](_0x127ba0)?_0x2dd26d['updateMarker'](_0x136f20,{'range':_0x2dd26d['createRange'](_0xc2541d,_0x127ba0)}):_0x2dd26d['removeMarker'](_0x136f20),!0x0);}function Kt(_0x3e0c59){return _0x7d0f3d(_0x3e0c59);}function Ht(_0x21c0ff){const _0x2cc202=_0x21c0ff['start']['nodeAfter'];return _0x2cc202&&_0x2cc202['is']('element');}function qt(_0x511639,_0x4dedf7){return null==_0x511639['end']['nodeBefore']&&_0x511639['end']['parent']==_0x511639['start']['nodeAfter']?zt(_0x511639['start']['nodeAfter'],_0x4dedf7):_0x511639;}function zt(_0xbf8688,_0xfc0e20){const _0x1d0416=_0xfc0e20['schema']['isObject'](_0xbf8688)||_0xfc0e20['schema']['isSelectable'](_0xbf8688);return _0xfc0e20['createRange'](_0xfc0e20['createPositionAt'](_0xbf8688,'before'),_0x1d0416?_0xfc0e20['createPositionAfter'](_0xbf8688):_0xfc0e20['createPositionAt'](_0xbf8688,'end'));}function Wt(_0x537dc2,_0x1304fd,_0x3c13c7,_0x1f486b){return!!Qt(_0x537dc2,_0x1304fd)&&_0x3c13c7['end']['isEqual'](_0x1f486b['start']);}function Qt(_0x3e4109,_0x43a590){if(!_0x3e4109['_isDataLoaded']||!_0x43a590['_isDataLoaded'])return!0x1;const _0x52d405=new Set(Object['keys'](_0x3e4109['attributes'])),_0x4941b9=new Set(Object['keys'](_0x43a590['attributes']));if(_0x52d405['delete']('groupId'),_0x4941b9['delete']('groupId'),0x0==_0x52d405['size']&&0x0==_0x4941b9['size'])return!0x0;if(_0x52d405['size']!=_0x4941b9['size'])return!0x1;const _0x16cd07={..._0x3e4109['attributes']},_0x385ef1={..._0x43a590['attributes']};return delete _0x16cd07['groupId'],delete _0x385ef1['groupId'],JSON['stringify'](_0x16cd07)==JSON['stringify'](_0x385ef1);}function Xt(_0x2474f0,_0x45d318){const _0x36e60d=Yt(_0x2474f0['attributes']),_0x48fcba=Yt(_0x45d318);if(!_0x2474f0['_isDataLoaded'])return!0x1;for(const _0x5b568f of Object['keys'](_0x48fcba))if(!_0xb1d1f6(_0x36e60d[_0x5b568f],_0x48fcba[_0x5b568f]))return!0x1;return!0x0;}function Yt(_0x4ebfb1){const _0x3d176b=Object['assign']({},_0x4ebfb1);return delete _0x3d176b['skipNestingCheck'],delete _0x3d176b['tablePasteChainId'],_0x3d176b;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x46dd88(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x512f17,_0x4c341d,_0x867613,_0x52a46e){super(),this['model']=_0x4c341d,this['view']=_0x867613,this['commentThreadController']=_0x52a46e,this['_editor']=_0x512f17,this['_acceptCommand']=_0x512f17['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x512f17['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1d26a1,_0x5b8ad7)=>_0x1d26a1||_0x5b8ad7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x259fba=>_0x259fba&&this['_editor']['model']['canEditAt'](_0x4c341d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x223a62=>_0x223a62&&this['_editor']['model']['canEditAt'](_0x4c341d['getRanges']())),this['_pendingAction']=null,_0x867613['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x867613,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x867613,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x867613,'change:isDirty',()=>{_0x867613['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 _0x4050d2=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4050d2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3b701c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x44d381,_0x3903ab,_0x3d6262,_0x23d353){super(_0x44d381),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1669f4(_0x44d381,c(_0x44d381,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3903ab['authoredAt']),this['bind']('authoredAt')['to'](_0x3903ab),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x3903ab,'authoredAt',this,'descriptionParts',(_0x1d00c0,_0x3554fe,_0x4961ec)=>{const _0x3d2194=_0x4961ec['map'](_0x59219=>ls(_0x59219['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1d00c0-0x1,_0x3903ab['author']['name'],_0x3554fe?_0x23d353['formatDateTime'](_0x3554fe):'',new DOMParser()['parseFromString'](_0x3d2194,'text/html')['body']['textContent']]);}),this['focusables']=new _0x39ea4f(),this['focusTracker']=new _0x311895(),this['keystrokes']=new _0x4f0fab(),this['focusCycler']=new _0x4a65cd({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x20e4cd=>_0x20e4cd['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3903ab,this['_localUser']=_0x3d6262,this['_config']=_0x23d353,_0x23d353['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x11f5e2(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3be086}=this['_config'];this['commentsListView']=new _0x3be086(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',_0x29d5ed=>_0x29d5ed+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1fc453,_0xbbbffa)=>_0x1fc453||!!_0xbbbffa);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4ecaa0}=this['_config'],_0x5d81fd=new _0x4ecaa0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x180895=_0x5d81fd['commentInputView'];return _0x5d81fd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x180895,'value',(_0x672ec0,_0x510bf0,_0x185b45)=>!!_0x185b45||_0x672ec0&&!_0x510bf0),_0x180895['on']('submit',(_0x23c832,_0x15be13)=>{this['fire']('addComment',_0x15be13),_0x180895['editor']['setData']('');}),_0x180895['on']('cancel',()=>this['focus']()),_0x180895['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5d81fd;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4d382d,_0xc13d57,_0x336877,_0x443da2){super(_0x4d382d,_0xc13d57,_0x336877,_0x443da2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1e501f=>_0x1e501f&&_0x1e501f[0x0]?_0x1e501f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xbfd01e,_0x1010ee)=>{let _0x8bb739='';for(const _0x437e70 of _0xbfd01e)_0x8bb739+='<p>'+ls(_0x437e70['content'],_0x437e70['color'])+'</p>';return _0x1010ee?_0x8bb739:ti(_0x8bb739,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x443da2['SuggestionView'](_0x4d382d,_0xc13d57,{'formatDateTime':_0x443da2['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x354fa1=this['bindTemplate'],_0x2221e3=[this['suggestionView']];return this['commentsListView']&&_0x2221e3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2221e3['push'](this['commentThreadInputView']),_0x2221e3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x354fa1['if']('isActive','ck-suggestion-wrapper--active'),_0x354fa1['to']('type',_0x387438=>'ck-suggestion-'+_0x387438),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':0x0,'role':'listitem','aria-label':_0x354fa1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2221e3};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x3b701c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x572133,_0x555d0f,_0x4179f3){super(_0x572133),this['_model']=_0x555d0f,this['_config']=_0x4179f3,this['set']('description',''),this['bind']('authoredAt')['to'](_0x555d0f),this['acceptButton']=this['_createButton'](c(_0x572133,'Accept\x20suggestion'),_0x1e9063,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x572133,'Discard\x20suggestion'),_0x518775,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2a7f99(_0x572133,_0x555d0f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x39ea4f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x311895(),this['keystrokes']=new _0x4f0fab(),this['focusCycler']=new _0x4a65cd({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5f3f86=>_0x5f3f86['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1e82f2=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1e82f2['innerHTML']=this['description'],this['on']('change:description',(_0x1d5652,_0x5950a3,_0x477d6a)=>{_0x1e82f2['innerHTML']=_0x477d6a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4ea795=this['bindTemplate'],_0x1f7c6d=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x4ea795['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4ea795['to']('authoredAt',_0x25ca31=>this['_config']['formatDateTime'](_0x25ca31))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x1f7c6d['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x1f7c6d}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2b5c27,_0x361a64,_0x3a7fa2,_0x33a2fc,_0x48f7ef){const _0x51de49=new _0x1e290a(this['locale']);return _0x51de49['set']({'label':_0x2b5c27,'icon':_0x361a64,'tooltip':!0x0,'tooltipPosition':_0x48f7ef}),_0x51de49['extendTemplate']({'attributes':{'class':_0x3a7fa2}}),_0x51de49['on']('execute',()=>{this['fire'](_0x33a2fc,this['_model']['id']);}),_0x51de49;}['_setupKeyboardNavigation'](){const _0x1b9918=this['element'];this['keystrokes']['listenTo'](_0x1b9918);for(const _0x1268c8 of this['focusables'])this['focusTracker']['add'](_0x1268c8['element']),this['keystrokes']['listenTo'](_0x1268c8['element']);this['keystrokes']['set']('enter',(_0x3e901a,_0xf93428)=>{_0x1b9918===_0x3e901a['target']&&(this['focusCycler']['focusFirst'](),_0xf93428());}),this['keystrokes']['set']('esc',(_0x44e55e,_0x56968e)=>{_0x1b9918!==_0x44e55e['target']&&(this['focus'](),_0x56968e());});}}class d extends _0x340863{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xbdd14b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x194966){super(_0x194966),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x56ee3a=this['editor']['config'];_0x56ee3a['define']('trackChanges.SuggestionThreadView',fe),_0x56ee3a['define']('trackChanges.SuggestionView',we),_0x56ee3a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x56ee3a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3a2e5b,_0x5a1827){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5b445f,_0x544981]of this['_handleControllerBuffer']){const _0x280507=this['_suggestionToController']['has'](_0x5b445f);_0x280507||_0x544981?_0x280507&&_0x544981&&this['_destroyController'](_0x5b445f):this['_initializeController'](_0x5b445f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3a2e5b,_0x5a1827);}['init'](){const _0x20687c=this['editor'],_0x480d4a=_0x20687c['plugins']['get']('TrackChangesEditing'),_0x2ca8fa=_0x20687c['plugins']['get']('Annotations'),_0x35ec70=_0x20687c['plugins']['get']('EditorAnnotations'),_0x1ac00f=_0x20687c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x35ec70['addSourceCollector'](()=>{const _0x2fd7b1=[];for(const [_0x266bfc,_0x119d72]of Array['from'](this['_suggestionToController'])){const _0x565e34=_0x266bfc['getAllAdjacentSuggestions'](),_0x55c1fc=[];for(const _0x2ba093 of _0x565e34){if(!_0x2ba093['isInContent'])continue;if(_0x2ba093['isMultiRange']){_0x55c1fc['push'](..._0x2ba093['getRanges']());continue;}const _0x1b57a6=_0x2ba093['getFirstRange']();if(_0x55c1fc['length']>0x0){const _0x3d598a=_0x55c1fc[0x0]['getJoined'](_0x1b57a6);if(_0x3d598a){_0x55c1fc[0x0]=_0x3d598a;continue;}}_0x55c1fc['push'](_0x1b57a6);}_0x2fd7b1['push']([_0x119d72['view'],_0x55c1fc]);}return _0x2fd7b1;}),this['listenTo'](_0x480d4a,'suggestionLoaded',(_0x57fdbc,_0x43d9a0)=>{this['listenTo'](_0x43d9a0,'change:previous',(_0x459c08,_0x1b7e5f,_0x346b48,_0x1ccaa4)=>{_0x43d9a0['isInContent']&&(null==_0x346b48?(this['_updateController'](_0x1ccaa4['head']),this['_handleSuggestionControllerDelayed'](_0x43d9a0,!0x1)):(this['_updateController'](_0x346b48['head']),null==_0x1ccaa4&&this['_handleSuggestionControllerDelayed'](_0x43d9a0,!0x0)));}),null!==_0x43d9a0['previous']?this['_updateController'](_0x43d9a0['head']):this['_handleSuggestionControllerDelayed'](_0x43d9a0,!0x1);}),this['listenTo'](_0x480d4a,'suggestionUnloaded',(_0x1f7e6b,_0x4b3984,_0xd34232)=>{this['stopListening'](_0x4b3984,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4b3984),this['_suggestionToController']['has'](_0x4b3984)&&this['_destroyController'](_0x4b3984),_0xd34232&&this['_updateController'](_0xd34232['head']);}),this['listenTo'](_0x480d4a,'suggestionChanged',(_0x53646b,_0x109838)=>{this['_updateController'](_0x109838);}),this['listenTo'](_0x2ca8fa,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1ac00f,'addComment',(_0x2cf9c5,{threadId:_0x1cc4db,isFromAdapter:_0x139dd3})=>{if(_0x139dd3||!_0x480d4a['hasSuggestion'](_0x1cc4db))return;const _0x4b9dcb=_0x480d4a['getSuggestion'](_0x1cc4db);this['_suggestionToController']['get'](_0x4b9dcb)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x456edc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x103cd8;for(const _0x1aad08 in _0x456edc){const _0xa378db=_0x1aad08,_0x124b05=_0x456edc[_0xa378db];if('trackChangesLicenseKeyValid'==_0x124b05||'trackChangesLicenseKeyInvalid'==_0x124b05||'trackChangesLicenseKeyExpired'==_0x124b05||'trackChangesLicenseKeyDomainLimit'==_0x124b05||'trackChangesLicenseKeyNotAllowed'==_0x124b05||'trackChangesLicenseKeyEvaluationLimit'==_0x124b05||'trackChangesLicenseKeyTrialLimit'==_0x124b05||'trackChangesLicenseKeyUsageLimit'==_0x124b05){delete _0x456edc[_0xa378db],_0x103cd8=_0x124b05,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x103cd8&&_0x456edc['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x103cd8&&_0x456edc['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x103cd8&&_0x456edc['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x103cd8&&_0x456edc['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x103cd8&&_0x456edc['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x103cd8&&_0x456edc['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x103cd8&&_0x456edc['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x466897=this['editor']['plugins']['get']('Annotations'),_0x2401e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22601a=Array['from'](_0x466897['activeAnnotations'],_0x2a7306=>_0x2a7306['innerView'])['filter'](_0x2f2679=>this['_viewToController']['has'](_0x2f2679)),_0x4b588d=[];for(const _0x86e17b of _0x22601a){const _0x48978a=this['_viewToController']['get'](_0x86e17b)['model']['getAllAdjacentSuggestions']();_0x4b588d['push'](..._0x48978a['reduce']((_0x34c501,_0x2b51bf)=>[..._0x34c501,..._0x2b51bf['getMarkerNames']()],[]));}_0x2401e4['activeMarkers']=_0x4b588d;}['_addUIComponentsToFactory'](){const _0x4665ca=this['editor'],_0x40ba90=_0x4665ca['locale'],_0x54c391=c(_0x40ba90,'Track\x20changes'),_0x19df22=new _0x1058f8([{'type':'switchbutton','model':new _0x36dc75({'withText':!0x0,'isToggleable':!0x0,'label':_0x54c391,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x36dc75({'withText':!0x0,'label':c(_0x40ba90,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x36dc75({'withText':!0x0,'label':c(_0x40ba90,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x36dc75({'withText':!0x0,'label':c(_0x40ba90,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x36dc75({'withText':!0x0,'label':c(_0x40ba90,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4665ca['plugins']['has']('TrackChangesPreview')&&_0x19df22['addMany']([{'type':'separator'},{'type':'button','model':new _0x36dc75({'withText':!0x0,'label':c(_0x40ba90,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3cfe13 of _0x19df22)if(ke(_0x3cfe13)){const _0x2a151a=_0x4665ca['commands']['get'](_0x3cfe13['model']['commandName']);_0x3cfe13['model']['bind']('isOn','isEnabled')['to'](_0x2a151a,'value','isEnabled');}_0x4665ca['ui']['componentFactory']['add']('trackChanges',_0x15058f=>this['_createToolbarButton'](_0x15058f,_0x19df22,_0x54c391)),_0x4665ca['ui']['componentFactory']['add']('menuBar:trackChanges',_0x288f2f=>this['_createMenuBarMenu'](_0x288f2f,_0x19df22,_0x54c391));}['_createToolbarButton'](_0x378295,_0x3994d1,_0x19aa2d){const _0x33ba3f=_0x371626(_0x378295,_0x52d14e),_0x4c3a5d=this['editor']['commands']['get']('trackChanges');_0x33ba3f['buttonView']['set']({'tooltip':_0x19aa2d,'label':_0x19aa2d,'icon':_0x13a5b0}),_0x33ba3f['buttonView']['bind']('isOn')['to'](_0x4c3a5d,'value'),_0x33ba3f['buttonView']['on']('execute',()=>{_0x4c3a5d['execute'](),this['editor']['editing']['view']['focus']();}),_0x1ef00b(_0x33ba3f,_0x3994d1,{'role':'menu'});const _0x29bf2a=[];for(const _0x482c81 of _0x3994d1)ke(_0x482c81)&&_0x29bf2a['push'](this['editor']['commands']['get'](_0x482c81['model']['commandName']));const _0x31ce42=_0x33ba3f['buttonView'];return _0x31ce42['actionView']['unbind']('isEnabled'),_0x31ce42['arrowView']['unbind']('isEnabled'),_0x31ce42['actionView']['bind']('isEnabled')['to'](_0x4c3a5d,'isEnabled'),_0x31ce42['arrowView']['bind']('isEnabled')['toMany'](_0x29bf2a,'isEnabled',(..._0x4b4b37)=>_0x4b4b37['some'](_0x169c7f=>_0x169c7f)),_0x33ba3f['on']('execute',_0x2c7821=>{this['editor']['execute'](_0x2c7821['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x33ba3f;}['_createMenuBarMenu'](_0x5365a6,_0x116830,_0x50232d){const _0x47e374=new _0x4b745c(_0x5365a6),_0x5c12a2=this['editor']['commands']['get']('trackChanges');_0x47e374['buttonView']['set']({'label':_0x50232d,'icon':_0x13a5b0});const _0x22da29=new _0x55c13b(_0x5365a6);for(const _0x363c51 of _0x116830){if('separator'==_0x363c51['type']){_0x22da29['items']['add'](new _0x3bcb16(_0x5365a6));continue;}const _0x322554=new _0x37d0b4(_0x5365a6,_0x47e374),_0x3ce841=new _0x2525f1(_0x5365a6),_0x4fdf0f=_0x363c51['model'];_0x3ce841['bind'](...Object['keys'](_0x4fdf0f))['to'](_0x4fdf0f),_0x3ce841['delegate']('execute')['to'](_0x47e374),_0x3ce841['on']('execute',()=>{this['editor']['execute'](_0x4fdf0f['commandName']),this['editor']['editing']['view']['focus']();}),_0x322554['children']['add'](_0x3ce841),_0x22da29['items']['add'](_0x322554);}return _0x47e374['bind']('isEnabled')['to'](_0x5c12a2,'isEnabled'),_0x47e374['panelView']['children']['add'](_0x22da29),_0x47e374;}['_initializeController'](_0x3fb392){const _0x11aab5=this['editor'],_0x129123=_0x11aab5['config'],_0x505bb2=_0x11aab5['plugins']['get']('Annotations'),_0x2f7864=_0x11aab5['plugins']['get']('CommentsRepository'),_0x209d4e=_0x11aab5['plugins']['get']('EditorAnnotations'),_0x3b8cbb=_0x11aab5['plugins']['get'](_0xbdd14b)['me'],_0x4b2f7f=_0x129123['get']('trackChanges')['SuggestionThreadView'],_0x4cadc2=_0x129123['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4e3e31,CommentThreadInputView:_0x29a2d5}=_0x11aab5['plugins']['get']('CommentsUI');let _0x39ae68,_0x2bf063,_0x5e7bb9;this['_annotationViews']['has'](_0x3fb392['id'])?(_0x2bf063=this['_annotationViews']['get'](_0x3fb392['id']),_0x39ae68=_0x2bf063['mainView']):(_0x39ae68=new _0x4b2f7f(_0x11aab5['locale'],_0x3fb392,_0x3b8cbb,{'disableComments':this['_disableComments'],'editorConfig':{..._0x129123['get']('comments.editorConfig'),'licenseKey':_0x129123['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x129123['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x129123['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x129123['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2dcd84(_0x129123['get']('locale'),_0x11aab5['locale']),'CommentView':_0x129123['get']('comments')['CommentView'],'CommentsListView':_0x4e3e31,'CommentThreadInputView':_0x29a2d5,'SuggestionView':_0x4cadc2}),_0x39ae68['suggestionView']['acceptButton']['on']('execute',()=>{_0x11aab5['editing']['view']['focus']();}),_0x39ae68['suggestionView']['discardButton']['on']('execute',()=>{_0x11aab5['editing']['view']['focus']();}),_0x2bf063=_0x505bb2['createAnnotationView'](this['editor']['locale'],_0x39ae68),_0x2bf063['bind']('isDirty')['to'](_0x39ae68,'isDirty'),_0x2bf063['bind']('length')['to'](_0x39ae68),_0x2bf063['bind']('type')['to'](_0x39ae68,'type',_0x1300ed=>'suggestion-'+_0x1300ed),_0x39ae68['on']('escape',()=>{_0x5e7bb9['fire']('escape');}),this['_annotationViews']['set'](_0x3fb392['id'],_0x2bf063));const _0x204d81=_0x2f7864['createCommentThreadController'](_0x3fb392['commentThread'],_0x39ae68),_0x1429ba=new pe(_0x11aab5,_0x3fb392,_0x39ae68,_0x204d81),_0x46f045=_0x3fb392['getAllAdjacentSuggestions']()['filter'](_0x29f6af=>_0x29f6af['isInContent']);_0x39ae68['descriptionParts']=_0x11aab5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x46f045),this['_suggestionToController']['set'](_0x3fb392,_0x1429ba),this['_viewToController']['set'](_0x39ae68,_0x1429ba),_0x5e7bb9=_0x505bb2['createAnnotation']({'view':_0x2bf063,'target':()=>{const _0x135194=[],_0xc82ee3=_0x3fb392['getAllAdjacentSuggestions']()['filter'](_0xb067b9=>_0xb067b9['isInContent']);for(const _0x3fcc20 of _0xc82ee3)_0x135194['push'](..._0x3fcc20['getMarkers']());return _0x355fa4(_0x11aab5['editing'],_0x135194);},'type':()=>'suggestion-'+_0x1429ba['view']['type']}),_0x2f7864['_bindAnnotationToEditors'](_0x39ae68,_0x5e7bb9),_0x505bb2['add'](_0x5e7bb9),_0x209d4e['registerAnnotation'](_0x5e7bb9);}['_destroyController'](_0x39e168){const _0x228b4d=this['editor']['plugins']['get']('CommentsRepository'),_0x456fc7=this['editor']['plugins']['get']('Annotations'),_0x29f201=this['_suggestionToController']['get'](_0x39e168),_0x310ea9=_0x29f201['view'],_0x18cb81=_0x456fc7['getByInnerView'](_0x310ea9);_0x228b4d['_unbindEditors'](_0x310ea9),_0x18cb81&&_0x456fc7['remove'](_0x18cb81),this['_suggestionToController']['delete'](_0x39e168),this['_viewToController']['delete'](_0x310ea9),_0x29f201['destroy']();}['_updateController'](_0x11b864){if(!_0x11b864['isInContent']||!this['_suggestionToController']['has'](_0x11b864))return;const _0x542c80=this['editor']['plugins']['get']('TrackChangesEditing'),_0x303ad7=this['_suggestionToController']['get'](_0x11b864),_0x3dded6=_0x11b864['getAllAdjacentSuggestions']();_0x303ad7['view']['descriptionParts']=_0x542c80['descriptionFactory']['getDescriptions'](_0x3dded6);}['destroy'](){for(const _0x304519 of this['_suggestionToController']['keys']())this['_destroyController'](_0x304519);for(const _0x1da71d of this['_annotationViews']['values']())_0x1da71d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5da185){return'model'in _0x5da185;}class k extends _0x340863{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x253b7b){this['editor']['plugins']['get'](p)['adapter']=_0x253b7b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x51d0a0){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x51d0a0);}['getSuggestions']({skipNotAttached:_0x3886f8=!0x1,toJSON:_0x36bff5=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3886f8,'toJSON':_0x36bff5});}['getSuggestion'](_0x54bb30){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x54bb30);}}const w=['Pagination'];class T extends _0x340863{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x192265=this['editor'];if(_0x192265['config']['define']('trackChangesData.editorCreator',_0x33db25=>{const _0x328cbb=_0x192265['model']['document']['getRootNames']()['reduce']((_0x2991af,_0x1582c3)=>(_0x2991af[_0x1582c3]='',_0x2991af),{});return _0x192265['constructor']['create'](_0x328cbb,_0x33db25);}),'function'!=typeof _0x192265['config']['get']('trackChangesData')['editorCreator'])throw new _0x40045b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x43727a){return N(this['editor'],!0x0,_0x43727a);}['getDataWithDiscardedSuggestions'](_0x38b1dd){return N(this['editor'],!0x1,_0x38b1dd);}}class D extends _0x340863{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f4d8e){function _0x35e12a(_0x3c37bc){return _0x3c37bc['map'](_0x39121f=>String['fromCharCode'](_0x39121f))['join']('');}super(_0x4f4d8e),this['result']='end',_0x4f4d8e[_0x35e12a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35e12a([0x76,0x69,0x65,0x77])][_0x35e12a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35e12a([0x61,0x75,0x74,0x6f]),_0x4f4d8e[_0x35e12a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x35e12a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35e12a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x35e12a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x35e12a([0x6f,0x6b])});}['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 Ge(_0xf42a42){return void 0x0!==_0xf42a42['getRootsAttributes'];}async function N(_0x2e1a1b,_0x2ef433,_0xda0184){const _0x26456b=_0x19edc8(_0x2e1a1b,w);_0x26456b['plugins']['push'](p,D),_0x26456b['rootsAttributes']=Ge(_0x2e1a1b)?_0x2e1a1b['getRootsAttributes']():void 0x0;const _0x2a525c=document['createDocumentFragment'](),_0x4ee2dc=_0x2e1a1b['config']['get']('trackChangesData')['editorCreator'],_0x4d419a=await _0x4ee2dc(_0x26456b,()=>function(_0x794285){const _0x1b039a=document['createElement']('div');return _0x794285['appendChild'](_0x1b039a),_0x1b039a;}(_0x2a525c));!function(_0x2d34bb,_0x4a7005){const _0x5e0268=_0x2d34bb['model']['document']['getRootNames']()['reduce']((_0x1b131a,_0x8a1eaf)=>(_0x1b131a[_0x8a1eaf]=_0x2d34bb['data']['get']({'rootName':_0x8a1eaf}),_0x1b131a),{}),_0x1960f0=_0x2d34bb['plugins']['get']('Users')['users']['map'](_0x3565f2=>({'id':_0x3565f2['id'],'name':_0x3565f2['name']})),_0x3af956=_0x2d34bb['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5936a3=_0x2d34bb['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x60edc=_0x4a7005['plugins']['get']('Users'),_0x4cb4e4=_0x4a7005['plugins']['get']('TrackChangesEditing'),_0x15d5c7=_0x4a7005['plugins']['get']('CommentsRepository');for(const _0xb36537 of _0x15d5c7['getCommentThreads']())_0xb36537['remove']();for(const _0x189d18 of _0x1960f0)_0x60edc['getUser'](_0x189d18['id'])||_0x60edc['addUser'](_0x189d18);_0x60edc['me']||_0x60edc['useAnonymousUser']();for(const _0x3162bc of _0x5936a3)_0x15d5c7['addCommentThread'](_0x3162bc);for(const _0x1be53a of _0x3af956)_0x4cb4e4['addSuggestionData'](_0x1be53a);_0x4a7005['data']['set'](_0x5e0268);}(_0x2e1a1b,_0x4d419a),_0x4d419a['execute'](_0x2ef433?'acceptAllSuggestions':'discardAllSuggestions');const _0x77e5ea=Ge(_0x4d419a)?_0x4d419a['getFullData'](_0xda0184):_0x4d419a['data']['get'](_0xda0184);return await _0x4d419a['destroy'](),_0x77e5ea;}class Me extends _0x3b701c{['options'];constructor(_0x56b11e,_0x7789c8){super(_0x56b11e),this['options']=_0x7789c8,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x50aed8,_0x1cda08){if(!this['element'])return;const _0x16d153=[];for(const [_0x37321e,_0x431375]of _0x50aed8){const _0x5c6cd7=document['createElement']('div');_0x5c6cd7['setAttribute']('data-ck-root-name',_0x37321e),_0x5c6cd7['className']=_0x431375['classes']+'\x20ck-track-changes-preview__root-container',_0x5c6cd7['innerHTML']=_0x431375['content'],_0x16d153['push'](_0x5c6cd7);}_0x1cda08(this['element'],_0x16d153),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x32b6b5{constructor(_0x41dd06){super(_0x41dd06),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4dc25e=this['editor'],_0x5d02f1=_0x4dc25e['locale'],_0x36b9c8=_0x4dc25e['plugins']['get']('Dialog');let _0x5cc818;const _0x25d377=function(_0x2a743d){const _0x54ccf9={};if('editables'in _0x2a743d['ui']['view']){for(const [_0x1c2269,_0x2c8102]of Object['entries'](_0x2a743d['ui']['view']['editables']))_0x54ccf9[_0x1c2269]=_0x2c8102['element'];}else _0x54ccf9[_0x2a743d['model']['document']['getRootNames']()[0x0]]=_0x2a743d['ui']['view']['editable']['element'];return _0x54ccf9;}(_0x4dc25e),_0x1a7c59=function(_0x368373){let _0x55e0c0=0x0;for(const _0x45dae3 of Object['values'](_0x368373))_0x55e0c0=Math['max'](_0x55e0c0,_0x45dae3['getBoundingClientRect']()['width']);let _0x508b4e=0x0;for(const _0x12d10b of Object['values'](_0x368373))_0x508b4e+=_0x12d10b['getBoundingClientRect']()['height'];const _0x52f7cb=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x397108=Math['min'](_0x508b4e,_0x52f7cb);return{'width':_0x55e0c0,'height':_0x397108};}(_0x25d377);_0x36b9c8['show']({'id':'finalContentPreview','title':c(_0x5d02f1,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5d02f1,{'dialogRects':_0x1a7c59}),'onHide':()=>{_0x5cc818['detachFromDom']();},'onShow':()=>{_0x4dc25e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x343d0c=>{const _0x1f790f=this['_standarizeRootsData'](_0x343d0c,_0x4dc25e,_0x25d377);_0x36b9c8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1f790f,_0x4dc25e['config']['get']('trackChanges.preview.renderFunction'));}),_0x5cc818=new _0x217904(_0x5d02f1,[_0x36b9c8['view']]),_0x5cc818['attachToDom'](),_0x5cc818['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4dc25e['once']('destroy',()=>{_0x5cc818['detachFromDom']();});const _0x6efd37=_0x36b9c8['view']['headerView']['class'];_0x36b9c8['view']['headerView']['class']=_0x6efd37?_0x6efd37+'\x20ck-reset_all':'ck-reset_all',_0x36b9c8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x36b9c8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x48eae8=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2ab84f=_0x48eae8['previewMode'],_0x3d7429={};if('$labels'===_0x2ab84f){for(const _0x33ba5a of _0x48eae8['getMergeFieldsIds']())_0x3d7429[_0x33ba5a]=_0x48eae8['getLabel'](_0x33ba5a)||_0x33ba5a;}else{const _0x27a566='$defaultValues'===_0x2ab84f?_0x48eae8['getDefaultValues']():_0x48eae8['getDataSetValues'](_0x2ab84f,!0x0);for(const _0x514feb of Object['entries'](_0x27a566)){const [_0x1e52ea,_0x4458bf]=_0x514feb;_0x3d7429[_0x1e52ea]=null!==_0x4458bf?_0x4458bf:_0x48eae8['getLabel'](_0x1e52ea)||_0x1e52ea;}}return{'mergeFieldsData':_0x3d7429};}['_standarizeRootsData'](_0x51fcaf,_0x39c418,_0x5c6aa7){let _0x5e4717;if('string'==typeof _0x51fcaf){const _0x1c18a1=_0x39c418['model']['document']['getRootNames']()[0x0];_0x5e4717={[_0x1c18a1]:_0x51fcaf};}else _0x5e4717=_0x51fcaf;const _0x2499cf=this['_fixMediaEmbeds'](_0x5e4717,_0x39c418),_0x57a763=function(_0x317f35,_0x2d1c83){for(const [_0x42ccf5,_0x550d0d]of _0x317f35)_0x550d0d['classes']=_0x2d1c83[_0x42ccf5]['classList']['value']['replace']('ck-focused','');return _0x317f35;}(this['_sortRoots'](_0x39c418)['reduce']((_0x463752,_0xcdb20)=>(_0x463752['push']([_0xcdb20,{'content':_0x2499cf[_0xcdb20],'classes':''}]),_0x463752),[]),_0x5c6aa7);return _0x57a763;}['_fixMediaEmbeds'](_0x49b060,_0x4d97ed){if(!_0x4d97ed['plugins']['has']('MediaEmbedEditing'))return _0x49b060;const _0x35497f=_0x4d97ed['plugins']['get']('MediaEmbedEditing');for(const [_0x7f1d1b,_0x40d3fc]of Object['entries'](_0x49b060)){const _0x545def=document['createElement']('div');_0x545def['innerHTML']=_0x40d3fc,(_0x545def['querySelectorAll']('figure.media')['forEach'](_0x18d14b=>{const _0x336197=_0x18d14b['querySelector']('oembed');if(_0x336197){const _0x4d69aa=_0x336197['getAttribute']('url');if(_0x4d69aa){const _0x584a88=_0x35497f['registry']['getMediaViewElement'](new _0x33faa8(_0x4d97ed['editing']['view']['document']),_0x4d69aa,{'elementName':'','renderForEditingView':!0x0}),_0x223065=document['createElement']('div');_0x223065['classList']['add']('ck-media__wrapper'),_0x584a88['render'](_0x223065,_0x4d97ed['editing']['view']['domConverter']),_0x336197['replaceWith'](_0x223065);}}}),_0x49b060[_0x7f1d1b]=_0x545def['innerHTML']);}return _0x49b060;}['_sortRoots'](_0x47d588){if(!function(_0x3369b4){return void 0x0!==_0x3369b4['getRootsAttributes'];}(_0x47d588))return _0x47d588['model']['document']['getRootNames']();const _0x34f8a5=[],_0x5ca7c4=new Map();for(const _0x478446 of _0x47d588['model']['document']['getRootNames']()){const _0x5203ec=_0x47d588['editing']['view']['getDomRoot'](_0x478446)['getClientRects']()['item'](0x0);_0x34f8a5['push'](_0x478446),_0x5ca7c4['set'](_0x478446,_0x5203ec);}return _0x34f8a5['sort']((_0x17f33f,_0x2c18eb)=>{const _0x5380c1=_0x5ca7c4['get'](_0x17f33f),_0x461982=_0x5ca7c4['get'](_0x2c18eb);return _0x5380c1['y']-_0x461982['y']||_0x5380c1['x']-_0x461982['x'];}),_0x34f8a5;}}class te extends _0x340863{static get['requires'](){return[T,_0x41eb44];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ece34){super(_0x5ece34),_0x5ece34['commands']['add']('previewFinalContent',new re(this['editor'])),_0x5ece34['config']['define']('trackChanges.preview.renderFunction',(_0x558845,_0x226376)=>{for(const _0x5b7960 of _0x226376)_0x558845['appendChild'](_0x5b7960);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|