@ckeditor/ckeditor5-track-changes 46.0.1-alpha.0 → 46.0.1-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 +4 -4
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x7cb8e6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x454a9b,_0x1cff53){super(),this['id']=_0x1cff53['id'],this['type']=_0x1cff53['type'],this['subType']=_0x1cff53['subType']||null,this['author']=_0x1cff53['author'],this['creator']=_0x1cff53['creator']||_0x1cff53['author'],this['isExternal']=Boolean(_0x1cff53['attributes']&&_0x1cff53['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1cff53['originalSuggestionId']||null,this['_model']=_0x454a9b,this['_onAccept']=_0x1cff53['onAccept'],this['_onDiscard']=_0x1cff53['onDiscard'],this['_onAttributesChange']=_0x1cff53['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1cff53['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 _0x365f62=this;for(;_0x365f62['previous'];)_0x365f62=_0x365f62['previous'];return _0x365f62;}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'](_0x1a2d27){this['_markerNames']['add'](_0x1a2d27);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4c7f17=>this['_model']['markers']['get'](_0x4c7f17))['filter'](_0x5814b4=>_0x5814b4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x331938=>{for(const _0x3957f7 of this['getMarkers']())_0x331938['removeMarker'](_0x3957f7);}),this['_markerNames']['clear']();}['removeMarker'](_0x1d5188){this['_model']['change'](_0x1eb41c=>{_0x1eb41c['removeMarker'](_0x1d5188);}),this['_markerNames']['delete'](_0x1d5188);}['addRange'](_0x311a73){const _0x5b7614='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5b7614),this['_model']['change'](_0x50ca40=>{_0x50ca40['addMarker'](_0x5b7614,{'range':_0x311a73,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x146d48){for(const _0x2d9fb0 of this['getRanges']())if(_0x2d9fb0['isIntersecting'](_0x146d48))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3f6c19=>_0x3f6c19['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1417f3,_0x19d67d)=>[..._0x1417f3,..._0x19d67d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x478a5c=this['getRanges']();if(0x1!=_0x478a5c['length'])return null;const _0x36649f=_0x478a5c[0x0],_0x4ac9a8=_0x36649f['start']['nodeAfter'],_0x3ad87a=_0x36649f['end']['nodeBefore'];return _0x4ac9a8 instanceof _0x3789ac?_0x4ac9a8!=_0x3ad87a?null:_0x4ac9a8: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 _0x582a6c=[];let _0x413c8a=this['head'];for(;_0x413c8a;)_0x582a6c['push'](_0x413c8a),_0x413c8a=_0x413c8a['next'];return _0x582a6c;}['setAttribute'](_0x3059b0,_0x429647){const _0x101542=_0x16bcb8(this['attributes']);_0x1c3f0c(_0x101542,_0x3059b0,_0x429647),_0xc3c78d(_0x101542,this['attributes'])||(this['attributes']=_0x101542,this['_onAttributesChange'](_0x101542));}['removeAttribute'](_0x1db31a){const _0x309667=_0x16bcb8(this['attributes']);_0x18baf1(_0x309667,_0x1db31a),_0xc3c78d(_0x309667,this['attributes'])||(this['attributes']=_0x309667,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 _0x50cf13()['substr'](0x1,0x5);}}function o(_0x220a2c,_0x3cfd30,_0x15e2c7){const _0x335719=_0x220a2c['t'],t=_0x220a2c['t'];switch(_0x3cfd30){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',_0x15e2c7);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x15e2c7);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x15e2c7);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x15e2c7);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x15e2c7);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',_0x15e2c7);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x15e2c7);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',_0x15e2c7);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x15e2c7);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x15e2c7);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x15e2c7);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x15e2c7);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x15e2c7);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x15e2c7);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x15e2c7);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x15e2c7);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x15e2c7);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x15e2c7);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x15e2c7);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x15e2c7);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x15e2c7);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x15e2c7);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x15e2c7);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x15e2c7);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x15e2c7);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'},_0x15e2c7);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x15e2c7);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x15e2c7);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x15e2c7);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x15e2c7);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x15e2c7);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x15e2c7);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x15e2c7);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'},_0x15e2c7);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x15e2c7);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x15e2c7);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x15e2c7);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x15e2c7);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'},_0x15e2c7);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x15e2c7);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'},_0x15e2c7);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x15e2c7);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x15e2c7);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'},_0x15e2c7);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x15e2c7);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'},_0x15e2c7);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x15e2c7);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x15e2c7);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'},_0x15e2c7);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x15e2c7);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 _0x335719({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x15e2c7);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x335719({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x15e2c7);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x15e2c7);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'},_0x15e2c7);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'},_0x15e2c7);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'},_0x15e2c7);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3cfd30;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4c3e89,_0x346ec9){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4c3e89,this['_locale']=_0x346ec9;}['getDescriptions'](_0xc1728d){const _0x351599=[],_0x340992=new Set(),_0x3f8cc4=new Set();for(let _0x4d86a5=0x0;_0x4d86a5<_0xc1728d['length'];_0x4d86a5++){const _0x67c363=_0xc1728d[_0x4d86a5];if(!_0x67c363['isInContent'])continue;const _0x54e7d1=this['_handleCustomCallbackDescription'](_0x67c363);if(_0x54e7d1){if(null!=_0x67c363['subType']){if(_0x340992['has'](_0x67c363['subType']))continue;_0x340992['add'](_0x67c363['subType']);}_0x351599['push'](_0x54e7d1);}else{if('attribute'==_0x67c363['type']){const _0x1a0913=_0x67c363['data']['key'];if(_0x3f8cc4['has'](_0x1a0913))continue;_0x3f8cc4['add'](_0x67c363['data']['key']),_0x1a0913==m?this['_handleRenameSuggestionDescription'](_0x351599,_0x67c363):this['_handleAttributeSuggestionDescription'](_0x351599,_0x67c363);continue;}'insertion'!=_0x67c363['type']&&'deletion'!=_0x67c363['type']||this['_handleInsertRemoveSuggestionDescription'](_0x351599,_0x67c363,_0xc1728d[_0x4d86a5+0x1]);}}return this['_resolveDescriptionItems'](_0x351599);}['registerDescriptionCallback'](_0x125790){this['_customCallbacks']['push'](_0x125790);}['registerElementLabel'](_0x2a7394,_0x8dcef,_0x55aa54=_0x4bf36d['normal']){'function'==typeof _0x2a7394?_0x21dd1f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2a7394,'label':_0x8dcef,'priority':_0x55aa54}):this['_itemLabels']['set'](_0x2a7394,_0x8dcef);}['registerAttributeLabel'](_0x39fe58,_0x3507e7){this['_attributeLabels']['set'](_0x39fe58,_0x3507e7);}['getItemLabel'](_0x20ef21,_0x26953b=0x1){let _0x106fcd;for(const _0x39f6a2 of this['_itemLabelsCallbacks'])if(_0x39f6a2['matchingCallback'](_0x20ef21)){_0x106fcd=_0x39f6a2['label'];break;}return _0x106fcd||(_0x106fcd=this['_itemLabels']['get'](_0x20ef21['name'])),_0x106fcd?_0x106fcd(_0x26953b):0x1!==_0x26953b?_0x26953b+'\x20'+_0x20ef21['name']+'s':''+_0x20ef21['name'];}['_addDescriptionItems'](_0x15a58a,_0x220c77){const _0x5ba5f5=_0x220c77['getFirstRange']()['getWalker'](),_0x37db3a='insertion'==_0x220c77['type']?'add':'remove';for(const _0x5db59a of _0x5ba5f5){const _0xd12c52=_0x5db59a['item'],_0x17507d=_0x15a58a[_0x15a58a['length']-0x1];if(_0xd12c52['is']('$textProxy'))_0x17507d&&_0x17507d['type']['indexOf']('Container')>-0x1&&_0x15a58a['pop'](),_0x17507d&&'text'==_0x17507d['type']?_0x17507d[_0x37db3a]+=_0xd12c52['data']:_0x15a58a['push']({'type':'text','add':'add'==_0x37db3a?_0xd12c52['data']:'','remove':'remove'==_0x37db3a?_0xd12c52['data']:''});else{if(this['_schema']['isObject'](_0xd12c52)){const _0x25ce4c=_0xd12c52;if(_0x17507d&&_0x17507d['type']['indexOf']('Container')>-0x1&&_0x15a58a['pop'](),'elementEnd'==_0x5db59a['type'])continue;_0x17507d&&_0x17507d['type']==_0x37db3a+'Object'&&_0x17507d['element']['name']==_0x25ce4c['name']?_0x17507d['quantity']++:_0x15a58a['push']({'type':_0x37db3a+'Object','element':_0x25ce4c,'quantity':0x1}),_0x5ba5f5['skip'](_0x2fa35a=>!('elementEnd'==_0x2fa35a['type']&&_0x2fa35a['item']==_0xd12c52));}else{if(this['_schema']['checkChild'](_0xd12c52,'$text')||_0xd12c52['is']('element','softBreak')){const _0x3b0372=_0xd12c52;if('add'==_0x37db3a&&'elementStart'==_0x5db59a['type']||'remove'==_0x37db3a&&'elementEnd'==_0x5db59a['type'])continue;if(_0x17507d&&-0x1==_0x17507d['type']['indexOf']('Container')){'text'==_0x17507d['type']&&(_0x17507d[_0x37db3a]+='\x0a');continue;}let _0x1f1fdb;if(_0x1f1fdb='add'==_0x37db3a?_0x3b0372['nextSibling']&&!this['_schema']['isObject'](_0x3b0372['nextSibling'])?_0x3b0372['nextSibling']:null:_0x3b0372['previousSibling']&&!this['_schema']['isObject'](_0x3b0372['previousSibling'])?_0x3b0372['previousSibling']:null,_0x3b0372['isEmpty']||_0x1f1fdb&&_0x1f1fdb['isEmpty']){const _0x4b7067=_0x1f1fdb&&_0x1f1fdb['isEmpty']?_0x1f1fdb:_0x3b0372;_0x17507d&&_0x17507d['type']==_0x37db3a+'EmptyContainer'&&_0x17507d['element']['name']==_0x4b7067['name']?_0x17507d['quantity']++:_0x15a58a['push']({'type':_0x37db3a+'EmptyContainer','element':_0x4b7067,'quantity':0x1});}else _0x15a58a['push']({'type':_0x37db3a+'Container','element':_0x3b0372});}}}}}['_resolveDescriptionItems'](_0x27f273){const _0x34ee6e=this['_locale'],_0x4e1960=[],_0xe0a51b=[],_0x48d514=[];for(const _0x362d12 of _0x27f273)switch(_0x362d12['type']){case'text':if(_0x362d12['add']=_0x362d12['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x362d12['remove']=_0x362d12['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x362d12['add']&&''!=_0x362d12['remove']){_0x4e1960['push']({'type':'replace','content':o(_0x34ee6e,'REPLACE_TEXT',['\x22'+_0x362d12['remove']+'\x22','\x22'+_0x362d12['add']+'\x22'])});continue;}if(null!=_0x362d12['add']['match'](/^ +$/)){_0x4e1960['push']({'type':'insertion','content':o(_0x34ee6e,'*Insert:*\x20%0',o(_0x34ee6e,'ELEMENT_SPACE',_0x362d12['add']['length']))});continue;}if(null!=_0x362d12['remove']['match'](/^ +$/)){_0x4e1960['push']({'type':'deletion','content':o(_0x34ee6e,'*Remove:*\x20%0',o(_0x34ee6e,'ELEMENT_SPACE',_0x362d12['remove']['length']))});continue;}if(''!=_0x362d12['add']){_0x4e1960['push']({'type':'insertion','content':o(_0x34ee6e,'*Insert:*\x20%0','\x22'+_0x362d12['add']+'\x22')});continue;}_0x4e1960['push']({'type':'deletion','content':o(_0x34ee6e,'*Remove:*\x20%0','\x22'+_0x362d12['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4e1960['push']({'type':'insertion','content':o(_0x34ee6e,'*Insert:*\x20%0',this['getItemLabel'](_0x362d12['element'],_0x362d12['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4e1960['push']({'type':'deletion','content':o(_0x34ee6e,'*Remove:*\x20%0',this['getItemLabel'](_0x362d12['element'],_0x362d12['quantity']))});continue;case'addContainer':_0x4e1960['push']({'type':'insertion','content':o(_0x34ee6e,'*Split:*\x20%0',this['getItemLabel'](_0x362d12['element'],_0x362d12['quantity']))});continue;case'removeContainer':_0x4e1960['push']({'type':'deletion','content':o(_0x34ee6e,'*Merge:*\x20%0',this['getItemLabel'](_0x362d12['element'],_0x362d12['quantity']))});continue;case'addFormat':_0xe0a51b['push'](_0x362d12['key']);continue;case'removeFormat':_0x48d514['push'](_0x362d12['key']);continue;default:_0x4e1960['push'](_0x362d12);}if(_0xe0a51b['length']){const _0x659cc6=_0xe0a51b['map'](_0x3ed32d=>this['_attributeLabels']['has'](_0x3ed32d)?this['_attributeLabels']['get'](_0x3ed32d):_0x3ed32d)['join'](',\x20');_0x4e1960['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x659cc6)});}if(_0x48d514['length']){const _0x153755=_0x48d514['map'](_0x64d1e3=>this['_attributeLabels']['has'](_0x64d1e3)?this['_attributeLabels']['get'](_0x64d1e3):_0x64d1e3)['join'](',\x20');_0x4e1960['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x153755)});}return _0x4e1960;}['_handleCustomCallbackDescription'](_0x4655e2){for(const _0x1e4c31 of this['_customCallbacks']){const _0x2d88c3=_0x1e4c31(_0x4655e2);if(_0x2d88c3&&'type'in _0x2d88c3)return _0x2d88c3;}}['_handleAttributeSuggestionDescription'](_0x9516fc,_0x8eaa10){const _0x346fc8=_0x8eaa10['data'],_0x5607b8=void 0x0===_0x346fc8['newValue']?'removeFormat':'addFormat';_0x9516fc['push']({'type':_0x5607b8,'key':_0x346fc8['key']});}['_handleRenameSuggestionDescription'](_0x5944a3,_0x5d6b2a){_0x5944a3['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5d6b2a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x57da5b,_0xfb568d,_0x550fe8){if(this['_addDescriptionItems'](_0x57da5b,_0xfb568d),_0x550fe8&&_0x550fe8['getFirstRange']()&&!_0xfb568d['getFirstRange']()['end']['isEqual'](_0x550fe8['getFirstRange']()['start'])){const _0x27e240=_0x57da5b[_0x57da5b['length']-0x1],_0xf7b950='insertion'==_0xfb568d['type']?'add':'remove';_0x27e240&&'text'==_0x27e240['type']&&(_0x27e240[_0xf7b950]+='\x0a');}}}class O extends _0x5b0fc1{['afterInit'](){const _0x11c712=this['editor'],_0x35004c=_0x11c712['plugins']['get']('TrackChangesEditing');_0x11c712['commands']['get']('showAIAssistant')&&_0x35004c['enableCommand']('showAIAssistant');}}class E extends _0x5b0fc1{['afterInit'](){const _0x3cb9ab=this['editor'],_0x435ced=_0x3cb9ab['locale'];if(!_0x3cb9ab['plugins']['has']('AlignmentEditing'))return;const _0x4c6280=_0x3cb9ab['plugins']['get']('TrackChangesEditing');_0x4c6280['enableDefaultAttributesIntegration']('alignment'),_0x4c6280['registerBlockAttribute']('alignment'),_0x4c6280['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x435ced,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e9a4a=this['editor'],_0x1252a0=_0x4e9a4a['locale'];_0x4e9a4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x399d06=>{if('formatBlock'!=_0x399d06['type'])return;const {data:_0x568c62}=_0x399d06;if(_0x568c62&&'alignment'==_0x568c62['commandName']){const _0x10d137=_0x568c62['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1252a0,'*Format:*\x20%0',function(_0x6d6e16){switch(_0x6d6e16){case'left':return o(_0x1252a0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1252a0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1252a0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1252a0,'FORMAT_JUSTIFY_TEXT');}}(_0x10d137))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x5b0fc1{['afterInit'](){const _0x126cf5=this['editor'],_0x3ab579=_0x126cf5['plugins']['get']('TrackChangesEditing'),_0xad4d45=_0x126cf5['locale'];for(const _0x424246 of ti){if(!_0x126cf5['plugins']['has'](_0x424246))continue;const _0xe27a88=_0x424246['slice'](0x0,-0x7)['toLowerCase'](),_0x4d5f70='FORMAT_'+_0xe27a88['toUpperCase']();_0x3ab579['enableDefaultAttributesIntegration'](_0xe27a88),_0x3ab579['registerInlineAttribute'](_0xe27a88),_0x3ab579['descriptionFactory']['registerAttributeLabel'](_0xe27a88,o(_0xad4d45,_0x4d5f70));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d4b1f=this['editor'],_0x4f9b81=_0x4d4b1f['locale'],_0x2b29c4=_0x4d4b1f['plugins']['get']('TrackChangesEditing');function _0x519e28(_0x5c96b1,_0x2cb545){_0x2b29c4['descriptionFactory']['registerDescriptionCallback'](_0x2ac46a=>{if('formatInline'!=_0x2ac46a['type'])return;const {data:_0xaac2fc}=_0x2ac46a;return _0xaac2fc&&_0xaac2fc['commandName']===_0x5c96b1?_0xaac2fc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f9b81,'*Format:*\x20%0',_0x2cb545)}:{'type':'format','content':o(_0x4f9b81,'*Remove\x20format:*\x20%0',_0x2cb545)}:void 0x0;});}_0x519e28('bold',o(_0x4f9b81,'FORMAT_BOLD')),_0x519e28('italic',o(_0x4f9b81,'FORMAT_ITALIC')),_0x519e28('underline',o(_0x4f9b81,'FORMAT_UNDERLINE')),_0x519e28('code',o(_0x4f9b81,'FORMAT_CODE')),_0x519e28('strikethrough',o(_0x4f9b81,'FORMAT_STRIKETHROUGH')),_0x519e28('subscript',o(_0x4f9b81,'FORMAT_SUBSCRIPT')),_0x519e28('superscript',o(_0x4f9b81,'FORMAT_SUPERSCRIPT'));}}class U extends _0x5b0fc1{['afterInit'](){const _0x12ce53=this['editor'],_0x3e5d0d=_0x12ce53['locale'];if(!_0x12ce53['plugins']['has']('BlockQuoteEditing'))return;const _0x371a21=_0x12ce53['plugins']['get']('TrackChangesEditing'),_0x4e1243=this['editor']['commands']['get']('blockQuote');_0x371a21['enableCommand']('blockQuote',(_0x36179c,_0x245fb2={})=>{const _0x47e70d=this['editor']['model']['document']['selection'],_0x512fb6=_0x245fb2&&void 0x0!==_0x245fb2['forceValue']?_0x245fb2['forceValue']:!_0x4e1243['value'];let _0x4cd741=[];if(_0x512fb6){const _0xcc2409=Array['from'](_0x47e70d['getSelectedBlocks']())['filter'](_0x4465a4=>oo(_0x4465a4)||function(_0x11cc43,_0x2331b3){const _0x2f13aa=_0x2331b3['checkChild'](_0x11cc43['parent'],'blockQuote'),_0x4d43eb=_0x2331b3['checkChild'](['$root','blockQuote'],_0x11cc43);return _0x2f13aa&&_0x4d43eb;}(_0x4465a4,this['editor']['model']['schema']));_0x4cd741=to(_0xcc2409,_0x12ce53['model']);}else{const _0x3517fc=Array['from'](_0x47e70d['getSelectedBlocks']())['filter'](_0x48eba2=>oo(_0x48eba2));_0x4cd741=to(_0x3517fc,_0x12ce53['model']);}_0x12ce53['model']['change'](()=>{for(const _0x4a3e09 of _0x4cd741)_0x371a21['markBlockFormat'](_0x4a3e09,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x512fb6}]});});}),_0x371a21['descriptionFactory']['registerDescriptionCallback'](_0x578afc=>{const {data:_0x4d4215}=_0x578afc;if(_0x4d4215&&'blockQuote'==_0x4d4215['commandName']){const _0x2e55b0=o(_0x3e5d0d,'ELEMENT_BLOCK_QUOTE');return _0x4d4215['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e5d0d,'*Set\x20format:*\x20%0',_0x2e55b0)}:{'type':'format','content':o(_0x3e5d0d,'*Remove\x20format:*\x20%0',_0x2e55b0)};}});}}function oo(_0x2d564f){return'blockQuote'==_0x2d564f['parent']['name'];}class V extends _0x5b0fc1{['afterInit'](){const _0xcbd180=this['editor'],_0x138687=_0xcbd180['locale'],_0x1e609c=_0xcbd180['plugins']['get']('TrackChangesEditing');_0xcbd180['plugins']['has']('BookmarkEditing')&&(_0x1e609c['enableCommand']('insertBookmark'),_0x1e609c['enableDefaultAttributesIntegration']('updateBookmark'),_0x1e609c['registerBlockAttribute']('bookmarkId'),_0x1e609c['descriptionFactory']['registerDescriptionCallback'](_0x5f4a51=>{if('insertion'!=_0x5f4a51['type']&&'deletion'!=_0x5f4a51['type']&&'attribute'!=_0x5f4a51['type'])return;const _0x528fd8=_0x5f4a51['getContainedElement']();if(null==_0x528fd8)return;if(!_0x528fd8['is']('element','bookmark'))return;const _0x552a14=_0x528fd8['getAttribute']('bookmarkId');if('insertion'==_0x5f4a51['type'])return{'type':'insertion','content':o(_0x138687,'*Insert:*\x20%0','\x22'+_0x552a14+'\x22\x20'+o(_0x138687,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5f4a51['type'])return{'type':'deletion','content':o(_0x138687,'*Remove:*\x20%0','\x22'+_0x552a14+'\x22\x20'+o(_0x138687,'ELEMENT_BOOKMARK'))};const {data:_0x24b44a}=_0x5f4a51;if(!_0x24b44a||'bookmarkId'!=_0x24b44a['key'])return;return{'type':'format','content':o(_0x138687,'*Set\x20bookmark:*\x20%0','\x22'+_0x24b44a['newValue']+'\x22')};}));}}class F extends _0x5b0fc1{['afterInit'](){const _0x3cbd8a=this['editor'];_0x3cbd8a['plugins']['has']('CaseChange')&&(_0x3cbd8a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3cbd8a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3cbd8a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x5b0fc1{['afterInit'](){const _0x525843=this['editor'];_0x525843['commands']['get']('ckbox')&&_0x525843['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5b0fc1{['afterInit'](){const _0x333abe=this['editor'];if(!_0x333abe['plugins']['has']('CodeBlock'))return;const _0x58a4b2=_0x333abe['plugins']['get']('TrackChangesEditing'),_0x4ba86b=_0x333abe['locale'],_0x1f4d0e=_0x333abe['config']['get']('codeBlock')['languages'],_0x36bae4=_0x333abe['commands']['get']('codeBlock');_0x58a4b2['enableCommand']('indentCodeBlock'),_0x58a4b2['enableCommand']('outdentCodeBlock'),_0x58a4b2['enableCommand']('codeBlock',(_0x3a29f4,_0x1183b4={})=>{const _0x3c6a93=_0x333abe['model'],_0x534f8a=_0x333abe['model']['document']['selection'],_0x2f010c=_0x1183b4&&void 0x0!==_0x1183b4['forceValue']?_0x1183b4['forceValue']:!_0x36bae4['value'];let _0x4e8a31;_0x1183b4['language']||(_0x1183b4['language']=_0x1f4d0e[0x0]['language']),_0x4e8a31=_0x2f010c?Array['from'](_0x534f8a['getSelectedBlocks']())['filter'](_0x5a3dca=>co(_0x5a3dca)||function(_0x470093,_0x2632e2){if(_0x470093['is']('rootElement')||_0x2632e2['isLimit'](_0x470093))return!0x1;return _0x2632e2['checkChild'](_0x470093['parent'],'codeBlock');}(_0x5a3dca,_0x3c6a93['schema'])):Array['from'](_0x534f8a['getSelectedBlocks']())['filter'](_0x181adc=>co(_0x181adc));const _0xe1b596=to(_0x4e8a31,_0x3c6a93);_0x3c6a93['change'](()=>{for(const _0x487aca of _0xe1b596)_0x58a4b2['markBlockFormat'](_0x487aca,{'commandName':'codeBlock','commandParams':[{..._0x1183b4,'forceValue':_0x2f010c}],'formatGroupId':'blockName'});});}),(_0x58a4b2['descriptionFactory']['registerElementLabel']('codeBlock',_0x1b02ec=>o(_0x4ba86b,'ELEMENT_CODE_BLOCK',_0x1b02ec)),_0x58a4b2['descriptionFactory']['registerDescriptionCallback'](_0x58a44c=>{if('formatBlock'!=_0x58a44c['type'])return;const _0x44ac20=_0x4ba86b['t'],{data:_0x43710d}=_0x58a44c;if(!_0x43710d||'codeBlock'!=_0x43710d['commandName'])return;const _0x41d754=_0x43710d['commandParams'][0x0]['language'],_0x2eeebf=_0x44ac20(_0x1f4d0e['find'](_0x22c11a=>_0x22c11a['language']===_0x41d754)['label'])['toLowerCase']();return _0x43710d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ba86b,'*Set\x20format:*\x20%0',o(_0x4ba86b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2eeebf+')')}:{'type':'format','content':o(_0x4ba86b,'*Remove\x20format:*\x20%0',o(_0x4ba86b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3566f5){return'codeBlock'==_0x3566f5['name'];}class J extends _0x5b0fc1{['afterInit'](){const _0x3544ed=this['editor'];if(!_0x3544ed['plugins']['has']('CommentsEditing'))return;_0x3544ed['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1997b0,_0x43c6b6,_0x533a7a){const _0x18c8e9=[];for(const _0x1f10a9 of _0x43c6b6['getItems']())_0x1f10a9['hasAttribute'](_0x1997b0)&&_0x18c8e9['push'](_0x533a7a['createRangeOn'](_0x1f10a9));return _0x18c8e9;}function De(_0x38189f,_0x512113,{showActiveMarker:_0xa06614=!0x0}={}){const _0x4ce005=_0x38189f['plugins']['get']('TrackChangesEditing');return(_0x50bfa9,_0x221145,_0x492dbd)=>{if(!_0x492dbd['consumable']['test'](_0x221145['markerRange'],_0x50bfa9['name']))return;const _0x419e4f=_0x221145['markerRange']['getWalker'](),_0x52a513=_0x221145['markerRange']['start'],_0x2a7d65=_0x38189f['model']['schema'];let _0x513985=null,_0x549b3c=null,_0x1d21da=!0x1,_0x2d5ede=!0x1;for(const _0x3d4e9d of _0x419e4f){const _0x49e49c=_0x3d4e9d['item'];_0x1d21da=_0x1d21da||_0x2a7d65['isContent'](_0x49e49c);const _0x428e5d=_0x492dbd['mapper']['toViewElement'](_0x49e49c);if(_0x428e5d&&_0x428e5d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d4e9d['type']&&(_0x2a7d65['isBlock'](_0x49e49c)&&!_0x2a7d65['isLimit'](_0x49e49c)&&(_0x49e49c['nextSibling']||_0x52a513['isAtEnd']?_0x513985&&_0x513985['parent']==_0x49e49c||(_0x513985=_0x49e49c,_0x4e8b9d(_0x3d4e9d['previousPosition']),_0x2d5ede=!0x0):_0x549b3c=_0x549b3c||_0x3d4e9d['previousPosition']));}function _0x4e8b9d(_0x21bbed){const {id:_0x399d88,authorId:_0x5ce84e}=_0x4ce005['_splitMarkerName'](_0x221145['markerName']),_0x5ebb00=_0x492dbd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x512113,'data-suggestion':_0x399d88,'data-author-id':_0x5ce84e}),_0x14f8f2=_0x492dbd['mapper']['toViewPosition'](_0x21bbed);_0xa06614&&_0x4ce005['activeMarkers']['includes'](_0x221145['markerName'])&&_0x492dbd['writer']['addClass']('ck-suggestion-marker--active',_0x5ebb00),_0x492dbd['writer']['insert'](_0x14f8f2,_0x5ebb00),_0x492dbd['mapper']['bindElementToMarker'](_0x5ebb00,_0x221145['markerName']);}_0x1d21da||_0x2d5ede||!_0x549b3c||_0x4e8b9d(_0x549b3c);};}class K extends _0x5b0fc1{static get['requires'](){return[_0x39e551];}['init'](){const _0x109625=this['editor'],_0x95bf30=_0x109625['plugins']['get']('TrackChangesEditing');_0x95bf30['enableCommand']('delete');const _0x23dfb9=_0x109625['commands']['get']('deleteForward');_0x95bf30['enableCommand']('deleteForward',(_0xf186c6,_0x553f0e={})=>{const _0x2f673c=_0x109625['model']['createSelection'](_0x109625['model']['document']['selection']);_0x2f673c['isCollapsed']&&_0x109625['model']['modifySelection'](_0x2f673c,{'direction':'forward','unit':_0x553f0e['unit']});const _0x1d3235=_0x2f673c['getFirstRange'](),_0x19560a=_0xb0dd32['fromRange'](_0x1d3235);let _0xc57177;_0xf186c6(_0x553f0e),_0xc57177='$graveyard'==_0x19560a['root']['rootName']?_0x109625['model']['createRange'](_0x1d3235['start']):_0x109625['model']['createRange'](_0x19560a['start'],_0x19560a['end']),_0x19560a['detach'](),_0x109625['model']['enqueueChange'](_0x23dfb9['buffer']['batch'],_0x5541f9=>{_0x23dfb9['buffer']['lock'](),_0x5541f9['setSelection'](_0x5541f9['createRange'](_0xc57177['end'])),_0x23dfb9['buffer']['unlock']();});}),_0x109625['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x109625,'merge'),{'priority':'high'}),_0x109625['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x151968,_0x4049e1,_0x4a2c34)=>{_0x4a2c34['options']['showSuggestionHighlights']&&De(_0x109625,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x151968,_0x4049e1,_0x4a2c34);},{'priority':'high'}),_0x109625['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4fe4dc,_0x30da99,_0x2e86bc)=>{const _0x4ee83b=_0x2e86bc['mapper']['markerNameToElements'](_0x30da99['markerName']);if(_0x4ee83b){for(const _0x29e99c of _0x4ee83b)_0x29e99c['is']('uiElement')&&(_0x2e86bc['mapper']['unbindElementFromMarkerName'](_0x29e99c,_0x30da99['markerName']),_0x2e86bc['writer']['remove'](_0x29e99c));}},{'priority':'high'});}}class H extends _0x5b0fc1{['afterInit'](){const _0x53041f=this['editor'];if(!_0x53041f['plugins']['has']('ListEditing'))return;const _0x4a77de=_0x53041f['locale'],_0x276fc1=_0x53041f['plugins']['get']('TrackChangesEditing'),_0x50b39c=_0x53041f['plugins']['has']('TodoListEditing'),_0x52e1a8=!!_0x53041f['config']['get']('list.multiBlock');function _0x6705aa(_0x3a4aca){return{'type':'format','content':''+o(_0x4a77de,'*Set\x20format:*\x20%0',_0x3a4aca)};}function _0xc919bb(_0x346ce9){return{'type':'format','content':''+o(_0x4a77de,'*Remove\x20format:*\x20%0',_0x346ce9)};}_0x276fc1['enableDefaultAttributesIntegration']('numberedList'),_0x276fc1['enableDefaultAttributesIntegration']('bulletedList'),_0x276fc1['enableDefaultAttributesIntegration']('customNumberedList'),_0x276fc1['enableDefaultAttributesIntegration']('customBulletedList'),_0x276fc1['enableDefaultAttributesIntegration']('indentList'),_0x276fc1['enableDefaultAttributesIntegration']('outdentList'),_0x276fc1['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x276fc1['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x276fc1['registerBlockAttribute']('listItemId'),_0x276fc1['registerBlockAttribute']('listType'),_0x276fc1['registerBlockAttribute']('listIndent'),_0x52e1a8&&(_0x276fc1['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x276fc1['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x50b39c&&(_0x276fc1['enableDefaultAttributesIntegration']('todoList'),_0x276fc1['enableDefaultAttributesIntegration']('checkTodoList'),_0x276fc1['registerBlockAttribute']('todoListChecked'),_0x276fc1['descriptionFactory']['registerDescriptionCallback'](_0x1a3120=>{const {data:_0x158db7}=_0x1a3120;if(_0x158db7&&'todoListChecked'==_0x158db7['key'])return{'type':'format','content':_0x158db7['newValue']?o(_0x4a77de,'*Check\x20item*'):o(_0x4a77de,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5e5f98=>{if(_0x5e5f98['batch']['isUndo'])return!0x1;let _0x3c355e=!0x1;const _0x3dff21=_0x276fc1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x195073=>'todoListChecked'===_0x276fc1['_getAttributeKey'](_0x195073));for(const _0x14ec04 of _0x3dff21){'todo'!=_0x14ec04['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x276fc1['_findSuggestions'](_0x14ec04['getFirstRange'](),'attribute')['find'](_0x49b98b=>'listType'===_0x276fc1['_getAttributeKey'](_0x49b98b['suggestion']))||(_0x5e5f98['removeMarker'](_0x14ec04['getFirstMarker']()),_0x3c355e=!0x0));}return _0x3c355e;})),_0x276fc1['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4a77de,'FORMAT_INDENT'));const _0x3bb32b={'type':'format','content':''};_0x276fc1['descriptionFactory']['registerDescriptionCallback'](_0x1e3daa=>{const {data:_0xcda8a6}=_0x1e3daa;if(!_0xcda8a6||'listType'!=_0xcda8a6['key'])return;let _0x8b078c=_0x1e3daa['head'];for(;_0x8b078c;){if(_0x8b078c['data']&&(('listStyle'==_0x8b078c['data']['key']||'listMarkerStyle'==_0x8b078c['data']['key'])&&(_0x8b078c['data']['newValue']&&'default'!=_0x8b078c['data']['newValue']||'default'!=_0x8b078c['data']['oldValue']&&!_0xcda8a6['newValue'])||!_0x52e1a8&&_0x8b078c['data']['key']==m))return _0x3bb32b;_0x8b078c=_0x8b078c['next'];}if(null==_0xcda8a6['newValue'])switch(_0xcda8a6['oldValue']){case'bulleted':return _0xc919bb(o(_0x4a77de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xc919bb(o(_0x4a77de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xc919bb(o(_0x4a77de,'ELEMENT_TODO_LIST'));}switch(_0xcda8a6['newValue']){case'bulleted':return _0x6705aa(o(_0x4a77de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x6705aa(o(_0x4a77de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x6705aa(o(_0x4a77de,'ELEMENT_TODO_LIST'));}}),_0x276fc1['descriptionFactory']['registerDescriptionCallback'](_0x4968ba=>{const {data:_0x4aae1c}=_0x4968ba;if(_0x4aae1c&&'listIndent'==_0x4aae1c['key'])return null==_0x4aae1c['newValue']||null==_0x4aae1c['oldValue']&&0x0==_0x4aae1c['newValue']?_0x3bb32b:void 0x0;}),_0x276fc1['descriptionFactory']['registerDescriptionCallback'](_0x25e69d=>{if('attribute'!=_0x25e69d['type'])return;const {data:_0x1754f0}=_0x25e69d;if(!_0x1754f0||'listItemId'!=_0x1754f0['key'])return;const _0x2f8017=Te(_0x25e69d);return'newValue'==_0x2f8017?{'type':'format','content':o(_0x4a77de,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2f8017?{'type':'format','content':o(_0x4a77de,'*Split:*\x20list\x20item')}:_0x3bb32b;}),_0x53041f['model']['document']['registerPostFixer'](_0x19131b=>this['listItemIdFixer'](_0x19131b)),_0x53041f['model']['document']['registerPostFixer'](_0x2501f1=>this['noTrackChangesFixer'](_0x2501f1)),_0x53041f['model']['document']['on']('change:data',(_0x552e49,_0x21aa0a)=>{if(_0x21aa0a['isUndo']||!_0x21aa0a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x35a6cc){if(_0x35a6cc['batch']['isUndo']||!_0x35a6cc['batch']['isLocal'])return!0x1;let _0x35982d=!0x1;const _0x3cc8d4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x178092=>_0x178092['data']&&'listItemId'==_0x178092['data']['key'])['filter'](_0x2949a5=>_0x2949a5['data']['newValue']&&_0x2949a5['data']['oldValue']);for(const _0x1fe640 of _0x3cc8d4)Te(_0x1fe640)||(_0x35a6cc['removeMarker'](_0x1fe640['getFirstMarker']()),_0x35982d=!0x0);return _0x35982d;}['noTrackChangesFixer'](_0x324977){if(_0x324977['batch']['isUndo']||!_0x324977['batch']['isLocal'])return!0x1;const _0x56fc55=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x56fc55['trackChangesCommand']['value'])return!0x1;let _0x1b3180=!0x1;const _0x207665=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x12cc19=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5bf2f3=>'attribute'==_0x5bf2f3['type'])['filter'](_0x205697=>_0x207665['includes'](_0x205697['attributeKey']));if(0x0==_0x12cc19['length'])return _0x1b3180;for(const _0x47b561 of _0x12cc19){const _0x5211ec=_0x56fc55['_findSuggestions'](_0x47b561['range'],'attribute')['filter'](_0x22d2d4=>!_0x22d2d4['meta']['isNextTo'])['map'](_0x1fd8eb=>_0x1fd8eb['suggestion'])['filter'](_0x361b6a=>{const _0x37d64a=_0x56fc55['_getAttributeKey'](_0x361b6a);return _0x207665['includes'](_0x37d64a);});if(_0x5211ec['length']){for(const _0x273d6d of _0x5211ec)_0x324977['removeMarker'](_0x273d6d['getFirstMarker']());_0x1b3180=!0x0;}}return _0x1b3180;}['assureChains'](){const _0x3205a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10005e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x33f970;const _0x3ba85d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3d3a74=>{if(_0x3d3a74['data']['oldRange']||!_0x3d3a74['data']['newRange'])return null;if(!_0x3d3a74['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x39e7ef}=_0x3205a0['_splitMarkerName'](_0x3d3a74['name']);if(!_0x3205a0['hasSuggestion'](_0x39e7ef))return null;const _0x529a52=_0x3205a0['getSuggestion'](_0x39e7ef);return _0x10005e['includes'](_0x529a52['data']['key']);})['map'](_0x16917d=>{const {id:_0x468f67}=_0x3205a0['_splitMarkerName'](_0x16917d['name']),_0x406806=_0x3205a0['getSuggestion'](_0x468f67);return _0x33f970=_0x406806['attributes']['groupId'],_0x406806['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3ba85d['size'])return;const _0x5257fb=_0x3205a0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x475e80=>'attribute'==_0x475e80['type']&&_0x475e80['data']&&_0x10005e['includes'](_0x475e80['data']['key'])&&_0x475e80['attributes']['groupId']!=_0x33f970)['map'](_0x384dcd=>({'listItem':_0x384dcd['getFirstRange']()['start']['nodeAfter'],'groupId':_0x384dcd['attributes']['groupId']})),_0xa08fee=new Set();for(const {groupId:_0x432845,listItem:_0x487c4b}of _0x5257fb)_0x3ba85d['has'](_0x487c4b)&&_0xa08fee['add'](_0x432845);for(const _0x285f9b of _0x3205a0['getSuggestions']())_0xa08fee['has'](_0x285f9b['attributes']['groupId'])&&_0x285f9b['setAttribute']('groupId',_0x33f970);}['_supportLegacySuggestions'](){const _0x4fee8a=this['editor'],_0x30fe6b=_0x4fee8a['locale'],_0x59ed38=_0x4fee8a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x59ed38['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xf85ab4,_0x1e7583){const _0x2155dc=[];for(let _0x558cdf of _0xf85ab4)_0x558cdf['start']['nodeAfter']===_0x558cdf['end']['parent']&&(_0x558cdf=_0x4fee8a['model']['createRange'](_0x4fee8a['model']['createPositionAt'](_0x558cdf['start']['nodeAfter'],0x0))),_0x2155dc['push'](_0x558cdf);_0x4fee8a['model']['change'](_0x16a347=>{const _0x458855=_0x4fee8a['model']['document']['selection'],_0xe1423=Array['from'](_0x458855['getRanges']())['map'](_0x5902e3=>_0xb0dd32['fromRange'](_0x5902e3));_0x16a347['setSelection'](_0x2155dc),_0x4fee8a['commands']['get'](_0x1e7583['commandName'])['refresh'](),_0x1e7583['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4fee8a['execute'](_0x1e7583['commandName'],..._0x1e7583['commandParams']),_0x16a347['setSelection'](_0xe1423);for(const _0x5f118e of _0xe1423)_0x5f118e['detach']();});}),_0x59ed38['descriptionFactory']['registerElementLabel'](function(_0x40063a){const _0x5ba8b4=!_0x4fee8a['model']['schema']['isObject'](_0x40063a),_0x5f2e6e=_0x40063a['previousSibling'],_0x55dca4=_0x40063a['nextSibling'],_0xca588c=_0x40063a['getAttribute']('listItemId'),_0x1e91a0=!_0x5f2e6e||_0x5f2e6e['getAttribute']('listItemId')!==_0xca588c,_0x150510=!_0x55dca4||_0x55dca4['getAttribute']('listItemId')!==_0xca588c;return _0x5ba8b4&&Boolean(_0xca588c)&&_0x1e91a0&&_0x150510;},_0x4cbc2f=>o(_0x30fe6b,'ELEMENT_LIST_ITEM',_0x4cbc2f));}['_registerLegacyDescription'](){const _0x53e227=this['editor'],_0xecadb2=_0x53e227['locale'];function _0xb166ab(_0xcbd0c0){const _0x416a5e=_0x53e227['commands']['get']('bulletedList')['value'],_0x28a1d4=_0x53e227['commands']['get']('numberedList')['value'];return'numberedList'===_0xcbd0c0?_0x416a5e:_0x28a1d4;}_0x53e227['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x451e1d){if('formatBlock'!=_0x451e1d['type'])return;const {data:_0x137628}=_0x451e1d;if(!_0x137628)return;let _0x31d06a,_0x36573a,_0x1fd091,_0x196f13;switch(_0x137628['commandName']){case'bulletedList':_0x1fd091=_0x137628['commandParams'][0x0]['forceValue'],_0x196f13=_0xb166ab(_0x137628['commandName']),_0x31d06a=_0x1fd091?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x196f13&&_0x53e227['config']['get']('list.multiBlock')||(_0x31d06a='*Change\x20to:*\x20%0'),_0x36573a={'type':'format','content':o(_0xecadb2,_0x31d06a,o(_0xecadb2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1fd091=_0x137628['commandParams'][0x0]['forceValue'],_0x196f13=_0xb166ab(_0x137628['commandName']),_0x31d06a=_0x1fd091?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x196f13&&_0x53e227['config']['get']('list.multiBlock')||(_0x31d06a='*Change\x20to:*\x20%0'),_0x36573a={'type':'format','content':o(_0xecadb2,_0x31d06a,o(_0xecadb2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x31d06a='*Indent:*\x20%0',_0x36573a={'type':'format','content':o(_0xecadb2,_0x31d06a,o(_0xecadb2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x31d06a=function(_0x16dbe2){const _0x1732ce=_0x16dbe2['getFirstRange']();let _0x4f6772=_0x1732ce['start']['nodeAfter'];for(;_0x4f6772&&_0x1732ce['containsItem'](_0x4f6772);){if(_0x4f6772['getAttribute']('listIndent')>0x0)return!0x1;_0x4f6772=_0x4f6772['nextSibling'];}return!0x0;}(_0x451e1d)?o(_0xecadb2,'*Format:*\x20remove\x20from\x20%0',o(_0xecadb2,function(_0xd59c59){return'ELEMENT_'+_0xd59c59['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x451e1d))):o(_0xecadb2,'*Outdent:*\x20%0',o(_0xecadb2,'ELEMENT_LIST_ITEM')),_0x36573a={'type':'format','content':_0x31d06a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x137628['multipleBlocks']&&(_0x31d06a='*Merge:*\x20%0',_0x36573a={'type':'deletion','content':o(_0xecadb2,_0x31d06a,o(_0xecadb2,'ELEMENT_LIST_ITEM'))});}return _0x36573a;});}}function Te(_0x4a9f07){let _0x3fe60e=_0x4a9f07['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3fe60e;){const _0x4b05df=_0x3fe60e['getAttribute']('listItemId');if(!_0x4b05df)return!0x1;if(_0x4b05df==_0x4a9f07['data']['newValue'])return'newValue';if(_0x4b05df==_0x4a9f07['data']['oldValue'])return'oldValue';_0x3fe60e=_0x3fe60e['previousSibling'];}return!0x1;}class q extends _0x5b0fc1{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4f1737=this['editor']['config']['get']('list.properties'),_0x1c41aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f1737['styles']&&(_0x1c41aa['enableDefaultAttributesIntegration']('listStyle'),_0x1c41aa['registerBlockAttribute']('listStyle')),_0x4f1737['reversed']&&(_0x1c41aa['enableDefaultAttributesIntegration']('listReversed'),_0x1c41aa['registerBlockAttribute']('listReversed')),_0x4f1737['startIndex']&&(_0x1c41aa['enableDefaultAttributesIntegration']('listStart'),_0x1c41aa['registerBlockAttribute']('listStart'));const _0x4903fa={'type':'format','content':''};_0x1c41aa['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x38865f=this['editor']['locale'];_0x1c41aa['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x38865f,'FORMAT_LIST_REVERSED')),_0x1c41aa['descriptionFactory']['registerDescriptionCallback'](_0x4ec438=>{const {data:_0x1f4153}=_0x4ec438;if(_0x1f4153&&'listReversed'==_0x1f4153['key'])return null==_0x1f4153['newValue']||0x0==_0x1f4153['newValue']&&null==_0x1f4153['oldValue']?_0x4903fa:void 0x0;}),_0x1c41aa['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x38865f,'FORMAT_LIST_START')),_0x1c41aa['descriptionFactory']['registerDescriptionCallback'](_0x34e9de=>{const {data:_0x367906}=_0x34e9de;if(_0x367906&&'listStart'==_0x367906['key'])return null==_0x367906['newValue']||0x1==_0x367906['newValue']&&null==_0x367906['oldValue']?_0x4903fa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x464554=>{if(_0x464554['batch']['isUndo'])return!0x1;let _0x434b4f=!0x1;const _0x4a6ae6=_0x1c41aa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15b9c7=>{const _0x138f50=_0x1c41aa['_getAttributeKey'](_0x15b9c7);return'listStart'==_0x138f50||'listReversed'==_0x138f50;});for(const _0x34d576 of _0x4a6ae6){const _0x188978=_0x34d576['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x188978||'customNumbered'==_0x188978)continue;_0x1c41aa['_findSuggestions'](_0x34d576['getFirstRange'](),'attribute')['find'](_0x44d9c1=>'listType'==_0x1c41aa['_getAttributeKey'](_0x44d9c1['suggestion']))||(_0x464554['removeMarker'](_0x34d576['getFirstMarker']()),_0x434b4f=!0x0);}return _0x434b4f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2aacbf){const _0x1accd0=this['editor']['locale'],{data:_0x527e86}=_0x2aacbf,_0x4205c5={'type':'format','content':''};if(!_0x527e86||'listStyle'!=_0x527e86['key'])return;if(!_0x527e86['oldValue'])return'default'==_0x527e86['newValue']?_0x4205c5:{'type':'format','content':''+o(_0x1accd0,'*Set\x20format:*\x20%0',o(_0x1accd0,this['_getTranslationKeyForListStyle'](_0x527e86['newValue'])))};if(!_0x527e86['newValue']){if('default'==_0x527e86['oldValue'])return _0x4205c5;let _0x10aa18=_0x2aacbf['head'];for(;_0x10aa18;){if(_0x10aa18['data']&&'listType'==_0x10aa18['data']['key']&&_0x10aa18['data']['newValue'])return _0x4205c5;_0x10aa18=_0x10aa18['next'];}return{'type':'format','content':''+o(_0x1accd0,'*Remove\x20format:*\x20%0',o(_0x1accd0,this['_getTranslationKeyForListStyle'](_0x527e86['oldValue'])))};}if('default'!=_0x527e86['newValue'])return{'type':'format','content':''+o(_0x1accd0,'*Set\x20format:*\x20%0',o(_0x1accd0,this['_getTranslationKeyForListStyle'](_0x527e86['newValue'])))};let _0x4c64cf=_0x2aacbf['head'];for(;_0x4c64cf;){if(_0x4c64cf['data']&&'listType'==_0x4c64cf['data']['key']&&_0x4c64cf['data']['newValue']&&_0x4c64cf['data']['oldValue'])return _0x4205c5;_0x4c64cf=_0x4c64cf['next'];}return{'type':'format','content':o(_0x1accd0,'*Set\x20format:*\x20%0',o(_0x1accd0,'ELEMENT_'+_0x2aacbf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1eb348=this['editor'],_0x2da2fa=_0x1eb348['locale'];_0x1eb348['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56e3bf=>{if('formatBlock'!=_0x56e3bf['type'])return;const {data:_0xd59e84}=_0x56e3bf;if(!_0xd59e84)return;let _0x1d7619,_0x54802d;switch(_0xd59e84['commandName']){case'listStyle':_0x1d7619='*Change\x20to:*\x20%0',_0x54802d={'type':'format','content':o(_0x2da2fa,_0x1d7619,o(_0x2da2fa,this['_getTranslationKeyForListStyle'](_0xd59e84['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1d7619=_0xd59e84['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x54802d={'type':'format','content':o(_0x2da2fa,_0x1d7619)};break;case'listStart':_0x1d7619='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x54802d={'type':'format','content':o(_0x2da2fa,_0x1d7619,_0xd59e84['commandParams'][0x0]['startIndex'])};}return _0x54802d;});}['_getTranslationKeyForListStyle'](_0x228e26){return'ELEMENT_'+function(_0x5ce52a){if(Se['includes'](_0x5ce52a))return'bulleted';if(_e['includes'](_0x5ce52a))return'numbered';return null;}(_0x228e26)['toUpperCase']()+'_LIST_'+_0x228e26['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x5b0fc1{['afterInit'](){const _0x413886=this['editor'];_0x413886['commands']['get']('emoji')&&_0x413886['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x5b0fc1{static get['requires'](){return[_0x241c18];}['init'](){const _0xb78216=this['editor'],_0x257044=_0xb78216['plugins']['get']('TrackChangesEditing'),_0x5740e7=_0xb78216['commands']['get']('enter');_0x257044['enableCommand']('enter',()=>{_0xb78216['model']['change'](_0x523ded=>{const _0x125605=_0xb78216['model']['document']['selection'],_0x1f2470=_0x125605['getFirstPosition'](),_0x4e8be3=_0xb0dd32['fromRange'](_0x125605['getFirstRange']());if(_0x5740e7['enterBlock'](_0x523ded)){const _0x4a953d=_0xb78216['model']['createPositionAt'](_0x1f2470['parent']['nextSibling'],0x0),_0x3ce8dc=_0x523ded['createRange'](_0x1f2470,_0x4a953d);_0x257044['markInsertion'](_0x3ce8dc);}else _0x523ded['setSelection'](_0x523ded['createRange'](_0x4e8be3['end']));_0x4e8be3['detach'](),_0x5740e7['fire']('afterExecute',{'writer':_0x523ded});});}),_0xb78216['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xb78216,'split'),{'priority':'high'}),_0xb78216['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1f97ae,_0x49a15a,_0x4e416c)=>{const _0x18aeb5=_0x4e416c['mapper']['markerNameToElements'](_0x49a15a['markerName']);if(_0x18aeb5){for(const _0x2d87b4 of _0x18aeb5)_0x2d87b4['hasClass']('ck-suggestion-marker-split')&&(_0x4e416c['mapper']['unbindElementFromMarkerName'](_0x2d87b4,_0x49a15a['markerName']),_0x4e416c['writer']['remove'](_0x2d87b4));}},{'priority':'high'}),_0xb78216['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x42b35d,_0x1c1fc8,_0x1849ab)=>{_0x1849ab['options']['showSuggestionHighlights']&&De(_0xb78216,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x42b35d,_0x1c1fc8,_0x1849ab);},{'priority':'high'});}}class Q extends _0x5b0fc1{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x52d757=this['editor']['plugins']['get']('TrackChangesEditing');_0x52d757['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x52d757['enableCommand']('findNext'),_0x52d757['enableCommand']('findPrevious'),_0x52d757['enableCommand']('replace'),_0x52d757['enableCommand']('replaceAll');}['handleFindCommand'](_0x31b418,_0x4272f3,_0x4ae28b={}){const _0x4b6668=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x31b418(_0x19a618=>{let _0xe3f4e3=('string'==typeof _0x4272f3?_0x4b6668['findByTextCallback'](_0x4272f3,_0x4ae28b):_0x4272f3)(_0x19a618);Array['isArray'](_0xe3f4e3)&&(_0xe3f4e3={'results':_0xe3f4e3,'searchText':'string'==typeof _0x4272f3?_0x4272f3:''});const _0x3f56f2=_0xe3f4e3['results']['filter'](_0x19cdd0=>!0x1===this['_isInDeletionRange'](_0x19cdd0,_0x19a618['item']));return{..._0xe3f4e3,'results':_0x3f56f2};},_0x4ae28b);}['_isInDeletionRange'](_0x250bce,_0x3a369a){const _0x30f249=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a369a,_0x250bce['start']),this['editor']['model']['createPositionAt'](_0x3a369a,_0x250bce['end']));for(const _0xca3c5d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x30f249['getIntersection'](_0xca3c5d['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x5b0fc1{['afterInit'](){const _0x3424f2=this['editor']['locale'],_0x5725a0=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3369eb,commandName:_0x2e90d6}of eo)this['editor']['plugins']['has'](_0x3369eb)&&(_0x5725a0['enableDefaultAttributesIntegration'](_0x2e90d6),_0x5725a0['registerInlineAttribute'](_0x2e90d6));_0x5725a0['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3424f2,'FORMAT_FONT_SIZE')),_0x5725a0['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3424f2,'FORMAT_FONT_FAMILY')),_0x5725a0['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3424f2,'FORMAT_FONT_COLOR')),_0x5725a0['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3424f2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ca0f5=this['editor'],_0x4bf473=_0x3ca0f5['locale'];_0x3ca0f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dfe43=>{const _0x554476=_0x4bf473['t'];if('formatInline'!=_0x1dfe43['type'])return;const {data:_0x141fd8}=_0x1dfe43;if(null!=_0x141fd8){if('fontSize'==_0x141fd8['commandName']){const _0x1464ee=_0x141fd8['commandParams'][0x0]['value'];if(_0x1464ee){const _0x16be4e=_0x554476(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x41118a=>_0x41118a['model']==_0x1464ee)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4bf473,'*Set\x20font\x20size:*\x20%0',_0x16be4e)};}return{'type':'format','content':o(_0x4bf473,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x141fd8['commandName']){const _0x3000cf=_0x141fd8['commandParams'][0x0]['value'];return _0x3000cf?{'type':'format','content':o(_0x4bf473,'*Set\x20font\x20family:*\x20%0',_0x3000cf)}:{'type':'format','content':o(_0x4bf473,'*Reset\x20font\x20family*')};}if('fontColor'==_0x141fd8['commandName']){const _0x24bb3d=_0x141fd8['commandParams'][0x0]['value'];if(_0x24bb3d){const _0x492f12=_0x434e10(this['editor']['config']['get']('fontColor.colors'))['find'](_0x534ea5=>_0x534ea5['model']==_0x24bb3d);let _0x506533=_0x24bb3d,_0x2781da='';return _0x492f12&&(_0x506533=_0x492f12['label'],_0x2781da=_0x554476(_0x506533)['toLowerCase']()),{'type':'format','content':o(_0x4bf473,'*Set\x20font\x20color:*\x20%0',_0x2781da)['trim'](),'color':{'value':_0x24bb3d,'title':_0x2781da||_0x506533}};}return{'type':'format','content':o(_0x4bf473,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x141fd8['commandName']){const _0x3f2920=_0x141fd8['commandParams'][0x0]['value'];if(_0x3f2920){const _0x27251=_0x434e10(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x19e59b=>_0x19e59b['model']==_0x3f2920);let _0xa9eaf4=_0x3f2920,_0x361b1e='';return _0x27251&&(_0xa9eaf4=_0x27251['label'],_0x361b1e=_0x554476(_0xa9eaf4)['toLowerCase']()),{'type':'format','content':o(_0x4bf473,'*Set\x20font\x20background\x20color:*\x20%0',_0x361b1e)['trim'](),'color':{'value':_0x3f2920,'title':_0x361b1e||_0xa9eaf4}};}return{'type':'format','content':o(_0x4bf473,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x5b0fc1{['afterInit'](){const _0x368c90=this['editor'],_0x9c694d=_0x368c90['plugins']['get']('TrackChangesEditing'),_0x4287a4=_0x368c90['commands']['get']('copyFormat'),_0x376172=_0x368c90['commands']['get']('pasteFormat');_0x4287a4&&_0x376172&&(_0x9c694d['enableDefaultAttributesIntegration']('pasteFormat'),_0x9c694d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x123012=this['editor'],_0x3dd513=_0x123012['locale'];_0x123012['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2313cb=>{if('formatBlock'!=_0x2313cb['type']&&'formatInline'!=_0x2313cb['type'])return;const {data:_0x3ef60f}=_0x2313cb;if(_0x3ef60f&&'pasteFormat'===_0x3ef60f['commandName']){const _0x352d94=[],_0x467c19=_0x3ef60f['commandParams'][0x0];for(const [_0x1f7fdb,_0x29f3ce]of Object['entries'](_0x467c19))_0x352d94['push'](ro(_0x123012,_0x1f7fdb,_0x29f3ce));return _0x352d94['length']?{'type':'format','content':o(_0x3dd513,'*Set\x20format\x20to:*\x20%0',_0x352d94['join'](',\x20'))}:{'type':'format','content':o(_0x3dd513,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xa2ce7f,_0x508289,_0x4bd4b3){const _0x4cb842=_0xa2ce7f['locale']['t'],_0x1608c3=_0x508289['split'](/(?=[A-Z])/)['join']('\x20'),_0x450162=_0x4cb842(_0x1608c3['charAt'](0x0)['toUpperCase']()+_0x1608c3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4bd4b3)return _0x450162;if('fontColor'===_0x508289||'fontBackgroundColor'===_0x508289){const _0x246414=_0x434e10(_0xa2ce7f['config']['get']('fontColor.colors'))['find'](_0x2339a4=>_0x2339a4['model']==_0x4bd4b3);return _0x450162+'\x20('+(_0x246414?_0x4cb842(_0x246414['label'])['toLowerCase']():_0x4bd4b3)+')';}if('fontSize'===_0x508289&&isNaN(parseFloat(_0x4bd4b3))){const _0x5c3545=_0xa2ce7f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xa2ce7f['config']['get']('fontSize.options'))['find'](_0x40967f=>_0x40967f['model']==_0x4bd4b3);return _0x450162+'\x20('+(_0x5c3545?_0x4cb842(_0x5c3545['title'])['toLowerCase']():_0x4bd4b3)+')';}return _0x450162+'\x20('+_0x4bd4b3+')';}class Z extends _0x5b0fc1{['_headingOptions'];['afterInit'](){const _0x1d14b1=this['editor'];if(!_0x1d14b1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1d14b1['config']['get']('heading.options');const _0x20a18b=_0x1d14b1['locale'],_0x4db47b=_0x1d14b1['plugins']['get']('TrackChangesEditing');_0x4db47b['enableDefaultAttributesIntegration']('heading');for(const _0x2b0550 of this['_headingOptions'])'paragraph'!=_0x2b0550['model']&&_0x4db47b['descriptionFactory']['registerElementLabel'](_0x2b0550['model'],_0x368992=>{const _0x2c8fcf=this['_getHeadingLevel'](_0x2b0550['model']);return null!==_0x2c8fcf?_0x18986e(_0x368992,_0x2c8fcf):_0x5cd6d4(_0x368992,_0x2b0550['title']);});function _0x18986e(_0x508ff6,_0x40bbdd){return o(_0x20a18b,'ELEMENT_HEADING',[_0x508ff6,_0x40bbdd]);}function _0x5cd6d4(_0xf590ff,_0xd64953){return o(_0x20a18b,'ELEMENT_HEADING_CUSTOM',[_0xf590ff,_0xd64953]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54b0e9=this['editor'],_0x5d0669=_0x54b0e9['locale'];function _0x1372f3(_0x2b1ea3,_0x25280d){return o(_0x5d0669,'ELEMENT_HEADING_CUSTOM',[_0x2b1ea3,_0x25280d]);}_0x54b0e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x582afb=>{if('formatBlock'!=_0x582afb['type'])return;const {data:_0x3f028d}=_0x582afb;if(_0x3f028d&&'heading'==_0x3f028d['commandName']){const _0x58a5ca=_0x3f028d['commandParams'][0x0]['value'],_0x1fdf06=this['_getHeadingLevel'](_0x58a5ca);if(null!==_0x1fdf06)return{'type':'format','content':o(_0x5d0669,'*Change\x20to:*\x20%0',(_0x1fc096=0x1,_0x58adb0=_0x1fdf06,o(_0x5d0669,'ELEMENT_HEADING',[_0x1fc096,_0x58adb0])))};const _0x527292=this['_headingOptions']['find'](_0x12eafe=>_0x12eafe['model']===_0x58a5ca)['title'];return{'type':'format','content':o(_0x5d0669,'*Change\x20to:*\x20%0',_0x1372f3(0x1,_0x527292))};}var _0x1fc096,_0x58adb0;});}['_getHeadingLevel'](_0x1c4719){const _0x4f152b=_0x1c4719['match'](/^heading(\d+)/);if(_0x4f152b)return _0x4f152b[0x1];const _0x44c6ae=this['_headingOptions']?.['find'](_0x562a22=>_0x562a22['model']==_0x1c4719);if(_0x44c6ae&&_0x44c6ae['view']){const _0x3534fd=_0x44c6ae['view'],_0x300c22=(_0x3534fd['name']??_0x3534fd)['match'](/^h(\d+)/);if(_0x300c22)return _0x300c22[0x1];}return null;}}class tt extends _0x5b0fc1{['afterInit'](){const _0x175fa6=this['editor'];if(!_0x175fa6['plugins']['has']('HighlightEditing'))return;const _0x2841fd=_0x175fa6['plugins']['get']('TrackChangesEditing'),_0x25c365=_0x175fa6['locale'];_0x2841fd['enableDefaultAttributesIntegration']('highlight'),_0x2841fd['registerInlineAttribute']('highlight'),_0x2841fd['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x25c365,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e212=this['editor'],_0x47406c=_0x2e212['locale'];_0x2e212['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16e1bf=>{if('formatInline'!=_0x16e1bf['type'])return;const {data:_0x393dde}=_0x16e1bf;if(_0x393dde&&'highlight'==_0x393dde['commandName']){const _0x57f26a=_0x47406c['t'],_0x5d7b72=_0x393dde['commandParams'][0x0]['value'];if(_0x5d7b72){const _0x186c09=_0x2e212['config']['get']('highlight.options')['find'](_0x2c91e3=>_0x2c91e3['model']==_0x5d7b72),_0x35e5d0=_0x57f26a(_0x186c09['title'])['toLowerCase']();return{'type':'format','content':o(_0x47406c,'*Set\x20highlight:*\x20%0',_0x35e5d0),'color':{'value':_0x186c09['color'],'title':_0x186c09['title']}};}return{'type':'format','content':o(_0x47406c,'*Remove\x20highlight*',o(_0x47406c,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x5b0fc1{['afterInit'](){const _0x57a49c=this['editor'];if(!_0x57a49c['plugins']['has']('HorizontalLineEditing'))return;_0x57a49c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x142fe0=_0x57a49c['plugins']['get']('TrackChangesEditing'),_0x56e774=_0x57a49c['locale'];_0x142fe0['descriptionFactory']['registerElementLabel']('horizontalLine',_0x499245=>o(_0x56e774,'ELEMENT_HORIZONTAL_LINE',_0x499245)),_0x57a49c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x48c83d,{writer:_0x5594c0,options:_0x3b8359})=>{if(!_0x3b8359['showSuggestionHighlights'])return null;const _0x188a81=_0x5594c0['createContainerElement']('div'),_0x70afb9=_0x5594c0['createEmptyElement']('hr');return _0x5594c0['addClass']('ck-horizontal-line',_0x188a81),_0x5594c0['insert'](_0x5594c0['createPositionAt'](_0x188a81,0x0),_0x70afb9),_0x188a81;},'converterPriority':'high'});}}class nt extends _0x5b0fc1{['afterInit'](){const _0x466f5a=this['editor'];if(!_0x466f5a['plugins']['has']('HtmlEmbed'))return;const _0xb8e07=_0x466f5a['plugins']['get']('TrackChangesEditing'),_0x3adab3=_0x466f5a['locale'];_0xb8e07['descriptionFactory']['registerElementLabel']('rawHtml',_0x37a7d6=>o(_0x3adab3,'ELEMENT_HTML_EMBED',_0x37a7d6)),_0xb8e07['enableDefaultAttributesIntegration']('htmlEmbed'),_0xb8e07['registerBlockAttribute']('value'),_0xb8e07['descriptionFactory']['registerDescriptionCallback'](_0x48c82f=>{if('attribute'!=_0x48c82f['type'])return;const {data:_0x3d3f99}=_0x48c82f;if(_0x3d3f99&&'value'==_0x3d3f99['key']&&_0x48c82f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x26bdbd=o(_0x3adab3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3adab3,'*Change\x20%0\x20content*',_0x26bdbd)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x204166=this['editor'],_0x5a1b39=_0x204166['locale'];_0x204166['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6f6d7=>{if('formatBlock'!=_0x6f6d7['type'])return;const {data:_0xe4e502}=_0x6f6d7;if(_0xe4e502&&'htmlEmbed'==_0xe4e502['commandName']){const _0x493f6a=o(_0x5a1b39,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5a1b39,'*Change\x20%0\x20content*',_0x493f6a)};}});}}class et extends _0x5b0fc1{['afterInit'](){const _0x518a7d=this['editor'];if(!_0x518a7d['plugins']['has']('ImageEditing'))return;const _0x2f325c=_0x518a7d['plugins']['get']('TrackChangesEditing'),_0x5451f2=_0x518a7d['plugins']['get']('ImageUtils'),_0x10e851=_0x518a7d['locale'];_0x2f325c['enableCommand']('insertImage'),_0x2f325c['descriptionFactory']['registerElementLabel']('imageBlock',_0x54c584=>o(_0x10e851,'ELEMENT_IMAGE',_0x54c584)),_0x2f325c['descriptionFactory']['registerElementLabel']('imageInline',_0xa61ef3=>o(_0x10e851,'ELEMENT_INLINE_IMAGE',_0xa61ef3)),_0x2f325c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x10e851,'ELEMENT_CAPTION')),_0x518a7d['plugins']['has']('ImageUploadEditing')&&_0x2f325c['enableCommand']('uploadImage'),_0x518a7d['plugins']['has']('ImageBlockEditing')&&_0x518a7d['plugins']['has']('ImageInlineEditing')&&(_0x2f325c['enableCommand']('imageTypeInline',(_0x5eb570,_0x87c4d4)=>{const _0x32dc26=_0x5451f2['getClosestSelectedImageElement'](_0x518a7d['model']['document']['selection']);_0x518a7d['model']['change'](()=>{_0x2f325c['markBlockFormat'](_0x32dc26,{'commandName':'imageTypeInline','commandParams':[_0x87c4d4]},[],'convertBlockImageToInline');});}),_0x2f325c['enableCommand']('imageTypeBlock',(_0xea13a5,_0x5923a4)=>{_0x518a7d['model']['change'](_0x4dd29c=>{let _0x38f358=_0x5451f2['getClosestSelectedImageElement'](_0x518a7d['model']['document']['selection']),_0xca07ae=_0x4dd29c['createRangeOn'](_0x38f358);const _0x36c9ae=_0x4193f1['fromPosition'](_0xca07ae['start'],'toPrevious'),_0x18124f=_0x4193f1['fromPosition'](_0xca07ae['end'],'toNext');_0x2f325c['forceDefaultExecution'](()=>_0xea13a5(_0x5923a4)),_0x38f358=_0x5451f2['getClosestSelectedImageElement'](_0x518a7d['model']['document']['selection']),_0xca07ae=_0x4dd29c['createRangeOn'](_0x38f358);const _0x205bff=_0x4dd29c['createRange'](_0x36c9ae,_0x18124f);_0x36c9ae['detach'](),_0x18124f['detach'](),_0x2f325c['markBlockFormat'](_0x38f358,{'commandName':'imageTypeInline','commandParams':[_0x5923a4]},[],'convertInlineImageToBlock'),_0x205bff['start']['isBefore'](_0xca07ae['start'])&&_0x2f325c['markInsertion'](_0x4dd29c['createRange'](_0x205bff['start'],_0xca07ae['start']),'convertInlineImageToBlock'),_0xca07ae['end']['isBefore'](_0x205bff['end'])&&_0x2f325c['markInsertion'](_0x4dd29c['createRange'](_0xca07ae['end'],_0x205bff['end']),'convertInlineImageToBlock');});}),_0x2f325c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2f325c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2f325c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2f325c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2f325c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2f325c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1d8be8])=>{const _0x9bb780=_0x2f325c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x370517=_0x1d8be8['start'],_0x54e8c8=_0x1d8be8['end'];const _0x4ee692=_0x518a7d['model']['schema']['getNearestSelectionRange'](_0x370517,'backward'),_0x5581d8=_0x518a7d['model']['schema']['getNearestSelectionRange'](_0x54e8c8,'forward');_0x4ee692['isCollapsed']&&(_0x370517=_0x4ee692['start']),_0x5581d8['isCollapsed']&&(_0x54e8c8=_0x5581d8['end']),_0x9bb780([_0x518a7d['model']['createRange'](_0x370517,_0x54e8c8)]);}),_0x2f325c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x352275),_0x2f325c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x352275)),_0x518a7d['plugins']['has']('ImageCaptionEditing')&&(_0x2f325c['enableCommand']('toggleImageCaption',(_0x2bf402,_0x512663)=>{const _0x27075a=_0x518a7d['plugins']['get']('ImageCaptionUtils');let _0x280462=_0x5451f2['getClosestSelectedImageElement'](_0x518a7d['model']['document']['selection']),_0x319c53=_0x27075a['getCaptionFromImageModelElement'](_0x280462);_0x518a7d['model']['change'](()=>{if(_0x319c53)return void _0x2f325c['markDeletion'](_0x518a7d['model']['createRangeOn'](_0x319c53));const _0x5a9ffc=_0x5451f2['isBlockImage'](_0x280462);_0x2bf402(_0x512663),_0x280462=_0x5451f2['getClosestSelectedImageElement'](_0x518a7d['model']['document']['selection']),_0x319c53=_0x27075a['getCaptionFromImageModelElement'](_0x280462),_0x2f325c['markInsertion'](_0x518a7d['model']['createRangeOn'](_0x319c53),_0x5a9ffc?null:'imageCaption');});}),_0x2f325c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x352275));const _0x133341=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1cdbb0(_0x464d0f,_0x30b94a){const _0x438d51=_0x133341['findIndex'](({type:_0x3d7c08,subType:_0x2a09c0})=>_0x464d0f['type']==_0x3d7c08&&_0x464d0f['subType']==_0x2a09c0),_0x49752d=_0x133341['findIndex'](({type:_0x1ca0f3,subType:_0x462a08})=>_0x30b94a['type']==_0x1ca0f3&&_0x30b94a['subType']==_0x462a08);if(_0x438d51<0x0||_0x49752d<0x0)return!0x1;const _0x4cc32d=_0x464d0f['getFirstRange'](),_0x529db8=_0x30b94a['getFirstRange']();if((0x0==_0x438d51||0x1==_0x438d51)&&0x2==_0x49752d&&_0x4cc32d['isIntersecting'](_0x529db8))return!0x0;if(0x2==_0x438d51&&0x3==_0x49752d){const _0x11e503=_0x2f325c['_findSuggestions'](_0x4cc32d,'insertion')['filter'](({suggestion:_0x3435ad,meta:_0x3bd4d7})=>_0x3bd4d7['isOwn']&&'convertInlineImageToBlock'==_0x3435ad['subType']);if(_0x11e503['length']>0x1&&_0x529db8['end']['isEqual'](_0x4cc32d['start']))return!0x0;if(0x1==_0x11e503['length']&&(_0x4cc32d['start']['isEqual'](_0x529db8['end'])||_0x4cc32d['end']['isEqual'](_0x529db8['start'])))return!0x0;}if(0x3==_0x438d51&&0x3==_0x49752d&&_0x4cc32d['start']['isBefore'](_0x529db8['start'])){const _0x354525=_0x4cc32d['end']['nodeAfter'],_0x2c6226=_0x529db8['start']['nodeBefore'];return _0x5451f2['isBlockImage'](_0x354525)&&_0x354525===_0x2c6226;}return!0x1;}function _0x352275(_0xb2c754,_0x47947a){return _0x1cdbb0(_0xb2c754,_0x47947a)?[_0xb2c754,_0x47947a]:_0x1cdbb0(_0x47947a,_0xb2c754)?[_0x47947a,_0xb2c754]:null;}_0x518a7d['plugins']['has']('ImageResize')&&(_0x2f325c['enableDefaultAttributesIntegration']('resizeImage'),_0x2f325c['registerBlockAttribute']('resizedWidth'),_0x2f325c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x10e851,'FORMAT_IMAGE_SIZE'))),_0x518a7d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2f325c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2f325c['registerBlockAttribute']('alt')),_0x518a7d['plugins']['has']('PictureEditing')&&(_0x2f325c['registerBlockAttribute']('sources'),_0x2f325c['descriptionFactory']['registerDescriptionCallback'](_0x461153=>{if('attribute'!=_0x461153['type'])return;const {data:_0x2f13e2}=_0x461153;return _0x2f13e2&&'sources'==_0x2f13e2['key']?{'type':'format','content':''}:void 0x0;})),_0x518a7d['plugins']['has']('ImageSizeAttributes')&&(_0x2f325c['registerBlockAttribute']('width'),_0x2f325c['registerBlockAttribute']('height'),_0x2f325c['descriptionFactory']['registerDescriptionCallback'](_0x13d656=>{if('attribute'!=_0x13d656['type'])return;const {data:_0x159bd3}=_0x13d656;return!_0x159bd3||'width'!=_0x159bd3['key']&&'height'!=_0x159bd3['key']?void 0x0:{'type':'format','content':''};})),_0x2f325c['descriptionFactory']['registerDescriptionCallback'](_0x32c95d=>{if(!!_0x133341['find'](({type:_0x264c7d,subType:_0x222ab2})=>_0x32c95d['type']==_0x264c7d&&_0x32c95d['subType']==_0x222ab2))return _0x32c95d['previous']?{}:void 0x0;}),_0x2f325c['descriptionFactory']['registerDescriptionCallback'](_0x3e9ba0=>{if('insertion'==_0x3e9ba0['type']||'deletion'==_0x3e9ba0['type']){const _0xf8e3b1=_0x3e9ba0['getContainedElement']();if(_0xf8e3b1&&_0xf8e3b1['is']('element','caption'))return{'type':'insertion'==_0x3e9ba0['type']?'addObject':'removeObject','element':_0xf8e3b1,'quantity':0x1};}}),_0x2f325c['descriptionFactory']['registerDescriptionCallback'](_0x51b72f=>'formatBlock'==_0x51b72f['type']&&'convertInlineImageToBlock'==_0x51b72f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x51b72f['type']&&'convertBlockImageToInline'==_0x51b72f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2f325c['descriptionFactory']['registerDescriptionCallback'](_0x2fa950=>{if('attribute'!=_0x2fa950['type'])return;const {data:_0x1b7cfb}=_0x2fa950;if(!_0x1b7cfb||'alt'!=_0x1b7cfb['key'])return;const _0x3d0836=_0x1b7cfb['newValue'];return _0x3d0836?{'type':'format','content':o(_0x10e851,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3d0836+'\x22')}:{'type':'format','content':o(_0x10e851,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a4a46=this['editor'],_0x441393=_0x4a4a46['locale'];_0x4a4a46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x75491e=>{if('formatBlock'!=_0x75491e['type']&&'formatInline'!=_0x75491e['type'])return;const {data:_0x508544}=_0x75491e;if(_0x508544){if('imageTextAlternative'==_0x508544['commandName']){const _0x4e0c72=_0x508544['commandParams'][0x0]['newValue'];return _0x4e0c72?{'type':'format','content':o(_0x441393,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e0c72+'\x22')}:{'type':'format','content':o(_0x441393,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x508544['commandName']){const _0x30e6ab=_0x508544['commandParams'][0x0]['width'];return _0x30e6ab?{'type':'format','content':o(_0x441393,'*Set\x20image\x20width:*\x20%0',_0x30e6ab)}:{'type':'format','content':o(_0x441393,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5b0fc1{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3c08f9=this['editor']['locale'],_0x17d114=this['editor']['plugins']['get']('TrackChangesEditing');_0x17d114['enableDefaultAttributesIntegration']('replaceImageSource'),_0x17d114['registerBlockAttribute']('src'),_0x17d114['descriptionFactory']['registerDescriptionCallback'](_0x1ce31a=>{if('attribute'!=_0x1ce31a['type'])return;const {data:_0xdb5fa5}=_0x1ce31a;return _0xdb5fa5&&'src'==_0xdb5fa5['key']?_0xdb5fa5['newValue']&&_0xdb5fa5['oldValue']?{'type':'format','content':o(_0x3c08f9,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xdd5006=this['editor']['plugins']['get']('TrackChangesEditing');_0xdd5006['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xdd5006['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xdd5006['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xdd5006['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xba4d3e=this['editor'],_0x59591a=_0xba4d3e['locale'];_0xba4d3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x466105=>{if('formatBlock'!=_0x466105['type']&&'formatInline'!=_0x466105['type'])return;const {data:_0x2a0776}=_0x466105;if(!_0x2a0776||'replaceImageSource'!=_0x2a0776['commandName'])return;return{'type':'format','content':o(_0x59591a,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x5b0fc1{['afterInit'](){const _0x5af7b5=this['editor'];if(!_0x5af7b5['plugins']['has']('ImageStyleEditing'))return;const _0x620e54=_0x5af7b5['plugins']['get']('TrackChangesEditing'),_0x382d65=_0x5af7b5['plugins']['get']('ImageUtils'),_0x37937={};_0x620e54['enableCommand']('imageStyle',(_0x593064,_0x58211b)=>{const _0x966996=_0x5af7b5['plugins']['get']('Users')['me'],_0x74ad59=_0x5af7b5['commands']['get']('imageStyle');let _0x286777=_0x382d65['getClosestSelectedImageElement'](_0x5af7b5['model']['document']['selection']),_0x302d56=_0x5af7b5['model']['createRangeOn'](_0x286777),_0x57e1d6=_0x74ad59['value'];if(_0x57e1d6==_0x58211b['value'])return;const _0x2bc9e1={'commandName':'imageStyle','commandParams':[_0x58211b],'formatGroupId':_0x50cf13()};_0x5af7b5['model']['change'](()=>{if(_0x620e54['getSuggestions']()['filter'](_0x34e4fe=>_0x34e4fe['isInContent']&&_0x966996==_0x34e4fe['author']&&('formatBlock'==_0x34e4fe['type']||'formatInline'==_0x34e4fe['type'])&&('imageStylePreApply'==_0x34e4fe['subType']||'imageStylePostApply'==_0x34e4fe['subType'])&&_0x34e4fe['getFirstRange']()['isEqual'](_0x302d56))['forEach'](_0x1e0909=>_0x620e54['discardSuggestion'](_0x1e0909['head'])),_0x286777=_0x382d65['getClosestSelectedImageElement'](_0x5af7b5['model']['document']['selection']),_0x302d56=_0x5af7b5['model']['createRangeOn'](_0x286777),_0x74ad59['refresh'](),_0x5af7b5['commands']['get']('imageTypeInline')['refresh'](),_0x5af7b5['commands']['get']('imageTypeBlock')['refresh'](),_0x57e1d6=_0x74ad59['value'],_0x57e1d6!=_0x58211b['value'])return _0x382d65['isInlineImage'](_0x286777)&&_0x74ad59['shouldConvertImageType'](_0x58211b['value'],_0x286777)?(_0x593064({..._0x58211b,'setImageSizes':!0x1}),_0x286777=_0x382d65['getClosestSelectedImageElement'](_0x5af7b5['model']['document']['selection']),void _0x620e54['markBlockFormat'](_0x286777,{..._0x2bc9e1,'commandReversedParams':[{'value':_0x57e1d6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x382d65['isBlockImage'](_0x286777)?_0x620e54['markBlockFormat'](_0x286777,_0x2bc9e1,[],'imageStylePostApply'):_0x620e54['markInlineFormat'](_0x302d56,_0x2bc9e1,'imageStylePostApply'));});});for(const _0x9122a9 of _0x5af7b5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x37937[_0x9122a9['name']]=_0x9122a9['title']['toLowerCase']();_0x620e54['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x620e54['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x620e54['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x620e54['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4efa03])=>{_0x382d65['setImageNaturalSizeAttributes'](_0x4efa03['getContainedElement']());}),_0x620e54['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1425ba,_0x316e6c)=>{_0x620e54['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1425ba,{'commandName':_0x316e6c['commandName'],'commandParams':_0x316e6c['commandReversedParams']});}),_0x620e54['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1be5c8,_0x15b7fa){if(_0x58bde8(_0x1be5c8,_0x15b7fa))return[_0x1be5c8,_0x15b7fa];if(_0x58bde8(_0x15b7fa,_0x1be5c8))return[_0x15b7fa,_0x1be5c8];return null;});const _0x3bb2ce=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x58bde8(_0x2bf29e,_0x2585b3){const _0x5d208a=_0x3bb2ce['findIndex'](({type:_0x42b8ae,subType:_0x4c7cf4})=>_0x2bf29e['type']==_0x42b8ae&&_0x2bf29e['subType']==_0x4c7cf4),_0x53431d=_0x3bb2ce['findIndex'](({type:_0x544631,subType:_0x52abed})=>_0x2585b3['type']==_0x544631&&_0x2585b3['subType']==_0x52abed);if(_0x5d208a<0x0||_0x53431d<0x0)return!0x1;const _0x4ad3cb=_0x2bf29e['getFirstRange'](),_0x179849=_0x2585b3['getFirstRange']();if((0x0==_0x5d208a||0x1==_0x5d208a)&&0x2==_0x53431d&&_0x4ad3cb['isIntersecting'](_0x179849))return!0x0;if(0x2==_0x5d208a&&0x3==_0x53431d){const _0x4c98a7=_0x620e54['_findSuggestions'](_0x4ad3cb,'insertion')['filter'](({suggestion:_0x2bd948,meta:_0x65d358})=>_0x65d358['isOwn']&&'convertInlineImageToBlock'==_0x2bd948['subType']);if(_0x4c98a7['length']>0x1&&_0x179849['end']['isEqual'](_0x4ad3cb['start']))return!0x0;if(0x1==_0x4c98a7['length']&&(_0x4ad3cb['start']['isEqual'](_0x179849['end'])||_0x4ad3cb['end']['isEqual'](_0x179849['start'])))return!0x0;}if(0x3==_0x5d208a&&0x3==_0x53431d&&_0x4ad3cb['start']['isBefore'](_0x179849['start'])){const _0x3886ba=_0x4ad3cb['end']['nodeAfter'],_0x45a00f=_0x179849['start']['nodeBefore'];return _0x382d65['isBlockImage'](_0x3886ba)&&_0x3886ba===_0x45a00f;}return!0x1;}_0x5af7b5['model']['document']['registerPostFixer'](()=>{let _0xb511bf=!0x1;const _0x45dac2=Array['from'](_0x5af7b5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26f9f7,data:_0x472a7a}of _0x45dac2){const {group:_0x105a8f,type:_0x12df75,subType:_0x1e4127,id:_0x166b02}=_0x620e54['_splitMarkerName'](_0x26f9f7);if('suggestion'==_0x105a8f&&_0x620e54['hasSuggestion'](_0x166b02)){if('formatBlock'==_0x12df75&&('imageStylePreApply'==_0x1e4127||'imageStylePostApply'==_0x1e4127)){const _0x5a90fb=_0x620e54['getSuggestion'](_0x166b02);if(_0x472a7a['newRange']){const _0x150a95=_0x5a90fb['getFirstRange']()['getContainedElement']();if(_0x382d65['isBlockImage'](_0x150a95))continue;_0x620e54['discardSuggestion'](_0x5a90fb),_0xb511bf=!0x0;}}if('insertion'==_0x12df75&&'imageCaption'==_0x1e4127&&!_0x472a7a['newRange']){const _0x48d379=_0x620e54['getSuggestion'](_0x166b02);_0x48d379['next']&&_0x48d379['next']['isInContent']&&(_0x620e54['discardSuggestion'](_0x48d379['next']),_0xb511bf=!0x0);}}}return _0xb511bf;}),this['_registerLegacyDescription'](_0x37937);}['_registerLegacyDescription'](_0x15ce75){const _0x463a83=this['editor'],_0x981b79=_0x463a83['locale'];_0x463a83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ca5bf=>{if('formatBlock'!=_0x3ca5bf['type']&&'formatInline'!=_0x3ca5bf['type'])return;const {data:_0x5253cc}=_0x3ca5bf;if(!_0x5253cc||'imageStyle'!=_0x5253cc['commandName'])return;const _0x2d83b0=_0x5253cc['commandParams'][0x0]['value'];return _0x1e5bf5('side'===_0x2d83b0?o(_0x981b79,'FORMAT_SIDE_IMAGE'):_0x15ce75[_0x2d83b0]||_0x2d83b0);function _0x1e5bf5(_0x23a4ba){return{'type':'format','content':o(_0x981b79,'*Format:*\x20%0',_0x23a4ba)};}});}}class rt extends _0x5b0fc1{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x38dbb8){super(_0x38dbb8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x816676=this['editor'],_0x5078b7=_0x816676['commands']['get']('importWord'),_0x12138a=_0x816676['commands']['get']('trackChanges');_0x5078b7&&(_0x5078b7['on']('execute',(_0x3f6439,[,_0x2b2f81])=>{this['_trackChangesValueDuringImport']=_0x12138a['value'],_0x2b2f81['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5078b7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5078b7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x12138a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x816676['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x416351,_0x408061){const {suggestions:_0x112c2f}=_0x408061,_0x1e4be3=this['editor']['commands']['get']('trackChanges'),_0x3d060c=_0x1e4be3['value'];this['_trackChangesValueDuringImport']!==_0x3d060c&&(_0x1e4be3['execute'](),this['_trackChangesExecuted']=!0x0),_0x112c2f&&_0x112c2f['forEach'](({id:_0x17a446,type:_0x225d1a,author:_0x5695f9,created_at:_0x5d5e07})=>{const _0x3f3056={'id':_0x17a446,'type':_0x225d1a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5695f9,'createdAt':_0x5d5e07?new Date(_0x5d5e07):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3f3056);});}}class at extends _0x5b0fc1{['afterInit'](){const _0x2d2206=this['editor'],_0x17d826=_0x2d2206['plugins']['get']('TrackChangesEditing');if(_0x2d2206['plugins']['has']('IndentEditing')&&(_0x17d826['enableCommand']('indent'),_0x17d826['enableCommand']('outdent')),_0x2d2206['plugins']['has']('IndentBlock')){for(const _0x598a88 of['indentBlock','outdentBlock'])_0x17d826['enableDefaultAttributesIntegration'](_0x598a88);}const _0x254139=_0x2d2206['locale'];_0x17d826['registerBlockAttribute']('blockIndent'),_0x17d826['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x254139,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c4dcb=this['editor'],_0x4f3719=_0x2c4dcb['locale'],_0x2bb990=_0x2c4dcb['plugins']['get']('TrackChangesEditing');_0x2bb990['descriptionFactory']['registerDescriptionCallback'](_0x2eb68f=>{if('formatBlock'!=_0x2eb68f['type'])return;const {data:_0x3fed9a}=_0x2eb68f;if(!_0x3fed9a)return;if('indentBlock'!=_0x3fed9a['commandName']&&'outdentBlock'!=_0x3fed9a['commandName'])return;const _0x2059fc=_0x2eb68f['getItems']()[0x0],_0x23a600=_0x2bb990['descriptionFactory']['getItemLabel'](_0x2059fc);return'indentBlock'==_0x3fed9a['commandName']?{'type':'format','content':o(_0x4f3719,'*Indent:*\x20%0',_0x23a600)}:'outdentBlock'==_0x3fed9a['commandName']?{'type':'format','content':o(_0x4f3719,'*Outdent:*\x20%0',_0x23a600)}:void 0x0;});}}class ct extends _0x5b0fc1{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x5b0fc1{['afterInit'](){const _0x30eaaf=this['editor'];if(!_0x30eaaf['plugins']['has']('LinkEditing'))return;const _0x1fb866=_0x30eaaf['plugins']['get']('TrackChangesEditing'),_0x29cbbe=_0x30eaaf['commands']['get']('link');_0x1fb866['enableDefaultAttributesIntegration']('link'),_0x1fb866['enableDefaultAttributesIntegration']('unlink'),_0x1fb866['registerInlineAttribute']('linkHref');for(const _0x202da8 of _0x29cbbe['manualDecorators'])_0x1fb866['registerInlineAttribute'](_0x202da8['id']),_0x1fb866['descriptionFactory']['registerAttributeLabel'](_0x202da8['id'],'link\x20('+_0x202da8['label']['toLowerCase']()+')');_0x1fb866['descriptionFactory']['registerDescriptionCallback'](_0xddac26=>{if('attribute'!=_0xddac26['type'])return;const {data:_0x2a06d0}=_0xddac26;if(!_0x2a06d0||'linkHref'!=_0x2a06d0['key'])return;const _0x196cbf=_0x2a06d0['newValue'],_0x3af703=_0x30eaaf['locale'];return{'type':'format','content':null==_0x196cbf?o(_0x3af703,'*Remove\x20link*'):o(_0x3af703,'*Set\x20link:*\x20%0','\x22'+_0x196cbf+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x124c0a=this['editor'],_0x38dd71=_0x124c0a['locale'];_0x124c0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4072c2=>{if('formatInline'!=_0x4072c2['type'])return;const {data:_0x4e37b9}=_0x4072c2;if(_0x4e37b9){if('link'==_0x4e37b9['commandName']){const _0x59010d=_0x4e37b9['commandParams'][0x0];return{'type':'format','content':o(_0x38dd71,'*Set\x20link:*\x20%0','\x22'+_0x59010d+'\x22')};}return'unlink'==_0x4e37b9['commandName']?{'type':'format','content':o(_0x38dd71,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x5b0fc1{['afterInit'](){const _0x3a79f6=this['editor'],_0x5787fe=_0x3a79f6['locale'];if(!_0x3a79f6['plugins']['has']('LegacyListEditing'))return;const _0x41e309=_0x3a79f6['plugins']['get']('TrackChangesEditing'),_0x3e8cd0=_0x3a79f6['plugins']['has']('LegacyTodoListEditing');function _0x2a8984(_0x26eba6){return()=>{const _0x372e8b=_0x3a79f6['model']['document']['selection'],_0x18398c=_0x3a79f6['commands']['get'](_0x26eba6);if(_0x18398c['value'])return void _0x3a79f6['execute']('paragraph',{});const _0x5592dd=_0x26eba6['slice'](0x0,-0x4),_0x3ed9bb=function(_0x34fd01,_0x234574,_0xed8e72){let _0x10d911=Array['from'](_0x34fd01)['filter'](_0x879354=>function(_0x1b9854,_0x16a1b2){return _0x16a1b2['checkChild'](_0x1b9854['parent'],'listItem')&&!_0x16a1b2['isObject'](_0x1b9854);}(_0x879354,_0xed8e72));_0x10d911=_0x10d911['filter'](_0xb6459b=>!_0xb6459b['is']('element','listItem')||_0xb6459b['getAttribute']('listType')!=_0x234574);const _0x5a7239=new Set();for(const _0xd8ff87 of _0x10d911)_0xd8ff87['is']('element','listItem')?_0x5a7239['add'](Le(_0xd8ff87)):_0x5a7239['add'](_0xd8ff87);return Array['from'](_0x5a7239);}(_0x372e8b['getSelectedBlocks'](),_0x5592dd,_0x3a79f6['model']['schema']);_0x3a79f6['model']['change'](()=>{for(const _0x70b376 of _0x3ed9bb)_0x41e309['markBlockFormat'](_0x70b376,{'commandName':_0x26eba6,'commandParams':[{'forceValue':!_0x18398c['value']}],'formatGroupId':'blockName'},Ee(_0x70b376));});};}function _0x18beae(_0x4a4480){return()=>{const _0x218e15=function(_0x548c30){let _0x496a3e=Array['from'](_0x548c30);const _0xc15489=_0x496a3e['findIndex'](_0x28b45d=>'listItem'!=_0x28b45d['name']);return _0xc15489>-0x1&&(_0x496a3e=_0x496a3e['slice'](0x0,_0xc15489)),_0x496a3e;}(_0x3a79f6['model']['document']['selection']['getSelectedBlocks']()),_0x4a7bbd=_0x3a79f6['model']['createRange'](_0x3a79f6['model']['createPositionAt'](_0x218e15[0x0],'before'),_0x3a79f6['model']['createPositionAt'](_0x218e15[_0x218e15['length']-0x1],'end'));_0x3a79f6['model']['change'](()=>{_0x41e309['markBlockFormat'](_0x4a7bbd,{'commandName':_0x4a4480,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3e95a8){const _0x35d469=new Set();for(const _0x23fcc2 of _0x3e95a8){let _0x40e5bc=_0x23fcc2['nextSibling'];for(;_0x40e5bc&&_0x40e5bc['getAttribute']('listIndent')>_0x23fcc2['getAttribute']('listIndent');)_0x35d469['add'](_0x40e5bc),_0x40e5bc=_0x40e5bc['nextSibling'];}return Array['from'](_0x35d469);}(_0x218e15));});};}_0x41e309['enableCommand']('numberedList',_0x2a8984('numberedList')),_0x41e309['enableCommand']('bulletedList',_0x2a8984('bulletedList')),_0x3e8cd0&&_0x41e309['enableCommand']('todoList',_0x2a8984('todoList')),_0x41e309['enableCommand']('indentList',_0x18beae('indentList')),_0x41e309['enableCommand']('outdentList',_0x18beae('outdentList')),_0x3e8cd0&&_0x41e309['enableCommand']('checkTodoList',()=>{const _0x5f0ebb=_0x3a79f6['commands']['get']('checkTodoList'),_0x103f0d=Array['from'](_0x5f0ebb['_selectedElements']);_0x103f0d['filter'](_0x2593f9=>_0x2593f9['getAttribute']('todoListChecked')!=_0x5f0ebb['value']),_0x3a79f6['model']['change'](()=>{for(const _0x1d40c4 of _0x103f0d)_0x41e309['markBlockFormat'](_0x1d40c4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5f0ebb['value']}]});});}),_0x41e309['descriptionFactory']['registerElementLabel']('listItem',_0x154525=>o(_0x5787fe,'ELEMENT_LIST_ITEM',_0x154525)),_0x41e309['descriptionFactory']['registerDescriptionCallback'](_0x5304b2=>{if('formatBlock'!=_0x5304b2['type']&&'formatInline'!=_0x5304b2['type'])return;const {data:_0x38bb9c}=_0x5304b2;if(_0x38bb9c){if('numberedList'==_0x38bb9c['commandName']||'bulletedList'==_0x38bb9c['commandName']||'todoList'==_0x38bb9c['commandName'])switch(_0x38bb9c['commandName']['replace']('List','')){case'bulleted':return _0x28091e(o(_0x5787fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x28091e(o(_0x5787fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x28091e(o(_0x5787fe,'ELEMENT_TODO_LIST'));}if('indentList'==_0x38bb9c['commandName'])return{'type':'format','content':o(_0x5787fe,'*Indent:*\x20%0',o(_0x5787fe,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x38bb9c['commandName'])return{'type':'format','content':o(_0x5787fe,'*Outdent:*\x20%0',o(_0x5787fe,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x38bb9c['commandName'])return _0x38bb9c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5787fe,'*Check\x20item*')}:{'type':'format','content':o(_0x5787fe,'*Uncheck\x20item*')};}function _0x28091e(_0xd7bf6f){return{'type':'format','content':o(_0x5787fe,'*Change\x20to:*\x20%0',_0xd7bf6f)};}});}}function Le(_0x3d2c46){const _0x118ee7=_0x3d2c46['getAttribute']('listIndent');if(0x0==_0x118ee7)return _0x3d2c46;let _0x3da39e=_0x3d2c46;for(;_0x3d2c46['previousSibling']&&_0x3d2c46['previousSibling']['is']('element','listItem');){const _0x298180=_0x3d2c46['previousSibling']['getAttribute']('listIndent');if(_0x298180==_0x118ee7)_0x3da39e=_0x3d2c46['previousSibling'];else{if(_0x298180<_0x118ee7)break;}_0x3d2c46=_0x3d2c46['previousSibling'];}return _0x3da39e;}function Ee(_0xd71a95){const _0x5e8ee9=[];if(_0xd71a95['is']('element','listItem')&&_0xd71a95['getAttribute']('listIndent')>0x0){let _0x200128=_0xd71a95['nextSibling'];for(;_0x200128&&'listItem'==_0x200128['name']&&_0x200128['getAttribute']('listIndent')==_0xd71a95['getAttribute']('listIndent');)_0x5e8ee9['push'](_0x200128),_0x200128=_0x200128['nextSibling'];}return _0x5e8ee9;}class ht extends _0x5b0fc1{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x49822d=this['editor']['config']['get']('list.properties'),_0x187951=this['editor']['plugins']['get']('TrackChangesEditing');_0x49822d['styles']&&_0x187951['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x49822d['reversed']&&_0x187951['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x49822d['startIndex']&&_0x187951['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x187951['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x43dc8a,_0x3ed451={}){const _0x6ba350=this['editor']['plugins']['get']('TrackChangesEditing'),_0x410820=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x6ba350['markMultiRangeBlockFormat'](_0x410820,{'commandName':'listStyle','commandParams':[{'type':_0x3ed451['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4b06bb,_0x1744df={}){const _0x4ad59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x204c17=this['_getSuggestionBlocks'](_0x435f7c=>_0x435f7c['is']('element','listItem')&&'numbered'===_0x435f7c['getAttribute']('listType'));if(_0x204c17['length']<0x1)return;const _0x2576ec=_0x204c17['map'](_0x29ee33=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29ee33,'before'),this['editor']['model']['createPositionAt'](_0x29ee33,0x0)));this['editor']['model']['change'](()=>{_0x4ad59['markMultiRangeBlockFormat'](_0x2576ec,{'commandName':'listReversed','commandParams':[{'reversed':_0x1744df['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xb4a43,_0x1e98b4={}){const _0x1f5b2f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35fe77=this['_getSuggestionBlocks'](_0x354082=>_0x354082['is']('element','listItem')&&'numbered'===_0x354082['getAttribute']('listType'));if(_0x35fe77['length']<0x1)return;const _0x4afb0c=_0x35fe77['map'](_0x4c275c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c275c,'before'),this['editor']['model']['createPositionAt'](_0x4c275c,0x0)));this['editor']['model']['change'](()=>{_0x1f5b2f['markMultiRangeBlockFormat'](_0x4afb0c,{'commandName':'listStart','commandParams':[{'startIndex':_0x1e98b4['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4acfdb){if('formatBlock'!=_0x4acfdb['type']&&'formatInline'!=_0x4acfdb['type'])return;const _0x53952b=this['editor']['locale'],{data:_0x1cd73a}=_0x4acfdb;if(!_0x1cd73a)return;let _0x42080e,_0x31357f;switch(_0x1cd73a['commandName']){case'listStyle':_0x42080e='*Change\x20to:*\x20%0',_0x31357f={'type':'format','content':o(_0x53952b,_0x42080e,o(_0x53952b,this['_getTranslationKeyForListStyle'](_0x1cd73a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x42080e=_0x1cd73a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x31357f={'type':'format','content':o(_0x53952b,_0x42080e)};break;case'listStart':_0x42080e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x31357f={'type':'format','content':o(_0x53952b,_0x42080e,_0x1cd73a['commandParams'][0x0]['startIndex'])};}return _0x31357f;}['_getSuggestionBlocksForListStyle'](){const _0x25795e=this['editor']['plugins']['get']('LegacyListUtils');let _0x4a64cb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4a64cb[0x0]?.['is']('element','listItem')&&_0x4a64cb['unshift'](..._0x25795e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4a64cb[_0x4a64cb['length']-0x1]?.['is']('element','listItem')&&_0x4a64cb['push'](..._0x25795e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4a64cb=[...new Set(_0x4a64cb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4a64cb=_0x4a64cb['filter'](_0x322d9f=>_0x322d9f['is']('element','listItem'))),_0x4a64cb;}['_getSuggestionBlocks'](_0x3ba355){const _0x2fea4b=this['editor']['plugins']['get']('LegacyListUtils');let _0x329a29=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3ba355)['map'](_0x56d50a=>{const _0x50b023=this['editor']['model']['createPositionAt'](_0x56d50a,0x0);return[..._0x2fea4b['getSiblingNodes'](_0x50b023,'backward'),..._0x2fea4b['getSiblingNodes'](_0x50b023,'forward')];})['flat']();return _0x329a29=[...new Set(_0x329a29)],_0x329a29;}['_getTranslationKeyForListStyle'](_0x3cd3cb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3cd3cb)||'default')['toUpperCase']()+'_LIST_'+_0x3cd3cb['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x5b0fc1{['afterInit'](){const _0xaf350b=this['editor'];if(!_0xaf350b['plugins']['has']('MediaEmbedEditing'))return;const _0x596439=_0xaf350b['plugins']['get']('TrackChangesEditing'),_0x3f060a=_0xaf350b['locale'];_0x596439['enableCommand']('mediaEmbed'),_0x596439['descriptionFactory']['registerElementLabel']('media',_0x4b9d47=>o(_0x3f060a,'ELEMENT_MEDIA',_0x4b9d47)),_0xaf350b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3d7683,{writer:_0x2d74e4,options:_0x1a7c1d})=>{if(_0x1a7c1d['showSuggestionHighlights'])return _0x2d74e4['createEmptyElement']('div');},'converterPriority':'high'}),_0xaf350b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x281d61,_0x32cd8c,_0x4558b1)=>{_0x4558b1['options']['showSuggestionHighlights']&&_0x281d61['stop']();},{'priority':'high'});}}class lt extends _0x5b0fc1{['afterInit'](){const _0x170370=this['editor'];_0x170370['plugins']['has']('MentionEditing')&&_0x170370['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x5b0fc1{['afterInit'](){const _0x513cd2=this['editor'];if(!_0x513cd2['plugins']['has']('MergeFieldsEditing'))return;const _0x387c77=_0x513cd2['plugins']['get']('TrackChangesEditing'),_0x2a26ce=_0x513cd2['locale'];_0x387c77['enableCommand']('insertMergeField'),_0x387c77['enableCommand']('insertMergeFieldBlock'),_0x387c77['enableCommand']('insertMergeFieldImage'),_0x387c77['descriptionFactory']['registerElementLabel']('mergeField',_0xc785e3=>o(_0x2a26ce,'ELEMENT_MERGE_FIELD',_0xc785e3)),_0x387c77['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5cc5d4=>o(_0x2a26ce,'ELEMENT_MERGE_FIELD',_0x5cc5d4)),_0x387c77['descriptionFactory']['registerDescriptionCallback'](_0x20ffce=>{if('insertion'!=_0x20ffce['type']&&'deletion'!=_0x20ffce['type'])return;const _0xdb8853=_0x20ffce['getContainedElement']();if(null==_0xdb8853)return;const _0x22b264=_0x513cd2['plugins']['get']('MergeFieldsEditing');let _0x276ad0;switch(_0x22b264['getMergeFieldType'](_0xdb8853)){case null:return;case'image':{const _0x5c6f40=_0x22b264['unwrapAffixes'](_0xdb8853['getAttribute']('src'));_0x276ad0=_0x22b264['getLabel'](_0x5c6f40)||_0x5c6f40;break;}default:{const _0x5b7d56=_0xdb8853['getAttribute']('id');_0x276ad0=_0x22b264['getLabel'](_0x5b7d56)||_0x5b7d56;break;}}return'insertion'==_0x20ffce['type']?{'type':'insertion','content':o(_0x2a26ce,'*Insert:*\x20%0','\x22'+_0x276ad0+'\x22\x20'+o(_0x2a26ce,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2a26ce,'*Remove:*\x20%0','\x22'+_0x276ad0+'\x22\x20'+o(_0x2a26ce,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x5b0fc1{['afterInit'](){const _0x1522ed=this['editor'],_0x562526=_0x1522ed['plugins']['get']('TrackChangesEditing');_0x1522ed['plugins']['has']('MultiLevelList')&&(_0x562526['enableDefaultAttributesIntegration']('multiLevelList'),_0x562526['registerBlockAttribute']('listMarkerStyle'),_0x562526['descriptionFactory']['registerDescriptionCallback'](_0xa9df71=>this['handleDescriptions'](_0xa9df71)));}['handleDescriptions'](_0x3f5db9){const _0x43bed2=this['editor']['locale'],{data:_0x3f28e1}=_0x3f5db9,_0x3d5d32={'type':'format','content':''};if(_0x3f28e1&&'listMarkerStyle'==_0x3f28e1['key']){if(!_0x3f28e1['oldValue'])return{'type':'format','content':o(_0x43bed2,'*Set\x20format:*\x20%0',o(_0x43bed2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f28e1['newValue']+')'};if(!_0x3f28e1['newValue']){let _0x23c556=_0x3f5db9['head'];for(;_0x23c556;){if(_0x23c556['data']&&'listType'==_0x23c556['data']['key']&&_0x23c556['data']['newValue'])return _0x3d5d32;_0x23c556=_0x23c556['next'];}return{'type':'format','content':o(_0x43bed2,'*Remove\x20format:*\x20%0',o(_0x43bed2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f28e1['oldValue']+')'};}}}}class pt extends _0x5b0fc1{['afterInit'](){const _0x5d70c9=this['editor'];if(!_0x5d70c9['plugins']['has']('PageBreakEditing'))return;_0x5d70c9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x45ee98=_0x5d70c9['plugins']['get']('TrackChangesEditing'),_0x4bbdc5=_0x5d70c9['locale'];_0x45ee98['descriptionFactory']['registerElementLabel']('pageBreak',_0x3fb1b3=>o(_0x4bbdc5,'ELEMENT_PAGE_BREAK',_0x3fb1b3));}}class kt extends _0x5b0fc1{['afterInit'](){const _0x2ba95e=this['editor'];if(!_0x2ba95e['plugins']['has']('Paragraph'))return;const _0x2e6516=_0x2ba95e['locale'],_0x2849af=_0x2ba95e['plugins']['get']('TrackChangesEditing');_0x2849af['descriptionFactory']['registerElementLabel']('paragraph',_0x2c8473=>o(_0x2e6516,'ELEMENT_PARAGRAPH',_0x2c8473)),_0x2849af['enableDefaultAttributesIntegration']('paragraph'),_0x2849af['enableCommand']('insertParagraph'),_0x2ba95e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2ba95e),{'priority':'highest'}),_0x2ba95e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1c0d18,_0x39b2f2,_0x205c7b)=>{_0x205c7b['options']['showSuggestionHighlights']&&nr(_0x2ba95e,{'showActiveMarker':!0x1})(_0x1c0d18,_0x39b2f2,_0x205c7b);},{'priority':'highest'});const _0x54bb62=_0x2849af['descriptionFactory'];_0x54bb62['registerDescriptionCallback'](_0x5e7df3=>{if('insertion'!==_0x5e7df3['type'])return;const {start:_0x10119b,end:_0x336d1d}=_0x5e7df3['getFirstRange']();if(!_0x10119b['isTouching'](_0x336d1d)||!_0x10119b['nodeAfter'])return;const _0x23bfd9=_0x2ba95e['model']['schema'],_0x9e1065=_0x10119b['nodeAfter'];return _0x23bfd9['isBlock'](_0x9e1065)&&!_0x23bfd9['isLimit'](_0x9e1065)&&_0x23bfd9['checkChild'](_0x9e1065,'$text')?{'type':'insertion','content':o(_0x2e6516,'*Insert:*\x20%0',_0x54bb62['getItemLabel'](_0x9e1065,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x271780=this['editor'],_0x975d71=_0x271780['locale'];_0x271780['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7214bb=>{if('formatBlock'!=_0x7214bb['type'])return;const {data:_0x14a782}=_0x7214bb;return _0x14a782&&'paragraph'==_0x14a782['commandName']?{'type':'format','content':o(_0x975d71,'*Change\x20to:*\x20%0',o(_0x975d71,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2681fb,{showActiveMarker:_0x5afb04=!0x0}={}){return(_0x59ba10,_0x46aeec,_0x501079)=>{const _0x3c04bd=_0x2681fb['plugins']['get']('TrackChangesEditing'),_0x49af21=_0x46aeec['markerRange']['start'],_0x52078e=_0x46aeec['markerRange']['end'],_0x283922=_0x2681fb['model']['schema'];if(!_0x49af21['isTouching'](_0x52078e)||!_0x49af21['nodeAfter'])return;const _0x5bee92=_0x49af21['nodeAfter'];if(_0x283922['isBlock'](_0x5bee92)&&!_0x283922['isLimit'](_0x5bee92)&&_0x283922['checkChild'](_0x5bee92,'$text')){if(!_0x501079['consumable']['consume'](_0x46aeec['markerRange'],_0x59ba10['name']))return;const {id:_0x35e31f,authorId:_0x489138}=_0x3c04bd['_splitMarkerName'](_0x46aeec['markerName']),_0x4410f9=_0x501079['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x35e31f,'data-author-id':_0x489138}),_0x13d80b=_0x501079['mapper']['toViewPosition'](_0x52078e);_0x5afb04&&_0x3c04bd['activeMarkers']['includes'](_0x46aeec['markerName'])&&_0x501079['writer']['addClass']('ck-suggestion-marker--active',_0x4410f9),_0x501079['writer']['insert'](_0x13d80b,_0x4410f9),_0x501079['mapper']['bindElementToMarker'](_0x4410f9,_0x46aeec['markerName']);}};}class wt extends _0x5b0fc1{['afterInit'](){const _0x5999f5=this['editor'];_0x5999f5['commands']['get']('replaceSource')&&_0x5999f5['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x5b0fc1{['afterInit'](){const _0x2cb8e9=this['editor'];if(!_0x2cb8e9['plugins']['has']('RemoveFormatEditing'))return;_0x2cb8e9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf66b91=this['editor'];_0xf66b91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b76ee=>{if('formatBlock'!=_0x5b76ee['type']&&'formatInline'!=_0x5b76ee['type'])return;const {data:_0x575c36}=_0x5b76ee;return _0x575c36&&'removeFormat'==_0x575c36['commandName']?{'type':'format','content':o(_0xf66b91['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x5b0fc1{['afterInit'](){const _0x30cdac=this['editor'];if(!_0x30cdac['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x474c1d=_0x30cdac['plugins']['get']('TrackChangesEditing');_0x474c1d['enableCommand']('goToPreviousRestrictedEditingException'),_0x474c1d['enableCommand']('goToNextRestrictedEditingException');const _0x27ef2c=_0x30cdac['plugins']['get']('RestrictedEditingModeEditing');_0x27ef2c['enableCommand']('trackChanges'),_0x27ef2c['enableCommand']('acceptSuggestion'),_0x27ef2c['enableCommand']('discardSuggestion'),_0x27ef2c['enableCommand']('acceptAllSuggestions'),_0x27ef2c['enableCommand']('discardAllSuggestions'),_0x27ef2c['enableCommand']('acceptSelectedSuggestions'),_0x27ef2c['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x5b0fc1{['afterInit'](){const _0x57a4d1=this['editor'];if(!_0x57a4d1['plugins']['has']('ShiftEnter'))return;const _0x38597e=_0x57a4d1['plugins']['get']('TrackChangesEditing');_0x38597e['enableCommand']('shiftEnter'),_0x57a4d1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x57a4d1),{'priority':'high'}),_0x57a4d1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x57a4d1),{'priority':'high'}),_0x57a4d1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f0d27,_0x42cebf,_0x366de3)=>{_0x366de3['options']['showSuggestionHighlights']&&je(_0x57a4d1,{'showActiveMarker':!0x1})(_0x2f0d27,_0x42cebf,_0x366de3);}),_0x38597e['descriptionFactory']['registerElementLabel']('softBreak',_0x2274bd=>o(_0x57a4d1['locale'],'ELEMENT_LINE_BREAK',_0x2274bd));}}function je(_0x3d326a,{showActiveMarker:_0x3aa13b=!0x0}={}){return(_0x3e803c,_0x5743b9,_0xfb4039)=>{const _0x5ddbd8=_0x3d326a['plugins']['get']('TrackChangesEditing');if(!_0xfb4039['consumable']['test'](_0x5743b9['markerRange'],_0x3e803c['name']))return;const _0x3fddcc=_0x3d326a['model'];for(const _0x198f6b of _0x5743b9['markerRange']['getItems']()){if(!_0x198f6b['is']('element','softBreak'))continue;const _0x399903='deletion'==_0x5743b9['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2d7cfd,authorId:_0x56cd49}=_0x5ddbd8['_splitMarkerName'](_0x5743b9['markerName']),_0x4b849e=_0xfb4039['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x399903,'data-suggestion':_0x2d7cfd,'data-author-id':_0x56cd49}),_0x5e7950=_0xfb4039['mapper']['toViewPosition'](_0x3fddcc['createPositionBefore'](_0x198f6b));_0x3aa13b&&_0x5ddbd8['activeMarkers']['includes'](_0x5743b9['markerName'])&&_0xfb4039['writer']['addClass']('ck-suggestion-marker--active',_0x4b849e),_0xfb4039['writer']['insert'](_0x5e7950,_0x4b849e),_0xfb4039['mapper']['bindElementToMarker'](_0x4b849e,_0x5743b9['markerName']);}};}class St extends _0x5b0fc1{['afterInit'](){const _0x1255af=this['editor'],_0x308caa=_0x1255af['model'],_0x2f46c3=_0x1255af['locale'];if(!_0x1255af['plugins']['has']('StandardEditingModeEditing'))return;const _0x3a92c4=_0x1255af['plugins']['get']('TrackChangesEditing'),_0x94f6a0='restrictedEditingException',_0x2dbfc7=_0x1255af['commands']['get'](_0x94f6a0);_0x3a92c4['enableCommand'](_0x94f6a0,(_0x49a7f0,_0x5f3d11={})=>{const _0x302412=_0x308caa['document']['selection'];if(_0x302412['isCollapsed'])return void _0x49a7f0(_0x5f3d11);const _0x417d8f=void 0x0!==_0x5f3d11['forceValue']?_0x5f3d11['forceValue']:!_0x2dbfc7['value'];_0x308caa['change'](()=>{const _0x3e1c5f=Array['from'](_0x302412['getRanges']());for(const _0x1e81f8 of _0x3e1c5f){const _0x3da533=_0x417d8f?[_0x1e81f8]:io(_0x94f6a0,_0x1e81f8,_0x308caa);for(const _0x16d72e of _0x3da533)_0x3a92c4['markInlineFormat'](_0x16d72e,{'commandName':_0x94f6a0,'commandParams':[{'forceValue':_0x417d8f}]});}});}),_0x3a92c4['descriptionFactory']['registerDescriptionCallback'](_0x540770=>{if('formatBlock'!=_0x540770['type']&&'formatInline'!=_0x540770['type'])return;const {data:_0x5433d1}=_0x540770;return _0x5433d1&&_0x5433d1['commandName']==_0x94f6a0?_0x5433d1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f46c3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2f46c3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x5b0fc1{['afterInit'](){const _0x1e19e1=this['editor'];if(!_0x1e19e1['plugins']['has']('Style')||!_0x1e19e1['plugins']['has']('DataSchema'))return;const _0x34a141=_0x1e19e1['plugins']['get']('TrackChangesEditing'),_0x455ea3=_0x1e19e1['locale'],_0x4e7743=_0x1e19e1['config']['get']('style')||{},_0x212ba9=_0x1e19e1['plugins']['get']('GeneralHtmlSupport'),_0x3e21fd=_0x1e19e1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1e19e1['plugins']['get']('DataSchema'),_0x4e7743['definitions']);_0x34a141['enableDefaultAttributesIntegration']('style');const _0x2b5ebc=new Set();for(const _0x280ff8 of _0x3e21fd['block']){const _0x317c2a=_0x212ba9['getGhsAttributeNameForElement'](_0x280ff8['element']);_0x2b5ebc['add'](_0x317c2a);}const _0x2c9d19=new Set();for(const _0xd3db5b of _0x3e21fd['inline']){const _0x4e5748=_0x212ba9['getGhsAttributeNameForElement'](_0xd3db5b['element']);_0x2c9d19['add'](_0x4e5748);for(const _0x3e86c3 of _0xd3db5b['ghsAttributes'])_0x2c9d19['add'](_0x3e86c3);}for(const _0x929de2 of _0x2b5ebc)_0x34a141['registerBlockAttribute'](_0x929de2),_0x34a141['descriptionFactory']['registerAttributeLabel'](_0x929de2,o(_0x455ea3,'FORMAT_STYLE'));for(const _0x29f325 of _0x2c9d19)_0x34a141['registerInlineAttribute'](_0x29f325),_0x34a141['descriptionFactory']['registerAttributeLabel'](_0x29f325,o(_0x455ea3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54f796=this['editor'],_0x4f464c=_0x54f796['locale'];_0x54f796['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32b26f=>{if('formatBlock'!=_0x32b26f['type']&&'formatInline'!=_0x32b26f['type'])return;const {data:_0x9d7c9c}=_0x32b26f;return _0x9d7c9c&&'style'===_0x9d7c9c['commandName']?_0x9d7c9c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f464c,'*Set\x20format:*\x20%0',_0x9d7c9c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4f464c,'*Remove\x20format:*\x20%0',_0x9d7c9c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x5b0fc1{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1f366d){super(_0x1f366d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x51d4d8=this['editor'],_0x42f8d9=_0x51d4d8['model']['document']['selection'];if(!_0x51d4d8['plugins']['has']('TableEditing'))return;const _0x435c89=_0x51d4d8['locale'],_0x5ebaa8=_0x51d4d8['plugins']['get']('TrackChangesEditing'),_0x32716e=_0x51d4d8['plugins']['get']('TableUtils');_0x5ebaa8['descriptionFactory']['registerElementLabel']('table',_0x689cf9=>o(_0x435c89,'ELEMENT_TABLE',_0x689cf9)),this['_setupColumnsRowsFixing'](),_0x5ebaa8['enableCommand']('insertTable'),_0x5ebaa8['enableCommand']('selectTableRow'),_0x5ebaa8['enableCommand']('selectTableColumn');for(const _0x21502b of['insertTableRowAbove','insertTableRowBelow']){const _0x2ca1c4=_0x51d4d8['commands']['get'](_0x21502b);_0x5ebaa8['enableCommand'](_0x21502b,_0x16e103=>{_0x51d4d8['model']['change'](_0x1e696e=>{_0x16e103();const _0x5cb05a='above'===_0x2ca1c4['order'],_0x419162=_0x32716e['getSelectionAffectedTableCells'](_0x42f8d9),_0xae4c92=_0x32716e['getRowIndexes'](_0x419162),_0x31224c=_0x5cb05a?_0xae4c92['first']-0x1:_0xae4c92['last']+0x1,_0x29a51d=_0x419162[0x0]['findAncestor']('table'),_0x19dade=_0x32716e['createTableWalker'](_0x29a51d,{'startRow':_0x31224c,'endRow':_0x31224c}),_0x5bcb76=Array['from'](_0x19dade)['map'](_0x24e25b=>_0x1e696e['createRangeOn'](_0x24e25b['cell']));_0x5ebaa8['markMultiRangeInsertion'](_0x5bcb76,'tableRow');});});}for(const _0x1d4b66 of['insertTableColumnLeft','insertTableColumnRight']){const _0xe934d1=_0x51d4d8['commands']['get'](_0x1d4b66);_0x5ebaa8['enableCommand'](_0x1d4b66,_0x4ed5d3=>{_0x51d4d8['model']['change'](_0x2e7302=>{_0x4ed5d3();const _0x1ee6d5='left'===_0xe934d1['order'],_0x15740c=_0x32716e['getSelectionAffectedTableCells'](_0x42f8d9),_0x36e429=_0x32716e['getColumnIndexes'](_0x15740c),_0x480d71=_0x1ee6d5?_0x36e429['first']-0x1:_0x36e429['last']+0x1,_0x4b4bb0=_0x15740c[0x0]['findAncestor']('table'),_0x3fcac7=_0x32716e['createTableWalker'](_0x4b4bb0,{'startRow':0x0,'column':_0x480d71,'includeAllSlots':!0x1}),_0x21b7e2=Array['from'](_0x3fcac7)['map'](_0x241eb4=>_0x2e7302['createRangeOn'](_0x241eb4['cell']));_0x5ebaa8['markMultiRangeInsertion'](_0x21b7e2,'tableColumn');});});}for(const _0x235d7f of['removeTableRow','removeTableColumn']){const _0x1595dd=_0x235d7f['substr'](0xb),_0x9abbc8=_0x1595dd['toLowerCase'](),_0xc697b=_0x9abbc8['substr'](0x0,0x3)+'span',_0x57e98b='table'+_0x1595dd,_0x867f25='min'+_0x1595dd,_0x110fc8='max'+_0x1595dd;_0x5ebaa8['enableCommand'](_0x235d7f,()=>{_0x51d4d8['model']['change'](_0x558c11=>{const _0x4377fc=_0x32716e['getSelectionAffectedTableCells'](_0x42f8d9),_0x1644ff=_0x4377fc[0x0]['findAncestor']('table');let _0x104c3c;if('removeTableRow'==_0x235d7f){const _0x356cfa=_0x32716e['getRowIndexes'](_0x4377fc);_0x104c3c={'startRow':_0x356cfa['first'],'endRow':_0x356cfa['last'],'includeAllSlots':!0x0};}else{const _0x18a656=_0x32716e['getColumnIndexes'](_0x4377fc);_0x104c3c={'startColumn':_0x18a656['first'],'endColumn':_0x18a656['last'],'includeAllSlots':!0x0};}const _0x5df784=_0x32716e['createTableWalker'](_0x1644ff,_0x104c3c),_0x42e0d3=Array['from'](_0x5df784)['map'](({cell:_0x535983})=>_0x535983),_0x9ae96c=Ne(_0x42e0d3['filter'](_0xd8a1e0=>_0xd8a1e0['hasAttribute'](_0xc697b))),_0x51dfc5=Ne(_0x42e0d3['filter'](_0x52343c=>!_0x52343c['hasAttribute'](_0xc697b)))['map'](_0x355859=>_0x558c11['createRangeOn'](_0x355859)),_0x4bed94=_0x5ebaa8['markMultiRangeDeletion'](_0x51dfc5,_0x57e98b);if(_0x4bed94&&('tableRow'==_0x4bed94['subType']||'tableColumn'==_0x4bed94['subType'])){const _0x511431=this['_getSuggestionCoords'](_0x4bed94);for(const _0x1604b8 of _0x9ae96c){const _0x19b4d4=_0x558c11['createRangeOn'](_0x1604b8),_0x193514=_0x32716e['getCellLocation'](_0x1604b8),_0x2ac4f5=_0x1604b8['getAttribute'](_0xc697b)-0x1,_0x9f161f=_0x511431[_0x867f25],_0x34a22f=_0x511431[_0x110fc8];_0x9f161f<=_0x193514[_0x9abbc8]&&_0x193514[_0x9abbc8]+_0x2ac4f5<=_0x34a22f&&_0x4bed94['addRange'](_0x19b4d4);}}});});}function _0x2c25f2(_0x159e53){const _0x41518e=Array['from'](_0x42f8d9['getRanges']())['map'](_0x4b62f5=>_0xb0dd32['fromRange'](_0x4b62f5));_0x51d4d8['model']['change'](_0x36ec71=>{const _0x39dbd3=_0x36ec71['batch'];_0x159e53=_0x159e53['filter'](_0x52315c=>'$graveyard'!=_0x52315c['root']['rootName']),_0x36ec71['setSelection'](_0x159e53),_0x51d4d8['commands']['get']('removeTableRow')['refresh'](),_0x51d4d8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x51d4d8['model']['enqueueChange'](()=>{_0x51d4d8['model']['enqueueChange'](_0x39dbd3,_0x10cdc1=>{const _0x126c8e=_0x41518e['filter'](_0x3ebf2a=>'$graveyard'!=_0x3ebf2a['root']['rootName']);_0x126c8e['length']>0x0&&_0x10cdc1['setSelection'](_0x126c8e);for(const _0x1eae8c of _0x41518e)_0x1eae8c['detach']();});});});}function _0x26982b(_0x35ae76){_0x51d4d8['model']['change'](_0x429603=>{const _0xbc29dc=Array['from'](_0x42f8d9['getRanges']())['map'](_0x5062d9=>_0xb0dd32['fromRange'](_0x5062d9)),_0x43dda8=[];for(const _0x33d54a of _0x35ae76)for(const _0x5034b5 of _0x33d54a['getItems']({'shallow':!0x0}))_0x43dda8['push'](_0x5034b5);for(const _0x4398d9 of _0x43dda8)'$graveyard'!=_0x4398d9['root']['rootName']&&(_0x429603['setSelection'](_0x429603['createPositionAt'](_0x4398d9,0x0)),_0x51d4d8['commands']['get']('removeTableColumn')['refresh'](),_0x51d4d8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x41409b=_0xbc29dc['filter'](_0x5940ab=>'$graveyard'!=_0x5940ab['root']['rootName']);_0x41409b['length']>0x0&&_0x429603['setSelection'](_0x41409b);for(const _0x813ed4 of _0xbc29dc)_0x813ed4['detach']();});}function _0x1b2f11(_0x26d311,_0x3e73b3){return _0x3e73b3['every'](_0x1bbeaf=>_0x26d311['some'](_0x298620=>_0x298620['end']['isEqual'](_0x1bbeaf['start'])||_0x1bbeaf['end']['isEqual'](_0x298620['start'])));}function _0x2f3589(_0x226c19,_0x228576){return!_0x226c19['some'](_0x3eff9d=>_0x228576['some'](_0x109938=>_0x3eff9d['isIntersecting'](_0x109938)))&&_0x226c19['some'](_0x483f48=>_0x228576['some'](_0x325ed4=>_0x483f48['end']['isTouching'](_0x325ed4['start'])));}_0x51d4d8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a327c,_0x2be6d0,_0x356869)=>{if(!_0x356869['options']['showSuggestionHighlights'])return;const _0x532e88=_0x2be6d0['item'];if(!_0x532e88||!_0x532e88['is']('element','tableCell'))return;const _0x5a4c7b=_0x356869['mapper']['toViewElement'](_0x532e88);if(_0x5a4c7b){const {id:_0x1c74d3,authorId:_0xf5f5c}=_0x5ebaa8['_splitMarkerName'](_0x2be6d0['markerName']);_0x5b7cda(_0x5a4c7b,_0x356869['writer'],(_0x459bd9,_0x505891,_0x4e0479)=>{_0x4e0479['addClass'](_0x551839(_0x505891['classes']),_0x459bd9),_0x4e0479['setAttribute']('data-suggestion-id',_0x1c74d3,_0x459bd9),_0x4e0479['setAttribute']('data-author-id',_0xf5f5c,_0x459bd9);},(_0x2aefe8,_0x3cb124,_0x3988fd)=>{_0x3988fd['removeClass'](_0x551839(_0x3cb124['classes']),_0x2aefe8),_0x3988fd['removeAttribute']('data-suggestion-id',_0x2aefe8),_0x3988fd['removeAttribute']('data-author-id',_0x2aefe8);});}},{'priority':'highest'}),_0x5ebaa8['descriptionFactory']['registerDescriptionCallback'](_0x4795f5=>{if('insertion'!=_0x4795f5['type']&&'deletion'!=_0x4795f5['type'])return;const _0x295341=_0x4795f5['getContainedElement']();if(null!=_0x295341&&_0x295341['is']('element','table')){if('insertion'==_0x4795f5['type']){const _0x144f88=_0x4795f5['getItems']()['filter'](_0xd5f91a=>_0xd5f91a['is']('$textProxy'))['map'](_0x2156b4=>_0x2156b4['data']);if(_0x144f88['length'])return{'type':'insertion','content':o(_0x435c89,'*Insert:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x144f88['join']('\x20')+'\x22'))};}if('deletion'==_0x4795f5['type']){const _0x5f4340=_0x4795f5['getItems']()['filter'](_0x2b39bd=>_0x2b39bd['is']('$textProxy'))['map'](_0x4b0eb5=>_0x4b0eb5['data']);if(_0x5f4340['length'])return{'type':'deletion','content':o(_0x435c89,'*Remove:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5f4340['join']('\x20')+'\x22'))};}}}),_0x5ebaa8['descriptionFactory']['registerDescriptionCallback'](_0x27e8ef=>{if('tableRow'==_0x27e8ef['subType']){const _0x17b8a1=_0x27e8ef['getItems']()['filter'](_0x302bbb=>_0x302bbb['is']('$textProxy'))['map'](_0x23b5c6=>_0x23b5c6['data']),_0x31fe1f=this['_getSuggestionCoords'](_0x27e8ef),_0x594886=_0x31fe1f['maxRow']-_0x31fe1f['minRow']+0x1;if('insertion'==_0x27e8ef['type'])return _0x17b8a1['length']?{'type':'insertion','content':o(_0x435c89,'*Insert:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x594886,'\x22'+_0x17b8a1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x435c89,'*Insert:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_ROW',_0x594886))};if('deletion'==_0x27e8ef['type'])return _0x17b8a1['length']?{'type':'deletion','content':o(_0x435c89,'*Remove:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x594886,'\x22'+_0x17b8a1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x435c89,'*Remove:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_ROW',_0x594886))};}if('tableColumn'==_0x27e8ef['subType']){const _0x5ff1e1=_0x27e8ef['getItems']()['filter'](_0x23c981=>_0x23c981['is']('$textProxy'))['map'](_0x32592d=>_0x32592d['data']),_0x5e044c=this['_getSuggestionCoords'](_0x27e8ef),_0x1b9505=_0x5e044c['maxColumn']-_0x5e044c['minColumn']+0x1;if('insertion'==_0x27e8ef['type'])return _0x5ff1e1['length']?{'type':'insertion','content':o(_0x435c89,'*Insert:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b9505,'\x22'+_0x5ff1e1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x435c89,'*Insert:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_COLUMN',_0x1b9505))};if('deletion'==_0x27e8ef['type'])return _0x5ff1e1['length']?{'type':'deletion','content':o(_0x435c89,'*Remove:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b9505,'\x22'+_0x5ff1e1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x435c89,'*Remove:*\x20%0',o(_0x435c89,'ELEMENT_TABLE_COLUMN',_0x1b9505))};}}),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2c25f2),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2c25f2),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x26982b),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x26982b),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1b2f11),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1b2f11),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2f3589),_0x5ebaa8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2f3589);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4531b3=this['editor'],_0x402677=_0x4531b3['model']['document']['selection'];return(_0x562c8f,_0x2af705)=>{_0x4531b3['model']['change'](_0x24c78d=>{const {commandName:_0x54127d,commandParams:_0x18327e}=_0x2af705;let _0x33e8ff=_0x562c8f[0x0]['end']['nodeBefore'];_0x18327e&&_0x18327e[0x0]&&!0x1===_0x18327e[0x0]['forceValue']&&(_0x33e8ff=_0x562c8f[0x0]['start']['nodeAfter']);const _0x2c3fcb=_0x24c78d['createRangeIn'](_0x33e8ff);if('$graveyard'==_0x2c3fcb['root']['rootName'])return;const _0x249abd=Array['from'](_0x402677['getRanges']())['map'](_0x54557f=>_0xb0dd32['fromRange'](_0x54557f));_0x24c78d['setSelection'](_0x2c3fcb),_0x4531b3['commands']['get'](_0x54127d)['refresh'](),_0x18327e['push']({'forceDefaultExecution':!0x0}),_0x4531b3['execute'](_0x54127d,..._0x18327e);const _0xbdb54d=_0x249abd['filter'](_0x29880e=>'$graveyard'!=_0x29880e['root']['rootName']);_0xbdb54d['length']>0x0&&_0x24c78d['setSelection'](_0xbdb54d);for(const _0x3aa1a1 of _0x249abd)_0x3aa1a1['detach']();});};}['_getCoordsForCells'](_0x287a24){const _0x508168=this['editor']['plugins']['get']('TableUtils');let _0x251b39=Number['MAX_SAFE_INTEGER'],_0x1b8bc3=Number['MIN_SAFE_INTEGER'],_0x185140=Number['MAX_SAFE_INTEGER'],_0x60921e=Number['MIN_SAFE_INTEGER'];for(const _0x1d134a of _0x287a24){if('$graveyard'==_0x1d134a['root']['rootName'])continue;const {row:_0x4e24a3,column:_0xbc7f89}=_0x508168['getCellLocation'](_0x1d134a),_0x161322=_0x1d134a['hasAttribute']('rowspan')?_0x1d134a['getAttribute']('rowspan')-0x1:0x0,_0x2fb822=_0x1d134a['hasAttribute']('colspan')?_0x1d134a['getAttribute']('colspan')-0x1:0x0;_0x251b39=_0x4e24a3<_0x251b39?_0x4e24a3:_0x251b39,_0x1b8bc3=_0x4e24a3+_0x161322>_0x1b8bc3?_0x4e24a3+_0x161322:_0x1b8bc3,_0x185140=_0xbc7f89<_0x185140?_0xbc7f89:_0x185140,_0x60921e=_0xbc7f89+_0x2fb822>_0x60921e?_0xbc7f89+_0x2fb822:_0x60921e;}return{'minRow':_0x251b39,'maxRow':_0x1b8bc3,'minColumn':_0x185140,'maxColumn':_0x60921e};}['_setupColumnsRowsFixing'](){const _0x2ab238=this['editor'],_0x2ee752=_0x2ab238['plugins']['get']('TrackChangesEditing'),_0xd61d3b=_0x2ab238['plugins']['get']('TableUtils');_0x2ab238['model']['document']['on']('change:data',()=>{const _0x12a82b=Array['from'](_0x2ab238['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20a879,data:_0x532e08}of _0x12a82b){const {group:_0x135d8b,id:_0x2eb1d1,subType:_0x174487}=_0x2ee752['_splitMarkerName'](_0x20a879);if('suggestion'!=_0x135d8b)continue;if(null!=_0x532e08['oldRange'])continue;const _0x2c26a4=_0x2ee752['getSuggestion'](_0x2eb1d1);this['_tablePostFixingSubtypes']['includes'](_0x174487)&&this['_tableSuggestions']['add'](_0x2c26a4);}},{'priority':'low'});const _0x349200=(_0x6e6f40,_0x15caa3)=>{let _0xa143c2=!0x1;const _0xf08759=_0x15caa3['createRangeOn'](_0x6e6f40),_0x469e91=_0x6e6f40['findAncestor']('table'),_0x27a00e=_0xd61d3b['getCellLocation'](_0x6e6f40);for(const _0x43bc2 of this['_tableSuggestions']){const _0x275d19=_0x43bc2['subType'],_0x3d5b5f=_0x275d19['startsWith']('tablePaste'),_0x196de2=_0x275d19['substr'](_0x3d5b5f?0xa:0x5),_0x5e6668=_0x196de2['toLowerCase'](),_0x822f35=_0x5e6668['substr'](0x0,0x3)+'span',_0x4c26ad='min'+_0x196de2,_0x1a4dc8='max'+_0x196de2;if(!_0x43bc2['isInContent'])continue;if(_0x469e91!=_0x43bc2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x43bc2['isIntersectingWithRange'](_0xf08759))continue;const _0x5008f1=_0x6e6f40['hasAttribute'](_0x822f35)?_0x6e6f40['getAttribute'](_0x822f35)-0x1:0x0,_0x47f68b=this['_getSuggestionCoords'](_0x43bc2),_0x641f4d=_0x47f68b[_0x4c26ad],_0x167b68=_0x47f68b[_0x1a4dc8];_0x641f4d<=_0x27a00e[_0x5e6668]&&_0x27a00e[_0x5e6668]+_0x5008f1<=_0x167b68&&(_0x43bc2['addRange'](_0xf08759),_0xa143c2=!0x0);}return _0xa143c2;};_0x2ab238['model']['document']['registerPostFixer'](_0x546388=>{let _0x3484ef=!0x1;for(const _0x258771 of _0x2ab238['model']['document']['differ']['getChanges']())if('insert'==_0x258771['type']){if('tableRow'==_0x258771['name']){for(const _0x5f5332 of _0x258771['position']['nodeAfter']['getChildren']())_0x3484ef=_0x3484ef||_0x349200(_0x5f5332,_0x546388);}else'tableCell'==_0x258771['name']&&(_0x3484ef=_0x3484ef||_0x349200(_0x258771['position']['nodeAfter'],_0x546388));}return _0x3484ef;});}['_getSuggestionCoords'](_0x35ae45){return this['_getCoordsForCells'](_0x35ae45['getRanges']()['map'](_0x53f3d1=>_0x53f3d1['start']['nodeAfter']));}}function Ne(_0xb1f4ab){return Array['from'](new Set(_0xb1f4ab)['values']());}class _t extends _0x5b0fc1{static get['requires'](){return[At];}['afterInit'](){const _0x152091=this['editor'],_0x448b18=_0x152091['model']['document']['selection'],_0x2dca42=_0x152091['locale'];if(!_0x152091['plugins']['has']('TableEditing'))return;const _0x2b67ae=_0x152091['plugins']['get']('TrackChangesEditing'),_0x2b54a4=_0x152091['plugins']['get']('TableUtils'),_0x15a30a=_0x152091['plugins']['get'](At);_0x15a30a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2b67ae['enableCommand']('mergeTableCells',()=>{const _0x4a0e60=_0x2b54a4['getSelectionAffectedTableCells'](_0x152091['model']['document']['selection']);_0x152091['model']['change'](()=>{_0x2b67ae['markMultiRangeBlockFormat'](_0x4a0e60,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x152091['commands']['get']('mergeTableCells')['on']('execute',(_0x17d57e,_0x48592f)=>{_0x152091['commands']['get']('trackChanges')['value']&&(_0x48592f['length']>0x0&&_0x48592f[_0x48592f['length']-0x1]&&_0x48592f[_0x48592f['length']-0x1]['forceDefaultExecution']||_0x2b67ae['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x17d57e['stop']());},{'priority':'highest'});for(const _0x35f961 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3c4d61=_0x152091['commands']['get'](_0x35f961);_0x2b67ae['enableCommand'](_0x35f961,()=>{const _0x2e27b8=_0x152091['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2aa003=>_0x2aa003['is']('element','tableCell')),_0x41b574=_0x3c4d61['value'];_0x152091['model']['change'](()=>{_0x2b67ae['markMultiRangeBlockFormat']([_0x2e27b8,_0x41b574],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x182323 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x34a060=_0x152091['commands']['get'](_0x182323);_0x2b67ae['enableCommand'](_0x182323,()=>{const _0x79a18f=_0x2b54a4['getSelectionAffectedTableCells'](_0x152091['model']['document']['selection'])[0x0],_0xa542c2=_0x79a18f['findAncestor']('table'),{column:_0x367b97,row:_0xb9a4e6}=_0x2b54a4['getCellLocation'](_0x79a18f);let _0xd3b65c=[];if('horizontally'==_0x34a060['direction']){const _0xec05cc=_0x2b54a4['createTableWalker'](_0xa542c2,{'startRow':_0xb9a4e6,'endRow':_0xb9a4e6,'includeAllSlots':!0x0});_0xd3b65c=Array['from'](_0xec05cc)['map'](_0x1fc030=>_0x1fc030['cell']);}else{const _0x570337=_0x2b54a4['createTableWalker'](_0xa542c2,{'column':_0x367b97,'includeAllSlots':!0x0});_0xd3b65c=Array['from'](_0x570337)['map'](_0x399e82=>_0x399e82['cell']);}_0x152091['model']['change'](_0x19dc29=>{_0x2b67ae['markBlockFormat'](_0x19dc29['createRangeOn'](_0x79a18f),{'commandName':_0x182323,'commandParams':[]},_0xd3b65c,_0x182323);});});}_0x2b67ae['descriptionFactory']['registerDescriptionCallback'](_0x2b74e7=>{if('formatBlock'!=_0x2b74e7['type']&&'formatInline'!=_0x2b74e7['type'])return;const {data:_0x39f284}=_0x2b74e7;return _0x39f284&&'mergeTableCells'==_0x39f284['commandName']?{'type':'format','content':o(_0x2dca42,'*Merge\x20cells*')}:void 0x0;}),_0x2b67ae['descriptionFactory']['registerDescriptionCallback'](_0x280673=>{if('formatBlock'!=_0x280673['type']&&'formatInline'!=_0x280673['type'])return;const {data:_0x95fc5d}=_0x280673;return _0x95fc5d?'splitTableCellVertically'==_0x95fc5d['commandName']?{'type':'format','content':o(_0x2dca42,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x95fc5d['commandName']?{'type':'format','content':o(_0x2dca42,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5bc31b=_0x15a30a['_acceptFormatSuggestionCallbackFactory']();for(const _0x10b0cf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2b67ae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10b0cf,'accept',_0x5bc31b);for(const _0x5e5952 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2b67ae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5e5952,'accept',_0x5bc31b);_0x2b67ae['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1e5ddd=>{_0x152091['model']['change'](_0x3a282f=>{const _0x1c6041=Array['from'](_0x448b18['getRanges']())['map'](_0x8b5e5d=>_0xb0dd32['fromRange'](_0x8b5e5d));_0x3a282f['setSelection'](_0x1e5ddd),_0x152091['commands']['get']('mergeTableCells')['refresh'](),_0x152091['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2494c8=_0x1c6041['filter'](_0x22fccf=>'$graveyard'!=_0x22fccf['root']['rootName']);_0x2494c8['length']>0x0&&_0x3a282f['setSelection'](_0x2494c8);for(const _0x5e6f31 of _0x1c6041)_0x5e6f31['detach']();});});for(const _0xae8881 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5275d9=_0x152091['commands']['get'](_0xae8881);_0x5275d9['on']('set:isEnabled',(_0x320392,_0x2c8b01,_0x43bba9)=>{if(_0x43bba9){const _0x5272ee=_0x152091['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3372cd=>_0x3372cd['is']('element','tableCell'));this['_areMergableCells'](_0x5275d9['value'],_0x5272ee)||(_0x320392['return']=!0x1,_0x320392['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x52a2ad=this['editor']['commands']['get']('mergeTableCells'),_0x6d5b34=this['editor']['plugins']['get']('TableUtils');if(!_0x52a2ad['isEnabled'])return!0x1;const _0x104e16=_0x6d5b34['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4b1d25 of _0x104e16)for(const _0x429c1a of _0x104e16)if(_0x4b1d25!=_0x429c1a&&!this['_areMergableCells'](_0x4b1d25,_0x429c1a))return!0x1;return!0x0;}['_areMergableCells'](_0x2ad201,_0x1bd695){const _0x3333cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4351dd=this['editor']['model']['createRangeOn'](_0x2ad201),_0x496093=this['editor']['model']['createRangeOn'](_0x1bd695),_0x3e4ac6=new Set(),_0x238efa=new Set();for(const _0x1d1e05 of _0x3333cf['getSuggestions']())if(('insertion'==_0x1d1e05['type']||'deletion'==_0x1d1e05['type']||'mergeTableCells'==_0x1d1e05['subType'])&&_0x1d1e05['isInContent']){for(const _0x53e15 of _0x1d1e05['getRanges']())_0x53e15['containsRange'](_0x4351dd,!0x0)&&_0x3e4ac6['add'](_0x1d1e05['type']+':'+_0x1d1e05['author']['id']),_0x53e15['containsRange'](_0x496093,!0x0)&&_0x238efa['add'](_0x1d1e05['type']+':'+_0x1d1e05['author']['id']);}if(_0x3e4ac6['size']!=_0x238efa['size'])return!0x1;for(const _0x2c591f of _0x3e4ac6)if(!_0x238efa['has'](_0x2c591f))return!0x1;return!0x0;}}class Ct extends _0x5b0fc1{static get['requires'](){return[At];}['afterInit'](){const _0x4383c1=this['editor'];if(!_0x4383c1['plugins']['has']('TableEditing'))return;const _0x27892c=_0x4383c1['locale'],_0x331d92=_0x4383c1['plugins']['get']('TrackChangesEditing');_0x331d92['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x331d92['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x331d92['registerBlockAttribute']('headingRows'),_0x331d92['registerBlockAttribute']('headingColumns'),_0x331d92['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x27892c,'FORMAT_HEADER_ROW')),_0x331d92['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x27892c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1cda0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29ed0a=this['editor']['plugins']['get']('TableUtils'),_0x791d5c=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2b4133({showActiveMarker:_0x2b3e0d=!0x0,setDataAttribute:_0x34fa58=!0x0}={}){return(_0x47449d,_0x3227e7,_0x477b90)=>{const {type:_0x387542,id:_0x3633fa}=_0x1cda0b['_splitMarkerName'](_0x3227e7['markerName']),_0x3d8b95=_0x1cda0b['getSuggestion'](_0x3633fa),_0x3d750b=_0x3d8b95['data'];if('formatBlock'!=_0x3d8b95['type']||!_0x3d750b||'setTableColumnHeader'!=_0x3d750b['commandName'])return;if(_0x3227e7['item'])return void _0x47449d['stop']();if(!_0x477b90['consumable']['consume'](_0x3227e7['markerRange'],_0x47449d['name']))return;const _0x21bc40=_0x3227e7['markerRange']['start']['nodeAfter'],_0x3c0dfc=_0x3227e7['markerRange']['end']['nodeBefore'],_0x3a850d=_0x21bc40['parent']['parent'],{column:_0x28034b}=_0x29ed0a['getCellLocation'](_0x21bc40),{column:_0x54d09e}=_0x29ed0a['getCellLocation'](_0x3c0dfc);for(let _0x87861e=_0x28034b;_0x87861e<=_0x54d09e;_0x87861e++){const _0x448e5a=_0x29ed0a['createTableWalker'](_0x3a850d,{'column':_0x87861e,'includeAllSlots':!0x1});for(const _0x1e5545 of _0x448e5a){const _0xec72dd=_0x1e5545['cell'],_0x574acd=_0x477b90['mapper']['toViewElement'](_0xec72dd);_0x477b90['writer']['addClass']('ck-suggestion-marker-'+_0x387542,_0x574acd),_0x34fa58&&_0x477b90['writer']['setAttribute']('data-suggestion',_0x3633fa,_0x574acd),_0x477b90['mapper']['bindElementToMarker'](_0x574acd,_0x3227e7['markerName']),_0x2b3e0d&&(_0x1cda0b['activeMarkers']['includes'](_0x3227e7['markerName'])?_0x477b90['writer']['addClass']('ck-suggestion-marker--active',_0x574acd):_0x477b90['writer']['removeClass']('ck-suggestion-marker--active',_0x574acd));}}};}_0x1cda0b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x791d5c),_0x1cda0b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x791d5c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2b4133(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59c231,_0x159d35,_0x5d96be)=>{_0x5d96be['options']['showSuggestionHighlights']&&_0x2b4133({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x59c231,_0x159d35,_0x5d96be);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xa65432,_0x58372f,_0x383752)=>{const {type:_0x51bbab,id:_0x56965b}=_0x1cda0b['_splitMarkerName'](_0x58372f['markerName']),_0x1537df=_0x1cda0b['getSuggestion'](_0x56965b),_0x4e785e=_0x1537df['data'];if('formatBlock'!=_0x1537df['type']||!_0x4e785e||'setTableColumnHeader'!=_0x4e785e['commandName'])return;const _0x3118d1=_0x383752['mapper']['markerNameToElements'](_0x58372f['markerName']);if(_0x3118d1){for(const _0x3fcd10 of _0x3118d1)_0x383752['writer']['removeClass']('ck-suggestion-marker-'+_0x51bbab,_0x3fcd10),_0x383752['writer']['removeClass']('ck-suggestion-marker--active',_0x3fcd10),_0x383752['writer']['removeAttribute']('data-suggestion',_0x3fcd10),_0x383752['mapper']['unbindElementFromMarkerName'](_0x3fcd10,_0x58372f['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x465d52=this['editor'],_0xd5a954=_0x465d52['locale'];function _0x44a9f1(_0x42f75d){return{'type':'format','content':o(_0xd5a954,'*Format:*\x20%0',_0x42f75d)};}_0x465d52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ae8d2=>{if('formatBlock'!=_0x5ae8d2['type'])return;const {data:_0x344147}=_0x5ae8d2;if(_0x344147){if('setTableRowHeader'==_0x344147['commandName']){const _0x471189=_0x344147['commandParams'][0x0]['forceValue'];return _0x44a9f1(o(_0xd5a954,_0x471189?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x344147['commandName']){const _0x38000c=_0x344147['commandParams'][0x0]['forceValue'];return _0x44a9f1(o(_0xd5a954,_0x38000c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x5b0fc1{['afterInit'](){const _0x5e3b99=this['editor'],_0x471006=_0x5e3b99['locale'],_0x433a51=_0x5e3b99['plugins']['get']('TrackChangesEditing');function _0x242d5a(_0x51ca63){return{'type':'format','content':''+o(_0x471006,'*Set\x20table\x20type:*\x20%0',_0x51ca63)};}_0x5e3b99['plugins']['has']('TableLayout')&&(_0x433a51['enableCommand']('insertTableLayout'),_0x433a51['enableDefaultAttributesIntegration']('tableType'),_0x433a51['registerBlockAttribute']('tableType'),_0x433a51['descriptionFactory']['registerElementLabel'](_0x3455d7=>_0x3455d7['is']('element','table')&&'layout'===_0x3455d7['getAttribute']('tableType'),_0x355050=>o(_0x471006,'ELEMENT_LAYOUT_TABLE',_0x355050)),_0x433a51['descriptionFactory']['registerDescriptionCallback'](_0x515b02=>{const {data:_0x522d77}=_0x515b02;if(_0x522d77&&'tableType'==_0x522d77['key'])switch(_0x522d77['newValue']){case'layout':return _0x242d5a(o(_0x471006,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x242d5a(o(_0x471006,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x18a1d3=>[_0x18a1d3,null]));class Nt extends _0x5b0fc1{static get['requires'](){return[At];}['afterInit'](){const _0x104863=this['editor'];if(!_0x104863['plugins']['has']('TableClipboard'))return;const _0x4071b3=_0x104863['plugins']['get']('TrackChangesEditing'),_0x2e71b8=_0x104863['plugins']['get']('TableUtils'),_0x5b54b3=_0x104863['plugins']['get'](At),_0x55b825=_0x104863['plugins']['get']('TableClipboard'),_0x261151=_0x104863['plugins']['get']('TableSelection'),_0x2ff839=_0x104863['plugins']['get'](_0x187e23);_0x5b54b3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x104863['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x104863['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2d2acb=null,_0x58e6e4=!0x1;_0x2ff839['on']('contentInsertion',(_0x23de45,_0xb2d621)=>{_0x58e6e4='paste'===_0xb2d621['method'];}),_0x104863['model']['on']('insertContent',(_0x2077ce,_0x3e4151)=>{if(!_0x58e6e4&&null===_0x261151['getSelectedTableCells']())return;const [_0x3f6ebb,_0x598ff4]=_0x3e4151,_0x1793da=_0x3e4151[_0x3e4151['length']-0x1];_0x1793da&&_0x1793da['forceDefaultExecution']||_0x4071b3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x32615a,_0x21abdb,_0x5d53b0,_0x5a7cf3,_0x5e7c9b){if(_0x21abdb&&!_0x21abdb['is']('documentSelection'))return!0x1;const _0x2052e3=_0x5e7c9b['getTableIfOnlyTableInContent'](_0x32615a,_0x5d53b0);if(!_0x2052e3||!Ue(_0x2052e3,void 0x0,_0x5a7cf3))return!0x1;const _0x43e102=_0x5a7cf3['getSelectionAffectedTableCells'](_0x5d53b0['document']['selection']);if(!_0x43e102['length'])return!0x1;const _0x14a79e=_0x43e102[0x0]['findAncestor']('table'),_0x1ccae8=_0x5a7cf3['getRowIndexes'](_0x43e102),_0x53909f=_0x5a7cf3['getColumnIndexes'](_0x43e102),_0xb3dc42={'startRow':_0x1ccae8['first'],'endRow':_0x1ccae8['last'],'startColumn':_0x53909f['first'],'endColumn':_0x53909f['last']};return 0x1==_0x43e102['length']&&(_0xb3dc42['endRow']+=_0x5a7cf3['getRows'](_0x2052e3)-0x1,_0xb3dc42['endColumn']+=_0x5a7cf3['getColumns'](_0x2052e3)-0x1),Ue(_0x14a79e,_0xb3dc42,_0x5a7cf3);}(_0x3f6ebb,_0x598ff4,_0x104863['model'],_0x2e71b8,_0x55b825)&&(_0x2077ce['stop'](),_0x2d2acb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x104863['model']['change'](()=>{_0x104863['model']['insertContent'](_0x3e4151[0x0],_0x3e4151[0x1],_0x3e4151[0x2],{'forceDefaultExecution':!0x0});const _0x170cee=_0x50cf13(),{rowInsertionRanges:_0x352b1a,columnInsertionRanges:_0x41f7a6,insertionRanges:_0x2ca47a,deletionRanges:_0xfbb49c,cells:_0x522b8d}=_0x2d2acb;_0x352b1a['length']&&_0x4071b3['markMultiRangeInsertion'](_0x352b1a,'tablePasteRow',{'tablePasteChainId':_0x170cee}),_0x41f7a6['length']&&_0x4071b3['markMultiRangeInsertion'](_0x41f7a6,'tablePasteColumn',{'tablePasteChainId':_0x170cee}),_0x2ca47a['length']&&(_0x4071b3['markMultiRangeInsertion'](_0x2ca47a,'tablePaste',{'tablePasteChainId':_0x170cee,'skipNestingCheck':!0x0}),_0x2ca47a['forEach'](_0x265d89=>_0x265d89['detach']?.())),_0xfbb49c['length']&&(_0x4071b3['markMultiRangeDeletion'](_0xfbb49c,'tablePaste',{'tablePasteChainId':_0x170cee,'skipNestingCheck':!0x0}),_0xfbb49c['forEach'](_0x3bd6f5=>_0x3bd6f5['detach']?.()));const _0x3e35bc=_0x4071b3['markMultiRangeBlockFormat'](_0x522b8d['map'](({element:_0x59cccb})=>_0x59cccb),{'formatGroupId':_0x50cf13()},[],'tablePasteCell',{'tablePasteChainId':_0x170cee});if(_0x3e35bc){const _0x565736=_0x3e35bc['getMarkers'](),_0x453efb=[];for(const {element:_0x52a8db,attributes:_0x272345}of _0x522b8d){if(!_0x272345)continue;const _0x1abcc5=_0x104863['model']['createRangeOn'](_0x52a8db),_0x4a4b50=_0x565736['find'](_0x4a60fe=>_0x4a60fe['getRange']()['isEqual'](_0x1abcc5));_0x4a4b50&&_0x453efb['push']([_0x4a4b50['name'],_0x272345]);}_0x453efb['length']&&_0x3e35bc['setAttribute']('markerAttributes',Object['fromEntries'](_0x453efb));}_0x2d2acb=null;}));},{'priority':_0x4bf36d['high']+0xa}),_0x2ff839['on']('contentInsertion',()=>{_0x58e6e4=!0x1;},{'priority':'lowest'}),_0x104863['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x32dfb0,_0x201ad8)=>{const [_0x3fcf89,_0x457448,,_0x3a3e38]=_0x201ad8;if(!_0x2d2acb)return;_0x32dfb0['stop']();const _0x197f92=_0x3fcf89['cell'],_0x344a7a=_0x457448,_0x46cbde=Oe(_0x197f92),_0x40a0dd=Oe(_0x344a7a);_0x32dfb0['return']=_0x197f92;let _0x155c5f=null,_0x4ba276=null;if(_0x40a0dd||_0x46cbde){if(_0x46cbde&&!_0x40a0dd){_0x3a3e38['remove'](_0x197f92['getChild'](0x0));for(const _0xe104c0 of Array['from'](_0x344a7a['getChildren']()))_0x3a3e38['insert'](_0xe104c0,_0x197f92,'end');const _0x4f4bbc=_0x2d2acb['rowInsertionIndexes']['includes'](_0x3fcf89['row']),_0xd1473e=_0x2d2acb['columnInsertionIndexes']['includes'](_0x3fcf89['column']);_0x4f4bbc||_0xd1473e||(_0x155c5f=_0xb0dd32['fromRange'](_0x3a3e38['createRangeIn'](_0x197f92)));}else _0x40a0dd&&!_0x46cbde&&(_0x4ba276=_0x3a3e38['createRangeIn'](_0x197f92));}else{const _0x227bb9=_0x3a3e38['createElement']('tableCellSuggestion'),_0x37f589=_0x3a3e38['createElement']('tableCellSuggestion');_0x3a3e38['wrap'](_0x3a3e38['createRangeIn'](_0x197f92),_0x37f589),_0x3a3e38['insert'](_0x227bb9,_0x197f92,0x0);for(const _0x4faf23 of Array['from'](_0x344a7a['getChildren']()))_0x3a3e38['insert'](_0x4faf23,_0x227bb9,'end');_0x155c5f=_0xb0dd32['fromRange'](_0x3a3e38['createRangeOn'](_0x227bb9)),_0x4ba276=_0xb0dd32['fromRange'](_0x3a3e38['createRangeOn'](_0x37f589));}const _0x212d6e=Array['from'](_0x344a7a['getAttributes']())['filter'](([_0x35faca])=>Be['includes'](_0x35faca));_0x2d2acb['cells']['push']({'element':_0x197f92,'attributes':_0x212d6e['length']?Object['fromEntries'](_0x212d6e):null}),_0x155c5f&&_0x2d2acb['insertionRanges']['push'](_0x155c5f),_0x4ba276&&_0x2d2acb['deletionRanges']['push'](_0x4ba276);},{'priority':'high'}),_0x2e71b8['on']('insertColumns',(_0x18ab7f,_0x3dbfdd)=>{const [_0xf88339,_0x23d568={}]=_0x3dbfdd;if(!_0x2d2acb)return;const _0x308462=_0x23d568['at']||0x0,_0x1fee4c=_0x23d568['columns']||0x1;_0x2d2acb['columnInsertionIndexes']=new Array(_0x1fee4c)['fill'](_0x308462)['map']((_0x1f00f2,_0x5e3604)=>_0x1f00f2+_0x5e3604);for(const {cell:_0x821dc1}of _0x2e71b8['createTableWalker'](_0xf88339,{'startColumn':_0x308462,'endColumn':_0x308462+_0x1fee4c-0x1}))_0x2d2acb['columnInsertionRanges']['push'](_0x104863['model']['createRangeOn'](_0x821dc1));},{'priority':'low'}),_0x2e71b8['on']('insertRows',(_0x470ff3,_0x201dd6)=>{const [_0x309977,_0x3c6efc={}]=_0x201dd6;if(!_0x2d2acb)return;const _0x5985cb=_0x3c6efc['at']||0x0,_0x464144=_0x3c6efc['rows']||0x1;_0x2d2acb['rowInsertionIndexes']=new Array(_0x464144)['fill'](_0x5985cb)['map']((_0x4e4b24,_0x802e79)=>_0x4e4b24+_0x802e79);for(const {cell:_0xa2e1cb}of _0x2e71b8['createTableWalker'](_0x309977,{'startRow':_0x5985cb,'endRow':_0x5985cb+_0x464144-0x1}))_0x2d2acb['rowInsertionRanges']['push'](_0x104863['model']['createRangeOn'](_0xa2e1cb));},{'priority':'low'}),_0x4071b3['descriptionFactory']['registerDescriptionCallback'](_0xf1baf0=>{if(_0xf1baf0['subType']&&_0xf1baf0['subType']['startsWith']('tablePaste'))return _0xf1baf0['previous']?{}:{'type':'insertion','content':o(_0x104863['locale'],'*Replace\x20table\x20cells*')};});const _0x5e050a=()=>!0x1;for(const _0x402a2e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4071b3['_suggestionFactory']['registerCustomCallback']('insertion',_0x402a2e,'join',_0x5e050a),_0x4071b3['_suggestionFactory']['registerCustomCallback']('deletion',_0x402a2e,'join',_0x5e050a),_0x4071b3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x402a2e,'join',_0x5e050a);_0x4071b3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5e050a),_0x4071b3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xcd07fb,_0x33cc0b,_0xe375a8)=>{const _0x48ea2a=_0xcd07fb['map'](_0x3e86bf=>_0x3e86bf['getContainedElement']())['filter'](_0x1aea7a=>_0x1aea7a),_0x13765a=new Map(_0x48ea2a['map'](_0x13fa9a=>[_0x13fa9a,null]));if(_0x2d2acb){for(const {element:_0x71fc58,attributes:_0xc2fded}of _0x2d2acb['cells'])_0xc2fded&&_0x13765a['set'](_0x71fc58,_0xc2fded);}else{if(_0xe375a8&&_0xe375a8['markerAttributes'])for(const [_0x569f81,_0x1b3816]of Object['entries'](_0xe375a8['markerAttributes'])){const _0x1b2430=_0x104863['model']['markers']['get'](_0x569f81),_0x1c8b31=_0x1b2430?_0x1b2430['getRange']()['getContainedElement']():null;_0x1c8b31&&_0x13765a['set'](_0x1c8b31,_0x1b3816);}}_0x104863['model']['change'](_0x2836de=>{for(const [_0x1336cc,_0x7dfa69]of _0x13765a)_0x2836de['setAttributes']({...xe,..._0x7dfa69},_0x1336cc);});});const _0x4ac5b8=(_0x44341b,_0x2aedb7)=>{_0x4071b3['_suggestionFactory']['registerCustomCallback'](_0x44341b,'tablePaste',_0x2aedb7,(_0x33a134,_0x201619,_0x1b6995)=>{_0x104863['model']['change'](_0x14449c=>{const _0x599d5f=[];for(const _0x559162 of _0x33a134){const _0x2924bc=_0x559162['start']['nodeAfter'];_0x2924bc['is']('element','tableCellSuggestion')&&_0x599d5f['push'](_0x2924bc);}_0x4071b3['_suggestionFactory']['getSuggestionCallback'](_0x44341b,null,_0x2aedb7)(_0x33a134,_0x201619,_0x1b6995);for(const _0x51be20 of _0x599d5f)'$graveyard'!=_0x51be20['root']['rootName']&&_0x14449c['unwrap'](_0x51be20);});});};_0x4ac5b8('insertion','accept'),_0x4ac5b8('insertion','discard'),_0x4ac5b8('deletion','accept'),_0x4ac5b8('deletion','discard'),_0x4071b3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e9eff=>{const _0x5da2d7=_0x1e9eff['map'](_0x5ed200=>_0x5ed200['getContainedElement']()),_0x391d65=_0x5da2d7[0x0]['findAncestor']('table'),{minRow:_0x5c06e9,maxRow:_0x3f4f68}=_0x5b54b3['_getCoordsForCells'](_0x5da2d7);_0x2e71b8['removeRows'](_0x391d65,{'at':_0x5c06e9,'rows':_0x3f4f68-_0x5c06e9+0x1});}),_0x4071b3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x207818=>{const _0x48b4ac=_0x207818['map'](_0x5b7193=>_0x5b7193['getContainedElement']()),_0x25a33b=_0x48b4ac[0x0]['findAncestor']('table'),{minColumn:_0x35541b,maxColumn:_0x344a27}=_0x5b54b3['_getCoordsForCells'](_0x48b4ac);_0x2e71b8['removeColumns'](_0x25a33b,{'at':_0x35541b,'columns':_0x344a27-_0x35541b+0x1});});const _0x58a49a=(_0x5cf1fb,_0xcca46b)=>{if(!_0xcca46b['subType']||!_0xcca46b['subType']['startsWith']('tablePaste'))return;const _0x33f201=_0xcca46b['attributes']['tablePasteChainId'],_0x1f0bf2=_0x4071b3['getSuggestions']()['filter'](_0x4b6bd1=>_0x4b6bd1['isInContent']&&_0x4b6bd1['attributes']&&_0x4b6bd1['attributes']['tablePasteChainId']==_0x33f201);_0x1f0bf2['length']&&_0xcca46b['getAllAdjacentSuggestions']()['length']!=_0x1f0bf2['length']&&_0x1f0bf2['reduce']((_0x2b729e,_0x494a3b)=>(_0x2b729e['next']=_0x494a3b,_0x494a3b['previous']=_0x2b729e,_0x494a3b));};function _0x14e39a(_0x13ff93,_0x5a06ba=!0x0){const {id:_0x5d7189,authorId:_0x185dbf}=_0x4071b3['_splitMarkerName'](_0x13ff93['markerName']),_0x57004c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x42d97d=_0x4071b3['activeMarkers']['includes'](_0x13ff93['markerName']);return _0x42d97d&&_0x57004c['push']('ck-suggestion-marker--active'),{'classes':_0x57004c,'attributes':{'data-suggestion':_0x5d7189,'data-author-id':_0x185dbf},'priority':_0x42d97d&&_0x5a06ba?0xbc2:0xbb8};}_0x4071b3['on']('suggestionLoaded',_0x58a49a,{'priority':'high'}),_0x4071b3['on']('suggestionUnloaded',_0x58a49a,{'priority':'high'}),_0x104863['model']['document']['registerPostFixer'](()=>{let _0x3dd96d=!0x1;const _0x55b3ba=Array['from'](_0x104863['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49f62c,data:_0x4c638a}of _0x55b3ba){const {group:_0x33daa1,type:_0x18c6b0,id:_0x17aae6}=_0x4071b3['_splitMarkerName'](_0x49f62c);if('suggestion'!=_0x33daa1||'deletion'!=_0x18c6b0||_0x4c638a['oldRange'])continue;if(!_0x4071b3['hasSuggestion'](_0x17aae6))continue;const _0x4f8b30=_0x4071b3['getSuggestion'](_0x17aae6)['getRanges'](),_0x108326=_0x104863['plugins']['get']('Users')['me'];for(const _0x5d13a0 of _0x4071b3['getSuggestions']()){if(!_0x5d13a0['isInContent']||_0x5d13a0['author']!=_0x108326)continue;if('formatBlock'!=_0x5d13a0['type']||'tablePasteCell'!=_0x5d13a0['subType'])continue;if(_0x5d13a0['getRanges']()['every'](_0x1cee87=>_0x4f8b30['some'](_0x579690=>_0x579690['containsRange'](_0x1cee87,!0x0)))){for(const _0x58fb94 of _0x5d13a0['getAllAdjacentSuggestions']())_0x58fb94['isInContent']&&(_0x58fb94['discard'](),_0x3dd96d=!0x0);}}}return _0x3dd96d;}),_0x104863['model']['document']['registerPostFixer'](_0x2a2560=>{const _0x5e2b6e=_0x104863['commands']['get']('redo');if(!_0x5e2b6e||!_0x5e2b6e['_createdBatches']['has'](_0x2a2560['batch']))return!0x1;let _0x3a0385=!0x1;const _0x34b88d=_0x104863['plugins']['get']('Users')['me'],_0x4731ae=_0x104863['model']['document']['differ']['getChanges'](),_0x1903f9=Array['from'](_0x104863['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2f973e,data:_0x29edbe})=>{const {group:_0x241cdd,subType:_0x3acd7a,authorId:_0x1e8a06}=_0x4071b3['_splitMarkerName'](_0x2f973e);return'suggestion'==_0x241cdd&&'tablePaste'==_0x3acd7a&&_0x1e8a06==_0x34b88d['id']&&!_0x29edbe['oldRange'];});for(const _0x28858a of _0x4731ae){if('insert'!=_0x28858a['type']||'tableCellSuggestion'!=_0x28858a['name']||0x1!=_0x28858a['length'])continue;const _0x5081a5=_0x2a2560['createRange'](_0x28858a['position'],_0x28858a['position']['getShiftedBy'](0x1));if(!_0x1903f9['find'](({data:_0x16b95c})=>_0x16b95c['newRange']['isEqual'](_0x5081a5))){for(const {name:_0x49cb54,data:_0x27184e}of _0x1903f9)if(_0x5081a5['containsRange'](_0x27184e['newRange'])){_0x2a2560['updateMarker'](_0x49cb54,{'range':_0x5081a5}),_0x3a0385=!0x0;break;}}}return _0x3a0385;}),_0x104863['model']['document']['registerPostFixer'](_0x33b012=>{let _0x17897e=!0x1;const _0x87dd72=_0x104863['plugins']['get']('Users')['me'],_0x48cc7a=_0x4071b3['getSuggestions']()['filter'](_0x532bdc=>_0x532bdc['isInContent']&&_0x532bdc['author']==_0x87dd72),_0x578c21=new Set(),_0x21f173=new Set();for(const _0x38c91d of _0x48cc7a)if('tablePaste'==_0x38c91d['subType'])for(const _0xfe7440 of _0x38c91d['getMarkers']()){const _0x2aefdb=_0xfe7440['getRange']()['getContainedElement']();if(_0x2aefdb){if(_0x2aefdb['is']('element','tableCellSuggestion')&&Oe(_0x2aefdb)){_0x38c91d['removeMarker'](_0xfe7440['name']),_0x578c21['add'](_0x2aefdb),_0x17897e=!0x0;const _0x9cd54d=_0x2aefdb['nextSibling'],_0x2b8dda=_0x2aefdb['previousSibling'],_0x3122bf=_0x9cd54d&&_0x9cd54d['is']('element','tableCellSuggestion'),_0x40836a=_0x2b8dda&&_0x2b8dda['is']('element','tableCellSuggestion');_0x3122bf&&!_0x578c21['has'](_0x9cd54d)&&_0x21f173['add'](_0x9cd54d),_0x40836a&&!_0x578c21['has'](_0x2b8dda)&&_0x21f173['add'](_0x2b8dda);}else _0x2aefdb['is']('element','paragraph')&&_0x2aefdb['isEmpty']&&(_0x38c91d['removeMarker'](_0xfe7440['name']),_0x17897e=!0x0);}}else{if('tablePasteCell'==_0x38c91d['subType']){if(!_0x38c91d['attributes']||!_0x38c91d['attributes']['tablePasteChainId'])continue;const _0x1943b5=_0x38c91d['attributes']['markerAttributes'];if(_0x1943b5&&Object['keys'](_0x1943b5)['length'])continue;const _0x5947ed=_0x38c91d['attributes']['tablePasteChainId'];let _0x44d4dc=!0x0,_0x3bc04d=!0x0;for(const _0x366da7 of _0x48cc7a)if(_0x366da7['subType']&&_0x366da7['subType']['startsWith']('tablePaste')){if(!_0x366da7['attributes']['tablePasteChainId']){_0x3bc04d=!0x1;break;}if(_0x366da7['id']!=_0x38c91d['id']&&_0x366da7['attributes']['tablePasteChainId']==_0x5947ed){_0x44d4dc=!0x1;break;}}_0x3bc04d&&_0x44d4dc&&(_0x38c91d['removeMarkers'](),_0x17897e=!0x0);}}for(const _0x1697e6 of _0x578c21)_0x33b012['remove'](_0x1697e6);for(const _0x589c63 of _0x21f173)_0x33b012['unwrap'](_0x589c63);return _0x17897e;}),_0x104863['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2cf0e6=>_0x14e39a(_0x2cf0e6),'converterPriority':'high'}),_0x104863['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4da50a,_0x1052f6)=>_0x1052f6['options']['showSuggestionHighlights']?_0x14e39a(_0x4da50a,!0x1):null,'converterPriority':'high'});const _0x4703c3=_0x104863['editing']['view'];this['listenTo'](_0x4703c3['document'],'clipboardOutput',(_0x21ff01,_0x1a2733)=>{const _0x3e3c4c=[];for(const _0x24f72f of _0x4703c3['createRangeIn'](_0x1a2733['content'])['getItems']())_0x24f72f['is']('element','suggestion-td')&&_0x3e3c4c['push'](_0x24f72f);_0x4703c3['change'](_0x5b9304=>{for(const _0x4370ea of _0x3e3c4c)_0x5b9304['move'](_0x5b9304['createRangeIn'](_0x4370ea),_0x5b9304['createPositionBefore'](_0x4370ea)),_0x5b9304['remove'](_0x4370ea);});});}}function Oe(_0x4da200){if(_0x4da200['isEmpty'])return!0x0;const _0x120f4e=_0x4da200['getChild'](0x0);return _0x120f4e['is']('element','paragraph')&&_0x120f4e['isEmpty'];}function Ue(_0xa66910,_0x56ac64={},_0x2c0581){for(const {isAnchor:_0x47228b,cellHeight:_0x3b5d01,cellWidth:_0x31f3b7}of _0x2c0581['createTableWalker'](_0xa66910,{'includeAllSlots':!0x0,..._0x56ac64}))if(!_0x47228b||0x1!=_0x3b5d01||0x1!=_0x31f3b7)return!0x1;return!0x0;}class Dt extends _0x5b0fc1{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3393a9=this['editor']['plugins']['get']('TrackChangesEditing');_0x3393a9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3393a9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3393a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3393a9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3393a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3393a9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x51fef3,_0x3ba86a){const _0x138223=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cff16=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4d9e90=_0x3ba86a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x178124=_0x3cff16['getColumnGroupElement'](_0x4d9e90);let _0x4c15bb=_0x178124?_0x3cff16['getTableColumnsWidths'](_0x178124):null,_0x349923=_0x4d9e90['getAttribute']('tableWidth')||null;const _0xbef9e6=_0x3ba86a['tableWidth']||_0x349923,_0x169a50=_0x3ba86a['columnWidths']||_0x4c15bb,_0x177d1d=this['editor']['plugins']['get']('Users')['me'];for(const _0x477a0f of _0x138223['getSuggestions']()){const _0x501973=_0x477a0f['getContainedElement']();if('resizeTable'===_0x477a0f['subType']&&_0x501973===_0x4d9e90){_0x477a0f['author']!==_0x177d1d&&_0x477a0f['discard']();const _0x3c9603=_0x477a0f['data']['commandParams'];_0x349923=_0x3c9603[0x0]['tableWidth'],_0x4c15bb=_0x3c9603[0x0]['columnWidths'];break;}}_0x51fef3({'table':_0x4d9e90,'tableWidth':_0xbef9e6,'columnWidths':_0x169a50}),_0x138223['markBlockFormat'](_0x4d9e90,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x349923,'columnWidths':_0x4c15bb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5ef0e5){if('formatBlock'!=_0x5ef0e5['type']&&'formatInline'!=_0x5ef0e5['type'])return;const {data:_0xebfc6d}=_0x5ef0e5;if(_0xebfc6d&&'resizeTable'===_0xebfc6d['formatGroupId']){const _0x5a81f8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5a81f8)};}}}class $t extends _0x5b0fc1{['afterInit'](){const _0x438a39=this['editor'];_0x438a39['plugins']['has']('Template')&&_0x438a39['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x5b0fc1{['afterInit'](){const _0x483406=this['editor'];if(!_0x483406['commands']['get']('insertTableOfContents'))return;_0x483406['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1e1fc9=_0x483406['plugins']['get']('TrackChangesEditing'),_0x2ef13a=_0x483406['locale'];_0x1e1fc9['descriptionFactory']['registerElementLabel']('tableOfContents',_0xe582bc=>o(_0x2ef13a,'ELEMENT_TABLE_OF_CONTENTS',_0xe582bc));}}class Bt extends _0x5b0fc1{['afterInit'](){const _0x39e1ee=this['editor'];if(!_0x39e1ee['plugins']['has']('Title'))return;const _0x24149f=_0x39e1ee['plugins']['get']('TrackChangesEditing');_0x24149f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x39e1ee['locale'],'ELEMENT_TITLE')),_0x39e1ee['model']['document']['registerPostFixer'](_0x26aa1c=>{let _0x279117=!0x1;const _0x126c15=Array['from'](_0x39e1ee['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c04e7,data:_0x9b3015}of _0x126c15){const {group:_0x1daa5}=_0x24149f['_splitMarkerName'](_0x5c04e7);if('suggestion'!==_0x1daa5||!_0x9b3015['newRange'])continue;const _0x25ff25=_0x9b3015['newRange'],_0x4628ec=_0x25ff25['end']['nodeBefore'];if(!_0x4628ec||!_0x4628ec['is']('element','title-content'))continue;if(!_0x25ff25['start']['isTouching'](_0x25ff25['end']))continue;const _0x507c9c=_0x39e1ee['model']['schema']['getNearestSelectionRange'](_0x25ff25['end'],'forward');if(_0x507c9c&&_0x507c9c['isCollapsed']){const _0x13950b=_0x26aa1c['createRange'](_0x25ff25['start'],_0x507c9c['start']);_0x13950b['isEqual'](_0x25ff25)||(_0x26aa1c['updateMarker'](_0x5c04e7,{'range':_0x13950b}),_0x279117=!0x0);}_0x279117||(_0x26aa1c['removeMarker'](_0x5c04e7),_0x279117=!0x0);}return _0x279117;});}}class Tt extends _0x5b0fc1{['afterInit'](){const _0x5ec4aa=this['editor'],_0x39a436=_0x5ec4aa['plugins']['get']('TrackChangesEditing');_0x5ec4aa['plugins']['has']('Uploadcare')&&(_0x39a436['enableCommand']('uploadcare'),_0x5ec4aa['plugins']['has']('UploadcareImageEdit')&&(_0x39a436['enableCommand']('uploadcareImageEdit'),_0x39a436['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x39a436['registerBlockAttribute']('uploadcareImageId'),_0x39a436['descriptionFactory']['registerDescriptionCallback'](_0xa05c5e=>{if('attribute'!=_0xa05c5e['type'])return;const {data:_0x10b8a8}=_0xa05c5e;return _0x10b8a8&&'uploadcareImageId'==_0x10b8a8['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x5b0fc1{['afterInit'](){const _0x4405b4=this['editor'],_0x277450=_0x4405b4['plugins']['get']('TrackChangesEditing');_0x4405b4['plugins']['has']('UndoEditing')&&(_0x277450['enableCommand']('undo'),_0x277450['enableCommand']('redo'));}}class Ot extends _0x5b0fc1{static get['requires'](){return[At];}['afterInit'](){const _0x461c1b=this['editor'];if(!_0x461c1b['plugins']['has']('TableCaptionEditing'))return;_0x461c1b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x5b0fc1{['tableProperties'];['tableCellProperties'];constructor(_0x33481c){super(_0x33481c),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 _0x3ffb72=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x63eef1 of this['tableProperties'])_0x3ffb72['enableCommand'](_0x63eef1,(_0x10ff04,_0x2872e5)=>{const _0x302b2a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x63eef1,[_0x302b2a],this['tableProperties'],'tableProperties',_0x10ff04,_0x2872e5);});_0x3ffb72['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3ffb72['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ffb72['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1ea853,_0x24e57f)=>this['handleDiscardAction'](this['tableProperties'],_0x1ea853,_0x24e57f)),_0x3ffb72['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1e309a of this['tableCellProperties'])_0x3ffb72['enableCommand'](_0x1e309a,(_0x589a4d,_0x2b3d10)=>{const _0x589394=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1e309a,_0x589394,this['tableCellProperties'],'tableCellProperties',_0x589a4d,_0x2b3d10);});_0x3ffb72['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3ffb72['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ffb72['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x15ea37,_0x517322)=>this['handleDiscardAction'](this['tableCellProperties'],_0x15ea37,_0x517322)),_0x3ffb72['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3ffb72['descriptionFactory']['registerDescriptionCallback'](_0x4d93ea=>this['handleSuggestionDescription'](_0x4d93ea)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x32ed8b,_0xf0becb,_0x4681a3,_0x605710,_0x477d55,_0x17b7fc){const _0x4c4bd8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x17b7fc['batch'],()=>{for(const _0x2ffec8 of _0xf0becb){if(this['_getSuggestion'](_0x2ffec8,_0x605710))_0x477d55(_0x17b7fc);else{const _0x40dc7a={};for(const _0x1ef406 of _0x4681a3){const _0x1a9592=_0x2ffec8['getAttribute'](_0x1ef406);void 0x0!==_0x1a9592&&(_0x40dc7a[_0x1ef406]=_0x1a9592);}_0x477d55(_0x17b7fc),_0x4c4bd8['markBlockFormat'](_0x2ffec8,{'commandParams':[_0x40dc7a]},[],_0x605710);}}});}['handleDiscardAction'](_0x58b569,_0x3293d4,_0x177cb){const _0x3ef0ea=_0x3293d4[0x0]['start']['nodeAfter'],_0x5e50a4=_0x177cb['commandParams'][0x0];this['editor']['model']['change'](_0x3a4921=>{for(const _0x14bd70 of _0x58b569)void 0x0!==_0x5e50a4[_0x14bd70]?_0x3a4921['setAttribute'](_0x14bd70,_0x5e50a4[_0x14bd70],_0x3ef0ea):_0x3a4921['removeAttribute'](_0x14bd70,_0x3ef0ea);});}['handleSuggestionDescription'](_0x42557a){if(_0x42557a['data'])switch(_0x42557a['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xf70280,_0x2e6677){const _0x403cf3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3e3cd8 of _0x403cf3['getSuggestions']({'skipNotAttached':!0x0})){const _0x10ea1f=_0x3e3cd8['getContainedElement']();if(_0x3e3cd8['subType']===_0x2e6677&&_0x10ea1f===_0xf70280)return _0x3e3cd8;}return null;}['_registerTablePropertiesAttributes'](){const _0x4b4b30=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2acaa3=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x422461 of _0x2acaa3){const _0x4e06e3=_0x422461['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4b4b30['registerBlockAttribute'](_0x422461),_0x4b4b30['descriptionFactory']['registerAttributeLabel'](_0x422461,o(this['editor']['locale'],'FORMAT_'+_0x4e06e3));}}}class Rt extends _0x5b0fc1{['afterInit'](){const _0x120b24=this['editor'];if(!_0x120b24['plugins']['has']('LineHeight'))return;const _0x257088=_0x120b24['plugins']['get']('TrackChangesEditing'),_0x13bd3e=_0x120b24['locale'];_0x257088['enableDefaultAttributesIntegration']('lineHeight'),_0x257088['registerBlockAttribute']('lineHeight'),_0x257088['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x13bd3e,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x5b0fc1{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x234c27,_0x418a50,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x415342){super(_0x415342),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3a0c7f,_0x5b5bda,_0x4367eb,_0x23d099)=>{this['_model']['change'](()=>{for(const _0x316774 of[..._0x23d099,..._0x4367eb])this['_model']['markers']['has'](_0x316774)&&_0x415342['editing']['reconvertMarker'](_0x316774);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x415342['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x415342['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x415342['config']['get']('trackChanges.trackFormatChanges'),_0x415342['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x415342['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x415342,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x444179=this['editor'],_0xc434df=(_0x4c4c9a,_0x5d5362)=>{if('attribute'!=_0x4c4c9a)return'ck-suggestion-marker-'+_0x4c4c9a;const _0x36934a=_0x5d5362['split']('|')[0x0];return this['_isBlockAttribute'](_0x36934a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x444179['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5ba6ee=>{const {id:_0x165a46,authorId:_0x4775cd,type:_0x2512e6,subType:_0x100ad5}=this['_splitMarkerName'](_0x5ba6ee['markerName']),_0x257278=['ck-suggestion-marker',_0xc434df(_0x2512e6,_0x100ad5)];let _0x22255a=0xbb8;return this['activeMarkers']['includes'](_0x5ba6ee['markerName'])&&(_0x257278['push']('ck-suggestion-marker--active'),_0x22255a=0xbc2),'deletion'==_0x2512e6&&(_0x22255a+=0x5),{'classes':_0x257278,'attributes':{'data-suggestion':_0x165a46,'data-author-id':_0x4775cd},'priority':_0x22255a};}}),_0x444179['conversion']['for']('dataDowncast')['add'](_0xd59516=>{_0xd59516['on']('addMarker:suggestion',(_0x1809e2,_0x1140cd,_0x251b14)=>{if(!_0x251b14['options']['showSuggestionHighlights'])return;const _0xf6a5f=_0x1140cd['item'];if(!_0xf6a5f)return;const _0x22c713=_0x251b14['mapper']['toViewElement'](_0xf6a5f);_0x444179['model']['schema']['isObject'](_0xf6a5f)&&_0x22c713&&!_0x22c713['getCustomProperty']('widget')&&_0x22c713['is']('containerElement')&&_0xf36840(_0x22c713,_0x251b14['writer']);},{'priority':'high'});}),_0x444179['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x108a80,_0x164592)=>{if(!_0x164592['options']['showSuggestionHighlights'])return null;const {id:_0x18c5ef,authorId:_0x10b7ed,type:_0x2ed935,subType:_0x2c4e37}=this['_splitMarkerName'](_0x108a80['markerName']);return{'classes':['ck-suggestion-marker',_0xc434df(_0x2ed935,_0x2c4e37)],'priority':0xbb8,'attributes':{'data-suggestion':_0x18c5ef,'data-author-id':_0x10b7ed}};}});const _0x30d439=({showActiveMarkers:_0x1b7a52=!0x0,isAttributeSuggestion:_0x276a1a=!0x1}={})=>(_0x3409c4,_0x5755fc,_0x4f642f)=>{if(!_0x5755fc['item'])return;const {id:_0xd94949,authorId:_0x15fb00}=this['_splitMarkerName'](_0x5755fc['markerName']);if(_0x276a1a){const _0x5126a3=this['_suggestions']['get'](_0xd94949),_0x54ed9d=this['_getAttributeKey'](_0x5126a3);if(!this['_isBlockAttribute'](_0x54ed9d))return;}if(_0x5755fc['item']['is']('selection'))return void _0x4f642f['consumable']['consume'](_0x5755fc['item'],_0x3409c4['name']);const _0x3afbc0=_0x4f642f['mapper']['toViewElement'](_0x5755fc['item']);if(_0x5755fc['item']['is']('element')&&_0x444179['model']['schema']['isBlock'](_0x5755fc['item'])&&!_0x3afbc0['getCustomProperty']('addHighlight')){_0x4f642f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3afbc0),_0x4f642f['writer']['setAttribute']('data-suggestion',_0xd94949,_0x3afbc0),_0x4f642f['writer']['setAttribute']('data-author-id',_0x15fb00,_0x3afbc0),_0x4f642f['mapper']['bindElementToMarker'](_0x3afbc0,_0x5755fc['markerName']),_0x1b7a52&&(this['activeMarkers']['includes'](_0x5755fc['markerName'])?_0x4f642f['writer']['addClass']('ck-suggestion-marker--active',_0x3afbc0):_0x4f642f['writer']['removeClass']('ck-suggestion-marker--active',_0x3afbc0));for(const _0x219343 of _0x444179['model']['createRangeIn'](_0x5755fc['item'])['getItems']())_0x4f642f['consumable']['consume'](_0x219343,_0x3409c4['name']);_0x4f642f['consumable']['consume'](_0x5755fc['item'],_0x3409c4['name']);}};_0x444179['conversion']['for']('dataDowncast')['add'](_0x40f86f=>{_0x40f86f['on']('addMarker:suggestion:formatBlock',(_0x3ff673,_0x176b54,_0x170f08)=>{_0x170f08['options']['showSuggestionHighlights']&&_0x30d439({'showActiveMarkers':!0x1})(_0x3ff673,_0x176b54,_0x170f08);},{'priority':'highest'});}),_0x444179['conversion']['for']('dataDowncast')['add'](_0x5ece01=>{_0x5ece01['on']('addMarker:suggestion:attribute',(_0x170d8c,_0x1bab15,_0xcb2322)=>{_0xcb2322['options']['showSuggestionHighlights']&&_0x30d439({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x170d8c,_0x1bab15,_0xcb2322);},{'priority':'highest'});}),_0x444179['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1bd1bb,_0x5a63db)=>{if(_0x5a63db['options']['showSuggestionHighlights']){const {id:_0x953c72,authorId:_0xeb7cb7}=this['_splitMarkerName'](_0x1bd1bb);return _0x1bd1bb['includes'](':split')||_0x1bd1bb['includes'](':merge')?{'group':'suggestion','name':_0x1bd1bb['substr'](0xb),'attributes':{'data-suggestion':_0x953c72,'data-author-id':_0xeb7cb7}}:null;}return{'group':'suggestion','name':_0x1bd1bb['substr'](0xb)};}}),_0x444179['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1c0d45,{writer:_0x7798b6})=>{let _0x503035='suggestion:'+_0x1c0d45['getAttribute']('suggestion-type')+':'+_0x1c0d45['getAttribute']('id');return _0x1c0d45['getAttribute']('marker-count')&&(_0x503035+=':'+_0x1c0d45['getAttribute']('marker-count')),_0x7798b6['createElement']('$marker',{'data-name':_0x503035});}}),_0x444179['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x444179['conversion']['for']('editingDowncast')['add'](_0x482258=>{_0x482258['on']('addMarker:suggestion:formatBlock',_0x30d439(),{'priority':'high'});}),_0x444179['conversion']['for']('editingDowncast')['add'](_0x121aa0=>{_0x121aa0['on']('addMarker:suggestion:attribute',_0x30d439({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x444179['conversion']['for']('editingDowncast')['add'](_0x177023=>{_0x177023['on']('removeMarker:suggestion:formatBlock',(_0x5141a1,_0x53a4a5,_0x39b347)=>{const _0x3d40a0=_0x39b347['mapper']['markerNameToElements'](_0x53a4a5['markerName']);if(_0x3d40a0){for(const _0x5a6b4f of _0x3d40a0)_0x5a6b4f['getCustomProperty']('addHighlight')||(_0x39b347['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a6b4f),_0x39b347['writer']['removeAttribute']('data-suggestion',_0x5a6b4f),_0x39b347['writer']['removeAttribute']('data-author-id',_0x5a6b4f),_0x39b347['mapper']['unbindElementFromMarkerName'](_0x5a6b4f,_0x53a4a5['markerName']));}},{'priority':'high'});}),_0x444179['conversion']['for']('editingDowncast')['add'](_0x2317e6=>{_0x2317e6['on']('removeMarker:suggestion:attribute',(_0x2597f4,_0x2cc704,_0x1c7d84)=>{const _0x36aac0=_0x1c7d84['mapper']['markerNameToElements'](_0x2cc704['markerName']);if(!_0x36aac0)return;const {id:_0x55eb53}=this['_splitMarkerName'](_0x2cc704['markerName']),_0xe76154=this['_suggestions']['get'](_0x55eb53),_0x14f55e=this['_getAttributeKey'](_0xe76154);if(this['_isBlockAttribute'](_0x14f55e)){for(const _0x39e8a9 of _0x36aac0)_0x39e8a9['getCustomProperty']('addHighlight')||(_0x1c7d84['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x39e8a9),_0x1c7d84['writer']['removeAttribute']('data-suggestion',_0x39e8a9),_0x1c7d84['writer']['removeAttribute']('data-author-id',_0x39e8a9),_0x1c7d84['mapper']['unbindElementFromMarkerName'](_0x39e8a9,_0x2cc704['markerName']));}},{'priority':'high'});}),_0x444179['model']['document']['registerPostFixer'](_0x1cefac=>{let _0x698b3d=!0x1;const _0x3a84f7=Array['from'](_0x444179['model']['document']['differ']['getChangedMarkers']()),_0x193d42=new Set();for(const {name:_0x4a74d3,data:_0x53cbc1}of _0x3a84f7){const {group:_0x96ddaa,type:_0x4b25c5,subType:_0x37d1d9,id:_0x2fd0be}=this['_splitMarkerName'](_0x4a74d3);if('suggestion'!==_0x96ddaa)continue;const _0x4bc10b=_0x37d1d9?'suggestion:'+_0x4b25c5+':'+_0x37d1d9+':'+_0x2fd0be:'suggestion:'+_0x4b25c5+':'+_0x2fd0be,_0x669cb9=_0x444179['model']['markers']['getMarkersGroup'](_0x4bc10b),_0x193295=_0x444179['model']['markers']['get'](_0x4a74d3),_0x51740d=this['_suggestions']['get'](_0x2fd0be);if(null!=_0x53cbc1['newRange']){'formatInline'==_0x4b25c5&&(_0x698b3d=_0x698b3d||Gt(_0x53cbc1['newRange'],_0x4a74d3,_0x1cefac,_0x444179['model']['schema']));const _0x568656='attribute'==_0x4b25c5&&this['_isBlockAttribute'](_0x37d1d9['split']('|')[0x0]),_0xc72f19='attribute'==_0x4b25c5&&this['_isInlineAttribute'](_0x37d1d9['split']('|')[0x0]);if(_0x53cbc1['newRange']['isCollapsed']||'$graveyard'==_0x53cbc1['newRange']['root']['rootName']||'formatBlock'==_0x4b25c5&&!Jt(_0x53cbc1['newRange'])||_0x568656&&!Jt(_0x53cbc1['newRange'])||_0xc72f19&&Kt(_0x53cbc1['newRange'])||'deletion'==_0x4b25c5&&Kt(_0x53cbc1['newRange'])||_0x193295&&Ht(_0x193295,_0x669cb9))_0x1cefac['removeMarker'](_0x4a74d3),_0x698b3d=!0x0;else{if(!_0x51740d||!_0x51740d['isInContent'])continue;if(_0x53cbc1['newRange']&&_0x53cbc1['oldRange']&&_0x53cbc1['newRange']['isEqual'](_0x53cbc1['oldRange']))continue;_0x193d42['add'](_0x51740d);}}}return _0x193d42['size']>0x0&&(_0x698b3d=!!this['_joinWithAdjacentSuggestions'](_0x193d42)||_0x698b3d),_0x698b3d;}),_0x444179['model']['document']['registerPostFixer'](_0x375902=>{let _0x18a969=!0x1;for(const _0x1de3bb of _0x444179['model']['document']['differ']['getChanges']())if('insert'==_0x1de3bb['type'])for(const _0x25df97 of this['_suggestions']['values']()){if(_0x25df97['isMultiRange']||!_0x25df97['isInContent'])continue;const _0x121030='formatBlock'==_0x25df97['type'],_0x466b33=this['_getAttributeKey'](_0x25df97),_0x1b73b1=_0x466b33&&this['_isBlockAttribute'](_0x466b33);if(!_0x121030&&!_0x1b73b1)continue;const _0x1ea9f9=_0x25df97['getFirstRange']();if(_0x1ea9f9['start']['parent']!=_0x1ea9f9['end']['parent']&&!_0x1ea9f9['end']['isAtEnd']){const _0x34cf0d=_0x444179['model']['createPositionAt'](_0x1ea9f9['start']['nodeAfter'],'end'),_0x1355a8=_0x444179['model']['createRange'](_0x1ea9f9['start'],_0x34cf0d);_0x375902['updateMarker'](_0x25df97['getFirstMarker'](),{'range':_0x1355a8}),_0x18a969=!0x0;}}return _0x18a969;}),_0x444179['model']['document']['registerPostFixer'](_0x4e45b5=>this['_processAttributeChanges'](_0x4e45b5)),_0x444179['model']['document']['registerPostFixer'](_0x2fa4fa=>!_0x2fa4fa['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2fa4fa)),_0x444179['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x444179['model']['document']['on']('change:data',(_0x107de6,_0x502eec)=>{if(!_0x502eec['isLocal']||_0x502eec['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x406c7d=_0x444179['model']['document']['differ']['getChanges']();if(0x0==_0x406c7d['length'])return;const _0x554b4c=[],_0x1c60aa=_0x406c7d['filter'](_0x320a75=>'attribute'==_0x320a75['type']),_0x428688=_0x406c7d['filter'](_0x12e811=>'insert'==_0x12e811['type']&&'$text'!=_0x12e811['name']);for(const _0x470a52 of _0x1c60aa)this['_isRegisteredAttribute'](_0x470a52['attributeKey'])&&_0x554b4c['push']({'key':_0x470a52['attributeKey'],'newValue':_0x470a52['attributeNewValue'],'oldValue':_0x470a52['attributeOldValue'],'range':qt(_0x470a52['range'],_0x444179['model'])});for(const _0xa7112 of _0x428688){if('rename'!=_0xa7112['action']&&'refresh'!=_0xa7112['action'])continue;const _0x433eda=zt(_0xa7112['position']['nodeAfter'],_0x444179['model']),_0x332c91=_0xa7112['before'];'rename'==_0xa7112['action']&&_0x554b4c['push']({'key':m,'newValue':_0xa7112['name'],'oldValue':_0x332c91['name'],'range':_0x433eda});for(const [_0x416c11,_0x1762d6]of _0x332c91['attributes']){if(!this['_isRegisteredAttribute'](_0x416c11))continue;const _0x2e5ed5=_0xa7112['attributes']['get'](_0x416c11);_0x1762d6!==_0x2e5ed5&&_0x554b4c['push']({'key':_0x416c11,'newValue':_0x2e5ed5,'oldValue':_0x1762d6,'range':_0x433eda});}for(const [_0x27bd1d,_0x34f37e]of _0xa7112['attributes'])this['_isRegisteredAttribute'](_0x27bd1d)&&(_0x332c91['attributes']['has'](_0x27bd1d)||_0x554b4c['push']({'key':_0x27bd1d,'newValue':_0x34f37e,'oldValue':null,'range':_0x433eda}));}0x0!=_0x554b4c['length']&&_0x444179['model']['enqueueChange'](_0x502eec,_0x3449b0=>{const _0xb7e020=_0x50cf13();for(const {range:_0x407801,key:_0x2a0a5e,oldValue:_0x44535a,newValue:_0x53012c}of _0x554b4c)this['markAttributeChange'](_0x407801,_0x2a0a5e,_0x44535a,_0x53012c,{'groupId':_0xb7e020});this['_reduceExistingSuggestions'](_0x3449b0,_0x554b4c);});},{'priority':'lowest'}),_0x444179['model']['markers']['on']('update:suggestion',(_0x2e26a5,_0x591876,_0x1074fd)=>{if(null==_0x1074fd){const {id:_0x14532b}=this['_splitMarkerName'](_0x591876['name']),_0x36cd15=this['_suggestions']['get'](_0x14532b);_0x36cd15&&_0x36cd15['addMarkerName'](_0x591876['name']);}}),_0x444179['model']['document']['on']('change:data',()=>{const _0x39253c=Array['from'](_0x444179['model']['document']['differ']['getChangedMarkers']())['filter'](_0x416d2b=>'suggestion'===this['_splitMarkerName'](_0x416d2b['name'])['group']);if(0x0===_0x39253c['length'])return;_0x39253c['sort']((_0x277063,_0x5bfafc)=>{const _0x3e7f1d=_0x277063['data']['oldRange'],_0x4d508b=_0x5bfafc['data']['oldRange'];return null===_0x3e7f1d&&null===_0x4d508b?0x0:null===_0x3e7f1d&&null!==_0x4d508b?-0x1:null!==_0x3e7f1d&&null===_0x4d508b?0x1:_0x3e7f1d['start']['isBefore'](_0x4d508b['start'])?-0x1:0x1;});const _0x4852ec=new Set(),_0x237606=new Set();for(const {name:_0xe57928,data:_0x35db98}of _0x39253c){const {id:_0x16b411}=this['_splitMarkerName'](_0xe57928);if(null===_0x35db98['oldRange']){const _0x3de9b1=this['_handleNewSuggestionMarker'](_0xe57928);_0x237606['add'](_0x3de9b1);}else{const _0x442d59=this['_suggestions']['get'](_0x16b411);null!==_0x35db98['newRange']||_0x442d59['isInContent']?(_0x4852ec['add'](_0x442d59['head']),_0x237606['add'](_0x442d59)):this['_removeSuggestion'](_0x442d59);}}_0x237606['size']>0x0&&this['_refreshSuggestionsChain'](_0x237606);for(const _0x46f537 of _0x4852ec)this['fire']('suggestionChanged',_0x46f537);}),_0x444179['model']['on']('applyOperation',(_0x58b9eb,_0x31a26f)=>{const _0x1b847e=_0x31a26f[0x0];if(!this['_suggestions']['size'])return;if(!_0x1b847e['isDocumentOperation'])return;if(_0x1b847e['batch']['isUndo']||!_0x1b847e['batch']['isLocal'])return;let _0x3ea854,_0x228451;switch(_0x1b847e['type']){case'insert':_0x3ea854=_0x444179['model']['createPositionAt'](_0x1b847e['position']),_0x228451=_0x3ea854['getShiftedBy'](_0x1b847e['howMany']);break;case'split':_0x3ea854=_0x444179['model']['createPositionAt'](_0x1b847e['splitPosition']),_0x228451=_0x444179['model']['createPositionAt'](_0x1b847e['moveTargetPosition']);break;case'move':_0x3ea854=_0x444179['model']['createPositionAt'](_0x1b847e['targetPosition']),_0x228451=_0x3ea854['getShiftedBy'](_0x1b847e['howMany']);break;default:return;}const _0x3a4ba0=_0x444179['model']['createRange'](_0x3ea854,_0x228451);_0x444179['model']['change'](()=>{for(const {suggestion:_0x3f6ef5,meta:_0x475872}of this['_findSuggestions'](_0x3a4ba0)){if(_0x3f6ef5['isMultiRange'])continue;if('formatInline'==_0x3f6ef5['type'])continue;const _0x1a3a25=this['_getAttributeKey'](_0x3f6ef5);if(_0x1a3a25&&this['_isBlockAttribute'](_0x1a3a25)&&'split'!=_0x1b847e['type'])continue;const _0x39c8e7=_0x3f6ef5['data']&&_0x3f6ef5['data']['multipleBlocks'];('formatBlock'!=_0x3f6ef5['type']||'split'==_0x1b847e['type']&&!_0x39c8e7)&&(_0x475872['containsRangeInObject']||'insertion'==_0x3f6ef5['type']&&_0x475872['isOwn']||_0x3f6ef5['getFirstRange']()['containsRange'](_0x3a4ba0)&&this['_breakSuggestionMarker'](_0x3f6ef5,_0x3ea854,_0x228451));}});},{'priority':'lowest'}),_0x444179['model']['on']('deleteContent',(_0x426b25,_0x4b071a)=>{const _0x1fdace=_0x4b071a[0x0],_0xcf0b08=_0x4b071a[0x1];if(_0xcf0b08&&_0xcf0b08['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1fdace['isCollapsed'])return;const _0x87d8da=_0x444179['model']['schema'],{start:_0x33a061,end:_0x4794d1}=_0x1fdace['getFirstRange'](),_0x8f174d=_0x33a061['nodeAfter']&&_0x87d8da['isLimit'](_0x33a061['nodeAfter'])?null:_0x87d8da['getNearestSelectionRange'](_0x33a061,'forward'),_0x30defc=_0x4794d1['nodeBefore']&&_0x87d8da['isLimit'](_0x4794d1['nodeBefore'])?null:_0x87d8da['getNearestSelectionRange'](_0x4794d1,'backward'),_0x32221d=_0x444179['model']['createRange'](_0x8f174d?_0x8f174d['start']:_0x33a061,_0x30defc?_0x30defc['end']:_0x4794d1);_0x444179['model']['change'](_0x5db3a8=>{this['markDeletion'](_0x32221d);const _0x350d5f=_0x444179['model']['schema']['getNearestSelectionRange'](_0x32221d['start']);_0x1fdace['is']('documentSelection')?_0x5db3a8['setSelection'](_0x350d5f):_0x1fdace['setTo'](_0x350d5f);}),_0x426b25['stop']();},{'priority':_0x4bf36d['normal']+0xa}),_0x444179['model']['on']('insertContent',(_0x77d150,_0x12be9a)=>{const _0x20d0e1=_0x12be9a[_0x12be9a['length']-0x1];_0x20d0e1&&_0x20d0e1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x444179['model']['change'](()=>{let _0x26c638=_0x444179['model']['insertContent'](_0x12be9a[0x0],_0x12be9a[0x1],_0x12be9a[0x2],{'forceDefaultExecution':!0x0});if(!_0x26c638)return;_0x77d150['return']=_0x26c638['clone']();const _0x358a85=_0x26c638['end']['nodeBefore'],_0xfdeae5=_0x444179['model']['schema'];_0x358a85&&_0xfdeae5['isBlock'](_0x358a85)&&!_0xfdeae5['isObject'](_0x358a85)&&(_0x26c638=_0x444179['model']['createRange'](_0x26c638['start'],_0x444179['model']['createPositionAt'](_0x358a85,'end'))),this['markInsertion'](_0x26c638);}),_0x77d150['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xca927d=new D(_0x444179,this['_suggestions']);_0x444179['commands']['add']('acceptSuggestion',_0xca927d),this['enableCommand']('acceptSuggestion');const _0x338145=new $(_0x444179,this['_suggestions']);_0x444179['commands']['add']('discardSuggestion',_0x338145),this['enableCommand']('discardSuggestion'),_0x444179['commands']['add']('acceptAllSuggestions',new M(_0x444179,_0xca927d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x444179['commands']['add']('discardAllSuggestions',new M(_0x444179,_0x338145,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x444179['commands']['add']('acceptSelectedSuggestions',new B(_0x444179,_0xca927d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x444179['commands']['add']('discardSelectedSuggestions',new B(_0x444179,_0x338145,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3f346c=_0x444179['plugins']['get']('CommentsRepository');this['listenTo'](_0x3f346c,'addComment',(_0x1a557c,{threadId:_0x3d4fd8})=>{const _0x3b1993=this['_suggestions']['get'](_0x3d4fd8);_0x3b1993&&_0x3b1993['commentThread']&&0x1===_0x3b1993['commentThread']['length']&&this['_updateSuggestionData'](_0x3d4fd8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3f346c,'removeComment',(_0x5c2644,{threadId:_0x299b70})=>{const _0x51c075=this['_suggestions']['get'](_0x299b70);_0x51c075&&_0x51c075['commentThread']&&!_0x51c075['commentThread']['length']&&this['_updateSuggestionData'](_0x299b70,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5a534c){const _0x3558d9=_0x2283a0([0x62,0x79,0x45,0x6d,0x32,0x4f,0x51,0x4e,0x53,0x46,0x75,0x39,0x61,0x56,0x4a,0x76,0x72,0x65,0x70,0x78,0x68,0x55,0x58,0x50,0x48,0x30,0x49,0x47,0x54,0x67,0x4b,0x7a,0x31,0x6a,0x33,0x38,0x6c,0x71,0x34,0x66,0x6f,0x63,0x77,0x74,0x69,0x41,0x73,0x42,0x52,0x44,0x59,0x37,0x4d,0x35,0x64,0x6e,0x4c,0x6b,0x57,0x5a,0x43,0x36]),_0x4c8ec8=0x15a3b94b,_0x549c2a=0x15a4d643^_0x4c8ec8,_0x20e6b4=window[_0x2283a0([0x44,0x61,0x74,0x65])][_0x2283a0([0x6e,0x6f,0x77])](),_0x499c08=_0x5a534c[_0x2283a0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a60c3=new window[(_0x2283a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46dae7=>{_0x499c08[_0x2283a0([0x6f,0x6e,0x63,0x65])](_0x2283a0([0x72,0x65,0x61,0x64,0x79]),_0x46dae7);}),_0x36cec9={[_0x2283a0([0x6b,0x74,0x79])]:_0x2283a0([0x45,0x43]),[_0x2283a0([0x75,0x73,0x65])]:_0x2283a0([0x73,0x69,0x67]),[_0x2283a0([0x63,0x72,0x76])]:_0x2283a0([0x50,0x2d,0x32,0x35,0x36]),[_0x2283a0([0x78])]:_0x2283a0([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]),[_0x2283a0([0x79])]:_0x2283a0([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]),[_0x2283a0([0x61,0x6c,0x67])]:_0x2283a0([0x45,0x53,0x32,0x35,0x36])},_0x5a6b30=_0x499c08[_0x2283a0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2283a0([0x67,0x65,0x74])](_0x2283a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x389f44(){let _0xa3fbfa,_0x2166b5=null,_0x4f84da=null;try{if(_0x5a6b30==_0x2283a0([0x47,0x50,0x4c]))return _0x2283a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa3fbfa=_0x1741db(),!_0xa3fbfa)return _0x2283a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa3fbfa[_0x2283a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f84da=_0x23c258(_0xa3fbfa[_0x2283a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa3fbfa[_0x2283a0([0x6a,0x74,0x69])])),await _0x2aa147()?_0x5af5d9()?_0x56c5ce()?_0x2283a0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ad4d9()?(_0xa3fbfa[_0x2283a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2283a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2166b5=_0x3ca8f3(_0x2283a0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa3fbfa[_0x2283a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2283a0([0x74,0x72,0x69,0x61,0x6c])&&(_0x2166b5=_0x3ca8f3(_0x2283a0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4787fe()):_0x2283a0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2283a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2283a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2283a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56c5ce(){const _0x26544f=[_0x2283a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2283a0([0x74,0x72,0x69,0x61,0x6c])][_0x2283a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3fbfa[_0x2283a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20e6b4/0x3e8:0xe10*_0x549c2a;return _0xa3fbfa[_0x2283a0([0x65,0x78,0x70])]<_0x26544f;}function _0x5af5d9(){const _0x3148fb=_0xa3fbfa[_0x2283a0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3148fb)return!0x1;if(_0x3148fb[_0x2283a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2283a0([0x2a])))return!0x0;if(_0x3148fb[_0x2283a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2283a0([0x54,0x43])))return!0x0;if(_0x3148fb[_0x2283a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2283a0([0x52,0x54,0x43]))){if(_0x227dce())return!0x0;if(_0xc5b356()||_0x3cc589())return!0x0;}return!0x1;}function _0x1ad4d9(){const _0x26602c=_0xa3fbfa[_0x2283a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26602c||0x0==_0x26602c[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xcf3ef4}=new URL(window[_0x2283a0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26602c[_0x2283a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcf3ef4))return!0x0;const _0x4c35b0=_0xcf3ef4[_0x2283a0([0x73,0x70,0x6c,0x69,0x74])](_0x2283a0([0x2e]));return _0x26602c[_0x2283a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1be93e=>_0x1be93e[_0x2283a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2283a0([0x2a])))[_0x2283a0([0x6d,0x61,0x70])](_0xd5de11=>_0xd5de11[_0x2283a0([0x73,0x70,0x6c,0x69,0x74])](_0x2283a0([0x2e])))[_0x2283a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54b2c9=>_0x54b2c9[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c35b0[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2283a0([0x6d,0x61,0x70])](_0x173548=>Array(_0x4c35b0[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x173548[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2283a0([0x66,0x69,0x6c,0x6c])](_0x173548[0x0]===_0x2283a0([0x2a])?_0x2283a0([0x2a]):'')[_0x2283a0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x173548))[_0x2283a0([0x73,0x6f,0x6d,0x65])](_0x42dbcf=>_0x4c35b0[_0x2283a0([0x65,0x76,0x65,0x72,0x79])]((_0x268b89,_0x52f53a)=>_0x42dbcf[_0x52f53a]===_0x268b89||_0x42dbcf[_0x52f53a]===_0x2283a0([0x2a])));}function _0x4787fe(){return _0x2166b5&&_0x4f84da?new window[(_0x2283a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3dd358,_0x4bd01b)=>{_0x2166b5[_0x2283a0([0x74,0x68,0x65,0x6e])](_0x3dd358,_0x4bd01b),_0x4f84da[_0x2283a0([0x74,0x68,0x65,0x6e])](_0x4d9e2f=>{_0x4d9e2f!=_0x2283a0([0x56,0x61,0x6c,0x69,0x64])&&_0x3dd358(_0x4d9e2f);},_0x4bd01b);}):_0x2166b5||_0x4f84da||_0x2283a0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23c258(_0x2b305e,_0x1ae6c1){return new window[(_0x2283a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59eea9=>{if(_0x10aaf5())return _0x59eea9(_0x2283a0([0x56,0x61,0x6c,0x69,0x64]));_0x488927(),_0x499c08[_0x2283a0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2283a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b79b9=!0x1;const _0x4dcb9f=_0x50cf13();function _0x8485c7(_0x23226c){return!!_0x23226c&&(typeof _0x23226c===_0x2283a0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23226c===_0x2283a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23226c[_0x2283a0([0x74,0x68,0x65,0x6e])]===_0x2283a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23226c[_0x2283a0([0x63,0x61,0x74,0x63,0x68])]===_0x2283a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c531a(_0x2ccc10){_0x5fb06a(_0x2ccc10)[_0x2283a0([0x74,0x68,0x65,0x6e])](_0x29fc86=>{if(!_0x29fc86||_0x29fc86[_0x2283a0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2283a0([0x6f,0x6b]))return _0x2283a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2422e6(_0x487b3d(_0x4dcb9f+_0x1ae6c1))!=_0x29fc86[_0x2283a0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2283a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2283a0([0x56,0x61,0x6c,0x69,0x64]);})[_0x2283a0([0x74,0x68,0x65,0x6e])](_0x49f3b3=>(_0xb9a938(),_0x49f3b3),()=>{const _0x4062b=_0x1601ef();return null==_0x4062b?(_0xb9a938(),_0x2283a0([0x56,0x61,0x6c,0x69,0x64])):_0x2283a0(_0x20e6b4-_0x4062b>(0x31af3d4b^_0x4c8ec8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2283a0([0x74,0x68,0x65,0x6e])](_0x59eea9)[_0x2283a0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x59eea9(_0x2283a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59553b=0x159557cb^_0x4c8ec8;function _0xb9a938(){const _0x6ec9eb=_0x2283a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2422e6(_0x487b3d(_0x2b305e)),_0x270098=_0x1c9833(_0x2422e6(window[_0x2283a0([0x4d,0x61,0x74,0x68])][_0x2283a0([0x63,0x65,0x69,0x6c])](_0x20e6b4/_0x59553b)));window[_0x2283a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2283a0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6ec9eb,_0x270098);}function _0x1601ef(){const _0x2f29a9=_0x2283a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2422e6(_0x487b3d(_0x2b305e)),_0xf3c7fc=window[_0x2283a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2283a0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f29a9);return _0xf3c7fc?window[_0x2283a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c9833(_0xf3c7fc),0x10)*_0x59553b:null;}function _0x5fb06a(_0x5030a7){return new window[(_0x2283a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe8be5b,_0x246a2e)=>{_0x5030a7[_0x2283a0([0x74,0x68,0x65,0x6e])](_0xe8be5b,_0x246a2e),window[_0x2283a0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x246a2e,0x15a26d8b^_0x4c8ec8);});}}_0x499c08[_0x2283a0([0x6f,0x6e])](_0x2283a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c2943,_0x94feb0)=>{if(_0x94feb0[0x0]!=_0x2b305e)return _0x59eea9(_0x2283a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x94feb0[0x1]={..._0x94feb0[0x1],[_0x2283a0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4dcb9f};},{[_0x2283a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2283a0([0x68,0x69,0x67,0x68])}),_0x499c08[_0x2283a0([0x6f,0x6e])](_0x2283a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x52a89d=>{_0x8485c7(_0x52a89d[_0x2283a0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b79b9=!0x0,_0x4c531a(_0x52a89d[_0x2283a0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2283a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2283a0([0x6c,0x6f,0x77])}),_0x2a60c3[_0x2283a0([0x74,0x68,0x65,0x6e])](()=>{_0x2b79b9||_0x59eea9(_0x2283a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10aaf5(){return _0x499c08[_0x2283a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2283a0([0x76,0x69,0x65,0x77])][_0x2283a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2283a0([0x61,0x75,0x74,0x6f]);}function _0x488927(){_0x499c08[_0x2283a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2283a0([0x76,0x69,0x65,0x77])][_0x2283a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2283a0([0x61,0x75,0x74,0x6f]);}}function _0x3ca8f3(_0x3d97e5){const _0x1b8ee0=[new window[(_0x2283a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x571e39=>setTimeout(_0x571e39,0x15aa8787^_0x4c8ec8)),_0x2a60c3[_0x2283a0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2283a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17190f=>{let _0x4b92fc=0x0;_0x499c08[_0x2283a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2283a0([0x6f,0x6e])](_0x2283a0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f3f53,_0x1e0536)=>{_0x1e0536[0x0][_0x2283a0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4b92fc++,_0x4b92fc==(0x15a3b8b3^_0x4c8ec8)&&(_0x17190f(),_0x1f3f53[_0x2283a0([0x6f,0x66,0x66])]());});}))];return window[_0x2283a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2283a0([0x72,0x61,0x63,0x65])](_0x1b8ee0)[_0x2283a0([0x74,0x68,0x65,0x6e])](()=>_0x3d97e5);}async function _0x1c9f3f(){await _0x2a60c3,_0x499c08[_0x2283a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2283a0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38892f,_0x499c08[_0x2283a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2283a0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38892f,_0x499c08[_0x2283a0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2283a0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x227dce(){return _0x17bdca(_0x2283a0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5219d9(_0x2283a0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2283a0([0x73,0x74,0x61,0x74,0x65])]==_0x2283a0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xc5b356(){return _0x17bdca(_0x2283a0([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 _0x3cc589(){return _0x17bdca(_0x2283a0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x10b94d(_0x52a5f3){const _0x44341e=_0x389270();_0x499c08[_0x44341e]=_0x2283a0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52a5f3,_0x52a5f3!=_0x2283a0([0x56,0x61,0x6c,0x69,0x64])&&_0x1c9f3f();}function _0x389270(){const _0x31a6d7=window[_0x2283a0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2283a0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2283a0([0x6e,0x6f,0x77])]())[_0x2283a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2283a0([0x2e]),'');let _0x3563e5=_0x2283a0([0x62]);for(let _0x425923=0x0;_0x425923<_0x31a6d7[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x425923+=0x2){let _0x5d782b=window[_0x2283a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31a6d7[_0x2283a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x425923,_0x425923+0x2));_0x5d782b>=_0x3558d9[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d782b-=_0x3558d9[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3563e5+=_0x3558d9[_0x5d782b];}return _0x3563e5;}function _0x1741db(){const _0x2d88e1=_0x5a6b30[_0x2283a0([0x73,0x70,0x6c,0x69,0x74])](_0x2283a0([0x2e]));if(0x3!=_0x2d88e1[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ea46e(_0x2d88e1[0x1]);function _0x3ea46e(_0x53ff2e){const _0x2f0a24=_0x2544fd(_0x53ff2e);return _0x2f0a24&&_0x48e0a1()?_0x2f0a24:null;function _0x48e0a1(){const _0x4a4371=_0x2f0a24[_0x2283a0([0x6a,0x74,0x69])],_0x23d1fb=window[_0x2283a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a4371[_0x2283a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a4371[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3bd817={..._0x2f0a24,[_0x2283a0([0x6a,0x74,0x69])]:_0x4a4371[_0x2283a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a4371[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3bd817[_0x2283a0([0x76,0x63])],_0x487b3d(_0x3bd817)==_0x23d1fb;}}}async function _0x2aa147(){let _0x5e7611=!0x0;try{const _0x1e33c=_0x5a6b30[_0x2283a0([0x73,0x70,0x6c,0x69,0x74])](_0x2283a0([0x2e])),[_0x2b9cf0,_0x333aa6,_0x175341]=_0x1e33c;return _0x23f19a(_0x2b9cf0),await _0x42fbd5(_0x2b9cf0,_0x333aa6,_0x175341),_0x5e7611;}catch{return!0x1;}function _0x23f19a(_0x213a78){const _0x2bb78b=_0x2544fd(_0x213a78);_0x2bb78b&&_0x2bb78b[_0x2283a0([0x61,0x6c,0x67])]==_0x2283a0([0x45,0x53,0x32,0x35,0x36])||(_0x5e7611=!0x1);}async function _0x42fbd5(_0x42cb95,_0x581e63,_0xf0fd7b){const _0x36e718=window[_0x2283a0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2283a0([0x66,0x72,0x6f,0x6d])](_0xb49a8(_0xf0fd7b),_0x5a611e=>_0x5a611e[_0x2283a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x110cff=new window[(_0x2283a0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2283a0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x42cb95+_0x2283a0([0x2e])+_0x581e63),_0x465692=window[_0x2283a0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2283a0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x465692)return;const _0x51682d=await _0x465692[_0x2283a0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2283a0([0x6a,0x77,0x6b]),_0x36cec9,{[_0x2283a0([0x6e,0x61,0x6d,0x65])]:_0x2283a0([0x45,0x43,0x44,0x53,0x41]),[_0x2283a0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2283a0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2283a0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x465692[_0x2283a0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2283a0([0x6e,0x61,0x6d,0x65])]:_0x2283a0([0x45,0x43,0x44,0x53,0x41]),[_0x2283a0([0x68,0x61,0x73,0x68])]:{[_0x2283a0([0x6e,0x61,0x6d,0x65])]:_0x2283a0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51682d,_0x36e718,_0x110cff)||(_0x5e7611=!0x1);}}function _0x2544fd(_0x3c4fc5){return _0x3c4fc5[_0x2283a0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2283a0([0x65,0x79]))?JSON[_0x2283a0([0x70,0x61,0x72,0x73,0x65])](_0xb49a8(_0x3c4fc5)):null;}function _0xb49a8(_0x5ce0cf){return window[_0x2283a0([0x61,0x74,0x6f,0x62])](_0x5ce0cf[_0x2283a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2283a0([0x2b]))[_0x2283a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2283a0([0x2f])));}function _0x487b3d(_0x119d85){let _0x54458f=0x1505;function _0x3e6c61(_0x38d4c4){for(let _0x2dcaed=0x0;_0x2dcaed<_0x38d4c4[_0x2283a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2dcaed++){const _0x59510a=_0x38d4c4[_0x2283a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2dcaed);_0x54458f=(_0x54458f<<0x5)+_0x54458f+_0x59510a,_0x54458f&=_0x54458f;}}function _0x4fb886(_0x563285){Array[_0x2283a0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x563285)?_0x563285[_0x2283a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fb886):_0x563285&&typeof _0x563285==_0x2283a0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2283a0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x563285)[_0x2283a0([0x73,0x6f,0x72,0x74])]()[_0x2283a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x153315,_0x418072])=>{_0x3e6c61(_0x153315),_0x4fb886(_0x418072);}):_0x3e6c61(window[_0x2283a0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x563285));}return _0x4fb886(_0x119d85),_0x54458f>>>0x0;}function _0x2422e6(_0x1a9bd5){return _0x1a9bd5[_0x2283a0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2283a0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2283a0([0x30]));}function _0x1c9833(_0x5c201d){return _0x5c201d[_0x2283a0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2283a0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2283a0([0x6a,0x6f,0x69,0x6e])]('');}function _0x17bdca(_0xa00198){return _0x499c08[_0x2283a0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2283a0([0x68,0x61,0x73])](_0xa00198);}function _0x5219d9(_0x34d30a){return _0x499c08[_0x2283a0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2283a0([0x67,0x65,0x74])](_0x34d30a);}function _0x38892f(){}function _0x2283a0(_0x504670){return _0x504670['map'](_0x50e74d=>String['fromCharCode'](_0x50e74d))['join']('');}_0x10b94d(await _0x389f44());}(this);}set['adapter'](_0x3816be){if(this['_adapter'])throw new _0xa020e('track-changes-adapter-already-set',this);this['_adapter']=_0x3816be;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1aa304=!0x1,toJSON:_0x427a4c=!0x1}={}){const _0x5c2cf9=[];for(const _0x2eff79 of this['_suggestions']['values']())_0x1aa304&&!_0x2eff79['isInContent']||_0x5c2cf9['push'](_0x2eff79);return _0x427a4c?_0x5c2cf9['map'](_0x328496=>_0x328496['toJSON']()):_0x5c2cf9;}['getSuggestion'](_0x3ce079){const _0x573318=this['_suggestions']['get'](_0x3ce079);if(!_0x573318)throw new _0xa020e('track-changes-suggestion-not-found',this);return _0x573318;}['hasSuggestion'](_0x43e28c){return this['_suggestions']['has'](_0x43e28c);}['addSuggestionData'](_0x1ae7cd){const {authorId:_0xf8988c,id:_0x1b01d4,originalSuggestionId:_0x533933,attributes:_0x2e606c}=_0x1ae7cd,[_0x330704,_0x57a809]=_0x1ae7cd['type']['split'](':'),_0x5286cc=this['_suggestions']['get'](_0x1b01d4)||this['_createSuggestion'](_0x330704,_0x57a809,_0x1b01d4,_0xf8988c,_0x2e606c,_0x533933);if(this['_addThreadToSuggestion'](_0x5286cc),this['_checkSuggestionCorrectness'](_0x5286cc,_0x330704,_0x57a809||null,_0xf8988c),_0x5286cc['createdAt']=_0x1ae7cd['createdAt'],_0x5286cc['_isDataLoaded']=!0x0,_0x2e606c&&_0x2e606c['@external']){const _0x4921a4=_0x2e606c['@external'],_0x61abdc=this['_getExternalAuthor'](_0x4921a4['authorName']);_0x5286cc['authoredAt']=_0x4921a4['createdAt'],_0x5286cc['author']=_0x61abdc,_0x5286cc['isExternal']=!0x0;}else _0x5286cc['authoredAt']=_0x1ae7cd['createdAt'];switch(_0x1ae7cd['data']&&(_0x5286cc['data']=_0x1ae7cd['data']),_0x1ae7cd['attributes']&&(_0x5286cc['attributes']=_0x1ae7cd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5286cc['_saved']=!0x0),this['_suggestionState']['get'](_0x5286cc)){case'notReady':this['_suggestionState']['set'](_0x5286cc,'dataReady');break;case'markerReady':_0x5286cc['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5286cc])),this['_refreshSuggestionsChain'](new Set([_0x5286cc])),this['_suggestionState']['set'](_0x5286cc,'ready'),this['fire']('suggestionLoaded',_0x5286cc)):this['_suggestionState']['set'](_0x5286cc,'removed');}return _0x5286cc;}['acceptSuggestion'](_0x1525f3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xad9aa1 of _0x1525f3['getAllAdjacentSuggestions']())_0xad9aa1['accept']();});});}['discardSuggestion'](_0x51fd08){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4dd8a8 of _0x51fd08['getAllAdjacentSuggestions']())_0x4dd8a8['discard']();});});}['enableCommand'](_0x44f655,_0x81ae85){const _0x4c1f9b=this['editor']['commands']['get'](_0x44f655);if(!_0x4c1f9b)throw new _0xa020e('track-changes-command-not-found',this,{'commandName':_0x44f655});if(this['_enabledCommands']['has'](_0x4c1f9b))throw new _0xa020e('track-changes-enable-command-twice',this,{'commandName':_0x44f655});this['_enabledCommands']['add'](_0x4c1f9b),_0x81ae85&&_0x4c1f9b['on']('execute',(_0x1815eb,_0x3e3c44)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3e3c44['length']>0x0&&_0x3e3c44[_0x3e3c44['length']-0x1]&&_0x3e3c44[_0x3e3c44['length']-0x1]['forceDefaultExecution']?_0x3e3c44['pop']():(_0x1815eb['return']=_0x81ae85((..._0x20f65d)=>_0x4c1f9b['execute'](..._0x20f65d,{'forceDefaultExecution':!0x0}),..._0x3e3c44),_0x1815eb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x18994d){let _0x18147d,_0x3d349a;const _0x456682=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x18147d=_0x18994d();}catch(_0x54adb9){_0x3d349a=_0x54adb9;}return _0x456682||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3d349a&&_0xa020e['rethrowUnexpectedError'](_0x3d349a,this),_0x18147d;}['markInsertion'](_0x6c83f3,_0x4b6a0f=null,_0x53616d={}){if(_0x6c83f3['isCollapsed'])return null;const _0x360a00=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x53616d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x260c9c,meta:_0x357c71}of this['_findSuggestions'](_0x6c83f3,'insertion'))if(_0x357c71['isOwn']){if(!_0x357c71['isNextTo']){if(_0x357c71['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x260c9c,_0x53616d))continue;return _0x260c9c;}if(Xt(_0x260c9c,_0x53616d))return _0x260c9c;this['_breakSuggestionMarker'](_0x260c9c,_0x6c83f3['start'],_0x6c83f3['end']);break;}if(_0x4b6a0f==_0x260c9c['subType']&&Xt(_0x260c9c,_0x53616d)){const _0x401f85=_0x260c9c['getFirstRange']();return _0x401f85['start']['isEqual'](_0x6c83f3['end'])?this['_setSuggestionRange'](_0x260c9c,this['_model']['createRange'](_0x6c83f3['start'],_0x401f85['end'])):this['_setSuggestionRange'](_0x260c9c,this['_model']['createRange'](_0x401f85['start'],_0x6c83f3['end'])),_0x260c9c;}}const _0x52b4d8=_0x50cf13(),_0x12f384=_0x360a00['id'],_0x14716d=_0x4b6a0f?'insertion:'+_0x4b6a0f:'insertion',_0x3bf1b1=this['_setSuggestionData']({'id':_0x52b4d8,'type':_0x14716d,'createdAt':new Date(),'authorId':_0x12f384,'attributes':_0x53616d});return this['_addSuggestionMarker'](_0x14716d,_0x52b4d8,_0x12f384,_0x6c83f3),_0x3bf1b1;}['markMultiRangeInsertion'](_0xc4c9fb,_0x20ac1d='multi',_0x3f3a0f={}){const _0x173580=this['editor']['plugins']['get']('Users')['me'],_0x566dad=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x20ac1d,'join');this['_trackingSessionId']&&(_0x3f3a0f['trackingSessionId']=this['_trackingSessionId']);for(const _0x5d9ec5 of this['getSuggestions']())if(_0x5d9ec5['author']['id']==_0x173580['id']&&'insertion'==_0x5d9ec5['type']&&_0x5d9ec5['subType']==_0x20ac1d&&Xt(_0x5d9ec5,_0x3f3a0f)&&(_0x566dad(_0x5d9ec5['getRanges'](),_0xc4c9fb)||_0x566dad(_0xc4c9fb,_0x5d9ec5['getRanges']()))){for(const _0xb01423 of _0xc4c9fb)_0x5d9ec5['addRange'](_0xb01423);return _0x5d9ec5;}for(const {suggestion:_0x5c148e,meta:_0x28f42d}of this['_findSuggestions'](_0xc4c9fb,'insertion')){if(!_0x28f42d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x28f42d['containsRangeInObject'])continue;if(!Xt(_0x5c148e,_0x3f3a0f))continue;let _0x3d768d=!0x0;for(const _0x3e3196 of _0x5c148e['getRanges']())for(const _0x197b06 of _0xc4c9fb)if(!_0x3e3196['containsRange'](_0x197b06)){_0x3d768d=!0x1;break;}if(_0x3d768d)return _0x5c148e;}const _0x147fb=_0x50cf13(),_0x180a10=_0x173580['id'],_0x1d6178='insertion:'+_0x20ac1d,_0x2a20e2=this['_setSuggestionData']({'id':_0x147fb,'type':_0x1d6178,'createdAt':new Date(),'authorId':_0x180a10,'attributes':_0x3f3a0f});for(const _0x50cf00 of _0xc4c9fb)this['_addSuggestionMarker'](_0x1d6178,_0x147fb,_0x180a10,_0x50cf00,T['getMultiRangeId']());return _0x2a20e2;}['markInlineFormat'](_0x26437d,_0x52df94,_0x1bac1d=null,_0x105b6f={}){if(_0x1bac1d=_0x1bac1d||Lt(_0x52df94),_0x26437d['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x105b6f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xd7d432=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1bac1d,'accept');return this['forceDefaultExecution'](()=>_0xd7d432([_0x26437d],_0x52df94,_0x105b6f)),null;}const _0x5f2967=this['editor']['plugins']['get']('Users')['me'],_0x23bfbf=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2765da,meta:_0x4855a1}of this['_findSuggestions'](_0x26437d,'insertion'))_0x4855a1['isOwn']&&!_0x4855a1['isInsideObject']&&_0x23bfbf['push'](..._0x2765da['getRanges']());}const _0xc2d77e=function(_0x5af4ea,_0x4debea){const _0x2b2bcd=[];for(const _0x2e3a32 of _0x4debea){const _0x4d187e=_0x5af4ea['getIntersection'](_0x2e3a32);_0x4d187e&&_0x2b2bcd['push'](_0x4d187e);}return _0x2b2bcd;}(_0x26437d,_0x23bfbf),_0x3e7d73=function(_0xfe5ba3,_0xb4e9f5){const _0x44131d=[_0xfe5ba3];for(const _0x474509 of _0xb4e9f5){let _0xf4e51d=0x0;for(;_0xf4e51d<_0x44131d['length'];){const _0x4ce2d7=_0x44131d[_0xf4e51d]['getDifference'](_0x474509);_0x44131d['splice'](_0xf4e51d,0x1,..._0x4ce2d7),_0xf4e51d+=_0x4ce2d7['length'];}}return _0x44131d;}(_0x26437d,_0x23bfbf);_0xc2d77e['length']&&this['_model']['change'](()=>{for(const _0x243fa6 of _0xc2d77e){const _0x2750d8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1bac1d,'accept');this['forceDefaultExecution'](()=>_0x2750d8([_0x243fa6],_0x52df94,_0x105b6f));}});for(const _0xbc7500 of _0x3e7d73){let _0x18b294=null,_0x23c4c6=_0xbc7500['start'],_0x170dfa=_0xbc7500['end'];for(const {suggestion:_0x1144e8,meta:_0x4d38bc}of this['_findSuggestions'](_0xbc7500,'formatInline')){if(!_0x4d38bc['isOwn'])continue;if(_0x1144e8['subType']!=_0x1bac1d)continue;if(!Xt(_0x1144e8,_0x105b6f))continue;const _0x3c5f2a=_0x1144e8['getFirstRange']();if(_0x3c5f2a['containsRange'](_0xbc7500,!0x0))return null;_0x23c4c6=_0x23c4c6['isBefore'](_0x3c5f2a['start'])?_0x23c4c6:_0x3c5f2a['start'],_0x170dfa=_0x170dfa['isAfter'](_0x3c5f2a['end'])?_0x170dfa:_0x3c5f2a['end'],_0x18b294?_0x3c5f2a['start']['isBefore'](_0x18b294['getFirstRange']()['start'])?(_0x18b294['removeMarkers'](),_0x18b294=_0x1144e8):_0x1144e8['removeMarkers']():_0x18b294=_0x1144e8;}const _0x3b5e9e=this['_model']['createRange'](_0x23c4c6,_0x170dfa);if(_0x18b294)this['_setSuggestionRange'](_0x18b294,_0x3b5e9e);else{const _0x2c990b=_0x50cf13(),_0x5d4722=_0x5f2967['id'];this['_setSuggestionData']({'id':_0x2c990b,'type':'formatInline:'+_0x1bac1d,'data':_0x52df94,'createdAt':new Date(),'authorId':_0x5d4722,'attributes':_0x105b6f}),this['_addSuggestionMarker']('formatInline:'+_0x1bac1d,_0x2c990b,_0x5d4722,_0x3b5e9e);}}return null;}['markBlockFormat'](_0x584cf4,_0x2805d0,_0x27be9c=[],_0x4ef438=null,_0x4d1f37={}){_0x2805d0['formatGroupId']||(_0x2805d0['formatGroupId']=_0x2805d0['commandName']),_0x2805d0['multipleBlocks']=_0x584cf4['is']('range'),_0x4ef438=_0x4ef438||Lt(_0x2805d0);const _0x5843b6=_0x27be9c['map'](_0x5a9433=>zt(_0x5a9433,this['_model'])),_0x4ee4aa=_0x584cf4['is']('range')?_0x584cf4:zt(_0x584cf4,this['_model']);if(this['_trackingSessionId']&&(_0x4d1f37['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x363e69=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ef438,'accept');return this['forceDefaultExecution'](()=>_0x363e69([_0x4ee4aa],_0x2805d0,_0x4d1f37)),null;}_0x5843b6['push'](_0x4ee4aa);let _0x589fd1=!0x0;for(const _0x10977f of _0x5843b6)if(!this['_rangeIsInLocalUserInsertion'](_0x10977f)){_0x589fd1=!0x1;break;}if(_0x589fd1&&'always'!==this['_trackFormatChanges']){const _0x1d0396=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ef438,'accept');return this['forceDefaultExecution'](()=>_0x1d0396([_0x4ee4aa],_0x2805d0,_0x4d1f37)),null;}let _0x278dd9=null,_0x350338=_0x4ee4aa['start'],_0x4b4913=_0x4ee4aa['end'];for(const {suggestion:_0x5854d2,meta:_0x32cb29}of this['_findSuggestions'](_0x4ee4aa,'formatBlock')){if(!_0x32cb29['isOwn'])continue;if(_0x32cb29['isNextTo']||_0x32cb29['containsRangeInObject']||_0x32cb29['isInsideObject'])continue;if(_0x5854d2['data']['formatGroupId']!=_0x2805d0['formatGroupId'])continue;if(!Xt(_0x5854d2,_0x4d1f37))continue;const _0x31bc75=_0x5854d2['getFirstRange']();if(_0x5854d2['subType']==_0x4ef438){if(_0x31bc75['containsRange'](_0x4ee4aa,!0x0))return null;_0x350338=_0x350338['isBefore'](_0x31bc75['start'])?_0x350338:_0x31bc75['start'],_0x4b4913=_0x4b4913['isAfter'](_0x31bc75['end'])?_0x4b4913:_0x31bc75['end'],_0x278dd9?_0x31bc75['start']['isBefore'](_0x278dd9['getFirstRange']()['start'])?(_0x278dd9['removeMarkers'](),_0x278dd9=_0x5854d2):_0x5854d2['removeMarkers']():_0x278dd9=_0x5854d2;}else{const _0x163899=_0x4ee4aa['getIntersection'](_0x31bc75);this['_cutOutSuggestionMarker'](_0x5854d2,_0x163899);}}const _0x30fdd3=this['editor']['plugins']['get']('Users')['me'],_0xa8c83f=_0x50cf13(),_0x108e4a=_0x30fdd3['id'];if(_0x278dd9)return this['_setSuggestionRange'](_0x278dd9,this['_model']['createRange'](_0x350338,_0x4b4913)),_0x278dd9;{const _0x450c64=this['_setSuggestionData']({'id':_0xa8c83f,'type':'formatBlock:'+_0x4ef438,'data':_0x2805d0,'createdAt':new Date(),'authorId':_0x108e4a,'attributes':_0x4d1f37});return this['_addSuggestionMarker']('formatBlock:'+_0x4ef438,_0xa8c83f,_0x108e4a,this['_model']['createRange'](_0x350338,_0x4b4913)),_0x450c64;}}['markMultiRangeBlockFormat'](_0x55bcd1,_0x1a0410,_0xad305a=[],_0x4d5b73=null,_0x2fb316={}){_0x1a0410['formatGroupId']||(_0x1a0410['formatGroupId']=_0x1a0410['commandName']);const _0x3c6cb1=_0x55bcd1[0x0];_0x1a0410['multipleBlocks']=_0x3c6cb1['is']('range'),_0x4d5b73=_0x4d5b73||Lt(_0x1a0410);const _0x3ebfe5=_0xad305a['map'](_0x370deb=>zt(_0x370deb,this['_model'])),_0x49b6f7=_0x3c6cb1['is']('range')?_0x55bcd1:_0x55bcd1['map'](_0x3f4101=>zt(_0x3f4101,this['_model']));if(this['_trackingSessionId']&&(_0x2fb316['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x43b0fa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d5b73,'accept');return this['forceDefaultExecution'](()=>_0x43b0fa(_0x49b6f7,_0x1a0410,_0x2fb316)),null;}_0x3ebfe5['push'](..._0x49b6f7);let _0x3ad937=!0x0;for(const _0x21d9c6 of _0x3ebfe5)if(!this['_rangeIsInLocalUserInsertion'](_0x21d9c6)){_0x3ad937=!0x1;break;}if(_0x3ad937&&'always'!==this['_trackFormatChanges']){const _0x3c6e19=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d5b73,'accept');return this['forceDefaultExecution'](()=>_0x3c6e19(_0x49b6f7,_0x1a0410,_0x2fb316)),null;}const _0x2b2662=this['editor']['plugins']['get']('Users')['me'];for(const _0x5887d2 of this['getSuggestions']()){const _0x44c4d0=_0x5887d2['data'];if(_0x5887d2['author']['id']!=_0x2b2662['id'])continue;if('formatBlock'!=_0x5887d2['type']||_0x44c4d0['formatGroupId']!=_0x1a0410['formatGroupId'])continue;if(!Xt(_0x5887d2,_0x2fb316))continue;const _0x4accdc=_0x5887d2['subType']==_0x4d5b73;for(let _0x5c7e0e=0x0;_0x5c7e0e<_0x49b6f7['length'];_0x5c7e0e++){const _0xf734d0=_0x49b6f7[_0x5c7e0e];for(const _0x1cf464 of _0x5887d2['getMarkers']()){const _0x24bde7=_0x1cf464['getRange']();if(_0xf734d0['isEqual'](_0x24bde7)){_0x4accdc?(_0x49b6f7['splice'](_0x5c7e0e,0x1),_0x5c7e0e--):_0x5887d2['removeMarker'](_0x1cf464['name']);break;}}}}if(0x0==_0x49b6f7['length'])return null;const _0x3abb68=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d5b73,'join');for(const _0x3c514d of this['getSuggestions']()){const _0x37deb9=_0x3c514d['data'];if(_0x3c514d['author']['id']==_0x2b2662['id']&&('formatBlock'==_0x3c514d['type']&&_0x37deb9['formatGroupId']==_0x1a0410['formatGroupId']&&_0x3c514d['subType']==_0x4d5b73&&Xt(_0x3c514d,_0x2fb316)&&(_0x3abb68(_0x3c514d['getRanges'](),_0x49b6f7)||_0x3abb68(_0x49b6f7,_0x3c514d['getRanges']())))){for(const _0x410fd0 of _0x49b6f7)_0x3c514d['addRange'](_0x410fd0);return _0x3c514d;}}const _0x4b4c47=_0x50cf13(),_0x2b77a5=_0x2b2662['id'],_0x1b5aa3='formatBlock:'+_0x4d5b73,_0x3bd906=this['_setSuggestionData']({'id':_0x4b4c47,'type':_0x1b5aa3,'data':_0x1a0410,'createdAt':new Date(),'authorId':_0x2b77a5,'attributes':_0x2fb316});for(const _0x5f06d7 of _0x49b6f7)this['_addSuggestionMarker'](_0x1b5aa3,_0x4b4c47,_0x2b77a5,_0x5f06d7,T['getMultiRangeId']());return _0x3bd906;}['markDeletion'](_0x149b97,_0x757540=null,_0x4ffdb7={}){if(_0x149b97['isCollapsed'])return null;const _0x12abf5=this['editor']['plugins']['get']('Users')['me'],_0x446a11=new _0xb0dd32(_0x149b97['start'],_0x149b97['end']);this['_trackingSessionId']&&(_0x4ffdb7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x555b49,meta:_0x39da13}of this['_findSuggestions'](_0x446a11,'insertion'))if(_0x39da13['isOwn']&&!_0x39da13['isNextTo']){if(_0x555b49['isMultiRange']){const _0x5707d5=_0x555b49['getRanges']()['filter'](_0x4b3bc5=>'$graveyard'!=_0x4b3bc5['root']['rootName']);_0x5707d5['every'](_0x4bc499=>_0x446a11['containsRange'](_0x4bc499,!0x0))&&_0x555b49['discard']();if(_0x5707d5['some'](_0xe3c6db=>_0xe3c6db['containsRange'](_0x446a11,!0x0))){const _0x2aff75=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x757540,'accept');return this['forceDefaultExecution'](()=>_0x2aff75([_0x446a11],null,_0x4ffdb7)),null;}}else{const _0x2ef2b8=_0x446a11['getIntersection'](_0x555b49['getFirstRange']());null!==_0x2ef2b8&&_0x555b49['_onDiscard']([_0x2ef2b8],null,_0x4ffdb7);}}if(_0x446a11['detach'](),_0x446a11['isCollapsed']||'$graveyard'==_0x446a11['root']['rootName'])return null;let _0x34c6c1=null,_0x5c60ae=_0x446a11['start'],_0x58dff4=_0x446a11['end'];const _0x413c87=this['_findSuggestions'](_0x446a11,'deletion');for(const {suggestion:_0x1d9938,meta:_0xd3efdc}of _0x413c87){const _0x4b761e=this['_model']['createRange'](_0x5c60ae,_0x58dff4);if(_0xd3efdc['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd3efdc['containsRangeInObject']&&!_0xd3efdc['isInsideObject'])){if(_0x1d9938['isMultiRange']){if(!Xt(_0x1d9938,_0x4ffdb7))continue;let _0x2def5d=!0x0;for(const _0x29ca75 of _0x1d9938['getRanges']()){if(_0x29ca75['containsRange'](_0x4b761e,!0x0))return _0x1d9938;_0x4b761e['containsRange'](_0x29ca75)||(_0x2def5d=!0x1);}_0x2def5d&&_0x1d9938['discard']();}else{const _0x54ac25=_0x1d9938['getFirstRange']();if(_0x54ac25['containsRange'](_0x4b761e,!0x0))return _0x1d9938;if(!Xt(_0x1d9938,_0x4ffdb7)){_0x4b761e['containsRange'](_0x54ac25)?_0x1d9938['removeMarkers']():_0x54ac25['containsPosition'](_0x5c60ae)?_0x5c60ae=_0x54ac25['end']:_0x54ac25['containsPosition'](_0x58dff4)&&(_0x58dff4=_0x54ac25['start']);continue;}_0x5c60ae=_0x5c60ae['isBefore'](_0x54ac25['start'])?_0x5c60ae:_0x54ac25['start'],_0x58dff4=_0x58dff4['isAfter'](_0x54ac25['end'])?_0x58dff4:_0x54ac25['end'],_0x4ffdb7=Object['assign']({},_0x1d9938['attributes']),_0x34c6c1?_0x54ac25['start']['isBefore'](_0x34c6c1['getFirstRange']()['start'])?(_0x34c6c1['removeMarkers'](),_0x34c6c1=_0x1d9938):_0x1d9938['removeMarkers']():_0x34c6c1=_0x1d9938;}}}if(_0x34c6c1)return this['_setSuggestionRange'](_0x34c6c1,this['_model']['createRange'](_0x5c60ae,_0x58dff4)),_0x34c6c1;{const _0x1d72e0=_0x50cf13(),_0xf4a181=this['_model']['createRange'](_0x5c60ae,_0x58dff4),_0x2f99de=_0x12abf5['id'],_0x215811=_0x757540?'deletion:'+_0x757540:'deletion',_0x4afdc7=this['_setSuggestionData']({'id':_0x1d72e0,'type':_0x215811,'createdAt':new Date(),'authorId':_0x2f99de,'attributes':_0x4ffdb7});return this['_addSuggestionMarker'](_0x215811,_0x1d72e0,_0x2f99de,_0xf4a181),_0x4afdc7;}}['markMultiRangeDeletion'](_0x286611,_0x3ed4f0='multi',_0x3108b0={}){const _0x1c4527=this['editor']['plugins']['get']('Users')['me'],_0x3832b3=_0x286611['map'](_0x4ea9c1=>new _0xb0dd32(_0x4ea9c1['start'],_0x4ea9c1['end'])),_0x22abe4=new Set();this['_trackingSessionId']&&(_0x3108b0['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x365a2f,meta:_0x35971e}of this['_findSuggestions'](_0x3832b3,'insertion'))_0x35971e['isOwn']&&!_0x35971e['isNextTo']&&_0x22abe4['add'](_0x365a2f);for(const _0x305414 of _0x22abe4)if(_0x305414['isMultiRange']){const _0x1f6deb=_0x305414['getRanges']();(!_0x305414['attributes']||!_0x305414['attributes']['skipNestingCheck'])&&(_0x1f6deb['every'](_0x39e49f=>_0x3832b3['some'](_0xfcd6e3=>_0xfcd6e3['containsRange'](_0x39e49f,!0x0)))&&_0x305414['discard']());if(_0x3832b3['every'](_0x48ef4a=>_0x1f6deb['some'](_0xaa5e79=>_0xaa5e79['containsRange'](_0x48ef4a,!0x0)))){const _0x1369eb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ed4f0,'accept');return this['forceDefaultExecution'](()=>_0x1369eb(_0x286611,null,_0x3108b0)),null;}}else{const _0x4406f0=_0x305414['getFirstRange']();_0x3832b3['some'](_0x4853a8=>_0x4853a8['containsRange'](_0x4406f0,!0x0))&&_0x305414['discard']();if(_0x3832b3['every'](_0x689e9f=>_0x4406f0['containsRange'](_0x689e9f,!0x0))){const _0x72ace9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ed4f0,'accept');return this['forceDefaultExecution'](()=>_0x72ace9(_0x3832b3,null,_0x3108b0)),null;}}const _0x1ec20a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ed4f0,'join');let _0x5456d7=null;for(const _0xe0458d of this['getSuggestions']())if(_0xe0458d['author']['id']==_0x1c4527['id']&&_0xe0458d['isInContent']&&'deletion'==_0xe0458d['type']&&_0xe0458d['subType']==_0x3ed4f0&&Xt(_0xe0458d,_0x3108b0)&&(_0x1ec20a(_0xe0458d['getRanges'](),_0x3832b3)||_0x1ec20a(_0x3832b3,_0xe0458d['getRanges']()))){if(_0x5456d7){if(_0xe0458d['commentThread']&&_0xe0458d['commentThread']['length'])continue;for(const _0x409266 of _0xe0458d['getRanges']())_0x5456d7['isIntersectingWithRange'](_0x409266)||_0x5456d7['addRange'](_0x409266);_0xe0458d['removeMarkers']();}else{_0x5456d7=_0xe0458d;for(const _0x20e69b of _0x3832b3)_0xe0458d['isIntersectingWithRange'](_0x20e69b)||_0xe0458d['addRange'](_0x20e69b);}}if(_0x5456d7)return _0x5456d7;_0x22abe4['clear']();for(const {suggestion:_0x4b97a7,meta:_0x154d8e}of this['_findSuggestions'](_0x3832b3,'deletion'))_0x154d8e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x154d8e['containsRangeInObject']&&!_0x154d8e['isInsideObject'])&&Xt(_0x4b97a7,_0x3108b0)&&_0x22abe4['add'](_0x4b97a7);for(const _0x3cf460 of _0x22abe4){const _0x3ae142=_0x3cf460['getRanges']();if(!_0x3108b0||!_0x3108b0['skipNestingCheck']){if(_0x3832b3['every'](_0x4325bf=>_0x3ae142['some'](_0xb50034=>_0xb50034['containsRange'](_0x4325bf,!0x0))))return _0x3cf460;}(!_0x3cf460['attributes']||!_0x3cf460['attributes']['skipNestingCheck'])&&(_0x3ae142['every'](_0x55eb4c=>_0x3832b3['some'](_0x36ea56=>_0x36ea56['containsRange'](_0x55eb4c,!0x0)))&&_0x3cf460['discard']());}const _0x570721=_0x50cf13(),_0x57a318=_0x1c4527['id'],_0x2463ee='deletion:'+_0x3ed4f0,_0x599086=this['_setSuggestionData']({'id':_0x570721,'type':_0x2463ee,'createdAt':new Date(),'authorId':_0x57a318,'attributes':_0x3108b0});for(const _0xaad600 of _0x3832b3)_0xaad600['detach'](),_0xaad600['isCollapsed']||'$graveyard'==_0xaad600['root']['rootName']||this['_addSuggestionMarker'](_0x2463ee,_0x570721,_0x57a318,_0xaad600,T['getMultiRangeId']());return _0x599086;}['markAttributeChange'](_0x40300f,_0x331b8f,_0x203c32,_0x4b636b,_0x145eb3){if(_0x40300f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2ca571=this['editor']['plugins']['get']('Users')['me']['id'],_0x2a659d=Array['from'](this['_suggestions']['values']())['filter'](_0x34acae=>'attribute'==_0x34acae['type']&&_0x34acae['data']['key']==_0x331b8f&&_0x34acae['isIntersectingWithRange'](_0x40300f));if(this['_trackingSessionId']&&(_0x145eb3['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x387ecb=this['_findSuggestions'](_0x40300f,'insertion')['filter'](({meta:_0x5342c1})=>_0x5342c1['isOwn']&&!_0x5342c1['isInsideObject']&&!_0x5342c1['isNextTo'])['map'](({suggestion:_0x1436d1})=>_0x1436d1);_0x2a659d['unshift'](..._0x387ecb);}const _0x4f1e13=new Map([[_0x40300f,_0x203c32]]);for(const _0x264f2e of _0x2a659d){const _0x2fbb62='attribute'==_0x264f2e['type']?_0x264f2e['data']['oldValue']:void 0x0,_0x2e4005=_0x264f2e['getFirstRange'](),_0x55f67b=Array['from'](_0x4f1e13['keys']())['find'](_0x2076c6=>_0x2076c6['isIntersecting'](_0x2e4005));if(!_0x55f67b)continue;const _0x43f922=_0x55f67b['getDifference'](_0x2e4005);this['_isBlockAttribute'](_0x331b8f)&&'insertion'==_0x264f2e['type']&&0x0!=_0x43f922['length']||(_0x4f1e13['delete'](_0x55f67b),_0x43f922['forEach'](_0x48efb2=>{_0x4f1e13['set'](_0x48efb2,_0x203c32);}),'insertion'!=_0x264f2e['type']&&_0x2fbb62!=_0x4b636b&&_0x4f1e13['set'](_0x55f67b['getIntersection'](_0x2e4005),_0x2fbb62));}const _0x1f3b6c=[];for(const [_0x183715,_0x59e6f3]of _0x4f1e13){const _0x5df1d4=_0x50cf13(),_0x1bc7ac={'key':_0x331b8f,'oldValue':_0x59e6f3,'newValue':_0x4b636b};_0x331b8f['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':_0x331b8f});const _0x2456f2=('attribute:'+(_0x331b8f+'|'+Lt({'newValue':_0x4b636b})))['substring'](0x0,0x3c),_0xcdb617=this['_setSuggestionData']({'id':_0x5df1d4,'type':_0x2456f2,'data':_0x1bc7ac,'createdAt':new Date(),'authorId':_0x2ca571,'attributes':_0x145eb3});_0x1f3b6c['push'](_0xcdb617),this['_addSuggestionMarker'](_0x2456f2,_0x5df1d4,_0x2ca571,_0x183715);}return _0x1f3b6c;}['enableDefaultAttributesIntegration'](_0x19dc18){this['enableCommand'](_0x19dc18,(_0x13fd0a,..._0x5dd0f4)=>{this['recordAttributeChanges'](()=>{_0x13fd0a(..._0x5dd0f4);});});}['registerBlockAttribute'](_0x15dabc){this['_blockAttributeKeys']['add'](_0x15dabc);}['registerInlineAttribute'](_0x429f52){this['_inlineAttributeKeys']['add'](_0x429f52);}['startTrackingSession'](_0x4528a2){return this['_trackingSessionId']=void 0x0!==_0x4528a2?_0x4528a2:_0x50cf13(),this['_trackingSessionId'];}['_getAttributeKey'](_0x147482){return'attribute'==_0x147482['type']?_0x147482['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1f289d,_0x137930){const _0xd593db=_0x1f289d['getFirstMarker']();this['_model']['change'](_0x4bacc7=>{_0x4bacc7['updateMarker'](_0xd593db,{'range':_0x137930});});}['_addThreadToSuggestion'](_0x5ca201){const _0x4b66b2=_0x5ca201['id'],_0x582411=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4b66b2)||this['_commentsRepository']['addCommentThread']({'channelId':_0x582411,'threadId':_0x4b66b2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x57b259=this['_commentsRepository']['getCommentThread'](_0x4b66b2);_0x57b259['unbind']('isRemovable'),_0x57b259['isRemovable']=!0x1,_0x5ca201['commentThread']=_0x57b259;}['_checkSuggestionCorrectness'](_0x55c4fd,_0x7ae2af,_0x3ad921,_0x627581){if(_0x55c4fd['type']!=_0x7ae2af||_0x55c4fd['subType']!=_0x3ad921||_0x55c4fd['creator']['id']!=_0x627581)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xa020e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4d9906,_0x2d3366){const _0x19aa83=_0x4d9906['getFirstRange']();if(_0x2d3366['isEqual'](_0x19aa83))_0x4d9906['removeMarkers']();else{if(_0x19aa83['containsRange'](_0x2d3366)){const _0x52b779=this['_model']['createPositionAt'](_0x2d3366['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4d9906,this['_model']['createRange'](_0x19aa83['start'],_0x52b779));const _0x2c460c=_0x50cf13(),_0x103511=_0x4d9906['creator']['id'],_0x44f57a=_0x4d9906['type']+':'+_0x4d9906['subType'];this['_setSuggestionData']({'id':_0x2c460c,'type':_0x44f57a,'createdAt':new Date(),'authorId':_0x103511,'data':_0x4d9906['data'],'attributes':_0x4d9906['attributes']});const _0x37c8a0=this['_model']['createPositionAt'](_0x2d3366['end']['parent'],'after'),_0x4196bd=this['_model']['createRange'](_0x37c8a0,_0x19aa83['end']);this['_addSuggestionMarker'](_0x44f57a,_0x2c460c,_0x103511,_0x4196bd);}else{if(_0x19aa83['containsPosition'](_0x2d3366['start'])){const _0x1fa224=this['_model']['createPositionAt'](_0x2d3366['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4d9906,this['_model']['createRange'](_0x19aa83['start'],_0x1fa224));}else{const _0x1935dc=this['_model']['createPositionAt'](_0x2d3366['end']['parent'],'after');this['_setSuggestionRange'](_0x4d9906,this['_model']['createRange'](_0x1935dc,_0x19aa83['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x140b1b){for(const {suggestion:_0x21d0ba,meta:_0x420838}of this['_findSuggestions'](_0x140b1b,'insertion')){if(!_0x420838['isOwn'])continue;const _0x200440=_0x21d0ba['getRanges']();for(const _0xbe670a of _0x200440)if(!_0x140b1b['getDifference'](_0xbe670a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x535978){const _0x4f18f2=this['editor']['plugins']['get']('Users')['getUser'](_0x535978);if(!_0x4f18f2)throw new _0xa020e('track-changes-user-not-found',this);return _0x4f18f2;}['_getExternalAuthor'](_0x4db1fc){const _0x4f7462=this['editor']['plugins']['get']('Users'),_0x4b6c28=_0x33e6a4('external:'+_0x4db1fc),_0x580f3c=_0x4f7462['getUser'](_0x4b6c28);return _0x580f3c||_0x4f7462['addUser']({'id':_0x4b6c28,'name':_0x4db1fc});}['_createSuggestion'](_0x1665d4,_0x4e8172,_0x43efee,_0x5d1f9a,_0x742b8,_0x1a9524){const _0x256d5e=this['_getAuthorFromId'](_0x5d1f9a),_0x4cf5d9=this['_suggestionFactory']['buildSuggestion'](_0x1665d4,_0x4e8172,_0x43efee,_0x256d5e,_0x742b8,_0x4e4404=>{this['_updateSuggestionData'](_0x43efee,{'attributes':_0x4e4404});const _0x56adcc=this['getSuggestion'](_0x43efee);this['_joinWithAdjacentSuggestions'](new Set([_0x56adcc])),this['_refreshSuggestionsChain'](new Set([_0x56adcc]));},_0x1a9524);return this['listenTo'](_0x4cf5d9,'accept',()=>{this['_updateSuggestionData'](_0x43efee,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4cf5d9,'discard',()=>{this['_updateSuggestionData'](_0x43efee,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x43efee,_0x4cf5d9),this['_suggestionState']['set'](_0x4cf5d9,'notReady'),_0x4cf5d9;}['_splitMarkerName'](_0x479aa2){const _0x42d774=_0x479aa2['split'](':');return{'group':_0x42d774[0x0],'type':_0x42d774[0x1],'subType':_0x42d774['length']>=0x5?_0x42d774[0x2]:null,'id':_0x42d774['length']<0x5?_0x42d774[0x2]:_0x42d774[0x3],'authorId':_0x42d774['length']<0x5?_0x42d774[0x3]:_0x42d774[0x4],'markerCount':0x6==_0x42d774['length']?_0x42d774[0x5]:null};}['_breakSuggestionMarker'](_0x581543,_0x2bb98d,_0x97b4fa){const _0x39c066=_0x581543['getFirstRange'](),_0x531bdc=_0x39c066['start'],_0x4d0b99=_0x39c066['end'];this['_setSuggestionRange'](_0x581543,this['_model']['createRange'](_0x531bdc,_0x2bb98d));const _0x482c74=_0x50cf13(),_0x5600ba=_0x581543['creator']['id'],_0x470b66=_0x581543['type']+(_0x581543['subType']?':'+_0x581543['subType']:'');this['_setSuggestionData']({'id':_0x482c74,'type':_0x470b66,'createdAt':new Date(),'authorId':_0x5600ba,'originalSuggestionId':_0x581543['_originalSuggestionId']||_0x581543['id'],'attributes':_0x581543['attributes'],'data':_0x581543['data']});const _0x2de1f7=this['_getAttributeKey'](_0x581543);('formatBlock'==_0x581543['type']||_0x2de1f7&&this['_isBlockAttribute'](_0x2de1f7))&&(_0x97b4fa=this['_model']['createPositionBefore'](_0x97b4fa['parent'])),this['_addSuggestionMarker'](_0x470b66,_0x482c74,_0x5600ba,this['_model']['createRange'](_0x97b4fa,_0x4d0b99));}['_findSuggestions'](_0x5ccd2d,_0x3a04de=null){const _0x1206dc=[],_0x55f739=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5ccd2d)||(_0x5ccd2d=[_0x5ccd2d]);for(const _0x1407fb of this['getSuggestions']()){if(!_0x1407fb['isInContent'])continue;if(_0x3a04de&&_0x1407fb['type']!=_0x3a04de)continue;let _0x556b56=!0x1;for(const _0x368443 of _0x1407fb['getRanges']()){for(const _0x248609 of _0x5ccd2d){const _0x521af9=_0x248609['start']['isEqual'](_0x368443['end'])||_0x248609['end']['isEqual'](_0x368443['start']);if(_0x521af9||_0x248609['getIntersection'](_0x368443)){const _0x3aa933=_0x248609['containsRange'](_0x368443)&&Ft(this['_model']['schema'],_0x368443['start'],_0x248609),_0xa53401=_0x368443['containsRange'](_0x248609)&&Ft(this['_model']['schema'],_0x248609['start'],_0x368443);_0x1206dc['push']({'suggestion':_0x1407fb,'meta':{'isOwn':_0x55f739==_0x1407fb['author'],'isNextTo':_0x521af9,'isInsideObject':_0x3aa933,'containsRangeInObject':_0xa53401}}),_0x556b56=!0x0;break;}}if(_0x556b56)break;}}return _0x1206dc;}['_addSuggestionMarker'](_0x20470f,_0x121b32,_0xdf9d76,_0x1b038d,_0x1f839e){this['_model']['change'](_0x2ae8ee=>{let _0x46301d='suggestion:'+_0x20470f+':'+_0x121b32+':'+_0xdf9d76;_0x1f839e&&(_0x46301d=_0x46301d+':'+_0x1f839e),_0x2ae8ee['addMarker'](_0x46301d,{'range':_0x1b038d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xdd8245){const _0x1986c2=_0xdd8245['previous'],_0x4513c0=_0xdd8245['next'];_0xdd8245['previous']=null,_0xdd8245['next']=null,null!=_0x1986c2&&_0x1986c2['next']==_0xdd8245&&(_0x1986c2['next']=_0x4513c0),null!=_0x4513c0&&_0x4513c0['previous']==_0xdd8245&&(_0x4513c0['previous']=_0x1986c2),'ready'==this['_suggestionState']['get'](_0xdd8245)&&(this['_suggestionState']['set'](_0xdd8245,'removed'),this['fire']('suggestionUnloaded',_0xdd8245,_0x1986c2,_0x4513c0));}['_setSuggestionData'](_0x1a6602){const _0x22b37a=_0x1a6602['id'],_0x2ff165=this['addSuggestionData'](_0x1a6602);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1d07dd=this['editor']['plugins']['get']('PendingActions'),_0x1f7bb5=_0x2ff165['hasComments'],_0x5da9be=_0x2ff165['subType']?_0x2ff165['type']+':'+_0x2ff165['subType']:_0x2ff165['type'],_0x12b4a8=this['editor']['locale'],_0x3eb284=_0x1d07dd['add'](o(_0x12b4a8,'PENDING_ACTION_SUGGESTION')),_0x1b1c4c={'id':_0x22b37a,'type':_0x5da9be,'hasComments':_0x1f7bb5,'data':_0x1a6602['data']||null,'originalSuggestionId':_0x1a6602['originalSuggestionId']||null,'attributes':_0x2ff165['attributes']};this['_adapter']['addSuggestion'](_0x1b1c4c)['then'](_0x4eefad=>{_0x2ff165['_saved']=!0x0,_0x1d07dd['remove'](_0x3eb284),_0x4eefad&&_0x4eefad['createdAt']&&(this['_suggestions']['get'](_0x22b37a)['createdAt']=_0x4eefad['createdAt']);})['catch'](_0x2ec319=>{throw _0x398cda('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2ff165['discard']();}),_0x2ff165['stopListening'](),this['_suggestions']['delete'](_0x2ff165['id']),this['_suggestionState']['delete'](_0x2ff165),_0x2ec319;});}return _0x2ff165;}['_isBlockAttribute'](_0x27672f){return this['_blockAttributeKeys']['has'](_0x27672f);}['_isInlineAttribute'](_0x2b81d4){return this['_inlineAttributeKeys']['has'](_0x2b81d4);}['_updateSuggestionData'](_0x596f4a,_0x2b8627){const _0xb4edc0=this['editor']['plugins']['get']('PendingActions'),_0x48e346=this['getSuggestion'](_0x596f4a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x48e346['_saved']){const _0x16a779=_0xb4edc0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x596f4a,_0x2b8627)['then'](()=>{_0xb4edc0['remove'](_0x16a779);});}else _0x48e346['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x596f4a,_0x2b8627);});}}['_getSuggestionData'](_0x647c7){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xa020e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x647c7);}['_handleNewSuggestionMarker'](_0x101d2e){const {id:_0x10527d,type:_0x28a9e6,subType:_0xbaf809,authorId:_0x3afc3c}=this['_splitMarkerName'](_0x101d2e),_0x262a91=this['_suggestions']['get'](_0x10527d)||this['_createSuggestion'](_0x28a9e6,_0xbaf809,_0x10527d,_0x3afc3c,{});switch(this['_checkSuggestionCorrectness'](_0x262a91,_0x28a9e6,_0xbaf809,_0x3afc3c),this['_suggestionState']['get'](_0x262a91)){case'notReady':this['_getSuggestionData'](_0x10527d)['then'](_0x7d042f=>{let _0xd2a321=Promise['resolve']();_0x7d042f['hasComments']&&(_0xd2a321=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x10527d})),_0xd2a321['then'](()=>{this['addSuggestionData'](_0x7d042f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x262a91,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x10527d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x262a91,'ready'),this['fire']('suggestionLoaded',_0x262a91);break;case'ready':this['fire']('suggestionChanged',_0x262a91);}return _0x262a91['addMarkerName'](_0x101d2e),_0x262a91;}['_refreshSuggestionsChain'](_0x442aa7){const _0x22478f=Array['from'](_0x442aa7),_0x3c0562=_0x22478f['filter'](_0xb7bcbb=>'attribute'==_0xb7bcbb['type']);this['_refreshAttributeSuggestionsChain'](_0x3c0562);const _0x3ccd81=_0x22478f['filter'](_0x5f0892=>!_0x5f0892['isMultiRange']&&'attribute'!=_0x5f0892['type']),_0x26c466=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c1edf=>!_0x2c1edf['isMultiRange']&&'attribute'!=_0x2c1edf['type']),_0x19bf34=_0x26c466['filter'](_0x3491d7=>!_0x442aa7['has'](_0x3491d7)),_0x1839c2=new Map(_0x26c466['map'](_0x5bd31e=>[_0x5bd31e,this['_suggestionFactory']['getSuggestionCallback'](_0x5bd31e['type'],_0x5bd31e['subType'],'chain')])),_0x3a9460=new Map(_0x26c466['map'](_0x9190b5=>[_0x9190b5,_0x9190b5['getFirstRange']()])),_0x19f070=new Set(),_0x1f37b3=new Set();for(let _0x14e280=0x0;_0x14e280<_0x3ccd81['length'];_0x14e280++)_0xa3e5ea(_0x3ccd81[_0x14e280],_0x3ccd81,_0x14e280+0x1);for(let _0x3b2cef=0x0;_0x3b2cef<_0x3ccd81['length'];_0x3b2cef++)_0xa3e5ea(_0x3ccd81[_0x3b2cef],_0x19bf34,0x0);const _0x31072a=new Set();for(let _0x1ffad3=0x0;_0x1ffad3<_0x3ccd81['length'];_0x1ffad3++){const _0x2ea888=_0x3ccd81[_0x1ffad3];!_0x1f37b3['has'](_0x2ea888)&&_0x2ea888['previous']&&(_0x31072a['add'](_0x2ea888['previous']),_0x2ea888['previous']['next']===_0x2ea888&&(_0x2ea888['previous']['next']=null),_0x2ea888['previous']=null),!_0x19f070['has'](_0x2ea888)&&_0x2ea888['next']&&(_0x31072a['add'](_0x2ea888['next']),_0x2ea888['next']['previous']===_0x2ea888&&(_0x2ea888['next']['previous']=null),_0x2ea888['next']=null);}function _0xa3e5ea(_0x51e06f,_0x333e49,_0x23fb2b){for(let _0xaba8ec=_0x23fb2b;_0xaba8ec<_0x333e49['length'];_0xaba8ec++){const _0x3a92be=_0x18ce57(_0x51e06f,_0x333e49[_0xaba8ec]);_0x3a92be&&(_0x3a92be[0x0]['next']=_0x3a92be[0x1],_0x3a92be[0x1]['previous']=_0x3a92be[0x0],_0x19f070['add'](_0x3a92be[0x0]),_0x1f37b3['add'](_0x3a92be[0x1]));}}function _0x18ce57(_0x129f9b,_0x3cc8ff){if(_0x129f9b['author']['id']!==_0x3cc8ff['author']['id'])return null;const _0x4872fc=_0x1839c2['get'](_0x129f9b)(_0x129f9b,_0x3cc8ff,_0x3a9460['get'](_0x129f9b),_0x3a9460['get'](_0x3cc8ff));if(!_0x4872fc)return null;return _0x1839c2['get'](_0x3cc8ff)(_0x129f9b,_0x3cc8ff,_0x3a9460['get'](_0x129f9b),_0x3a9460['get'](_0x3cc8ff))?_0x4872fc[0x1]['commentThread']&&_0x4872fc[0x1]['commentThread']['length']?null:_0x4872fc:null;}_0x31072a['size']&&this['_refreshSuggestionsChain'](_0x31072a);}['_refreshAttributeSuggestionsChain'](_0x42b050){if(0x0==_0x42b050['length'])return;const _0x30e3c9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58be5b=>'attribute'==_0x58be5b['type']&&_0x58be5b['_isDataLoaded']),_0x5951d7=[],_0x450e5b=new Map();for(const _0x13ac9c of _0x30e3c9){const _0x40a7a2=_0x33e6a4(_0x13ac9c['attributes']);_0x450e5b['has'](_0x40a7a2)||(_0x450e5b['set'](_0x40a7a2,_0x5951d7['length']),_0x5951d7['push']([]));const _0x1c847d=_0x450e5b['get'](_0x40a7a2);_0x5951d7[_0x1c847d]['push'](_0x13ac9c);}!(function(){_0x5951d7['sort']((_0x15b5ba,_0x1beb86)=>{const _0x508294=_0x15b5ba[0x0]['createdAt'],_0x22827c=_0x1beb86[0x0]['createdAt'];return _0x508294==_0x22827c?_0x15b5ba[0x0]['attributes']['groupId']<_0x1beb86[0x0]['attributes']['groupId']?-0x1:0x1:_0x508294<_0x22827c?-0x1:0x1;});for(const _0x67a979 of _0x5951d7)_0x67a979['sort']((_0x3551a0,_0x47b17d)=>_0x3551a0['id']<_0x47b17d['id']?-0x1:0x1);}());for(let _0x5450de=0x0;_0x5450de<_0x5951d7['length'];_0x5450de++){if(0x0==_0x5951d7[_0x5450de]['length'])continue;const _0x194c52=[];for(let _0x17d6d6=_0x5450de+0x1;_0x17d6d6<_0x5951d7['length'];_0x17d6d6++)0x0!=_0x5951d7[_0x17d6d6]['length']&&_0x551345(_0x5951d7[_0x5450de],_0x5951d7[_0x17d6d6])&&_0x194c52['push'](_0x17d6d6);for(const _0x1a83be of _0x194c52)_0x5951d7[_0x5450de]=_0x5951d7[_0x5450de]['concat'](_0x5951d7[_0x1a83be]),_0x5951d7[_0x1a83be]=[];}for(const _0xad4d4a of _0x5951d7)for(let _0x5e5129=0x0;_0x5e5129<_0xad4d4a['length'];_0x5e5129++){const _0x129041=_0xad4d4a[_0x5e5129+0x1]||null;_0xad4d4a[_0x5e5129]['next']!==_0x129041&&(_0xad4d4a[_0x5e5129]['next']=_0x129041);}for(const _0x4e9454 of _0x5951d7)for(let _0x52fd6e=0x0;_0x52fd6e<_0x4e9454['length'];_0x52fd6e++){const _0x135f4e=_0x4e9454[_0x52fd6e-0x1]||null;_0x4e9454[_0x52fd6e]['previous']!==_0x135f4e&&(_0x4e9454[_0x52fd6e]['previous']=_0x135f4e);}function _0x551345(_0x4f8c8c,_0x2faa79){if(_0x4f8c8c[0x0]['attributes']['groupId']!==_0x2faa79[0x0]['attributes']['groupId']&&_0x4f8c8c[0x0]['author']!==_0x2faa79[0x0]['author'])return!0x1;if(!function(_0x3cb9da,_0x17140b){if(!_0x3cb9da['hasComments']&&!_0x17140b['hasComments'])return!0x0;if(_0x3cb9da['hasComments']&&_0x17140b['hasComments'])return!0x1;if(_0x3cb9da['hasComments']&&_0x17140b['createdAt']<_0x3cb9da['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x17140b['hasComments']&&_0x3cb9da['createdAt']<_0x17140b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4f8c8c[0x0],_0x2faa79[0x0]))return!0x1;const _0x302410=Ut(_0x4f8c8c[0x0]['attributes'],['groupId','trackingSessionId']),_0x25540d=Ut(_0x2faa79[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xc3c78d(_0x302410,_0x25540d))return!0x1;if(_0x4f8c8c[0x0]['attributes']['groupId']==_0x2faa79[0x0]['attributes']['groupId'])return!0x0;if(_0x4f8c8c[0x0]['attributes']['trackingSessionId']!==_0x2faa79[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4f8c8c['every'](_0x5852fb=>_0x2faa79['some'](_0x220bb9=>_0x5852fb['getFirstRange']()['isEqual'](_0x220bb9['getFirstRange']())))&&_0x2faa79['every'](_0x5397eb=>_0x4f8c8c['some'](_0x1dc615=>_0x5397eb['getFirstRange']()['isEqual'](_0x1dc615['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5d2090){const _0x570e77=Array['from'](_0x5d2090),_0x4beff5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3cce5a=_0x4beff5['filter'](_0x1bb316=>!_0x5d2090['has'](_0x1bb316)),_0x316a11=new Map(_0x570e77['map'](_0x2e3b0f=>[_0x2e3b0f,this['_suggestionFactory']['getSuggestionCallback'](_0x2e3b0f['type'],_0x2e3b0f['subType'],'join')])),_0x247ba6=new Map(_0x4beff5['map'](_0xd17e15=>[_0xd17e15,_0xd17e15['getRanges']()]));for(let _0x498a23=0x0;_0x498a23<_0x570e77['length'];_0x498a23++){if(_0x1e74f3(this,_0x570e77[_0x498a23],_0x570e77,_0x498a23+0x1))return!0x0;}for(let _0x5345ea=0x0;_0x5345ea<_0x570e77['length'];_0x5345ea++){if(_0x1e74f3(this,_0x570e77[_0x5345ea],_0x3cce5a,0x0))return!0x0;}return!0x1;function _0x1e74f3(_0x88ac78,_0x41f419,_0xafa5d4,_0x3940a2){for(let _0x452591=_0x3940a2;_0x452591<_0xafa5d4['length'];_0x452591++){const _0x57cd46=_0xafa5d4[_0x452591];if(_0x57cd46['type']!==_0x41f419['type']||_0x57cd46['author']['id']!==_0x41f419['author']['id']||_0x57cd46['subType']!==_0x41f419['subType'])continue;if(!Qt(_0x41f419,_0x57cd46))continue;if('attribute'==_0x41f419['type']&&_0x41f419['data']['oldValue']!=_0x57cd46['data']['oldValue'])continue;if('attribute'==_0x41f419['type']&&_0x88ac78['_isBlockAttribute'](_0x41f419['data']['key']))continue;if('formatBlock'==_0x41f419['type']){const _0x42a06d=_0x88ac78['editor']['model'],_0x1e175e=_0x41f419['getContainedElement']();if(_0x1e175e&&(_0x42a06d['schema']['isObject'](_0x1e175e)||_0x42a06d['schema']['isLimit'](_0x1e175e)))continue;}const _0x36059b=_0x316a11['get'](_0x41f419),_0x5f4fa4=_0x247ba6['get'](_0x41f419),_0x35e468=_0x247ba6['get'](_0x57cd46),_0x2e5ecf=_0x41f419['commentThread']&&_0x41f419['commentThread']['length'],_0x41094c=_0x57cd46['commentThread']&&_0x57cd46['commentThread']['length'];if(!_0x2e5ecf&&_0x36059b(_0x35e468,_0x5f4fa4))return _0x88ac78['_joinSuggestions'](_0x57cd46,_0x41f419),_0x247ba6['delete'](_0x41f419),!0x0;if(!_0x41094c&&_0x36059b(_0x5f4fa4,_0x35e468))return _0x88ac78['_joinSuggestions'](_0x41f419,_0x57cd46),_0x247ba6['delete'](_0x57cd46),!0x0;}return!0x1;}}['_joinSuggestions'](_0x330800,_0x1d307c){if(_0x330800['isMultiRange']){for(const _0x391fb5 of _0x1d307c['getRanges']())_0x330800['addRange'](_0x391fb5);}else{const _0x25c95c=_0x1d307c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x330800,this['_model']['createRange'](_0x330800['getFirstRange']()['start'],_0x25c95c));}_0x1d307c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x65d28,_0x276137,_0x1b5258){const _0x25e587=_0x65d28['startsWith']('format')||_0x65d28['startsWith']('attribute')?'FORMATTING':_0x65d28['toUpperCase']();return o(this['editor']['locale'],_0x276137+'_'+_0x25e587+'_SUGGESTION_ANNOUNCEMENT',_0x1b5258);}['_initAriaMarkerChangeAnnouncements'](){const _0xeef275=this['editor'];if(!_0xeef275['ui'])return;const {ariaLiveAnnouncer:_0xda8f10}=_0xeef275['ui'];_0x29126e(this['_model'],({left:_0x583167,entered:_0x2b6a62})=>{for(const _0x10e336 of _0x583167){const {group:_0x352dd6,type:_0x1fa776}=this['_splitMarkerName'](_0x10e336['name']);if('suggestion'===_0x352dd6){_0xda8f10['announce'](this['_getMarkerAnnouncementText'](_0x1fa776,'LEAVE'));break;}}for(const _0x3f01a3 of _0x2b6a62){const {group:_0x158d14,type:_0x4e3b70}=this['_splitMarkerName'](_0x3f01a3['name']);if('suggestion'===_0x158d14){_0xda8f10['announce'](this['_getMarkerAnnouncementText'](_0x4e3b70,'ENTER',_0x4e40d3(_0x4b2cc3)));break;}}});}['_processAttributeChanges'](_0xeca5f0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1bdf67=this['editor'],_0xe89f01=_0x1bdf67['model']['document']['differ']['getChanges']();if(0x0==_0xe89f01['length'])return!0x1;const _0x331cb1=[],_0x82ef04=_0xe89f01['filter'](_0x1a9f49=>'attribute'==_0x1a9f49['type']),_0x4aca30=_0xe89f01['filter'](_0x422bb0=>'insert'==_0x422bb0['type']&&'$text'!=_0x422bb0['name']),_0x2b81c2=_0xe89f01['filter'](_0x5e1c3e=>'remove'==_0x5e1c3e['type']&&'$text'!=_0x5e1c3e['name']);for(const _0x52eb6b of _0x82ef04)_0x331cb1['push']({'key':_0x52eb6b['attributeKey'],'newValue':_0x52eb6b['attributeNewValue'],'oldValue':_0x52eb6b['attributeOldValue'],'range':qt(_0x52eb6b['range'],_0x1bdf67['model'])});for(const _0x21257b of _0x4aca30){const _0x2c146b=_0x2b81c2['find'](_0x3a2d56=>_0x3a2d56['position']['isEqual'](_0x21257b['position']));_0x2c146b&&_0x331cb1['push']({'key':m,'newValue':_0x21257b['name'],'oldValue':_0x2c146b['name'],'range':_0x1bdf67['model']['createRangeOn'](_0x21257b['position']['nodeAfter'])});}return 0x0!=_0x331cb1['length']&&this['_reduceExistingSuggestions'](_0xeca5f0,_0x331cb1);}['_processAttributeSuggestions'](_0x19274c){let _0xc97be4=!0x1;const _0x4e5596=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e9231=>_0x5e9231['data']['newRange']&&_0x5e9231['name']['startsWith']('suggestion:attribute:'));for(const _0x375ceb of _0x4e5596){const {subType:_0x321769,id:_0x53d21e}=this['_splitMarkerName'](_0x375ceb['name']),_0x5afafc=_0x321769['split']('|')[0x0];for(const _0x13c0a0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x13c0a0['id']!=_0x53d21e&&'attribute'==_0x13c0a0['type']&&_0x13c0a0['data']&&_0x13c0a0['data']['key']==_0x5afafc&&_0x13c0a0['getFirstRange']()['isIntersecting'](_0x375ceb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x13c0a0,_0x375ceb['data']['newRange'],_0x19274c),_0xc97be4=!0x0);}return _0xc97be4;}['recordAttributeChanges'](_0x5d9237){this['_recordAttributeSuggestions']=!0x0,_0x5d9237();}['_isRegisteredAttribute'](_0x4772f7){const _0x39541d=this['_isBlockAttribute'](_0x4772f7),_0x2941f0=this['_isInlineAttribute'](_0x4772f7);return _0x39541d||_0x2941f0;}['_reduceExistingSuggestions'](_0x1c3a7c,_0x2360df){if(0x0==_0x2360df['length'])return!0x1;let _0x5d7d99=!0x1;for(const _0x5ae199 of _0x2360df){const _0x35da38=this['_findSuggestions'](_0x5ae199['range'],'attribute')['filter'](_0x48131f=>!_0x48131f['meta']['isNextTo'])['map'](_0x24f008=>_0x24f008['suggestion']),_0x374356=_0x33e6a4({'newValue':_0x5ae199['newValue']});_0x35da38['filter'](_0x5b94d7=>{const [_0x43e644,_0x1303b2]=_0x5b94d7['subType']['split']('|');return _0x43e644==_0x5ae199['key']&&_0x1303b2!=_0x374356;})['forEach'](_0x4c4836=>{this['_reduceSuggestionAttributeRange'](_0x4c4836,_0x5ae199['range'],_0x1c3a7c),_0x5d7d99=!0x0;});}return _0x5d7d99;}['_reduceSuggestionAttributeRange'](_0x5b42d0,_0x1736a7,_0x5624ee){const _0x37c045=_0x5b42d0['getFirstRange']()['getDifference'](_0x1736a7);0x0!==_0x37c045['length']?0x1!==_0x37c045['length']?this['_breakSuggestionMarker'](_0x5b42d0,_0x1736a7['start'],_0x1736a7['end']):this['_setSuggestionRange'](_0x5b42d0,_0x37c045[0x0]):_0x5624ee['removeMarker'](_0x5b42d0['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1d6cdc){this['_editor']=_0x1d6cdc,this['_model']=_0x1d6cdc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x14ae44,_0x599db4,_0x1b23f0,_0x3b1632,_0x5a5c54,_0x1058e3,_0x392059){return new T(this['_model'],{'type':_0x14ae44,'subType':_0x599db4,'id':_0x1b23f0,'originalSuggestionId':_0x392059,'author':_0x3b1632,'creator':_0x3b1632,'attributes':_0x5a5c54,'onAttributesChange':_0x1058e3,'onAccept':(..._0x3a9900)=>this['getSuggestionCallback'](_0x14ae44,_0x599db4,'accept')(..._0x3a9900),'onDiscard':(..._0x4ec8dd)=>this['getSuggestionCallback'](_0x14ae44,_0x599db4,'discard')(..._0x4ec8dd)});}['registerCustomCallback'](_0x11538b,_0x509db3,_0x5dc106,_0x75eaf4){const _0x594a57=_0x11538b+':'+_0x509db3+':'+_0x5dc106;this['_customCallbacks']['set'](_0x594a57,_0x75eaf4);}['getSuggestionCallback'](_0x465a03,_0x49bfdc,_0x10bccf){const _0x31e5d7=_0x465a03+':'+_0x49bfdc+':'+_0x10bccf;return this['_customCallbacks']['get'](_0x31e5d7)||this['_defaultCallbacks']['get'](_0x465a03+':'+_0x10bccf);}['_registerDefaultCallbacks'](){const _0x3b8b4c=()=>!0x1,_0x3b9c42=_0x28f167=>{_0x28f167['sort']((_0x3a9527,_0x5e8bc4)=>_0x3a9527['start']['isBefore'](_0x5e8bc4['start'])?0x1:-0x1),this['_model']['change'](_0x1d5752=>{for(const _0x1652e6 of _0x28f167){let _0x44a629;_0x44a629=_0x1652e6['end']['isAtEnd']&&_0x1652e6['end']['parent']==_0x1652e6['start']['nodeAfter']?_0x1d5752['createSelection'](_0x1652e6['start']['nodeAfter'],'on'):_0x1d5752['createSelection'](_0x1652e6),this['_model']['deleteContent'](_0x44a629,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1b9373=(_0x59bfdc,_0x1c9874)=>{_0x1c9874&&this['_model']['change'](_0x86ce6e=>{const {commandName:_0xd66741,commandParams:_0x560889=[]}=_0x1c9874,_0x3c973f=_0x59bfdc['map'](_0x596508=>(Pt(_0x596508)&&(_0x596508=this['_model']['createRange'](_0x596508['end'])),_0x596508))['filter'](_0x136ab1=>'$graveyard'!==_0x136ab1['root']['rootName']);if(_0x3c973f['length']<0x1)return;const _0x5af528=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2f11e0=>_0xb0dd32['fromRange'](_0x2f11e0));_0x86ce6e['setSelection'](_0x3c973f);for(const _0x5ae24d of this['_editor']['commands']['commands']())_0x5ae24d['refresh']();_0x560889['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xd66741,..._0x560889);const _0x99abcb=_0x5af528['filter'](_0x150cec=>'$graveyard'!=_0x150cec['root']['rootName']);_0x99abcb['length']>0x0&&_0x86ce6e['setSelection'](_0x99abcb);for(const _0x4aa64e of _0x5af528)_0x4aa64e['detach']();});},_0x236b06=(_0xbbe615,_0x4046bc)=>0x1==_0xbbe615['length']&&0x1==_0x4046bc['length']&&_0xbbe615[0x0]['end']['isEqual'](_0x4046bc[0x0]['start']),_0x37e2d1=(_0x1ebda4,_0x2ab5ad,_0x130a20,_0x443b4a)=>Wt(_0x1ebda4,_0x2ab5ad,_0x130a20,_0x443b4a)?[_0x1ebda4,_0x2ab5ad]:Wt(_0x2ab5ad,_0x1ebda4,_0x443b4a,_0x130a20)?[_0x2ab5ad,_0x1ebda4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3b8b4c),this['_defaultCallbacks']['set']('insertion:discard',_0x3b9c42),this['_defaultCallbacks']['set']('insertion:join',_0x236b06),this['_defaultCallbacks']['set']('insertion:chain',_0x37e2d1),this['_defaultCallbacks']['set']('deletion:accept',_0x3b9c42),this['_defaultCallbacks']['set']('deletion:discard',_0x3b8b4c),this['_defaultCallbacks']['set']('deletion:join',_0x236b06),this['_defaultCallbacks']['set']('deletion:chain',_0x37e2d1),this['_defaultCallbacks']['set']('formatInline:accept',_0x1b9373),this['_defaultCallbacks']['set']('formatInline:discard',_0x3b8b4c),this['_defaultCallbacks']['set']('formatInline:join',_0x236b06),this['_defaultCallbacks']['set']('formatInline:chain',_0x3b8b4c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1b9373),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3b8b4c),this['_defaultCallbacks']['set']('formatBlock:join',_0x236b06),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3b8b4c),this['_defaultCallbacks']['set']('attribute:accept',_0x3b8b4c),this['_defaultCallbacks']['set']('attribute:discard',(_0x22ddb2,_0x5cc40b)=>{if(!_0x5cc40b)return;const _0x59aa3e=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x5e3ca8=>{if(_0x5cc40b['key']==m)for(const _0x3954f6 of _0x22ddb2){const _0x4ff19b=_0x3954f6['start']['nodeAfter'],_0x7343fd=_0x5cc40b['oldValue'];_0x5e3ca8['rename'](_0x4ff19b,_0x7343fd);}else{if(_0x59aa3e['_isBlockAttribute'](_0x5cc40b['key'])){for(const _0x3552f8 of _0x22ddb2)void 0x0!==_0x5cc40b['oldValue']?_0x5e3ca8['setAttribute'](_0x5cc40b['key'],_0x5cc40b['oldValue'],_0x3552f8['start']['nodeAfter']):_0x5e3ca8['removeAttribute'](_0x5cc40b['key'],_0x3552f8['start']['nodeAfter']);}else{for(const _0x1d8ea9 of _0x22ddb2)_0x5cc40b['oldValue']?_0x5e3ca8['setAttribute'](_0x5cc40b['key'],_0x5cc40b['oldValue'],_0x1d8ea9):_0x5e3ca8['removeAttribute'](_0x5cc40b['key'],_0x1d8ea9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x236b06);}}function Ft(_0x2aaa6c,_0x23f215,_0x2b799d){for(const _0x2e27a5 of _0x23f215['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2e27a5['root']==_0x2e27a5)return!0x1;if(!_0x2b799d['containsItem'](_0x2e27a5))return!0x1;if(_0x2aaa6c['isObject'](_0x2e27a5)||_0x2aaa6c['isLimit'](_0x2e27a5))return!0x0;}return!0x1;}function Pt(_0x561080){return _0x561080['end']['parent']==_0x561080['start']['nodeAfter']&&_0x561080['end']['isAtStart'];}function Gt(_0x41ed25,_0x30abf3,_0x339915,_0x512240){const _0x1e66fe=_0x18f2a8=>!_0x18f2a8['item']['is']('$textProxy')&&!_0x512240['isObject'](_0x18f2a8['item']),_0x56470a=_0x41ed25['start']['getLastMatchingPosition'](_0x1e66fe),_0x54a859=_0x41ed25['end']['getLastMatchingPosition'](_0x1e66fe,{'direction':'backward'});return(!_0x41ed25['start']['isEqual'](_0x56470a)||!_0x41ed25['end']['isEqual'](_0x54a859))&&(_0x56470a['isBefore'](_0x54a859)?_0x339915['updateMarker'](_0x30abf3,{'range':_0x339915['createRange'](_0x56470a,_0x54a859)}):_0x339915['removeMarker'](_0x30abf3),!0x0);}function Lt(_0x2b0a27){return _0x33e6a4(_0x2b0a27);}function Jt(_0x1a475e){const _0x1d59a0=_0x1a475e['start']['nodeAfter'];return _0x1d59a0&&_0x1d59a0['is']('element');}function Kt(_0x574fbc){return Pt(_0x574fbc)||function(_0x5e3f02){return _0x5e3f02['start']['parent']==_0x5e3f02['end']['nodeBefore']&&_0x5e3f02['start']['isAtEnd'];}(_0x574fbc);}function Ht(_0x454f30,_0x34b022){try{const _0x3a53b8=_0x454f30['getRange']();for(const _0x26156d of _0x34b022)if(_0x454f30!==_0x26156d&&_0x3a53b8&&_0x3a53b8['isIntersecting'](_0x26156d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x516627,_0x4b0e98){return null==_0x516627['end']['nodeBefore']&&_0x516627['end']['parent']==_0x516627['start']['nodeAfter']?zt(_0x516627['start']['nodeAfter'],_0x4b0e98):_0x516627;}function zt(_0x187586,_0x3c880f){const _0x50288b=_0x3c880f['schema']['isObject'](_0x187586)||_0x3c880f['schema']['isSelectable'](_0x187586);return _0x3c880f['createRange'](_0x3c880f['createPositionAt'](_0x187586,'before'),_0x50288b?_0x3c880f['createPositionAfter'](_0x187586):_0x3c880f['createPositionAt'](_0x187586,'end'));}function Wt(_0x34254d,_0x568ec8,_0x3cd511,_0x3d41ee){return!!Qt(_0x34254d,_0x568ec8)&&_0x3cd511['end']['isEqual'](_0x3d41ee['start']);}function Qt(_0x17f9fc,_0x4711e0){if(!_0x17f9fc['_isDataLoaded']||!_0x4711e0['_isDataLoaded'])return!0x1;const _0x1f7a9c=new Set(Object['keys'](_0x17f9fc['attributes'])),_0xecb67e=new Set(Object['keys'](_0x4711e0['attributes']));if(_0x1f7a9c['delete']('groupId'),_0xecb67e['delete']('groupId'),0x0==_0x1f7a9c['size']&&0x0==_0xecb67e['size'])return!0x0;if(_0x1f7a9c['size']!=_0xecb67e['size'])return!0x1;const _0x3b4c72={..._0x17f9fc['attributes']},_0x399bf2={..._0x4711e0['attributes']};return delete _0x3b4c72['groupId'],delete _0x399bf2['groupId'],JSON['stringify'](_0x3b4c72)==JSON['stringify'](_0x399bf2);}function Xt(_0x586136,_0x4f62fe){const _0x2f0b36=Yt(_0x586136['attributes']),_0x3ede35=Yt(_0x4f62fe);if(!_0x586136['_isDataLoaded'])return!0x1;for(const _0x13a9ac of Object['keys'](_0x3ede35))if(!_0xc3c78d(_0x2f0b36[_0x13a9ac],_0x3ede35[_0x13a9ac]))return!0x1;return!0x0;}function Yt(_0x54cbbe){const _0x11d8ef=Object['assign']({},_0x54cbbe);return delete _0x11d8ef['skipNestingCheck'],delete _0x11d8ef['tablePasteChainId'],_0x11d8ef;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x7cb8e6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x33176d,_0x484336,_0x41b24a,_0x576986){super(),this['model']=_0x484336,this['view']=_0x41b24a,this['commentThreadController']=_0x576986,this['_editor']=_0x33176d,this['_acceptCommand']=_0x33176d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x33176d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xe8f7a7,_0x414be1)=>_0xe8f7a7||_0x414be1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1f786d=>_0x1f786d&&this['_editor']['model']['canEditAt'](_0x484336['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x57187e=>_0x57187e&&this['_editor']['model']['canEditAt'](_0x484336['getRanges']())),this['_pendingAction']=null,_0x41b24a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x41b24a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x41b24a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x41b24a,'change:isDirty',()=>{_0x41b24a['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 _0x15cb2f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x15cb2f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x82181d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x23345b,_0x43efc7,_0x5e3be5,_0x49ef30){super(_0x23345b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xfbaee4(_0x23345b,o(_0x23345b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x43efc7['authoredAt']),this['bind']('authoredAt')['to'](_0x43efc7),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',_0x43efc7,'authoredAt',this,'descriptionParts',(_0x5f2544,_0x5d842c,_0x3b212e)=>{const _0x419ae2=_0x3b212e['map'](_0x1697f7=>ls(_0x1697f7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5f2544-0x1,_0x43efc7['author']['name'],_0x5d842c?_0x49ef30['formatDateTime'](_0x5d842c):'',new DOMParser()['parseFromString'](_0x419ae2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x37eaf5(),this['focusTracker']=new _0x2ddf09(),this['keystrokes']=new _0x1d8819(),this['focusCycler']=new _0x4f3dd6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x227d96=>_0x227d96['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x43efc7,this['_localUser']=_0x5e3be5,this['_config']=_0x49ef30,_0x49ef30['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xb72961(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x28db25}=this['_config'];this['commentsListView']=new _0x28db25(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',_0x54d74a=>_0x54d74a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1387cb,_0x284a87)=>_0x1387cb||!!_0x284a87);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x57e022}=this['_config'],_0x405392=new _0x57e022(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2b9941=_0x405392['commentInputView'];return _0x405392['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2b9941,'value',(_0x551e1c,_0x142e57,_0x3fcaed)=>!!_0x3fcaed||_0x551e1c&&!_0x142e57),_0x2b9941['on']('submit',(_0x4f499e,_0x4c156b)=>{this['fire']('addComment',_0x4c156b),_0x2b9941['editor']['setData']('');}),_0x2b9941['on']('cancel',()=>this['focus']()),_0x2b9941['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x405392;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x119b88,_0x5550f7,_0x8217ab,_0x329d90){super(_0x119b88,_0x5550f7,_0x8217ab,_0x329d90),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2325d3=>_0x2325d3&&_0x2325d3[0x0]?_0x2325d3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x49b716,_0x20cb1d)=>{let _0x134291='';for(const _0x46b6da of _0x49b716)_0x134291+='<p>'+ls(_0x46b6da['content'],_0x46b6da['color'])+'</p>';return _0x20cb1d?_0x134291:_0x160e74(_0x134291,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x329d90['SuggestionView'](_0x119b88,_0x5550f7,{'formatDateTime':_0x329d90['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 _0x44892d=this['bindTemplate'],_0xa7ddf6=[this['suggestionView']];return this['commentsListView']&&_0xa7ddf6['push'](this['commentsListView']),this['commentThreadInputView']&&_0xa7ddf6['push'](this['commentThreadInputView']),_0xa7ddf6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x44892d['if']('isActive','ck-suggestion-wrapper--active'),_0x44892d['to']('type',_0x51e42f=>'ck-suggestion-'+_0x51e42f),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':_0x44892d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xa7ddf6};}['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 _0x82181d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1c4f03,_0x7aa093,_0x689198){super(_0x1c4f03),this['_model']=_0x7aa093,this['_config']=_0x689198,this['set']('description',''),this['bind']('authoredAt')['to'](_0x7aa093),this['acceptButton']=this['_createButton'](o(_0x1c4f03,'Accept\x20suggestion'),_0x213bac,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1c4f03,'Discard\x20suggestion'),_0x6ce368,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x14672c(_0x1c4f03,_0x7aa093['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x37eaf5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2ddf09(),this['keystrokes']=new _0x1d8819(),this['focusCycler']=new _0x4f3dd6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x30acdc=>_0x30acdc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x325070=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x325070['innerHTML']=this['description'],this['on']('change:description',(_0x2c9414,_0x5e6081,_0x4a644d)=>{_0x325070['innerHTML']=_0x4a644d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2e92a0=this['bindTemplate'],_0x53781d=[{'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':_0x2e92a0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2e92a0['to']('authoredAt',_0x25f81d=>this['_config']['formatDateTime'](_0x25f81d))}]}]},{'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']&&_0x53781d['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':_0x53781d}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4172a9,_0x234e51,_0x32ff12,_0x2560f3,_0x5d7c18){const _0x3e7278=new _0x319b6b(this['locale']);return _0x3e7278['set']({'label':_0x4172a9,'icon':_0x234e51,'tooltip':!0x0,'tooltipPosition':_0x5d7c18}),_0x3e7278['extendTemplate']({'attributes':{'class':_0x32ff12}}),_0x3e7278['on']('execute',()=>{this['fire'](_0x2560f3,this['_model']['id']);}),_0x3e7278;}['_setupKeyboardNavigation'](){const _0x2133ae=this['element'];this['keystrokes']['listenTo'](_0x2133ae);for(const _0x388b01 of this['focusables'])this['focusTracker']['add'](_0x388b01['element']),this['keystrokes']['listenTo'](_0x388b01['element']);this['keystrokes']['set']('enter',(_0x3a2234,_0x11c91f)=>{_0x2133ae===_0x3a2234['target']&&(this['focusCycler']['focusFirst'](),_0x11c91f());}),this['keystrokes']['set']('esc',(_0x279c1f,_0x10075c)=>{_0x2133ae!==_0x279c1f['target']&&(this['focus'](),_0x10075c());});}}class u extends _0x5b0fc1{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x234c27,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a88cb){super(_0x5a88cb),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x31c4b5=this['editor']['config'];_0x31c4b5['define']('trackChanges.SuggestionThreadView',fe),_0x31c4b5['define']('trackChanges.SuggestionView',we),_0x31c4b5['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x31c4b5['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3e4a2d,_0x5f257c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3916a0,_0x3613cd]of this['_handleControllerBuffer']){const _0x1c1512=this['_suggestionToController']['has'](_0x3916a0);_0x1c1512||_0x3613cd?_0x1c1512&&_0x3613cd&&this['_destroyController'](_0x3916a0):this['_initializeController'](_0x3916a0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3e4a2d,_0x5f257c);}['init'](){const _0x5d5d87=this['editor'],_0x39b534=_0x5d5d87['plugins']['get']('TrackChangesEditing'),_0xe78399=_0x5d5d87['plugins']['get']('Annotations'),_0x5cc9a2=_0x5d5d87['plugins']['get']('EditorAnnotations'),_0x54a86b=_0x5d5d87['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5cc9a2['addSourceCollector'](()=>{const _0x13da52=[];for(const [_0x4f772a,_0x5090f4]of Array['from'](this['_suggestionToController'])){const _0x5220d8=_0x4f772a['getAllAdjacentSuggestions'](),_0x57b0a5=[];for(const _0x26b9b5 of _0x5220d8){if(!_0x26b9b5['isInContent'])continue;if(_0x26b9b5['isMultiRange']){_0x57b0a5['push'](..._0x26b9b5['getRanges']());continue;}const _0x2eb961=_0x26b9b5['getFirstRange']();if(_0x57b0a5['length']>0x0){const _0x2fdfc3=_0x57b0a5[0x0]['getJoined'](_0x2eb961);if(_0x2fdfc3){_0x57b0a5[0x0]=_0x2fdfc3;continue;}}_0x57b0a5['push'](_0x2eb961);}_0x13da52['push']([_0x5090f4['view'],_0x57b0a5]);}return _0x13da52;}),this['listenTo'](_0x39b534,'suggestionLoaded',(_0x49cb1d,_0x3a8253)=>{this['listenTo'](_0x3a8253,'change:previous',(_0x2d2c03,_0x54e065,_0x4f4875,_0x1202f8)=>{_0x3a8253['isInContent']&&(null==_0x4f4875?(this['_updateController'](_0x1202f8['head']),this['_handleSuggestionControllerDelayed'](_0x3a8253,!0x1)):(this['_updateController'](_0x4f4875['head']),null==_0x1202f8&&this['_handleSuggestionControllerDelayed'](_0x3a8253,!0x0)));}),null!==_0x3a8253['previous']?this['_updateController'](_0x3a8253['head']):this['_handleSuggestionControllerDelayed'](_0x3a8253,!0x1);}),this['listenTo'](_0x39b534,'suggestionUnloaded',(_0x3dcad2,_0x10fcc9,_0x575e6e)=>{this['stopListening'](_0x10fcc9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x10fcc9),this['_suggestionToController']['has'](_0x10fcc9)&&this['_destroyController'](_0x10fcc9),_0x575e6e&&this['_updateController'](_0x575e6e['head']);}),this['listenTo'](_0x39b534,'suggestionChanged',(_0x1b134b,_0x510afb)=>{this['_updateController'](_0x510afb);}),this['listenTo'](_0xe78399,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x54a86b,'addComment',(_0x317524,{threadId:_0x319595,isFromAdapter:_0x3e715f})=>{if(_0x3e715f||!_0x39b534['hasSuggestion'](_0x319595))return;const _0x958745=_0x39b534['getSuggestion'](_0x319595);this['_suggestionToController']['get'](_0x958745)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a9113=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14669a;for(const _0x325737 in _0x4a9113){const _0x343e0c=_0x325737,_0x5461c1=_0x4a9113[_0x343e0c];if('trackChangesLicenseKeyValid'==_0x5461c1||'trackChangesLicenseKeyInvalid'==_0x5461c1||'trackChangesLicenseKeyExpired'==_0x5461c1||'trackChangesLicenseKeyDomainLimit'==_0x5461c1||'trackChangesLicenseKeyNotAllowed'==_0x5461c1||'trackChangesLicenseKeyEvaluationLimit'==_0x5461c1||'trackChangesLicenseKeyTrialLimit'==_0x5461c1||'trackChangesLicenseKeyUsageLimit'==_0x5461c1){delete _0x4a9113[_0x343e0c],_0x14669a=_0x5461c1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x14669a&&_0x4a9113['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x14669a&&_0x4a9113['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x14669a&&_0x4a9113['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x14669a&&_0x4a9113['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x14669a&&_0x4a9113['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x14669a&&_0x4a9113['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x14669a&&_0x4a9113['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x336ca1){const _0x247fd4=this['_suggestionToController']['get'](_0x336ca1);if(!_0x247fd4)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x247fd4['view'])||null;}['getSuggestionForAnnotation'](_0x494050){const _0x201083=this['_viewToController']['get'](_0x494050['innerView']);return _0x201083?_0x201083['model']:null;}['_refreshActiveMarkers'](){const _0x2680e4=this['editor']['plugins']['get']('Annotations'),_0xd462bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a024e=Array['from'](_0x2680e4['activeAnnotations'],_0x5ac778=>_0x5ac778['innerView'])['filter'](_0x4947ce=>this['_viewToController']['has'](_0x4947ce)),_0x586946=[];for(const _0x119848 of _0x5a024e){const _0x227bb8=this['_viewToController']['get'](_0x119848)['model']['getAllAdjacentSuggestions']();_0x586946['push'](..._0x227bb8['reduce']((_0x51f063,_0x5f2f98)=>[..._0x51f063,..._0x5f2f98['getMarkerNames']()],[]));}_0xd462bb['activeMarkers']=_0x586946;}['_addUIComponentsToFactory'](){const _0x4bc555=this['editor'],_0x2253dc=_0x4bc555['locale'],_0x33d586=o(_0x2253dc,'Track\x20changes'),_0x176cf5=new _0x19a98c([{'type':'switchbutton','model':new _0x512104({'withText':!0x0,'isToggleable':!0x0,'label':_0x33d586,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x512104({'withText':!0x0,'label':o(_0x2253dc,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x512104({'withText':!0x0,'label':o(_0x2253dc,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x512104({'withText':!0x0,'label':o(_0x2253dc,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x512104({'withText':!0x0,'label':o(_0x2253dc,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4bc555['plugins']['has']('TrackChangesPreview')&&_0x176cf5['addMany']([{'type':'separator'},{'type':'button','model':new _0x512104({'withText':!0x0,'label':o(_0x2253dc,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x401a43 of _0x176cf5)if(ke(_0x401a43)){const _0x2ad014=_0x4bc555['commands']['get'](_0x401a43['model']['commandName']);_0x401a43['model']['bind']('isOn','isEnabled')['to'](_0x2ad014,'value','isEnabled');}_0x4bc555['ui']['componentFactory']['add']('trackChanges',_0x170937=>this['_createToolbarButton'](_0x170937,_0x176cf5,_0x33d586)),_0x4bc555['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1ce82d=>this['_createMenuBarMenu'](_0x1ce82d,_0x176cf5,_0x33d586));}['_createToolbarButton'](_0x53beff,_0x196aa2,_0x17fb44){const _0x235f37=_0x5a6ae7(_0x53beff,_0x5d4f1c),_0x144b23=this['editor']['commands']['get']('trackChanges');_0x235f37['buttonView']['set']({'tooltip':_0x17fb44,'label':_0x17fb44,'icon':_0x5d3ade}),_0x235f37['buttonView']['bind']('isOn')['to'](_0x144b23,'value'),_0x235f37['buttonView']['on']('execute',()=>{_0x144b23['execute'](),this['editor']['editing']['view']['focus']();}),_0x4ea227(_0x235f37,_0x196aa2,{'role':'menu'});const _0x2f49f6=[];for(const _0x4aea66 of _0x196aa2)ke(_0x4aea66)&&_0x2f49f6['push'](this['editor']['commands']['get'](_0x4aea66['model']['commandName']));const _0xf27a6a=_0x235f37['buttonView'];return _0xf27a6a['actionView']['unbind']('isEnabled'),_0xf27a6a['arrowView']['unbind']('isEnabled'),_0xf27a6a['actionView']['bind']('isEnabled')['to'](_0x144b23,'isEnabled'),_0xf27a6a['arrowView']['bind']('isEnabled')['toMany'](_0x2f49f6,'isEnabled',(..._0x39f9af)=>_0x39f9af['some'](_0x1a577b=>_0x1a577b)),_0x235f37['on']('execute',_0x3ac385=>{this['editor']['execute'](_0x3ac385['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x235f37;}['_createMenuBarMenu'](_0x23b5fa,_0x1451e8,_0x2e308e){const _0x25fc4d=new _0x43299e(_0x23b5fa),_0x23238a=this['editor']['commands']['get']('trackChanges');_0x25fc4d['buttonView']['set']({'label':_0x2e308e,'icon':_0x5d3ade});const _0x5d82b1=new _0x2b1a48(_0x23b5fa);for(const _0x42256c of _0x1451e8){if('separator'==_0x42256c['type']){_0x5d82b1['items']['add'](new _0x584afe(_0x23b5fa));continue;}const _0x5a5da4=new _0x5da6d5(_0x23b5fa,_0x25fc4d),_0x3e61fc=new _0x305d68(_0x23b5fa),_0x3826c7=_0x42256c['model'];_0x3e61fc['bind'](...Object['keys'](_0x3826c7))['to'](_0x3826c7),_0x3e61fc['delegate']('execute')['to'](_0x25fc4d),_0x3e61fc['on']('execute',()=>{this['editor']['execute'](_0x3826c7['commandName']),this['editor']['editing']['view']['focus']();}),_0x5a5da4['children']['add'](_0x3e61fc),_0x5d82b1['items']['add'](_0x5a5da4);}return _0x25fc4d['bind']('isEnabled')['to'](_0x23238a,'isEnabled'),_0x25fc4d['panelView']['children']['add'](_0x5d82b1),_0x25fc4d;}['_initializeController'](_0x16b0b6){const _0x45b1f5=this['editor'],_0x5108b0=_0x45b1f5['config'],_0x52901f=_0x45b1f5['plugins']['get']('Annotations'),_0x4ee928=_0x45b1f5['plugins']['get']('CommentsRepository'),_0x5024d6=_0x45b1f5['plugins']['get']('EditorAnnotations'),_0x1f1355=_0x45b1f5['plugins']['get'](_0x234c27)['me'],_0x278d76=_0x5108b0['get']('trackChanges')['SuggestionThreadView'],_0x2abf4d=_0x5108b0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x34944d,CommentThreadInputView:_0x52f339}=_0x45b1f5['plugins']['get']('CommentsUI');let _0x105704,_0x588a0b,_0x474bca;this['_annotationViews']['has'](_0x16b0b6['id'])?(_0x588a0b=this['_annotationViews']['get'](_0x16b0b6['id']),_0x105704=_0x588a0b['mainView']):(_0x105704=new _0x278d76(_0x45b1f5['locale'],_0x16b0b6,_0x1f1355,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5108b0['get']('comments.editorConfig'),'licenseKey':_0x5108b0['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5108b0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5108b0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5108b0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1e0570(_0x5108b0['get']('locale'),_0x45b1f5['locale']),'CommentView':_0x5108b0['get']('comments')['CommentView'],'CommentsListView':_0x34944d,'CommentThreadInputView':_0x52f339,'SuggestionView':_0x2abf4d}),_0x105704['suggestionView']['acceptButton']['on']('execute',()=>{_0x45b1f5['editing']['view']['focus']();}),_0x105704['suggestionView']['discardButton']['on']('execute',()=>{_0x45b1f5['editing']['view']['focus']();}),_0x588a0b=_0x52901f['createAnnotationView'](this['editor']['locale'],_0x105704),_0x588a0b['bind']('isDirty')['to'](_0x105704,'isDirty'),_0x588a0b['bind']('length')['to'](_0x105704),_0x588a0b['bind']('type')['to'](_0x105704,'type',_0x467910=>'suggestion-'+_0x467910),_0x105704['on']('escape',()=>{_0x474bca['fire']('escape');}),this['_annotationViews']['set'](_0x16b0b6['id'],_0x588a0b));const _0x245984=_0x4ee928['createCommentThreadController'](_0x16b0b6['commentThread'],_0x105704),_0x1ee0cf=new pe(_0x45b1f5,_0x16b0b6,_0x105704,_0x245984),_0x92e7e4=_0x16b0b6['getAllAdjacentSuggestions']()['filter'](_0x5d104d=>_0x5d104d['isInContent']);_0x105704['descriptionParts']=_0x45b1f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x92e7e4),this['_suggestionToController']['set'](_0x16b0b6,_0x1ee0cf),this['_viewToController']['set'](_0x105704,_0x1ee0cf);const _0x26167c=()=>{const _0x4df47d=[],_0x526533=_0x16b0b6['getAllAdjacentSuggestions']()['filter'](_0xa8402a=>_0xa8402a['isInContent']);for(const _0x2ed38d of _0x526533)_0x4df47d['push'](..._0x2ed38d['getMarkers']());return _0x4ab8a4(_0x45b1f5['editing'],_0x4df47d);};_0x474bca=_0x52901f['createAnnotation']({'view':_0x588a0b,'target':_0x26167c,'type':()=>'suggestion-'+_0x1ee0cf['view']['type'],'isVisible':!!_0x26167c()}),_0x4ee928['_bindAnnotationToEditors'](_0x105704,_0x474bca),_0x52901f['add'](_0x474bca),_0x5024d6['registerAnnotation'](_0x474bca);}['_destroyController'](_0x42f678){const _0x31bd9b=this['editor']['plugins']['get']('CommentsRepository'),_0xaae139=this['editor']['plugins']['get']('Annotations'),_0x3a9e42=this['_suggestionToController']['get'](_0x42f678),_0x16c4f0=_0x3a9e42['view'],_0x5b99d7=_0xaae139['getByInnerView'](_0x16c4f0);_0x31bd9b['_unbindEditors'](_0x16c4f0),_0x5b99d7&&_0xaae139['remove'](_0x5b99d7),this['_suggestionToController']['delete'](_0x42f678),this['_viewToController']['delete'](_0x16c4f0),_0x3a9e42['destroy']();}['_updateController'](_0x3126cd){if(!_0x3126cd['isInContent']||!this['_suggestionToController']['has'](_0x3126cd))return;const _0x1b8487=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4afe60=this['_suggestionToController']['get'](_0x3126cd),_0x13d107=_0x3126cd['getAllAdjacentSuggestions']();_0x4afe60['view']['descriptionParts']=_0x1b8487['descriptionFactory']['getDescriptions'](_0x13d107);}['destroy'](){for(const _0x13c1f8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x13c1f8);for(const _0x1b188a of this['_annotationViews']['values']())_0x1b188a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3dfce1){return'model'in _0x3dfce1;}class Fe extends _0x5b0fc1{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3e51b3){this['editor']['plugins']['get'](d)['adapter']=_0x3e51b3;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1447e3){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1447e3);}['getSuggestions']({skipNotAttached:_0x22452e=!0x1,toJSON:_0xe320c8=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x22452e,'toJSON':_0xe320c8});}['getSuggestion'](_0x17396c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x17396c);}}const p=['Pagination'];class re extends _0x5b0fc1{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1221e8=this['editor'];if(_0x1221e8['config']['define']('trackChangesData.editorCreator',_0x39d82d=>{const _0xa39c86=_0x1221e8['model']['document']['getRootNames']()['reduce']((_0x325991,_0x576007)=>(_0x325991[_0x576007]='',_0x325991),{});return _0x1221e8['constructor']['create'](_0xa39c86,_0x39d82d);}),'function'!=typeof _0x1221e8['config']['get']('trackChangesData')['editorCreator'])throw new _0xa020e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x51aeb0){return P(this['editor'],!0x0,_0x51aeb0);}['getDataWithDiscardedSuggestions'](_0x400a9a){return P(this['editor'],!0x1,_0x400a9a);}}class Ge extends _0x5b0fc1{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27da97){function _0x225708(_0x4735bb){return _0x4735bb['map'](_0x34dbc9=>String['fromCharCode'](_0x34dbc9))['join']('');}super(_0x27da97),this['result']='end',_0x27da97[_0x225708([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x225708([0x76,0x69,0x65,0x77])][_0x225708([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x225708([0x61,0x75,0x74,0x6f]),_0x27da97[_0x225708([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x225708([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x225708([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x225708([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x225708([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 He(_0x3d5522){return void 0x0!==_0x3d5522['getRootsAttributes'];}async function P(_0x134e78,_0x96685c,_0x465593){const _0x3e4059=_0x30b1b3(_0x134e78,p);_0x3e4059['plugins']['push'](d,Ge),_0x3e4059['rootsAttributes']=He(_0x134e78)?_0x134e78['getRootsAttributes']():void 0x0;const _0x4a27f1=document['createDocumentFragment'](),_0x473600=_0x134e78['config']['get']('trackChangesData')['editorCreator'],_0x23ee97=await _0x473600(_0x3e4059,()=>function(_0x2eccfd){const _0x445318=document['createElement']('div');return _0x2eccfd['appendChild'](_0x445318),_0x445318;}(_0x4a27f1));!function(_0x53ac7c,_0xfdbcf5){const _0x21b5cb=_0x53ac7c['model']['document']['getRootNames']()['reduce']((_0xdabed3,_0x13af0c)=>(_0xdabed3[_0x13af0c]=_0x53ac7c['data']['get']({'rootName':_0x13af0c}),_0xdabed3),{}),_0x2d7605=_0x53ac7c['plugins']['get']('Users')['users']['map'](_0x18444a=>({'id':_0x18444a['id'],'name':_0x18444a['name']})),_0x3070fa=_0x53ac7c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x343b4d=_0x53ac7c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19a777=_0xfdbcf5['plugins']['get']('Users'),_0x2ee9c2=_0xfdbcf5['plugins']['get']('TrackChangesEditing'),_0x46db4f=_0xfdbcf5['plugins']['get']('CommentsRepository');for(const _0x5525c2 of _0x46db4f['getCommentThreads']())_0x5525c2['remove']();for(const _0x5b1e20 of _0x2d7605)_0x19a777['getUser'](_0x5b1e20['id'])||_0x19a777['addUser'](_0x5b1e20);_0x19a777['me']||_0x19a777['useAnonymousUser']();for(const _0x28dd1e of _0x343b4d)_0x46db4f['addCommentThread'](_0x28dd1e);for(const _0x57b94b of _0x3070fa)_0x2ee9c2['addSuggestionData'](_0x57b94b);_0xfdbcf5['data']['set'](_0x21b5cb);}(_0x134e78,_0x23ee97),_0x23ee97['execute'](_0x96685c?'acceptAllSuggestions':'discardAllSuggestions');const _0x3a642e=He(_0x23ee97)?_0x23ee97['getFullData'](_0x465593):_0x23ee97['data']['get'](_0x465593);return await _0x23ee97['destroy'](),_0x3a642e;}class Me extends _0x82181d{['options'];constructor(_0x47abb0,_0x489415){super(_0x47abb0),this['options']=_0x489415,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'](_0x503b2d,_0x3d32e7){if(!this['element'])return;const _0x1915a7=[];for(const [_0x1c46f7,_0x55f43e]of _0x503b2d){const _0x44b994=document['createElement']('div');_0x44b994['setAttribute']('data-ck-root-name',_0x1c46f7),_0x44b994['className']=_0x55f43e['classes']+'\x20ck-track-changes-preview__root-container',_0x44b994['innerHTML']=_0x55f43e['content'],_0x1915a7['push'](_0x44b994);}_0x3d32e7(this['element'],_0x1915a7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2a3112{constructor(_0x3e4a16){super(_0x3e4a16),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4eee75=this['editor'],_0x5084fd=_0x4eee75['locale'],_0x18edee=_0x4eee75['plugins']['get']('Dialog');let _0x1b9355;const _0x2b00d4=function(_0x32d659){const _0x470794={};if('editables'in _0x32d659['ui']['view']){for(const [_0x17f813,_0x2320b3]of Object['entries'](_0x32d659['ui']['view']['editables']))_0x470794[_0x17f813]=_0x2320b3['element'];}else _0x470794[_0x32d659['model']['document']['getRootNames']()[0x0]]=_0x32d659['ui']['view']['editable']['element'];return _0x470794;}(_0x4eee75),_0x5c0be3=function(_0x40308c){let _0x33984e=0x0;for(const _0x2ff0af of Object['values'](_0x40308c))_0x33984e=Math['max'](_0x33984e,_0x2ff0af['getBoundingClientRect']()['width']);let _0x24cc7d=0x0;for(const _0x4cbc70 of Object['values'](_0x40308c))_0x24cc7d+=_0x4cbc70['getBoundingClientRect']()['height'];const _0x29bdc6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4ad342=Math['min'](_0x24cc7d,_0x29bdc6);return{'width':_0x33984e,'height':_0x4ad342};}(_0x2b00d4);_0x18edee['show']({'id':'finalContentPreview','title':o(_0x5084fd,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5084fd,{'dialogRects':_0x5c0be3}),'onHide':()=>{_0x1b9355['detachFromDom']();},'onShow':()=>{_0x4eee75['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4435e9=>{const _0x243fab=this['_standarizeRootsData'](_0x4435e9,_0x4eee75,_0x2b00d4);_0x18edee['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x243fab,_0x4eee75['config']['get']('trackChanges.preview.renderFunction'));}),_0x1b9355=new _0x202643(_0x5084fd,[_0x18edee['view']]),_0x1b9355['attachToDom'](),_0x1b9355['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4eee75['once']('destroy',()=>{_0x1b9355['detachFromDom']();});const _0x159843=_0x18edee['view']['headerView']['class'];_0x18edee['view']['headerView']['class']=_0x159843?_0x159843+'\x20ck-reset_all':'ck-reset_all',_0x18edee['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x18edee['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x251415=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x44cb08=_0x251415['previewMode'],_0x15088a={};if('$labels'===_0x44cb08){for(const _0x571c39 of _0x251415['getMergeFieldsIds']())_0x15088a[_0x571c39]=_0x251415['getLabel'](_0x571c39)||_0x571c39;}else{const _0x1f37ec='$defaultValues'===_0x44cb08?_0x251415['getDefaultValues']():_0x251415['getDataSetValues'](_0x44cb08,!0x0);for(const _0x1edd54 of Object['entries'](_0x1f37ec)){const [_0x51879c,_0x4143fb]=_0x1edd54;_0x15088a[_0x51879c]=null!==_0x4143fb?_0x4143fb:_0x251415['getLabel'](_0x51879c)||_0x51879c;}}return{'mergeFieldsData':_0x15088a};}['_standarizeRootsData'](_0x4f0c4b,_0x58f3a1,_0xfe8c10){let _0x528dc2;if('string'==typeof _0x4f0c4b){const _0x5e80cd=_0x58f3a1['model']['document']['getRootNames']()[0x0];_0x528dc2={[_0x5e80cd]:_0x4f0c4b};}else _0x528dc2=_0x4f0c4b;const _0xbcb389=this['_fixMediaEmbeds'](_0x528dc2,_0x58f3a1),_0x34772a=function(_0x5e141e,_0x16cc1c){for(const [_0x34133e,_0x370777]of _0x5e141e)_0x370777['classes']=_0x16cc1c[_0x34133e]['classList']['value']['replace']('ck-focused','');return _0x5e141e;}(this['_sortRoots'](_0x58f3a1)['reduce']((_0x55d042,_0x469e97)=>(_0x55d042['push']([_0x469e97,{'content':_0xbcb389[_0x469e97],'classes':''}]),_0x55d042),[]),_0xfe8c10);return _0x34772a;}['_fixMediaEmbeds'](_0x2989bd,_0x4da9a3){if(!_0x4da9a3['plugins']['has']('MediaEmbedEditing'))return _0x2989bd;const _0xbc3d75=_0x4da9a3['plugins']['get']('MediaEmbedEditing');for(const [_0x2a7c96,_0x27b265]of Object['entries'](_0x2989bd)){const _0x5c9726=document['createElement']('div');_0x5c9726['innerHTML']=_0x27b265,(_0x5c9726['querySelectorAll']('figure.media')['forEach'](_0x1d7096=>{const _0x46530c=_0x1d7096['querySelector']('oembed');if(_0x46530c){const _0xd0c159=_0x46530c['getAttribute']('url');if(_0xd0c159){const _0x140501=_0xbc3d75['registry']['getMediaViewElement'](new _0x44279a(_0x4da9a3['editing']['view']['document']),_0xd0c159,{'elementName':'','renderForEditingView':!0x0}),_0xeb9d43=document['createElement']('div');_0xeb9d43['classList']['add']('ck-media__wrapper'),_0x140501['render'](_0xeb9d43,_0x4da9a3['editing']['view']['domConverter']),_0x46530c['replaceWith'](_0xeb9d43);}}}),_0x2989bd[_0x2a7c96]=_0x5c9726['innerHTML']);}return _0x2989bd;}['_sortRoots'](_0x3cc4b5){if(!function(_0x430b3e){return void 0x0!==_0x430b3e['getRootsAttributes'];}(_0x3cc4b5))return _0x3cc4b5['model']['document']['getRootNames']();const _0x1c96c0=[],_0x591521=new Map();for(const _0x413700 of _0x3cc4b5['model']['document']['getRootNames']()){const _0x5cee70=_0x3cc4b5['editing']['view']['getDomRoot'](_0x413700)['getClientRects']()['item'](0x0);_0x1c96c0['push'](_0x413700),_0x591521['set'](_0x413700,_0x5cee70);}return _0x1c96c0['sort']((_0x537455,_0x547b1c)=>{const _0x459b1e=_0x591521['get'](_0x537455),_0xf2120e=_0x591521['get'](_0x547b1c);return _0x459b1e['y']-_0xf2120e['y']||_0x459b1e['x']-_0xf2120e['x'];}),_0x1c96c0;}}class $e extends _0x5b0fc1{static get['requires'](){return[re,_0x370ae0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x383cd0){super(_0x383cd0),_0x383cd0['commands']['add']('previewFinalContent',new te(this['editor'])),_0x383cd0['config']['define']('trackChanges.preview.renderFunction',(_0x125f60,_0x20bd2b)=>{for(const _0x585700 of _0x20bd2b)_0x125f60['appendChild'](_0x585700);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0xa6b2bc,Plugin as _0x3d208b,PendingActions as _0x5a06fd}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x7b7a91,ObservableMixin as _0x2effd4,uid as _0x2a1324,priorities as _0x39b461,insertToPriorityArray as _0x5b486e,toArray as _0x202fa4,logWarning as _0x1b24bf,getEnvKeystrokeText as _0x2fbc9c,FocusTracker as _0x54b7f9,KeystrokeHandler as _0x11fcaa,Collection as _0x34cbff}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xd033be,IconCancel as _0x22d87d,IconTrackChanges as _0x4d0e44}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3c809e,View as _0x10f678,ViewCollection as _0x16be8e,FocusCycler as _0x516f1f,UIModel as _0x5d3757,createDropdown as _0x2da83a,SplitButtonView as _0x28ed6f,addListToDropdown as _0x121e7b,MenuBarMenuView as _0x213aca,MenuBarMenuListView as _0x23b1e2,ListSeparatorView as _0x49d392,MenuBarMenuListItemView as _0x4766bd,MenuBarMenuListItemButtonView as _0xacdab,BodyCollection as _0xf2f5d8,Dialog as _0x3f7df2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4335da,hashObject as _0x4a387c,surroundingMarkersDetector as _0x429a60,FOCUS_ANNOTATION_KEYSTROKE as _0x192244,AriaDescriptionView as _0x54871c,setupThreadKeyboardNavigation as _0x5b486c,trimHtml as _0x72b19b,UserView as _0x446a21,LateFocusButtonView as _0x52afc4,getDateTimeFormatter as _0x2aee10,getAllMarkersDomElementsSorted as _0x105672,sanitizeEditorConfig as _0x1239bc}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3e41a7,ModelLiveRange as _0xc2a6f1,ModelLivePosition as _0xcb246,ViewDowncastWriter as _0x564624}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5c9e23,toWidget as _0x4c4449}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5d5a2d,set as _0xb65142,isEqual as _0xdd6d88,unset as _0x4c0100,omit as Ut}from'es-toolkit/compat';import{Delete as _0x48c2f9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x48fa85}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x46a89d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0xa6b2bc{['_enabledCommands'];constructor(_0xec51d6,_0x1ffc39){super(_0xec51d6),this['_enabledCommands']=_0x1ffc39,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 _0x514be9 of this['editor']['commands']['commands']())_0x514be9['affectsData']&&!this['_enabledCommands']['has'](_0x514be9)&&_0x514be9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3a4bf1 of this['editor']['commands']['commands']())_0x3a4bf1['affectsData']&&!this['_enabledCommands']['has'](_0x3a4bf1)&&_0x3a4bf1['clearForceDisabled']('TrackChangesCommand');}}class D extends _0xa6b2bc{['_suggestions'];constructor(_0x2dcf88,_0x23a078){super(_0x2dcf88),this['_suggestions']=_0x23a078,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x563ba1){const _0x516200=this['_suggestions']['get'](_0x563ba1);if(!_0x516200)throw new _0x7b7a91('track-changes-accept-suggestion-not-found',this);const _0x26bb3e=_0x516200['getRanges']();this['editor']['model']['canEditAt'](_0x26bb3e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x516200);}}class $ extends _0xa6b2bc{['_suggestions'];constructor(_0x11f90e,_0x354583){super(_0x11f90e),this['_suggestions']=_0x354583,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4082e4){const _0x267db4=this['_suggestions']['get'](_0x4082e4);if(!_0x267db4)throw new _0x7b7a91('track-changes-discard-suggestion-not-found',this);const _0x4b3dbf=_0x267db4['getRanges']();this['editor']['model']['canEditAt'](_0x4b3dbf)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x267db4);}}function ls(_0x3a3c08,_0x48139c){let _0x28bf15='';return _0x28bf15+=_0x3a3c08['split']('*')['map']((_0x38885b,_0x51fe5f)=>_0x51fe5f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x38885b)+'</span>':Zt(_0x38885b))['join'](''),_0x48139c&&(_0x28bf15+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x48139c['value']+'\x22\x20title=\x22'+_0x48139c['title']+'\x22></span>'),_0x28bf15;}function Zt(_0x50a732){const _0x8080bb=document['createElement']('span');return _0x8080bb['innerText']=_0x50a732,_0x8080bb['innerHTML'];}function ts(_0x5b1d27){return _0x5b1d27['sort']((_0x5540ee,_0x53207d)=>'attribute'===_0x5540ee['type']&&'attribute'!==_0x53207d['type']?-0x1:'attribute'!==_0x5540ee['type']&&'attribute'===_0x53207d['type']?0x1:'deletion'==_0x5540ee['type']&&'deletion'!=_0x53207d['type']?-0x1:'deletion'!=_0x5540ee['type']&&'deletion'==_0x53207d['type']?0x1:0x0);}function to(_0x44a060,_0x3c83fd){let _0x48aad2,_0x467871=0x0;const _0x518fe8=[],_0x4ad171=_0x3c83fd['schema'];for(;_0x467871<_0x44a060['length'];){const _0x27d719=_0x44a060[_0x467871],_0x5ca7b0=_0x44a060[_0x467871+0x1];_0x48aad2||(_0x48aad2=_0x3c83fd['createPositionBefore'](_0x27d719)),tn(_0x3c83fd,_0x27d719,_0x5ca7b0)||(_0x518fe8['push'](_0x3c83fd['createRange'](_0x48aad2,_0x4ad171['isObject'](_0x27d719)?_0x3c83fd['createPositionAfter'](_0x27d719):_0x3c83fd['createPositionAt'](_0x27d719,'end'))),_0x48aad2=null),_0x467871++;}return _0x518fe8;}function tn(_0x23e2b3,_0x467c92,_0x3aa929){if(!_0x3aa929)return!0x1;const _0x4d529b=_0x23e2b3['createPositionAfter'](_0x467c92),_0x194f62=_0x23e2b3['createPositionBefore'](_0x3aa929);return _0x4d529b['isTouching'](_0x194f62);}function rs(_0x2cdef5,_0x3a4851,_0x338471){for(;_0x338471['length'];){const _0x8a733e=_0x338471['splice'](0x0,0x64);_0x2cdef5['change'](()=>{for(const _0x2963e9 of _0x8a733e)_0x2963e9['isInContent']&&_0x3a4851['execute'](_0x2963e9['id']);});}}class M extends _0xa6b2bc{['_command'];['_suggestions'];constructor(_0x3d6167,_0xd668ef,_0x5b9957){super(_0x3d6167),this['_command']=_0xd668ef,this['_suggestions']=_0x5b9957,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x50ba9d=Array['from'](this['_suggestions']['values']())['some'](_0xd27ca6=>_0xd27ca6['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x50ba9d;}['execute'](){const _0x196b9d=ts(Array['from'](this['_suggestions']['values']()));for(const _0x5e7c50 of _0x196b9d){const _0x809157=_0x5e7c50['getRanges']();if(!this['editor']['model']['canEditAt'](_0x809157))return;}rs(this['editor']['model'],this['_command'],_0x196b9d);}}class B extends _0xa6b2bc{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x159615,_0x212cf4,_0x1dd5f6){super(_0x159615),this['_command']=_0x212cf4,this['_suggestions']=_0x1dd5f6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x37328f=this['editor']['model']['document']['selection'],_0x3b7b6e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x54baf6,_0x1cd262){const _0x21e8b1=Array['from'](_0x54baf6['getRanges']()),_0x581212=new Set();for(const _0x2c7ce8 of _0x1cd262)if(_0x2c7ce8['isInContent']){for(const _0x45504c of _0x21e8b1)for(const _0x185136 of _0x2c7ce8['getRanges']())(_0x45504c['isIntersecting'](_0x185136)||_0x54baf6['isCollapsed']&&!_0x2c7ce8['isMultiRange']&&_0x2c7ce8['next']&&_0x185136['end']['isTouching'](_0x45504c['start']))&&_0x581212['add'](_0x2c7ce8);}return _0x581212;}(_0x37328f,_0x3b7b6e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x504800=ts(Array['from'](this['_selectedSuggestions']));for(const _0x14efd9 of _0x504800){const _0x1bf42e=_0x14efd9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1bf42e))return;}rs(this['editor']['model'],this['_command'],_0x504800);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2effd4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3a9384,_0x4468b3){super(),this['id']=_0x4468b3['id'],this['type']=_0x4468b3['type'],this['subType']=_0x4468b3['subType']||null,this['author']=_0x4468b3['author'],this['creator']=_0x4468b3['creator']||_0x4468b3['author'],this['isExternal']=Boolean(_0x4468b3['attributes']&&_0x4468b3['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4468b3['originalSuggestionId']||null,this['_model']=_0x3a9384,this['_onAccept']=_0x4468b3['onAccept'],this['_onDiscard']=_0x4468b3['onDiscard'],this['_onAttributesChange']=_0x4468b3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4468b3['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 _0x46f46f=this;for(;_0x46f46f['previous'];)_0x46f46f=_0x46f46f['previous'];return _0x46f46f;}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'](_0x468c1e){this['_markerNames']['add'](_0x468c1e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x46693c=>this['_model']['markers']['get'](_0x46693c))['filter'](_0x4a1983=>_0x4a1983);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x23a78b=>{for(const _0x5d146f of this['getMarkers']())_0x23a78b['removeMarker'](_0x5d146f);}),this['_markerNames']['clear']();}['removeMarker'](_0x137058){this['_model']['change'](_0x37491c=>{_0x37491c['removeMarker'](_0x137058);}),this['_markerNames']['delete'](_0x137058);}['addRange'](_0x57b21f){const _0x37979b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x37979b),this['_model']['change'](_0x3e7969=>{_0x3e7969['addMarker'](_0x37979b,{'range':_0x57b21f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2e37c9){for(const _0x52dfd4 of this['getRanges']())if(_0x52dfd4['isIntersecting'](_0x2e37c9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5d6080=>_0x5d6080['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x42f48c,_0x10882c)=>[..._0x42f48c,..._0x10882c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5135da=this['getRanges']();if(0x1!=_0x5135da['length'])return null;const _0x3b3255=_0x5135da[0x0],_0x143346=_0x3b3255['start']['nodeAfter'],_0x2d8c10=_0x3b3255['end']['nodeBefore'];return _0x143346 instanceof _0x3e41a7?_0x143346!=_0x2d8c10?null:_0x143346: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 _0x5acab5=[];let _0x4c7ab9=this['head'];for(;_0x4c7ab9;)_0x5acab5['push'](_0x4c7ab9),_0x4c7ab9=_0x4c7ab9['next'];return _0x5acab5;}['setAttribute'](_0xfeea87,_0x1bb285){const _0x4e45c2=_0x5d5a2d(this['attributes']);_0xb65142(_0x4e45c2,_0xfeea87,_0x1bb285),_0xdd6d88(_0x4e45c2,this['attributes'])||(this['attributes']=_0x4e45c2,this['_onAttributesChange'](_0x4e45c2));}['removeAttribute'](_0x4a3337){const _0x43fd0b=_0x5d5a2d(this['attributes']);_0x4c0100(_0x43fd0b,_0x4a3337),_0xdd6d88(_0x43fd0b,this['attributes'])||(this['attributes']=_0x43fd0b,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 _0x2a1324()['substr'](0x1,0x5);}}function o(_0x1fb398,_0xc93f67,_0x4a44bb){const _0x35244a=_0x1fb398['t'],t=_0x1fb398['t'];switch(_0xc93f67){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',_0x4a44bb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4a44bb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4a44bb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4a44bb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4a44bb);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',_0x4a44bb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4a44bb);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',_0x4a44bb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4a44bb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4a44bb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4a44bb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4a44bb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4a44bb);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4a44bb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4a44bb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4a44bb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4a44bb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4a44bb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4a44bb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4a44bb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4a44bb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4a44bb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4a44bb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4a44bb);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4a44bb);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'},_0x4a44bb);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4a44bb);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4a44bb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4a44bb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4a44bb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4a44bb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4a44bb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4a44bb);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'},_0x4a44bb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4a44bb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4a44bb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4a44bb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4a44bb);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'},_0x4a44bb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4a44bb);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'},_0x4a44bb);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x4a44bb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4a44bb);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'},_0x4a44bb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4a44bb);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'},_0x4a44bb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4a44bb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4a44bb);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'},_0x4a44bb);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4a44bb);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 _0x35244a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4a44bb);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x35244a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4a44bb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4a44bb);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'},_0x4a44bb);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'},_0x4a44bb);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'},_0x4a44bb);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xc93f67;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x15a2fd,_0x7b8f7c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x15a2fd,this['_locale']=_0x7b8f7c;}['getDescriptions'](_0x3b89bf){const _0x29b83f=[],_0x37ed04=new Set(),_0x3360f7=new Set();for(let _0x432a7b=0x0;_0x432a7b<_0x3b89bf['length'];_0x432a7b++){const _0x1751e7=_0x3b89bf[_0x432a7b];if(!_0x1751e7['isInContent'])continue;const _0x22bc88=this['_handleCustomCallbackDescription'](_0x1751e7);if(_0x22bc88){if(null!=_0x1751e7['subType']){if(_0x37ed04['has'](_0x1751e7['subType']))continue;_0x37ed04['add'](_0x1751e7['subType']);}_0x29b83f['push'](_0x22bc88);}else{if('attribute'==_0x1751e7['type']){const _0x43ee82=_0x1751e7['data']['key'];if(_0x3360f7['has'](_0x43ee82))continue;_0x3360f7['add'](_0x1751e7['data']['key']),_0x43ee82==m?this['_handleRenameSuggestionDescription'](_0x29b83f,_0x1751e7):this['_handleAttributeSuggestionDescription'](_0x29b83f,_0x1751e7);continue;}'insertion'!=_0x1751e7['type']&&'deletion'!=_0x1751e7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x29b83f,_0x1751e7,_0x3b89bf[_0x432a7b+0x1]);}}return this['_resolveDescriptionItems'](_0x29b83f);}['registerDescriptionCallback'](_0x1cb641){this['_customCallbacks']['push'](_0x1cb641);}['registerElementLabel'](_0xf79bf5,_0x16525a,_0x10caa1=_0x39b461['normal']){'function'==typeof _0xf79bf5?_0x5b486e(this['_itemLabelsCallbacks'],{'matchingCallback':_0xf79bf5,'label':_0x16525a,'priority':_0x10caa1}):this['_itemLabels']['set'](_0xf79bf5,_0x16525a);}['registerAttributeLabel'](_0x7a3828,_0x316fbc){this['_attributeLabels']['set'](_0x7a3828,_0x316fbc);}['getItemLabel'](_0x1183dd,_0x253aed=0x1){let _0x50d201;for(const _0x28bd7c of this['_itemLabelsCallbacks'])if(_0x28bd7c['matchingCallback'](_0x1183dd)){_0x50d201=_0x28bd7c['label'];break;}return _0x50d201||(_0x50d201=this['_itemLabels']['get'](_0x1183dd['name'])),_0x50d201?_0x50d201(_0x253aed):0x1!==_0x253aed?_0x253aed+'\x20'+_0x1183dd['name']+'s':''+_0x1183dd['name'];}['_addDescriptionItems'](_0x3b4dcc,_0x5a1bfb){const _0x4532b6=_0x5a1bfb['getFirstRange']()['getWalker'](),_0x4bdb93='insertion'==_0x5a1bfb['type']?'add':'remove';for(const _0x3f70e4 of _0x4532b6){const _0xd40d88=_0x3f70e4['item'],_0x22d2b1=_0x3b4dcc[_0x3b4dcc['length']-0x1];if(_0xd40d88['is']('$textProxy'))_0x22d2b1&&_0x22d2b1['type']['indexOf']('Container')>-0x1&&_0x3b4dcc['pop'](),_0x22d2b1&&'text'==_0x22d2b1['type']?_0x22d2b1[_0x4bdb93]+=_0xd40d88['data']:_0x3b4dcc['push']({'type':'text','add':'add'==_0x4bdb93?_0xd40d88['data']:'','remove':'remove'==_0x4bdb93?_0xd40d88['data']:''});else{if(this['_schema']['isObject'](_0xd40d88)){const _0x3ec011=_0xd40d88;if(_0x22d2b1&&_0x22d2b1['type']['indexOf']('Container')>-0x1&&_0x3b4dcc['pop'](),'elementEnd'==_0x3f70e4['type'])continue;_0x22d2b1&&_0x22d2b1['type']==_0x4bdb93+'Object'&&_0x22d2b1['element']['name']==_0x3ec011['name']?_0x22d2b1['quantity']++:_0x3b4dcc['push']({'type':_0x4bdb93+'Object','element':_0x3ec011,'quantity':0x1}),_0x4532b6['skip'](_0x28eedf=>!('elementEnd'==_0x28eedf['type']&&_0x28eedf['item']==_0xd40d88));}else{if(this['_schema']['checkChild'](_0xd40d88,'$text')||_0xd40d88['is']('element','softBreak')){const _0x31d822=_0xd40d88;if('add'==_0x4bdb93&&'elementStart'==_0x3f70e4['type']||'remove'==_0x4bdb93&&'elementEnd'==_0x3f70e4['type'])continue;if(_0x22d2b1&&-0x1==_0x22d2b1['type']['indexOf']('Container')){'text'==_0x22d2b1['type']&&(_0x22d2b1[_0x4bdb93]+='\x0a');continue;}let _0x1dd527;if(_0x1dd527='add'==_0x4bdb93?_0x31d822['nextSibling']&&!this['_schema']['isObject'](_0x31d822['nextSibling'])?_0x31d822['nextSibling']:null:_0x31d822['previousSibling']&&!this['_schema']['isObject'](_0x31d822['previousSibling'])?_0x31d822['previousSibling']:null,_0x31d822['isEmpty']||_0x1dd527&&_0x1dd527['isEmpty']){const _0x2fe026=_0x1dd527&&_0x1dd527['isEmpty']?_0x1dd527:_0x31d822;_0x22d2b1&&_0x22d2b1['type']==_0x4bdb93+'EmptyContainer'&&_0x22d2b1['element']['name']==_0x2fe026['name']?_0x22d2b1['quantity']++:_0x3b4dcc['push']({'type':_0x4bdb93+'EmptyContainer','element':_0x2fe026,'quantity':0x1});}else _0x3b4dcc['push']({'type':_0x4bdb93+'Container','element':_0x31d822});}}}}}['_resolveDescriptionItems'](_0x26f907){const _0x4853a6=this['_locale'],_0x12d25e=[],_0x1ab2e8=[],_0x4d0bdb=[];for(const _0x52bff1 of _0x26f907)switch(_0x52bff1['type']){case'text':if(_0x52bff1['add']=_0x52bff1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x52bff1['remove']=_0x52bff1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x52bff1['add']&&''!=_0x52bff1['remove']){_0x12d25e['push']({'type':'replace','content':o(_0x4853a6,'REPLACE_TEXT',['\x22'+_0x52bff1['remove']+'\x22','\x22'+_0x52bff1['add']+'\x22'])});continue;}if(null!=_0x52bff1['add']['match'](/^ +$/)){_0x12d25e['push']({'type':'insertion','content':o(_0x4853a6,'*Insert:*\x20%0',o(_0x4853a6,'ELEMENT_SPACE',_0x52bff1['add']['length']))});continue;}if(null!=_0x52bff1['remove']['match'](/^ +$/)){_0x12d25e['push']({'type':'deletion','content':o(_0x4853a6,'*Remove:*\x20%0',o(_0x4853a6,'ELEMENT_SPACE',_0x52bff1['remove']['length']))});continue;}if(''!=_0x52bff1['add']){_0x12d25e['push']({'type':'insertion','content':o(_0x4853a6,'*Insert:*\x20%0','\x22'+_0x52bff1['add']+'\x22')});continue;}_0x12d25e['push']({'type':'deletion','content':o(_0x4853a6,'*Remove:*\x20%0','\x22'+_0x52bff1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x12d25e['push']({'type':'insertion','content':o(_0x4853a6,'*Insert:*\x20%0',this['getItemLabel'](_0x52bff1['element'],_0x52bff1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x12d25e['push']({'type':'deletion','content':o(_0x4853a6,'*Remove:*\x20%0',this['getItemLabel'](_0x52bff1['element'],_0x52bff1['quantity']))});continue;case'addContainer':_0x12d25e['push']({'type':'insertion','content':o(_0x4853a6,'*Split:*\x20%0',this['getItemLabel'](_0x52bff1['element'],_0x52bff1['quantity']))});continue;case'removeContainer':_0x12d25e['push']({'type':'deletion','content':o(_0x4853a6,'*Merge:*\x20%0',this['getItemLabel'](_0x52bff1['element'],_0x52bff1['quantity']))});continue;case'addFormat':_0x1ab2e8['push'](_0x52bff1['key']);continue;case'removeFormat':_0x4d0bdb['push'](_0x52bff1['key']);continue;default:_0x12d25e['push'](_0x52bff1);}if(_0x1ab2e8['length']){const _0xf9b271=_0x1ab2e8['map'](_0x19275f=>this['_attributeLabels']['has'](_0x19275f)?this['_attributeLabels']['get'](_0x19275f):_0x19275f)['join'](',\x20');_0x12d25e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xf9b271)});}if(_0x4d0bdb['length']){const _0x5273fd=_0x4d0bdb['map'](_0x3869c6=>this['_attributeLabels']['has'](_0x3869c6)?this['_attributeLabels']['get'](_0x3869c6):_0x3869c6)['join'](',\x20');_0x12d25e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5273fd)});}return _0x12d25e;}['_handleCustomCallbackDescription'](_0x13e284){for(const _0x3c2b8d of this['_customCallbacks']){const _0x2506fe=_0x3c2b8d(_0x13e284);if(_0x2506fe&&'type'in _0x2506fe)return _0x2506fe;}}['_handleAttributeSuggestionDescription'](_0x35da67,_0x17b527){const _0x1a04c9=_0x17b527['data'],_0x4bec42=void 0x0===_0x1a04c9['newValue']?'removeFormat':'addFormat';_0x35da67['push']({'type':_0x4bec42,'key':_0x1a04c9['key']});}['_handleRenameSuggestionDescription'](_0x140aea,_0x5275c2){_0x140aea['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5275c2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x31e8fb,_0x4b1ee8,_0x4f057f){if(this['_addDescriptionItems'](_0x31e8fb,_0x4b1ee8),_0x4f057f&&_0x4f057f['getFirstRange']()&&!_0x4b1ee8['getFirstRange']()['end']['isEqual'](_0x4f057f['getFirstRange']()['start'])){const _0x585f0b=_0x31e8fb[_0x31e8fb['length']-0x1],_0x31493a='insertion'==_0x4b1ee8['type']?'add':'remove';_0x585f0b&&'text'==_0x585f0b['type']&&(_0x585f0b[_0x31493a]+='\x0a');}}}class O extends _0x3d208b{['afterInit'](){const _0x127029=this['editor'],_0xddc2f3=_0x127029['plugins']['get']('TrackChangesEditing');_0x127029['commands']['get']('showAIAssistant')&&_0xddc2f3['enableCommand']('showAIAssistant');}}class E extends _0x3d208b{['afterInit'](){const _0x497f01=this['editor'],_0xeea99c=_0x497f01['locale'];if(!_0x497f01['plugins']['has']('AlignmentEditing'))return;const _0x147ae4=_0x497f01['plugins']['get']('TrackChangesEditing');_0x147ae4['enableDefaultAttributesIntegration']('alignment'),_0x147ae4['registerBlockAttribute']('alignment'),_0x147ae4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xeea99c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x374280=this['editor'],_0x201f61=_0x374280['locale'];_0x374280['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46e725=>{if('formatBlock'!=_0x46e725['type'])return;const {data:_0x5867cb}=_0x46e725;if(_0x5867cb&&'alignment'==_0x5867cb['commandName']){const _0x2ddf51=_0x5867cb['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x201f61,'*Format:*\x20%0',function(_0x589a26){switch(_0x589a26){case'left':return o(_0x201f61,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x201f61,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x201f61,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x201f61,'FORMAT_JUSTIFY_TEXT');}}(_0x2ddf51))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x3d208b{['afterInit'](){const _0x99bd2=this['editor'],_0x54e873=_0x99bd2['plugins']['get']('TrackChangesEditing'),_0x4b9135=_0x99bd2['locale'];for(const _0x244629 of ti){if(!_0x99bd2['plugins']['has'](_0x244629))continue;const _0x87e6a0=_0x244629['slice'](0x0,-0x7)['toLowerCase'](),_0x47f5af='FORMAT_'+_0x87e6a0['toUpperCase']();_0x54e873['enableDefaultAttributesIntegration'](_0x87e6a0),_0x54e873['registerInlineAttribute'](_0x87e6a0),_0x54e873['descriptionFactory']['registerAttributeLabel'](_0x87e6a0,o(_0x4b9135,_0x47f5af));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2df71b=this['editor'],_0x4ed8f9=_0x2df71b['locale'],_0x14751c=_0x2df71b['plugins']['get']('TrackChangesEditing');function _0x34270e(_0x5b1af4,_0x236756){_0x14751c['descriptionFactory']['registerDescriptionCallback'](_0x3aa997=>{if('formatInline'!=_0x3aa997['type'])return;const {data:_0x36ff3b}=_0x3aa997;return _0x36ff3b&&_0x36ff3b['commandName']===_0x5b1af4?_0x36ff3b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ed8f9,'*Format:*\x20%0',_0x236756)}:{'type':'format','content':o(_0x4ed8f9,'*Remove\x20format:*\x20%0',_0x236756)}:void 0x0;});}_0x34270e('bold',o(_0x4ed8f9,'FORMAT_BOLD')),_0x34270e('italic',o(_0x4ed8f9,'FORMAT_ITALIC')),_0x34270e('underline',o(_0x4ed8f9,'FORMAT_UNDERLINE')),_0x34270e('code',o(_0x4ed8f9,'FORMAT_CODE')),_0x34270e('strikethrough',o(_0x4ed8f9,'FORMAT_STRIKETHROUGH')),_0x34270e('subscript',o(_0x4ed8f9,'FORMAT_SUBSCRIPT')),_0x34270e('superscript',o(_0x4ed8f9,'FORMAT_SUPERSCRIPT'));}}class U extends _0x3d208b{['afterInit'](){const _0x37a7e2=this['editor'],_0x26b8b9=_0x37a7e2['locale'];if(!_0x37a7e2['plugins']['has']('BlockQuoteEditing'))return;const _0x453d18=_0x37a7e2['plugins']['get']('TrackChangesEditing'),_0x5bef48=this['editor']['commands']['get']('blockQuote');_0x453d18['enableCommand']('blockQuote',(_0x5b11b5,_0x4e8931={})=>{const _0x93bbe4=this['editor']['model']['document']['selection'],_0x376f30=_0x4e8931&&void 0x0!==_0x4e8931['forceValue']?_0x4e8931['forceValue']:!_0x5bef48['value'];let _0x50af1e=[];if(_0x376f30){const _0x552b7d=Array['from'](_0x93bbe4['getSelectedBlocks']())['filter'](_0x184e04=>oo(_0x184e04)||function(_0x3a48c4,_0x236d72){const _0x30d48e=_0x236d72['checkChild'](_0x3a48c4['parent'],'blockQuote'),_0x31f2e3=_0x236d72['checkChild'](['$root','blockQuote'],_0x3a48c4);return _0x30d48e&&_0x31f2e3;}(_0x184e04,this['editor']['model']['schema']));_0x50af1e=to(_0x552b7d,_0x37a7e2['model']);}else{const _0x374b68=Array['from'](_0x93bbe4['getSelectedBlocks']())['filter'](_0x47e86e=>oo(_0x47e86e));_0x50af1e=to(_0x374b68,_0x37a7e2['model']);}_0x37a7e2['model']['change'](()=>{for(const _0x265115 of _0x50af1e)_0x453d18['markBlockFormat'](_0x265115,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x376f30}]});});}),_0x453d18['descriptionFactory']['registerDescriptionCallback'](_0x629117=>{const {data:_0x488330}=_0x629117;if(_0x488330&&'blockQuote'==_0x488330['commandName']){const _0x2c83cd=o(_0x26b8b9,'ELEMENT_BLOCK_QUOTE');return _0x488330['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26b8b9,'*Set\x20format:*\x20%0',_0x2c83cd)}:{'type':'format','content':o(_0x26b8b9,'*Remove\x20format:*\x20%0',_0x2c83cd)};}});}}function oo(_0x573c71){return'blockQuote'==_0x573c71['parent']['name'];}class V extends _0x3d208b{['afterInit'](){const _0x193f3d=this['editor'],_0x380305=_0x193f3d['locale'],_0x82ef0f=_0x193f3d['plugins']['get']('TrackChangesEditing');_0x193f3d['plugins']['has']('BookmarkEditing')&&(_0x82ef0f['enableCommand']('insertBookmark'),_0x82ef0f['enableDefaultAttributesIntegration']('updateBookmark'),_0x82ef0f['registerBlockAttribute']('bookmarkId'),_0x82ef0f['descriptionFactory']['registerDescriptionCallback'](_0x4375cf=>{if('insertion'!=_0x4375cf['type']&&'deletion'!=_0x4375cf['type']&&'attribute'!=_0x4375cf['type'])return;const _0x838acb=_0x4375cf['getContainedElement']();if(null==_0x838acb)return;if(!_0x838acb['is']('element','bookmark'))return;const _0x4f09af=_0x838acb['getAttribute']('bookmarkId');if('insertion'==_0x4375cf['type'])return{'type':'insertion','content':o(_0x380305,'*Insert:*\x20%0','\x22'+_0x4f09af+'\x22\x20'+o(_0x380305,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4375cf['type'])return{'type':'deletion','content':o(_0x380305,'*Remove:*\x20%0','\x22'+_0x4f09af+'\x22\x20'+o(_0x380305,'ELEMENT_BOOKMARK'))};const {data:_0x3afa1d}=_0x4375cf;if(!_0x3afa1d||'bookmarkId'!=_0x3afa1d['key'])return;return{'type':'format','content':o(_0x380305,'*Set\x20bookmark:*\x20%0','\x22'+_0x3afa1d['newValue']+'\x22')};}));}}class F extends _0x3d208b{['afterInit'](){const _0x896a3a=this['editor'];_0x896a3a['plugins']['has']('CaseChange')&&(_0x896a3a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x896a3a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x896a3a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x3d208b{['afterInit'](){const _0xa22d92=this['editor'];_0xa22d92['commands']['get']('ckbox')&&_0xa22d92['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x3d208b{['afterInit'](){const _0x5755bd=this['editor'];if(!_0x5755bd['plugins']['has']('CodeBlock'))return;const _0xb68471=_0x5755bd['plugins']['get']('TrackChangesEditing'),_0x4ad624=_0x5755bd['locale'],_0x14c9d2=_0x5755bd['config']['get']('codeBlock')['languages'],_0x1476d3=_0x5755bd['commands']['get']('codeBlock');_0xb68471['enableCommand']('indentCodeBlock'),_0xb68471['enableCommand']('outdentCodeBlock'),_0xb68471['enableCommand']('codeBlock',(_0x58ca4f,_0x55a2a9={})=>{const _0x59cc3c=_0x5755bd['model'],_0x383373=_0x5755bd['model']['document']['selection'],_0x4b6960=_0x55a2a9&&void 0x0!==_0x55a2a9['forceValue']?_0x55a2a9['forceValue']:!_0x1476d3['value'];let _0x496dfb;_0x55a2a9['language']||(_0x55a2a9['language']=_0x14c9d2[0x0]['language']),_0x496dfb=_0x4b6960?Array['from'](_0x383373['getSelectedBlocks']())['filter'](_0x40d37c=>co(_0x40d37c)||function(_0x24abec,_0x45a878){if(_0x24abec['is']('rootElement')||_0x45a878['isLimit'](_0x24abec))return!0x1;return _0x45a878['checkChild'](_0x24abec['parent'],'codeBlock');}(_0x40d37c,_0x59cc3c['schema'])):Array['from'](_0x383373['getSelectedBlocks']())['filter'](_0x56df00=>co(_0x56df00));const _0x4a701b=to(_0x496dfb,_0x59cc3c);_0x59cc3c['change'](()=>{for(const _0x4572a7 of _0x4a701b)_0xb68471['markBlockFormat'](_0x4572a7,{'commandName':'codeBlock','commandParams':[{..._0x55a2a9,'forceValue':_0x4b6960}],'formatGroupId':'blockName'});});}),(_0xb68471['descriptionFactory']['registerElementLabel']('codeBlock',_0x1e335a=>o(_0x4ad624,'ELEMENT_CODE_BLOCK',_0x1e335a)),_0xb68471['descriptionFactory']['registerDescriptionCallback'](_0x263780=>{if('formatBlock'!=_0x263780['type'])return;const _0x5ec2b9=_0x4ad624['t'],{data:_0x313300}=_0x263780;if(!_0x313300||'codeBlock'!=_0x313300['commandName'])return;const _0x226cfb=_0x313300['commandParams'][0x0]['language'],_0x3011e0=_0x5ec2b9(_0x14c9d2['find'](_0xed26d9=>_0xed26d9['language']===_0x226cfb)['label'])['toLowerCase']();return _0x313300['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ad624,'*Set\x20format:*\x20%0',o(_0x4ad624,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3011e0+')')}:{'type':'format','content':o(_0x4ad624,'*Remove\x20format:*\x20%0',o(_0x4ad624,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x38508c){return'codeBlock'==_0x38508c['name'];}class J extends _0x3d208b{['afterInit'](){const _0x32ab2=this['editor'];if(!_0x32ab2['plugins']['has']('CommentsEditing'))return;_0x32ab2['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4f2815,_0x351c8c,_0x325454){const _0x4b5fd0=[];for(const _0x21aed8 of _0x351c8c['getItems']())_0x21aed8['hasAttribute'](_0x4f2815)&&_0x4b5fd0['push'](_0x325454['createRangeOn'](_0x21aed8));return _0x4b5fd0;}function De(_0x34df57,_0x3cdeb2,{showActiveMarker:_0x1fb3c0=!0x0}={}){const _0x58d24f=_0x34df57['plugins']['get']('TrackChangesEditing');return(_0x4d21c0,_0x517521,_0x494853)=>{if(!_0x494853['consumable']['test'](_0x517521['markerRange'],_0x4d21c0['name']))return;const _0x48c749=_0x517521['markerRange']['getWalker'](),_0x4eeadd=_0x517521['markerRange']['start'],_0x56af43=_0x34df57['model']['schema'];let _0x4d67cd=null,_0x1263b1=null,_0x36a505=!0x1,_0x34e433=!0x1;for(const _0x1e0321 of _0x48c749){const _0xa7e27=_0x1e0321['item'];_0x36a505=_0x36a505||_0x56af43['isContent'](_0xa7e27);const _0x29affe=_0x494853['mapper']['toViewElement'](_0xa7e27);if(_0x29affe&&_0x29affe['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1e0321['type']&&(_0x56af43['isBlock'](_0xa7e27)&&!_0x56af43['isLimit'](_0xa7e27)&&(_0xa7e27['nextSibling']||_0x4eeadd['isAtEnd']?_0x4d67cd&&_0x4d67cd['parent']==_0xa7e27||(_0x4d67cd=_0xa7e27,_0x213285(_0x1e0321['previousPosition']),_0x34e433=!0x0):_0x1263b1=_0x1263b1||_0x1e0321['previousPosition']));}function _0x213285(_0x5ec265){const {id:_0x18885d,authorId:_0x59e18d}=_0x58d24f['_splitMarkerName'](_0x517521['markerName']),_0x501e33=_0x494853['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3cdeb2,'data-suggestion':_0x18885d,'data-author-id':_0x59e18d}),_0x56e1fa=_0x494853['mapper']['toViewPosition'](_0x5ec265);_0x1fb3c0&&_0x58d24f['activeMarkers']['includes'](_0x517521['markerName'])&&_0x494853['writer']['addClass']('ck-suggestion-marker--active',_0x501e33),_0x494853['writer']['insert'](_0x56e1fa,_0x501e33),_0x494853['mapper']['bindElementToMarker'](_0x501e33,_0x517521['markerName']);}_0x36a505||_0x34e433||!_0x1263b1||_0x213285(_0x1263b1);};}class K extends _0x3d208b{static get['requires'](){return[_0x48c2f9];}['init'](){const _0x1da5cf=this['editor'],_0x29a2af=_0x1da5cf['plugins']['get']('TrackChangesEditing');_0x29a2af['enableCommand']('delete');const _0x329087=_0x1da5cf['commands']['get']('deleteForward');_0x29a2af['enableCommand']('deleteForward',(_0x24c790,_0x5b431f={})=>{const _0x396c64=_0x1da5cf['model']['createSelection'](_0x1da5cf['model']['document']['selection']);_0x396c64['isCollapsed']&&_0x1da5cf['model']['modifySelection'](_0x396c64,{'direction':'forward','unit':_0x5b431f['unit']});const _0x398507=_0x396c64['getFirstRange'](),_0x587a6e=_0xc2a6f1['fromRange'](_0x398507);let _0x581490;_0x24c790(_0x5b431f),_0x581490='$graveyard'==_0x587a6e['root']['rootName']?_0x1da5cf['model']['createRange'](_0x398507['start']):_0x1da5cf['model']['createRange'](_0x587a6e['start'],_0x587a6e['end']),_0x587a6e['detach'](),_0x1da5cf['model']['enqueueChange'](_0x329087['buffer']['batch'],_0x353b23=>{_0x329087['buffer']['lock'](),_0x353b23['setSelection'](_0x353b23['createRange'](_0x581490['end'])),_0x329087['buffer']['unlock']();});}),_0x1da5cf['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1da5cf,'merge'),{'priority':'high'}),_0x1da5cf['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x54bd9e,_0xd0ebc9,_0x494c7b)=>{_0x494c7b['options']['showSuggestionHighlights']&&De(_0x1da5cf,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x54bd9e,_0xd0ebc9,_0x494c7b);},{'priority':'high'}),_0x1da5cf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2422a1,_0x32fc0c,_0x583a41)=>{const _0x326bb3=_0x583a41['mapper']['markerNameToElements'](_0x32fc0c['markerName']);if(_0x326bb3){for(const _0xe2c0b9 of _0x326bb3)_0xe2c0b9['is']('uiElement')&&(_0x583a41['mapper']['unbindElementFromMarkerName'](_0xe2c0b9,_0x32fc0c['markerName']),_0x583a41['writer']['remove'](_0xe2c0b9));}},{'priority':'high'});}}class H extends _0x3d208b{['afterInit'](){const _0x10a950=this['editor'];if(!_0x10a950['plugins']['has']('ListEditing'))return;const _0x5c42e1=_0x10a950['locale'],_0x5b99f2=_0x10a950['plugins']['get']('TrackChangesEditing'),_0x39ee6e=_0x10a950['plugins']['has']('TodoListEditing'),_0x128438=!!_0x10a950['config']['get']('list.multiBlock');function _0x1c27b8(_0xa342b7){return{'type':'format','content':''+o(_0x5c42e1,'*Set\x20format:*\x20%0',_0xa342b7)};}function _0xcfd3ac(_0x3f48e7){return{'type':'format','content':''+o(_0x5c42e1,'*Remove\x20format:*\x20%0',_0x3f48e7)};}_0x5b99f2['enableDefaultAttributesIntegration']('numberedList'),_0x5b99f2['enableDefaultAttributesIntegration']('bulletedList'),_0x5b99f2['enableDefaultAttributesIntegration']('customNumberedList'),_0x5b99f2['enableDefaultAttributesIntegration']('customBulletedList'),_0x5b99f2['enableDefaultAttributesIntegration']('indentList'),_0x5b99f2['enableDefaultAttributesIntegration']('outdentList'),_0x5b99f2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5b99f2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5b99f2['registerBlockAttribute']('listItemId'),_0x5b99f2['registerBlockAttribute']('listType'),_0x5b99f2['registerBlockAttribute']('listIndent'),_0x128438&&(_0x5b99f2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5b99f2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x39ee6e&&(_0x5b99f2['enableDefaultAttributesIntegration']('todoList'),_0x5b99f2['enableDefaultAttributesIntegration']('checkTodoList'),_0x5b99f2['registerBlockAttribute']('todoListChecked'),_0x5b99f2['descriptionFactory']['registerDescriptionCallback'](_0x3bade0=>{const {data:_0x3c0075}=_0x3bade0;if(_0x3c0075&&'todoListChecked'==_0x3c0075['key'])return{'type':'format','content':_0x3c0075['newValue']?o(_0x5c42e1,'*Check\x20item*'):o(_0x5c42e1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xc06233=>{if(_0xc06233['batch']['isUndo'])return!0x1;let _0x7ed29=!0x1;const _0x93d5a8=_0x5b99f2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f91e4=>'todoListChecked'===_0x5b99f2['_getAttributeKey'](_0x1f91e4));for(const _0x475b9e of _0x93d5a8){'todo'!=_0x475b9e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5b99f2['_findSuggestions'](_0x475b9e['getFirstRange'](),'attribute')['find'](_0xa83145=>'listType'===_0x5b99f2['_getAttributeKey'](_0xa83145['suggestion']))||(_0xc06233['removeMarker'](_0x475b9e['getFirstMarker']()),_0x7ed29=!0x0));}return _0x7ed29;})),_0x5b99f2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5c42e1,'FORMAT_INDENT'));const _0x1f46f4={'type':'format','content':''};_0x5b99f2['descriptionFactory']['registerDescriptionCallback'](_0x5b14f3=>{const {data:_0x109d08}=_0x5b14f3;if(!_0x109d08||'listType'!=_0x109d08['key'])return;let _0x2a38fe=_0x5b14f3['head'];for(;_0x2a38fe;){if(_0x2a38fe['data']&&(('listStyle'==_0x2a38fe['data']['key']||'listMarkerStyle'==_0x2a38fe['data']['key'])&&(_0x2a38fe['data']['newValue']&&'default'!=_0x2a38fe['data']['newValue']||'default'!=_0x2a38fe['data']['oldValue']&&!_0x109d08['newValue'])||!_0x128438&&_0x2a38fe['data']['key']==m))return _0x1f46f4;_0x2a38fe=_0x2a38fe['next'];}if(null==_0x109d08['newValue'])switch(_0x109d08['oldValue']){case'bulleted':return _0xcfd3ac(o(_0x5c42e1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xcfd3ac(o(_0x5c42e1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xcfd3ac(o(_0x5c42e1,'ELEMENT_TODO_LIST'));}switch(_0x109d08['newValue']){case'bulleted':return _0x1c27b8(o(_0x5c42e1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c27b8(o(_0x5c42e1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c27b8(o(_0x5c42e1,'ELEMENT_TODO_LIST'));}}),_0x5b99f2['descriptionFactory']['registerDescriptionCallback'](_0xce8dc=>{const {data:_0x2fec37}=_0xce8dc;if(_0x2fec37&&'listIndent'==_0x2fec37['key'])return null==_0x2fec37['newValue']||null==_0x2fec37['oldValue']&&0x0==_0x2fec37['newValue']?_0x1f46f4:void 0x0;}),_0x5b99f2['descriptionFactory']['registerDescriptionCallback'](_0x4b4906=>{if('attribute'!=_0x4b4906['type'])return;const {data:_0x4e45cb}=_0x4b4906;if(!_0x4e45cb||'listItemId'!=_0x4e45cb['key'])return;const _0x2efad=Te(_0x4b4906);return'newValue'==_0x2efad?{'type':'format','content':o(_0x5c42e1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2efad?{'type':'format','content':o(_0x5c42e1,'*Split:*\x20list\x20item')}:_0x1f46f4;}),_0x10a950['model']['document']['registerPostFixer'](_0x481f60=>this['listItemIdFixer'](_0x481f60)),_0x10a950['model']['document']['registerPostFixer'](_0x1495d6=>this['noTrackChangesFixer'](_0x1495d6)),_0x10a950['model']['document']['on']('change:data',(_0x392534,_0x103244)=>{if(_0x103244['isUndo']||!_0x103244['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x33736a){if(_0x33736a['batch']['isUndo']||!_0x33736a['batch']['isLocal'])return!0x1;let _0x505c38=!0x1;const _0x4a947d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3114b0=>_0x3114b0['data']&&'listItemId'==_0x3114b0['data']['key'])['filter'](_0x3b23e1=>_0x3b23e1['data']['newValue']&&_0x3b23e1['data']['oldValue']);for(const _0x35f847 of _0x4a947d)Te(_0x35f847)||(_0x33736a['removeMarker'](_0x35f847['getFirstMarker']()),_0x505c38=!0x0);return _0x505c38;}['noTrackChangesFixer'](_0x4ccde2){if(_0x4ccde2['batch']['isUndo']||!_0x4ccde2['batch']['isLocal'])return!0x1;const _0x2eb8db=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2eb8db['trackChangesCommand']['value'])return!0x1;let _0x412c71=!0x1;const _0x1808e5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x339e55=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x59c8f7=>'attribute'==_0x59c8f7['type'])['filter'](_0x283308=>_0x1808e5['includes'](_0x283308['attributeKey']));if(0x0==_0x339e55['length'])return _0x412c71;for(const _0x569dc1 of _0x339e55){const _0x50a1b8=_0x2eb8db['_findSuggestions'](_0x569dc1['range'],'attribute')['filter'](_0x7f5ca0=>!_0x7f5ca0['meta']['isNextTo'])['map'](_0x4bec64=>_0x4bec64['suggestion'])['filter'](_0x551558=>{const _0x19b63d=_0x2eb8db['_getAttributeKey'](_0x551558);return _0x1808e5['includes'](_0x19b63d);});if(_0x50a1b8['length']){for(const _0x5876bb of _0x50a1b8)_0x4ccde2['removeMarker'](_0x5876bb['getFirstMarker']());_0x412c71=!0x0;}}return _0x412c71;}['assureChains'](){const _0x524cae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bc32f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5ddfd1;const _0x2a37bf=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x11f6e6=>{if(_0x11f6e6['data']['oldRange']||!_0x11f6e6['data']['newRange'])return null;if(!_0x11f6e6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5b9bb7}=_0x524cae['_splitMarkerName'](_0x11f6e6['name']);if(!_0x524cae['hasSuggestion'](_0x5b9bb7))return null;const _0x4bad37=_0x524cae['getSuggestion'](_0x5b9bb7);return _0x5bc32f['includes'](_0x4bad37['data']['key']);})['map'](_0x53b649=>{const {id:_0x440998}=_0x524cae['_splitMarkerName'](_0x53b649['name']),_0x36138c=_0x524cae['getSuggestion'](_0x440998);return _0x5ddfd1=_0x36138c['attributes']['groupId'],_0x36138c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2a37bf['size'])return;const _0x282d44=_0x524cae['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19a0e8=>'attribute'==_0x19a0e8['type']&&_0x19a0e8['data']&&_0x5bc32f['includes'](_0x19a0e8['data']['key'])&&_0x19a0e8['attributes']['groupId']!=_0x5ddfd1)['map'](_0x400852=>({'listItem':_0x400852['getFirstRange']()['start']['nodeAfter'],'groupId':_0x400852['attributes']['groupId']})),_0x5be885=new Set();for(const {groupId:_0xbb42cf,listItem:_0x77b2dd}of _0x282d44)_0x2a37bf['has'](_0x77b2dd)&&_0x5be885['add'](_0xbb42cf);for(const _0x3a9831 of _0x524cae['getSuggestions']())_0x5be885['has'](_0x3a9831['attributes']['groupId'])&&_0x3a9831['setAttribute']('groupId',_0x5ddfd1);}['_supportLegacySuggestions'](){const _0x5b1a3c=this['editor'],_0x1bc838=_0x5b1a3c['locale'],_0x49c0c7=_0x5b1a3c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x49c0c7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x43d7b9,_0x2474ba){const _0x476fac=[];for(let _0x8d87ef of _0x43d7b9)_0x8d87ef['start']['nodeAfter']===_0x8d87ef['end']['parent']&&(_0x8d87ef=_0x5b1a3c['model']['createRange'](_0x5b1a3c['model']['createPositionAt'](_0x8d87ef['start']['nodeAfter'],0x0))),_0x476fac['push'](_0x8d87ef);_0x5b1a3c['model']['change'](_0xe76451=>{const _0x5acc8a=_0x5b1a3c['model']['document']['selection'],_0x4779a6=Array['from'](_0x5acc8a['getRanges']())['map'](_0x284c16=>_0xc2a6f1['fromRange'](_0x284c16));_0xe76451['setSelection'](_0x476fac),_0x5b1a3c['commands']['get'](_0x2474ba['commandName'])['refresh'](),_0x2474ba['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5b1a3c['execute'](_0x2474ba['commandName'],..._0x2474ba['commandParams']),_0xe76451['setSelection'](_0x4779a6);for(const _0x3b7d66 of _0x4779a6)_0x3b7d66['detach']();});}),_0x49c0c7['descriptionFactory']['registerElementLabel'](function(_0x433c7e){const _0x23ea3c=!_0x5b1a3c['model']['schema']['isObject'](_0x433c7e),_0x11145d=_0x433c7e['previousSibling'],_0x3b0b4c=_0x433c7e['nextSibling'],_0x250f12=_0x433c7e['getAttribute']('listItemId'),_0x57c468=!_0x11145d||_0x11145d['getAttribute']('listItemId')!==_0x250f12,_0x5565fa=!_0x3b0b4c||_0x3b0b4c['getAttribute']('listItemId')!==_0x250f12;return _0x23ea3c&&Boolean(_0x250f12)&&_0x57c468&&_0x5565fa;},_0x2154cc=>o(_0x1bc838,'ELEMENT_LIST_ITEM',_0x2154cc));}['_registerLegacyDescription'](){const _0x35946d=this['editor'],_0x542be3=_0x35946d['locale'];function _0x92e2e6(_0x51ff3c){const _0x477358=_0x35946d['commands']['get']('bulletedList')['value'],_0x1786a6=_0x35946d['commands']['get']('numberedList')['value'];return'numberedList'===_0x51ff3c?_0x477358:_0x1786a6;}_0x35946d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x583fc6){if('formatBlock'!=_0x583fc6['type'])return;const {data:_0x5177c7}=_0x583fc6;if(!_0x5177c7)return;let _0x3894f1,_0x2baca8,_0x28ef2e,_0x5eccf8;switch(_0x5177c7['commandName']){case'bulletedList':_0x28ef2e=_0x5177c7['commandParams'][0x0]['forceValue'],_0x5eccf8=_0x92e2e6(_0x5177c7['commandName']),_0x3894f1=_0x28ef2e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5eccf8&&_0x35946d['config']['get']('list.multiBlock')||(_0x3894f1='*Change\x20to:*\x20%0'),_0x2baca8={'type':'format','content':o(_0x542be3,_0x3894f1,o(_0x542be3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x28ef2e=_0x5177c7['commandParams'][0x0]['forceValue'],_0x5eccf8=_0x92e2e6(_0x5177c7['commandName']),_0x3894f1=_0x28ef2e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5eccf8&&_0x35946d['config']['get']('list.multiBlock')||(_0x3894f1='*Change\x20to:*\x20%0'),_0x2baca8={'type':'format','content':o(_0x542be3,_0x3894f1,o(_0x542be3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3894f1='*Indent:*\x20%0',_0x2baca8={'type':'format','content':o(_0x542be3,_0x3894f1,o(_0x542be3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3894f1=function(_0x1b6128){const _0xd990a7=_0x1b6128['getFirstRange']();let _0xa1cb3b=_0xd990a7['start']['nodeAfter'];for(;_0xa1cb3b&&_0xd990a7['containsItem'](_0xa1cb3b);){if(_0xa1cb3b['getAttribute']('listIndent')>0x0)return!0x1;_0xa1cb3b=_0xa1cb3b['nextSibling'];}return!0x0;}(_0x583fc6)?o(_0x542be3,'*Format:*\x20remove\x20from\x20%0',o(_0x542be3,function(_0x5ac236){return'ELEMENT_'+_0x5ac236['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x583fc6))):o(_0x542be3,'*Outdent:*\x20%0',o(_0x542be3,'ELEMENT_LIST_ITEM')),_0x2baca8={'type':'format','content':_0x3894f1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5177c7['multipleBlocks']&&(_0x3894f1='*Merge:*\x20%0',_0x2baca8={'type':'deletion','content':o(_0x542be3,_0x3894f1,o(_0x542be3,'ELEMENT_LIST_ITEM'))});}return _0x2baca8;});}}function Te(_0x388d77){let _0x2109fd=_0x388d77['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2109fd;){const _0x37f907=_0x2109fd['getAttribute']('listItemId');if(!_0x37f907)return!0x1;if(_0x37f907==_0x388d77['data']['newValue'])return'newValue';if(_0x37f907==_0x388d77['data']['oldValue'])return'oldValue';_0x2109fd=_0x2109fd['previousSibling'];}return!0x1;}class q extends _0x3d208b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1d2d5f=this['editor']['config']['get']('list.properties'),_0x256864=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d2d5f['styles']&&(_0x256864['enableDefaultAttributesIntegration']('listStyle'),_0x256864['registerBlockAttribute']('listStyle')),_0x1d2d5f['reversed']&&(_0x256864['enableDefaultAttributesIntegration']('listReversed'),_0x256864['registerBlockAttribute']('listReversed')),_0x1d2d5f['startIndex']&&(_0x256864['enableDefaultAttributesIntegration']('listStart'),_0x256864['registerBlockAttribute']('listStart'));const _0x111c63={'type':'format','content':''};_0x256864['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x542822=this['editor']['locale'];_0x256864['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x542822,'FORMAT_LIST_REVERSED')),_0x256864['descriptionFactory']['registerDescriptionCallback'](_0x4e6d01=>{const {data:_0x47b6e9}=_0x4e6d01;if(_0x47b6e9&&'listReversed'==_0x47b6e9['key'])return null==_0x47b6e9['newValue']||0x0==_0x47b6e9['newValue']&&null==_0x47b6e9['oldValue']?_0x111c63:void 0x0;}),_0x256864['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x542822,'FORMAT_LIST_START')),_0x256864['descriptionFactory']['registerDescriptionCallback'](_0x583fc4=>{const {data:_0x29f780}=_0x583fc4;if(_0x29f780&&'listStart'==_0x29f780['key'])return null==_0x29f780['newValue']||0x1==_0x29f780['newValue']&&null==_0x29f780['oldValue']?_0x111c63:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1a35e7=>{if(_0x1a35e7['batch']['isUndo'])return!0x1;let _0x113726=!0x1;const _0x55366d=_0x256864['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4aa8b0=>{const _0x2b6ac5=_0x256864['_getAttributeKey'](_0x4aa8b0);return'listStart'==_0x2b6ac5||'listReversed'==_0x2b6ac5;});for(const _0x4cc0c4 of _0x55366d){const _0x16575c=_0x4cc0c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x16575c||'customNumbered'==_0x16575c)continue;_0x256864['_findSuggestions'](_0x4cc0c4['getFirstRange'](),'attribute')['find'](_0x49ef99=>'listType'==_0x256864['_getAttributeKey'](_0x49ef99['suggestion']))||(_0x1a35e7['removeMarker'](_0x4cc0c4['getFirstMarker']()),_0x113726=!0x0);}return _0x113726;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5db522){const _0x2875a6=this['editor']['locale'],{data:_0x1174eb}=_0x5db522,_0x411f71={'type':'format','content':''};if(!_0x1174eb||'listStyle'!=_0x1174eb['key'])return;if(!_0x1174eb['oldValue'])return'default'==_0x1174eb['newValue']?_0x411f71:{'type':'format','content':''+o(_0x2875a6,'*Set\x20format:*\x20%0',o(_0x2875a6,this['_getTranslationKeyForListStyle'](_0x1174eb['newValue'])))};if(!_0x1174eb['newValue']){if('default'==_0x1174eb['oldValue'])return _0x411f71;let _0x1d8fd4=_0x5db522['head'];for(;_0x1d8fd4;){if(_0x1d8fd4['data']&&'listType'==_0x1d8fd4['data']['key']&&_0x1d8fd4['data']['newValue'])return _0x411f71;_0x1d8fd4=_0x1d8fd4['next'];}return{'type':'format','content':''+o(_0x2875a6,'*Remove\x20format:*\x20%0',o(_0x2875a6,this['_getTranslationKeyForListStyle'](_0x1174eb['oldValue'])))};}if('default'!=_0x1174eb['newValue'])return{'type':'format','content':''+o(_0x2875a6,'*Set\x20format:*\x20%0',o(_0x2875a6,this['_getTranslationKeyForListStyle'](_0x1174eb['newValue'])))};let _0x57fe9d=_0x5db522['head'];for(;_0x57fe9d;){if(_0x57fe9d['data']&&'listType'==_0x57fe9d['data']['key']&&_0x57fe9d['data']['newValue']&&_0x57fe9d['data']['oldValue'])return _0x411f71;_0x57fe9d=_0x57fe9d['next'];}return{'type':'format','content':o(_0x2875a6,'*Set\x20format:*\x20%0',o(_0x2875a6,'ELEMENT_'+_0x5db522['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4c81eb=this['editor'],_0x4f4170=_0x4c81eb['locale'];_0x4c81eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x739dc5=>{if('formatBlock'!=_0x739dc5['type'])return;const {data:_0x50fbe9}=_0x739dc5;if(!_0x50fbe9)return;let _0x48a761,_0x2f3c21;switch(_0x50fbe9['commandName']){case'listStyle':_0x48a761='*Change\x20to:*\x20%0',_0x2f3c21={'type':'format','content':o(_0x4f4170,_0x48a761,o(_0x4f4170,this['_getTranslationKeyForListStyle'](_0x50fbe9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x48a761=_0x50fbe9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2f3c21={'type':'format','content':o(_0x4f4170,_0x48a761)};break;case'listStart':_0x48a761='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2f3c21={'type':'format','content':o(_0x4f4170,_0x48a761,_0x50fbe9['commandParams'][0x0]['startIndex'])};}return _0x2f3c21;});}['_getTranslationKeyForListStyle'](_0x38d2e9){return'ELEMENT_'+function(_0x54a46d){if(Se['includes'](_0x54a46d))return'bulleted';if(_e['includes'](_0x54a46d))return'numbered';return null;}(_0x38d2e9)['toUpperCase']()+'_LIST_'+_0x38d2e9['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x3d208b{['afterInit'](){const _0x165e89=this['editor'];_0x165e89['commands']['get']('emoji')&&_0x165e89['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x3d208b{static get['requires'](){return[_0x48fa85];}['init'](){const _0x49d8e0=this['editor'],_0x4e5fe8=_0x49d8e0['plugins']['get']('TrackChangesEditing'),_0x3ea948=_0x49d8e0['commands']['get']('enter');_0x4e5fe8['enableCommand']('enter',()=>{_0x49d8e0['model']['change'](_0x2dd189=>{const _0x31c0e4=_0x49d8e0['model']['document']['selection'],_0x1ff2a7=_0x31c0e4['getFirstPosition'](),_0x2c4792=_0xc2a6f1['fromRange'](_0x31c0e4['getFirstRange']());if(_0x3ea948['enterBlock'](_0x2dd189)){const _0x287296=_0x49d8e0['model']['createPositionAt'](_0x1ff2a7['parent']['nextSibling'],0x0),_0x316333=_0x2dd189['createRange'](_0x1ff2a7,_0x287296);_0x4e5fe8['markInsertion'](_0x316333);}else _0x2dd189['setSelection'](_0x2dd189['createRange'](_0x2c4792['end']));_0x2c4792['detach'](),_0x3ea948['fire']('afterExecute',{'writer':_0x2dd189});});}),_0x49d8e0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x49d8e0,'split'),{'priority':'high'}),_0x49d8e0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5b001d,_0x41c6ec,_0x2b6f11)=>{const _0x4353c6=_0x2b6f11['mapper']['markerNameToElements'](_0x41c6ec['markerName']);if(_0x4353c6){for(const _0x3d4a73 of _0x4353c6)_0x3d4a73['hasClass']('ck-suggestion-marker-split')&&(_0x2b6f11['mapper']['unbindElementFromMarkerName'](_0x3d4a73,_0x41c6ec['markerName']),_0x2b6f11['writer']['remove'](_0x3d4a73));}},{'priority':'high'}),_0x49d8e0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1aecd1,_0xb3dcff,_0x605fed)=>{_0x605fed['options']['showSuggestionHighlights']&&De(_0x49d8e0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1aecd1,_0xb3dcff,_0x605fed);},{'priority':'high'});}}class Q extends _0x3d208b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1a2147=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a2147['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1a2147['enableCommand']('findNext'),_0x1a2147['enableCommand']('findPrevious'),_0x1a2147['enableCommand']('replace'),_0x1a2147['enableCommand']('replaceAll');}['handleFindCommand'](_0x5706e0,_0x52eb03,_0x64e3b1={}){const _0x2a2e91=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5706e0(_0x218204=>{let _0x19b8cc=('string'==typeof _0x52eb03?_0x2a2e91['findByTextCallback'](_0x52eb03,_0x64e3b1):_0x52eb03)(_0x218204);Array['isArray'](_0x19b8cc)&&(_0x19b8cc={'results':_0x19b8cc,'searchText':'string'==typeof _0x52eb03?_0x52eb03:''});const _0x1ddeb1=_0x19b8cc['results']['filter'](_0x47cff8=>!0x1===this['_isInDeletionRange'](_0x47cff8,_0x218204['item']));return{..._0x19b8cc,'results':_0x1ddeb1};},_0x64e3b1);}['_isInDeletionRange'](_0x217c90,_0x5211bd){const _0xb1d1ff=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5211bd,_0x217c90['start']),this['editor']['model']['createPositionAt'](_0x5211bd,_0x217c90['end']));for(const _0x5451b3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xb1d1ff['getIntersection'](_0x5451b3['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x3d208b{['afterInit'](){const _0x1e81de=this['editor']['locale'],_0x3ec625=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x9a4cd5,commandName:_0x10316f}of eo)this['editor']['plugins']['has'](_0x9a4cd5)&&(_0x3ec625['enableDefaultAttributesIntegration'](_0x10316f),_0x3ec625['registerInlineAttribute'](_0x10316f));_0x3ec625['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1e81de,'FORMAT_FONT_SIZE')),_0x3ec625['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1e81de,'FORMAT_FONT_FAMILY')),_0x3ec625['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1e81de,'FORMAT_FONT_COLOR')),_0x3ec625['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1e81de,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59887e=this['editor'],_0x590899=_0x59887e['locale'];_0x59887e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dbbf2=>{const _0x1c8a0a=_0x590899['t'];if('formatInline'!=_0x5dbbf2['type'])return;const {data:_0x574609}=_0x5dbbf2;if(null!=_0x574609){if('fontSize'==_0x574609['commandName']){const _0x45bd32=_0x574609['commandParams'][0x0]['value'];if(_0x45bd32){const _0x26415d=_0x1c8a0a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x583f7b=>_0x583f7b['model']==_0x45bd32)['title'])['toLowerCase']();return{'type':'format','content':o(_0x590899,'*Set\x20font\x20size:*\x20%0',_0x26415d)};}return{'type':'format','content':o(_0x590899,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x574609['commandName']){const _0x2d9cd9=_0x574609['commandParams'][0x0]['value'];return _0x2d9cd9?{'type':'format','content':o(_0x590899,'*Set\x20font\x20family:*\x20%0',_0x2d9cd9)}:{'type':'format','content':o(_0x590899,'*Reset\x20font\x20family*')};}if('fontColor'==_0x574609['commandName']){const _0x39ef9e=_0x574609['commandParams'][0x0]['value'];if(_0x39ef9e){const _0x4e555b=_0x3c809e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2e9da1=>_0x2e9da1['model']==_0x39ef9e);let _0x33ab62=_0x39ef9e,_0x53bdd5='';return _0x4e555b&&(_0x33ab62=_0x4e555b['label'],_0x53bdd5=_0x1c8a0a(_0x33ab62)['toLowerCase']()),{'type':'format','content':o(_0x590899,'*Set\x20font\x20color:*\x20%0',_0x53bdd5)['trim'](),'color':{'value':_0x39ef9e,'title':_0x53bdd5||_0x33ab62}};}return{'type':'format','content':o(_0x590899,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x574609['commandName']){const _0x4e930c=_0x574609['commandParams'][0x0]['value'];if(_0x4e930c){const _0xfc3475=_0x3c809e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x847096=>_0x847096['model']==_0x4e930c);let _0x2986b9=_0x4e930c,_0x16679b='';return _0xfc3475&&(_0x2986b9=_0xfc3475['label'],_0x16679b=_0x1c8a0a(_0x2986b9)['toLowerCase']()),{'type':'format','content':o(_0x590899,'*Set\x20font\x20background\x20color:*\x20%0',_0x16679b)['trim'](),'color':{'value':_0x4e930c,'title':_0x16679b||_0x2986b9}};}return{'type':'format','content':o(_0x590899,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x3d208b{['afterInit'](){const _0x3333c8=this['editor'],_0xc370f1=_0x3333c8['plugins']['get']('TrackChangesEditing'),_0x5e9e03=_0x3333c8['commands']['get']('copyFormat'),_0x235908=_0x3333c8['commands']['get']('pasteFormat');_0x5e9e03&&_0x235908&&(_0xc370f1['enableDefaultAttributesIntegration']('pasteFormat'),_0xc370f1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5394c1=this['editor'],_0x275577=_0x5394c1['locale'];_0x5394c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51c6e4=>{if('formatBlock'!=_0x51c6e4['type']&&'formatInline'!=_0x51c6e4['type'])return;const {data:_0xaaf202}=_0x51c6e4;if(_0xaaf202&&'pasteFormat'===_0xaaf202['commandName']){const _0x42bfbe=[],_0x57ddcd=_0xaaf202['commandParams'][0x0];for(const [_0x37b138,_0x11b52b]of Object['entries'](_0x57ddcd))_0x42bfbe['push'](ro(_0x5394c1,_0x37b138,_0x11b52b));return _0x42bfbe['length']?{'type':'format','content':o(_0x275577,'*Set\x20format\x20to:*\x20%0',_0x42bfbe['join'](',\x20'))}:{'type':'format','content':o(_0x275577,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x351fd0,_0x28217d,_0x40af06){const _0x428b8d=_0x351fd0['locale']['t'],_0x54a1be=_0x28217d['split'](/(?=[A-Z])/)['join']('\x20'),_0x1b14ca=_0x428b8d(_0x54a1be['charAt'](0x0)['toUpperCase']()+_0x54a1be['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x40af06)return _0x1b14ca;if('fontColor'===_0x28217d||'fontBackgroundColor'===_0x28217d){const _0x10b2a9=_0x3c809e(_0x351fd0['config']['get']('fontColor.colors'))['find'](_0x5f3c6d=>_0x5f3c6d['model']==_0x40af06);return _0x1b14ca+'\x20('+(_0x10b2a9?_0x428b8d(_0x10b2a9['label'])['toLowerCase']():_0x40af06)+')';}if('fontSize'===_0x28217d&&isNaN(parseFloat(_0x40af06))){const _0x30082f=_0x351fd0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x351fd0['config']['get']('fontSize.options'))['find'](_0x627cdf=>_0x627cdf['model']==_0x40af06);return _0x1b14ca+'\x20('+(_0x30082f?_0x428b8d(_0x30082f['title'])['toLowerCase']():_0x40af06)+')';}return _0x1b14ca+'\x20('+_0x40af06+')';}class Z extends _0x3d208b{['_headingOptions'];['afterInit'](){const _0x43b981=this['editor'];if(!_0x43b981['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x43b981['config']['get']('heading.options');const _0x2c8d25=_0x43b981['locale'],_0x1fa19d=_0x43b981['plugins']['get']('TrackChangesEditing');_0x1fa19d['enableDefaultAttributesIntegration']('heading');for(const _0x45d007 of this['_headingOptions'])'paragraph'!=_0x45d007['model']&&_0x1fa19d['descriptionFactory']['registerElementLabel'](_0x45d007['model'],_0x308322=>{const _0x363be7=this['_getHeadingLevel'](_0x45d007['model']);return null!==_0x363be7?_0x292cd2(_0x308322,_0x363be7):_0x2a8115(_0x308322,_0x45d007['title']);});function _0x292cd2(_0x2834d1,_0x338dcf){return o(_0x2c8d25,'ELEMENT_HEADING',[_0x2834d1,_0x338dcf]);}function _0x2a8115(_0xf9746f,_0x15db9c){return o(_0x2c8d25,'ELEMENT_HEADING_CUSTOM',[_0xf9746f,_0x15db9c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dea19=this['editor'],_0x222b60=_0x1dea19['locale'];function _0x5cd7aa(_0x5342d5,_0x3e1cc6){return o(_0x222b60,'ELEMENT_HEADING_CUSTOM',[_0x5342d5,_0x3e1cc6]);}_0x1dea19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2554fb=>{if('formatBlock'!=_0x2554fb['type'])return;const {data:_0x387094}=_0x2554fb;if(_0x387094&&'heading'==_0x387094['commandName']){const _0x3b3ee7=_0x387094['commandParams'][0x0]['value'],_0x134ebc=this['_getHeadingLevel'](_0x3b3ee7);if(null!==_0x134ebc)return{'type':'format','content':o(_0x222b60,'*Change\x20to:*\x20%0',(_0xe7ed84=0x1,_0x1c70a7=_0x134ebc,o(_0x222b60,'ELEMENT_HEADING',[_0xe7ed84,_0x1c70a7])))};const _0x2e7f22=this['_headingOptions']['find'](_0x48c328=>_0x48c328['model']===_0x3b3ee7)['title'];return{'type':'format','content':o(_0x222b60,'*Change\x20to:*\x20%0',_0x5cd7aa(0x1,_0x2e7f22))};}var _0xe7ed84,_0x1c70a7;});}['_getHeadingLevel'](_0x35870d){const _0x23b473=_0x35870d['match'](/^heading(\d+)/);if(_0x23b473)return _0x23b473[0x1];const _0x1cb74b=this['_headingOptions']?.['find'](_0x426eb7=>_0x426eb7['model']==_0x35870d);if(_0x1cb74b&&_0x1cb74b['view']){const _0x49c3a3=_0x1cb74b['view'],_0x26b7ba=(_0x49c3a3['name']??_0x49c3a3)['match'](/^h(\d+)/);if(_0x26b7ba)return _0x26b7ba[0x1];}return null;}}class tt extends _0x3d208b{['afterInit'](){const _0xeaef1=this['editor'];if(!_0xeaef1['plugins']['has']('HighlightEditing'))return;const _0x42192a=_0xeaef1['plugins']['get']('TrackChangesEditing'),_0x3199ea=_0xeaef1['locale'];_0x42192a['enableDefaultAttributesIntegration']('highlight'),_0x42192a['registerInlineAttribute']('highlight'),_0x42192a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3199ea,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e1d17=this['editor'],_0x5335d4=_0x5e1d17['locale'];_0x5e1d17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58f40b=>{if('formatInline'!=_0x58f40b['type'])return;const {data:_0x4f2154}=_0x58f40b;if(_0x4f2154&&'highlight'==_0x4f2154['commandName']){const _0xb58d87=_0x5335d4['t'],_0x1b9b30=_0x4f2154['commandParams'][0x0]['value'];if(_0x1b9b30){const _0x9f8fc1=_0x5e1d17['config']['get']('highlight.options')['find'](_0x5e26ee=>_0x5e26ee['model']==_0x1b9b30),_0x5c887a=_0xb58d87(_0x9f8fc1['title'])['toLowerCase']();return{'type':'format','content':o(_0x5335d4,'*Set\x20highlight:*\x20%0',_0x5c887a),'color':{'value':_0x9f8fc1['color'],'title':_0x9f8fc1['title']}};}return{'type':'format','content':o(_0x5335d4,'*Remove\x20highlight*',o(_0x5335d4,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3d208b{['afterInit'](){const _0x4d6024=this['editor'];if(!_0x4d6024['plugins']['has']('HorizontalLineEditing'))return;_0x4d6024['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2d3a0f=_0x4d6024['plugins']['get']('TrackChangesEditing'),_0x19a1a4=_0x4d6024['locale'];_0x2d3a0f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x344f5f=>o(_0x19a1a4,'ELEMENT_HORIZONTAL_LINE',_0x344f5f)),_0x4d6024['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x282c5d,{writer:_0x35cb7e,options:_0x25d9be})=>{if(!_0x25d9be['showSuggestionHighlights'])return null;const _0x76a328=_0x35cb7e['createContainerElement']('div'),_0x3a4a77=_0x35cb7e['createEmptyElement']('hr');return _0x35cb7e['addClass']('ck-horizontal-line',_0x76a328),_0x35cb7e['insert'](_0x35cb7e['createPositionAt'](_0x76a328,0x0),_0x3a4a77),_0x76a328;},'converterPriority':'high'});}}class nt extends _0x3d208b{['afterInit'](){const _0x1eaf33=this['editor'];if(!_0x1eaf33['plugins']['has']('HtmlEmbed'))return;const _0x8c6247=_0x1eaf33['plugins']['get']('TrackChangesEditing'),_0x4f2ed3=_0x1eaf33['locale'];_0x8c6247['descriptionFactory']['registerElementLabel']('rawHtml',_0x34c89d=>o(_0x4f2ed3,'ELEMENT_HTML_EMBED',_0x34c89d)),_0x8c6247['enableDefaultAttributesIntegration']('htmlEmbed'),_0x8c6247['registerBlockAttribute']('value'),_0x8c6247['descriptionFactory']['registerDescriptionCallback'](_0xc4f2e9=>{if('attribute'!=_0xc4f2e9['type'])return;const {data:_0x4b5760}=_0xc4f2e9;if(_0x4b5760&&'value'==_0x4b5760['key']&&_0xc4f2e9['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3991d7=o(_0x4f2ed3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4f2ed3,'*Change\x20%0\x20content*',_0x3991d7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa62b3f=this['editor'],_0x2d5fc5=_0xa62b3f['locale'];_0xa62b3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b25c9=>{if('formatBlock'!=_0x5b25c9['type'])return;const {data:_0x36f78e}=_0x5b25c9;if(_0x36f78e&&'htmlEmbed'==_0x36f78e['commandName']){const _0xc68633=o(_0x2d5fc5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2d5fc5,'*Change\x20%0\x20content*',_0xc68633)};}});}}class et extends _0x3d208b{['afterInit'](){const _0x52d396=this['editor'];if(!_0x52d396['plugins']['has']('ImageEditing'))return;const _0x5dda5c=_0x52d396['plugins']['get']('TrackChangesEditing'),_0xebb264=_0x52d396['plugins']['get']('ImageUtils'),_0x525812=_0x52d396['locale'];_0x5dda5c['enableCommand']('insertImage'),_0x5dda5c['descriptionFactory']['registerElementLabel']('imageBlock',_0x3b4949=>o(_0x525812,'ELEMENT_IMAGE',_0x3b4949)),_0x5dda5c['descriptionFactory']['registerElementLabel']('imageInline',_0x1c0d18=>o(_0x525812,'ELEMENT_INLINE_IMAGE',_0x1c0d18)),_0x5dda5c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x525812,'ELEMENT_CAPTION')),_0x52d396['plugins']['has']('ImageUploadEditing')&&_0x5dda5c['enableCommand']('uploadImage'),_0x52d396['plugins']['has']('ImageBlockEditing')&&_0x52d396['plugins']['has']('ImageInlineEditing')&&(_0x5dda5c['enableCommand']('imageTypeInline',(_0x53a582,_0x57ab40)=>{const _0x51c2a4=_0xebb264['getClosestSelectedImageElement'](_0x52d396['model']['document']['selection']);_0x52d396['model']['change'](()=>{_0x5dda5c['markBlockFormat'](_0x51c2a4,{'commandName':'imageTypeInline','commandParams':[_0x57ab40]},[],'convertBlockImageToInline');});}),_0x5dda5c['enableCommand']('imageTypeBlock',(_0x9cc1e1,_0x5181e4)=>{_0x52d396['model']['change'](_0x49a3e7=>{let _0x2e60ef=_0xebb264['getClosestSelectedImageElement'](_0x52d396['model']['document']['selection']),_0x51b2a9=_0x49a3e7['createRangeOn'](_0x2e60ef);const _0x5881b0=_0xcb246['fromPosition'](_0x51b2a9['start'],'toPrevious'),_0x7bde01=_0xcb246['fromPosition'](_0x51b2a9['end'],'toNext');_0x5dda5c['forceDefaultExecution'](()=>_0x9cc1e1(_0x5181e4)),_0x2e60ef=_0xebb264['getClosestSelectedImageElement'](_0x52d396['model']['document']['selection']),_0x51b2a9=_0x49a3e7['createRangeOn'](_0x2e60ef);const _0x5e6b1a=_0x49a3e7['createRange'](_0x5881b0,_0x7bde01);_0x5881b0['detach'](),_0x7bde01['detach'](),_0x5dda5c['markBlockFormat'](_0x2e60ef,{'commandName':'imageTypeInline','commandParams':[_0x5181e4]},[],'convertInlineImageToBlock'),_0x5e6b1a['start']['isBefore'](_0x51b2a9['start'])&&_0x5dda5c['markInsertion'](_0x49a3e7['createRange'](_0x5e6b1a['start'],_0x51b2a9['start']),'convertInlineImageToBlock'),_0x51b2a9['end']['isBefore'](_0x5e6b1a['end'])&&_0x5dda5c['markInsertion'](_0x49a3e7['createRange'](_0x51b2a9['end'],_0x5e6b1a['end']),'convertInlineImageToBlock');});}),_0x5dda5c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5dda5c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5dda5c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5dda5c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5dda5c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5dda5c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5780ec])=>{const _0x456838=_0x5dda5c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x468b3b=_0x5780ec['start'],_0xd666e2=_0x5780ec['end'];const _0x3c9d02=_0x52d396['model']['schema']['getNearestSelectionRange'](_0x468b3b,'backward'),_0x1080ba=_0x52d396['model']['schema']['getNearestSelectionRange'](_0xd666e2,'forward');_0x3c9d02['isCollapsed']&&(_0x468b3b=_0x3c9d02['start']),_0x1080ba['isCollapsed']&&(_0xd666e2=_0x1080ba['end']),_0x456838([_0x52d396['model']['createRange'](_0x468b3b,_0xd666e2)]);}),_0x5dda5c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2b79aa),_0x5dda5c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2b79aa)),_0x52d396['plugins']['has']('ImageCaptionEditing')&&(_0x5dda5c['enableCommand']('toggleImageCaption',(_0x2d7562,_0x528180)=>{const _0x218304=_0x52d396['plugins']['get']('ImageCaptionUtils');let _0x46cb6a=_0xebb264['getClosestSelectedImageElement'](_0x52d396['model']['document']['selection']),_0x12d741=_0x218304['getCaptionFromImageModelElement'](_0x46cb6a);_0x52d396['model']['change'](()=>{if(_0x12d741)return void _0x5dda5c['markDeletion'](_0x52d396['model']['createRangeOn'](_0x12d741));const _0x6442ea=_0xebb264['isBlockImage'](_0x46cb6a);_0x2d7562(_0x528180),_0x46cb6a=_0xebb264['getClosestSelectedImageElement'](_0x52d396['model']['document']['selection']),_0x12d741=_0x218304['getCaptionFromImageModelElement'](_0x46cb6a),_0x5dda5c['markInsertion'](_0x52d396['model']['createRangeOn'](_0x12d741),_0x6442ea?null:'imageCaption');});}),_0x5dda5c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2b79aa));const _0x3c285e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x40c8f3(_0x16b432,_0x5a76b5){const _0x477980=_0x3c285e['findIndex'](({type:_0x4e1d7c,subType:_0x1ba82e})=>_0x16b432['type']==_0x4e1d7c&&_0x16b432['subType']==_0x1ba82e),_0x5ac89c=_0x3c285e['findIndex'](({type:_0x43fbea,subType:_0x55e1})=>_0x5a76b5['type']==_0x43fbea&&_0x5a76b5['subType']==_0x55e1);if(_0x477980<0x0||_0x5ac89c<0x0)return!0x1;const _0x39467b=_0x16b432['getFirstRange'](),_0x1b89c4=_0x5a76b5['getFirstRange']();if((0x0==_0x477980||0x1==_0x477980)&&0x2==_0x5ac89c&&_0x39467b['isIntersecting'](_0x1b89c4))return!0x0;if(0x2==_0x477980&&0x3==_0x5ac89c){const _0x5a8802=_0x5dda5c['_findSuggestions'](_0x39467b,'insertion')['filter'](({suggestion:_0x515d5a,meta:_0x17ee8d})=>_0x17ee8d['isOwn']&&'convertInlineImageToBlock'==_0x515d5a['subType']);if(_0x5a8802['length']>0x1&&_0x1b89c4['end']['isEqual'](_0x39467b['start']))return!0x0;if(0x1==_0x5a8802['length']&&(_0x39467b['start']['isEqual'](_0x1b89c4['end'])||_0x39467b['end']['isEqual'](_0x1b89c4['start'])))return!0x0;}if(0x3==_0x477980&&0x3==_0x5ac89c&&_0x39467b['start']['isBefore'](_0x1b89c4['start'])){const _0x404cd9=_0x39467b['end']['nodeAfter'],_0x4f1ae1=_0x1b89c4['start']['nodeBefore'];return _0xebb264['isBlockImage'](_0x404cd9)&&_0x404cd9===_0x4f1ae1;}return!0x1;}function _0x2b79aa(_0xb4ebc,_0x533f4d){return _0x40c8f3(_0xb4ebc,_0x533f4d)?[_0xb4ebc,_0x533f4d]:_0x40c8f3(_0x533f4d,_0xb4ebc)?[_0x533f4d,_0xb4ebc]:null;}_0x52d396['plugins']['has']('ImageResize')&&(_0x5dda5c['enableDefaultAttributesIntegration']('resizeImage'),_0x5dda5c['registerBlockAttribute']('resizedWidth'),_0x5dda5c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x525812,'FORMAT_IMAGE_SIZE'))),_0x52d396['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5dda5c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5dda5c['registerBlockAttribute']('alt')),_0x52d396['plugins']['has']('PictureEditing')&&(_0x5dda5c['registerBlockAttribute']('sources'),_0x5dda5c['descriptionFactory']['registerDescriptionCallback'](_0x2d7fbf=>{if('attribute'!=_0x2d7fbf['type'])return;const {data:_0xe7f435}=_0x2d7fbf;return _0xe7f435&&'sources'==_0xe7f435['key']?{'type':'format','content':''}:void 0x0;})),_0x52d396['plugins']['has']('ImageSizeAttributes')&&(_0x5dda5c['registerBlockAttribute']('width'),_0x5dda5c['registerBlockAttribute']('height'),_0x5dda5c['descriptionFactory']['registerDescriptionCallback'](_0x30a0f9=>{if('attribute'!=_0x30a0f9['type'])return;const {data:_0x26f579}=_0x30a0f9;return!_0x26f579||'width'!=_0x26f579['key']&&'height'!=_0x26f579['key']?void 0x0:{'type':'format','content':''};})),_0x5dda5c['descriptionFactory']['registerDescriptionCallback'](_0x5ce94a=>{if(!!_0x3c285e['find'](({type:_0x540458,subType:_0x115101})=>_0x5ce94a['type']==_0x540458&&_0x5ce94a['subType']==_0x115101))return _0x5ce94a['previous']?{}:void 0x0;}),_0x5dda5c['descriptionFactory']['registerDescriptionCallback'](_0x22d111=>{if('insertion'==_0x22d111['type']||'deletion'==_0x22d111['type']){const _0x42e70e=_0x22d111['getContainedElement']();if(_0x42e70e&&_0x42e70e['is']('element','caption'))return{'type':'insertion'==_0x22d111['type']?'addObject':'removeObject','element':_0x42e70e,'quantity':0x1};}}),_0x5dda5c['descriptionFactory']['registerDescriptionCallback'](_0x43b8b5=>'formatBlock'==_0x43b8b5['type']&&'convertInlineImageToBlock'==_0x43b8b5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x43b8b5['type']&&'convertBlockImageToInline'==_0x43b8b5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5dda5c['descriptionFactory']['registerDescriptionCallback'](_0x24cb93=>{if('attribute'!=_0x24cb93['type'])return;const {data:_0x44e52b}=_0x24cb93;if(!_0x44e52b||'alt'!=_0x44e52b['key'])return;const _0xdeb223=_0x44e52b['newValue'];return _0xdeb223?{'type':'format','content':o(_0x525812,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xdeb223+'\x22')}:{'type':'format','content':o(_0x525812,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d427b=this['editor'],_0x2fa4e2=_0x5d427b['locale'];_0x5d427b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb229b=>{if('formatBlock'!=_0xb229b['type']&&'formatInline'!=_0xb229b['type'])return;const {data:_0x2b2c26}=_0xb229b;if(_0x2b2c26){if('imageTextAlternative'==_0x2b2c26['commandName']){const _0x394f07=_0x2b2c26['commandParams'][0x0]['newValue'];return _0x394f07?{'type':'format','content':o(_0x2fa4e2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x394f07+'\x22')}:{'type':'format','content':o(_0x2fa4e2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2b2c26['commandName']){const _0x2403af=_0x2b2c26['commandParams'][0x0]['width'];return _0x2403af?{'type':'format','content':o(_0x2fa4e2,'*Set\x20image\x20width:*\x20%0',_0x2403af)}:{'type':'format','content':o(_0x2fa4e2,'*Reset\x20image\x20width*')};}}});}}class st extends _0x3d208b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2cb445=this['editor']['locale'],_0x1b2ac=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b2ac['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1b2ac['registerBlockAttribute']('src'),_0x1b2ac['descriptionFactory']['registerDescriptionCallback'](_0x28caf9=>{if('attribute'!=_0x28caf9['type'])return;const {data:_0x160ac2}=_0x28caf9;return _0x160ac2&&'src'==_0x160ac2['key']?_0x160ac2['newValue']&&_0x160ac2['oldValue']?{'type':'format','content':o(_0x2cb445,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x328d72=this['editor']['plugins']['get']('TrackChangesEditing');_0x328d72['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x328d72['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x328d72['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x328d72['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x439bd9=this['editor'],_0x3fdb98=_0x439bd9['locale'];_0x439bd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26733a=>{if('formatBlock'!=_0x26733a['type']&&'formatInline'!=_0x26733a['type'])return;const {data:_0x229289}=_0x26733a;if(!_0x229289||'replaceImageSource'!=_0x229289['commandName'])return;return{'type':'format','content':o(_0x3fdb98,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x3d208b{['afterInit'](){const _0x4f4acd=this['editor'];if(!_0x4f4acd['plugins']['has']('ImageStyleEditing'))return;const _0x75a11a=_0x4f4acd['plugins']['get']('TrackChangesEditing'),_0x5a94b0=_0x4f4acd['plugins']['get']('ImageUtils'),_0x43e980={};_0x75a11a['enableCommand']('imageStyle',(_0x4ce3b6,_0x37161f)=>{const _0x50d9ac=_0x4f4acd['plugins']['get']('Users')['me'],_0xc5e05d=_0x4f4acd['commands']['get']('imageStyle');let _0x2a6c55=_0x5a94b0['getClosestSelectedImageElement'](_0x4f4acd['model']['document']['selection']),_0x20412a=_0x4f4acd['model']['createRangeOn'](_0x2a6c55),_0x45c33b=_0xc5e05d['value'];if(_0x45c33b==_0x37161f['value'])return;const _0x381ccb={'commandName':'imageStyle','commandParams':[_0x37161f],'formatGroupId':_0x2a1324()};_0x4f4acd['model']['change'](()=>{if(_0x75a11a['getSuggestions']()['filter'](_0x30b04b=>_0x30b04b['isInContent']&&_0x50d9ac==_0x30b04b['author']&&('formatBlock'==_0x30b04b['type']||'formatInline'==_0x30b04b['type'])&&('imageStylePreApply'==_0x30b04b['subType']||'imageStylePostApply'==_0x30b04b['subType'])&&_0x30b04b['getFirstRange']()['isEqual'](_0x20412a))['forEach'](_0xfe0457=>_0x75a11a['discardSuggestion'](_0xfe0457['head'])),_0x2a6c55=_0x5a94b0['getClosestSelectedImageElement'](_0x4f4acd['model']['document']['selection']),_0x20412a=_0x4f4acd['model']['createRangeOn'](_0x2a6c55),_0xc5e05d['refresh'](),_0x4f4acd['commands']['get']('imageTypeInline')['refresh'](),_0x4f4acd['commands']['get']('imageTypeBlock')['refresh'](),_0x45c33b=_0xc5e05d['value'],_0x45c33b!=_0x37161f['value'])return _0x5a94b0['isInlineImage'](_0x2a6c55)&&_0xc5e05d['shouldConvertImageType'](_0x37161f['value'],_0x2a6c55)?(_0x4ce3b6({..._0x37161f,'setImageSizes':!0x1}),_0x2a6c55=_0x5a94b0['getClosestSelectedImageElement'](_0x4f4acd['model']['document']['selection']),void _0x75a11a['markBlockFormat'](_0x2a6c55,{..._0x381ccb,'commandReversedParams':[{'value':_0x45c33b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5a94b0['isBlockImage'](_0x2a6c55)?_0x75a11a['markBlockFormat'](_0x2a6c55,_0x381ccb,[],'imageStylePostApply'):_0x75a11a['markInlineFormat'](_0x20412a,_0x381ccb,'imageStylePostApply'));});});for(const _0xf750a4 of _0x4f4acd['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x43e980[_0xf750a4['name']]=_0xf750a4['title']['toLowerCase']();_0x75a11a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x75a11a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x75a11a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x75a11a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2ae33f])=>{_0x5a94b0['setImageNaturalSizeAttributes'](_0x2ae33f['getContainedElement']());}),_0x75a11a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x52b776,_0x5a6893)=>{_0x75a11a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x52b776,{'commandName':_0x5a6893['commandName'],'commandParams':_0x5a6893['commandReversedParams']});}),_0x75a11a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3c8fad,_0x42d2b9){if(_0x2baf5f(_0x3c8fad,_0x42d2b9))return[_0x3c8fad,_0x42d2b9];if(_0x2baf5f(_0x42d2b9,_0x3c8fad))return[_0x42d2b9,_0x3c8fad];return null;});const _0x47be8a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2baf5f(_0x1829a4,_0xd08ae7){const _0x1caa36=_0x47be8a['findIndex'](({type:_0xfe8a46,subType:_0x204a47})=>_0x1829a4['type']==_0xfe8a46&&_0x1829a4['subType']==_0x204a47),_0x345778=_0x47be8a['findIndex'](({type:_0x29f275,subType:_0x5c3eb1})=>_0xd08ae7['type']==_0x29f275&&_0xd08ae7['subType']==_0x5c3eb1);if(_0x1caa36<0x0||_0x345778<0x0)return!0x1;const _0x1918fa=_0x1829a4['getFirstRange'](),_0x56e52d=_0xd08ae7['getFirstRange']();if((0x0==_0x1caa36||0x1==_0x1caa36)&&0x2==_0x345778&&_0x1918fa['isIntersecting'](_0x56e52d))return!0x0;if(0x2==_0x1caa36&&0x3==_0x345778){const _0x13dd60=_0x75a11a['_findSuggestions'](_0x1918fa,'insertion')['filter'](({suggestion:_0x4d8431,meta:_0x538ad3})=>_0x538ad3['isOwn']&&'convertInlineImageToBlock'==_0x4d8431['subType']);if(_0x13dd60['length']>0x1&&_0x56e52d['end']['isEqual'](_0x1918fa['start']))return!0x0;if(0x1==_0x13dd60['length']&&(_0x1918fa['start']['isEqual'](_0x56e52d['end'])||_0x1918fa['end']['isEqual'](_0x56e52d['start'])))return!0x0;}if(0x3==_0x1caa36&&0x3==_0x345778&&_0x1918fa['start']['isBefore'](_0x56e52d['start'])){const _0x31563c=_0x1918fa['end']['nodeAfter'],_0x1b5d98=_0x56e52d['start']['nodeBefore'];return _0x5a94b0['isBlockImage'](_0x31563c)&&_0x31563c===_0x1b5d98;}return!0x1;}_0x4f4acd['model']['document']['registerPostFixer'](()=>{let _0x5b1b0c=!0x1;const _0x31fdb3=Array['from'](_0x4f4acd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x850550,data:_0x3af138}of _0x31fdb3){const {group:_0x4f42b6,type:_0x391a92,subType:_0x13b613,id:_0x2adfca}=_0x75a11a['_splitMarkerName'](_0x850550);if('suggestion'==_0x4f42b6&&_0x75a11a['hasSuggestion'](_0x2adfca)){if('formatBlock'==_0x391a92&&('imageStylePreApply'==_0x13b613||'imageStylePostApply'==_0x13b613)){const _0x394912=_0x75a11a['getSuggestion'](_0x2adfca);if(_0x3af138['newRange']){const _0x116f6c=_0x394912['getFirstRange']()['getContainedElement']();if(_0x5a94b0['isBlockImage'](_0x116f6c))continue;_0x75a11a['discardSuggestion'](_0x394912),_0x5b1b0c=!0x0;}}if('insertion'==_0x391a92&&'imageCaption'==_0x13b613&&!_0x3af138['newRange']){const _0x131f05=_0x75a11a['getSuggestion'](_0x2adfca);_0x131f05['next']&&_0x131f05['next']['isInContent']&&(_0x75a11a['discardSuggestion'](_0x131f05['next']),_0x5b1b0c=!0x0);}}}return _0x5b1b0c;}),this['_registerLegacyDescription'](_0x43e980);}['_registerLegacyDescription'](_0x1fa521){const _0xec19b3=this['editor'],_0x1e5737=_0xec19b3['locale'];_0xec19b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a2303=>{if('formatBlock'!=_0x5a2303['type']&&'formatInline'!=_0x5a2303['type'])return;const {data:_0x10eca7}=_0x5a2303;if(!_0x10eca7||'imageStyle'!=_0x10eca7['commandName'])return;const _0x156923=_0x10eca7['commandParams'][0x0]['value'];return _0x3157ae('side'===_0x156923?o(_0x1e5737,'FORMAT_SIDE_IMAGE'):_0x1fa521[_0x156923]||_0x156923);function _0x3157ae(_0x5a685c){return{'type':'format','content':o(_0x1e5737,'*Format:*\x20%0',_0x5a685c)};}});}}class rt extends _0x3d208b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x241583){super(_0x241583),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2d637a=this['editor'],_0x32e4e6=_0x2d637a['commands']['get']('importWord'),_0x5ef744=_0x2d637a['commands']['get']('trackChanges');_0x32e4e6&&(_0x32e4e6['on']('execute',(_0x51430c,[,_0x18d913])=>{this['_trackChangesValueDuringImport']=_0x5ef744['value'],_0x18d913['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x32e4e6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x32e4e6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5ef744['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2d637a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x540cf4,_0xdcef8d){const {suggestions:_0x5f1fc2}=_0xdcef8d,_0x344827=this['editor']['commands']['get']('trackChanges'),_0x38fd8b=_0x344827['value'];this['_trackChangesValueDuringImport']!==_0x38fd8b&&(_0x344827['execute'](),this['_trackChangesExecuted']=!0x0),_0x5f1fc2&&_0x5f1fc2['forEach'](({id:_0x33aa46,type:_0x1f33a5,author:_0x169319,created_at:_0x44c53d})=>{const _0x3a52f1={'id':_0x33aa46,'type':_0x1f33a5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x169319,'createdAt':_0x44c53d?new Date(_0x44c53d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3a52f1);});}}class at extends _0x3d208b{['afterInit'](){const _0x43a418=this['editor'],_0x2c9360=_0x43a418['plugins']['get']('TrackChangesEditing');if(_0x43a418['plugins']['has']('IndentEditing')&&(_0x2c9360['enableCommand']('indent'),_0x2c9360['enableCommand']('outdent')),_0x43a418['plugins']['has']('IndentBlock')){for(const _0x18c998 of['indentBlock','outdentBlock'])_0x2c9360['enableDefaultAttributesIntegration'](_0x18c998);}const _0xcadea9=_0x43a418['locale'];_0x2c9360['registerBlockAttribute']('blockIndent'),_0x2c9360['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xcadea9,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38e6d2=this['editor'],_0x2a9dec=_0x38e6d2['locale'],_0x44016c=_0x38e6d2['plugins']['get']('TrackChangesEditing');_0x44016c['descriptionFactory']['registerDescriptionCallback'](_0x34355e=>{if('formatBlock'!=_0x34355e['type'])return;const {data:_0x333153}=_0x34355e;if(!_0x333153)return;if('indentBlock'!=_0x333153['commandName']&&'outdentBlock'!=_0x333153['commandName'])return;const _0x39c7c3=_0x34355e['getItems']()[0x0],_0x5ed8ac=_0x44016c['descriptionFactory']['getItemLabel'](_0x39c7c3);return'indentBlock'==_0x333153['commandName']?{'type':'format','content':o(_0x2a9dec,'*Indent:*\x20%0',_0x5ed8ac)}:'outdentBlock'==_0x333153['commandName']?{'type':'format','content':o(_0x2a9dec,'*Outdent:*\x20%0',_0x5ed8ac)}:void 0x0;});}}class ct extends _0x3d208b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x3d208b{['afterInit'](){const _0x37676b=this['editor'];if(!_0x37676b['plugins']['has']('LinkEditing'))return;const _0x4ff106=_0x37676b['plugins']['get']('TrackChangesEditing'),_0x216bfa=_0x37676b['commands']['get']('link');_0x4ff106['enableDefaultAttributesIntegration']('link'),_0x4ff106['enableDefaultAttributesIntegration']('unlink'),_0x4ff106['registerInlineAttribute']('linkHref');for(const _0x1e92e5 of _0x216bfa['manualDecorators'])_0x4ff106['registerInlineAttribute'](_0x1e92e5['id']),_0x4ff106['descriptionFactory']['registerAttributeLabel'](_0x1e92e5['id'],'link\x20('+_0x1e92e5['label']['toLowerCase']()+')');_0x4ff106['descriptionFactory']['registerDescriptionCallback'](_0x5acf3e=>{if('attribute'!=_0x5acf3e['type'])return;const {data:_0x206650}=_0x5acf3e;if(!_0x206650||'linkHref'!=_0x206650['key'])return;const _0xc14b69=_0x206650['newValue'],_0xaa2db=_0x37676b['locale'];return{'type':'format','content':null==_0xc14b69?o(_0xaa2db,'*Remove\x20link*'):o(_0xaa2db,'*Set\x20link:*\x20%0','\x22'+_0xc14b69+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c7f56=this['editor'],_0x46d3e6=_0x5c7f56['locale'];_0x5c7f56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4641e4=>{if('formatInline'!=_0x4641e4['type'])return;const {data:_0x28cf1a}=_0x4641e4;if(_0x28cf1a){if('link'==_0x28cf1a['commandName']){const _0x2047ef=_0x28cf1a['commandParams'][0x0];return{'type':'format','content':o(_0x46d3e6,'*Set\x20link:*\x20%0','\x22'+_0x2047ef+'\x22')};}return'unlink'==_0x28cf1a['commandName']?{'type':'format','content':o(_0x46d3e6,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3d208b{['afterInit'](){const _0x51d67b=this['editor'],_0x9ab63c=_0x51d67b['locale'];if(!_0x51d67b['plugins']['has']('LegacyListEditing'))return;const _0x496baf=_0x51d67b['plugins']['get']('TrackChangesEditing'),_0x2ae985=_0x51d67b['plugins']['has']('LegacyTodoListEditing');function _0x16cb27(_0x2923c3){return()=>{const _0x1fe26c=_0x51d67b['model']['document']['selection'],_0x16d308=_0x51d67b['commands']['get'](_0x2923c3);if(_0x16d308['value'])return void _0x51d67b['execute']('paragraph',{});const _0x280cdf=_0x2923c3['slice'](0x0,-0x4),_0x7bf3de=function(_0x42a5f0,_0xebffc1,_0x1f29f2){let _0x5758b4=Array['from'](_0x42a5f0)['filter'](_0x586607=>function(_0x22fe0a,_0x2da4d8){return _0x2da4d8['checkChild'](_0x22fe0a['parent'],'listItem')&&!_0x2da4d8['isObject'](_0x22fe0a);}(_0x586607,_0x1f29f2));_0x5758b4=_0x5758b4['filter'](_0x2a641c=>!_0x2a641c['is']('element','listItem')||_0x2a641c['getAttribute']('listType')!=_0xebffc1);const _0x2f61c2=new Set();for(const _0x4e2342 of _0x5758b4)_0x4e2342['is']('element','listItem')?_0x2f61c2['add'](Le(_0x4e2342)):_0x2f61c2['add'](_0x4e2342);return Array['from'](_0x2f61c2);}(_0x1fe26c['getSelectedBlocks'](),_0x280cdf,_0x51d67b['model']['schema']);_0x51d67b['model']['change'](()=>{for(const _0x3cff50 of _0x7bf3de)_0x496baf['markBlockFormat'](_0x3cff50,{'commandName':_0x2923c3,'commandParams':[{'forceValue':!_0x16d308['value']}],'formatGroupId':'blockName'},Ee(_0x3cff50));});};}function _0x28d269(_0x242262){return()=>{const _0x8b3f83=function(_0x58486c){let _0x2a4425=Array['from'](_0x58486c);const _0x13007c=_0x2a4425['findIndex'](_0x525529=>'listItem'!=_0x525529['name']);return _0x13007c>-0x1&&(_0x2a4425=_0x2a4425['slice'](0x0,_0x13007c)),_0x2a4425;}(_0x51d67b['model']['document']['selection']['getSelectedBlocks']()),_0xdcd7ef=_0x51d67b['model']['createRange'](_0x51d67b['model']['createPositionAt'](_0x8b3f83[0x0],'before'),_0x51d67b['model']['createPositionAt'](_0x8b3f83[_0x8b3f83['length']-0x1],'end'));_0x51d67b['model']['change'](()=>{_0x496baf['markBlockFormat'](_0xdcd7ef,{'commandName':_0x242262,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5e74aa){const _0x50155f=new Set();for(const _0x54c7d8 of _0x5e74aa){let _0x520f81=_0x54c7d8['nextSibling'];for(;_0x520f81&&_0x520f81['getAttribute']('listIndent')>_0x54c7d8['getAttribute']('listIndent');)_0x50155f['add'](_0x520f81),_0x520f81=_0x520f81['nextSibling'];}return Array['from'](_0x50155f);}(_0x8b3f83));});};}_0x496baf['enableCommand']('numberedList',_0x16cb27('numberedList')),_0x496baf['enableCommand']('bulletedList',_0x16cb27('bulletedList')),_0x2ae985&&_0x496baf['enableCommand']('todoList',_0x16cb27('todoList')),_0x496baf['enableCommand']('indentList',_0x28d269('indentList')),_0x496baf['enableCommand']('outdentList',_0x28d269('outdentList')),_0x2ae985&&_0x496baf['enableCommand']('checkTodoList',()=>{const _0x137ee4=_0x51d67b['commands']['get']('checkTodoList'),_0x490040=Array['from'](_0x137ee4['_selectedElements']);_0x490040['filter'](_0x2a8f02=>_0x2a8f02['getAttribute']('todoListChecked')!=_0x137ee4['value']),_0x51d67b['model']['change'](()=>{for(const _0x2139d2 of _0x490040)_0x496baf['markBlockFormat'](_0x2139d2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x137ee4['value']}]});});}),_0x496baf['descriptionFactory']['registerElementLabel']('listItem',_0x1f4f7d=>o(_0x9ab63c,'ELEMENT_LIST_ITEM',_0x1f4f7d)),_0x496baf['descriptionFactory']['registerDescriptionCallback'](_0x5d5b20=>{if('formatBlock'!=_0x5d5b20['type']&&'formatInline'!=_0x5d5b20['type'])return;const {data:_0x4bb710}=_0x5d5b20;if(_0x4bb710){if('numberedList'==_0x4bb710['commandName']||'bulletedList'==_0x4bb710['commandName']||'todoList'==_0x4bb710['commandName'])switch(_0x4bb710['commandName']['replace']('List','')){case'bulleted':return _0x5905c3(o(_0x9ab63c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5905c3(o(_0x9ab63c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5905c3(o(_0x9ab63c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4bb710['commandName'])return{'type':'format','content':o(_0x9ab63c,'*Indent:*\x20%0',o(_0x9ab63c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4bb710['commandName'])return{'type':'format','content':o(_0x9ab63c,'*Outdent:*\x20%0',o(_0x9ab63c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4bb710['commandName'])return _0x4bb710['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9ab63c,'*Check\x20item*')}:{'type':'format','content':o(_0x9ab63c,'*Uncheck\x20item*')};}function _0x5905c3(_0x50623e){return{'type':'format','content':o(_0x9ab63c,'*Change\x20to:*\x20%0',_0x50623e)};}});}}function Le(_0x4d27dd){const _0x44a5be=_0x4d27dd['getAttribute']('listIndent');if(0x0==_0x44a5be)return _0x4d27dd;let _0x36a2a2=_0x4d27dd;for(;_0x4d27dd['previousSibling']&&_0x4d27dd['previousSibling']['is']('element','listItem');){const _0x597597=_0x4d27dd['previousSibling']['getAttribute']('listIndent');if(_0x597597==_0x44a5be)_0x36a2a2=_0x4d27dd['previousSibling'];else{if(_0x597597<_0x44a5be)break;}_0x4d27dd=_0x4d27dd['previousSibling'];}return _0x36a2a2;}function Ee(_0x21700d){const _0x1fd9e6=[];if(_0x21700d['is']('element','listItem')&&_0x21700d['getAttribute']('listIndent')>0x0){let _0x358544=_0x21700d['nextSibling'];for(;_0x358544&&'listItem'==_0x358544['name']&&_0x358544['getAttribute']('listIndent')==_0x21700d['getAttribute']('listIndent');)_0x1fd9e6['push'](_0x358544),_0x358544=_0x358544['nextSibling'];}return _0x1fd9e6;}class ht extends _0x3d208b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5b9f54=this['editor']['config']['get']('list.properties'),_0xc7fafa=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b9f54['styles']&&_0xc7fafa['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5b9f54['reversed']&&_0xc7fafa['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5b9f54['startIndex']&&_0xc7fafa['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xc7fafa['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xc845d5,_0x28aaba={}){const _0x5835bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37471a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5835bb['markMultiRangeBlockFormat'](_0x37471a,{'commandName':'listStyle','commandParams':[{'type':_0x28aaba['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x280a36,_0x54752e={}){const _0x2cd3a2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x187264=this['_getSuggestionBlocks'](_0x1bbf02=>_0x1bbf02['is']('element','listItem')&&'numbered'===_0x1bbf02['getAttribute']('listType'));if(_0x187264['length']<0x1)return;const _0x4fc69a=_0x187264['map'](_0x52fb5c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52fb5c,'before'),this['editor']['model']['createPositionAt'](_0x52fb5c,0x0)));this['editor']['model']['change'](()=>{_0x2cd3a2['markMultiRangeBlockFormat'](_0x4fc69a,{'commandName':'listReversed','commandParams':[{'reversed':_0x54752e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x150eb9,_0xa2ee72={}){const _0x19a41b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13e224=this['_getSuggestionBlocks'](_0x4807e6=>_0x4807e6['is']('element','listItem')&&'numbered'===_0x4807e6['getAttribute']('listType'));if(_0x13e224['length']<0x1)return;const _0x7bdda1=_0x13e224['map'](_0x321ea1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x321ea1,'before'),this['editor']['model']['createPositionAt'](_0x321ea1,0x0)));this['editor']['model']['change'](()=>{_0x19a41b['markMultiRangeBlockFormat'](_0x7bdda1,{'commandName':'listStart','commandParams':[{'startIndex':_0xa2ee72['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x233070){if('formatBlock'!=_0x233070['type']&&'formatInline'!=_0x233070['type'])return;const _0x4dd861=this['editor']['locale'],{data:_0xd8d7f4}=_0x233070;if(!_0xd8d7f4)return;let _0x44d1fe,_0x301927;switch(_0xd8d7f4['commandName']){case'listStyle':_0x44d1fe='*Change\x20to:*\x20%0',_0x301927={'type':'format','content':o(_0x4dd861,_0x44d1fe,o(_0x4dd861,this['_getTranslationKeyForListStyle'](_0xd8d7f4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x44d1fe=_0xd8d7f4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x301927={'type':'format','content':o(_0x4dd861,_0x44d1fe)};break;case'listStart':_0x44d1fe='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x301927={'type':'format','content':o(_0x4dd861,_0x44d1fe,_0xd8d7f4['commandParams'][0x0]['startIndex'])};}return _0x301927;}['_getSuggestionBlocksForListStyle'](){const _0x519d1f=this['editor']['plugins']['get']('LegacyListUtils');let _0xac1c0c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xac1c0c[0x0]?.['is']('element','listItem')&&_0xac1c0c['unshift'](..._0x519d1f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xac1c0c[_0xac1c0c['length']-0x1]?.['is']('element','listItem')&&_0xac1c0c['push'](..._0x519d1f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xac1c0c=[...new Set(_0xac1c0c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xac1c0c=_0xac1c0c['filter'](_0x3cfbcd=>_0x3cfbcd['is']('element','listItem'))),_0xac1c0c;}['_getSuggestionBlocks'](_0x5575e7){const _0x240dc=this['editor']['plugins']['get']('LegacyListUtils');let _0x581d18=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5575e7)['map'](_0x49ff18=>{const _0x2a78ea=this['editor']['model']['createPositionAt'](_0x49ff18,0x0);return[..._0x240dc['getSiblingNodes'](_0x2a78ea,'backward'),..._0x240dc['getSiblingNodes'](_0x2a78ea,'forward')];})['flat']();return _0x581d18=[...new Set(_0x581d18)],_0x581d18;}['_getTranslationKeyForListStyle'](_0x4845ae){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4845ae)||'default')['toUpperCase']()+'_LIST_'+_0x4845ae['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x3d208b{['afterInit'](){const _0x21c57c=this['editor'];if(!_0x21c57c['plugins']['has']('MediaEmbedEditing'))return;const _0x413b20=_0x21c57c['plugins']['get']('TrackChangesEditing'),_0x23ea90=_0x21c57c['locale'];_0x413b20['enableCommand']('mediaEmbed'),_0x413b20['descriptionFactory']['registerElementLabel']('media',_0x45ee80=>o(_0x23ea90,'ELEMENT_MEDIA',_0x45ee80)),_0x21c57c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x38c27c,{writer:_0x5360e3,options:_0x56439e})=>{if(_0x56439e['showSuggestionHighlights'])return _0x5360e3['createEmptyElement']('div');},'converterPriority':'high'}),_0x21c57c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x30d818,_0x1b6539,_0x150639)=>{_0x150639['options']['showSuggestionHighlights']&&_0x30d818['stop']();},{'priority':'high'});}}class lt extends _0x3d208b{['afterInit'](){const _0x17ac6c=this['editor'];_0x17ac6c['plugins']['has']('MentionEditing')&&_0x17ac6c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3d208b{['afterInit'](){const _0x48ff8c=this['editor'];if(!_0x48ff8c['plugins']['has']('MergeFieldsEditing'))return;const _0x36d510=_0x48ff8c['plugins']['get']('TrackChangesEditing'),_0x1fab2d=_0x48ff8c['locale'];_0x36d510['enableCommand']('insertMergeField'),_0x36d510['enableCommand']('insertMergeFieldBlock'),_0x36d510['enableCommand']('insertMergeFieldImage'),_0x36d510['descriptionFactory']['registerElementLabel']('mergeField',_0x104731=>o(_0x1fab2d,'ELEMENT_MERGE_FIELD',_0x104731)),_0x36d510['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x8e3fe9=>o(_0x1fab2d,'ELEMENT_MERGE_FIELD',_0x8e3fe9)),_0x36d510['descriptionFactory']['registerDescriptionCallback'](_0xbd6933=>{if('insertion'!=_0xbd6933['type']&&'deletion'!=_0xbd6933['type'])return;const _0x1feb98=_0xbd6933['getContainedElement']();if(null==_0x1feb98)return;const _0x4274bb=_0x48ff8c['plugins']['get']('MergeFieldsEditing');let _0x95197c;switch(_0x4274bb['getMergeFieldType'](_0x1feb98)){case null:return;case'image':{const _0x54d792=_0x4274bb['unwrapAffixes'](_0x1feb98['getAttribute']('src'));_0x95197c=_0x4274bb['getLabel'](_0x54d792)||_0x54d792;break;}default:{const _0x4cdcea=_0x1feb98['getAttribute']('id');_0x95197c=_0x4274bb['getLabel'](_0x4cdcea)||_0x4cdcea;break;}}return'insertion'==_0xbd6933['type']?{'type':'insertion','content':o(_0x1fab2d,'*Insert:*\x20%0','\x22'+_0x95197c+'\x22\x20'+o(_0x1fab2d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1fab2d,'*Remove:*\x20%0','\x22'+_0x95197c+'\x22\x20'+o(_0x1fab2d,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x3d208b{['afterInit'](){const _0x32c654=this['editor'],_0x5d186d=_0x32c654['plugins']['get']('TrackChangesEditing');_0x32c654['plugins']['has']('MultiLevelList')&&(_0x5d186d['enableDefaultAttributesIntegration']('multiLevelList'),_0x5d186d['registerBlockAttribute']('listMarkerStyle'),_0x5d186d['descriptionFactory']['registerDescriptionCallback'](_0x213ebe=>this['handleDescriptions'](_0x213ebe)));}['handleDescriptions'](_0x1b0842){const _0x4b67c1=this['editor']['locale'],{data:_0x1672c6}=_0x1b0842,_0x29dd7a={'type':'format','content':''};if(_0x1672c6&&'listMarkerStyle'==_0x1672c6['key']){if(!_0x1672c6['oldValue'])return{'type':'format','content':o(_0x4b67c1,'*Set\x20format:*\x20%0',o(_0x4b67c1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1672c6['newValue']+')'};if(!_0x1672c6['newValue']){let _0xa01b43=_0x1b0842['head'];for(;_0xa01b43;){if(_0xa01b43['data']&&'listType'==_0xa01b43['data']['key']&&_0xa01b43['data']['newValue'])return _0x29dd7a;_0xa01b43=_0xa01b43['next'];}return{'type':'format','content':o(_0x4b67c1,'*Remove\x20format:*\x20%0',o(_0x4b67c1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1672c6['oldValue']+')'};}}}}class pt extends _0x3d208b{['afterInit'](){const _0x5b3fe5=this['editor'];if(!_0x5b3fe5['plugins']['has']('PageBreakEditing'))return;_0x5b3fe5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x481570=_0x5b3fe5['plugins']['get']('TrackChangesEditing'),_0x3aea76=_0x5b3fe5['locale'];_0x481570['descriptionFactory']['registerElementLabel']('pageBreak',_0x237f1f=>o(_0x3aea76,'ELEMENT_PAGE_BREAK',_0x237f1f));}}class kt extends _0x3d208b{['afterInit'](){const _0x129964=this['editor'];if(!_0x129964['plugins']['has']('Paragraph'))return;const _0x5ee8e3=_0x129964['locale'],_0x3a4b4b=_0x129964['plugins']['get']('TrackChangesEditing');_0x3a4b4b['descriptionFactory']['registerElementLabel']('paragraph',_0x189bfd=>o(_0x5ee8e3,'ELEMENT_PARAGRAPH',_0x189bfd)),_0x3a4b4b['enableDefaultAttributesIntegration']('paragraph'),_0x3a4b4b['enableCommand']('insertParagraph'),_0x129964['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x129964),{'priority':'highest'}),_0x129964['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1edf3c,_0x4ebf9b,_0x10b5a7)=>{_0x10b5a7['options']['showSuggestionHighlights']&&nr(_0x129964,{'showActiveMarker':!0x1})(_0x1edf3c,_0x4ebf9b,_0x10b5a7);},{'priority':'highest'});const _0x335835=_0x3a4b4b['descriptionFactory'];_0x335835['registerDescriptionCallback'](_0x2ea80f=>{if('insertion'!==_0x2ea80f['type'])return;const {start:_0xe12139,end:_0x3476c6}=_0x2ea80f['getFirstRange']();if(!_0xe12139['isTouching'](_0x3476c6)||!_0xe12139['nodeAfter'])return;const _0x1f60b6=_0x129964['model']['schema'],_0x2afe25=_0xe12139['nodeAfter'];return _0x1f60b6['isBlock'](_0x2afe25)&&!_0x1f60b6['isLimit'](_0x2afe25)&&_0x1f60b6['checkChild'](_0x2afe25,'$text')?{'type':'insertion','content':o(_0x5ee8e3,'*Insert:*\x20%0',_0x335835['getItemLabel'](_0x2afe25,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x421935=this['editor'],_0x4f1f2c=_0x421935['locale'];_0x421935['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x171675=>{if('formatBlock'!=_0x171675['type'])return;const {data:_0x45b4d7}=_0x171675;return _0x45b4d7&&'paragraph'==_0x45b4d7['commandName']?{'type':'format','content':o(_0x4f1f2c,'*Change\x20to:*\x20%0',o(_0x4f1f2c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x15400a,{showActiveMarker:_0x181663=!0x0}={}){return(_0x3f5687,_0xe94511,_0x22d529)=>{const _0x337f9d=_0x15400a['plugins']['get']('TrackChangesEditing'),_0x171617=_0xe94511['markerRange']['start'],_0x57c0ec=_0xe94511['markerRange']['end'],_0x21f56d=_0x15400a['model']['schema'];if(!_0x171617['isTouching'](_0x57c0ec)||!_0x171617['nodeAfter'])return;const _0x4985ff=_0x171617['nodeAfter'];if(_0x21f56d['isBlock'](_0x4985ff)&&!_0x21f56d['isLimit'](_0x4985ff)&&_0x21f56d['checkChild'](_0x4985ff,'$text')){if(!_0x22d529['consumable']['consume'](_0xe94511['markerRange'],_0x3f5687['name']))return;const {id:_0x29be7e,authorId:_0x551b2c}=_0x337f9d['_splitMarkerName'](_0xe94511['markerName']),_0x2de80c=_0x22d529['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x29be7e,'data-author-id':_0x551b2c}),_0x842982=_0x22d529['mapper']['toViewPosition'](_0x57c0ec);_0x181663&&_0x337f9d['activeMarkers']['includes'](_0xe94511['markerName'])&&_0x22d529['writer']['addClass']('ck-suggestion-marker--active',_0x2de80c),_0x22d529['writer']['insert'](_0x842982,_0x2de80c),_0x22d529['mapper']['bindElementToMarker'](_0x2de80c,_0xe94511['markerName']);}};}class wt extends _0x3d208b{['afterInit'](){const _0x46b952=this['editor'];_0x46b952['commands']['get']('replaceSource')&&_0x46b952['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x3d208b{['afterInit'](){const _0x320ec0=this['editor'];if(!_0x320ec0['plugins']['has']('RemoveFormatEditing'))return;_0x320ec0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x305c5f=this['editor'];_0x305c5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c6c31=>{if('formatBlock'!=_0x4c6c31['type']&&'formatInline'!=_0x4c6c31['type'])return;const {data:_0x49a36e}=_0x4c6c31;return _0x49a36e&&'removeFormat'==_0x49a36e['commandName']?{'type':'format','content':o(_0x305c5f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3d208b{['afterInit'](){const _0x1a7aea=this['editor'];if(!_0x1a7aea['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x10d147=_0x1a7aea['plugins']['get']('TrackChangesEditing');_0x10d147['enableCommand']('goToPreviousRestrictedEditingException'),_0x10d147['enableCommand']('goToNextRestrictedEditingException');const _0x4d7769=_0x1a7aea['plugins']['get']('RestrictedEditingModeEditing');_0x4d7769['enableCommand']('trackChanges'),_0x4d7769['enableCommand']('acceptSuggestion'),_0x4d7769['enableCommand']('discardSuggestion'),_0x4d7769['enableCommand']('acceptAllSuggestions'),_0x4d7769['enableCommand']('discardAllSuggestions'),_0x4d7769['enableCommand']('acceptSelectedSuggestions'),_0x4d7769['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3d208b{['afterInit'](){const _0x41fd0b=this['editor'];if(!_0x41fd0b['plugins']['has']('ShiftEnter'))return;const _0x574deb=_0x41fd0b['plugins']['get']('TrackChangesEditing');_0x574deb['enableCommand']('shiftEnter'),_0x41fd0b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x41fd0b),{'priority':'high'}),_0x41fd0b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x41fd0b),{'priority':'high'}),_0x41fd0b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4221a8,_0x3f47ab,_0x3aed82)=>{_0x3aed82['options']['showSuggestionHighlights']&&je(_0x41fd0b,{'showActiveMarker':!0x1})(_0x4221a8,_0x3f47ab,_0x3aed82);}),_0x574deb['descriptionFactory']['registerElementLabel']('softBreak',_0x309223=>o(_0x41fd0b['locale'],'ELEMENT_LINE_BREAK',_0x309223));}}function je(_0x3c824d,{showActiveMarker:_0x2afd01=!0x0}={}){return(_0x4880cd,_0x238c0a,_0x49c33b)=>{const _0x10c55=_0x3c824d['plugins']['get']('TrackChangesEditing');if(!_0x49c33b['consumable']['test'](_0x238c0a['markerRange'],_0x4880cd['name']))return;const _0x4e7596=_0x3c824d['model'];for(const _0x2aabf4 of _0x238c0a['markerRange']['getItems']()){if(!_0x2aabf4['is']('element','softBreak'))continue;const _0x45d105='deletion'==_0x238c0a['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4dffd7,authorId:_0x3f8640}=_0x10c55['_splitMarkerName'](_0x238c0a['markerName']),_0x2adc1e=_0x49c33b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45d105,'data-suggestion':_0x4dffd7,'data-author-id':_0x3f8640}),_0x44e1f3=_0x49c33b['mapper']['toViewPosition'](_0x4e7596['createPositionBefore'](_0x2aabf4));_0x2afd01&&_0x10c55['activeMarkers']['includes'](_0x238c0a['markerName'])&&_0x49c33b['writer']['addClass']('ck-suggestion-marker--active',_0x2adc1e),_0x49c33b['writer']['insert'](_0x44e1f3,_0x2adc1e),_0x49c33b['mapper']['bindElementToMarker'](_0x2adc1e,_0x238c0a['markerName']);}};}class St extends _0x3d208b{['afterInit'](){const _0x432b2e=this['editor'],_0x467f5f=_0x432b2e['model'],_0x4d1df2=_0x432b2e['locale'];if(!_0x432b2e['plugins']['has']('StandardEditingModeEditing'))return;const _0x5d3083=_0x432b2e['plugins']['get']('TrackChangesEditing'),_0x496d13='restrictedEditingException',_0x1b6bac=_0x432b2e['commands']['get'](_0x496d13);_0x5d3083['enableCommand'](_0x496d13,(_0xe40e71,_0x3c20ee={})=>{const _0x348e97=_0x467f5f['document']['selection'];if(_0x348e97['isCollapsed'])return void _0xe40e71(_0x3c20ee);const _0xacddae=void 0x0!==_0x3c20ee['forceValue']?_0x3c20ee['forceValue']:!_0x1b6bac['value'];_0x467f5f['change'](()=>{const _0x2e8ac8=Array['from'](_0x348e97['getRanges']());for(const _0x489b08 of _0x2e8ac8){const _0x126b55=_0xacddae?[_0x489b08]:io(_0x496d13,_0x489b08,_0x467f5f);for(const _0x4cc171 of _0x126b55)_0x5d3083['markInlineFormat'](_0x4cc171,{'commandName':_0x496d13,'commandParams':[{'forceValue':_0xacddae}]});}});}),_0x5d3083['descriptionFactory']['registerDescriptionCallback'](_0x421431=>{if('formatBlock'!=_0x421431['type']&&'formatInline'!=_0x421431['type'])return;const {data:_0x1e5e71}=_0x421431;return _0x1e5e71&&_0x1e5e71['commandName']==_0x496d13?_0x1e5e71['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d1df2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4d1df2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x3d208b{['afterInit'](){const _0x513956=this['editor'];if(!_0x513956['plugins']['has']('Style')||!_0x513956['plugins']['has']('DataSchema'))return;const _0x4c6ccd=_0x513956['plugins']['get']('TrackChangesEditing'),_0x38c17a=_0x513956['locale'],_0x5e15c0=_0x513956['config']['get']('style')||{},_0x6313fe=_0x513956['plugins']['get']('GeneralHtmlSupport'),_0x296e15=_0x513956['plugins']['get']('StyleUtils')['normalizeConfig'](_0x513956['plugins']['get']('DataSchema'),_0x5e15c0['definitions']);_0x4c6ccd['enableDefaultAttributesIntegration']('style');const _0x382be0=new Set();for(const _0x257a82 of _0x296e15['block']){const _0x57aae0=_0x6313fe['getGhsAttributeNameForElement'](_0x257a82['element']);_0x382be0['add'](_0x57aae0);}const _0x1dc3a2=new Set();for(const _0x4f4af2 of _0x296e15['inline']){const _0x5e39e2=_0x6313fe['getGhsAttributeNameForElement'](_0x4f4af2['element']);_0x1dc3a2['add'](_0x5e39e2);for(const _0x2f1542 of _0x4f4af2['ghsAttributes'])_0x1dc3a2['add'](_0x2f1542);}for(const _0x30110e of _0x382be0)_0x4c6ccd['registerBlockAttribute'](_0x30110e),_0x4c6ccd['descriptionFactory']['registerAttributeLabel'](_0x30110e,o(_0x38c17a,'FORMAT_STYLE'));for(const _0xde6fa1 of _0x1dc3a2)_0x4c6ccd['registerInlineAttribute'](_0xde6fa1),_0x4c6ccd['descriptionFactory']['registerAttributeLabel'](_0xde6fa1,o(_0x38c17a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54150d=this['editor'],_0x250277=_0x54150d['locale'];_0x54150d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31cc0f=>{if('formatBlock'!=_0x31cc0f['type']&&'formatInline'!=_0x31cc0f['type'])return;const {data:_0x41c441}=_0x31cc0f;return _0x41c441&&'style'===_0x41c441['commandName']?_0x41c441['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x250277,'*Set\x20format:*\x20%0',_0x41c441['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x250277,'*Remove\x20format:*\x20%0',_0x41c441['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x3d208b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1e1ece){super(_0x1e1ece),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x41fe6e=this['editor'],_0x2c456c=_0x41fe6e['model']['document']['selection'];if(!_0x41fe6e['plugins']['has']('TableEditing'))return;const _0x498581=_0x41fe6e['locale'],_0x2630d3=_0x41fe6e['plugins']['get']('TrackChangesEditing'),_0x1a9975=_0x41fe6e['plugins']['get']('TableUtils');_0x2630d3['descriptionFactory']['registerElementLabel']('table',_0xe236cd=>o(_0x498581,'ELEMENT_TABLE',_0xe236cd)),this['_setupColumnsRowsFixing'](),_0x2630d3['enableCommand']('insertTable'),_0x2630d3['enableCommand']('selectTableRow'),_0x2630d3['enableCommand']('selectTableColumn');for(const _0x9dc1d7 of['insertTableRowAbove','insertTableRowBelow']){const _0x5d88d2=_0x41fe6e['commands']['get'](_0x9dc1d7);_0x2630d3['enableCommand'](_0x9dc1d7,_0x10fbcf=>{_0x41fe6e['model']['change'](_0x4085f9=>{_0x10fbcf();const _0x21c6ca='above'===_0x5d88d2['order'],_0x315ee7=_0x1a9975['getSelectionAffectedTableCells'](_0x2c456c),_0x124d9c=_0x1a9975['getRowIndexes'](_0x315ee7),_0x148dbc=_0x21c6ca?_0x124d9c['first']-0x1:_0x124d9c['last']+0x1,_0x503068=_0x315ee7[0x0]['findAncestor']('table'),_0x2235f2=_0x1a9975['createTableWalker'](_0x503068,{'startRow':_0x148dbc,'endRow':_0x148dbc}),_0x5e2085=Array['from'](_0x2235f2)['map'](_0x44f4d7=>_0x4085f9['createRangeOn'](_0x44f4d7['cell']));_0x2630d3['markMultiRangeInsertion'](_0x5e2085,'tableRow');});});}for(const _0x73c6ce of['insertTableColumnLeft','insertTableColumnRight']){const _0x16bd9=_0x41fe6e['commands']['get'](_0x73c6ce);_0x2630d3['enableCommand'](_0x73c6ce,_0x2740e1=>{_0x41fe6e['model']['change'](_0x4ac0fe=>{_0x2740e1();const _0x286cac='left'===_0x16bd9['order'],_0x2099c7=_0x1a9975['getSelectionAffectedTableCells'](_0x2c456c),_0x43a577=_0x1a9975['getColumnIndexes'](_0x2099c7),_0x484889=_0x286cac?_0x43a577['first']-0x1:_0x43a577['last']+0x1,_0x32d885=_0x2099c7[0x0]['findAncestor']('table'),_0x4e92c5=_0x1a9975['createTableWalker'](_0x32d885,{'startRow':0x0,'column':_0x484889,'includeAllSlots':!0x1}),_0x1ed2c6=Array['from'](_0x4e92c5)['map'](_0x408037=>_0x4ac0fe['createRangeOn'](_0x408037['cell']));_0x2630d3['markMultiRangeInsertion'](_0x1ed2c6,'tableColumn');});});}for(const _0x35fe01 of['removeTableRow','removeTableColumn']){const _0x2ebdd1=_0x35fe01['substr'](0xb),_0x151606=_0x2ebdd1['toLowerCase'](),_0x31125b=_0x151606['substr'](0x0,0x3)+'span',_0x9330a='table'+_0x2ebdd1,_0x5c441e='min'+_0x2ebdd1,_0x2cc969='max'+_0x2ebdd1;_0x2630d3['enableCommand'](_0x35fe01,()=>{_0x41fe6e['model']['change'](_0x2367df=>{const _0x54669c=_0x1a9975['getSelectionAffectedTableCells'](_0x2c456c),_0x4f5160=_0x54669c[0x0]['findAncestor']('table');let _0x5039ac;if('removeTableRow'==_0x35fe01){const _0x8fa921=_0x1a9975['getRowIndexes'](_0x54669c);_0x5039ac={'startRow':_0x8fa921['first'],'endRow':_0x8fa921['last'],'includeAllSlots':!0x0};}else{const _0x999145=_0x1a9975['getColumnIndexes'](_0x54669c);_0x5039ac={'startColumn':_0x999145['first'],'endColumn':_0x999145['last'],'includeAllSlots':!0x0};}const _0x8dc089=_0x1a9975['createTableWalker'](_0x4f5160,_0x5039ac),_0x32e583=Array['from'](_0x8dc089)['map'](({cell:_0x1651ff})=>_0x1651ff),_0x598e69=Ne(_0x32e583['filter'](_0x475bc2=>_0x475bc2['hasAttribute'](_0x31125b))),_0x1af2d0=Ne(_0x32e583['filter'](_0x4ef2c2=>!_0x4ef2c2['hasAttribute'](_0x31125b)))['map'](_0x18ce3b=>_0x2367df['createRangeOn'](_0x18ce3b)),_0x4844e2=_0x2630d3['markMultiRangeDeletion'](_0x1af2d0,_0x9330a);if(_0x4844e2&&('tableRow'==_0x4844e2['subType']||'tableColumn'==_0x4844e2['subType'])){const _0x447cc6=this['_getSuggestionCoords'](_0x4844e2);for(const _0x29f0aa of _0x598e69){const _0x5eb801=_0x2367df['createRangeOn'](_0x29f0aa),_0x53d5b2=_0x1a9975['getCellLocation'](_0x29f0aa),_0x5e8d9f=_0x29f0aa['getAttribute'](_0x31125b)-0x1,_0x343d75=_0x447cc6[_0x5c441e],_0x3e9955=_0x447cc6[_0x2cc969];_0x343d75<=_0x53d5b2[_0x151606]&&_0x53d5b2[_0x151606]+_0x5e8d9f<=_0x3e9955&&_0x4844e2['addRange'](_0x5eb801);}}});});}function _0x9b3a29(_0x1b4767){const _0x52a677=Array['from'](_0x2c456c['getRanges']())['map'](_0x18319d=>_0xc2a6f1['fromRange'](_0x18319d));_0x41fe6e['model']['change'](_0x175fbf=>{const _0x29e57c=_0x175fbf['batch'];_0x1b4767=_0x1b4767['filter'](_0xc2ff8d=>'$graveyard'!=_0xc2ff8d['root']['rootName']),_0x175fbf['setSelection'](_0x1b4767),_0x41fe6e['commands']['get']('removeTableRow')['refresh'](),_0x41fe6e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x41fe6e['model']['enqueueChange'](()=>{_0x41fe6e['model']['enqueueChange'](_0x29e57c,_0x501a19=>{const _0x233f35=_0x52a677['filter'](_0x3b79a6=>'$graveyard'!=_0x3b79a6['root']['rootName']);_0x233f35['length']>0x0&&_0x501a19['setSelection'](_0x233f35);for(const _0x52f1d6 of _0x52a677)_0x52f1d6['detach']();});});});}function _0xeb5d75(_0x4bc396){_0x41fe6e['model']['change'](_0x2e9ba2=>{const _0x12104d=Array['from'](_0x2c456c['getRanges']())['map'](_0x501e07=>_0xc2a6f1['fromRange'](_0x501e07)),_0x2158b2=[];for(const _0xe27152 of _0x4bc396)for(const _0x4692fa of _0xe27152['getItems']({'shallow':!0x0}))_0x2158b2['push'](_0x4692fa);for(const _0x223ed4 of _0x2158b2)'$graveyard'!=_0x223ed4['root']['rootName']&&(_0x2e9ba2['setSelection'](_0x2e9ba2['createPositionAt'](_0x223ed4,0x0)),_0x41fe6e['commands']['get']('removeTableColumn')['refresh'](),_0x41fe6e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x41fe5f=_0x12104d['filter'](_0x888a1e=>'$graveyard'!=_0x888a1e['root']['rootName']);_0x41fe5f['length']>0x0&&_0x2e9ba2['setSelection'](_0x41fe5f);for(const _0x656b51 of _0x12104d)_0x656b51['detach']();});}function _0x464eda(_0x17a32a,_0x2d5c19){return _0x2d5c19['every'](_0x593758=>_0x17a32a['some'](_0xbf518c=>_0xbf518c['end']['isEqual'](_0x593758['start'])||_0x593758['end']['isEqual'](_0xbf518c['start'])));}function _0x3c0030(_0x10c170,_0x523a28){return!_0x10c170['some'](_0x372fba=>_0x523a28['some'](_0x15ac57=>_0x372fba['isIntersecting'](_0x15ac57)))&&_0x10c170['some'](_0x5bbff1=>_0x523a28['some'](_0x23774f=>_0x5bbff1['end']['isTouching'](_0x23774f['start'])));}_0x41fe6e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xbd6a30,_0x527fdc,_0x1b1a26)=>{if(!_0x1b1a26['options']['showSuggestionHighlights'])return;const _0x5763ef=_0x527fdc['item'];if(!_0x5763ef||!_0x5763ef['is']('element','tableCell'))return;const _0x49a713=_0x1b1a26['mapper']['toViewElement'](_0x5763ef);if(_0x49a713){const {id:_0x2b3ca5,authorId:_0x5ce7c0}=_0x2630d3['_splitMarkerName'](_0x527fdc['markerName']);_0x5c9e23(_0x49a713,_0x1b1a26['writer'],(_0x469250,_0x3592fd,_0x103e44)=>{_0x103e44['addClass'](_0x202fa4(_0x3592fd['classes']),_0x469250),_0x103e44['setAttribute']('data-suggestion-id',_0x2b3ca5,_0x469250),_0x103e44['setAttribute']('data-author-id',_0x5ce7c0,_0x469250);},(_0x3c3d3b,_0x4f3b5b,_0x59c362)=>{_0x59c362['removeClass'](_0x202fa4(_0x4f3b5b['classes']),_0x3c3d3b),_0x59c362['removeAttribute']('data-suggestion-id',_0x3c3d3b),_0x59c362['removeAttribute']('data-author-id',_0x3c3d3b);});}},{'priority':'highest'}),_0x2630d3['descriptionFactory']['registerDescriptionCallback'](_0x3d3128=>{if('insertion'!=_0x3d3128['type']&&'deletion'!=_0x3d3128['type'])return;const _0x2aa3ae=_0x3d3128['getContainedElement']();if(null!=_0x2aa3ae&&_0x2aa3ae['is']('element','table')){if('insertion'==_0x3d3128['type']){const _0x3297d3=_0x3d3128['getItems']()['filter'](_0x4d7cd6=>_0x4d7cd6['is']('$textProxy'))['map'](_0x56281d=>_0x56281d['data']);if(_0x3297d3['length'])return{'type':'insertion','content':o(_0x498581,'*Insert:*\x20%0',o(_0x498581,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3297d3['join']('\x20')+'\x22'))};}if('deletion'==_0x3d3128['type']){const _0x37741f=_0x3d3128['getItems']()['filter'](_0x6a419b=>_0x6a419b['is']('$textProxy'))['map'](_0x660cb7=>_0x660cb7['data']);if(_0x37741f['length'])return{'type':'deletion','content':o(_0x498581,'*Remove:*\x20%0',o(_0x498581,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37741f['join']('\x20')+'\x22'))};}}}),_0x2630d3['descriptionFactory']['registerDescriptionCallback'](_0x3015db=>{if('tableRow'==_0x3015db['subType']){const _0x4427d9=_0x3015db['getItems']()['filter'](_0x34be61=>_0x34be61['is']('$textProxy'))['map'](_0x282925=>_0x282925['data']),_0x3a4ea8=this['_getSuggestionCoords'](_0x3015db),_0x29bd32=_0x3a4ea8['maxRow']-_0x3a4ea8['minRow']+0x1;if('insertion'==_0x3015db['type'])return _0x4427d9['length']?{'type':'insertion','content':o(_0x498581,'*Insert:*\x20%0',o(_0x498581,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x29bd32,'\x22'+_0x4427d9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x498581,'*Insert:*\x20%0',o(_0x498581,'ELEMENT_TABLE_ROW',_0x29bd32))};if('deletion'==_0x3015db['type'])return _0x4427d9['length']?{'type':'deletion','content':o(_0x498581,'*Remove:*\x20%0',o(_0x498581,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x29bd32,'\x22'+_0x4427d9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x498581,'*Remove:*\x20%0',o(_0x498581,'ELEMENT_TABLE_ROW',_0x29bd32))};}if('tableColumn'==_0x3015db['subType']){const _0x98ce69=_0x3015db['getItems']()['filter'](_0x3b80e9=>_0x3b80e9['is']('$textProxy'))['map'](_0x566c98=>_0x566c98['data']),_0x39a03b=this['_getSuggestionCoords'](_0x3015db),_0x436167=_0x39a03b['maxColumn']-_0x39a03b['minColumn']+0x1;if('insertion'==_0x3015db['type'])return _0x98ce69['length']?{'type':'insertion','content':o(_0x498581,'*Insert:*\x20%0',o(_0x498581,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x436167,'\x22'+_0x98ce69['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x498581,'*Insert:*\x20%0',o(_0x498581,'ELEMENT_TABLE_COLUMN',_0x436167))};if('deletion'==_0x3015db['type'])return _0x98ce69['length']?{'type':'deletion','content':o(_0x498581,'*Remove:*\x20%0',o(_0x498581,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x436167,'\x22'+_0x98ce69['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x498581,'*Remove:*\x20%0',o(_0x498581,'ELEMENT_TABLE_COLUMN',_0x436167))};}}),_0x2630d3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x9b3a29),_0x2630d3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x9b3a29),_0x2630d3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xeb5d75),_0x2630d3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xeb5d75),_0x2630d3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x464eda),_0x2630d3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x464eda),_0x2630d3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3c0030),_0x2630d3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3c0030);}['_acceptFormatSuggestionCallbackFactory'](){const _0x323e59=this['editor'],_0x30cc1f=_0x323e59['model']['document']['selection'];return(_0x3217f3,_0x59d041)=>{_0x323e59['model']['change'](_0xac3093=>{const {commandName:_0xc9625b,commandParams:_0x4b43ad}=_0x59d041;let _0x43c3e1=_0x3217f3[0x0]['end']['nodeBefore'];_0x4b43ad&&_0x4b43ad[0x0]&&!0x1===_0x4b43ad[0x0]['forceValue']&&(_0x43c3e1=_0x3217f3[0x0]['start']['nodeAfter']);const _0x8933c3=_0xac3093['createRangeIn'](_0x43c3e1);if('$graveyard'==_0x8933c3['root']['rootName'])return;const _0x336bdb=Array['from'](_0x30cc1f['getRanges']())['map'](_0xf05504=>_0xc2a6f1['fromRange'](_0xf05504));_0xac3093['setSelection'](_0x8933c3),_0x323e59['commands']['get'](_0xc9625b)['refresh'](),_0x4b43ad['push']({'forceDefaultExecution':!0x0}),_0x323e59['execute'](_0xc9625b,..._0x4b43ad);const _0x3b0ead=_0x336bdb['filter'](_0x57d9a6=>'$graveyard'!=_0x57d9a6['root']['rootName']);_0x3b0ead['length']>0x0&&_0xac3093['setSelection'](_0x3b0ead);for(const _0x482f45 of _0x336bdb)_0x482f45['detach']();});};}['_getCoordsForCells'](_0x5b177c){const _0x25a840=this['editor']['plugins']['get']('TableUtils');let _0x2a5539=Number['MAX_SAFE_INTEGER'],_0x5ef68f=Number['MIN_SAFE_INTEGER'],_0x502605=Number['MAX_SAFE_INTEGER'],_0x5c02ca=Number['MIN_SAFE_INTEGER'];for(const _0x5aa687 of _0x5b177c){if('$graveyard'==_0x5aa687['root']['rootName'])continue;const {row:_0x41fff4,column:_0x18cd7a}=_0x25a840['getCellLocation'](_0x5aa687),_0x211b8f=_0x5aa687['hasAttribute']('rowspan')?_0x5aa687['getAttribute']('rowspan')-0x1:0x0,_0x4d4a4d=_0x5aa687['hasAttribute']('colspan')?_0x5aa687['getAttribute']('colspan')-0x1:0x0;_0x2a5539=_0x41fff4<_0x2a5539?_0x41fff4:_0x2a5539,_0x5ef68f=_0x41fff4+_0x211b8f>_0x5ef68f?_0x41fff4+_0x211b8f:_0x5ef68f,_0x502605=_0x18cd7a<_0x502605?_0x18cd7a:_0x502605,_0x5c02ca=_0x18cd7a+_0x4d4a4d>_0x5c02ca?_0x18cd7a+_0x4d4a4d:_0x5c02ca;}return{'minRow':_0x2a5539,'maxRow':_0x5ef68f,'minColumn':_0x502605,'maxColumn':_0x5c02ca};}['_setupColumnsRowsFixing'](){const _0x2adcb3=this['editor'],_0x35d858=_0x2adcb3['plugins']['get']('TrackChangesEditing'),_0x1a908d=_0x2adcb3['plugins']['get']('TableUtils');_0x2adcb3['model']['document']['on']('change:data',()=>{const _0x59edfc=Array['from'](_0x2adcb3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f4c9b,data:_0x2c48cb}of _0x59edfc){const {group:_0x37fa7e,id:_0x47ae38,subType:_0x895d61}=_0x35d858['_splitMarkerName'](_0x2f4c9b);if('suggestion'!=_0x37fa7e)continue;if(null!=_0x2c48cb['oldRange'])continue;const _0x3f2c88=_0x35d858['getSuggestion'](_0x47ae38);this['_tablePostFixingSubtypes']['includes'](_0x895d61)&&this['_tableSuggestions']['add'](_0x3f2c88);}},{'priority':'low'});const _0x1bd8f6=(_0x5166e3,_0x1caf66)=>{let _0x50fe4b=!0x1;const _0x5d5ed8=_0x1caf66['createRangeOn'](_0x5166e3),_0x27b8fa=_0x5166e3['findAncestor']('table'),_0xdfd97a=_0x1a908d['getCellLocation'](_0x5166e3);for(const _0x616b13 of this['_tableSuggestions']){const _0x129176=_0x616b13['subType'],_0x3ac529=_0x129176['startsWith']('tablePaste'),_0x3e4036=_0x129176['substr'](_0x3ac529?0xa:0x5),_0x4ed9ec=_0x3e4036['toLowerCase'](),_0x1436ad=_0x4ed9ec['substr'](0x0,0x3)+'span',_0x1e34fe='min'+_0x3e4036,_0x27de0c='max'+_0x3e4036;if(!_0x616b13['isInContent'])continue;if(_0x27b8fa!=_0x616b13['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x616b13['isIntersectingWithRange'](_0x5d5ed8))continue;const _0x36b8a=_0x5166e3['hasAttribute'](_0x1436ad)?_0x5166e3['getAttribute'](_0x1436ad)-0x1:0x0,_0x2bf45b=this['_getSuggestionCoords'](_0x616b13),_0x49e54e=_0x2bf45b[_0x1e34fe],_0x1b5b23=_0x2bf45b[_0x27de0c];_0x49e54e<=_0xdfd97a[_0x4ed9ec]&&_0xdfd97a[_0x4ed9ec]+_0x36b8a<=_0x1b5b23&&(_0x616b13['addRange'](_0x5d5ed8),_0x50fe4b=!0x0);}return _0x50fe4b;};_0x2adcb3['model']['document']['registerPostFixer'](_0x29dd7f=>{let _0x19a31b=!0x1;for(const _0x12496c of _0x2adcb3['model']['document']['differ']['getChanges']())if('insert'==_0x12496c['type']){if('tableRow'==_0x12496c['name']){for(const _0x3458ee of _0x12496c['position']['nodeAfter']['getChildren']())_0x19a31b=_0x19a31b||_0x1bd8f6(_0x3458ee,_0x29dd7f);}else'tableCell'==_0x12496c['name']&&(_0x19a31b=_0x19a31b||_0x1bd8f6(_0x12496c['position']['nodeAfter'],_0x29dd7f));}return _0x19a31b;});}['_getSuggestionCoords'](_0x375f5c){return this['_getCoordsForCells'](_0x375f5c['getRanges']()['map'](_0xaf4314=>_0xaf4314['start']['nodeAfter']));}}function Ne(_0x2813d0){return Array['from'](new Set(_0x2813d0)['values']());}class _t extends _0x3d208b{static get['requires'](){return[At];}['afterInit'](){const _0x15feed=this['editor'],_0x13f9c5=_0x15feed['model']['document']['selection'],_0x49d4f6=_0x15feed['locale'];if(!_0x15feed['plugins']['has']('TableEditing'))return;const _0x5ed529=_0x15feed['plugins']['get']('TrackChangesEditing'),_0x1d6d92=_0x15feed['plugins']['get']('TableUtils'),_0xd3554c=_0x15feed['plugins']['get'](At);_0xd3554c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5ed529['enableCommand']('mergeTableCells',()=>{const _0x5ce591=_0x1d6d92['getSelectionAffectedTableCells'](_0x15feed['model']['document']['selection']);_0x15feed['model']['change'](()=>{_0x5ed529['markMultiRangeBlockFormat'](_0x5ce591,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x15feed['commands']['get']('mergeTableCells')['on']('execute',(_0x5d942b,_0x438f17)=>{_0x15feed['commands']['get']('trackChanges')['value']&&(_0x438f17['length']>0x0&&_0x438f17[_0x438f17['length']-0x1]&&_0x438f17[_0x438f17['length']-0x1]['forceDefaultExecution']||_0x5ed529['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5d942b['stop']());},{'priority':'highest'});for(const _0xa39df6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x45c0ec=_0x15feed['commands']['get'](_0xa39df6);_0x5ed529['enableCommand'](_0xa39df6,()=>{const _0xfe9586=_0x15feed['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f9038=>_0x1f9038['is']('element','tableCell')),_0x3d31ed=_0x45c0ec['value'];_0x15feed['model']['change'](()=>{_0x5ed529['markMultiRangeBlockFormat']([_0xfe9586,_0x3d31ed],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5d1d2f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5abbda=_0x15feed['commands']['get'](_0x5d1d2f);_0x5ed529['enableCommand'](_0x5d1d2f,()=>{const _0x4e739a=_0x1d6d92['getSelectionAffectedTableCells'](_0x15feed['model']['document']['selection'])[0x0],_0xef5246=_0x4e739a['findAncestor']('table'),{column:_0x2717c9,row:_0x4b4127}=_0x1d6d92['getCellLocation'](_0x4e739a);let _0xb4465c=[];if('horizontally'==_0x5abbda['direction']){const _0x495b4d=_0x1d6d92['createTableWalker'](_0xef5246,{'startRow':_0x4b4127,'endRow':_0x4b4127,'includeAllSlots':!0x0});_0xb4465c=Array['from'](_0x495b4d)['map'](_0x19a0ab=>_0x19a0ab['cell']);}else{const _0x422b0f=_0x1d6d92['createTableWalker'](_0xef5246,{'column':_0x2717c9,'includeAllSlots':!0x0});_0xb4465c=Array['from'](_0x422b0f)['map'](_0x5e04e9=>_0x5e04e9['cell']);}_0x15feed['model']['change'](_0x217f8b=>{_0x5ed529['markBlockFormat'](_0x217f8b['createRangeOn'](_0x4e739a),{'commandName':_0x5d1d2f,'commandParams':[]},_0xb4465c,_0x5d1d2f);});});}_0x5ed529['descriptionFactory']['registerDescriptionCallback'](_0x4d0f9e=>{if('formatBlock'!=_0x4d0f9e['type']&&'formatInline'!=_0x4d0f9e['type'])return;const {data:_0x91dd41}=_0x4d0f9e;return _0x91dd41&&'mergeTableCells'==_0x91dd41['commandName']?{'type':'format','content':o(_0x49d4f6,'*Merge\x20cells*')}:void 0x0;}),_0x5ed529['descriptionFactory']['registerDescriptionCallback'](_0x4afdb0=>{if('formatBlock'!=_0x4afdb0['type']&&'formatInline'!=_0x4afdb0['type'])return;const {data:_0x483cb3}=_0x4afdb0;return _0x483cb3?'splitTableCellVertically'==_0x483cb3['commandName']?{'type':'format','content':o(_0x49d4f6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x483cb3['commandName']?{'type':'format','content':o(_0x49d4f6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x10b395=_0xd3554c['_acceptFormatSuggestionCallbackFactory']();for(const _0x302265 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5ed529['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x302265,'accept',_0x10b395);for(const _0x3d66e0 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5ed529['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d66e0,'accept',_0x10b395);_0x5ed529['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5f159e=>{_0x15feed['model']['change'](_0x446858=>{const _0x5290c1=Array['from'](_0x13f9c5['getRanges']())['map'](_0x2c2b6c=>_0xc2a6f1['fromRange'](_0x2c2b6c));_0x446858['setSelection'](_0x5f159e),_0x15feed['commands']['get']('mergeTableCells')['refresh'](),_0x15feed['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x9b05b8=_0x5290c1['filter'](_0x58499f=>'$graveyard'!=_0x58499f['root']['rootName']);_0x9b05b8['length']>0x0&&_0x446858['setSelection'](_0x9b05b8);for(const _0x336856 of _0x5290c1)_0x336856['detach']();});});for(const _0x40c62e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5095f8=_0x15feed['commands']['get'](_0x40c62e);_0x5095f8['on']('set:isEnabled',(_0x51cf12,_0x3c4886,_0x244916)=>{if(_0x244916){const _0x115e9e=_0x15feed['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x393a13=>_0x393a13['is']('element','tableCell'));this['_areMergableCells'](_0x5095f8['value'],_0x115e9e)||(_0x51cf12['return']=!0x1,_0x51cf12['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x346085=this['editor']['commands']['get']('mergeTableCells'),_0xdb34ea=this['editor']['plugins']['get']('TableUtils');if(!_0x346085['isEnabled'])return!0x1;const _0x3bb7e4=_0xdb34ea['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xa72296 of _0x3bb7e4)for(const _0x335990 of _0x3bb7e4)if(_0xa72296!=_0x335990&&!this['_areMergableCells'](_0xa72296,_0x335990))return!0x1;return!0x0;}['_areMergableCells'](_0xbcde2e,_0x51050a){const _0x3a9b51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2dd64c=this['editor']['model']['createRangeOn'](_0xbcde2e),_0x4f430b=this['editor']['model']['createRangeOn'](_0x51050a),_0x1fe2ee=new Set(),_0x53c35a=new Set();for(const _0x2ed83a of _0x3a9b51['getSuggestions']())if(('insertion'==_0x2ed83a['type']||'deletion'==_0x2ed83a['type']||'mergeTableCells'==_0x2ed83a['subType'])&&_0x2ed83a['isInContent']){for(const _0x43d49d of _0x2ed83a['getRanges']())_0x43d49d['containsRange'](_0x2dd64c,!0x0)&&_0x1fe2ee['add'](_0x2ed83a['type']+':'+_0x2ed83a['author']['id']),_0x43d49d['containsRange'](_0x4f430b,!0x0)&&_0x53c35a['add'](_0x2ed83a['type']+':'+_0x2ed83a['author']['id']);}if(_0x1fe2ee['size']!=_0x53c35a['size'])return!0x1;for(const _0x20e2e1 of _0x1fe2ee)if(!_0x53c35a['has'](_0x20e2e1))return!0x1;return!0x0;}}class Ct extends _0x3d208b{static get['requires'](){return[At];}['afterInit'](){const _0x2bd17f=this['editor'];if(!_0x2bd17f['plugins']['has']('TableEditing'))return;const _0x2e8a82=_0x2bd17f['locale'],_0x1d4592=_0x2bd17f['plugins']['get']('TrackChangesEditing');_0x1d4592['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1d4592['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1d4592['registerBlockAttribute']('headingRows'),_0x1d4592['registerBlockAttribute']('headingColumns'),_0x1d4592['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2e8a82,'FORMAT_HEADER_ROW')),_0x1d4592['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2e8a82,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x363f4e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c0444=this['editor']['plugins']['get']('TableUtils'),_0x390fb8=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x176478({showActiveMarker:_0x5cb2aa=!0x0,setDataAttribute:_0x3dbc89=!0x0}={}){return(_0x125c85,_0x19d2cc,_0x33e6cc)=>{const {type:_0x3fe235,id:_0xd01b9}=_0x363f4e['_splitMarkerName'](_0x19d2cc['markerName']),_0x231440=_0x363f4e['getSuggestion'](_0xd01b9),_0x57e4e6=_0x231440['data'];if('formatBlock'!=_0x231440['type']||!_0x57e4e6||'setTableColumnHeader'!=_0x57e4e6['commandName'])return;if(_0x19d2cc['item'])return void _0x125c85['stop']();if(!_0x33e6cc['consumable']['consume'](_0x19d2cc['markerRange'],_0x125c85['name']))return;const _0x4a176e=_0x19d2cc['markerRange']['start']['nodeAfter'],_0x19204d=_0x19d2cc['markerRange']['end']['nodeBefore'],_0x1ba6b1=_0x4a176e['parent']['parent'],{column:_0x2a23c1}=_0x1c0444['getCellLocation'](_0x4a176e),{column:_0x179d0a}=_0x1c0444['getCellLocation'](_0x19204d);for(let _0x1aeaf7=_0x2a23c1;_0x1aeaf7<=_0x179d0a;_0x1aeaf7++){const _0x31cb0b=_0x1c0444['createTableWalker'](_0x1ba6b1,{'column':_0x1aeaf7,'includeAllSlots':!0x1});for(const _0xa2e521 of _0x31cb0b){const _0x1f0dde=_0xa2e521['cell'],_0x311fe2=_0x33e6cc['mapper']['toViewElement'](_0x1f0dde);_0x33e6cc['writer']['addClass']('ck-suggestion-marker-'+_0x3fe235,_0x311fe2),_0x3dbc89&&_0x33e6cc['writer']['setAttribute']('data-suggestion',_0xd01b9,_0x311fe2),_0x33e6cc['mapper']['bindElementToMarker'](_0x311fe2,_0x19d2cc['markerName']),_0x5cb2aa&&(_0x363f4e['activeMarkers']['includes'](_0x19d2cc['markerName'])?_0x33e6cc['writer']['addClass']('ck-suggestion-marker--active',_0x311fe2):_0x33e6cc['writer']['removeClass']('ck-suggestion-marker--active',_0x311fe2));}}};}_0x363f4e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x390fb8),_0x363f4e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x390fb8),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x176478(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34ef62,_0x24736f,_0x5b859e)=>{_0x5b859e['options']['showSuggestionHighlights']&&_0x176478({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34ef62,_0x24736f,_0x5b859e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2ac602,_0x3c2fb6,_0x12819a)=>{const {type:_0x5499d1,id:_0x26615a}=_0x363f4e['_splitMarkerName'](_0x3c2fb6['markerName']),_0x52283f=_0x363f4e['getSuggestion'](_0x26615a),_0x1e1e29=_0x52283f['data'];if('formatBlock'!=_0x52283f['type']||!_0x1e1e29||'setTableColumnHeader'!=_0x1e1e29['commandName'])return;const _0x4a986d=_0x12819a['mapper']['markerNameToElements'](_0x3c2fb6['markerName']);if(_0x4a986d){for(const _0x522d8a of _0x4a986d)_0x12819a['writer']['removeClass']('ck-suggestion-marker-'+_0x5499d1,_0x522d8a),_0x12819a['writer']['removeClass']('ck-suggestion-marker--active',_0x522d8a),_0x12819a['writer']['removeAttribute']('data-suggestion',_0x522d8a),_0x12819a['mapper']['unbindElementFromMarkerName'](_0x522d8a,_0x3c2fb6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3298ab=this['editor'],_0x553653=_0x3298ab['locale'];function _0x5bc256(_0x5afe3d){return{'type':'format','content':o(_0x553653,'*Format:*\x20%0',_0x5afe3d)};}_0x3298ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c5327=>{if('formatBlock'!=_0x5c5327['type'])return;const {data:_0x576774}=_0x5c5327;if(_0x576774){if('setTableRowHeader'==_0x576774['commandName']){const _0xa53094=_0x576774['commandParams'][0x0]['forceValue'];return _0x5bc256(o(_0x553653,_0xa53094?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x576774['commandName']){const _0xbd5c2b=_0x576774['commandParams'][0x0]['forceValue'];return _0x5bc256(o(_0x553653,_0xbd5c2b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x3d208b{['afterInit'](){const _0x3db73f=this['editor'],_0x3d4861=_0x3db73f['locale'],_0x390693=_0x3db73f['plugins']['get']('TrackChangesEditing');function _0x4b90f6(_0x7e3e62){return{'type':'format','content':''+o(_0x3d4861,'*Set\x20table\x20type:*\x20%0',_0x7e3e62)};}_0x3db73f['plugins']['has']('TableLayout')&&(_0x390693['enableCommand']('insertTableLayout'),_0x390693['enableDefaultAttributesIntegration']('tableType'),_0x390693['registerBlockAttribute']('tableType'),_0x390693['descriptionFactory']['registerElementLabel'](_0x3c2e7c=>_0x3c2e7c['is']('element','table')&&'layout'===_0x3c2e7c['getAttribute']('tableType'),_0x3e7b96=>o(_0x3d4861,'ELEMENT_LAYOUT_TABLE',_0x3e7b96)),_0x390693['descriptionFactory']['registerDescriptionCallback'](_0x3e6ee1=>{const {data:_0x37c632}=_0x3e6ee1;if(_0x37c632&&'tableType'==_0x37c632['key'])switch(_0x37c632['newValue']){case'layout':return _0x4b90f6(o(_0x3d4861,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4b90f6(o(_0x3d4861,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x17edd3=>[_0x17edd3,null]));class Nt extends _0x3d208b{static get['requires'](){return[At];}['afterInit'](){const _0x319588=this['editor'];if(!_0x319588['plugins']['has']('TableClipboard'))return;const _0x5d221b=_0x319588['plugins']['get']('TrackChangesEditing'),_0x37f19c=_0x319588['plugins']['get']('TableUtils'),_0x2af0ea=_0x319588['plugins']['get'](At),_0x31fc29=_0x319588['plugins']['get']('TableClipboard'),_0x9dcb24=_0x319588['plugins']['get']('TableSelection'),_0x3f73d9=_0x319588['plugins']['get'](_0x46a89d);_0x2af0ea['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x319588['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x319588['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3f1e2a=null,_0x537745=!0x1;_0x3f73d9['on']('contentInsertion',(_0x19f19b,_0x2bb907)=>{_0x537745='paste'===_0x2bb907['method'];}),_0x319588['model']['on']('insertContent',(_0xfd92c0,_0x1a7175)=>{if(!_0x537745&&null===_0x9dcb24['getSelectedTableCells']())return;const [_0xaabd8e,_0x51d456]=_0x1a7175,_0x9217e9=_0x1a7175[_0x1a7175['length']-0x1];_0x9217e9&&_0x9217e9['forceDefaultExecution']||_0x5d221b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4d8b1e,_0x1c5a06,_0x87706a,_0x3b4313,_0x3a27fe){if(_0x1c5a06&&!_0x1c5a06['is']('documentSelection'))return!0x1;const _0x29771f=_0x3a27fe['getTableIfOnlyTableInContent'](_0x4d8b1e,_0x87706a);if(!_0x29771f||!Ue(_0x29771f,void 0x0,_0x3b4313))return!0x1;const _0x143179=_0x3b4313['getSelectionAffectedTableCells'](_0x87706a['document']['selection']);if(!_0x143179['length'])return!0x1;const _0x33b110=_0x143179[0x0]['findAncestor']('table'),_0x143c5b=_0x3b4313['getRowIndexes'](_0x143179),_0x4d185d=_0x3b4313['getColumnIndexes'](_0x143179),_0x50e147={'startRow':_0x143c5b['first'],'endRow':_0x143c5b['last'],'startColumn':_0x4d185d['first'],'endColumn':_0x4d185d['last']};return 0x1==_0x143179['length']&&(_0x50e147['endRow']+=_0x3b4313['getRows'](_0x29771f)-0x1,_0x50e147['endColumn']+=_0x3b4313['getColumns'](_0x29771f)-0x1),Ue(_0x33b110,_0x50e147,_0x3b4313);}(_0xaabd8e,_0x51d456,_0x319588['model'],_0x37f19c,_0x31fc29)&&(_0xfd92c0['stop'](),_0x3f1e2a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x319588['model']['change'](()=>{_0x319588['model']['insertContent'](_0x1a7175[0x0],_0x1a7175[0x1],_0x1a7175[0x2],{'forceDefaultExecution':!0x0});const _0x2f6109=_0x2a1324(),{rowInsertionRanges:_0x50cae5,columnInsertionRanges:_0x4829d3,insertionRanges:_0xeea2ab,deletionRanges:_0x30fcf2,cells:_0x4e1253}=_0x3f1e2a;_0x50cae5['length']&&_0x5d221b['markMultiRangeInsertion'](_0x50cae5,'tablePasteRow',{'tablePasteChainId':_0x2f6109}),_0x4829d3['length']&&_0x5d221b['markMultiRangeInsertion'](_0x4829d3,'tablePasteColumn',{'tablePasteChainId':_0x2f6109}),_0xeea2ab['length']&&(_0x5d221b['markMultiRangeInsertion'](_0xeea2ab,'tablePaste',{'tablePasteChainId':_0x2f6109,'skipNestingCheck':!0x0}),_0xeea2ab['forEach'](_0x34a7d1=>_0x34a7d1['detach']?.())),_0x30fcf2['length']&&(_0x5d221b['markMultiRangeDeletion'](_0x30fcf2,'tablePaste',{'tablePasteChainId':_0x2f6109,'skipNestingCheck':!0x0}),_0x30fcf2['forEach'](_0x34bca9=>_0x34bca9['detach']?.()));const _0x3bdc6b=_0x5d221b['markMultiRangeBlockFormat'](_0x4e1253['map'](({element:_0x3b9a1f})=>_0x3b9a1f),{'formatGroupId':_0x2a1324()},[],'tablePasteCell',{'tablePasteChainId':_0x2f6109});if(_0x3bdc6b){const _0x1ed089=_0x3bdc6b['getMarkers'](),_0x4a246f=[];for(const {element:_0x263b5f,attributes:_0x1734aa}of _0x4e1253){if(!_0x1734aa)continue;const _0xe7786b=_0x319588['model']['createRangeOn'](_0x263b5f),_0x480403=_0x1ed089['find'](_0x49b4ee=>_0x49b4ee['getRange']()['isEqual'](_0xe7786b));_0x480403&&_0x4a246f['push']([_0x480403['name'],_0x1734aa]);}_0x4a246f['length']&&_0x3bdc6b['setAttribute']('markerAttributes',Object['fromEntries'](_0x4a246f));}_0x3f1e2a=null;}));},{'priority':_0x39b461['high']+0xa}),_0x3f73d9['on']('contentInsertion',()=>{_0x537745=!0x1;},{'priority':'lowest'}),_0x319588['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x282064,_0x31cc1d)=>{const [_0x2571a3,_0x4d75ec,,_0x1990be]=_0x31cc1d;if(!_0x3f1e2a)return;_0x282064['stop']();const _0x25f6e6=_0x2571a3['cell'],_0x1c21e3=_0x4d75ec,_0x400d6e=Oe(_0x25f6e6),_0x4810bc=Oe(_0x1c21e3);_0x282064['return']=_0x25f6e6;let _0x3c7b87=null,_0x33ce31=null;if(_0x4810bc||_0x400d6e){if(_0x400d6e&&!_0x4810bc){_0x1990be['remove'](_0x25f6e6['getChild'](0x0));for(const _0x31c952 of Array['from'](_0x1c21e3['getChildren']()))_0x1990be['insert'](_0x31c952,_0x25f6e6,'end');const _0x38f2b5=_0x3f1e2a['rowInsertionIndexes']['includes'](_0x2571a3['row']),_0x27e21b=_0x3f1e2a['columnInsertionIndexes']['includes'](_0x2571a3['column']);_0x38f2b5||_0x27e21b||(_0x3c7b87=_0xc2a6f1['fromRange'](_0x1990be['createRangeIn'](_0x25f6e6)));}else _0x4810bc&&!_0x400d6e&&(_0x33ce31=_0x1990be['createRangeIn'](_0x25f6e6));}else{const _0x2ff5ca=_0x1990be['createElement']('tableCellSuggestion'),_0xd1e908=_0x1990be['createElement']('tableCellSuggestion');_0x1990be['wrap'](_0x1990be['createRangeIn'](_0x25f6e6),_0xd1e908),_0x1990be['insert'](_0x2ff5ca,_0x25f6e6,0x0);for(const _0xa1c92d of Array['from'](_0x1c21e3['getChildren']()))_0x1990be['insert'](_0xa1c92d,_0x2ff5ca,'end');_0x3c7b87=_0xc2a6f1['fromRange'](_0x1990be['createRangeOn'](_0x2ff5ca)),_0x33ce31=_0xc2a6f1['fromRange'](_0x1990be['createRangeOn'](_0xd1e908));}const _0x1553a0=Array['from'](_0x1c21e3['getAttributes']())['filter'](([_0x2e4d7b])=>Be['includes'](_0x2e4d7b));_0x3f1e2a['cells']['push']({'element':_0x25f6e6,'attributes':_0x1553a0['length']?Object['fromEntries'](_0x1553a0):null}),_0x3c7b87&&_0x3f1e2a['insertionRanges']['push'](_0x3c7b87),_0x33ce31&&_0x3f1e2a['deletionRanges']['push'](_0x33ce31);},{'priority':'high'}),_0x37f19c['on']('insertColumns',(_0x29ff98,_0x4dba1f)=>{const [_0xae4e98,_0x21bc58={}]=_0x4dba1f;if(!_0x3f1e2a)return;const _0x11ba0f=_0x21bc58['at']||0x0,_0x359693=_0x21bc58['columns']||0x1;_0x3f1e2a['columnInsertionIndexes']=new Array(_0x359693)['fill'](_0x11ba0f)['map']((_0x2f05b1,_0x2afb6e)=>_0x2f05b1+_0x2afb6e);for(const {cell:_0x3f5b20}of _0x37f19c['createTableWalker'](_0xae4e98,{'startColumn':_0x11ba0f,'endColumn':_0x11ba0f+_0x359693-0x1}))_0x3f1e2a['columnInsertionRanges']['push'](_0x319588['model']['createRangeOn'](_0x3f5b20));},{'priority':'low'}),_0x37f19c['on']('insertRows',(_0x37bbeb,_0x8744a2)=>{const [_0x1b7667,_0x11e195={}]=_0x8744a2;if(!_0x3f1e2a)return;const _0x1332fc=_0x11e195['at']||0x0,_0x4c0ac3=_0x11e195['rows']||0x1;_0x3f1e2a['rowInsertionIndexes']=new Array(_0x4c0ac3)['fill'](_0x1332fc)['map']((_0x358653,_0x14defc)=>_0x358653+_0x14defc);for(const {cell:_0x1c60a8}of _0x37f19c['createTableWalker'](_0x1b7667,{'startRow':_0x1332fc,'endRow':_0x1332fc+_0x4c0ac3-0x1}))_0x3f1e2a['rowInsertionRanges']['push'](_0x319588['model']['createRangeOn'](_0x1c60a8));},{'priority':'low'}),_0x5d221b['descriptionFactory']['registerDescriptionCallback'](_0x3eb305=>{if(_0x3eb305['subType']&&_0x3eb305['subType']['startsWith']('tablePaste'))return _0x3eb305['previous']?{}:{'type':'insertion','content':o(_0x319588['locale'],'*Replace\x20table\x20cells*')};});const _0x132543=()=>!0x1;for(const _0x7eb5f2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5d221b['_suggestionFactory']['registerCustomCallback']('insertion',_0x7eb5f2,'join',_0x132543),_0x5d221b['_suggestionFactory']['registerCustomCallback']('deletion',_0x7eb5f2,'join',_0x132543),_0x5d221b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x7eb5f2,'join',_0x132543);_0x5d221b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x132543),_0x5d221b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x51094f,_0xae82f3,_0x7b5aa8)=>{const _0x484dab=_0x51094f['map'](_0x47309c=>_0x47309c['getContainedElement']())['filter'](_0x142689=>_0x142689),_0x1838a3=new Map(_0x484dab['map'](_0x3d023a=>[_0x3d023a,null]));if(_0x3f1e2a){for(const {element:_0x31bf44,attributes:_0x1da2fe}of _0x3f1e2a['cells'])_0x1da2fe&&_0x1838a3['set'](_0x31bf44,_0x1da2fe);}else{if(_0x7b5aa8&&_0x7b5aa8['markerAttributes'])for(const [_0x124b2e,_0x32b0bc]of Object['entries'](_0x7b5aa8['markerAttributes'])){const _0x58f229=_0x319588['model']['markers']['get'](_0x124b2e),_0x1bd75c=_0x58f229?_0x58f229['getRange']()['getContainedElement']():null;_0x1bd75c&&_0x1838a3['set'](_0x1bd75c,_0x32b0bc);}}_0x319588['model']['change'](_0x10be37=>{for(const [_0x559b2f,_0x2caa48]of _0x1838a3)_0x10be37['setAttributes']({...xe,..._0x2caa48},_0x559b2f);});});const _0x29b275=(_0x57ae71,_0x49d671)=>{_0x5d221b['_suggestionFactory']['registerCustomCallback'](_0x57ae71,'tablePaste',_0x49d671,(_0x1ab3d6,_0x45cab0,_0x1cf5f8)=>{_0x319588['model']['change'](_0x32e46a=>{const _0x590ffe=[];for(const _0x5227be of _0x1ab3d6){const _0x4b73d6=_0x5227be['start']['nodeAfter'];_0x4b73d6['is']('element','tableCellSuggestion')&&_0x590ffe['push'](_0x4b73d6);}_0x5d221b['_suggestionFactory']['getSuggestionCallback'](_0x57ae71,null,_0x49d671)(_0x1ab3d6,_0x45cab0,_0x1cf5f8);for(const _0x5e2e0e of _0x590ffe)'$graveyard'!=_0x5e2e0e['root']['rootName']&&_0x32e46a['unwrap'](_0x5e2e0e);});});};_0x29b275('insertion','accept'),_0x29b275('insertion','discard'),_0x29b275('deletion','accept'),_0x29b275('deletion','discard'),_0x5d221b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xbb6535=>{const _0x3786e2=_0xbb6535['map'](_0x418d48=>_0x418d48['getContainedElement']()),_0x1d5a4e=_0x3786e2[0x0]['findAncestor']('table'),{minRow:_0x253e37,maxRow:_0x544e21}=_0x2af0ea['_getCoordsForCells'](_0x3786e2);_0x37f19c['removeRows'](_0x1d5a4e,{'at':_0x253e37,'rows':_0x544e21-_0x253e37+0x1});}),_0x5d221b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x374232=>{const _0x14a039=_0x374232['map'](_0x4c9fe1=>_0x4c9fe1['getContainedElement']()),_0x323068=_0x14a039[0x0]['findAncestor']('table'),{minColumn:_0x51e015,maxColumn:_0x5051a2}=_0x2af0ea['_getCoordsForCells'](_0x14a039);_0x37f19c['removeColumns'](_0x323068,{'at':_0x51e015,'columns':_0x5051a2-_0x51e015+0x1});});const _0xe73224=(_0x2d00e7,_0x2ec822)=>{if(!_0x2ec822['subType']||!_0x2ec822['subType']['startsWith']('tablePaste'))return;const _0x49e089=_0x2ec822['attributes']['tablePasteChainId'],_0x5de632=_0x5d221b['getSuggestions']()['filter'](_0x3b48e4=>_0x3b48e4['isInContent']&&_0x3b48e4['attributes']&&_0x3b48e4['attributes']['tablePasteChainId']==_0x49e089);_0x5de632['length']&&_0x2ec822['getAllAdjacentSuggestions']()['length']!=_0x5de632['length']&&_0x5de632['reduce']((_0x255253,_0x53a9cf)=>(_0x255253['next']=_0x53a9cf,_0x53a9cf['previous']=_0x255253,_0x53a9cf));};function _0x14825a(_0x383a04,_0x193d3=!0x0){const {id:_0x4c7842,authorId:_0x5bdfdb}=_0x5d221b['_splitMarkerName'](_0x383a04['markerName']),_0x525be6=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x13956f=_0x5d221b['activeMarkers']['includes'](_0x383a04['markerName']);return _0x13956f&&_0x525be6['push']('ck-suggestion-marker--active'),{'classes':_0x525be6,'attributes':{'data-suggestion':_0x4c7842,'data-author-id':_0x5bdfdb},'priority':_0x13956f&&_0x193d3?0xbc2:0xbb8};}_0x5d221b['on']('suggestionLoaded',_0xe73224,{'priority':'high'}),_0x5d221b['on']('suggestionUnloaded',_0xe73224,{'priority':'high'}),_0x319588['model']['document']['registerPostFixer'](()=>{let _0x5bb2a9=!0x1;const _0x47c26f=Array['from'](_0x319588['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21914f,data:_0x15a9e3}of _0x47c26f){const {group:_0x567a8c,type:_0x135fbf,id:_0x476746}=_0x5d221b['_splitMarkerName'](_0x21914f);if('suggestion'!=_0x567a8c||'deletion'!=_0x135fbf||_0x15a9e3['oldRange'])continue;if(!_0x5d221b['hasSuggestion'](_0x476746))continue;const _0x37da12=_0x5d221b['getSuggestion'](_0x476746)['getRanges'](),_0x3ccc86=_0x319588['plugins']['get']('Users')['me'];for(const _0x2c6e14 of _0x5d221b['getSuggestions']()){if(!_0x2c6e14['isInContent']||_0x2c6e14['author']!=_0x3ccc86)continue;if('formatBlock'!=_0x2c6e14['type']||'tablePasteCell'!=_0x2c6e14['subType'])continue;if(_0x2c6e14['getRanges']()['every'](_0xb32981=>_0x37da12['some'](_0x3dda0d=>_0x3dda0d['containsRange'](_0xb32981,!0x0)))){for(const _0x30117c of _0x2c6e14['getAllAdjacentSuggestions']())_0x30117c['isInContent']&&(_0x30117c['discard'](),_0x5bb2a9=!0x0);}}}return _0x5bb2a9;}),_0x319588['model']['document']['registerPostFixer'](_0x1bcf2e=>{const _0x2965f2=_0x319588['commands']['get']('redo');if(!_0x2965f2||!_0x2965f2['_createdBatches']['has'](_0x1bcf2e['batch']))return!0x1;let _0x3e6d9e=!0x1;const _0x441dd1=_0x319588['plugins']['get']('Users')['me'],_0x37d862=_0x319588['model']['document']['differ']['getChanges'](),_0x4cd28=Array['from'](_0x319588['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3b391a,data:_0xeeae1f})=>{const {group:_0x5e89c4,subType:_0x283a48,authorId:_0x411f72}=_0x5d221b['_splitMarkerName'](_0x3b391a);return'suggestion'==_0x5e89c4&&'tablePaste'==_0x283a48&&_0x411f72==_0x441dd1['id']&&!_0xeeae1f['oldRange'];});for(const _0x55ca1d of _0x37d862){if('insert'!=_0x55ca1d['type']||'tableCellSuggestion'!=_0x55ca1d['name']||0x1!=_0x55ca1d['length'])continue;const _0xc2821=_0x1bcf2e['createRange'](_0x55ca1d['position'],_0x55ca1d['position']['getShiftedBy'](0x1));if(!_0x4cd28['find'](({data:_0x28ae78})=>_0x28ae78['newRange']['isEqual'](_0xc2821))){for(const {name:_0x1a89fe,data:_0xf63121}of _0x4cd28)if(_0xc2821['containsRange'](_0xf63121['newRange'])){_0x1bcf2e['updateMarker'](_0x1a89fe,{'range':_0xc2821}),_0x3e6d9e=!0x0;break;}}}return _0x3e6d9e;}),_0x319588['model']['document']['registerPostFixer'](_0x2d17cf=>{let _0x3887b3=!0x1;const _0x16f1b0=_0x319588['plugins']['get']('Users')['me'],_0x472f6f=_0x5d221b['getSuggestions']()['filter'](_0x42a8ed=>_0x42a8ed['isInContent']&&_0x42a8ed['author']==_0x16f1b0),_0x171538=new Set(),_0x4fe0f0=new Set();for(const _0x2e37cd of _0x472f6f)if('tablePaste'==_0x2e37cd['subType'])for(const _0x5e3458 of _0x2e37cd['getMarkers']()){const _0x434cbc=_0x5e3458['getRange']()['getContainedElement']();if(_0x434cbc){if(_0x434cbc['is']('element','tableCellSuggestion')&&Oe(_0x434cbc)){_0x2e37cd['removeMarker'](_0x5e3458['name']),_0x171538['add'](_0x434cbc),_0x3887b3=!0x0;const _0xa986dd=_0x434cbc['nextSibling'],_0x2b8cfc=_0x434cbc['previousSibling'],_0x16eb8d=_0xa986dd&&_0xa986dd['is']('element','tableCellSuggestion'),_0x303f74=_0x2b8cfc&&_0x2b8cfc['is']('element','tableCellSuggestion');_0x16eb8d&&!_0x171538['has'](_0xa986dd)&&_0x4fe0f0['add'](_0xa986dd),_0x303f74&&!_0x171538['has'](_0x2b8cfc)&&_0x4fe0f0['add'](_0x2b8cfc);}else _0x434cbc['is']('element','paragraph')&&_0x434cbc['isEmpty']&&(_0x2e37cd['removeMarker'](_0x5e3458['name']),_0x3887b3=!0x0);}}else{if('tablePasteCell'==_0x2e37cd['subType']){if(!_0x2e37cd['attributes']||!_0x2e37cd['attributes']['tablePasteChainId'])continue;const _0x3befcf=_0x2e37cd['attributes']['markerAttributes'];if(_0x3befcf&&Object['keys'](_0x3befcf)['length'])continue;const _0x279497=_0x2e37cd['attributes']['tablePasteChainId'];let _0x7b30fc=!0x0,_0x23ba0e=!0x0;for(const _0x25f430 of _0x472f6f)if(_0x25f430['subType']&&_0x25f430['subType']['startsWith']('tablePaste')){if(!_0x25f430['attributes']['tablePasteChainId']){_0x23ba0e=!0x1;break;}if(_0x25f430['id']!=_0x2e37cd['id']&&_0x25f430['attributes']['tablePasteChainId']==_0x279497){_0x7b30fc=!0x1;break;}}_0x23ba0e&&_0x7b30fc&&(_0x2e37cd['removeMarkers'](),_0x3887b3=!0x0);}}for(const _0x5f373f of _0x171538)_0x2d17cf['remove'](_0x5f373f);for(const _0x35c05d of _0x4fe0f0)_0x2d17cf['unwrap'](_0x35c05d);return _0x3887b3;}),_0x319588['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3ce8aa=>_0x14825a(_0x3ce8aa),'converterPriority':'high'}),_0x319588['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xea46c4,_0x17bfa9)=>_0x17bfa9['options']['showSuggestionHighlights']?_0x14825a(_0xea46c4,!0x1):null,'converterPriority':'high'});const _0x148386=_0x319588['editing']['view'];this['listenTo'](_0x148386['document'],'clipboardOutput',(_0x2143ee,_0xcd38c6)=>{const _0x3f4291=[];for(const _0x1a9be2 of _0x148386['createRangeIn'](_0xcd38c6['content'])['getItems']())_0x1a9be2['is']('element','suggestion-td')&&_0x3f4291['push'](_0x1a9be2);_0x148386['change'](_0x267af3=>{for(const _0x540544 of _0x3f4291)_0x267af3['move'](_0x267af3['createRangeIn'](_0x540544),_0x267af3['createPositionBefore'](_0x540544)),_0x267af3['remove'](_0x540544);});});}}function Oe(_0x5a10b2){if(_0x5a10b2['isEmpty'])return!0x0;const _0x426a54=_0x5a10b2['getChild'](0x0);return _0x426a54['is']('element','paragraph')&&_0x426a54['isEmpty'];}function Ue(_0x43d4d3,_0x346026={},_0x55bd73){for(const {isAnchor:_0x59e845,cellHeight:_0x419c3e,cellWidth:_0x4e68a5}of _0x55bd73['createTableWalker'](_0x43d4d3,{'includeAllSlots':!0x0,..._0x346026}))if(!_0x59e845||0x1!=_0x419c3e||0x1!=_0x4e68a5)return!0x1;return!0x0;}class Dt extends _0x3d208b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x196e38=this['editor']['plugins']['get']('TrackChangesEditing');_0x196e38['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x196e38['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x196e38['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x196e38['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x196e38['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x196e38['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3667b2,_0x58dbd0){const _0x3b09c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7dd239=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4ab673=_0x58dbd0['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x338275=_0x7dd239['getColumnGroupElement'](_0x4ab673);let _0x33b4e1=_0x338275?_0x7dd239['getTableColumnsWidths'](_0x338275):null,_0x28c150=_0x4ab673['getAttribute']('tableWidth')||null;const _0x3c688d=_0x58dbd0['tableWidth']||_0x28c150,_0x20a4d5=_0x58dbd0['columnWidths']||_0x33b4e1,_0x143161=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d7d2e of _0x3b09c6['getSuggestions']()){const _0x1858d6=_0x4d7d2e['getContainedElement']();if('resizeTable'===_0x4d7d2e['subType']&&_0x1858d6===_0x4ab673){_0x4d7d2e['author']!==_0x143161&&_0x4d7d2e['discard']();const _0xc96a0c=_0x4d7d2e['data']['commandParams'];_0x28c150=_0xc96a0c[0x0]['tableWidth'],_0x33b4e1=_0xc96a0c[0x0]['columnWidths'];break;}}_0x3667b2({'table':_0x4ab673,'tableWidth':_0x3c688d,'columnWidths':_0x20a4d5}),_0x3b09c6['markBlockFormat'](_0x4ab673,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x28c150,'columnWidths':_0x33b4e1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x46c905){if('formatBlock'!=_0x46c905['type']&&'formatInline'!=_0x46c905['type'])return;const {data:_0x55feed}=_0x46c905;if(_0x55feed&&'resizeTable'===_0x55feed['formatGroupId']){const _0x16804a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x16804a)};}}}class $t extends _0x3d208b{['afterInit'](){const _0x3685a7=this['editor'];_0x3685a7['plugins']['has']('Template')&&_0x3685a7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3d208b{['afterInit'](){const _0x15be45=this['editor'];if(!_0x15be45['commands']['get']('insertTableOfContents'))return;_0x15be45['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x20f5e7=_0x15be45['plugins']['get']('TrackChangesEditing'),_0x4c8901=_0x15be45['locale'];_0x20f5e7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x570439=>o(_0x4c8901,'ELEMENT_TABLE_OF_CONTENTS',_0x570439));}}class Bt extends _0x3d208b{['afterInit'](){const _0x884bfa=this['editor'];if(!_0x884bfa['plugins']['has']('Title'))return;const _0x27a90f=_0x884bfa['plugins']['get']('TrackChangesEditing');_0x27a90f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x884bfa['locale'],'ELEMENT_TITLE')),_0x884bfa['model']['document']['registerPostFixer'](_0x3c5b3c=>{let _0x3b284d=!0x1;const _0x239b33=Array['from'](_0x884bfa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1387ee,data:_0x16c0cc}of _0x239b33){const {group:_0x5cbfc6}=_0x27a90f['_splitMarkerName'](_0x1387ee);if('suggestion'!==_0x5cbfc6||!_0x16c0cc['newRange'])continue;const _0x294029=_0x16c0cc['newRange'],_0x1538f6=_0x294029['end']['nodeBefore'];if(!_0x1538f6||!_0x1538f6['is']('element','title-content'))continue;if(!_0x294029['start']['isTouching'](_0x294029['end']))continue;const _0x460303=_0x884bfa['model']['schema']['getNearestSelectionRange'](_0x294029['end'],'forward');if(_0x460303&&_0x460303['isCollapsed']){const _0x4b1758=_0x3c5b3c['createRange'](_0x294029['start'],_0x460303['start']);_0x4b1758['isEqual'](_0x294029)||(_0x3c5b3c['updateMarker'](_0x1387ee,{'range':_0x4b1758}),_0x3b284d=!0x0);}_0x3b284d||(_0x3c5b3c['removeMarker'](_0x1387ee),_0x3b284d=!0x0);}return _0x3b284d;});}}class Tt extends _0x3d208b{['afterInit'](){const _0x21f9e1=this['editor'],_0x127328=_0x21f9e1['plugins']['get']('TrackChangesEditing');_0x21f9e1['plugins']['has']('Uploadcare')&&(_0x127328['enableCommand']('uploadcare'),_0x21f9e1['plugins']['has']('UploadcareImageEdit')&&(_0x127328['enableCommand']('uploadcareImageEdit'),_0x127328['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x127328['registerBlockAttribute']('uploadcareImageId'),_0x127328['descriptionFactory']['registerDescriptionCallback'](_0xd55fc3=>{if('attribute'!=_0xd55fc3['type'])return;const {data:_0x564bd5}=_0xd55fc3;return _0x564bd5&&'uploadcareImageId'==_0x564bd5['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x3d208b{['afterInit'](){const _0x3eaa20=this['editor'],_0xc2724d=_0x3eaa20['plugins']['get']('TrackChangesEditing');_0x3eaa20['plugins']['has']('UndoEditing')&&(_0xc2724d['enableCommand']('undo'),_0xc2724d['enableCommand']('redo'));}}class Ot extends _0x3d208b{static get['requires'](){return[At];}['afterInit'](){const _0x2f1ff5=this['editor'];if(!_0x2f1ff5['plugins']['has']('TableCaptionEditing'))return;_0x2f1ff5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x3d208b{['tableProperties'];['tableCellProperties'];constructor(_0x341405){super(_0x341405),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 _0x15c393=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x28b160 of this['tableProperties'])_0x15c393['enableCommand'](_0x28b160,(_0x54c2ea,_0x1f1ac7)=>{const _0x4e609f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x28b160,[_0x4e609f],this['tableProperties'],'tableProperties',_0x54c2ea,_0x1f1ac7);});_0x15c393['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x15c393['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15c393['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x52db4b,_0x18c0e1)=>this['handleDiscardAction'](this['tableProperties'],_0x52db4b,_0x18c0e1)),_0x15c393['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x14a567 of this['tableCellProperties'])_0x15c393['enableCommand'](_0x14a567,(_0x33130a,_0x3c6a1b)=>{const _0xfc01de=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x14a567,_0xfc01de,this['tableCellProperties'],'tableCellProperties',_0x33130a,_0x3c6a1b);});_0x15c393['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x15c393['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15c393['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x43b592,_0x4bdbd1)=>this['handleDiscardAction'](this['tableCellProperties'],_0x43b592,_0x4bdbd1)),_0x15c393['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x15c393['descriptionFactory']['registerDescriptionCallback'](_0x2f512b=>this['handleSuggestionDescription'](_0x2f512b)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2abd6,_0x482004,_0x250017,_0x5f1648,_0x19c614,_0x56b641){const _0x223d09=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x56b641['batch'],()=>{for(const _0x3368da of _0x482004){if(this['_getSuggestion'](_0x3368da,_0x5f1648))_0x19c614(_0x56b641);else{const _0x4d2a3b={};for(const _0x201566 of _0x250017){const _0x3cc4dd=_0x3368da['getAttribute'](_0x201566);void 0x0!==_0x3cc4dd&&(_0x4d2a3b[_0x201566]=_0x3cc4dd);}_0x19c614(_0x56b641),_0x223d09['markBlockFormat'](_0x3368da,{'commandParams':[_0x4d2a3b]},[],_0x5f1648);}}});}['handleDiscardAction'](_0x2e4eff,_0x78fb54,_0x1d5ce7){const _0xdc1770=_0x78fb54[0x0]['start']['nodeAfter'],_0x48f1c5=_0x1d5ce7['commandParams'][0x0];this['editor']['model']['change'](_0x2481a5=>{for(const _0x397838 of _0x2e4eff)void 0x0!==_0x48f1c5[_0x397838]?_0x2481a5['setAttribute'](_0x397838,_0x48f1c5[_0x397838],_0xdc1770):_0x2481a5['removeAttribute'](_0x397838,_0xdc1770);});}['handleSuggestionDescription'](_0xe4c261){if(_0xe4c261['data'])switch(_0xe4c261['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x23ac34,_0x3878cc){const _0x5b7775=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1507b9 of _0x5b7775['getSuggestions']({'skipNotAttached':!0x0})){const _0xc40e06=_0x1507b9['getContainedElement']();if(_0x1507b9['subType']===_0x3878cc&&_0xc40e06===_0x23ac34)return _0x1507b9;}return null;}['_registerTablePropertiesAttributes'](){const _0x39b08c=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc99bf7=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2e3dc2 of _0xc99bf7){const _0x55ecf9=_0x2e3dc2['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x39b08c['registerBlockAttribute'](_0x2e3dc2),_0x39b08c['descriptionFactory']['registerAttributeLabel'](_0x2e3dc2,o(this['editor']['locale'],'FORMAT_'+_0x55ecf9));}}}class Rt extends _0x3d208b{['afterInit'](){const _0x12d4aa=this['editor'];if(!_0x12d4aa['plugins']['has']('LineHeight'))return;const _0x2835b7=_0x12d4aa['plugins']['get']('TrackChangesEditing'),_0xaa617d=_0x12d4aa['locale'];_0x2835b7['enableDefaultAttributesIntegration']('lineHeight'),_0x2835b7['registerBlockAttribute']('lineHeight'),_0x2835b7['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xaa617d,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x3d208b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x4335da,_0x5a06fd,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f2f82){super(_0x1f2f82),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4a8821,_0xbe6b1c,_0x59322d,_0x3cf4c4)=>{this['_model']['change'](()=>{for(const _0x180749 of[..._0x3cf4c4,..._0x59322d])this['_model']['markers']['has'](_0x180749)&&_0x1f2f82['editing']['reconvertMarker'](_0x180749);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1f2f82['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x1f2f82['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1f2f82['config']['get']('trackChanges.trackFormatChanges'),_0x1f2f82['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1f2f82['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x1f2f82,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5c0c9f=this['editor'],_0x12489f=(_0x48a74c,_0x345a46)=>{if('attribute'!=_0x48a74c)return'ck-suggestion-marker-'+_0x48a74c;const _0x4bf0e2=_0x345a46['split']('|')[0x0];return this['_isBlockAttribute'](_0x4bf0e2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5c0c9f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x248c65=>{const {id:_0x5b3fff,authorId:_0x237a33,type:_0x13f0db,subType:_0xf29538}=this['_splitMarkerName'](_0x248c65['markerName']),_0x40bac7=['ck-suggestion-marker',_0x12489f(_0x13f0db,_0xf29538)];let _0x377c05=0xbb8;return this['activeMarkers']['includes'](_0x248c65['markerName'])&&(_0x40bac7['push']('ck-suggestion-marker--active'),_0x377c05=0xbc2),'deletion'==_0x13f0db&&(_0x377c05+=0x5),{'classes':_0x40bac7,'attributes':{'data-suggestion':_0x5b3fff,'data-author-id':_0x237a33},'priority':_0x377c05};}}),_0x5c0c9f['conversion']['for']('dataDowncast')['add'](_0x39e69c=>{_0x39e69c['on']('addMarker:suggestion',(_0x56e2f5,_0xaf1b7b,_0x4a2d8c)=>{if(!_0x4a2d8c['options']['showSuggestionHighlights'])return;const _0xbd3c31=_0xaf1b7b['item'];if(!_0xbd3c31)return;const _0x5afacc=_0x4a2d8c['mapper']['toViewElement'](_0xbd3c31);_0x5c0c9f['model']['schema']['isObject'](_0xbd3c31)&&_0x5afacc&&!_0x5afacc['getCustomProperty']('widget')&&_0x5afacc['is']('containerElement')&&_0x4c4449(_0x5afacc,_0x4a2d8c['writer']);},{'priority':'high'});}),_0x5c0c9f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3be7b6,_0x357e89)=>{if(!_0x357e89['options']['showSuggestionHighlights'])return null;const {id:_0x1ba691,authorId:_0x414e75,type:_0x567323,subType:_0x49f37a}=this['_splitMarkerName'](_0x3be7b6['markerName']);return{'classes':['ck-suggestion-marker',_0x12489f(_0x567323,_0x49f37a)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1ba691,'data-author-id':_0x414e75}};}});const _0x255ba3=({showActiveMarkers:_0x39b583=!0x0,isAttributeSuggestion:_0x5cadb5=!0x1}={})=>(_0x4c475e,_0x81e48a,_0x2c2e8b)=>{if(!_0x81e48a['item'])return;const {id:_0x20041e,authorId:_0x39f117}=this['_splitMarkerName'](_0x81e48a['markerName']);if(_0x5cadb5){const _0x8af9e5=this['_suggestions']['get'](_0x20041e),_0xf85682=this['_getAttributeKey'](_0x8af9e5);if(!this['_isBlockAttribute'](_0xf85682))return;}if(_0x81e48a['item']['is']('selection'))return void _0x2c2e8b['consumable']['consume'](_0x81e48a['item'],_0x4c475e['name']);const _0x5ab9a1=_0x2c2e8b['mapper']['toViewElement'](_0x81e48a['item']);if(_0x81e48a['item']['is']('element')&&_0x5c0c9f['model']['schema']['isBlock'](_0x81e48a['item'])&&!_0x5ab9a1['getCustomProperty']('addHighlight')){_0x2c2e8b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5ab9a1),_0x2c2e8b['writer']['setAttribute']('data-suggestion',_0x20041e,_0x5ab9a1),_0x2c2e8b['writer']['setAttribute']('data-author-id',_0x39f117,_0x5ab9a1),_0x2c2e8b['mapper']['bindElementToMarker'](_0x5ab9a1,_0x81e48a['markerName']),_0x39b583&&(this['activeMarkers']['includes'](_0x81e48a['markerName'])?_0x2c2e8b['writer']['addClass']('ck-suggestion-marker--active',_0x5ab9a1):_0x2c2e8b['writer']['removeClass']('ck-suggestion-marker--active',_0x5ab9a1));for(const _0x3680f9 of _0x5c0c9f['model']['createRangeIn'](_0x81e48a['item'])['getItems']())_0x2c2e8b['consumable']['consume'](_0x3680f9,_0x4c475e['name']);_0x2c2e8b['consumable']['consume'](_0x81e48a['item'],_0x4c475e['name']);}};_0x5c0c9f['conversion']['for']('dataDowncast')['add'](_0x99f47a=>{_0x99f47a['on']('addMarker:suggestion:formatBlock',(_0x490329,_0x230eb4,_0x5955b7)=>{_0x5955b7['options']['showSuggestionHighlights']&&_0x255ba3({'showActiveMarkers':!0x1})(_0x490329,_0x230eb4,_0x5955b7);},{'priority':'highest'});}),_0x5c0c9f['conversion']['for']('dataDowncast')['add'](_0x17a0e8=>{_0x17a0e8['on']('addMarker:suggestion:attribute',(_0xce307a,_0x286545,_0x25ea21)=>{_0x25ea21['options']['showSuggestionHighlights']&&_0x255ba3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xce307a,_0x286545,_0x25ea21);},{'priority':'highest'});}),_0x5c0c9f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x52f4a0,_0x6b9f31)=>{if(_0x6b9f31['options']['showSuggestionHighlights']){const {id:_0x4fa26f,authorId:_0x977813}=this['_splitMarkerName'](_0x52f4a0);return _0x52f4a0['includes'](':split')||_0x52f4a0['includes'](':merge')?{'group':'suggestion','name':_0x52f4a0['substr'](0xb),'attributes':{'data-suggestion':_0x4fa26f,'data-author-id':_0x977813}}:null;}return{'group':'suggestion','name':_0x52f4a0['substr'](0xb)};}}),_0x5c0c9f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x17d1d4,{writer:_0x26b7af})=>{let _0x1d204c='suggestion:'+_0x17d1d4['getAttribute']('suggestion-type')+':'+_0x17d1d4['getAttribute']('id');return _0x17d1d4['getAttribute']('marker-count')&&(_0x1d204c+=':'+_0x17d1d4['getAttribute']('marker-count')),_0x26b7af['createElement']('$marker',{'data-name':_0x1d204c});}}),_0x5c0c9f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5c0c9f['conversion']['for']('editingDowncast')['add'](_0x4a4801=>{_0x4a4801['on']('addMarker:suggestion:formatBlock',_0x255ba3(),{'priority':'high'});}),_0x5c0c9f['conversion']['for']('editingDowncast')['add'](_0x44a302=>{_0x44a302['on']('addMarker:suggestion:attribute',_0x255ba3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5c0c9f['conversion']['for']('editingDowncast')['add'](_0x3158d8=>{_0x3158d8['on']('removeMarker:suggestion:formatBlock',(_0x112fd1,_0x5e9095,_0x1d4ae4)=>{const _0x16d300=_0x1d4ae4['mapper']['markerNameToElements'](_0x5e9095['markerName']);if(_0x16d300){for(const _0xe36020 of _0x16d300)_0xe36020['getCustomProperty']('addHighlight')||(_0x1d4ae4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xe36020),_0x1d4ae4['writer']['removeAttribute']('data-suggestion',_0xe36020),_0x1d4ae4['writer']['removeAttribute']('data-author-id',_0xe36020),_0x1d4ae4['mapper']['unbindElementFromMarkerName'](_0xe36020,_0x5e9095['markerName']));}},{'priority':'high'});}),_0x5c0c9f['conversion']['for']('editingDowncast')['add'](_0xc72ece=>{_0xc72ece['on']('removeMarker:suggestion:attribute',(_0x520e03,_0x2209ff,_0x4490b5)=>{const _0x52bfd3=_0x4490b5['mapper']['markerNameToElements'](_0x2209ff['markerName']);if(!_0x52bfd3)return;const {id:_0x5dbf95}=this['_splitMarkerName'](_0x2209ff['markerName']),_0x373625=this['_suggestions']['get'](_0x5dbf95),_0x43306c=this['_getAttributeKey'](_0x373625);if(this['_isBlockAttribute'](_0x43306c)){for(const _0x424a30 of _0x52bfd3)_0x424a30['getCustomProperty']('addHighlight')||(_0x4490b5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x424a30),_0x4490b5['writer']['removeAttribute']('data-suggestion',_0x424a30),_0x4490b5['writer']['removeAttribute']('data-author-id',_0x424a30),_0x4490b5['mapper']['unbindElementFromMarkerName'](_0x424a30,_0x2209ff['markerName']));}},{'priority':'high'});}),_0x5c0c9f['model']['document']['registerPostFixer'](_0x5e4f7a=>{let _0x469bfb=!0x1;const _0x71c82e=Array['from'](_0x5c0c9f['model']['document']['differ']['getChangedMarkers']()),_0x47f862=new Set();for(const {name:_0x541af8,data:_0x3cc0ef}of _0x71c82e){const {group:_0x471d9d,type:_0x36faad,subType:_0x32be3d,id:_0x7513b7}=this['_splitMarkerName'](_0x541af8);if('suggestion'!==_0x471d9d)continue;const _0x1c05c2=_0x32be3d?'suggestion:'+_0x36faad+':'+_0x32be3d+':'+_0x7513b7:'suggestion:'+_0x36faad+':'+_0x7513b7,_0x2b071b=_0x5c0c9f['model']['markers']['getMarkersGroup'](_0x1c05c2),_0x39c8dc=_0x5c0c9f['model']['markers']['get'](_0x541af8),_0x3d0e2e=this['_suggestions']['get'](_0x7513b7);if(null!=_0x3cc0ef['newRange']){'formatInline'==_0x36faad&&(_0x469bfb=_0x469bfb||Gt(_0x3cc0ef['newRange'],_0x541af8,_0x5e4f7a,_0x5c0c9f['model']['schema']));const _0x1c1a43='attribute'==_0x36faad&&this['_isBlockAttribute'](_0x32be3d['split']('|')[0x0]),_0x4e62dc='attribute'==_0x36faad&&this['_isInlineAttribute'](_0x32be3d['split']('|')[0x0]);if(_0x3cc0ef['newRange']['isCollapsed']||'$graveyard'==_0x3cc0ef['newRange']['root']['rootName']||'formatBlock'==_0x36faad&&!Jt(_0x3cc0ef['newRange'])||_0x1c1a43&&!Jt(_0x3cc0ef['newRange'])||_0x4e62dc&&Kt(_0x3cc0ef['newRange'])||'deletion'==_0x36faad&&Kt(_0x3cc0ef['newRange'])||_0x39c8dc&&Ht(_0x39c8dc,_0x2b071b))_0x5e4f7a['removeMarker'](_0x541af8),_0x469bfb=!0x0;else{if(!_0x3d0e2e||!_0x3d0e2e['isInContent'])continue;if(_0x3cc0ef['newRange']&&_0x3cc0ef['oldRange']&&_0x3cc0ef['newRange']['isEqual'](_0x3cc0ef['oldRange']))continue;_0x47f862['add'](_0x3d0e2e);}}}return _0x47f862['size']>0x0&&(_0x469bfb=!!this['_joinWithAdjacentSuggestions'](_0x47f862)||_0x469bfb),_0x469bfb;}),_0x5c0c9f['model']['document']['registerPostFixer'](_0x1c0074=>{let _0x10e12e=!0x1;for(const _0x11ae90 of _0x5c0c9f['model']['document']['differ']['getChanges']())if('insert'==_0x11ae90['type'])for(const _0xcc3954 of this['_suggestions']['values']()){if(_0xcc3954['isMultiRange']||!_0xcc3954['isInContent'])continue;const _0xd7836e='formatBlock'==_0xcc3954['type'],_0x47f4ce=this['_getAttributeKey'](_0xcc3954),_0x4f0a0b=_0x47f4ce&&this['_isBlockAttribute'](_0x47f4ce);if(!_0xd7836e&&!_0x4f0a0b)continue;const _0x41d7ff=_0xcc3954['getFirstRange']();if(_0x41d7ff['start']['parent']!=_0x41d7ff['end']['parent']&&!_0x41d7ff['end']['isAtEnd']){const _0xd2eb9=_0x5c0c9f['model']['createPositionAt'](_0x41d7ff['start']['nodeAfter'],'end'),_0xf5a4e5=_0x5c0c9f['model']['createRange'](_0x41d7ff['start'],_0xd2eb9);_0x1c0074['updateMarker'](_0xcc3954['getFirstMarker'](),{'range':_0xf5a4e5}),_0x10e12e=!0x0;}}return _0x10e12e;}),_0x5c0c9f['model']['document']['registerPostFixer'](_0x32d2bd=>this['_processAttributeChanges'](_0x32d2bd)),_0x5c0c9f['model']['document']['registerPostFixer'](_0x3433ef=>!_0x3433ef['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3433ef)),_0x5c0c9f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5c0c9f['model']['document']['on']('change:data',(_0x448707,_0x382d23)=>{if(!_0x382d23['isLocal']||_0x382d23['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x48b530=_0x5c0c9f['model']['document']['differ']['getChanges']();if(0x0==_0x48b530['length'])return;const _0x2d71a0=[],_0x33d37c=_0x48b530['filter'](_0x525283=>'attribute'==_0x525283['type']),_0x4b3797=_0x48b530['filter'](_0x15376a=>'insert'==_0x15376a['type']&&'$text'!=_0x15376a['name']);for(const _0x1ecbb1 of _0x33d37c)this['_isRegisteredAttribute'](_0x1ecbb1['attributeKey'])&&_0x2d71a0['push']({'key':_0x1ecbb1['attributeKey'],'newValue':_0x1ecbb1['attributeNewValue'],'oldValue':_0x1ecbb1['attributeOldValue'],'range':qt(_0x1ecbb1['range'],_0x5c0c9f['model'])});for(const _0x1e1444 of _0x4b3797){if('rename'!=_0x1e1444['action']&&'refresh'!=_0x1e1444['action'])continue;const _0x44c56d=zt(_0x1e1444['position']['nodeAfter'],_0x5c0c9f['model']),_0x5add14=_0x1e1444['before'];'rename'==_0x1e1444['action']&&_0x2d71a0['push']({'key':m,'newValue':_0x1e1444['name'],'oldValue':_0x5add14['name'],'range':_0x44c56d});for(const [_0x431981,_0x2b9ed4]of _0x5add14['attributes']){if(!this['_isRegisteredAttribute'](_0x431981))continue;const _0x1a5a06=_0x1e1444['attributes']['get'](_0x431981);_0x2b9ed4!==_0x1a5a06&&_0x2d71a0['push']({'key':_0x431981,'newValue':_0x1a5a06,'oldValue':_0x2b9ed4,'range':_0x44c56d});}for(const [_0x28c01e,_0x59ac19]of _0x1e1444['attributes'])this['_isRegisteredAttribute'](_0x28c01e)&&(_0x5add14['attributes']['has'](_0x28c01e)||_0x2d71a0['push']({'key':_0x28c01e,'newValue':_0x59ac19,'oldValue':null,'range':_0x44c56d}));}0x0!=_0x2d71a0['length']&&_0x5c0c9f['model']['enqueueChange'](_0x382d23,_0x252b3c=>{const _0x1ce998=_0x2a1324();for(const {range:_0x2acf0d,key:_0x19d9bf,oldValue:_0x44cb98,newValue:_0x162170}of _0x2d71a0)this['markAttributeChange'](_0x2acf0d,_0x19d9bf,_0x44cb98,_0x162170,{'groupId':_0x1ce998});this['_reduceExistingSuggestions'](_0x252b3c,_0x2d71a0);});},{'priority':'lowest'}),_0x5c0c9f['model']['markers']['on']('update:suggestion',(_0x5870b1,_0x2e848a,_0x52585f)=>{if(null==_0x52585f){const {id:_0x34b4cb}=this['_splitMarkerName'](_0x2e848a['name']),_0x58513f=this['_suggestions']['get'](_0x34b4cb);_0x58513f&&_0x58513f['addMarkerName'](_0x2e848a['name']);}}),_0x5c0c9f['model']['document']['on']('change:data',()=>{const _0x2f560c=Array['from'](_0x5c0c9f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x25d2c2=>'suggestion'===this['_splitMarkerName'](_0x25d2c2['name'])['group']);if(0x0===_0x2f560c['length'])return;_0x2f560c['sort']((_0xbb6a57,_0x1b433d)=>{const _0x227fbf=_0xbb6a57['data']['oldRange'],_0x30089e=_0x1b433d['data']['oldRange'];return null===_0x227fbf&&null===_0x30089e?0x0:null===_0x227fbf&&null!==_0x30089e?-0x1:null!==_0x227fbf&&null===_0x30089e?0x1:_0x227fbf['start']['isBefore'](_0x30089e['start'])?-0x1:0x1;});const _0x15dcfd=new Set(),_0x7a95b3=new Set();for(const {name:_0xb276e0,data:_0x3aed08}of _0x2f560c){const {id:_0x1af8f1}=this['_splitMarkerName'](_0xb276e0);if(null===_0x3aed08['oldRange']){const _0x407897=this['_handleNewSuggestionMarker'](_0xb276e0);_0x7a95b3['add'](_0x407897);}else{const _0x2a1688=this['_suggestions']['get'](_0x1af8f1);null!==_0x3aed08['newRange']||_0x2a1688['isInContent']?(_0x15dcfd['add'](_0x2a1688['head']),_0x7a95b3['add'](_0x2a1688)):this['_removeSuggestion'](_0x2a1688);}}_0x7a95b3['size']>0x0&&this['_refreshSuggestionsChain'](_0x7a95b3);for(const _0x44eb34 of _0x15dcfd)this['fire']('suggestionChanged',_0x44eb34);}),_0x5c0c9f['model']['on']('applyOperation',(_0x117f66,_0x3c1642)=>{const _0x18217d=_0x3c1642[0x0];if(!this['_suggestions']['size'])return;if(!_0x18217d['isDocumentOperation'])return;if(_0x18217d['batch']['isUndo']||!_0x18217d['batch']['isLocal'])return;let _0x40829f,_0x4389c6;switch(_0x18217d['type']){case'insert':_0x40829f=_0x5c0c9f['model']['createPositionAt'](_0x18217d['position']),_0x4389c6=_0x40829f['getShiftedBy'](_0x18217d['howMany']);break;case'split':_0x40829f=_0x5c0c9f['model']['createPositionAt'](_0x18217d['splitPosition']),_0x4389c6=_0x5c0c9f['model']['createPositionAt'](_0x18217d['moveTargetPosition']);break;case'move':_0x40829f=_0x5c0c9f['model']['createPositionAt'](_0x18217d['targetPosition']),_0x4389c6=_0x40829f['getShiftedBy'](_0x18217d['howMany']);break;default:return;}const _0x33d834=_0x5c0c9f['model']['createRange'](_0x40829f,_0x4389c6);_0x5c0c9f['model']['change'](()=>{for(const {suggestion:_0x208f67,meta:_0x4b2b05}of this['_findSuggestions'](_0x33d834)){if(_0x208f67['isMultiRange'])continue;if('formatInline'==_0x208f67['type'])continue;const _0x14ec28=this['_getAttributeKey'](_0x208f67);if(_0x14ec28&&this['_isBlockAttribute'](_0x14ec28)&&'split'!=_0x18217d['type'])continue;const _0x18da73=_0x208f67['data']&&_0x208f67['data']['multipleBlocks'];('formatBlock'!=_0x208f67['type']||'split'==_0x18217d['type']&&!_0x18da73)&&(_0x4b2b05['containsRangeInObject']||'insertion'==_0x208f67['type']&&_0x4b2b05['isOwn']||_0x208f67['getFirstRange']()['containsRange'](_0x33d834)&&this['_breakSuggestionMarker'](_0x208f67,_0x40829f,_0x4389c6));}});},{'priority':'lowest'}),_0x5c0c9f['model']['on']('deleteContent',(_0x5c27eb,_0xd601a8)=>{const _0x34b9e0=_0xd601a8[0x0],_0x4cee6b=_0xd601a8[0x1];if(_0x4cee6b&&_0x4cee6b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x34b9e0['isCollapsed'])return;const _0x3546ba=_0x5c0c9f['model']['schema'],{start:_0x597001,end:_0x5231c4}=_0x34b9e0['getFirstRange'](),_0x528906=_0x597001['nodeAfter']&&_0x3546ba['isLimit'](_0x597001['nodeAfter'])?null:_0x3546ba['getNearestSelectionRange'](_0x597001,'forward'),_0x42fd2b=_0x5231c4['nodeBefore']&&_0x3546ba['isLimit'](_0x5231c4['nodeBefore'])?null:_0x3546ba['getNearestSelectionRange'](_0x5231c4,'backward'),_0x39d07f=_0x5c0c9f['model']['createRange'](_0x528906?_0x528906['start']:_0x597001,_0x42fd2b?_0x42fd2b['end']:_0x5231c4);_0x5c0c9f['model']['change'](_0x195c3f=>{this['markDeletion'](_0x39d07f);const _0x20fc87=_0x5c0c9f['model']['schema']['getNearestSelectionRange'](_0x39d07f['start']);_0x34b9e0['is']('documentSelection')?_0x195c3f['setSelection'](_0x20fc87):_0x34b9e0['setTo'](_0x20fc87);}),_0x5c27eb['stop']();},{'priority':_0x39b461['normal']+0xa}),_0x5c0c9f['model']['on']('insertContent',(_0x55c9ad,_0x276dfe)=>{const _0x25af01=_0x276dfe[_0x276dfe['length']-0x1];_0x25af01&&_0x25af01['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5c0c9f['model']['change'](()=>{let _0x13ea96=_0x5c0c9f['model']['insertContent'](_0x276dfe[0x0],_0x276dfe[0x1],_0x276dfe[0x2],{'forceDefaultExecution':!0x0});if(!_0x13ea96)return;_0x55c9ad['return']=_0x13ea96['clone']();const _0x9892e3=_0x13ea96['end']['nodeBefore'],_0x53311b=_0x5c0c9f['model']['schema'];_0x9892e3&&_0x53311b['isBlock'](_0x9892e3)&&!_0x53311b['isObject'](_0x9892e3)&&(_0x13ea96=_0x5c0c9f['model']['createRange'](_0x13ea96['start'],_0x5c0c9f['model']['createPositionAt'](_0x9892e3,'end'))),this['markInsertion'](_0x13ea96);}),_0x55c9ad['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x322cae=new D(_0x5c0c9f,this['_suggestions']);_0x5c0c9f['commands']['add']('acceptSuggestion',_0x322cae),this['enableCommand']('acceptSuggestion');const _0x5bfbd8=new $(_0x5c0c9f,this['_suggestions']);_0x5c0c9f['commands']['add']('discardSuggestion',_0x5bfbd8),this['enableCommand']('discardSuggestion'),_0x5c0c9f['commands']['add']('acceptAllSuggestions',new M(_0x5c0c9f,_0x322cae,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5c0c9f['commands']['add']('discardAllSuggestions',new M(_0x5c0c9f,_0x5bfbd8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5c0c9f['commands']['add']('acceptSelectedSuggestions',new B(_0x5c0c9f,_0x322cae,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5c0c9f['commands']['add']('discardSelectedSuggestions',new B(_0x5c0c9f,_0x5bfbd8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1d2d9b=_0x5c0c9f['plugins']['get']('CommentsRepository');this['listenTo'](_0x1d2d9b,'addComment',(_0x46486f,{threadId:_0x4e8e28})=>{const _0x41a6c3=this['_suggestions']['get'](_0x4e8e28);_0x41a6c3&&_0x41a6c3['commentThread']&&0x1===_0x41a6c3['commentThread']['length']&&this['_updateSuggestionData'](_0x4e8e28,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1d2d9b,'removeComment',(_0xda765,{threadId:_0x3d866c})=>{const _0x3cc2f3=this['_suggestions']['get'](_0x3d866c);_0x3cc2f3&&_0x3cc2f3['commentThread']&&!_0x3cc2f3['commentThread']['length']&&this['_updateSuggestionData'](_0x3d866c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x53b181){const _0x4b7ef2=_0x426320([0x39,0x66,0x37,0x34,0x44,0x4c,0x64,0x74,0x67,0x35,0x4d,0x30,0x63,0x77,0x4b,0x6d,0x61,0x48,0x76,0x4a,0x70,0x68,0x78,0x33,0x36,0x45,0x62,0x65,0x6b,0x6c,0x59,0x79,0x5a,0x57,0x6f,0x73,0x6a,0x69,0x55,0x49,0x31,0x72,0x51,0x54,0x46,0x4f,0x4e,0x6e,0x32,0x58,0x56,0x53,0x47,0x41,0x42,0x71,0x43,0x75,0x52,0x50,0x7a,0x38]),_0x3fc0a3=0x256311d8,_0x3868ff=0x25647ef8^_0x3fc0a3,_0x37b7fc=window[_0x426320([0x44,0x61,0x74,0x65])][_0x426320([0x6e,0x6f,0x77])](),_0x199fca=_0x53b181[_0x426320([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x27cde7=new window[(_0x426320([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14c608=>{_0x199fca[_0x426320([0x6f,0x6e,0x63,0x65])](_0x426320([0x72,0x65,0x61,0x64,0x79]),_0x14c608);}),_0xffe884={[_0x426320([0x6b,0x74,0x79])]:_0x426320([0x45,0x43]),[_0x426320([0x75,0x73,0x65])]:_0x426320([0x73,0x69,0x67]),[_0x426320([0x63,0x72,0x76])]:_0x426320([0x50,0x2d,0x32,0x35,0x36]),[_0x426320([0x78])]:_0x426320([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]),[_0x426320([0x79])]:_0x426320([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]),[_0x426320([0x61,0x6c,0x67])]:_0x426320([0x45,0x53,0x32,0x35,0x36])},_0x2f266d=_0x199fca[_0x426320([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x426320([0x67,0x65,0x74])](_0x426320([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x20632b(){let _0x407276,_0x3e87e9=null,_0x5e299e=null;try{if(_0x2f266d==_0x426320([0x47,0x50,0x4c]))return _0x426320([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x407276=_0x525dc3(),!_0x407276)return _0x426320([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x407276[_0x426320([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e299e=_0x2e9fbe(_0x407276[_0x426320([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x407276[_0x426320([0x6a,0x74,0x69])])),await _0x190762()?_0x51f329()?_0x43dfd0()?_0x426320([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3ca087()?(_0x407276[_0x426320([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x426320([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e87e9=_0x886071(_0x426320([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x407276[_0x426320([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x426320([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e87e9=_0x886071(_0x426320([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1abc61()):_0x426320([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x426320([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x426320([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x426320([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43dfd0(){const _0x4ae453=[_0x426320([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x426320([0x74,0x72,0x69,0x61,0x6c])][_0x426320([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x407276[_0x426320([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x37b7fc/0x3e8:0xe10*_0x3868ff;return _0x407276[_0x426320([0x65,0x78,0x70])]<_0x4ae453;}function _0x51f329(){const _0x3f17e6=_0x407276[_0x426320([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3f17e6)return!0x1;if(_0x3f17e6[_0x426320([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x426320([0x2a])))return!0x0;if(_0x3f17e6[_0x426320([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x426320([0x54,0x43])))return!0x0;if(_0x3f17e6[_0x426320([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x426320([0x52,0x54,0x43]))){if(_0x120ab1())return!0x0;if(_0x34af5b()||_0x5b817a())return!0x0;}return!0x1;}function _0x3ca087(){const _0x3db44d=_0x407276[_0x426320([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3db44d||0x0==_0x3db44d[_0x426320([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x12fdf4}=new URL(window[_0x426320([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3db44d[_0x426320([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12fdf4))return!0x0;const _0x11eb59=_0x12fdf4[_0x426320([0x73,0x70,0x6c,0x69,0x74])](_0x426320([0x2e]));return _0x3db44d[_0x426320([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x393969=>_0x393969[_0x426320([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x426320([0x2a])))[_0x426320([0x6d,0x61,0x70])](_0x5d5c34=>_0x5d5c34[_0x426320([0x73,0x70,0x6c,0x69,0x74])](_0x426320([0x2e])))[_0x426320([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x278fd1=>_0x278fd1[_0x426320([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x11eb59[_0x426320([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x426320([0x6d,0x61,0x70])](_0x9a6c19=>Array(_0x11eb59[_0x426320([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x9a6c19[_0x426320([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x426320([0x66,0x69,0x6c,0x6c])](_0x9a6c19[0x0]===_0x426320([0x2a])?_0x426320([0x2a]):'')[_0x426320([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x9a6c19))[_0x426320([0x73,0x6f,0x6d,0x65])](_0x224ff5=>_0x11eb59[_0x426320([0x65,0x76,0x65,0x72,0x79])]((_0x44d9e9,_0x27556a)=>_0x224ff5[_0x27556a]===_0x44d9e9||_0x224ff5[_0x27556a]===_0x426320([0x2a])));}function _0x1abc61(){return _0x3e87e9&&_0x5e299e?new window[(_0x426320([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd47628,_0x49e894)=>{_0x3e87e9[_0x426320([0x74,0x68,0x65,0x6e])](_0xd47628,_0x49e894),_0x5e299e[_0x426320([0x74,0x68,0x65,0x6e])](_0x1e5f04=>{_0x1e5f04!=_0x426320([0x56,0x61,0x6c,0x69,0x64])&&_0xd47628(_0x1e5f04);},_0x49e894);}):_0x3e87e9||_0x5e299e||_0x426320([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e9fbe(_0x509e61,_0x42f2a9){return new window[(_0x426320([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x238eec=>{if(_0x59823b())return _0x238eec(_0x426320([0x56,0x61,0x6c,0x69,0x64]));_0x39deac(),_0x199fca[_0x426320([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x426320([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2561b0=!0x1;const _0x5eb383=_0x2a1324();function _0x234116(_0x5f0b24){return!!_0x5f0b24&&(typeof _0x5f0b24===_0x426320([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f0b24===_0x426320([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f0b24[_0x426320([0x74,0x68,0x65,0x6e])]===_0x426320([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f0b24[_0x426320([0x63,0x61,0x74,0x63,0x68])]===_0x426320([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4eaf5e(_0x2e232d){_0x374c28(_0x2e232d)[_0x426320([0x74,0x68,0x65,0x6e])](_0x1fd9da=>{if(!_0x1fd9da||_0x1fd9da[_0x426320([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x426320([0x6f,0x6b]))return _0x426320([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b7189(_0x55fc89(_0x5eb383+_0x42f2a9))!=_0x1fd9da[_0x426320([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x426320([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x426320([0x56,0x61,0x6c,0x69,0x64]);})[_0x426320([0x74,0x68,0x65,0x6e])](_0x4bd167=>(_0x1d1bec(),_0x4bd167),()=>{const _0x329883=_0x4db46b();return null==_0x329883?(_0x1d1bec(),_0x426320([0x56,0x61,0x6c,0x69,0x64])):_0x426320(_0x37b7fc-_0x329883>(0x16f95d8^_0x3fc0a3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x426320([0x74,0x68,0x65,0x6e])](_0x238eec)[_0x426320([0x63,0x61,0x74,0x63,0x68])](()=>{_0x238eec(_0x426320([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x68e82=0x2555ff58^_0x3fc0a3;function _0x1d1bec(){const _0x35f1fd=_0x426320([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b7189(_0x55fc89(_0x509e61)),_0x400107=_0x5961d6(_0x3b7189(window[_0x426320([0x4d,0x61,0x74,0x68])][_0x426320([0x63,0x65,0x69,0x6c])](_0x37b7fc/_0x68e82)));window[_0x426320([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x426320([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35f1fd,_0x400107);}function _0x4db46b(){const _0x54da6e=_0x426320([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b7189(_0x55fc89(_0x509e61)),_0x168c9f=window[_0x426320([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x426320([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54da6e);return _0x168c9f?window[_0x426320([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5961d6(_0x168c9f),0x10)*_0x68e82:null;}function _0x374c28(_0x2ed0b1){return new window[(_0x426320([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c2e50,_0x5d09a4)=>{_0x2ed0b1[_0x426320([0x74,0x68,0x65,0x6e])](_0x4c2e50,_0x5d09a4),window[_0x426320([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d09a4,0x2562c518^_0x3fc0a3);});}}_0x199fca[_0x426320([0x6f,0x6e])](_0x426320([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57f24d,_0x5a89f5)=>{if(_0x5a89f5[0x0]!=_0x509e61)return _0x238eec(_0x426320([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a89f5[0x1]={..._0x5a89f5[0x1],[_0x426320([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5eb383};},{[_0x426320([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x426320([0x68,0x69,0x67,0x68])}),_0x199fca[_0x426320([0x6f,0x6e])](_0x426320([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x462111=>{_0x234116(_0x462111[_0x426320([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2561b0=!0x0,_0x4eaf5e(_0x462111[_0x426320([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x426320([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x426320([0x6c,0x6f,0x77])}),_0x27cde7[_0x426320([0x74,0x68,0x65,0x6e])](()=>{_0x2561b0||_0x238eec(_0x426320([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59823b(){return _0x199fca[_0x426320([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x426320([0x76,0x69,0x65,0x77])][_0x426320([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x426320([0x61,0x75,0x74,0x6f]);}function _0x39deac(){_0x199fca[_0x426320([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x426320([0x76,0x69,0x65,0x77])][_0x426320([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x426320([0x61,0x75,0x74,0x6f]);}}function _0x886071(_0x3232b5){const _0xcff72a=[new window[(_0x426320([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21b70e=>setTimeout(_0x21b70e,0x256a2f14^_0x3fc0a3)),_0x27cde7[_0x426320([0x74,0x68,0x65,0x6e])](()=>new window[(_0x426320([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d8fe4=>{let _0x57cbc2=0x0;_0x199fca[_0x426320([0x6d,0x6f,0x64,0x65,0x6c])][_0x426320([0x6f,0x6e])](_0x426320([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x12abb8,_0x499814)=>{_0x499814[0x0][_0x426320([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x57cbc2++,_0x57cbc2==(0x25631020^_0x3fc0a3)&&(_0x5d8fe4(),_0x12abb8[_0x426320([0x6f,0x66,0x66])]());});}))];return window[_0x426320([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x426320([0x72,0x61,0x63,0x65])](_0xcff72a)[_0x426320([0x74,0x68,0x65,0x6e])](()=>_0x3232b5);}async function _0x3d6f71(){await _0x27cde7,_0x199fca[_0x426320([0x6d,0x6f,0x64,0x65,0x6c])][_0x426320([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58ba12,_0x199fca[_0x426320([0x6d,0x6f,0x64,0x65,0x6c])][_0x426320([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58ba12,_0x199fca[_0x426320([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x426320([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x120ab1(){return _0x4c8ee3(_0x426320([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x45ac51(_0x426320([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x426320([0x73,0x74,0x61,0x74,0x65])]==_0x426320([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x34af5b(){return _0x4c8ee3(_0x426320([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 _0x5b817a(){return _0x4c8ee3(_0x426320([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x39e40a(_0x1df5a9){const _0x5c131e=_0x1090d6();_0x199fca[_0x5c131e]=_0x426320([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1df5a9,_0x1df5a9!=_0x426320([0x56,0x61,0x6c,0x69,0x64])&&_0x3d6f71();}function _0x1090d6(){const _0x5eccf2=window[_0x426320([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x426320([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x426320([0x6e,0x6f,0x77])]())[_0x426320([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x426320([0x2e]),'');let _0x4c4ac4=_0x426320([0x66]);for(let _0x41e217=0x0;_0x41e217<_0x5eccf2[_0x426320([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41e217+=0x2){let _0x210327=window[_0x426320([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5eccf2[_0x426320([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41e217,_0x41e217+0x2));_0x210327>=_0x4b7ef2[_0x426320([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x210327-=_0x4b7ef2[_0x426320([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c4ac4+=_0x4b7ef2[_0x210327];}return _0x4c4ac4;}function _0x525dc3(){const _0x24a1c4=_0x2f266d[_0x426320([0x73,0x70,0x6c,0x69,0x74])](_0x426320([0x2e]));if(0x3!=_0x24a1c4[_0x426320([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a610a(_0x24a1c4[0x1]);function _0x3a610a(_0x1da5f8){const _0x2feb91=_0xd3a7fd(_0x1da5f8);return _0x2feb91&&_0x1dd6ee()?_0x2feb91:null;function _0x1dd6ee(){const _0x25dda4=_0x2feb91[_0x426320([0x6a,0x74,0x69])],_0x4f761b=window[_0x426320([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25dda4[_0x426320([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25dda4[_0x426320([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16fd8d={..._0x2feb91,[_0x426320([0x6a,0x74,0x69])]:_0x25dda4[_0x426320([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25dda4[_0x426320([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16fd8d[_0x426320([0x76,0x63])],_0x55fc89(_0x16fd8d)==_0x4f761b;}}}async function _0x190762(){let _0x288353=!0x0;try{const _0x28552a=_0x2f266d[_0x426320([0x73,0x70,0x6c,0x69,0x74])](_0x426320([0x2e])),[_0x4e1404,_0x1f5587,_0x589526]=_0x28552a;return _0x514ce9(_0x4e1404),await _0x3dd9e2(_0x4e1404,_0x1f5587,_0x589526),_0x288353;}catch{return!0x1;}function _0x514ce9(_0x2b443e){const _0xee28b4=_0xd3a7fd(_0x2b443e);_0xee28b4&&_0xee28b4[_0x426320([0x61,0x6c,0x67])]==_0x426320([0x45,0x53,0x32,0x35,0x36])||(_0x288353=!0x1);}async function _0x3dd9e2(_0x702548,_0x3d11e2,_0x9e0098){const _0x2ef0be=window[_0x426320([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x426320([0x66,0x72,0x6f,0x6d])](_0x54613d(_0x9e0098),_0xad2ba3=>_0xad2ba3[_0x426320([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x323c16=new window[(_0x426320([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x426320([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x702548+_0x426320([0x2e])+_0x3d11e2),_0x145b93=window[_0x426320([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x426320([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x145b93)return;const _0x2e4747=await _0x145b93[_0x426320([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x426320([0x6a,0x77,0x6b]),_0xffe884,{[_0x426320([0x6e,0x61,0x6d,0x65])]:_0x426320([0x45,0x43,0x44,0x53,0x41]),[_0x426320([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x426320([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x426320([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x145b93[_0x426320([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x426320([0x6e,0x61,0x6d,0x65])]:_0x426320([0x45,0x43,0x44,0x53,0x41]),[_0x426320([0x68,0x61,0x73,0x68])]:{[_0x426320([0x6e,0x61,0x6d,0x65])]:_0x426320([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e4747,_0x2ef0be,_0x323c16)||(_0x288353=!0x1);}}function _0xd3a7fd(_0x1dbf4a){return _0x1dbf4a[_0x426320([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x426320([0x65,0x79]))?JSON[_0x426320([0x70,0x61,0x72,0x73,0x65])](_0x54613d(_0x1dbf4a)):null;}function _0x54613d(_0x3e13b5){return window[_0x426320([0x61,0x74,0x6f,0x62])](_0x3e13b5[_0x426320([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x426320([0x2b]))[_0x426320([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x426320([0x2f])));}function _0x55fc89(_0x5bc4f2){let _0x2d709b=0x1505;function _0x50ce29(_0x4fde85){for(let _0x2d7031=0x0;_0x2d7031<_0x4fde85[_0x426320([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d7031++){const _0x10a284=_0x4fde85[_0x426320([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d7031);_0x2d709b=(_0x2d709b<<0x5)+_0x2d709b+_0x10a284,_0x2d709b&=_0x2d709b;}}function _0x47f7b2(_0x34491a){Array[_0x426320([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34491a)?_0x34491a[_0x426320([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47f7b2):_0x34491a&&typeof _0x34491a==_0x426320([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x426320([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34491a)[_0x426320([0x73,0x6f,0x72,0x74])]()[_0x426320([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2525e6,_0x338c1a])=>{_0x50ce29(_0x2525e6),_0x47f7b2(_0x338c1a);}):_0x50ce29(window[_0x426320([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34491a));}return _0x47f7b2(_0x5bc4f2),_0x2d709b>>>0x0;}function _0x3b7189(_0x401f34){return _0x401f34[_0x426320([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x426320([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x426320([0x30]));}function _0x5961d6(_0x567f89){return _0x567f89[_0x426320([0x73,0x70,0x6c,0x69,0x74])]('')[_0x426320([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x426320([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c8ee3(_0x20f755){return _0x199fca[_0x426320([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x426320([0x68,0x61,0x73])](_0x20f755);}function _0x45ac51(_0x44f95c){return _0x199fca[_0x426320([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x426320([0x67,0x65,0x74])](_0x44f95c);}function _0x58ba12(){}function _0x426320(_0x24dffa){return _0x24dffa['map'](_0x2091fd=>String['fromCharCode'](_0x2091fd))['join']('');}_0x39e40a(await _0x20632b());}(this);}set['adapter'](_0x1d6bc5){if(this['_adapter'])throw new _0x7b7a91('track-changes-adapter-already-set',this);this['_adapter']=_0x1d6bc5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x107178=!0x1,toJSON:_0x51c5b1=!0x1}={}){const _0x406fd8=[];for(const _0x5a7a35 of this['_suggestions']['values']())_0x107178&&!_0x5a7a35['isInContent']||_0x406fd8['push'](_0x5a7a35);return _0x51c5b1?_0x406fd8['map'](_0x16c104=>_0x16c104['toJSON']()):_0x406fd8;}['getSuggestion'](_0x2de0ef){const _0x48d130=this['_suggestions']['get'](_0x2de0ef);if(!_0x48d130)throw new _0x7b7a91('track-changes-suggestion-not-found',this);return _0x48d130;}['hasSuggestion'](_0x4ded12){return this['_suggestions']['has'](_0x4ded12);}['addSuggestionData'](_0x11b5d7){const {authorId:_0x4db8eb,id:_0x19f7c8,originalSuggestionId:_0x15850d,attributes:_0x502193}=_0x11b5d7,[_0x1cee95,_0x20d4e3]=_0x11b5d7['type']['split'](':'),_0x26362d=this['_suggestions']['get'](_0x19f7c8)||this['_createSuggestion'](_0x1cee95,_0x20d4e3,_0x19f7c8,_0x4db8eb,_0x502193,_0x15850d);if(this['_addThreadToSuggestion'](_0x26362d),this['_checkSuggestionCorrectness'](_0x26362d,_0x1cee95,_0x20d4e3||null,_0x4db8eb),_0x26362d['createdAt']=_0x11b5d7['createdAt'],_0x26362d['_isDataLoaded']=!0x0,_0x502193&&_0x502193['@external']){const _0x384ebc=_0x502193['@external'],_0xaba26a=this['_getExternalAuthor'](_0x384ebc['authorName']);_0x26362d['authoredAt']=_0x384ebc['createdAt'],_0x26362d['author']=_0xaba26a,_0x26362d['isExternal']=!0x0;}else _0x26362d['authoredAt']=_0x11b5d7['createdAt'];switch(_0x11b5d7['data']&&(_0x26362d['data']=_0x11b5d7['data']),_0x11b5d7['attributes']&&(_0x26362d['attributes']=_0x11b5d7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x26362d['_saved']=!0x0),this['_suggestionState']['get'](_0x26362d)){case'notReady':this['_suggestionState']['set'](_0x26362d,'dataReady');break;case'markerReady':_0x26362d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x26362d])),this['_refreshSuggestionsChain'](new Set([_0x26362d])),this['_suggestionState']['set'](_0x26362d,'ready'),this['fire']('suggestionLoaded',_0x26362d)):this['_suggestionState']['set'](_0x26362d,'removed');}return _0x26362d;}['acceptSuggestion'](_0x42d28d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x475f34 of _0x42d28d['getAllAdjacentSuggestions']())_0x475f34['accept']();});});}['discardSuggestion'](_0x28b814){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x14599d of _0x28b814['getAllAdjacentSuggestions']())_0x14599d['discard']();});});}['enableCommand'](_0xbab99f,_0x1ac068){const _0x5307a8=this['editor']['commands']['get'](_0xbab99f);if(!_0x5307a8)throw new _0x7b7a91('track-changes-command-not-found',this,{'commandName':_0xbab99f});if(this['_enabledCommands']['has'](_0x5307a8))throw new _0x7b7a91('track-changes-enable-command-twice',this,{'commandName':_0xbab99f});this['_enabledCommands']['add'](_0x5307a8),_0x1ac068&&_0x5307a8['on']('execute',(_0x2796cf,_0x4f6c65)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4f6c65['length']>0x0&&_0x4f6c65[_0x4f6c65['length']-0x1]&&_0x4f6c65[_0x4f6c65['length']-0x1]['forceDefaultExecution']?_0x4f6c65['pop']():(_0x2796cf['return']=_0x1ac068((..._0xb21360)=>_0x5307a8['execute'](..._0xb21360,{'forceDefaultExecution':!0x0}),..._0x4f6c65),_0x2796cf['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2f823f){let _0x1c57d6,_0x119b3a;const _0x1c5660=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1c57d6=_0x2f823f();}catch(_0x2fbb58){_0x119b3a=_0x2fbb58;}return _0x1c5660||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x119b3a&&_0x7b7a91['rethrowUnexpectedError'](_0x119b3a,this),_0x1c57d6;}['markInsertion'](_0x2e80cd,_0x345691=null,_0x18b9a6={}){if(_0x2e80cd['isCollapsed'])return null;const _0x5b9275=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x18b9a6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x32c8e7,meta:_0x5418ca}of this['_findSuggestions'](_0x2e80cd,'insertion'))if(_0x5418ca['isOwn']){if(!_0x5418ca['isNextTo']){if(_0x5418ca['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x32c8e7,_0x18b9a6))continue;return _0x32c8e7;}if(Xt(_0x32c8e7,_0x18b9a6))return _0x32c8e7;this['_breakSuggestionMarker'](_0x32c8e7,_0x2e80cd['start'],_0x2e80cd['end']);break;}if(_0x345691==_0x32c8e7['subType']&&Xt(_0x32c8e7,_0x18b9a6)){const _0xb62ed1=_0x32c8e7['getFirstRange']();return _0xb62ed1['start']['isEqual'](_0x2e80cd['end'])?this['_setSuggestionRange'](_0x32c8e7,this['_model']['createRange'](_0x2e80cd['start'],_0xb62ed1['end'])):this['_setSuggestionRange'](_0x32c8e7,this['_model']['createRange'](_0xb62ed1['start'],_0x2e80cd['end'])),_0x32c8e7;}}const _0x516f4f=_0x2a1324(),_0x3d2459=_0x5b9275['id'],_0x488fcb=_0x345691?'insertion:'+_0x345691:'insertion',_0x2dcdbd=this['_setSuggestionData']({'id':_0x516f4f,'type':_0x488fcb,'createdAt':new Date(),'authorId':_0x3d2459,'attributes':_0x18b9a6});return this['_addSuggestionMarker'](_0x488fcb,_0x516f4f,_0x3d2459,_0x2e80cd),_0x2dcdbd;}['markMultiRangeInsertion'](_0x3da769,_0x23b2d3='multi',_0x185155={}){const _0x358310=this['editor']['plugins']['get']('Users')['me'],_0x1cd873=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x23b2d3,'join');this['_trackingSessionId']&&(_0x185155['trackingSessionId']=this['_trackingSessionId']);for(const _0x57fed2 of this['getSuggestions']())if(_0x57fed2['author']['id']==_0x358310['id']&&'insertion'==_0x57fed2['type']&&_0x57fed2['subType']==_0x23b2d3&&Xt(_0x57fed2,_0x185155)&&(_0x1cd873(_0x57fed2['getRanges'](),_0x3da769)||_0x1cd873(_0x3da769,_0x57fed2['getRanges']()))){for(const _0x14a0c1 of _0x3da769)_0x57fed2['addRange'](_0x14a0c1);return _0x57fed2;}for(const {suggestion:_0x22f740,meta:_0x5d4d71}of this['_findSuggestions'](_0x3da769,'insertion')){if(!_0x5d4d71['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5d4d71['containsRangeInObject'])continue;if(!Xt(_0x22f740,_0x185155))continue;let _0x401fe6=!0x0;for(const _0x2bef60 of _0x22f740['getRanges']())for(const _0x44bfb1 of _0x3da769)if(!_0x2bef60['containsRange'](_0x44bfb1)){_0x401fe6=!0x1;break;}if(_0x401fe6)return _0x22f740;}const _0xcf12d4=_0x2a1324(),_0xbc9870=_0x358310['id'],_0x210b9e='insertion:'+_0x23b2d3,_0x508525=this['_setSuggestionData']({'id':_0xcf12d4,'type':_0x210b9e,'createdAt':new Date(),'authorId':_0xbc9870,'attributes':_0x185155});for(const _0x429be0 of _0x3da769)this['_addSuggestionMarker'](_0x210b9e,_0xcf12d4,_0xbc9870,_0x429be0,T['getMultiRangeId']());return _0x508525;}['markInlineFormat'](_0x4ddb01,_0x5ad3af,_0x30651a=null,_0x37f672={}){if(_0x30651a=_0x30651a||Lt(_0x5ad3af),_0x4ddb01['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x37f672['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1c69bf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x30651a,'accept');return this['forceDefaultExecution'](()=>_0x1c69bf([_0x4ddb01],_0x5ad3af,_0x37f672)),null;}const _0x3f4e15=this['editor']['plugins']['get']('Users')['me'],_0x5bf3d3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x450505,meta:_0x108d18}of this['_findSuggestions'](_0x4ddb01,'insertion'))_0x108d18['isOwn']&&!_0x108d18['isInsideObject']&&_0x5bf3d3['push'](..._0x450505['getRanges']());}const _0x5abda4=function(_0x2f7ba3,_0x1f9520){const _0x3562e0=[];for(const _0x49f3ae of _0x1f9520){const _0x5d0c50=_0x2f7ba3['getIntersection'](_0x49f3ae);_0x5d0c50&&_0x3562e0['push'](_0x5d0c50);}return _0x3562e0;}(_0x4ddb01,_0x5bf3d3),_0x26fe1a=function(_0x3f60b7,_0x5dc115){const _0x1cd756=[_0x3f60b7];for(const _0x3de918 of _0x5dc115){let _0x31925f=0x0;for(;_0x31925f<_0x1cd756['length'];){const _0x4ea69e=_0x1cd756[_0x31925f]['getDifference'](_0x3de918);_0x1cd756['splice'](_0x31925f,0x1,..._0x4ea69e),_0x31925f+=_0x4ea69e['length'];}}return _0x1cd756;}(_0x4ddb01,_0x5bf3d3);_0x5abda4['length']&&this['_model']['change'](()=>{for(const _0x6d9273 of _0x5abda4){const _0x4fd637=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x30651a,'accept');this['forceDefaultExecution'](()=>_0x4fd637([_0x6d9273],_0x5ad3af,_0x37f672));}});for(const _0x5bc93c of _0x26fe1a){let _0x2e8c1e=null,_0x206013=_0x5bc93c['start'],_0x175125=_0x5bc93c['end'];for(const {suggestion:_0x37536e,meta:_0x4e4369}of this['_findSuggestions'](_0x5bc93c,'formatInline')){if(!_0x4e4369['isOwn'])continue;if(_0x37536e['subType']!=_0x30651a)continue;if(!Xt(_0x37536e,_0x37f672))continue;const _0x3af9a5=_0x37536e['getFirstRange']();if(_0x3af9a5['containsRange'](_0x5bc93c,!0x0))return null;_0x206013=_0x206013['isBefore'](_0x3af9a5['start'])?_0x206013:_0x3af9a5['start'],_0x175125=_0x175125['isAfter'](_0x3af9a5['end'])?_0x175125:_0x3af9a5['end'],_0x2e8c1e?_0x3af9a5['start']['isBefore'](_0x2e8c1e['getFirstRange']()['start'])?(_0x2e8c1e['removeMarkers'](),_0x2e8c1e=_0x37536e):_0x37536e['removeMarkers']():_0x2e8c1e=_0x37536e;}const _0x1ee4c0=this['_model']['createRange'](_0x206013,_0x175125);if(_0x2e8c1e)this['_setSuggestionRange'](_0x2e8c1e,_0x1ee4c0);else{const _0x22494d=_0x2a1324(),_0x1fb5bf=_0x3f4e15['id'];this['_setSuggestionData']({'id':_0x22494d,'type':'formatInline:'+_0x30651a,'data':_0x5ad3af,'createdAt':new Date(),'authorId':_0x1fb5bf,'attributes':_0x37f672}),this['_addSuggestionMarker']('formatInline:'+_0x30651a,_0x22494d,_0x1fb5bf,_0x1ee4c0);}}return null;}['markBlockFormat'](_0x19871b,_0x3c409b,_0x52e048=[],_0x39e5f4=null,_0x3a2d96={}){_0x3c409b['formatGroupId']||(_0x3c409b['formatGroupId']=_0x3c409b['commandName']),_0x3c409b['multipleBlocks']=_0x19871b['is']('range'),_0x39e5f4=_0x39e5f4||Lt(_0x3c409b);const _0x3962e0=_0x52e048['map'](_0x54c87=>zt(_0x54c87,this['_model'])),_0x1e181b=_0x19871b['is']('range')?_0x19871b:zt(_0x19871b,this['_model']);if(this['_trackingSessionId']&&(_0x3a2d96['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4a9058=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x39e5f4,'accept');return this['forceDefaultExecution'](()=>_0x4a9058([_0x1e181b],_0x3c409b,_0x3a2d96)),null;}_0x3962e0['push'](_0x1e181b);let _0x34460a=!0x0;for(const _0x240e8d of _0x3962e0)if(!this['_rangeIsInLocalUserInsertion'](_0x240e8d)){_0x34460a=!0x1;break;}if(_0x34460a&&'always'!==this['_trackFormatChanges']){const _0xdf0135=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x39e5f4,'accept');return this['forceDefaultExecution'](()=>_0xdf0135([_0x1e181b],_0x3c409b,_0x3a2d96)),null;}let _0x1c9533=null,_0x5388e1=_0x1e181b['start'],_0x5eb256=_0x1e181b['end'];for(const {suggestion:_0x3dc519,meta:_0x25573d}of this['_findSuggestions'](_0x1e181b,'formatBlock')){if(!_0x25573d['isOwn'])continue;if(_0x25573d['isNextTo']||_0x25573d['containsRangeInObject']||_0x25573d['isInsideObject'])continue;if(_0x3dc519['data']['formatGroupId']!=_0x3c409b['formatGroupId'])continue;if(!Xt(_0x3dc519,_0x3a2d96))continue;const _0x54119a=_0x3dc519['getFirstRange']();if(_0x3dc519['subType']==_0x39e5f4){if(_0x54119a['containsRange'](_0x1e181b,!0x0))return null;_0x5388e1=_0x5388e1['isBefore'](_0x54119a['start'])?_0x5388e1:_0x54119a['start'],_0x5eb256=_0x5eb256['isAfter'](_0x54119a['end'])?_0x5eb256:_0x54119a['end'],_0x1c9533?_0x54119a['start']['isBefore'](_0x1c9533['getFirstRange']()['start'])?(_0x1c9533['removeMarkers'](),_0x1c9533=_0x3dc519):_0x3dc519['removeMarkers']():_0x1c9533=_0x3dc519;}else{const _0x138af3=_0x1e181b['getIntersection'](_0x54119a);this['_cutOutSuggestionMarker'](_0x3dc519,_0x138af3);}}const _0xa371a4=this['editor']['plugins']['get']('Users')['me'],_0x2162cd=_0x2a1324(),_0x3b5044=_0xa371a4['id'];if(_0x1c9533)return this['_setSuggestionRange'](_0x1c9533,this['_model']['createRange'](_0x5388e1,_0x5eb256)),_0x1c9533;{const _0x5cc11b=this['_setSuggestionData']({'id':_0x2162cd,'type':'formatBlock:'+_0x39e5f4,'data':_0x3c409b,'createdAt':new Date(),'authorId':_0x3b5044,'attributes':_0x3a2d96});return this['_addSuggestionMarker']('formatBlock:'+_0x39e5f4,_0x2162cd,_0x3b5044,this['_model']['createRange'](_0x5388e1,_0x5eb256)),_0x5cc11b;}}['markMultiRangeBlockFormat'](_0x4b4cd7,_0x20d479,_0x3d3ce7=[],_0xd5211c=null,_0x3fb26e={}){_0x20d479['formatGroupId']||(_0x20d479['formatGroupId']=_0x20d479['commandName']);const _0x112af7=_0x4b4cd7[0x0];_0x20d479['multipleBlocks']=_0x112af7['is']('range'),_0xd5211c=_0xd5211c||Lt(_0x20d479);const _0x592f46=_0x3d3ce7['map'](_0x19f63b=>zt(_0x19f63b,this['_model'])),_0x523d0e=_0x112af7['is']('range')?_0x4b4cd7:_0x4b4cd7['map'](_0x3cd67a=>zt(_0x3cd67a,this['_model']));if(this['_trackingSessionId']&&(_0x3fb26e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x17b339=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd5211c,'accept');return this['forceDefaultExecution'](()=>_0x17b339(_0x523d0e,_0x20d479,_0x3fb26e)),null;}_0x592f46['push'](..._0x523d0e);let _0x1400e5=!0x0;for(const _0x2a1ea8 of _0x592f46)if(!this['_rangeIsInLocalUserInsertion'](_0x2a1ea8)){_0x1400e5=!0x1;break;}if(_0x1400e5&&'always'!==this['_trackFormatChanges']){const _0x174fba=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd5211c,'accept');return this['forceDefaultExecution'](()=>_0x174fba(_0x523d0e,_0x20d479,_0x3fb26e)),null;}const _0x3c06b4=this['editor']['plugins']['get']('Users')['me'];for(const _0x25cdeb of this['getSuggestions']()){const _0x23864f=_0x25cdeb['data'];if(_0x25cdeb['author']['id']!=_0x3c06b4['id'])continue;if('formatBlock'!=_0x25cdeb['type']||_0x23864f['formatGroupId']!=_0x20d479['formatGroupId'])continue;if(!Xt(_0x25cdeb,_0x3fb26e))continue;const _0x2daffc=_0x25cdeb['subType']==_0xd5211c;for(let _0x1fcb64=0x0;_0x1fcb64<_0x523d0e['length'];_0x1fcb64++){const _0x3e86fd=_0x523d0e[_0x1fcb64];for(const _0x145c40 of _0x25cdeb['getMarkers']()){const _0x4b16db=_0x145c40['getRange']();if(_0x3e86fd['isEqual'](_0x4b16db)){_0x2daffc?(_0x523d0e['splice'](_0x1fcb64,0x1),_0x1fcb64--):_0x25cdeb['removeMarker'](_0x145c40['name']);break;}}}}if(0x0==_0x523d0e['length'])return null;const _0x3c3732=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd5211c,'join');for(const _0x4d2b2a of this['getSuggestions']()){const _0x5c97bc=_0x4d2b2a['data'];if(_0x4d2b2a['author']['id']==_0x3c06b4['id']&&('formatBlock'==_0x4d2b2a['type']&&_0x5c97bc['formatGroupId']==_0x20d479['formatGroupId']&&_0x4d2b2a['subType']==_0xd5211c&&Xt(_0x4d2b2a,_0x3fb26e)&&(_0x3c3732(_0x4d2b2a['getRanges'](),_0x523d0e)||_0x3c3732(_0x523d0e,_0x4d2b2a['getRanges']())))){for(const _0x2e1c5f of _0x523d0e)_0x4d2b2a['addRange'](_0x2e1c5f);return _0x4d2b2a;}}const _0x3cf8e1=_0x2a1324(),_0x18c284=_0x3c06b4['id'],_0x151e84='formatBlock:'+_0xd5211c,_0x2d787a=this['_setSuggestionData']({'id':_0x3cf8e1,'type':_0x151e84,'data':_0x20d479,'createdAt':new Date(),'authorId':_0x18c284,'attributes':_0x3fb26e});for(const _0x126d63 of _0x523d0e)this['_addSuggestionMarker'](_0x151e84,_0x3cf8e1,_0x18c284,_0x126d63,T['getMultiRangeId']());return _0x2d787a;}['markDeletion'](_0x81c1c3,_0x430437=null,_0x1fddd6={}){if(_0x81c1c3['isCollapsed'])return null;const _0x2d5de8=this['editor']['plugins']['get']('Users')['me'],_0xd19ff9=new _0xc2a6f1(_0x81c1c3['start'],_0x81c1c3['end']);this['_trackingSessionId']&&(_0x1fddd6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2af844,meta:_0x52f028}of this['_findSuggestions'](_0xd19ff9,'insertion'))if(_0x52f028['isOwn']&&!_0x52f028['isNextTo']){if(_0x2af844['isMultiRange']){const _0x245ab7=_0x2af844['getRanges']()['filter'](_0x1cd782=>'$graveyard'!=_0x1cd782['root']['rootName']);_0x245ab7['every'](_0x2a1a90=>_0xd19ff9['containsRange'](_0x2a1a90,!0x0))&&_0x2af844['discard']();if(_0x245ab7['some'](_0x3416de=>_0x3416de['containsRange'](_0xd19ff9,!0x0))){const _0x2e0910=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x430437,'accept');return this['forceDefaultExecution'](()=>_0x2e0910([_0xd19ff9],null,_0x1fddd6)),null;}}else{const _0x400f07=_0xd19ff9['getIntersection'](_0x2af844['getFirstRange']());null!==_0x400f07&&_0x2af844['_onDiscard']([_0x400f07],null,_0x1fddd6);}}if(_0xd19ff9['detach'](),_0xd19ff9['isCollapsed']||'$graveyard'==_0xd19ff9['root']['rootName'])return null;let _0x2ea855=null,_0x32d158=_0xd19ff9['start'],_0x4dcc87=_0xd19ff9['end'];const _0x1dd0e8=this['_findSuggestions'](_0xd19ff9,'deletion');for(const {suggestion:_0x1d9d56,meta:_0x1e4095}of _0x1dd0e8){const _0x46144d=this['_model']['createRange'](_0x32d158,_0x4dcc87);if(_0x1e4095['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1e4095['containsRangeInObject']&&!_0x1e4095['isInsideObject'])){if(_0x1d9d56['isMultiRange']){if(!Xt(_0x1d9d56,_0x1fddd6))continue;let _0x2a38bf=!0x0;for(const _0x15f845 of _0x1d9d56['getRanges']()){if(_0x15f845['containsRange'](_0x46144d,!0x0))return _0x1d9d56;_0x46144d['containsRange'](_0x15f845)||(_0x2a38bf=!0x1);}_0x2a38bf&&_0x1d9d56['discard']();}else{const _0x31d7a8=_0x1d9d56['getFirstRange']();if(_0x31d7a8['containsRange'](_0x46144d,!0x0))return _0x1d9d56;if(!Xt(_0x1d9d56,_0x1fddd6)){_0x46144d['containsRange'](_0x31d7a8)?_0x1d9d56['removeMarkers']():_0x31d7a8['containsPosition'](_0x32d158)?_0x32d158=_0x31d7a8['end']:_0x31d7a8['containsPosition'](_0x4dcc87)&&(_0x4dcc87=_0x31d7a8['start']);continue;}_0x32d158=_0x32d158['isBefore'](_0x31d7a8['start'])?_0x32d158:_0x31d7a8['start'],_0x4dcc87=_0x4dcc87['isAfter'](_0x31d7a8['end'])?_0x4dcc87:_0x31d7a8['end'],_0x1fddd6=Object['assign']({},_0x1d9d56['attributes']),_0x2ea855?_0x31d7a8['start']['isBefore'](_0x2ea855['getFirstRange']()['start'])?(_0x2ea855['removeMarkers'](),_0x2ea855=_0x1d9d56):_0x1d9d56['removeMarkers']():_0x2ea855=_0x1d9d56;}}}if(_0x2ea855)return this['_setSuggestionRange'](_0x2ea855,this['_model']['createRange'](_0x32d158,_0x4dcc87)),_0x2ea855;{const _0x25a5be=_0x2a1324(),_0x35b683=this['_model']['createRange'](_0x32d158,_0x4dcc87),_0x341ded=_0x2d5de8['id'],_0x413dd1=_0x430437?'deletion:'+_0x430437:'deletion',_0x629dd5=this['_setSuggestionData']({'id':_0x25a5be,'type':_0x413dd1,'createdAt':new Date(),'authorId':_0x341ded,'attributes':_0x1fddd6});return this['_addSuggestionMarker'](_0x413dd1,_0x25a5be,_0x341ded,_0x35b683),_0x629dd5;}}['markMultiRangeDeletion'](_0x2a25dd,_0x58f0dc='multi',_0x45a106={}){const _0x1b2f5a=this['editor']['plugins']['get']('Users')['me'],_0x591551=_0x2a25dd['map'](_0x544a17=>new _0xc2a6f1(_0x544a17['start'],_0x544a17['end'])),_0x3c9406=new Set();this['_trackingSessionId']&&(_0x45a106['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4b0122,meta:_0x475407}of this['_findSuggestions'](_0x591551,'insertion'))_0x475407['isOwn']&&!_0x475407['isNextTo']&&_0x3c9406['add'](_0x4b0122);for(const _0x495388 of _0x3c9406)if(_0x495388['isMultiRange']){const _0x209a19=_0x495388['getRanges']();(!_0x495388['attributes']||!_0x495388['attributes']['skipNestingCheck'])&&(_0x209a19['every'](_0x556e7b=>_0x591551['some'](_0x14257f=>_0x14257f['containsRange'](_0x556e7b,!0x0)))&&_0x495388['discard']());if(_0x591551['every'](_0x19bbed=>_0x209a19['some'](_0x51ef21=>_0x51ef21['containsRange'](_0x19bbed,!0x0)))){const _0x4fc8ff=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58f0dc,'accept');return this['forceDefaultExecution'](()=>_0x4fc8ff(_0x2a25dd,null,_0x45a106)),null;}}else{const _0x8b43f4=_0x495388['getFirstRange']();_0x591551['some'](_0x4f03d4=>_0x4f03d4['containsRange'](_0x8b43f4,!0x0))&&_0x495388['discard']();if(_0x591551['every'](_0x47bf8d=>_0x8b43f4['containsRange'](_0x47bf8d,!0x0))){const _0x28bf43=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58f0dc,'accept');return this['forceDefaultExecution'](()=>_0x28bf43(_0x591551,null,_0x45a106)),null;}}const _0x714e10=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58f0dc,'join');let _0x55c0a4=null;for(const _0xb0fd00 of this['getSuggestions']())if(_0xb0fd00['author']['id']==_0x1b2f5a['id']&&_0xb0fd00['isInContent']&&'deletion'==_0xb0fd00['type']&&_0xb0fd00['subType']==_0x58f0dc&&Xt(_0xb0fd00,_0x45a106)&&(_0x714e10(_0xb0fd00['getRanges'](),_0x591551)||_0x714e10(_0x591551,_0xb0fd00['getRanges']()))){if(_0x55c0a4){if(_0xb0fd00['commentThread']&&_0xb0fd00['commentThread']['length'])continue;for(const _0x2527cd of _0xb0fd00['getRanges']())_0x55c0a4['isIntersectingWithRange'](_0x2527cd)||_0x55c0a4['addRange'](_0x2527cd);_0xb0fd00['removeMarkers']();}else{_0x55c0a4=_0xb0fd00;for(const _0x592f8b of _0x591551)_0xb0fd00['isIntersectingWithRange'](_0x592f8b)||_0xb0fd00['addRange'](_0x592f8b);}}if(_0x55c0a4)return _0x55c0a4;_0x3c9406['clear']();for(const {suggestion:_0x251aeb,meta:_0x7e3392}of this['_findSuggestions'](_0x591551,'deletion'))_0x7e3392['isOwn']&&(this['_mergeNestedSuggestions']||!_0x7e3392['containsRangeInObject']&&!_0x7e3392['isInsideObject'])&&Xt(_0x251aeb,_0x45a106)&&_0x3c9406['add'](_0x251aeb);for(const _0x34a9fe of _0x3c9406){const _0x51eb6b=_0x34a9fe['getRanges']();if(!_0x45a106||!_0x45a106['skipNestingCheck']){if(_0x591551['every'](_0x5e02c=>_0x51eb6b['some'](_0x3480a7=>_0x3480a7['containsRange'](_0x5e02c,!0x0))))return _0x34a9fe;}(!_0x34a9fe['attributes']||!_0x34a9fe['attributes']['skipNestingCheck'])&&(_0x51eb6b['every'](_0x45e301=>_0x591551['some'](_0xd6a64c=>_0xd6a64c['containsRange'](_0x45e301,!0x0)))&&_0x34a9fe['discard']());}const _0x37a155=_0x2a1324(),_0x427b29=_0x1b2f5a['id'],_0x347bce='deletion:'+_0x58f0dc,_0xca42a7=this['_setSuggestionData']({'id':_0x37a155,'type':_0x347bce,'createdAt':new Date(),'authorId':_0x427b29,'attributes':_0x45a106});for(const _0x483a66 of _0x591551)_0x483a66['detach'](),_0x483a66['isCollapsed']||'$graveyard'==_0x483a66['root']['rootName']||this['_addSuggestionMarker'](_0x347bce,_0x37a155,_0x427b29,_0x483a66,T['getMultiRangeId']());return _0xca42a7;}['markAttributeChange'](_0x5b5628,_0x41ac64,_0xd2ee0c,_0x4ec2de,_0x35fd7b){if(_0x5b5628['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4d3586=this['editor']['plugins']['get']('Users')['me']['id'],_0x5a75d7=Array['from'](this['_suggestions']['values']())['filter'](_0x3a7c0b=>'attribute'==_0x3a7c0b['type']&&_0x3a7c0b['data']['key']==_0x41ac64&&_0x3a7c0b['isIntersectingWithRange'](_0x5b5628));if(this['_trackingSessionId']&&(_0x35fd7b['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x20a433=this['_findSuggestions'](_0x5b5628,'insertion')['filter'](({meta:_0x3b77f8})=>_0x3b77f8['isOwn']&&!_0x3b77f8['isInsideObject']&&!_0x3b77f8['isNextTo'])['map'](({suggestion:_0x42ffe0})=>_0x42ffe0);_0x5a75d7['unshift'](..._0x20a433);}const _0x3fe7e3=new Map([[_0x5b5628,_0xd2ee0c]]);for(const _0x479816 of _0x5a75d7){const _0x56d375='attribute'==_0x479816['type']?_0x479816['data']['oldValue']:void 0x0,_0x5b6ef1=_0x479816['getFirstRange'](),_0xaf17c8=Array['from'](_0x3fe7e3['keys']())['find'](_0x5805e2=>_0x5805e2['isIntersecting'](_0x5b6ef1));if(!_0xaf17c8)continue;const _0x140f83=_0xaf17c8['getDifference'](_0x5b6ef1);this['_isBlockAttribute'](_0x41ac64)&&'insertion'==_0x479816['type']&&0x0!=_0x140f83['length']||(_0x3fe7e3['delete'](_0xaf17c8),_0x140f83['forEach'](_0x450a1d=>{_0x3fe7e3['set'](_0x450a1d,_0xd2ee0c);}),'insertion'!=_0x479816['type']&&_0x56d375!=_0x4ec2de&&_0x3fe7e3['set'](_0xaf17c8['getIntersection'](_0x5b6ef1),_0x56d375));}const _0x4b898=[];for(const [_0x1c7272,_0xace1b1]of _0x3fe7e3){const _0x466133=_0x2a1324(),_0x760cf2={'key':_0x41ac64,'oldValue':_0xace1b1,'newValue':_0x4ec2de};_0x41ac64['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':_0x41ac64});const _0x314887=('attribute:'+(_0x41ac64+'|'+Lt({'newValue':_0x4ec2de})))['substring'](0x0,0x3c),_0x235092=this['_setSuggestionData']({'id':_0x466133,'type':_0x314887,'data':_0x760cf2,'createdAt':new Date(),'authorId':_0x4d3586,'attributes':_0x35fd7b});_0x4b898['push'](_0x235092),this['_addSuggestionMarker'](_0x314887,_0x466133,_0x4d3586,_0x1c7272);}return _0x4b898;}['enableDefaultAttributesIntegration'](_0x556dce){this['enableCommand'](_0x556dce,(_0x59352b,..._0x37906d)=>{this['recordAttributeChanges'](()=>{_0x59352b(..._0x37906d);});});}['registerBlockAttribute'](_0x385a1c){this['_blockAttributeKeys']['add'](_0x385a1c);}['registerInlineAttribute'](_0x4a38cd){this['_inlineAttributeKeys']['add'](_0x4a38cd);}['startTrackingSession'](_0x1ab006){return this['_trackingSessionId']=void 0x0!==_0x1ab006?_0x1ab006:_0x2a1324(),this['_trackingSessionId'];}['_getAttributeKey'](_0x49837d){return'attribute'==_0x49837d['type']?_0x49837d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4da3f7,_0x3dbfc1){const _0xeff58f=_0x4da3f7['getFirstMarker']();this['_model']['change'](_0x4d607e=>{_0x4d607e['updateMarker'](_0xeff58f,{'range':_0x3dbfc1});});}['_addThreadToSuggestion'](_0x134d7b){const _0x36c110=_0x134d7b['id'],_0x508ea5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x36c110)||this['_commentsRepository']['addCommentThread']({'channelId':_0x508ea5,'threadId':_0x36c110,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xaa9ea3=this['_commentsRepository']['getCommentThread'](_0x36c110);_0xaa9ea3['unbind']('isRemovable'),_0xaa9ea3['isRemovable']=!0x1,_0x134d7b['commentThread']=_0xaa9ea3;}['_checkSuggestionCorrectness'](_0x32b018,_0x1bf16e,_0x354f16,_0x14bd33){if(_0x32b018['type']!=_0x1bf16e||_0x32b018['subType']!=_0x354f16||_0x32b018['creator']['id']!=_0x14bd33)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x7b7a91('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3d4d0b,_0x1d92ef){const _0x273bb4=_0x3d4d0b['getFirstRange']();if(_0x1d92ef['isEqual'](_0x273bb4))_0x3d4d0b['removeMarkers']();else{if(_0x273bb4['containsRange'](_0x1d92ef)){const _0x3759ea=this['_model']['createPositionAt'](_0x1d92ef['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3d4d0b,this['_model']['createRange'](_0x273bb4['start'],_0x3759ea));const _0x1921c4=_0x2a1324(),_0x3944f4=_0x3d4d0b['creator']['id'],_0x108fc2=_0x3d4d0b['type']+':'+_0x3d4d0b['subType'];this['_setSuggestionData']({'id':_0x1921c4,'type':_0x108fc2,'createdAt':new Date(),'authorId':_0x3944f4,'data':_0x3d4d0b['data'],'attributes':_0x3d4d0b['attributes']});const _0x1c25cb=this['_model']['createPositionAt'](_0x1d92ef['end']['parent'],'after'),_0x143500=this['_model']['createRange'](_0x1c25cb,_0x273bb4['end']);this['_addSuggestionMarker'](_0x108fc2,_0x1921c4,_0x3944f4,_0x143500);}else{if(_0x273bb4['containsPosition'](_0x1d92ef['start'])){const _0xd6488f=this['_model']['createPositionAt'](_0x1d92ef['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3d4d0b,this['_model']['createRange'](_0x273bb4['start'],_0xd6488f));}else{const _0x5b3148=this['_model']['createPositionAt'](_0x1d92ef['end']['parent'],'after');this['_setSuggestionRange'](_0x3d4d0b,this['_model']['createRange'](_0x5b3148,_0x273bb4['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xac0045){for(const {suggestion:_0x3564ed,meta:_0x4529b8}of this['_findSuggestions'](_0xac0045,'insertion')){if(!_0x4529b8['isOwn'])continue;const _0x273b43=_0x3564ed['getRanges']();for(const _0x2766e8 of _0x273b43)if(!_0xac0045['getDifference'](_0x2766e8)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x45111a){const _0x76f48a=this['editor']['plugins']['get']('Users')['getUser'](_0x45111a);if(!_0x76f48a)throw new _0x7b7a91('track-changes-user-not-found',this);return _0x76f48a;}['_getExternalAuthor'](_0x2a376d){const _0x33c986=this['editor']['plugins']['get']('Users'),_0x44965f=_0x4a387c('external:'+_0x2a376d),_0x539b44=_0x33c986['getUser'](_0x44965f);return _0x539b44||_0x33c986['addUser']({'id':_0x44965f,'name':_0x2a376d});}['_createSuggestion'](_0x3b6b39,_0x2f5a81,_0x22021e,_0x3739cd,_0x2f48fe,_0x363499){const _0x359a4d=this['_getAuthorFromId'](_0x3739cd),_0xf9abaf=this['_suggestionFactory']['buildSuggestion'](_0x3b6b39,_0x2f5a81,_0x22021e,_0x359a4d,_0x2f48fe,_0x5707e4=>{this['_updateSuggestionData'](_0x22021e,{'attributes':_0x5707e4});const _0x2747ee=this['getSuggestion'](_0x22021e);this['_joinWithAdjacentSuggestions'](new Set([_0x2747ee])),this['_refreshSuggestionsChain'](new Set([_0x2747ee]));},_0x363499);return this['listenTo'](_0xf9abaf,'accept',()=>{this['_updateSuggestionData'](_0x22021e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xf9abaf,'discard',()=>{this['_updateSuggestionData'](_0x22021e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x22021e,_0xf9abaf),this['_suggestionState']['set'](_0xf9abaf,'notReady'),_0xf9abaf;}['_splitMarkerName'](_0x8ba3a1){const _0x547dae=_0x8ba3a1['split'](':');return{'group':_0x547dae[0x0],'type':_0x547dae[0x1],'subType':_0x547dae['length']>=0x5?_0x547dae[0x2]:null,'id':_0x547dae['length']<0x5?_0x547dae[0x2]:_0x547dae[0x3],'authorId':_0x547dae['length']<0x5?_0x547dae[0x3]:_0x547dae[0x4],'markerCount':0x6==_0x547dae['length']?_0x547dae[0x5]:null};}['_breakSuggestionMarker'](_0x2607d7,_0x3bbf6b,_0xb7161d){const _0x134ef2=_0x2607d7['getFirstRange'](),_0xd5c811=_0x134ef2['start'],_0x2da8a1=_0x134ef2['end'];this['_setSuggestionRange'](_0x2607d7,this['_model']['createRange'](_0xd5c811,_0x3bbf6b));const _0x30b024=_0x2a1324(),_0x2d8970=_0x2607d7['creator']['id'],_0xb80e6=_0x2607d7['type']+(_0x2607d7['subType']?':'+_0x2607d7['subType']:'');this['_setSuggestionData']({'id':_0x30b024,'type':_0xb80e6,'createdAt':new Date(),'authorId':_0x2d8970,'originalSuggestionId':_0x2607d7['_originalSuggestionId']||_0x2607d7['id'],'attributes':_0x2607d7['attributes'],'data':_0x2607d7['data']});const _0x3066fa=this['_getAttributeKey'](_0x2607d7);('formatBlock'==_0x2607d7['type']||_0x3066fa&&this['_isBlockAttribute'](_0x3066fa))&&(_0xb7161d=this['_model']['createPositionBefore'](_0xb7161d['parent'])),this['_addSuggestionMarker'](_0xb80e6,_0x30b024,_0x2d8970,this['_model']['createRange'](_0xb7161d,_0x2da8a1));}['_findSuggestions'](_0x1bbeb6,_0xf16432=null){const _0x371f5f=[],_0x1115fd=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1bbeb6)||(_0x1bbeb6=[_0x1bbeb6]);for(const _0x577222 of this['getSuggestions']()){if(!_0x577222['isInContent'])continue;if(_0xf16432&&_0x577222['type']!=_0xf16432)continue;let _0x1a3ec8=!0x1;for(const _0x1ffdd3 of _0x577222['getRanges']()){for(const _0x46ed70 of _0x1bbeb6){const _0x8faade=_0x46ed70['start']['isEqual'](_0x1ffdd3['end'])||_0x46ed70['end']['isEqual'](_0x1ffdd3['start']);if(_0x8faade||_0x46ed70['getIntersection'](_0x1ffdd3)){const _0x201d0a=_0x46ed70['containsRange'](_0x1ffdd3)&&Ft(this['_model']['schema'],_0x1ffdd3['start'],_0x46ed70),_0x472f71=_0x1ffdd3['containsRange'](_0x46ed70)&&Ft(this['_model']['schema'],_0x46ed70['start'],_0x1ffdd3);_0x371f5f['push']({'suggestion':_0x577222,'meta':{'isOwn':_0x1115fd==_0x577222['author'],'isNextTo':_0x8faade,'isInsideObject':_0x201d0a,'containsRangeInObject':_0x472f71}}),_0x1a3ec8=!0x0;break;}}if(_0x1a3ec8)break;}}return _0x371f5f;}['_addSuggestionMarker'](_0x4fec24,_0x4ad79d,_0x898cf2,_0xcdd17f,_0x8adc1c){this['_model']['change'](_0x5d2fac=>{let _0x162440='suggestion:'+_0x4fec24+':'+_0x4ad79d+':'+_0x898cf2;_0x8adc1c&&(_0x162440=_0x162440+':'+_0x8adc1c),_0x5d2fac['addMarker'](_0x162440,{'range':_0xcdd17f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2fc7f4){const _0x374e1a=_0x2fc7f4['previous'],_0x181756=_0x2fc7f4['next'];_0x2fc7f4['previous']=null,_0x2fc7f4['next']=null,null!=_0x374e1a&&_0x374e1a['next']==_0x2fc7f4&&(_0x374e1a['next']=_0x181756),null!=_0x181756&&_0x181756['previous']==_0x2fc7f4&&(_0x181756['previous']=_0x374e1a),'ready'==this['_suggestionState']['get'](_0x2fc7f4)&&(this['_suggestionState']['set'](_0x2fc7f4,'removed'),this['fire']('suggestionUnloaded',_0x2fc7f4,_0x374e1a,_0x181756));}['_setSuggestionData'](_0x15dee2){const _0x2f2c04=_0x15dee2['id'],_0xb89a23=this['addSuggestionData'](_0x15dee2);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x45bec1=this['editor']['plugins']['get']('PendingActions'),_0xec237a=_0xb89a23['hasComments'],_0x59718b=_0xb89a23['subType']?_0xb89a23['type']+':'+_0xb89a23['subType']:_0xb89a23['type'],_0x328b20=this['editor']['locale'],_0x4e284a=_0x45bec1['add'](o(_0x328b20,'PENDING_ACTION_SUGGESTION')),_0x57770b={'id':_0x2f2c04,'type':_0x59718b,'hasComments':_0xec237a,'data':_0x15dee2['data']||null,'originalSuggestionId':_0x15dee2['originalSuggestionId']||null,'attributes':_0xb89a23['attributes']};this['_adapter']['addSuggestion'](_0x57770b)['then'](_0x4ff25f=>{_0xb89a23['_saved']=!0x0,_0x45bec1['remove'](_0x4e284a),_0x4ff25f&&_0x4ff25f['createdAt']&&(this['_suggestions']['get'](_0x2f2c04)['createdAt']=_0x4ff25f['createdAt']);})['catch'](_0x1b9888=>{throw _0x1b24bf('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xb89a23['discard']();}),_0xb89a23['stopListening'](),this['_suggestions']['delete'](_0xb89a23['id']),this['_suggestionState']['delete'](_0xb89a23),_0x1b9888;});}return _0xb89a23;}['_isBlockAttribute'](_0x318ff9){return this['_blockAttributeKeys']['has'](_0x318ff9);}['_isInlineAttribute'](_0x13af00){return this['_inlineAttributeKeys']['has'](_0x13af00);}['_updateSuggestionData'](_0xf69958,_0x520050){const _0x7a46c9=this['editor']['plugins']['get']('PendingActions'),_0x52265e=this['getSuggestion'](_0xf69958);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x52265e['_saved']){const _0x1aa7f3=_0x7a46c9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xf69958,_0x520050)['then'](()=>{_0x7a46c9['remove'](_0x1aa7f3);});}else _0x52265e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xf69958,_0x520050);});}}['_getSuggestionData'](_0x2eef23){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x7b7a91('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2eef23);}['_handleNewSuggestionMarker'](_0x5da901){const {id:_0x368622,type:_0x433fd1,subType:_0x2408e3,authorId:_0x2382d7}=this['_splitMarkerName'](_0x5da901),_0x25afea=this['_suggestions']['get'](_0x368622)||this['_createSuggestion'](_0x433fd1,_0x2408e3,_0x368622,_0x2382d7,{});switch(this['_checkSuggestionCorrectness'](_0x25afea,_0x433fd1,_0x2408e3,_0x2382d7),this['_suggestionState']['get'](_0x25afea)){case'notReady':this['_getSuggestionData'](_0x368622)['then'](_0x4f99cc=>{let _0x443cca=Promise['resolve']();_0x4f99cc['hasComments']&&(_0x443cca=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x368622})),_0x443cca['then'](()=>{this['addSuggestionData'](_0x4f99cc)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x25afea,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x368622,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x25afea,'ready'),this['fire']('suggestionLoaded',_0x25afea);break;case'ready':this['fire']('suggestionChanged',_0x25afea);}return _0x25afea['addMarkerName'](_0x5da901),_0x25afea;}['_refreshSuggestionsChain'](_0x281789){const _0x7cd20c=Array['from'](_0x281789),_0x13e4a4=_0x7cd20c['filter'](_0x6f9be7=>'attribute'==_0x6f9be7['type']);this['_refreshAttributeSuggestionsChain'](_0x13e4a4);const _0x3388a4=_0x7cd20c['filter'](_0x57c701=>!_0x57c701['isMultiRange']&&'attribute'!=_0x57c701['type']),_0x2f9eb0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7b6141=>!_0x7b6141['isMultiRange']&&'attribute'!=_0x7b6141['type']),_0x35170c=_0x2f9eb0['filter'](_0x43ef81=>!_0x281789['has'](_0x43ef81)),_0x412869=new Map(_0x2f9eb0['map'](_0x424b9d=>[_0x424b9d,this['_suggestionFactory']['getSuggestionCallback'](_0x424b9d['type'],_0x424b9d['subType'],'chain')])),_0x273812=new Map(_0x2f9eb0['map'](_0x2782a1=>[_0x2782a1,_0x2782a1['getFirstRange']()])),_0x148221=new Set(),_0x412e3c=new Set();for(let _0x2d3671=0x0;_0x2d3671<_0x3388a4['length'];_0x2d3671++)_0xa30f1e(_0x3388a4[_0x2d3671],_0x3388a4,_0x2d3671+0x1);for(let _0x103cf=0x0;_0x103cf<_0x3388a4['length'];_0x103cf++)_0xa30f1e(_0x3388a4[_0x103cf],_0x35170c,0x0);const _0x385ed9=new Set();for(let _0x4a3f09=0x0;_0x4a3f09<_0x3388a4['length'];_0x4a3f09++){const _0x19fc6b=_0x3388a4[_0x4a3f09];!_0x412e3c['has'](_0x19fc6b)&&_0x19fc6b['previous']&&(_0x385ed9['add'](_0x19fc6b['previous']),_0x19fc6b['previous']['next']===_0x19fc6b&&(_0x19fc6b['previous']['next']=null),_0x19fc6b['previous']=null),!_0x148221['has'](_0x19fc6b)&&_0x19fc6b['next']&&(_0x385ed9['add'](_0x19fc6b['next']),_0x19fc6b['next']['previous']===_0x19fc6b&&(_0x19fc6b['next']['previous']=null),_0x19fc6b['next']=null);}function _0xa30f1e(_0x85cd61,_0x3c66bf,_0x32628c){for(let _0x16e7bd=_0x32628c;_0x16e7bd<_0x3c66bf['length'];_0x16e7bd++){const _0x1e80f2=_0x3c8ede(_0x85cd61,_0x3c66bf[_0x16e7bd]);_0x1e80f2&&(_0x1e80f2[0x0]['next']=_0x1e80f2[0x1],_0x1e80f2[0x1]['previous']=_0x1e80f2[0x0],_0x148221['add'](_0x1e80f2[0x0]),_0x412e3c['add'](_0x1e80f2[0x1]));}}function _0x3c8ede(_0x154a5e,_0x3760a5){if(_0x154a5e['author']['id']!==_0x3760a5['author']['id'])return null;const _0x111ff3=_0x412869['get'](_0x154a5e)(_0x154a5e,_0x3760a5,_0x273812['get'](_0x154a5e),_0x273812['get'](_0x3760a5));if(!_0x111ff3)return null;return _0x412869['get'](_0x3760a5)(_0x154a5e,_0x3760a5,_0x273812['get'](_0x154a5e),_0x273812['get'](_0x3760a5))?_0x111ff3[0x1]['commentThread']&&_0x111ff3[0x1]['commentThread']['length']?null:_0x111ff3:null;}_0x385ed9['size']&&this['_refreshSuggestionsChain'](_0x385ed9);}['_refreshAttributeSuggestionsChain'](_0x3b49bd){if(0x0==_0x3b49bd['length'])return;const _0x25471f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a1a1e=>'attribute'==_0x3a1a1e['type']&&_0x3a1a1e['_isDataLoaded']),_0x2c400f=[],_0x496bd4=new Map();for(const _0x5a9606 of _0x25471f){const _0x450410=_0x4a387c(_0x5a9606['attributes']);_0x496bd4['has'](_0x450410)||(_0x496bd4['set'](_0x450410,_0x2c400f['length']),_0x2c400f['push']([]));const _0x369020=_0x496bd4['get'](_0x450410);_0x2c400f[_0x369020]['push'](_0x5a9606);}!(function(){_0x2c400f['sort']((_0x1ff261,_0x2d9099)=>{const _0x2d164d=_0x1ff261[0x0]['createdAt'],_0x3e4fa7=_0x2d9099[0x0]['createdAt'];return _0x2d164d==_0x3e4fa7?_0x1ff261[0x0]['attributes']['groupId']<_0x2d9099[0x0]['attributes']['groupId']?-0x1:0x1:_0x2d164d<_0x3e4fa7?-0x1:0x1;});for(const _0x458d05 of _0x2c400f)_0x458d05['sort']((_0x53f379,_0x4a121d)=>_0x53f379['id']<_0x4a121d['id']?-0x1:0x1);}());for(let _0x32f075=0x0;_0x32f075<_0x2c400f['length'];_0x32f075++){if(0x0==_0x2c400f[_0x32f075]['length'])continue;const _0x39c5d9=[];for(let _0x3e8592=_0x32f075+0x1;_0x3e8592<_0x2c400f['length'];_0x3e8592++)0x0!=_0x2c400f[_0x3e8592]['length']&&_0x3dfa65(_0x2c400f[_0x32f075],_0x2c400f[_0x3e8592])&&_0x39c5d9['push'](_0x3e8592);for(const _0x38600c of _0x39c5d9)_0x2c400f[_0x32f075]=_0x2c400f[_0x32f075]['concat'](_0x2c400f[_0x38600c]),_0x2c400f[_0x38600c]=[];}for(const _0x9437 of _0x2c400f)for(let _0x1f34dd=0x0;_0x1f34dd<_0x9437['length'];_0x1f34dd++){const _0x226ba9=_0x9437[_0x1f34dd+0x1]||null;_0x9437[_0x1f34dd]['next']!==_0x226ba9&&(_0x9437[_0x1f34dd]['next']=_0x226ba9);}for(const _0x3789ba of _0x2c400f)for(let _0x25ab85=0x0;_0x25ab85<_0x3789ba['length'];_0x25ab85++){const _0x4e3a56=_0x3789ba[_0x25ab85-0x1]||null;_0x3789ba[_0x25ab85]['previous']!==_0x4e3a56&&(_0x3789ba[_0x25ab85]['previous']=_0x4e3a56);}function _0x3dfa65(_0x3fbdc7,_0x422d37){if(_0x3fbdc7[0x0]['attributes']['groupId']!==_0x422d37[0x0]['attributes']['groupId']&&_0x3fbdc7[0x0]['author']!==_0x422d37[0x0]['author'])return!0x1;if(!function(_0x1bb51b,_0x17d3ed){if(!_0x1bb51b['hasComments']&&!_0x17d3ed['hasComments'])return!0x0;if(_0x1bb51b['hasComments']&&_0x17d3ed['hasComments'])return!0x1;if(_0x1bb51b['hasComments']&&_0x17d3ed['createdAt']<_0x1bb51b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x17d3ed['hasComments']&&_0x1bb51b['createdAt']<_0x17d3ed['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3fbdc7[0x0],_0x422d37[0x0]))return!0x1;const _0x9fb057=Ut(_0x3fbdc7[0x0]['attributes'],['groupId','trackingSessionId']),_0x3d7f6c=Ut(_0x422d37[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xdd6d88(_0x9fb057,_0x3d7f6c))return!0x1;if(_0x3fbdc7[0x0]['attributes']['groupId']==_0x422d37[0x0]['attributes']['groupId'])return!0x0;if(_0x3fbdc7[0x0]['attributes']['trackingSessionId']!==_0x422d37[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3fbdc7['every'](_0x7d7b45=>_0x422d37['some'](_0x30341b=>_0x7d7b45['getFirstRange']()['isEqual'](_0x30341b['getFirstRange']())))&&_0x422d37['every'](_0x2a7aea=>_0x3fbdc7['some'](_0x3bbcf2=>_0x2a7aea['getFirstRange']()['isEqual'](_0x3bbcf2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4d0162){const _0x13d051=Array['from'](_0x4d0162),_0x13b307=this['getSuggestions']({'skipNotAttached':!0x0}),_0x59a264=_0x13b307['filter'](_0x2948fe=>!_0x4d0162['has'](_0x2948fe)),_0x234839=new Map(_0x13d051['map'](_0x5f4ba0=>[_0x5f4ba0,this['_suggestionFactory']['getSuggestionCallback'](_0x5f4ba0['type'],_0x5f4ba0['subType'],'join')])),_0x5d499d=new Map(_0x13b307['map'](_0x51ab30=>[_0x51ab30,_0x51ab30['getRanges']()]));for(let _0x3af7bd=0x0;_0x3af7bd<_0x13d051['length'];_0x3af7bd++){if(_0x3cdae5(this,_0x13d051[_0x3af7bd],_0x13d051,_0x3af7bd+0x1))return!0x0;}for(let _0x5bb7b5=0x0;_0x5bb7b5<_0x13d051['length'];_0x5bb7b5++){if(_0x3cdae5(this,_0x13d051[_0x5bb7b5],_0x59a264,0x0))return!0x0;}return!0x1;function _0x3cdae5(_0x4236c3,_0x3cfd5d,_0x4e2eac,_0xd6229e){for(let _0x3d29f7=_0xd6229e;_0x3d29f7<_0x4e2eac['length'];_0x3d29f7++){const _0x13da30=_0x4e2eac[_0x3d29f7];if(_0x13da30['type']!==_0x3cfd5d['type']||_0x13da30['author']['id']!==_0x3cfd5d['author']['id']||_0x13da30['subType']!==_0x3cfd5d['subType'])continue;if(!Qt(_0x3cfd5d,_0x13da30))continue;if('attribute'==_0x3cfd5d['type']&&_0x3cfd5d['data']['oldValue']!=_0x13da30['data']['oldValue'])continue;if('attribute'==_0x3cfd5d['type']&&_0x4236c3['_isBlockAttribute'](_0x3cfd5d['data']['key']))continue;if('formatBlock'==_0x3cfd5d['type']){const _0x2c3e49=_0x4236c3['editor']['model'],_0xd96d45=_0x3cfd5d['getContainedElement']();if(_0xd96d45&&(_0x2c3e49['schema']['isObject'](_0xd96d45)||_0x2c3e49['schema']['isLimit'](_0xd96d45)))continue;}const _0x37beaa=_0x234839['get'](_0x3cfd5d),_0x517db6=_0x5d499d['get'](_0x3cfd5d),_0x47b513=_0x5d499d['get'](_0x13da30),_0x149875=_0x3cfd5d['commentThread']&&_0x3cfd5d['commentThread']['length'],_0xa866d5=_0x13da30['commentThread']&&_0x13da30['commentThread']['length'];if(!_0x149875&&_0x37beaa(_0x47b513,_0x517db6))return _0x4236c3['_joinSuggestions'](_0x13da30,_0x3cfd5d),_0x5d499d['delete'](_0x3cfd5d),!0x0;if(!_0xa866d5&&_0x37beaa(_0x517db6,_0x47b513))return _0x4236c3['_joinSuggestions'](_0x3cfd5d,_0x13da30),_0x5d499d['delete'](_0x13da30),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4c654b,_0x5badea){if(_0x4c654b['isMultiRange']){for(const _0x30c225 of _0x5badea['getRanges']())_0x4c654b['addRange'](_0x30c225);}else{const _0x20c2da=_0x5badea['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4c654b,this['_model']['createRange'](_0x4c654b['getFirstRange']()['start'],_0x20c2da));}_0x5badea['removeMarkers']();}['_getMarkerAnnouncementText'](_0x86490d,_0x564445,_0x3f409e){const _0x5037c3=_0x86490d['startsWith']('format')||_0x86490d['startsWith']('attribute')?'FORMATTING':_0x86490d['toUpperCase']();return o(this['editor']['locale'],_0x564445+'_'+_0x5037c3+'_SUGGESTION_ANNOUNCEMENT',_0x3f409e);}['_initAriaMarkerChangeAnnouncements'](){const _0x3639a5=this['editor'];if(!_0x3639a5['ui'])return;const {ariaLiveAnnouncer:_0x273d0a}=_0x3639a5['ui'];_0x429a60(this['_model'],({left:_0x2ec014,entered:_0x55164e})=>{for(const _0x10e4be of _0x2ec014){const {group:_0x7229bb,type:_0x4f78ab}=this['_splitMarkerName'](_0x10e4be['name']);if('suggestion'===_0x7229bb){_0x273d0a['announce'](this['_getMarkerAnnouncementText'](_0x4f78ab,'LEAVE'));break;}}for(const _0x410b94 of _0x55164e){const {group:_0x55ac4c,type:_0x1dbee0}=this['_splitMarkerName'](_0x410b94['name']);if('suggestion'===_0x55ac4c){_0x273d0a['announce'](this['_getMarkerAnnouncementText'](_0x1dbee0,'ENTER',_0x2fbc9c(_0x192244)));break;}}});}['_processAttributeChanges'](_0x490e56){if(this['_recordAttributeSuggestions'])return!0x1;const _0x45bbe1=this['editor'],_0x41ea9a=_0x45bbe1['model']['document']['differ']['getChanges']();if(0x0==_0x41ea9a['length'])return!0x1;const _0x568fb1=[],_0x7aa7fc=_0x41ea9a['filter'](_0x595176=>'attribute'==_0x595176['type']),_0x59e555=_0x41ea9a['filter'](_0x21583c=>'insert'==_0x21583c['type']&&'$text'!=_0x21583c['name']),_0x208cef=_0x41ea9a['filter'](_0x50af7e=>'remove'==_0x50af7e['type']&&'$text'!=_0x50af7e['name']);for(const _0x243041 of _0x7aa7fc)_0x568fb1['push']({'key':_0x243041['attributeKey'],'newValue':_0x243041['attributeNewValue'],'oldValue':_0x243041['attributeOldValue'],'range':qt(_0x243041['range'],_0x45bbe1['model'])});for(const _0x38c6f9 of _0x59e555){const _0x4900c8=_0x208cef['find'](_0x20db5c=>_0x20db5c['position']['isEqual'](_0x38c6f9['position']));_0x4900c8&&_0x568fb1['push']({'key':m,'newValue':_0x38c6f9['name'],'oldValue':_0x4900c8['name'],'range':_0x45bbe1['model']['createRangeOn'](_0x38c6f9['position']['nodeAfter'])});}return 0x0!=_0x568fb1['length']&&this['_reduceExistingSuggestions'](_0x490e56,_0x568fb1);}['_processAttributeSuggestions'](_0x595cbe){let _0x3947fe=!0x1;const _0x42620f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3bedfa=>_0x3bedfa['data']['newRange']&&_0x3bedfa['name']['startsWith']('suggestion:attribute:'));for(const _0x10183a of _0x42620f){const {subType:_0x58f58c,id:_0x3c2f5a}=this['_splitMarkerName'](_0x10183a['name']),_0x3d8705=_0x58f58c['split']('|')[0x0];for(const _0x2b7812 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2b7812['id']!=_0x3c2f5a&&'attribute'==_0x2b7812['type']&&_0x2b7812['data']&&_0x2b7812['data']['key']==_0x3d8705&&_0x2b7812['getFirstRange']()['isIntersecting'](_0x10183a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2b7812,_0x10183a['data']['newRange'],_0x595cbe),_0x3947fe=!0x0);}return _0x3947fe;}['recordAttributeChanges'](_0x42d1bb){this['_recordAttributeSuggestions']=!0x0,_0x42d1bb();}['_isRegisteredAttribute'](_0x23e681){const _0x5dc2c5=this['_isBlockAttribute'](_0x23e681),_0x1bee6e=this['_isInlineAttribute'](_0x23e681);return _0x5dc2c5||_0x1bee6e;}['_reduceExistingSuggestions'](_0x4679a2,_0x5569c5){if(0x0==_0x5569c5['length'])return!0x1;let _0x5085cb=!0x1;for(const _0x581a66 of _0x5569c5){const _0x1d0ea3=this['_findSuggestions'](_0x581a66['range'],'attribute')['filter'](_0x15822b=>!_0x15822b['meta']['isNextTo'])['map'](_0x3dd717=>_0x3dd717['suggestion']),_0x51f484=_0x4a387c({'newValue':_0x581a66['newValue']});_0x1d0ea3['filter'](_0x4d2fb7=>{const [_0x83f3ee,_0x5801be]=_0x4d2fb7['subType']['split']('|');return _0x83f3ee==_0x581a66['key']&&_0x5801be!=_0x51f484;})['forEach'](_0x2c64af=>{this['_reduceSuggestionAttributeRange'](_0x2c64af,_0x581a66['range'],_0x4679a2),_0x5085cb=!0x0;});}return _0x5085cb;}['_reduceSuggestionAttributeRange'](_0x291288,_0x2a60ab,_0x167aeb){const _0x51efa5=_0x291288['getFirstRange']()['getDifference'](_0x2a60ab);0x0!==_0x51efa5['length']?0x1!==_0x51efa5['length']?this['_breakSuggestionMarker'](_0x291288,_0x2a60ab['start'],_0x2a60ab['end']):this['_setSuggestionRange'](_0x291288,_0x51efa5[0x0]):_0x167aeb['removeMarker'](_0x291288['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5371a4){this['_editor']=_0x5371a4,this['_model']=_0x5371a4['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x32ceca,_0x4a8ab5,_0x4869b4,_0x40de88,_0x1d0c5f,_0x13076c,_0x102ce2){return new T(this['_model'],{'type':_0x32ceca,'subType':_0x4a8ab5,'id':_0x4869b4,'originalSuggestionId':_0x102ce2,'author':_0x40de88,'creator':_0x40de88,'attributes':_0x1d0c5f,'onAttributesChange':_0x13076c,'onAccept':(..._0x95ba05)=>this['getSuggestionCallback'](_0x32ceca,_0x4a8ab5,'accept')(..._0x95ba05),'onDiscard':(..._0x24df88)=>this['getSuggestionCallback'](_0x32ceca,_0x4a8ab5,'discard')(..._0x24df88)});}['registerCustomCallback'](_0x28d93e,_0x212d6d,_0x1a47bc,_0x4524d8){const _0xbd1a50=_0x28d93e+':'+_0x212d6d+':'+_0x1a47bc;this['_customCallbacks']['set'](_0xbd1a50,_0x4524d8);}['getSuggestionCallback'](_0x39e84f,_0x2bb917,_0x3d0599){const _0x1f9002=_0x39e84f+':'+_0x2bb917+':'+_0x3d0599;return this['_customCallbacks']['get'](_0x1f9002)||this['_defaultCallbacks']['get'](_0x39e84f+':'+_0x3d0599);}['_registerDefaultCallbacks'](){const _0x25eaf6=()=>!0x1,_0x422167=_0x4f9001=>{_0x4f9001['sort']((_0x1ede06,_0xe70901)=>_0x1ede06['start']['isBefore'](_0xe70901['start'])?0x1:-0x1),this['_model']['change'](_0x457a1c=>{for(const _0x4caa18 of _0x4f9001){let _0x246174;_0x246174=_0x4caa18['end']['isAtEnd']&&_0x4caa18['end']['parent']==_0x4caa18['start']['nodeAfter']?_0x457a1c['createSelection'](_0x4caa18['start']['nodeAfter'],'on'):_0x457a1c['createSelection'](_0x4caa18),this['_model']['deleteContent'](_0x246174,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3b3577=(_0x2fee3c,_0x292047)=>{_0x292047&&this['_model']['change'](_0x38beff=>{const {commandName:_0x532053,commandParams:_0x4ac7dd=[]}=_0x292047,_0x4678cb=_0x2fee3c['map'](_0x227245=>(Pt(_0x227245)&&(_0x227245=this['_model']['createRange'](_0x227245['end'])),_0x227245))['filter'](_0x31b1ff=>'$graveyard'!==_0x31b1ff['root']['rootName']);if(_0x4678cb['length']<0x1)return;const _0xb76819=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5b612d=>_0xc2a6f1['fromRange'](_0x5b612d));_0x38beff['setSelection'](_0x4678cb);for(const _0x51dc0f of this['_editor']['commands']['commands']())_0x51dc0f['refresh']();_0x4ac7dd['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x532053,..._0x4ac7dd);const _0x9afde2=_0xb76819['filter'](_0x10f161=>'$graveyard'!=_0x10f161['root']['rootName']);_0x9afde2['length']>0x0&&_0x38beff['setSelection'](_0x9afde2);for(const _0x44ca15 of _0xb76819)_0x44ca15['detach']();});},_0x4f82b0=(_0x56be37,_0x403971)=>0x1==_0x56be37['length']&&0x1==_0x403971['length']&&_0x56be37[0x0]['end']['isEqual'](_0x403971[0x0]['start']),_0x640ca8=(_0x183594,_0x31cb82,_0x372ccc,_0x104f99)=>Wt(_0x183594,_0x31cb82,_0x372ccc,_0x104f99)?[_0x183594,_0x31cb82]:Wt(_0x31cb82,_0x183594,_0x104f99,_0x372ccc)?[_0x31cb82,_0x183594]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x25eaf6),this['_defaultCallbacks']['set']('insertion:discard',_0x422167),this['_defaultCallbacks']['set']('insertion:join',_0x4f82b0),this['_defaultCallbacks']['set']('insertion:chain',_0x640ca8),this['_defaultCallbacks']['set']('deletion:accept',_0x422167),this['_defaultCallbacks']['set']('deletion:discard',_0x25eaf6),this['_defaultCallbacks']['set']('deletion:join',_0x4f82b0),this['_defaultCallbacks']['set']('deletion:chain',_0x640ca8),this['_defaultCallbacks']['set']('formatInline:accept',_0x3b3577),this['_defaultCallbacks']['set']('formatInline:discard',_0x25eaf6),this['_defaultCallbacks']['set']('formatInline:join',_0x4f82b0),this['_defaultCallbacks']['set']('formatInline:chain',_0x25eaf6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3b3577),this['_defaultCallbacks']['set']('formatBlock:discard',_0x25eaf6),this['_defaultCallbacks']['set']('formatBlock:join',_0x4f82b0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x25eaf6),this['_defaultCallbacks']['set']('attribute:accept',_0x25eaf6),this['_defaultCallbacks']['set']('attribute:discard',(_0x5965e3,_0x1f98c1)=>{if(!_0x1f98c1)return;const _0x438d56=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x59b0c0=>{if(_0x1f98c1['key']==m)for(const _0x17f684 of _0x5965e3){const _0x3bdd67=_0x17f684['start']['nodeAfter'],_0x48a262=_0x1f98c1['oldValue'];_0x59b0c0['rename'](_0x3bdd67,_0x48a262);}else{if(_0x438d56['_isBlockAttribute'](_0x1f98c1['key'])){for(const _0x4a127b of _0x5965e3)void 0x0!==_0x1f98c1['oldValue']?_0x59b0c0['setAttribute'](_0x1f98c1['key'],_0x1f98c1['oldValue'],_0x4a127b['start']['nodeAfter']):_0x59b0c0['removeAttribute'](_0x1f98c1['key'],_0x4a127b['start']['nodeAfter']);}else{for(const _0x2481ec of _0x5965e3)_0x1f98c1['oldValue']?_0x59b0c0['setAttribute'](_0x1f98c1['key'],_0x1f98c1['oldValue'],_0x2481ec):_0x59b0c0['removeAttribute'](_0x1f98c1['key'],_0x2481ec);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4f82b0);}}function Ft(_0xbce9eb,_0x3646e0,_0x3f20b4){for(const _0x4f5dc8 of _0x3646e0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f5dc8['root']==_0x4f5dc8)return!0x1;if(!_0x3f20b4['containsItem'](_0x4f5dc8))return!0x1;if(_0xbce9eb['isObject'](_0x4f5dc8)||_0xbce9eb['isLimit'](_0x4f5dc8))return!0x0;}return!0x1;}function Pt(_0x5523f8){return _0x5523f8['end']['parent']==_0x5523f8['start']['nodeAfter']&&_0x5523f8['end']['isAtStart'];}function Gt(_0x1774aa,_0x41700a,_0x12a231,_0x5dd89f){const _0x189702=_0x2c16b1=>!_0x2c16b1['item']['is']('$textProxy')&&!_0x5dd89f['isObject'](_0x2c16b1['item']),_0x1b3082=_0x1774aa['start']['getLastMatchingPosition'](_0x189702),_0x15ed41=_0x1774aa['end']['getLastMatchingPosition'](_0x189702,{'direction':'backward'});return(!_0x1774aa['start']['isEqual'](_0x1b3082)||!_0x1774aa['end']['isEqual'](_0x15ed41))&&(_0x1b3082['isBefore'](_0x15ed41)?_0x12a231['updateMarker'](_0x41700a,{'range':_0x12a231['createRange'](_0x1b3082,_0x15ed41)}):_0x12a231['removeMarker'](_0x41700a),!0x0);}function Lt(_0x2f4dfb){return _0x4a387c(_0x2f4dfb);}function Jt(_0x1e4fb2){const _0x488a9f=_0x1e4fb2['start']['nodeAfter'];return _0x488a9f&&_0x488a9f['is']('element');}function Kt(_0x24c01e){return Pt(_0x24c01e)||function(_0x1a182d){return _0x1a182d['start']['parent']==_0x1a182d['end']['nodeBefore']&&_0x1a182d['start']['isAtEnd'];}(_0x24c01e);}function Ht(_0x26e3b5,_0x38e9f7){try{const _0x4b9384=_0x26e3b5['getRange']();for(const _0x45de1b of _0x38e9f7)if(_0x26e3b5!==_0x45de1b&&_0x4b9384&&_0x4b9384['isIntersecting'](_0x45de1b['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x2176c3,_0x37d34f){return null==_0x2176c3['end']['nodeBefore']&&_0x2176c3['end']['parent']==_0x2176c3['start']['nodeAfter']?zt(_0x2176c3['start']['nodeAfter'],_0x37d34f):_0x2176c3;}function zt(_0x5d1ee3,_0x13dc6c){const _0x5e46a5=_0x13dc6c['schema']['isObject'](_0x5d1ee3)||_0x13dc6c['schema']['isSelectable'](_0x5d1ee3);return _0x13dc6c['createRange'](_0x13dc6c['createPositionAt'](_0x5d1ee3,'before'),_0x5e46a5?_0x13dc6c['createPositionAfter'](_0x5d1ee3):_0x13dc6c['createPositionAt'](_0x5d1ee3,'end'));}function Wt(_0x3dc709,_0x569424,_0x2002e7,_0x3167c2){return!!Qt(_0x3dc709,_0x569424)&&_0x2002e7['end']['isEqual'](_0x3167c2['start']);}function Qt(_0x222d17,_0x42367f){if(!_0x222d17['_isDataLoaded']||!_0x42367f['_isDataLoaded'])return!0x1;const _0x154463=new Set(Object['keys'](_0x222d17['attributes'])),_0x2313ef=new Set(Object['keys'](_0x42367f['attributes']));if(_0x154463['delete']('groupId'),_0x2313ef['delete']('groupId'),0x0==_0x154463['size']&&0x0==_0x2313ef['size'])return!0x0;if(_0x154463['size']!=_0x2313ef['size'])return!0x1;const _0x55e57b={..._0x222d17['attributes']},_0x5c89d3={..._0x42367f['attributes']};return delete _0x55e57b['groupId'],delete _0x5c89d3['groupId'],JSON['stringify'](_0x55e57b)==JSON['stringify'](_0x5c89d3);}function Xt(_0x2d85a8,_0x2c2a50){const _0x4fb147=Yt(_0x2d85a8['attributes']),_0x506fbd=Yt(_0x2c2a50);if(!_0x2d85a8['_isDataLoaded'])return!0x1;for(const _0x1a0cb7 of Object['keys'](_0x506fbd))if(!_0xdd6d88(_0x4fb147[_0x1a0cb7],_0x506fbd[_0x1a0cb7]))return!0x1;return!0x0;}function Yt(_0x3f5521){const _0x3fb782=Object['assign']({},_0x3f5521);return delete _0x3fb782['skipNestingCheck'],delete _0x3fb782['tablePasteChainId'],_0x3fb782;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2effd4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x57caf4,_0x42ff8d,_0x2cb609,_0x21104e){super(),this['model']=_0x42ff8d,this['view']=_0x2cb609,this['commentThreadController']=_0x21104e,this['_editor']=_0x57caf4,this['_acceptCommand']=_0x57caf4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x57caf4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x377e2f,_0x46f11d)=>_0x377e2f||_0x46f11d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3034a7=>_0x3034a7&&this['_editor']['model']['canEditAt'](_0x42ff8d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4f5ba9=>_0x4f5ba9&&this['_editor']['model']['canEditAt'](_0x42ff8d['getRanges']())),this['_pendingAction']=null,_0x2cb609['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2cb609,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2cb609,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2cb609,'change:isDirty',()=>{_0x2cb609['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 _0x1998f2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1998f2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x10f678{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3e10a5,_0x24fc5d,_0x34d89c,_0x19f629){super(_0x3e10a5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x54871c(_0x3e10a5,o(_0x3e10a5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x24fc5d['authoredAt']),this['bind']('authoredAt')['to'](_0x24fc5d),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',_0x24fc5d,'authoredAt',this,'descriptionParts',(_0x3e538e,_0x28fedc,_0x215ac0)=>{const _0x2f1f87=_0x215ac0['map'](_0x760d91=>ls(_0x760d91['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3e538e-0x1,_0x24fc5d['author']['name'],_0x28fedc?_0x19f629['formatDateTime'](_0x28fedc):'',new DOMParser()['parseFromString'](_0x2f1f87,'text/html')['body']['textContent']]);}),this['focusables']=new _0x16be8e(),this['focusTracker']=new _0x54b7f9(),this['keystrokes']=new _0x11fcaa(),this['focusCycler']=new _0x516f1f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3b05ea=>_0x3b05ea['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x24fc5d,this['_localUser']=_0x34d89c,this['_config']=_0x19f629,_0x19f629['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5b486c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x39a093}=this['_config'];this['commentsListView']=new _0x39a093(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',_0x11ab60=>_0x11ab60+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4b34be,_0x2d7baa)=>_0x4b34be||!!_0x2d7baa);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x55c780}=this['_config'],_0x5c880e=new _0x55c780(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x50072b=_0x5c880e['commentInputView'];return _0x5c880e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x50072b,'value',(_0x2cd044,_0x1cfbf5,_0x246691)=>!!_0x246691||_0x2cd044&&!_0x1cfbf5),_0x50072b['on']('submit',(_0x310cc3,_0xfeb116)=>{this['fire']('addComment',_0xfeb116),_0x50072b['editor']['setData']('');}),_0x50072b['on']('cancel',()=>this['focus']()),_0x50072b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5c880e;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x70f5cd,_0x32cad7,_0x54157b,_0x553b92){super(_0x70f5cd,_0x32cad7,_0x54157b,_0x553b92),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x438246=>_0x438246&&_0x438246[0x0]?_0x438246[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5ef205,_0x598e5d)=>{let _0x1e041c='';for(const _0x17f4d9 of _0x5ef205)_0x1e041c+='<p>'+ls(_0x17f4d9['content'],_0x17f4d9['color'])+'</p>';return _0x598e5d?_0x1e041c:_0x72b19b(_0x1e041c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x553b92['SuggestionView'](_0x70f5cd,_0x32cad7,{'formatDateTime':_0x553b92['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 _0x3c02e8=this['bindTemplate'],_0x2eb1ee=[this['suggestionView']];return this['commentsListView']&&_0x2eb1ee['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2eb1ee['push'](this['commentThreadInputView']),_0x2eb1ee['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3c02e8['if']('isActive','ck-suggestion-wrapper--active'),_0x3c02e8['to']('type',_0x29ebf3=>'ck-suggestion-'+_0x29ebf3),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':_0x3c02e8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2eb1ee};}['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 _0x10f678{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x122979,_0x2db5ea,_0x5a7a47){super(_0x122979),this['_model']=_0x2db5ea,this['_config']=_0x5a7a47,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2db5ea),this['acceptButton']=this['_createButton'](o(_0x122979,'Accept\x20suggestion'),_0xd033be,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x122979,'Discard\x20suggestion'),_0x22d87d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x446a21(_0x122979,_0x2db5ea['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x16be8e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x54b7f9(),this['keystrokes']=new _0x11fcaa(),this['focusCycler']=new _0x516f1f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2e0f4b=>_0x2e0f4b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x36341e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x36341e['innerHTML']=this['description'],this['on']('change:description',(_0x4f7542,_0x24fc22,_0x174496)=>{_0x36341e['innerHTML']=_0x174496;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x52d991=this['bindTemplate'],_0x2692a2=[{'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':_0x52d991['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x52d991['to']('authoredAt',_0x3873a3=>this['_config']['formatDateTime'](_0x3873a3))}]}]},{'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']&&_0x2692a2['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':_0x2692a2}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3558e2,_0x40417b,_0x380ee1,_0x4e1490,_0x7296d9){const _0x5f3a97=new _0x52afc4(this['locale']);return _0x5f3a97['set']({'label':_0x3558e2,'icon':_0x40417b,'tooltip':!0x0,'tooltipPosition':_0x7296d9}),_0x5f3a97['extendTemplate']({'attributes':{'class':_0x380ee1}}),_0x5f3a97['on']('execute',()=>{this['fire'](_0x4e1490,this['_model']['id']);}),_0x5f3a97;}['_setupKeyboardNavigation'](){const _0x5d73c2=this['element'];this['keystrokes']['listenTo'](_0x5d73c2);for(const _0x31e86e of this['focusables'])this['focusTracker']['add'](_0x31e86e['element']),this['keystrokes']['listenTo'](_0x31e86e['element']);this['keystrokes']['set']('enter',(_0x1685ff,_0x71dc9b)=>{_0x5d73c2===_0x1685ff['target']&&(this['focusCycler']['focusFirst'](),_0x71dc9b());}),this['keystrokes']['set']('esc',(_0x164c44,_0x4d4027)=>{_0x5d73c2!==_0x164c44['target']&&(this['focus'](),_0x4d4027());});}}class u extends _0x3d208b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x4335da,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1bf319){super(_0x1bf319),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x11b053=this['editor']['config'];_0x11b053['define']('trackChanges.SuggestionThreadView',fe),_0x11b053['define']('trackChanges.SuggestionView',we),_0x11b053['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x11b053['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2c3ab4,_0x45424c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4539f0,_0x3847c2]of this['_handleControllerBuffer']){const _0x381f76=this['_suggestionToController']['has'](_0x4539f0);_0x381f76||_0x3847c2?_0x381f76&&_0x3847c2&&this['_destroyController'](_0x4539f0):this['_initializeController'](_0x4539f0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2c3ab4,_0x45424c);}['init'](){const _0x4d0909=this['editor'],_0x36b26f=_0x4d0909['plugins']['get']('TrackChangesEditing'),_0x21327a=_0x4d0909['plugins']['get']('Annotations'),_0x328262=_0x4d0909['plugins']['get']('EditorAnnotations'),_0x3257cd=_0x4d0909['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x328262['addSourceCollector'](()=>{const _0x210574=[];for(const [_0x307771,_0x140266]of Array['from'](this['_suggestionToController'])){const _0x3876de=_0x307771['getAllAdjacentSuggestions'](),_0x30881f=[];for(const _0x3c1feb of _0x3876de){if(!_0x3c1feb['isInContent'])continue;if(_0x3c1feb['isMultiRange']){_0x30881f['push'](..._0x3c1feb['getRanges']());continue;}const _0x3ba25f=_0x3c1feb['getFirstRange']();if(_0x30881f['length']>0x0){const _0x278d7a=_0x30881f[0x0]['getJoined'](_0x3ba25f);if(_0x278d7a){_0x30881f[0x0]=_0x278d7a;continue;}}_0x30881f['push'](_0x3ba25f);}_0x210574['push']([_0x140266['view'],_0x30881f]);}return _0x210574;}),this['listenTo'](_0x36b26f,'suggestionLoaded',(_0x4a2041,_0x1d2e1e)=>{this['listenTo'](_0x1d2e1e,'change:previous',(_0x8a04e9,_0x424108,_0x504d9d,_0x507773)=>{_0x1d2e1e['isInContent']&&(null==_0x504d9d?(this['_updateController'](_0x507773['head']),this['_handleSuggestionControllerDelayed'](_0x1d2e1e,!0x1)):(this['_updateController'](_0x504d9d['head']),null==_0x507773&&this['_handleSuggestionControllerDelayed'](_0x1d2e1e,!0x0)));}),null!==_0x1d2e1e['previous']?this['_updateController'](_0x1d2e1e['head']):this['_handleSuggestionControllerDelayed'](_0x1d2e1e,!0x1);}),this['listenTo'](_0x36b26f,'suggestionUnloaded',(_0xe1d0b,_0x17df48,_0x3d8751)=>{this['stopListening'](_0x17df48,'change:previous'),this['_handleControllerBuffer']['delete'](_0x17df48),this['_suggestionToController']['has'](_0x17df48)&&this['_destroyController'](_0x17df48),_0x3d8751&&this['_updateController'](_0x3d8751['head']);}),this['listenTo'](_0x36b26f,'suggestionChanged',(_0x2ffcdc,_0x25cea4)=>{this['_updateController'](_0x25cea4);}),this['listenTo'](_0x21327a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3257cd,'addComment',(_0x9ccf51,{threadId:_0x4a944c,isFromAdapter:_0x248495})=>{if(_0x248495||!_0x36b26f['hasSuggestion'](_0x4a944c))return;const _0x29eec8=_0x36b26f['getSuggestion'](_0x4a944c);this['_suggestionToController']['get'](_0x29eec8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x431892=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e6496;for(const _0x537bff in _0x431892){const _0xb3f4dc=_0x537bff,_0x574b22=_0x431892[_0xb3f4dc];if('trackChangesLicenseKeyValid'==_0x574b22||'trackChangesLicenseKeyInvalid'==_0x574b22||'trackChangesLicenseKeyExpired'==_0x574b22||'trackChangesLicenseKeyDomainLimit'==_0x574b22||'trackChangesLicenseKeyNotAllowed'==_0x574b22||'trackChangesLicenseKeyEvaluationLimit'==_0x574b22||'trackChangesLicenseKeyTrialLimit'==_0x574b22||'trackChangesLicenseKeyUsageLimit'==_0x574b22){delete _0x431892[_0xb3f4dc],_0x2e6496=_0x574b22,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2e6496&&_0x431892['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2e6496&&_0x431892['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2e6496&&_0x431892['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2e6496&&_0x431892['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2e6496&&_0x431892['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2e6496&&_0x431892['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2e6496&&_0x431892['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x6b06e4){const _0x56c603=this['_suggestionToController']['get'](_0x6b06e4);if(!_0x56c603)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x56c603['view'])||null;}['getSuggestionForAnnotation'](_0x39cdcc){const _0x1bcc59=this['_viewToController']['get'](_0x39cdcc['innerView']);return _0x1bcc59?_0x1bcc59['model']:null;}['_refreshActiveMarkers'](){const _0x18ab1e=this['editor']['plugins']['get']('Annotations'),_0x2732ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aa668=Array['from'](_0x18ab1e['activeAnnotations'],_0x5638b4=>_0x5638b4['innerView'])['filter'](_0x56754d=>this['_viewToController']['has'](_0x56754d)),_0x2a8194=[];for(const _0x488dcb of _0x1aa668){const _0x444e9=this['_viewToController']['get'](_0x488dcb)['model']['getAllAdjacentSuggestions']();_0x2a8194['push'](..._0x444e9['reduce']((_0x32bce6,_0x2f2721)=>[..._0x32bce6,..._0x2f2721['getMarkerNames']()],[]));}_0x2732ac['activeMarkers']=_0x2a8194;}['_addUIComponentsToFactory'](){const _0x54de2a=this['editor'],_0x58310b=_0x54de2a['locale'],_0xb76f2f=o(_0x58310b,'Track\x20changes'),_0xbcf681=new _0x34cbff([{'type':'switchbutton','model':new _0x5d3757({'withText':!0x0,'isToggleable':!0x0,'label':_0xb76f2f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5d3757({'withText':!0x0,'label':o(_0x58310b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5d3757({'withText':!0x0,'label':o(_0x58310b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5d3757({'withText':!0x0,'label':o(_0x58310b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5d3757({'withText':!0x0,'label':o(_0x58310b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x54de2a['plugins']['has']('TrackChangesPreview')&&_0xbcf681['addMany']([{'type':'separator'},{'type':'button','model':new _0x5d3757({'withText':!0x0,'label':o(_0x58310b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x473304 of _0xbcf681)if(ke(_0x473304)){const _0x92c3b3=_0x54de2a['commands']['get'](_0x473304['model']['commandName']);_0x473304['model']['bind']('isOn','isEnabled')['to'](_0x92c3b3,'value','isEnabled');}_0x54de2a['ui']['componentFactory']['add']('trackChanges',_0x49bff4=>this['_createToolbarButton'](_0x49bff4,_0xbcf681,_0xb76f2f)),_0x54de2a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3547a3=>this['_createMenuBarMenu'](_0x3547a3,_0xbcf681,_0xb76f2f));}['_createToolbarButton'](_0x12fcf5,_0x5ad0b4,_0x4a1f95){const _0x2e3188=_0x2da83a(_0x12fcf5,_0x28ed6f),_0x37b8d7=this['editor']['commands']['get']('trackChanges');_0x2e3188['buttonView']['set']({'tooltip':_0x4a1f95,'label':_0x4a1f95,'icon':_0x4d0e44}),_0x2e3188['buttonView']['bind']('isOn')['to'](_0x37b8d7,'value'),_0x2e3188['buttonView']['on']('execute',()=>{_0x37b8d7['execute'](),this['editor']['editing']['view']['focus']();}),_0x121e7b(_0x2e3188,_0x5ad0b4,{'role':'menu'});const _0x3a9963=[];for(const _0x528d01 of _0x5ad0b4)ke(_0x528d01)&&_0x3a9963['push'](this['editor']['commands']['get'](_0x528d01['model']['commandName']));const _0x147891=_0x2e3188['buttonView'];return _0x147891['actionView']['unbind']('isEnabled'),_0x147891['arrowView']['unbind']('isEnabled'),_0x147891['actionView']['bind']('isEnabled')['to'](_0x37b8d7,'isEnabled'),_0x147891['arrowView']['bind']('isEnabled')['toMany'](_0x3a9963,'isEnabled',(..._0x5c58ca)=>_0x5c58ca['some'](_0x4e64db=>_0x4e64db)),_0x2e3188['on']('execute',_0x4ad520=>{this['editor']['execute'](_0x4ad520['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e3188;}['_createMenuBarMenu'](_0x2d1c54,_0xc053d4,_0x1d0404){const _0x56488b=new _0x213aca(_0x2d1c54),_0x3ae8fb=this['editor']['commands']['get']('trackChanges');_0x56488b['buttonView']['set']({'label':_0x1d0404,'icon':_0x4d0e44});const _0x581fcb=new _0x23b1e2(_0x2d1c54);for(const _0x1a9ab8 of _0xc053d4){if('separator'==_0x1a9ab8['type']){_0x581fcb['items']['add'](new _0x49d392(_0x2d1c54));continue;}const _0x5509be=new _0x4766bd(_0x2d1c54,_0x56488b),_0x88b66f=new _0xacdab(_0x2d1c54),_0x24f2df=_0x1a9ab8['model'];_0x88b66f['bind'](...Object['keys'](_0x24f2df))['to'](_0x24f2df),_0x88b66f['delegate']('execute')['to'](_0x56488b),_0x88b66f['on']('execute',()=>{this['editor']['execute'](_0x24f2df['commandName']),this['editor']['editing']['view']['focus']();}),_0x5509be['children']['add'](_0x88b66f),_0x581fcb['items']['add'](_0x5509be);}return _0x56488b['bind']('isEnabled')['to'](_0x3ae8fb,'isEnabled'),_0x56488b['panelView']['children']['add'](_0x581fcb),_0x56488b;}['_initializeController'](_0x3e18b1){const _0x558a48=this['editor'],_0x5c5412=_0x558a48['config'],_0x93e95a=_0x558a48['plugins']['get']('Annotations'),_0x44141e=_0x558a48['plugins']['get']('CommentsRepository'),_0xd775e1=_0x558a48['plugins']['get']('EditorAnnotations'),_0x4ed79f=_0x558a48['plugins']['get'](_0x4335da)['me'],_0x137dc5=_0x5c5412['get']('trackChanges')['SuggestionThreadView'],_0x1dd50c=_0x5c5412['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xb98149,CommentThreadInputView:_0x31b2a7}=_0x558a48['plugins']['get']('CommentsUI');let _0x285492,_0x27063b,_0x1a774b;this['_annotationViews']['has'](_0x3e18b1['id'])?(_0x27063b=this['_annotationViews']['get'](_0x3e18b1['id']),_0x285492=_0x27063b['mainView']):(_0x285492=new _0x137dc5(_0x558a48['locale'],_0x3e18b1,_0x4ed79f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5c5412['get']('comments.editorConfig'),'licenseKey':_0x5c5412['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5c5412['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5c5412['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5c5412['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2aee10(_0x5c5412['get']('locale'),_0x558a48['locale']),'CommentView':_0x5c5412['get']('comments')['CommentView'],'CommentsListView':_0xb98149,'CommentThreadInputView':_0x31b2a7,'SuggestionView':_0x1dd50c}),_0x285492['suggestionView']['acceptButton']['on']('execute',()=>{_0x558a48['editing']['view']['focus']();}),_0x285492['suggestionView']['discardButton']['on']('execute',()=>{_0x558a48['editing']['view']['focus']();}),_0x27063b=_0x93e95a['createAnnotationView'](this['editor']['locale'],_0x285492),_0x27063b['bind']('isDirty')['to'](_0x285492,'isDirty'),_0x27063b['bind']('length')['to'](_0x285492),_0x27063b['bind']('type')['to'](_0x285492,'type',_0x234d5d=>'suggestion-'+_0x234d5d),_0x285492['on']('escape',()=>{_0x1a774b['fire']('escape');}),this['_annotationViews']['set'](_0x3e18b1['id'],_0x27063b));const _0x4fb907=_0x44141e['createCommentThreadController'](_0x3e18b1['commentThread'],_0x285492),_0x507117=new pe(_0x558a48,_0x3e18b1,_0x285492,_0x4fb907),_0x3c6ac4=_0x3e18b1['getAllAdjacentSuggestions']()['filter'](_0x138896=>_0x138896['isInContent']);_0x285492['descriptionParts']=_0x558a48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3c6ac4),this['_suggestionToController']['set'](_0x3e18b1,_0x507117),this['_viewToController']['set'](_0x285492,_0x507117);const _0x2af53a=()=>{const _0x2c9438=[],_0x106fc5=_0x3e18b1['getAllAdjacentSuggestions']()['filter'](_0x56c10f=>_0x56c10f['isInContent']);for(const _0x2c3ad5 of _0x106fc5)_0x2c9438['push'](..._0x2c3ad5['getMarkers']());return _0x105672(_0x558a48['editing'],_0x2c9438);};_0x1a774b=_0x93e95a['createAnnotation']({'view':_0x27063b,'target':_0x2af53a,'type':()=>'suggestion-'+_0x507117['view']['type'],'isVisible':!!_0x2af53a()}),_0x44141e['_bindAnnotationToEditors'](_0x285492,_0x1a774b),_0x93e95a['add'](_0x1a774b),_0xd775e1['registerAnnotation'](_0x1a774b);}['_destroyController'](_0x49d3a7){const _0x217409=this['editor']['plugins']['get']('CommentsRepository'),_0x70920f=this['editor']['plugins']['get']('Annotations'),_0x40147f=this['_suggestionToController']['get'](_0x49d3a7),_0x32c336=_0x40147f['view'],_0x5ed22b=_0x70920f['getByInnerView'](_0x32c336);_0x217409['_unbindEditors'](_0x32c336),_0x5ed22b&&_0x70920f['remove'](_0x5ed22b),this['_suggestionToController']['delete'](_0x49d3a7),this['_viewToController']['delete'](_0x32c336),_0x40147f['destroy']();}['_updateController'](_0x28eeb9){if(!_0x28eeb9['isInContent']||!this['_suggestionToController']['has'](_0x28eeb9))return;const _0x15e855=this['editor']['plugins']['get']('TrackChangesEditing'),_0x502f35=this['_suggestionToController']['get'](_0x28eeb9),_0x1e4278=_0x28eeb9['getAllAdjacentSuggestions']();_0x502f35['view']['descriptionParts']=_0x15e855['descriptionFactory']['getDescriptions'](_0x1e4278);}['destroy'](){for(const _0x2af522 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2af522);for(const _0x39f42d of this['_annotationViews']['values']())_0x39f42d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x17cfc4){return'model'in _0x17cfc4;}class Fe extends _0x3d208b{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x40625c){this['editor']['plugins']['get'](d)['adapter']=_0x40625c;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x57296b){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x57296b);}['getSuggestions']({skipNotAttached:_0x164df2=!0x1,toJSON:_0x54fe50=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x164df2,'toJSON':_0x54fe50});}['getSuggestion'](_0x3517b5){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x3517b5);}}const p=['Pagination'];class re extends _0x3d208b{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x12d2d6=this['editor'];if(_0x12d2d6['config']['define']('trackChangesData.editorCreator',_0x45808d=>{const _0x11cd9f=_0x12d2d6['model']['document']['getRootNames']()['reduce']((_0x4eac07,_0x203ac1)=>(_0x4eac07[_0x203ac1]='',_0x4eac07),{});return _0x12d2d6['constructor']['create'](_0x11cd9f,_0x45808d);}),'function'!=typeof _0x12d2d6['config']['get']('trackChangesData')['editorCreator'])throw new _0x7b7a91('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x175a14){return P(this['editor'],!0x0,_0x175a14);}['getDataWithDiscardedSuggestions'](_0x5ad041){return P(this['editor'],!0x1,_0x5ad041);}}class Ge extends _0x3d208b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29a840){function _0x2ef745(_0x280684){return _0x280684['map'](_0x3bf540=>String['fromCharCode'](_0x3bf540))['join']('');}super(_0x29a840),this['result']='end',_0x29a840[_0x2ef745([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ef745([0x76,0x69,0x65,0x77])][_0x2ef745([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ef745([0x61,0x75,0x74,0x6f]),_0x29a840[_0x2ef745([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2ef745([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ef745([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2ef745([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2ef745([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 He(_0x2d427c){return void 0x0!==_0x2d427c['getRootsAttributes'];}async function P(_0x4c6858,_0x53145e,_0x372f1f){const _0x4845a1=_0x1239bc(_0x4c6858,p);_0x4845a1['plugins']['push'](d,Ge),_0x4845a1['rootsAttributes']=He(_0x4c6858)?_0x4c6858['getRootsAttributes']():void 0x0;const _0x143410=document['createDocumentFragment'](),_0x4958e5=_0x4c6858['config']['get']('trackChangesData')['editorCreator'],_0x569d12=await _0x4958e5(_0x4845a1,()=>function(_0x481782){const _0x34beb2=document['createElement']('div');return _0x481782['appendChild'](_0x34beb2),_0x34beb2;}(_0x143410));!function(_0x48d48b,_0x5d33d9){const _0xd6426b=_0x48d48b['model']['document']['getRootNames']()['reduce']((_0x121b9f,_0x57ed72)=>(_0x121b9f[_0x57ed72]=_0x48d48b['data']['get']({'rootName':_0x57ed72}),_0x121b9f),{}),_0x1ae1d0=_0x48d48b['plugins']['get']('Users')['users']['map'](_0x4edcdb=>({'id':_0x4edcdb['id'],'name':_0x4edcdb['name']})),_0x1226dd=_0x48d48b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x50927c=_0x48d48b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x284667=_0x5d33d9['plugins']['get']('Users'),_0x482363=_0x5d33d9['plugins']['get']('TrackChangesEditing'),_0x51c6d6=_0x5d33d9['plugins']['get']('CommentsRepository');for(const _0xa3635b of _0x51c6d6['getCommentThreads']())_0xa3635b['remove']();for(const _0x58e436 of _0x1ae1d0)_0x284667['getUser'](_0x58e436['id'])||_0x284667['addUser'](_0x58e436);_0x284667['me']||_0x284667['useAnonymousUser']();for(const _0x4f6b59 of _0x50927c)_0x51c6d6['addCommentThread'](_0x4f6b59);for(const _0x44c8f2 of _0x1226dd)_0x482363['addSuggestionData'](_0x44c8f2);_0x5d33d9['data']['set'](_0xd6426b);}(_0x4c6858,_0x569d12),_0x569d12['execute'](_0x53145e?'acceptAllSuggestions':'discardAllSuggestions');const _0x13b22a=He(_0x569d12)?_0x569d12['getFullData'](_0x372f1f):_0x569d12['data']['get'](_0x372f1f);return await _0x569d12['destroy'](),_0x13b22a;}class Me extends _0x10f678{['options'];constructor(_0x57a4cf,_0x47c78e){super(_0x57a4cf),this['options']=_0x47c78e,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'](_0x1e476a,_0x4d482b){if(!this['element'])return;const _0x1536e2=[];for(const [_0x74a0b9,_0x13364b]of _0x1e476a){const _0x264428=document['createElement']('div');_0x264428['setAttribute']('data-ck-root-name',_0x74a0b9),_0x264428['className']=_0x13364b['classes']+'\x20ck-track-changes-preview__root-container',_0x264428['innerHTML']=_0x13364b['content'],_0x1536e2['push'](_0x264428);}_0x4d482b(this['element'],_0x1536e2),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0xa6b2bc{constructor(_0x20888b){super(_0x20888b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4100a4=this['editor'],_0x234003=_0x4100a4['locale'],_0x5e3fff=_0x4100a4['plugins']['get']('Dialog');let _0x31a360;const _0x271049=function(_0x4d7acf){const _0x3a3a98={};if('editables'in _0x4d7acf['ui']['view']){for(const [_0x51e31e,_0x43f304]of Object['entries'](_0x4d7acf['ui']['view']['editables']))_0x3a3a98[_0x51e31e]=_0x43f304['element'];}else _0x3a3a98[_0x4d7acf['model']['document']['getRootNames']()[0x0]]=_0x4d7acf['ui']['view']['editable']['element'];return _0x3a3a98;}(_0x4100a4),_0x2df69=function(_0x7757a9){let _0x36dd1e=0x0;for(const _0x16df9a of Object['values'](_0x7757a9))_0x36dd1e=Math['max'](_0x36dd1e,_0x16df9a['getBoundingClientRect']()['width']);let _0x3a55be=0x0;for(const _0x57ddad of Object['values'](_0x7757a9))_0x3a55be+=_0x57ddad['getBoundingClientRect']()['height'];const _0x8a9285=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x418ef1=Math['min'](_0x3a55be,_0x8a9285);return{'width':_0x36dd1e,'height':_0x418ef1};}(_0x271049);_0x5e3fff['show']({'id':'finalContentPreview','title':o(_0x234003,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x234003,{'dialogRects':_0x2df69}),'onHide':()=>{_0x31a360['detachFromDom']();},'onShow':()=>{_0x4100a4['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4856b9=>{const _0x3ab0b0=this['_standarizeRootsData'](_0x4856b9,_0x4100a4,_0x271049);_0x5e3fff['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3ab0b0,_0x4100a4['config']['get']('trackChanges.preview.renderFunction'));}),_0x31a360=new _0xf2f5d8(_0x234003,[_0x5e3fff['view']]),_0x31a360['attachToDom'](),_0x31a360['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4100a4['once']('destroy',()=>{_0x31a360['detachFromDom']();});const _0x5f0198=_0x5e3fff['view']['headerView']['class'];_0x5e3fff['view']['headerView']['class']=_0x5f0198?_0x5f0198+'\x20ck-reset_all':'ck-reset_all',_0x5e3fff['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5e3fff['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x12bdc9=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5ad8ab=_0x12bdc9['previewMode'],_0x156d4f={};if('$labels'===_0x5ad8ab){for(const _0x1b985e of _0x12bdc9['getMergeFieldsIds']())_0x156d4f[_0x1b985e]=_0x12bdc9['getLabel'](_0x1b985e)||_0x1b985e;}else{const _0x495e2f='$defaultValues'===_0x5ad8ab?_0x12bdc9['getDefaultValues']():_0x12bdc9['getDataSetValues'](_0x5ad8ab,!0x0);for(const _0x8a58f4 of Object['entries'](_0x495e2f)){const [_0x1dfd3f,_0x308a02]=_0x8a58f4;_0x156d4f[_0x1dfd3f]=null!==_0x308a02?_0x308a02:_0x12bdc9['getLabel'](_0x1dfd3f)||_0x1dfd3f;}}return{'mergeFieldsData':_0x156d4f};}['_standarizeRootsData'](_0x54d2d6,_0x257fc3,_0x33aea0){let _0x13601d;if('string'==typeof _0x54d2d6){const _0x41f985=_0x257fc3['model']['document']['getRootNames']()[0x0];_0x13601d={[_0x41f985]:_0x54d2d6};}else _0x13601d=_0x54d2d6;const _0x5bee4c=this['_fixMediaEmbeds'](_0x13601d,_0x257fc3),_0x372ffe=function(_0x3b66d7,_0x9a2a5e){for(const [_0x2f2b34,_0x5ea36b]of _0x3b66d7)_0x5ea36b['classes']=_0x9a2a5e[_0x2f2b34]['classList']['value']['replace']('ck-focused','');return _0x3b66d7;}(this['_sortRoots'](_0x257fc3)['reduce']((_0x2b8712,_0x2ac6e0)=>(_0x2b8712['push']([_0x2ac6e0,{'content':_0x5bee4c[_0x2ac6e0],'classes':''}]),_0x2b8712),[]),_0x33aea0);return _0x372ffe;}['_fixMediaEmbeds'](_0x4197a3,_0x1e69d7){if(!_0x1e69d7['plugins']['has']('MediaEmbedEditing'))return _0x4197a3;const _0x337c31=_0x1e69d7['plugins']['get']('MediaEmbedEditing');for(const [_0x1211f3,_0x4fc2eb]of Object['entries'](_0x4197a3)){const _0x105ca1=document['createElement']('div');_0x105ca1['innerHTML']=_0x4fc2eb,(_0x105ca1['querySelectorAll']('figure.media')['forEach'](_0x3f038c=>{const _0x5437dc=_0x3f038c['querySelector']('oembed');if(_0x5437dc){const _0x5bb1e9=_0x5437dc['getAttribute']('url');if(_0x5bb1e9){const _0x4c12d8=_0x337c31['registry']['getMediaViewElement'](new _0x564624(_0x1e69d7['editing']['view']['document']),_0x5bb1e9,{'elementName':'','renderForEditingView':!0x0}),_0xdf247f=document['createElement']('div');_0xdf247f['classList']['add']('ck-media__wrapper'),_0x4c12d8['render'](_0xdf247f,_0x1e69d7['editing']['view']['domConverter']),_0x5437dc['replaceWith'](_0xdf247f);}}}),_0x4197a3[_0x1211f3]=_0x105ca1['innerHTML']);}return _0x4197a3;}['_sortRoots'](_0x446e8c){if(!function(_0x5245c0){return void 0x0!==_0x5245c0['getRootsAttributes'];}(_0x446e8c))return _0x446e8c['model']['document']['getRootNames']();const _0x25cf3d=[],_0x316a4f=new Map();for(const _0xdcf5f1 of _0x446e8c['model']['document']['getRootNames']()){const _0x5ae073=_0x446e8c['editing']['view']['getDomRoot'](_0xdcf5f1)['getClientRects']()['item'](0x0);_0x25cf3d['push'](_0xdcf5f1),_0x316a4f['set'](_0xdcf5f1,_0x5ae073);}return _0x25cf3d['sort']((_0x5bdf17,_0x1ce08c)=>{const _0x2d9164=_0x316a4f['get'](_0x5bdf17),_0x3271e1=_0x316a4f['get'](_0x1ce08c);return _0x2d9164['y']-_0x3271e1['y']||_0x2d9164['x']-_0x3271e1['x'];}),_0x25cf3d;}}class $e extends _0x3d208b{static get['requires'](){return[re,_0x3f7df2];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x135542){super(_0x135542),_0x135542['commands']['add']('previewFinalContent',new te(this['editor'])),_0x135542['config']['define']('trackChanges.preview.renderFunction',(_0x473411,_0xc98260)=>{for(const _0x4bc78b of _0xc98260)_0x473411['appendChild'](_0x4bc78b);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|