@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20251025.0 → 0.0.0-nightly-20251026.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +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
|
-
_0x2def01(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x329bbd,_0x59b4ae){super(),this['id']=_0x59b4ae['id'],this['type']=_0x59b4ae['type'],this['subType']=_0x59b4ae['subType']||null,this['author']=_0x59b4ae['author'],this['creator']=_0x59b4ae['creator']||_0x59b4ae['author'],this['isExternal']=Boolean(_0x59b4ae['attributes']&&_0x59b4ae['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x59b4ae['originalSuggestionId']||null,this['_model']=_0x329bbd,this['_onAccept']=_0x59b4ae['onAccept'],this['_onDiscard']=_0x59b4ae['onDiscard'],this['_onAttributesChange']=_0x59b4ae['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x59b4ae['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 _0x9143bf=this;for(;_0x9143bf['previous'];)_0x9143bf=_0x9143bf['previous'];return _0x9143bf;}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'](_0x21f91f){this['_markerNames']['add'](_0x21f91f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3d561c=>this['_model']['markers']['get'](_0x3d561c))['filter'](_0x5dfb11=>_0x5dfb11);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4c6a0b=>{for(const _0x164a1c of this['getMarkers']())_0x4c6a0b['removeMarker'](_0x164a1c);}),this['_markerNames']['clear']();}['removeMarker'](_0x3826df){this['_model']['change'](_0xe47cb3=>{_0xe47cb3['removeMarker'](_0x3826df);}),this['_markerNames']['delete'](_0x3826df);}['addRange'](_0x27507d){const _0x199664='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x199664),this['_model']['change'](_0x2a0b2f=>{_0x2a0b2f['addMarker'](_0x199664,{'range':_0x27507d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xf3423){for(const _0x34806f of this['getRanges']())if(_0x34806f['isIntersecting'](_0xf3423))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2dc87a=>_0x2dc87a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x25f60d,_0x272de0)=>[..._0x25f60d,..._0x272de0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x11e719=this['getRanges']();if(0x1!=_0x11e719['length'])return null;const _0x30d789=_0x11e719[0x0],_0x4b4dd3=_0x30d789['start']['nodeAfter'],_0x203e32=_0x30d789['end']['nodeBefore'];return _0x4b4dd3 instanceof _0xe96edb?_0x4b4dd3!=_0x203e32?null:_0x4b4dd3: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 _0x545aab=[];let _0x3a025e=this['head'];for(;_0x3a025e;)_0x545aab['push'](_0x3a025e),_0x3a025e=_0x3a025e['next'];return _0x545aab;}['setAttribute'](_0x2a65a5,_0x15d19e){const _0x29e0eb=_0x2805a7(this['attributes']);_0x311620(_0x29e0eb,_0x2a65a5,_0x15d19e),_0x5578d7(_0x29e0eb,this['attributes'])||(this['attributes']=_0x29e0eb,this['_onAttributesChange'](_0x29e0eb));}['removeAttribute'](_0x58b8ea){const _0x5c5530=_0x2805a7(this['attributes']);_0x27aff4(_0x5c5530,_0x58b8ea),_0x5578d7(_0x5c5530,this['attributes'])||(this['attributes']=_0x5c5530,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 _0x3caa75()['substr'](0x1,0x5);}}function o(_0x50a1b8,_0x3e065d,_0x39d5db){const _0x525fd2=_0x50a1b8['t'],t=_0x50a1b8['t'];switch(_0x3e065d){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',_0x39d5db);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x39d5db);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x39d5db);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x39d5db);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x39d5db);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',_0x39d5db);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x39d5db);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',_0x39d5db);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x39d5db);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x39d5db);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x39d5db);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x39d5db);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x39d5db);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x39d5db);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x39d5db);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x39d5db);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x39d5db);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x39d5db);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x39d5db);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x39d5db);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x39d5db);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x39d5db);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x39d5db);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x39d5db);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x39d5db);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'},_0x39d5db);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x39d5db);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x39d5db);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x39d5db);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x39d5db);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x39d5db);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x39d5db);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x39d5db);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'},_0x39d5db);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x39d5db);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x39d5db);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x39d5db);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x39d5db);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'},_0x39d5db);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x39d5db);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'},_0x39d5db);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'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x39d5db);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x39d5db);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'},_0x39d5db);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x39d5db);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'},_0x39d5db);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x39d5db);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x39d5db);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x39d5db);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x39d5db);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x39d5db);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'},_0x39d5db);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x39d5db);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 _0x525fd2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x39d5db);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x525fd2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x39d5db);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x39d5db);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'},_0x39d5db);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'},_0x39d5db);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'},_0x39d5db);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3e065d;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1a603d,_0x202be4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1a603d,this['_locale']=_0x202be4;}['getDescriptions'](_0xbcd0d3){const _0x32fafc=[],_0x563ae9=new Set(),_0x117e22=new Set();for(let _0x24a77e=0x0;_0x24a77e<_0xbcd0d3['length'];_0x24a77e++){const _0x195ff7=_0xbcd0d3[_0x24a77e];if(!_0x195ff7['isInContent'])continue;const _0x532115=this['_handleCustomCallbackDescription'](_0x195ff7);if(_0x532115){if(null!=_0x195ff7['subType']){if(_0x563ae9['has'](_0x195ff7['subType']))continue;_0x563ae9['add'](_0x195ff7['subType']);}_0x32fafc['push'](_0x532115);}else{if('attribute'==_0x195ff7['type']){const _0x44b1ad=_0x195ff7['data']['key'];if(_0x117e22['has'](_0x44b1ad))continue;_0x117e22['add'](_0x195ff7['data']['key']),_0x44b1ad==m?this['_handleRenameSuggestionDescription'](_0x32fafc,_0x195ff7):this['_handleAttributeSuggestionDescription'](_0x32fafc,_0x195ff7);continue;}'insertion'!=_0x195ff7['type']&&'deletion'!=_0x195ff7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x32fafc,_0x195ff7,_0xbcd0d3[_0x24a77e+0x1]);}}return this['_resolveDescriptionItems'](_0x32fafc);}['registerDescriptionCallback'](_0x299785){this['_customCallbacks']['push'](_0x299785);}['registerElementLabel'](_0x32a3f8,_0x3d3490,_0xe51fec=_0x35714c['normal']){'function'==typeof _0x32a3f8?_0x3b3637(this['_itemLabelsCallbacks'],{'matchingCallback':_0x32a3f8,'label':_0x3d3490,'priority':_0xe51fec}):this['_itemLabels']['set'](_0x32a3f8,_0x3d3490);}['registerAttributeLabel'](_0x422640,_0x2c2801){this['_attributeLabels']['set'](_0x422640,_0x2c2801);}['getItemLabel'](_0x43e6c2,_0xc3bcd5=0x1){let _0x584eaf;for(const _0x2465ca of this['_itemLabelsCallbacks'])if(_0x2465ca['matchingCallback'](_0x43e6c2)){_0x584eaf=_0x2465ca['label'];break;}return _0x584eaf||(_0x584eaf=this['_itemLabels']['get'](_0x43e6c2['name'])),_0x584eaf?_0x584eaf(_0xc3bcd5):0x1!==_0xc3bcd5?_0xc3bcd5+'\x20'+_0x43e6c2['name']+'s':''+_0x43e6c2['name'];}['_addDescriptionItems'](_0x261da0,_0x9f3a6d){const _0x4ad81f=_0x9f3a6d['getFirstRange']()['getWalker'](),_0x21a9d5='insertion'==_0x9f3a6d['type']?'add':'remove';for(const _0x4aa888 of _0x4ad81f){const _0x25008d=_0x4aa888['item'],_0x117864=_0x261da0[_0x261da0['length']-0x1];if(_0x25008d['is']('$textProxy'))_0x117864&&_0x117864['type']['indexOf']('Container')>-0x1&&_0x261da0['pop'](),_0x117864&&'text'==_0x117864['type']?_0x117864[_0x21a9d5]+=_0x25008d['data']:_0x261da0['push']({'type':'text','add':'add'==_0x21a9d5?_0x25008d['data']:'','remove':'remove'==_0x21a9d5?_0x25008d['data']:''});else{if(this['_schema']['isObject'](_0x25008d)){const _0x2e7ae0=_0x25008d;if(_0x117864&&_0x117864['type']['indexOf']('Container')>-0x1&&_0x261da0['pop'](),'elementEnd'==_0x4aa888['type'])continue;_0x117864&&_0x117864['type']==_0x21a9d5+'Object'&&_0x117864['element']['name']==_0x2e7ae0['name']?_0x117864['quantity']++:_0x261da0['push']({'type':_0x21a9d5+'Object','element':_0x2e7ae0,'quantity':0x1}),_0x4ad81f['skip'](_0x392381=>!('elementEnd'==_0x392381['type']&&_0x392381['item']==_0x25008d));}else{if(this['_schema']['checkChild'](_0x25008d,'$text')||_0x25008d['is']('element','softBreak')){const _0x46f71e=_0x25008d;if('add'==_0x21a9d5&&'elementStart'==_0x4aa888['type']||'remove'==_0x21a9d5&&'elementEnd'==_0x4aa888['type'])continue;if(_0x117864&&-0x1==_0x117864['type']['indexOf']('Container')){'text'==_0x117864['type']&&(_0x117864[_0x21a9d5]+='\x0a');continue;}let _0x2ae3df;if(_0x2ae3df='add'==_0x21a9d5?_0x46f71e['nextSibling']&&!this['_schema']['isObject'](_0x46f71e['nextSibling'])?_0x46f71e['nextSibling']:null:_0x46f71e['previousSibling']&&!this['_schema']['isObject'](_0x46f71e['previousSibling'])?_0x46f71e['previousSibling']:null,_0x46f71e['isEmpty']||_0x2ae3df&&_0x2ae3df['isEmpty']){const _0x297259=_0x2ae3df&&_0x2ae3df['isEmpty']?_0x2ae3df:_0x46f71e;_0x117864&&_0x117864['type']==_0x21a9d5+'EmptyContainer'&&_0x117864['element']['name']==_0x297259['name']?_0x117864['quantity']++:_0x261da0['push']({'type':_0x21a9d5+'EmptyContainer','element':_0x297259,'quantity':0x1});}else _0x261da0['push']({'type':_0x21a9d5+'Container','element':_0x46f71e});}}}}}['_resolveDescriptionItems'](_0x46edcc){const _0x508840=this['_locale'],_0x27d3ad=[],_0x4c5d7b=[],_0x285cc4=[];for(const _0x1f4334 of _0x46edcc)switch(_0x1f4334['type']){case'text':if(_0x1f4334['add']=_0x1f4334['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1f4334['remove']=_0x1f4334['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1f4334['add']&&''!=_0x1f4334['remove']){_0x27d3ad['push']({'type':'replace','content':o(_0x508840,'REPLACE_TEXT',['\x22'+_0x1f4334['remove']+'\x22','\x22'+_0x1f4334['add']+'\x22'])});continue;}if(null!=_0x1f4334['add']['match'](/^ +$/)){_0x27d3ad['push']({'type':'insertion','content':o(_0x508840,'*Insert:*\x20%0',o(_0x508840,'ELEMENT_SPACE',_0x1f4334['add']['length']))});continue;}if(null!=_0x1f4334['remove']['match'](/^ +$/)){_0x27d3ad['push']({'type':'deletion','content':o(_0x508840,'*Remove:*\x20%0',o(_0x508840,'ELEMENT_SPACE',_0x1f4334['remove']['length']))});continue;}if(''!=_0x1f4334['add']){_0x27d3ad['push']({'type':'insertion','content':o(_0x508840,'*Insert:*\x20%0','\x22'+_0x1f4334['add']+'\x22')});continue;}_0x27d3ad['push']({'type':'deletion','content':o(_0x508840,'*Remove:*\x20%0','\x22'+_0x1f4334['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x27d3ad['push']({'type':'insertion','content':o(_0x508840,'*Insert:*\x20%0',this['getItemLabel'](_0x1f4334['element'],_0x1f4334['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x27d3ad['push']({'type':'deletion','content':o(_0x508840,'*Remove:*\x20%0',this['getItemLabel'](_0x1f4334['element'],_0x1f4334['quantity']))});continue;case'addContainer':_0x27d3ad['push']({'type':'insertion','content':o(_0x508840,'*Split:*\x20%0',this['getItemLabel'](_0x1f4334['element'],_0x1f4334['quantity']))});continue;case'removeContainer':_0x27d3ad['push']({'type':'deletion','content':o(_0x508840,'*Merge:*\x20%0',this['getItemLabel'](_0x1f4334['element'],_0x1f4334['quantity']))});continue;case'addFormat':_0x4c5d7b['push'](_0x1f4334['key']);continue;case'removeFormat':_0x285cc4['push'](_0x1f4334['key']);continue;default:_0x27d3ad['push'](_0x1f4334);}if(_0x4c5d7b['length']){const _0x458b4f=_0x4c5d7b['map'](_0x12f59f=>this['_attributeLabels']['has'](_0x12f59f)?this['_attributeLabels']['get'](_0x12f59f):_0x12f59f)['join'](',\x20');_0x27d3ad['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x458b4f)});}if(_0x285cc4['length']){const _0x516149=_0x285cc4['map'](_0x3804a5=>this['_attributeLabels']['has'](_0x3804a5)?this['_attributeLabels']['get'](_0x3804a5):_0x3804a5)['join'](',\x20');_0x27d3ad['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x516149)});}return _0x27d3ad;}['_handleCustomCallbackDescription'](_0x41b11f){for(const _0x4205de of this['_customCallbacks']){const _0x1a655c=_0x4205de(_0x41b11f);if(_0x1a655c&&'type'in _0x1a655c)return _0x1a655c;}}['_handleAttributeSuggestionDescription'](_0x416703,_0x336ae0){const _0x236f2b=_0x336ae0['data'],_0x555d24=void 0x0===_0x236f2b['newValue']?'removeFormat':'addFormat';_0x416703['push']({'type':_0x555d24,'key':_0x236f2b['key']});}['_handleRenameSuggestionDescription'](_0x1cca95,_0x4adf29){_0x1cca95['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4adf29['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2d3b5c,_0x61f67b,_0x34b974){if(this['_addDescriptionItems'](_0x2d3b5c,_0x61f67b),_0x34b974&&_0x34b974['getFirstRange']()&&!_0x61f67b['getFirstRange']()['end']['isEqual'](_0x34b974['getFirstRange']()['start'])){const _0x363e0f=_0x2d3b5c[_0x2d3b5c['length']-0x1],_0x56a471='insertion'==_0x61f67b['type']?'add':'remove';_0x363e0f&&'text'==_0x363e0f['type']&&(_0x363e0f[_0x56a471]+='\x0a');}}}class V extends _0x4e7f5a{['afterInit'](){const _0x4ba317=this['editor'],_0x199d0c=_0x4ba317['plugins']['get']('TrackChangesEditing');_0x4ba317['commands']['get']('showAIAssistant')&&_0x199d0c['enableCommand']('showAIAssistant');}}class F extends _0x4e7f5a{['afterInit'](){const _0x71b86=this['editor'],_0x488c30=_0x71b86['plugins']['get']('TrackChangesEditing');_0x71b86['commands']['get']('toggleAi')&&_0x488c30['enableCommand']('toggleAi');}}class G extends _0x4e7f5a{['afterInit'](){const _0x9ec0db=this['editor'],_0x89fd79=_0x9ec0db['plugins']['get']('TrackChangesEditing');_0x9ec0db['commands']['get']('aiQuickAction')&&_0x89fd79['enableCommand']('aiQuickAction');}}class L extends _0x4e7f5a{['afterInit'](){const _0x149134=this['editor'],_0x2aebea=_0x149134['locale'];if(!_0x149134['plugins']['has']('AlignmentEditing'))return;const _0x5d5d5b=_0x149134['plugins']['get']('TrackChangesEditing');_0x5d5d5b['enableDefaultAttributesIntegration']('alignment'),_0x5d5d5b['registerBlockAttribute']('alignment'),_0x5d5d5b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2aebea,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x253dca=this['editor'],_0x4a2bf2=_0x253dca['locale'];_0x253dca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3694c4=>{if('formatBlock'!=_0x3694c4['type'])return;const {data:_0x40bd5a}=_0x3694c4;if(_0x40bd5a&&'alignment'==_0x40bd5a['commandName']){const _0x475b5d=_0x40bd5a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4a2bf2,'*Format:*\x20%0',function(_0x2b5bcd){switch(_0x2b5bcd){case'left':return o(_0x4a2bf2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4a2bf2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4a2bf2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4a2bf2,'FORMAT_JUSTIFY_TEXT');}}(_0x475b5d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x4e7f5a{['afterInit'](){const _0x179f4b=this['editor'],_0x2c0693=_0x179f4b['plugins']['get']('TrackChangesEditing'),_0x26ded7=_0x179f4b['locale'];for(const _0x2ccec9 of ti){if(!_0x179f4b['plugins']['has'](_0x2ccec9))continue;const _0x1e68d7=_0x2ccec9['slice'](0x0,-0x7)['toLowerCase'](),_0x122097='FORMAT_'+_0x1e68d7['toUpperCase']();_0x2c0693['enableDefaultAttributesIntegration'](_0x1e68d7),_0x2c0693['registerInlineAttribute'](_0x1e68d7),_0x2c0693['descriptionFactory']['registerAttributeLabel'](_0x1e68d7,o(_0x26ded7,_0x122097));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2efe71=this['editor'],_0x41a71f=_0x2efe71['locale'],_0x2f9251=_0x2efe71['plugins']['get']('TrackChangesEditing');function _0x24759d(_0x5d9ab6,_0x1e2ca3){_0x2f9251['descriptionFactory']['registerDescriptionCallback'](_0x5f4da1=>{if('formatInline'!=_0x5f4da1['type'])return;const {data:_0x2d71ec}=_0x5f4da1;return _0x2d71ec&&_0x2d71ec['commandName']===_0x5d9ab6?_0x2d71ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41a71f,'*Format:*\x20%0',_0x1e2ca3)}:{'type':'format','content':o(_0x41a71f,'*Remove\x20format:*\x20%0',_0x1e2ca3)}:void 0x0;});}_0x24759d('bold',o(_0x41a71f,'FORMAT_BOLD')),_0x24759d('italic',o(_0x41a71f,'FORMAT_ITALIC')),_0x24759d('underline',o(_0x41a71f,'FORMAT_UNDERLINE')),_0x24759d('code',o(_0x41a71f,'FORMAT_CODE')),_0x24759d('strikethrough',o(_0x41a71f,'FORMAT_STRIKETHROUGH')),_0x24759d('subscript',o(_0x41a71f,'FORMAT_SUBSCRIPT')),_0x24759d('superscript',o(_0x41a71f,'FORMAT_SUPERSCRIPT'));}}class K extends _0x4e7f5a{['afterInit'](){const _0xdff9a9=this['editor'],_0x4b48ad=_0xdff9a9['locale'];if(!_0xdff9a9['plugins']['has']('BlockQuoteEditing'))return;const _0x2607b4=_0xdff9a9['plugins']['get']('TrackChangesEditing'),_0x3c0702=this['editor']['commands']['get']('blockQuote');_0x2607b4['enableCommand']('blockQuote',(_0x5cb493,_0x41e6a8={})=>{const _0x4efc73=this['editor']['model']['document']['selection'],_0x37c37b=_0x41e6a8&&void 0x0!==_0x41e6a8['forceValue']?_0x41e6a8['forceValue']:!_0x3c0702['value'];let _0x1c4af3=[];if(_0x37c37b){const _0x13dcb6=Array['from'](_0x4efc73['getSelectedBlocks']())['filter'](_0x11b163=>oo(_0x11b163)||function(_0x2cc2c1,_0x128cfa){const _0x361247=_0x128cfa['checkChild'](_0x2cc2c1['parent'],'blockQuote'),_0x3e2269=_0x128cfa['checkChild'](['$root','blockQuote'],_0x2cc2c1);return _0x361247&&_0x3e2269;}(_0x11b163,this['editor']['model']['schema']));_0x1c4af3=to(_0x13dcb6,_0xdff9a9['model']);}else{const _0x13c932=Array['from'](_0x4efc73['getSelectedBlocks']())['filter'](_0x52a214=>oo(_0x52a214));_0x1c4af3=to(_0x13c932,_0xdff9a9['model']);}_0xdff9a9['model']['change'](()=>{for(const _0x119741 of _0x1c4af3)_0x2607b4['markBlockFormat'](_0x119741,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x37c37b}]});});}),_0x2607b4['descriptionFactory']['registerDescriptionCallback'](_0x536f2b=>{const {data:_0x425d47}=_0x536f2b;if(_0x425d47&&'blockQuote'==_0x425d47['commandName']){const _0xedc421=o(_0x4b48ad,'ELEMENT_BLOCK_QUOTE');return _0x425d47['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b48ad,'*Set\x20format:*\x20%0',_0xedc421)}:{'type':'format','content':o(_0x4b48ad,'*Remove\x20format:*\x20%0',_0xedc421)};}});}}function oo(_0x20c324){return'blockQuote'==_0x20c324['parent']['name'];}class q extends _0x4e7f5a{['afterInit'](){const _0x4341ed=this['editor'],_0x4b2068=_0x4341ed['locale'],_0x693760=_0x4341ed['plugins']['get']('TrackChangesEditing');_0x4341ed['plugins']['has']('BookmarkEditing')&&(_0x693760['enableCommand']('insertBookmark'),_0x693760['enableDefaultAttributesIntegration']('updateBookmark'),_0x693760['registerBlockAttribute']('bookmarkId'),_0x693760['descriptionFactory']['registerDescriptionCallback'](_0x4d91b2=>{if('insertion'!=_0x4d91b2['type']&&'deletion'!=_0x4d91b2['type']&&'attribute'!=_0x4d91b2['type'])return;const _0x490fb7=_0x4d91b2['getContainedElement']();if(null==_0x490fb7)return;if(!_0x490fb7['is']('element','bookmark'))return;const _0x2a5a75=_0x490fb7['getAttribute']('bookmarkId');if('insertion'==_0x4d91b2['type'])return{'type':'insertion','content':o(_0x4b2068,'*Insert:*\x20%0','\x22'+_0x2a5a75+'\x22\x20'+o(_0x4b2068,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4d91b2['type'])return{'type':'deletion','content':o(_0x4b2068,'*Remove:*\x20%0','\x22'+_0x2a5a75+'\x22\x20'+o(_0x4b2068,'ELEMENT_BOOKMARK'))};const {data:_0x3158a2}=_0x4d91b2;if(!_0x3158a2||'bookmarkId'!=_0x3158a2['key'])return;return{'type':'format','content':o(_0x4b2068,'*Set\x20bookmark:*\x20%0','\x22'+_0x3158a2['newValue']+'\x22')};}));}}class H extends _0x4e7f5a{['afterInit'](){const _0x1a4b2f=this['editor'];_0x1a4b2f['plugins']['has']('CaseChange')&&(_0x1a4b2f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1a4b2f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1a4b2f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x4e7f5a{['afterInit'](){const _0x37c530=this['editor'];_0x37c530['commands']['get']('ckbox')&&_0x37c530['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x4e7f5a{['afterInit'](){const _0x27fcf6=this['editor'];if(!_0x27fcf6['plugins']['has']('CodeBlock'))return;const _0x3873ca=_0x27fcf6['plugins']['get']('TrackChangesEditing'),_0x457e02=_0x27fcf6['locale'],_0x1c8aa4=_0x27fcf6['config']['get']('codeBlock')['languages'],_0x3c7513=_0x27fcf6['commands']['get']('codeBlock');_0x3873ca['enableCommand']('indentCodeBlock'),_0x3873ca['enableCommand']('outdentCodeBlock'),_0x3873ca['enableCommand']('codeBlock',(_0x380e4c,_0x51cf5f={})=>{const _0x254090=_0x27fcf6['model'],_0x30e62b=_0x27fcf6['model']['document']['selection'],_0x5b7cf9=_0x51cf5f&&void 0x0!==_0x51cf5f['forceValue']?_0x51cf5f['forceValue']:!_0x3c7513['value'];let _0x1229ab;_0x51cf5f['language']||(_0x51cf5f['language']=_0x1c8aa4[0x0]['language']),_0x1229ab=_0x5b7cf9?Array['from'](_0x30e62b['getSelectedBlocks']())['filter'](_0x3d1d39=>co(_0x3d1d39)||function(_0x9da247,_0x8d212a){if(_0x9da247['is']('rootElement')||_0x8d212a['isLimit'](_0x9da247))return!0x1;return _0x8d212a['checkChild'](_0x9da247['parent'],'codeBlock');}(_0x3d1d39,_0x254090['schema'])):Array['from'](_0x30e62b['getSelectedBlocks']())['filter'](_0x4dc13b=>co(_0x4dc13b));const _0x3568aa=to(_0x1229ab,_0x254090);_0x254090['change'](()=>{for(const _0x2abfc2 of _0x3568aa)_0x3873ca['markBlockFormat'](_0x2abfc2,{'commandName':'codeBlock','commandParams':[{..._0x51cf5f,'forceValue':_0x5b7cf9}],'formatGroupId':'blockName'});});}),(_0x3873ca['descriptionFactory']['registerElementLabel']('codeBlock',_0x2ba8f1=>o(_0x457e02,'ELEMENT_CODE_BLOCK',_0x2ba8f1)),_0x3873ca['descriptionFactory']['registerDescriptionCallback'](_0x415fab=>{if('formatBlock'!=_0x415fab['type'])return;const _0x5e858c=_0x457e02['t'],{data:_0x3483a2}=_0x415fab;if(!_0x3483a2||'codeBlock'!=_0x3483a2['commandName'])return;const _0x2224bd=_0x3483a2['commandParams'][0x0]['language'],_0x162158=_0x5e858c(_0x1c8aa4['find'](_0x2f24ed=>_0x2f24ed['language']===_0x2224bd)['label'])['toLowerCase']();return _0x3483a2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x457e02,'*Set\x20format:*\x20%0',o(_0x457e02,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x162158+')')}:{'type':'format','content':o(_0x457e02,'*Remove\x20format:*\x20%0',o(_0x457e02,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4aa0ad){return'codeBlock'==_0x4aa0ad['name'];}class Q extends _0x4e7f5a{['afterInit'](){const _0x513036=this['editor'];if(!_0x513036['plugins']['has']('CommentsEditing'))return;_0x513036['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2bb678,_0x3825fd,_0x3b1e62){const _0x5d0a33=[];for(const _0x1d5223 of _0x3825fd['getItems']())_0x1d5223['hasAttribute'](_0x2bb678)&&_0x5d0a33['push'](_0x3b1e62['createRangeOn'](_0x1d5223));return _0x5d0a33;}function Ve(_0x295680,_0x14a921,{showActiveMarker:_0x1359e8=!0x0}={}){const _0xe3b6b5=_0x295680['plugins']['get']('TrackChangesEditing');return(_0xf35d21,_0x47c592,_0x97bc8)=>{if(!_0x97bc8['consumable']['test'](_0x47c592['markerRange'],_0xf35d21['name']))return;const _0x212e89=_0x47c592['markerRange']['getWalker'](),_0x5181b7=_0x47c592['markerRange']['start'],_0x207eff=_0x295680['model']['schema'];let _0x7a0666=null,_0x567610=null,_0x49ee8a=!0x1,_0x11089b=!0x1;for(const _0x54d7f7 of _0x212e89){const _0xc7f8e2=_0x54d7f7['item'];_0x49ee8a=_0x49ee8a||_0x207eff['isContent'](_0xc7f8e2);const _0x330bb7=_0x97bc8['mapper']['toViewElement'](_0xc7f8e2);if(_0x330bb7&&_0x330bb7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x54d7f7['type']&&(_0x207eff['isBlock'](_0xc7f8e2)&&!_0x207eff['isLimit'](_0xc7f8e2)&&(_0xc7f8e2['nextSibling']||_0x5181b7['isAtEnd']?_0x7a0666&&_0x7a0666['parent']==_0xc7f8e2||(_0x7a0666=_0xc7f8e2,_0x3e64e8(_0x54d7f7['previousPosition']),_0x11089b=!0x0):_0x567610=_0x567610||_0x54d7f7['previousPosition']));}function _0x3e64e8(_0x141299){const {id:_0x16fa79,authorId:_0x47856e}=_0xe3b6b5['_splitMarkerName'](_0x47c592['markerName']),_0x4f4d6e=_0x97bc8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14a921,'data-suggestion':_0x16fa79,'data-author-id':_0x47856e}),_0x29bca9=_0x97bc8['mapper']['toViewPosition'](_0x141299);_0x1359e8&&_0xe3b6b5['activeMarkers']['includes'](_0x47c592['markerName'])&&_0x97bc8['writer']['addClass']('ck-suggestion-marker--active',_0x4f4d6e),_0x97bc8['writer']['insert'](_0x29bca9,_0x4f4d6e),_0x97bc8['mapper']['bindElementToMarker'](_0x4f4d6e,_0x47c592['markerName']);}_0x49ee8a||_0x11089b||!_0x567610||_0x3e64e8(_0x567610);};}class X extends _0x4e7f5a{static get['requires'](){return[_0x1f94eb];}['init'](){const _0x3e38c3=this['editor'],_0x249d4e=_0x3e38c3['plugins']['get']('TrackChangesEditing');_0x249d4e['enableCommand']('delete');const _0x359f3d=_0x3e38c3['commands']['get']('deleteForward');_0x249d4e['enableCommand']('deleteForward',(_0x31e7f7,_0x40ad6c={})=>{const _0x39fbdc=_0x3e38c3['model']['createSelection'](_0x3e38c3['model']['document']['selection']);_0x39fbdc['isCollapsed']&&_0x3e38c3['model']['modifySelection'](_0x39fbdc,{'direction':'forward','unit':_0x40ad6c['unit']});const _0x44bd81=_0x39fbdc['getFirstRange'](),_0x1f37fa=_0x3d40b9['fromRange'](_0x44bd81);let _0x2f7ff1;_0x31e7f7(_0x40ad6c),_0x2f7ff1='$graveyard'==_0x1f37fa['root']['rootName']?_0x3e38c3['model']['createRange'](_0x44bd81['start']):_0x3e38c3['model']['createRange'](_0x1f37fa['start'],_0x1f37fa['end']),_0x1f37fa['detach'](),_0x3e38c3['model']['enqueueChange'](_0x359f3d['buffer']['batch'],_0x19015b=>{_0x359f3d['buffer']['lock'](),_0x19015b['setSelection'](_0x19015b['createRange'](_0x2f7ff1['end'])),_0x359f3d['buffer']['unlock']();});}),_0x3e38c3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x3e38c3,'merge'),{'priority':'high'}),_0x3e38c3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x120fe0,_0x35a32d,_0x4674eb)=>{_0x4674eb['options']['showSuggestionHighlights']&&Ve(_0x3e38c3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x120fe0,_0x35a32d,_0x4674eb);},{'priority':'high'}),_0x3e38c3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x132e92,_0xeb6a70,_0x45205a)=>{const _0x5d2e3f=_0x45205a['mapper']['markerNameToElements'](_0xeb6a70['markerName']);if(_0x5d2e3f){for(const _0x498227 of _0x5d2e3f)_0x498227['is']('uiElement')&&(_0x45205a['mapper']['unbindElementFromMarkerName'](_0x498227,_0xeb6a70['markerName']),_0x45205a['writer']['remove'](_0x498227));}},{'priority':'high'});}}class Y extends _0x4e7f5a{['afterInit'](){const _0x3fd0ca=this['editor'];if(!_0x3fd0ca['plugins']['has']('ListEditing'))return;const _0xeae9d0=_0x3fd0ca['locale'],_0x584558=_0x3fd0ca['plugins']['get']('TrackChangesEditing'),_0x3910dc=_0x3fd0ca['plugins']['has']('TodoListEditing'),_0x29437d=!!_0x3fd0ca['config']['get']('list.multiBlock');function _0x3659b7(_0x871bac){return{'type':'format','content':''+o(_0xeae9d0,'*Set\x20format:*\x20%0',_0x871bac)};}function _0x2331a2(_0x4fd4b6){return{'type':'format','content':''+o(_0xeae9d0,'*Remove\x20format:*\x20%0',_0x4fd4b6)};}_0x584558['enableDefaultAttributesIntegration']('numberedList'),_0x584558['enableDefaultAttributesIntegration']('bulletedList'),_0x584558['enableDefaultAttributesIntegration']('customNumberedList'),_0x584558['enableDefaultAttributesIntegration']('customBulletedList'),_0x584558['enableDefaultAttributesIntegration']('indentList'),_0x584558['enableDefaultAttributesIntegration']('outdentList'),_0x584558['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x584558['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x584558['registerBlockAttribute']('listItemId'),_0x584558['registerBlockAttribute']('listType'),_0x584558['registerBlockAttribute']('listIndent'),_0x29437d&&(_0x584558['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x584558['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3910dc&&(_0x584558['enableDefaultAttributesIntegration']('todoList'),_0x584558['enableDefaultAttributesIntegration']('checkTodoList'),_0x584558['registerBlockAttribute']('todoListChecked'),_0x584558['descriptionFactory']['registerDescriptionCallback'](_0x40b47a=>{const {data:_0x560f49}=_0x40b47a;if(_0x560f49&&'todoListChecked'==_0x560f49['key'])return{'type':'format','content':_0x560f49['newValue']?o(_0xeae9d0,'*Check\x20item*'):o(_0xeae9d0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x408747=>{if(_0x408747['batch']['isUndo'])return!0x1;let _0xdfe4a=!0x1;const _0x270335=_0x584558['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f1ce5=>'todoListChecked'===_0x584558['_getAttributeKey'](_0x1f1ce5));for(const _0x361dc4 of _0x270335){'todo'!=_0x361dc4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x584558['_findSuggestions'](_0x361dc4['getFirstRange'](),'attribute')['find'](_0x41a7bb=>'listType'===_0x584558['_getAttributeKey'](_0x41a7bb['suggestion']))||(_0x408747['removeMarker'](_0x361dc4['getFirstMarker']()),_0xdfe4a=!0x0));}return _0xdfe4a;})),_0x584558['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xeae9d0,'FORMAT_INDENT'));const _0x42ab81={'type':'format','content':''};_0x584558['descriptionFactory']['registerDescriptionCallback'](_0x43ef8c=>{const {data:_0x534041}=_0x43ef8c;if(!_0x534041||'listType'!=_0x534041['key'])return;let _0x219751=_0x43ef8c['head'];for(;_0x219751;){if(_0x219751['data']&&(('listStyle'==_0x219751['data']['key']||'listMarkerStyle'==_0x219751['data']['key'])&&(_0x219751['data']['newValue']&&'default'!=_0x219751['data']['newValue']||'default'!=_0x219751['data']['oldValue']&&!_0x534041['newValue'])||!_0x29437d&&_0x219751['data']['key']==m))return _0x42ab81;_0x219751=_0x219751['next'];}if(null==_0x534041['newValue'])switch(_0x534041['oldValue']){case'bulleted':return _0x2331a2(o(_0xeae9d0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2331a2(o(_0xeae9d0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2331a2(o(_0xeae9d0,'ELEMENT_TODO_LIST'));}switch(_0x534041['newValue']){case'bulleted':return _0x3659b7(o(_0xeae9d0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3659b7(o(_0xeae9d0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3659b7(o(_0xeae9d0,'ELEMENT_TODO_LIST'));}}),_0x584558['descriptionFactory']['registerDescriptionCallback'](_0x4a5bcd=>{const {data:_0x5b7e54}=_0x4a5bcd;if(_0x5b7e54&&'listIndent'==_0x5b7e54['key'])return null==_0x5b7e54['newValue']||null==_0x5b7e54['oldValue']&&0x0==_0x5b7e54['newValue']?_0x42ab81:void 0x0;}),_0x584558['descriptionFactory']['registerDescriptionCallback'](_0x15d3fa=>{if('attribute'!=_0x15d3fa['type'])return;const {data:_0x1a8c04}=_0x15d3fa;if(!_0x1a8c04||'listItemId'!=_0x1a8c04['key'])return;const _0x3c3ad7=Be(_0x15d3fa);return'newValue'==_0x3c3ad7?{'type':'format','content':o(_0xeae9d0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3c3ad7?{'type':'format','content':o(_0xeae9d0,'*Split:*\x20list\x20item')}:_0x42ab81;}),_0x3fd0ca['model']['document']['registerPostFixer'](_0x323dc6=>this['listItemIdFixer'](_0x323dc6)),_0x3fd0ca['model']['document']['registerPostFixer'](_0x48a4c0=>this['noTrackChangesFixer'](_0x48a4c0)),_0x3fd0ca['model']['document']['on']('change:data',(_0x1fce99,_0xbcb745)=>{if(_0xbcb745['isUndo']||!_0xbcb745['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x16cfa3){if(_0x16cfa3['batch']['isUndo']||!_0x16cfa3['batch']['isLocal'])return!0x1;let _0x142bef=!0x1;const _0x24ff71=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dea86=>_0x4dea86['data']&&'listItemId'==_0x4dea86['data']['key'])['filter'](_0x50dc8d=>_0x50dc8d['data']['newValue']&&_0x50dc8d['data']['oldValue']);for(const _0x187f34 of _0x24ff71)Be(_0x187f34)||(_0x16cfa3['removeMarker'](_0x187f34['getFirstMarker']()),_0x142bef=!0x0);return _0x142bef;}['noTrackChangesFixer'](_0x15a8de){if(_0x15a8de['batch']['isUndo']||!_0x15a8de['batch']['isLocal'])return!0x1;const _0x368bd8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x368bd8['trackChangesCommand']['value'])return!0x1;let _0x5e7f98=!0x1;const _0x98f55f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4b9181=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x30b35e=>'attribute'==_0x30b35e['type'])['filter'](_0x1ec812=>_0x98f55f['includes'](_0x1ec812['attributeKey']));if(0x0==_0x4b9181['length'])return _0x5e7f98;for(const _0xb1f3d6 of _0x4b9181){const _0x52f759=_0x368bd8['_findSuggestions'](_0xb1f3d6['range'],'attribute')['filter'](_0x4bb1db=>!_0x4bb1db['meta']['isNextTo'])['map'](_0x33a9ab=>_0x33a9ab['suggestion'])['filter'](_0x310959=>{const _0x3461ba=_0x368bd8['_getAttributeKey'](_0x310959);return _0x98f55f['includes'](_0x3461ba);});if(_0x52f759['length']){for(const _0x8973be of _0x52f759)_0x15a8de['removeMarker'](_0x8973be['getFirstMarker']());_0x5e7f98=!0x0;}}return _0x5e7f98;}['assureChains'](){const _0x22a049=this['editor']['plugins']['get']('TrackChangesEditing'),_0x113a3a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x37abe4;const _0x30da8f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43fa5b=>{if(_0x43fa5b['data']['oldRange']||!_0x43fa5b['data']['newRange'])return null;if(!_0x43fa5b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2ec0fb}=_0x22a049['_splitMarkerName'](_0x43fa5b['name']);if(!_0x22a049['hasSuggestion'](_0x2ec0fb))return null;const _0x336313=_0x22a049['getSuggestion'](_0x2ec0fb);return _0x113a3a['includes'](_0x336313['data']['key']);})['map'](_0x1dc909=>{const {id:_0x10aced}=_0x22a049['_splitMarkerName'](_0x1dc909['name']),_0x51f63a=_0x22a049['getSuggestion'](_0x10aced);return _0x37abe4=_0x51f63a['attributes']['groupId'],_0x51f63a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x30da8f['size'])return;const _0x56b96a=_0x22a049['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53cc47=>'attribute'==_0x53cc47['type']&&_0x53cc47['data']&&_0x113a3a['includes'](_0x53cc47['data']['key'])&&_0x53cc47['attributes']['groupId']!=_0x37abe4)['map'](_0x30df27=>({'listItem':_0x30df27['getFirstRange']()['start']['nodeAfter'],'groupId':_0x30df27['attributes']['groupId']})),_0x521f0d=new Set();for(const {groupId:_0x23c850,listItem:_0x3b7f90}of _0x56b96a)_0x30da8f['has'](_0x3b7f90)&&_0x521f0d['add'](_0x23c850);for(const _0xd32e43 of _0x22a049['getSuggestions']())_0x521f0d['has'](_0xd32e43['attributes']['groupId'])&&_0xd32e43['setAttribute']('groupId',_0x37abe4);}['_supportLegacySuggestions'](){const _0x481f95=this['editor'],_0x67c24=_0x481f95['locale'],_0xda4a7=_0x481f95['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xda4a7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xb59bf1,_0x415bda){const _0x554098=[];for(let _0x1f86da of _0xb59bf1)_0x1f86da['start']['nodeAfter']===_0x1f86da['end']['parent']&&(_0x1f86da=_0x481f95['model']['createRange'](_0x481f95['model']['createPositionAt'](_0x1f86da['start']['nodeAfter'],0x0))),_0x554098['push'](_0x1f86da);_0x481f95['model']['change'](_0x2e9856=>{const _0x5ba6ce=_0x481f95['model']['document']['selection'],_0x4c1f07=Array['from'](_0x5ba6ce['getRanges']())['map'](_0x53acbe=>_0x3d40b9['fromRange'](_0x53acbe));_0x2e9856['setSelection'](_0x554098),_0x481f95['commands']['get'](_0x415bda['commandName'])['refresh'](),_0x415bda['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x481f95['execute'](_0x415bda['commandName'],..._0x415bda['commandParams']),_0x2e9856['setSelection'](_0x4c1f07);for(const _0x3e4a97 of _0x4c1f07)_0x3e4a97['detach']();});}),_0xda4a7['descriptionFactory']['registerElementLabel'](function(_0x47b55a){const _0x12f538=!_0x481f95['model']['schema']['isObject'](_0x47b55a),_0x2ab3ce=_0x47b55a['previousSibling'],_0x395613=_0x47b55a['nextSibling'],_0xa817f0=_0x47b55a['getAttribute']('listItemId'),_0x4136b9=!_0x2ab3ce||_0x2ab3ce['getAttribute']('listItemId')!==_0xa817f0,_0x265f1e=!_0x395613||_0x395613['getAttribute']('listItemId')!==_0xa817f0;return _0x12f538&&Boolean(_0xa817f0)&&_0x4136b9&&_0x265f1e;},_0x1dc3b6=>o(_0x67c24,'ELEMENT_LIST_ITEM',_0x1dc3b6));}['_registerLegacyDescription'](){const _0x5c3fef=this['editor'],_0x2128e5=_0x5c3fef['locale'];function _0x478333(_0x270a24){const _0x278784=_0x5c3fef['commands']['get']('bulletedList')['value'],_0x196889=_0x5c3fef['commands']['get']('numberedList')['value'];return'numberedList'===_0x270a24?_0x278784:_0x196889;}_0x5c3fef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5c2685){if('formatBlock'!=_0x5c2685['type'])return;const {data:_0x19b6c1}=_0x5c2685;if(!_0x19b6c1)return;let _0x15c908,_0xb1918a,_0x3189cb,_0x11476e;switch(_0x19b6c1['commandName']){case'bulletedList':_0x3189cb=_0x19b6c1['commandParams'][0x0]['forceValue'],_0x11476e=_0x478333(_0x19b6c1['commandName']),_0x15c908=_0x3189cb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11476e&&_0x5c3fef['config']['get']('list.multiBlock')||(_0x15c908='*Change\x20to:*\x20%0'),_0xb1918a={'type':'format','content':o(_0x2128e5,_0x15c908,o(_0x2128e5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3189cb=_0x19b6c1['commandParams'][0x0]['forceValue'],_0x11476e=_0x478333(_0x19b6c1['commandName']),_0x15c908=_0x3189cb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11476e&&_0x5c3fef['config']['get']('list.multiBlock')||(_0x15c908='*Change\x20to:*\x20%0'),_0xb1918a={'type':'format','content':o(_0x2128e5,_0x15c908,o(_0x2128e5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x15c908='*Indent:*\x20%0',_0xb1918a={'type':'format','content':o(_0x2128e5,_0x15c908,o(_0x2128e5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x15c908=function(_0xfa7d5){const _0x21f05b=_0xfa7d5['getFirstRange']();let _0x28edf0=_0x21f05b['start']['nodeAfter'];for(;_0x28edf0&&_0x21f05b['containsItem'](_0x28edf0);){if(_0x28edf0['getAttribute']('listIndent')>0x0)return!0x1;_0x28edf0=_0x28edf0['nextSibling'];}return!0x0;}(_0x5c2685)?o(_0x2128e5,'*Format:*\x20remove\x20from\x20%0',o(_0x2128e5,function(_0x24346c){return'ELEMENT_'+_0x24346c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5c2685))):o(_0x2128e5,'*Outdent:*\x20%0',o(_0x2128e5,'ELEMENT_LIST_ITEM')),_0xb1918a={'type':'format','content':_0x15c908};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x19b6c1['multipleBlocks']&&(_0x15c908='*Merge:*\x20%0',_0xb1918a={'type':'deletion','content':o(_0x2128e5,_0x15c908,o(_0x2128e5,'ELEMENT_LIST_ITEM'))});}return _0xb1918a;});}}function Be(_0x25184e){let _0x328777=_0x25184e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x328777;){const _0x2573e1=_0x328777['getAttribute']('listItemId');if(!_0x2573e1)return!0x1;if(_0x2573e1==_0x25184e['data']['newValue'])return'newValue';if(_0x2573e1==_0x25184e['data']['oldValue'])return'oldValue';_0x328777=_0x328777['previousSibling'];}return!0x1;}class Z extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x14a801=this['editor']['config']['get']('list.properties'),_0x253d94=this['editor']['plugins']['get']('TrackChangesEditing');_0x14a801['styles']&&(_0x253d94['enableDefaultAttributesIntegration']('listStyle'),_0x253d94['registerBlockAttribute']('listStyle')),_0x14a801['reversed']&&(_0x253d94['enableDefaultAttributesIntegration']('listReversed'),_0x253d94['registerBlockAttribute']('listReversed')),_0x14a801['startIndex']&&(_0x253d94['enableDefaultAttributesIntegration']('listStart'),_0x253d94['registerBlockAttribute']('listStart'));const _0x13a047={'type':'format','content':''};_0x253d94['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3d6765=this['editor']['locale'];_0x253d94['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3d6765,'FORMAT_LIST_REVERSED')),_0x253d94['descriptionFactory']['registerDescriptionCallback'](_0x1a4e37=>{const {data:_0x53805d}=_0x1a4e37;if(_0x53805d&&'listReversed'==_0x53805d['key'])return null==_0x53805d['newValue']||0x0==_0x53805d['newValue']&&null==_0x53805d['oldValue']?_0x13a047:void 0x0;}),_0x253d94['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3d6765,'FORMAT_LIST_START')),_0x253d94['descriptionFactory']['registerDescriptionCallback'](_0x1738e0=>{const {data:_0x3e01f7}=_0x1738e0;if(_0x3e01f7&&'listStart'==_0x3e01f7['key'])return null==_0x3e01f7['newValue']||0x1==_0x3e01f7['newValue']&&null==_0x3e01f7['oldValue']?_0x13a047:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x24b17b=>{if(_0x24b17b['batch']['isUndo'])return!0x1;let _0x5af7d6=!0x1;const _0x335539=_0x253d94['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x448e1f=>{const _0x19e4ec=_0x253d94['_getAttributeKey'](_0x448e1f);return'listStart'==_0x19e4ec||'listReversed'==_0x19e4ec;});for(const _0x9d57d5 of _0x335539){const _0x579164=_0x9d57d5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x579164||'customNumbered'==_0x579164)continue;_0x253d94['_findSuggestions'](_0x9d57d5['getFirstRange'](),'attribute')['find'](_0x16016c=>'listType'==_0x253d94['_getAttributeKey'](_0x16016c['suggestion']))||(_0x24b17b['removeMarker'](_0x9d57d5['getFirstMarker']()),_0x5af7d6=!0x0);}return _0x5af7d6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x369460){const _0xd4fac3=this['editor']['locale'],{data:_0x1947b8}=_0x369460,_0x22dc57={'type':'format','content':''};if(!_0x1947b8||'listStyle'!=_0x1947b8['key'])return;if(!_0x1947b8['oldValue'])return'default'==_0x1947b8['newValue']?_0x22dc57:{'type':'format','content':''+o(_0xd4fac3,'*Set\x20format:*\x20%0',o(_0xd4fac3,this['_getTranslationKeyForListStyle'](_0x1947b8['newValue'])))};if(!_0x1947b8['newValue']){if('default'==_0x1947b8['oldValue'])return _0x22dc57;let _0x451537=_0x369460['head'];for(;_0x451537;){if(_0x451537['data']&&'listType'==_0x451537['data']['key']&&_0x451537['data']['newValue'])return _0x22dc57;_0x451537=_0x451537['next'];}return{'type':'format','content':''+o(_0xd4fac3,'*Remove\x20format:*\x20%0',o(_0xd4fac3,this['_getTranslationKeyForListStyle'](_0x1947b8['oldValue'])))};}if('default'!=_0x1947b8['newValue'])return{'type':'format','content':''+o(_0xd4fac3,'*Set\x20format:*\x20%0',o(_0xd4fac3,this['_getTranslationKeyForListStyle'](_0x1947b8['newValue'])))};let _0x408654=_0x369460['head'];for(;_0x408654;){if(_0x408654['data']&&'listType'==_0x408654['data']['key']&&_0x408654['data']['newValue']&&_0x408654['data']['oldValue'])return _0x22dc57;_0x408654=_0x408654['next'];}return{'type':'format','content':o(_0xd4fac3,'*Set\x20format:*\x20%0',o(_0xd4fac3,'ELEMENT_'+_0x369460['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xaf8760=this['editor'],_0x106a53=_0xaf8760['locale'];_0xaf8760['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b24a6=>{if('formatBlock'!=_0x3b24a6['type'])return;const {data:_0xd93f27}=_0x3b24a6;if(!_0xd93f27)return;let _0x322e15,_0x172c0a;switch(_0xd93f27['commandName']){case'listStyle':_0x322e15='*Change\x20to:*\x20%0',_0x172c0a={'type':'format','content':o(_0x106a53,_0x322e15,o(_0x106a53,this['_getTranslationKeyForListStyle'](_0xd93f27['commandParams'][0x0]['type'])))};break;case'listReversed':_0x322e15=_0xd93f27['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x172c0a={'type':'format','content':o(_0x106a53,_0x322e15)};break;case'listStart':_0x322e15='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x172c0a={'type':'format','content':o(_0x106a53,_0x322e15,_0xd93f27['commandParams'][0x0]['startIndex'])};}return _0x172c0a;});}['_getTranslationKeyForListStyle'](_0x3972ae){return'ELEMENT_'+function(_0x53d917){if(Re['includes'](_0x53d917))return'bulleted';if(De['includes'](_0x53d917))return'numbered';return null;}(_0x3972ae)['toUpperCase']()+'_LIST_'+_0x3972ae['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x4e7f5a{['afterInit'](){const _0x51b2db=this['editor'];_0x51b2db['commands']['get']('emoji')&&_0x51b2db['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x4e7f5a{static get['requires'](){return[_0x447bd9];}['init'](){const _0x34cb85=this['editor'],_0x47620f=_0x34cb85['plugins']['get']('TrackChangesEditing'),_0x1e75b5=_0x34cb85['commands']['get']('enter');_0x47620f['enableCommand']('enter',()=>{_0x34cb85['model']['change'](_0x4bf648=>{const _0x135f65=_0x34cb85['model']['document']['selection'],_0x4a974b=_0x135f65['getFirstPosition'](),_0x33c755=_0x3d40b9['fromRange'](_0x135f65['getFirstRange']());if(_0x1e75b5['enterBlock'](_0x4bf648)){const _0x33f075=_0x34cb85['model']['createPositionAt'](_0x4a974b['parent']['nextSibling'],0x0),_0x43d233=_0x4bf648['createRange'](_0x4a974b,_0x33f075);_0x47620f['markInsertion'](_0x43d233);}else _0x4bf648['setSelection'](_0x4bf648['createRange'](_0x33c755['end']));_0x33c755['detach'](),_0x1e75b5['fire']('afterExecute',{'writer':_0x4bf648});});}),_0x34cb85['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x34cb85,'split'),{'priority':'high'}),_0x34cb85['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4a27af,_0x381f8d,_0x4a99f7)=>{const _0x34a25d=_0x4a99f7['mapper']['markerNameToElements'](_0x381f8d['markerName']);if(_0x34a25d){for(const _0x5ad5ee of _0x34a25d)_0x5ad5ee['hasClass']('ck-suggestion-marker-split')&&(_0x4a99f7['mapper']['unbindElementFromMarkerName'](_0x5ad5ee,_0x381f8d['markerName']),_0x4a99f7['writer']['remove'](_0x5ad5ee));}},{'priority':'high'}),_0x34cb85['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x299e93,_0x5cbc7d,_0x54623e)=>{_0x54623e['options']['showSuggestionHighlights']&&Ve(_0x34cb85,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x299e93,_0x5cbc7d,_0x54623e);},{'priority':'high'});}}class it extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1347fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x1347fb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1347fb['enableCommand']('findNext'),_0x1347fb['enableCommand']('findPrevious'),_0x1347fb['enableCommand']('replace'),_0x1347fb['enableCommand']('replaceAll');}['handleFindCommand'](_0x2e52eb,_0x3e93da,_0x190899={}){const _0x174556=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2e52eb(_0x13070e=>{let _0x1ec4c7=('string'==typeof _0x3e93da?_0x174556['findByTextCallback'](_0x3e93da,_0x190899):_0x3e93da)(_0x13070e);Array['isArray'](_0x1ec4c7)&&(_0x1ec4c7={'results':_0x1ec4c7,'searchText':'string'==typeof _0x3e93da?_0x3e93da:''});const _0x4581e2=_0x1ec4c7['results']['filter'](_0x53f02b=>!0x1===this['_isInDeletionRange'](_0x53f02b,_0x13070e['item']));return{..._0x1ec4c7,'results':_0x4581e2};},_0x190899);}['_isInDeletionRange'](_0x14b4eb,_0x47284d){const _0x9dc671=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47284d,_0x14b4eb['start']),this['editor']['model']['createPositionAt'](_0x47284d,_0x14b4eb['end']));for(const _0x59f38e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x9dc671['getIntersection'](_0x59f38e['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x4e7f5a{['afterInit'](){const _0x11a0ea=this['editor']['locale'],_0x568f1d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x10891e,commandName:_0x2a9ce2}of eo)this['editor']['plugins']['has'](_0x10891e)&&(_0x568f1d['enableDefaultAttributesIntegration'](_0x2a9ce2),_0x568f1d['registerInlineAttribute'](_0x2a9ce2));_0x568f1d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x11a0ea,'FORMAT_FONT_SIZE')),_0x568f1d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x11a0ea,'FORMAT_FONT_FAMILY')),_0x568f1d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x11a0ea,'FORMAT_FONT_COLOR')),_0x568f1d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x11a0ea,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x153974=this['editor'],_0x41a757=_0x153974['locale'];_0x153974['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xea1a99=>{const _0x810baf=_0x41a757['t'];if('formatInline'!=_0xea1a99['type'])return;const {data:_0x18e1ed}=_0xea1a99;if(null!=_0x18e1ed){if('fontSize'==_0x18e1ed['commandName']){const _0x45177e=_0x18e1ed['commandParams'][0x0]['value'];if(_0x45177e){const _0x5136ba=_0x810baf(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x13af08=>_0x13af08['model']==_0x45177e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x41a757,'*Set\x20font\x20size:*\x20%0',_0x5136ba)};}return{'type':'format','content':o(_0x41a757,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x18e1ed['commandName']){const _0x31e3aa=_0x18e1ed['commandParams'][0x0]['value'];return _0x31e3aa?{'type':'format','content':o(_0x41a757,'*Set\x20font\x20family:*\x20%0',_0x31e3aa)}:{'type':'format','content':o(_0x41a757,'*Reset\x20font\x20family*')};}if('fontColor'==_0x18e1ed['commandName']){const _0x820698=_0x18e1ed['commandParams'][0x0]['value'];if(_0x820698){const _0x3f13a2=_0x311c22(this['editor']['config']['get']('fontColor.colors'))['find'](_0x29cb0b=>_0x29cb0b['model']==_0x820698);let _0x4feeb6=_0x820698,_0x2c7f4f='';return _0x3f13a2&&(_0x4feeb6=_0x3f13a2['label'],_0x2c7f4f=_0x810baf(_0x4feeb6)['toLowerCase']()),{'type':'format','content':o(_0x41a757,'*Set\x20font\x20color:*\x20%0',_0x2c7f4f)['trim'](),'color':{'value':_0x820698,'title':_0x2c7f4f||_0x4feeb6}};}return{'type':'format','content':o(_0x41a757,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x18e1ed['commandName']){const _0x112c18=_0x18e1ed['commandParams'][0x0]['value'];if(_0x112c18){const _0x433c7f=_0x311c22(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x47d591=>_0x47d591['model']==_0x112c18);let _0x5be8ae=_0x112c18,_0x3ca340='';return _0x433c7f&&(_0x5be8ae=_0x433c7f['label'],_0x3ca340=_0x810baf(_0x5be8ae)['toLowerCase']()),{'type':'format','content':o(_0x41a757,'*Set\x20font\x20background\x20color:*\x20%0',_0x3ca340)['trim'](),'color':{'value':_0x112c18,'title':_0x3ca340||_0x5be8ae}};}return{'type':'format','content':o(_0x41a757,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x4e7f5a{['afterInit'](){const {plugins:_0x3c5924}=this['editor'];_0x3c5924['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3c5924['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x5ebcc2,plugins:_0x4785d3,commands:_0x14925f}=this['editor'],_0x53925b=_0x4785d3['get']('TrackChangesEditing');_0x14925f['get']('footnotesStyle')&&_0x53925b['enableDefaultAttributesIntegration']('footnotesStyle'),_0x14925f['get']('footnotesStart')&&_0x53925b['enableDefaultAttributesIntegration']('footnotesStart'),_0x53925b['registerBlockAttribute']('footnotesListStyle'),_0x53925b['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x5ebcc2,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x53925b['registerBlockAttribute']('footnotesListStart'),_0x53925b['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x5ebcc2,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x4818a5=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x13ace8,commands:_0x3298c5}=this['editor'];_0x3298c5['get']('insertFootnote')&&_0x4818a5['enableCommand']('insertFootnote'),_0x4818a5['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2d035b=>o(_0x13ace8,'ELEMENT_FOOTNOTE_REF',_0x2d035b)),_0x4818a5['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4dabb4=>o(_0x13ace8,'ELEMENT_FOOTNOTE_DEFINITION',_0x4dabb4)),_0x4818a5['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x408bdf=>o(_0x13ace8,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x408bdf));}}class ot extends _0x4e7f5a{['afterInit'](){const _0x4f33b1=this['editor'],_0x18729e=_0x4f33b1['plugins']['get']('TrackChangesEditing'),_0x5704ba=_0x4f33b1['commands']['get']('copyFormat'),_0x297bb7=_0x4f33b1['commands']['get']('pasteFormat');_0x5704ba&&_0x297bb7&&(_0x18729e['enableDefaultAttributesIntegration']('pasteFormat'),_0x18729e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1003c3=this['editor'],_0x1564bc=_0x1003c3['locale'];_0x1003c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2783cc=>{if('formatBlock'!=_0x2783cc['type']&&'formatInline'!=_0x2783cc['type'])return;const {data:_0x1dba2a}=_0x2783cc;if(_0x1dba2a&&'pasteFormat'===_0x1dba2a['commandName']){const _0xaecbf=[],_0xe5945=_0x1dba2a['commandParams'][0x0];for(const [_0x18d78a,_0x284524]of Object['entries'](_0xe5945))_0xaecbf['push'](ro(_0x1003c3,_0x18d78a,_0x284524));return _0xaecbf['length']?{'type':'format','content':o(_0x1564bc,'*Set\x20format\x20to:*\x20%0',_0xaecbf['join'](',\x20'))}:{'type':'format','content':o(_0x1564bc,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x302f33,_0x37b3a2,_0x10579c){const _0x38c4e0=_0x302f33['locale']['t'],_0x12be7c=_0x37b3a2['split'](/(?=[A-Z])/)['join']('\x20'),_0xf0a713=_0x38c4e0(_0x12be7c['charAt'](0x0)['toUpperCase']()+_0x12be7c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x10579c)return _0xf0a713;if('fontColor'===_0x37b3a2||'fontBackgroundColor'===_0x37b3a2){const _0x302e84=_0x311c22(_0x302f33['config']['get']('fontColor.colors'))['find'](_0x3382fe=>_0x3382fe['model']==_0x10579c);return _0xf0a713+'\x20('+(_0x302e84?_0x38c4e0(_0x302e84['label'])['toLowerCase']():_0x10579c)+')';}if('fontSize'===_0x37b3a2&&isNaN(parseFloat(_0x10579c))){const _0xa14ac0=_0x302f33['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x302f33['config']['get']('fontSize.options'))['find'](_0x1e3e05=>_0x1e3e05['model']==_0x10579c);return _0xf0a713+'\x20('+(_0xa14ac0?_0x38c4e0(_0xa14ac0['title'])['toLowerCase']():_0x10579c)+')';}return _0xf0a713+'\x20('+_0x10579c+')';}class rt extends _0x4e7f5a{['_headingOptions'];['afterInit'](){const _0x1477d1=this['editor'];if(!_0x1477d1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1477d1['config']['get']('heading.options');const _0x2eb57a=_0x1477d1['locale'],_0x209933=_0x1477d1['plugins']['get']('TrackChangesEditing');_0x209933['enableDefaultAttributesIntegration']('heading');for(const _0x4a449d of this['_headingOptions'])'paragraph'!=_0x4a449d['model']&&_0x209933['descriptionFactory']['registerElementLabel'](_0x4a449d['model'],_0x203318=>{const _0x157c5e=this['_getHeadingLevel'](_0x4a449d['model']);return null!==_0x157c5e?_0x514dc2(_0x203318,_0x157c5e):_0xfc3003(_0x203318,_0x4a449d['title']);});function _0x514dc2(_0x210093,_0x36f13c){return o(_0x2eb57a,'ELEMENT_HEADING',[_0x210093,_0x36f13c]);}function _0xfc3003(_0x524d17,_0x26fb76){return o(_0x2eb57a,'ELEMENT_HEADING_CUSTOM',[_0x524d17,_0x26fb76]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf2d2ea=this['editor'],_0x3f8e2a=_0xf2d2ea['locale'];function _0x224688(_0x387794,_0x1ce181){return o(_0x3f8e2a,'ELEMENT_HEADING_CUSTOM',[_0x387794,_0x1ce181]);}_0xf2d2ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x536b4d=>{if('formatBlock'!=_0x536b4d['type'])return;const {data:_0x3930a5}=_0x536b4d;if(_0x3930a5&&'heading'==_0x3930a5['commandName']){const _0x46fb0e=_0x3930a5['commandParams'][0x0]['value'],_0x123475=this['_getHeadingLevel'](_0x46fb0e);if(null!==_0x123475)return{'type':'format','content':o(_0x3f8e2a,'*Change\x20to:*\x20%0',(_0x31e09d=0x1,_0x4e41f3=_0x123475,o(_0x3f8e2a,'ELEMENT_HEADING',[_0x31e09d,_0x4e41f3])))};const _0x4fc98c=this['_headingOptions']['find'](_0x4147f1=>_0x4147f1['model']===_0x46fb0e)['title'];return{'type':'format','content':o(_0x3f8e2a,'*Change\x20to:*\x20%0',_0x224688(0x1,_0x4fc98c))};}var _0x31e09d,_0x4e41f3;});}['_getHeadingLevel'](_0x19e974){const _0x2eaee1=_0x19e974['match'](/^heading(\d+)/);if(_0x2eaee1)return _0x2eaee1[0x1];const _0x233371=this['_headingOptions']?.['find'](_0x3890f2=>_0x3890f2['model']==_0x19e974);if(_0x233371&&_0x233371['view']){const _0x3e1e32=_0x233371['view'],_0x160772=(_0x3e1e32['name']??_0x3e1e32)['match'](/^h(\d+)/);if(_0x160772)return _0x160772[0x1];}return null;}}class at extends _0x4e7f5a{['afterInit'](){const _0x5a2ed6=this['editor'];if(!_0x5a2ed6['plugins']['has']('HighlightEditing'))return;const _0x2ac0a9=_0x5a2ed6['plugins']['get']('TrackChangesEditing'),_0x42a458=_0x5a2ed6['locale'];_0x2ac0a9['enableDefaultAttributesIntegration']('highlight'),_0x2ac0a9['registerInlineAttribute']('highlight'),_0x2ac0a9['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x42a458,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbda6b5=this['editor'],_0xd7f473=_0xbda6b5['locale'];_0xbda6b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35575d=>{if('formatInline'!=_0x35575d['type'])return;const {data:_0x479870}=_0x35575d;if(_0x479870&&'highlight'==_0x479870['commandName']){const _0x500f80=_0xd7f473['t'],_0x604b7=_0x479870['commandParams'][0x0]['value'];if(_0x604b7){const _0x1aec3f=_0xbda6b5['config']['get']('highlight.options')['find'](_0x590ba3=>_0x590ba3['model']==_0x604b7),_0x10b95b=_0x500f80(_0x1aec3f['title'])['toLowerCase']();return{'type':'format','content':o(_0xd7f473,'*Set\x20highlight:*\x20%0',_0x10b95b),'color':{'value':_0x1aec3f['color'],'title':_0x1aec3f['title']}};}return{'type':'format','content':o(_0xd7f473,'*Remove\x20highlight*',o(_0xd7f473,'FORMAT_HIGHLIGHT'))};}});}}class ct extends _0x4e7f5a{['afterInit'](){const _0x4a15ca=this['editor'];if(!_0x4a15ca['plugins']['has']('HorizontalLineEditing'))return;_0x4a15ca['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x46a56c=_0x4a15ca['plugins']['get']('TrackChangesEditing'),_0x360e3a=_0x4a15ca['locale'];_0x46a56c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3f0711=>o(_0x360e3a,'ELEMENT_HORIZONTAL_LINE',_0x3f0711)),_0x4a15ca['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3bd6d4,{writer:_0x460a46,options:_0x2b11f0})=>{if(!_0x2b11f0['showSuggestionHighlights'])return null;const _0x30cf6e=_0x460a46['createContainerElement']('div'),_0x25f3e4=_0x460a46['createEmptyElement']('hr');return _0x460a46['addClass']('ck-horizontal-line',_0x30cf6e),_0x460a46['insert'](_0x460a46['createPositionAt'](_0x30cf6e,0x0),_0x25f3e4),_0x30cf6e;},'converterPriority':'high'});}}class ut extends _0x4e7f5a{['afterInit'](){const _0x17e9e1=this['editor'];if(!_0x17e9e1['plugins']['has']('HtmlEmbed'))return;const _0x5ee102=_0x17e9e1['plugins']['get']('TrackChangesEditing'),_0x172034=_0x17e9e1['locale'];_0x5ee102['descriptionFactory']['registerElementLabel']('rawHtml',_0x2a844b=>o(_0x172034,'ELEMENT_HTML_EMBED',_0x2a844b)),_0x5ee102['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5ee102['registerBlockAttribute']('value'),_0x5ee102['descriptionFactory']['registerDescriptionCallback'](_0x53adb5=>{if('attribute'!=_0x53adb5['type'])return;const {data:_0x491903}=_0x53adb5;if(_0x491903&&'value'==_0x491903['key']&&_0x53adb5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x20af9c=o(_0x172034,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x172034,'*Change\x20%0\x20content*',_0x20af9c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x521e8d=this['editor'],_0x485e7b=_0x521e8d['locale'];_0x521e8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e07dc=>{if('formatBlock'!=_0x3e07dc['type'])return;const {data:_0x1c28bb}=_0x3e07dc;if(_0x1c28bb&&'htmlEmbed'==_0x1c28bb['commandName']){const _0x307391=o(_0x485e7b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x485e7b,'*Change\x20%0\x20content*',_0x307391)};}});}}class ft extends _0x4e7f5a{['afterInit'](){const _0x25aa1c=this['editor'];if(!_0x25aa1c['plugins']['has']('ImageEditing'))return;const _0x5e5d91=_0x25aa1c['plugins']['get']('TrackChangesEditing'),_0x414c90=_0x25aa1c['plugins']['get']('ImageUtils'),_0x291170=_0x25aa1c['locale'];_0x5e5d91['enableCommand']('insertImage'),_0x5e5d91['descriptionFactory']['registerElementLabel']('imageBlock',_0x4f699d=>o(_0x291170,'ELEMENT_IMAGE',_0x4f699d)),_0x5e5d91['descriptionFactory']['registerElementLabel']('imageInline',_0x5aabcd=>o(_0x291170,'ELEMENT_INLINE_IMAGE',_0x5aabcd)),_0x5e5d91['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x291170,'ELEMENT_CAPTION')),_0x25aa1c['plugins']['has']('ImageUploadEditing')&&_0x5e5d91['enableCommand']('uploadImage'),_0x25aa1c['plugins']['has']('ImageBlockEditing')&&_0x25aa1c['plugins']['has']('ImageInlineEditing')&&(_0x5e5d91['enableCommand']('imageTypeInline',(_0x405c45,_0x23420e)=>{const _0xfbda9e=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']);_0x25aa1c['model']['change'](()=>{_0x5e5d91['markBlockFormat'](_0xfbda9e,{'commandName':'imageTypeInline','commandParams':[_0x23420e]},[],'convertBlockImageToInline');});}),_0x5e5d91['enableCommand']('imageTypeBlock',(_0x42a681,_0x43b4bb)=>{_0x25aa1c['model']['change'](_0x350848=>{let _0x416370=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']),_0x12c26a=_0x350848['createRangeOn'](_0x416370);const _0x3a6e6b=_0x52185f['fromPosition'](_0x12c26a['start'],'toPrevious'),_0x21365f=_0x52185f['fromPosition'](_0x12c26a['end'],'toNext');_0x5e5d91['forceDefaultExecution'](()=>_0x42a681(_0x43b4bb)),_0x416370=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']),_0x12c26a=_0x350848['createRangeOn'](_0x416370);const _0x4fffc1=_0x350848['createRange'](_0x3a6e6b,_0x21365f);_0x3a6e6b['detach'](),_0x21365f['detach'](),_0x5e5d91['markBlockFormat'](_0x416370,{'commandName':'imageTypeInline','commandParams':[_0x43b4bb]},[],'convertInlineImageToBlock'),_0x4fffc1['start']['isBefore'](_0x12c26a['start'])&&_0x5e5d91['markInsertion'](_0x350848['createRange'](_0x4fffc1['start'],_0x12c26a['start']),'convertInlineImageToBlock'),_0x12c26a['end']['isBefore'](_0x4fffc1['end'])&&_0x5e5d91['markInsertion'](_0x350848['createRange'](_0x12c26a['end'],_0x4fffc1['end']),'convertInlineImageToBlock');});}),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e5d91['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x16f8ae])=>{const _0x38c270=_0x5e5d91['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x30de9b=_0x16f8ae['start'],_0x202567=_0x16f8ae['end'];const _0x15a0a3=_0x25aa1c['model']['schema']['getNearestSelectionRange'](_0x30de9b,'backward'),_0x4ce1e5=_0x25aa1c['model']['schema']['getNearestSelectionRange'](_0x202567,'forward');_0x15a0a3['isCollapsed']&&(_0x30de9b=_0x15a0a3['start']),_0x4ce1e5['isCollapsed']&&(_0x202567=_0x4ce1e5['end']),_0x38c270([_0x25aa1c['model']['createRange'](_0x30de9b,_0x202567)]);}),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x254c1b),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x254c1b)),_0x25aa1c['plugins']['has']('ImageCaptionEditing')&&(_0x5e5d91['enableCommand']('toggleImageCaption',(_0x51be86,_0x182566)=>{const _0x589132=_0x25aa1c['plugins']['get']('ImageCaptionUtils');let _0x11241c=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']),_0x357ad0=_0x589132['getCaptionFromImageModelElement'](_0x11241c);_0x25aa1c['model']['change'](()=>{if(_0x357ad0)return void _0x5e5d91['markDeletion'](_0x25aa1c['model']['createRangeOn'](_0x357ad0));const _0x16f690=_0x414c90['isBlockImage'](_0x11241c);_0x51be86(_0x182566),_0x11241c=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']),_0x357ad0=_0x589132['getCaptionFromImageModelElement'](_0x11241c),_0x5e5d91['markInsertion'](_0x25aa1c['model']['createRangeOn'](_0x357ad0),_0x16f690?null:'imageCaption');});}),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x254c1b));const _0x2f03aa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ddcb9(_0x47d3cd,_0xa4778a){const _0x2ed88f=_0x2f03aa['findIndex'](({type:_0x4b0001,subType:_0x2fc498})=>_0x47d3cd['type']==_0x4b0001&&_0x47d3cd['subType']==_0x2fc498),_0x3ce2d3=_0x2f03aa['findIndex'](({type:_0xc549a5,subType:_0x235534})=>_0xa4778a['type']==_0xc549a5&&_0xa4778a['subType']==_0x235534);if(_0x2ed88f<0x0||_0x3ce2d3<0x0)return!0x1;const _0x273ee4=_0x47d3cd['getFirstRange'](),_0x9be843=_0xa4778a['getFirstRange']();if((0x0==_0x2ed88f||0x1==_0x2ed88f)&&0x2==_0x3ce2d3&&_0x273ee4['isIntersecting'](_0x9be843))return!0x0;if(0x2==_0x2ed88f&&0x3==_0x3ce2d3){const _0x38c1b2=_0x5e5d91['_findSuggestions'](_0x273ee4,'insertion')['filter'](({suggestion:_0x52db1a,meta:_0x39fd63})=>_0x39fd63['isOwn']&&'convertInlineImageToBlock'==_0x52db1a['subType']);if(_0x38c1b2['length']>0x1&&_0x9be843['end']['isEqual'](_0x273ee4['start']))return!0x0;if(0x1==_0x38c1b2['length']&&(_0x273ee4['start']['isEqual'](_0x9be843['end'])||_0x273ee4['end']['isEqual'](_0x9be843['start'])))return!0x0;}if(0x3==_0x2ed88f&&0x3==_0x3ce2d3&&_0x273ee4['start']['isBefore'](_0x9be843['start'])){const _0x1b048a=_0x273ee4['end']['nodeAfter'],_0x28270f=_0x9be843['start']['nodeBefore'];return _0x414c90['isBlockImage'](_0x1b048a)&&_0x1b048a===_0x28270f;}return!0x1;}function _0x254c1b(_0x10c49b,_0x3087c9){return _0x4ddcb9(_0x10c49b,_0x3087c9)?[_0x10c49b,_0x3087c9]:_0x4ddcb9(_0x3087c9,_0x10c49b)?[_0x3087c9,_0x10c49b]:null;}_0x25aa1c['plugins']['has']('ImageResize')&&(_0x5e5d91['enableDefaultAttributesIntegration']('resizeImage'),_0x5e5d91['registerBlockAttribute']('resizedWidth'),_0x5e5d91['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x291170,'FORMAT_IMAGE_SIZE'))),_0x25aa1c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e5d91['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e5d91['registerBlockAttribute']('alt')),_0x25aa1c['plugins']['has']('PictureEditing')&&(_0x5e5d91['registerBlockAttribute']('sources'),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x343630=>{if('attribute'!=_0x343630['type'])return;const {data:_0xa3219}=_0x343630;return _0xa3219&&'sources'==_0xa3219['key']?{'type':'format','content':''}:void 0x0;})),_0x25aa1c['plugins']['has']('ImageSizeAttributes')&&(_0x5e5d91['registerBlockAttribute']('width'),_0x5e5d91['registerBlockAttribute']('height'),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x10cd91=>{if('attribute'!=_0x10cd91['type'])return;const {data:_0x34efa9}=_0x10cd91;return!_0x34efa9||'width'!=_0x34efa9['key']&&'height'!=_0x34efa9['key']?void 0x0:{'type':'format','content':''};})),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x39c11c=>{if(!!_0x2f03aa['find'](({type:_0xe1ad66,subType:_0x5a6acf})=>_0x39c11c['type']==_0xe1ad66&&_0x39c11c['subType']==_0x5a6acf))return _0x39c11c['previous']?{}:void 0x0;}),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x393e36=>{if('insertion'==_0x393e36['type']||'deletion'==_0x393e36['type']){const _0x255387=_0x393e36['getContainedElement']();if(_0x255387&&_0x255387['is']('element','caption'))return{'type':'insertion'==_0x393e36['type']?'addObject':'removeObject','element':_0x255387,'quantity':0x1};}}),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0xcca678=>'formatBlock'==_0xcca678['type']&&'convertInlineImageToBlock'==_0xcca678['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xcca678['type']&&'convertBlockImageToInline'==_0xcca678['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x538273=>{if('attribute'!=_0x538273['type'])return;const {data:_0x27b36f}=_0x538273;if(!_0x27b36f||'alt'!=_0x27b36f['key'])return;const _0x3e73e6=_0x27b36f['newValue'];return _0x3e73e6?{'type':'format','content':o(_0x291170,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3e73e6+'\x22')}:{'type':'format','content':o(_0x291170,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2133c6=this['editor'],_0x56d946=_0x2133c6['locale'];_0x2133c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x558e26=>{if('formatBlock'!=_0x558e26['type']&&'formatInline'!=_0x558e26['type'])return;const {data:_0x423fdb}=_0x558e26;if(_0x423fdb){if('imageTextAlternative'==_0x423fdb['commandName']){const _0x460ff2=_0x423fdb['commandParams'][0x0]['newValue'];return _0x460ff2?{'type':'format','content':o(_0x56d946,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x460ff2+'\x22')}:{'type':'format','content':o(_0x56d946,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x423fdb['commandName']){const _0x475467=_0x423fdb['commandParams'][0x0]['width'];return _0x475467?{'type':'format','content':o(_0x56d946,'*Set\x20image\x20width:*\x20%0',_0x475467)}:{'type':'format','content':o(_0x56d946,'*Reset\x20image\x20width*')};}}});}}class ht extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x157030=this['editor']['locale'],_0x4e9cfd=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e9cfd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4e9cfd['registerBlockAttribute']('src'),_0x4e9cfd['descriptionFactory']['registerDescriptionCallback'](_0x276da6=>{if('attribute'!=_0x276da6['type'])return;const {data:_0x2043d3}=_0x276da6;return _0x2043d3&&'src'==_0x2043d3['key']?_0x2043d3['newValue']&&_0x2043d3['oldValue']?{'type':'format','content':o(_0x157030,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f4578=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f4578['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3f4578['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f4578['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3f4578['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x88abef=this['editor'],_0xf71fa1=_0x88abef['locale'];_0x88abef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x509376=>{if('formatBlock'!=_0x509376['type']&&'formatInline'!=_0x509376['type'])return;const {data:_0x17abfb}=_0x509376;if(!_0x17abfb||'replaceImageSource'!=_0x17abfb['commandName'])return;return{'type':'format','content':o(_0xf71fa1,'*Format:*\x20replace\x20image\x20URL')};});}}class gt extends _0x4e7f5a{['afterInit'](){const _0x545c88=this['editor'];if(!_0x545c88['plugins']['has']('ImageStyleEditing'))return;const _0x32fc2e=_0x545c88['plugins']['get']('TrackChangesEditing'),_0x5c64cd=_0x545c88['plugins']['get']('ImageUtils'),_0x2973b1={};_0x32fc2e['enableCommand']('imageStyle',(_0x2261fb,_0x42b334)=>{const _0x5f448f=_0x545c88['plugins']['get']('Users')['me'],_0x5a0873=_0x545c88['commands']['get']('imageStyle');let _0x1a0daf=_0x5c64cd['getClosestSelectedImageElement'](_0x545c88['model']['document']['selection']),_0x3a2524=_0x545c88['model']['createRangeOn'](_0x1a0daf),_0x2f8255=_0x5a0873['value'];if(_0x2f8255==_0x42b334['value'])return;const _0x1710f7={'commandName':'imageStyle','commandParams':[_0x42b334],'formatGroupId':_0x3caa75()};_0x545c88['model']['change'](()=>{if(_0x32fc2e['getSuggestions']()['filter'](_0x425f88=>_0x425f88['isInContent']&&_0x5f448f==_0x425f88['author']&&('formatBlock'==_0x425f88['type']||'formatInline'==_0x425f88['type'])&&('imageStylePreApply'==_0x425f88['subType']||'imageStylePostApply'==_0x425f88['subType'])&&_0x425f88['getFirstRange']()['isEqual'](_0x3a2524))['forEach'](_0x4a3078=>_0x32fc2e['discardSuggestion'](_0x4a3078['head'])),_0x1a0daf=_0x5c64cd['getClosestSelectedImageElement'](_0x545c88['model']['document']['selection']),_0x3a2524=_0x545c88['model']['createRangeOn'](_0x1a0daf),_0x5a0873['refresh'](),_0x545c88['commands']['get']('imageTypeInline')['refresh'](),_0x545c88['commands']['get']('imageTypeBlock')['refresh'](),_0x2f8255=_0x5a0873['value'],_0x2f8255!=_0x42b334['value'])return _0x5c64cd['isInlineImage'](_0x1a0daf)&&_0x5a0873['shouldConvertImageType'](_0x42b334['value'],_0x1a0daf)?(_0x2261fb({..._0x42b334,'setImageSizes':!0x1}),_0x1a0daf=_0x5c64cd['getClosestSelectedImageElement'](_0x545c88['model']['document']['selection']),void _0x32fc2e['markBlockFormat'](_0x1a0daf,{..._0x1710f7,'commandReversedParams':[{'value':_0x2f8255||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5c64cd['isBlockImage'](_0x1a0daf)?_0x32fc2e['markBlockFormat'](_0x1a0daf,_0x1710f7,[],'imageStylePostApply'):_0x32fc2e['markInlineFormat'](_0x3a2524,_0x1710f7,'imageStylePostApply'));});});for(const _0x274c42 of _0x545c88['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2973b1[_0x274c42['name']]=_0x274c42['title']['toLowerCase']();_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x53dcb5])=>{_0x5c64cd['setImageNaturalSizeAttributes'](_0x53dcb5['getContainedElement']());}),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2e08b1,_0x344045)=>{_0x32fc2e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2e08b1,{'commandName':_0x344045['commandName'],'commandParams':_0x344045['commandReversedParams']});}),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5640b1,_0xd14a6f){if(_0x376c70(_0x5640b1,_0xd14a6f))return[_0x5640b1,_0xd14a6f];if(_0x376c70(_0xd14a6f,_0x5640b1))return[_0xd14a6f,_0x5640b1];return null;});const _0x2f72c3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x376c70(_0x15b0b5,_0x2096a2){const _0x352e61=_0x2f72c3['findIndex'](({type:_0x423e65,subType:_0x5bcc9b})=>_0x15b0b5['type']==_0x423e65&&_0x15b0b5['subType']==_0x5bcc9b),_0x59f408=_0x2f72c3['findIndex'](({type:_0x39ccd9,subType:_0x3ef0eb})=>_0x2096a2['type']==_0x39ccd9&&_0x2096a2['subType']==_0x3ef0eb);if(_0x352e61<0x0||_0x59f408<0x0)return!0x1;const _0x329a82=_0x15b0b5['getFirstRange'](),_0x3c99b4=_0x2096a2['getFirstRange']();if((0x0==_0x352e61||0x1==_0x352e61)&&0x2==_0x59f408&&_0x329a82['isIntersecting'](_0x3c99b4))return!0x0;if(0x2==_0x352e61&&0x3==_0x59f408){const _0x4b6501=_0x32fc2e['_findSuggestions'](_0x329a82,'insertion')['filter'](({suggestion:_0x2f717a,meta:_0x12be6b})=>_0x12be6b['isOwn']&&'convertInlineImageToBlock'==_0x2f717a['subType']);if(_0x4b6501['length']>0x1&&_0x3c99b4['end']['isEqual'](_0x329a82['start']))return!0x0;if(0x1==_0x4b6501['length']&&(_0x329a82['start']['isEqual'](_0x3c99b4['end'])||_0x329a82['end']['isEqual'](_0x3c99b4['start'])))return!0x0;}if(0x3==_0x352e61&&0x3==_0x59f408&&_0x329a82['start']['isBefore'](_0x3c99b4['start'])){const _0x22155c=_0x329a82['end']['nodeAfter'],_0x2d0387=_0x3c99b4['start']['nodeBefore'];return _0x5c64cd['isBlockImage'](_0x22155c)&&_0x22155c===_0x2d0387;}return!0x1;}_0x545c88['model']['document']['registerPostFixer'](()=>{let _0x4ab77a=!0x1;const _0x35ac4e=Array['from'](_0x545c88['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x575088,data:_0x2f6ed9}of _0x35ac4e){const {group:_0xf0b4e,type:_0x21e142,subType:_0x451db3,id:_0x5d57f6}=_0x32fc2e['_splitMarkerName'](_0x575088);if('suggestion'==_0xf0b4e&&_0x32fc2e['hasSuggestion'](_0x5d57f6)){if('formatBlock'==_0x21e142&&('imageStylePreApply'==_0x451db3||'imageStylePostApply'==_0x451db3)){const _0x17ef76=_0x32fc2e['getSuggestion'](_0x5d57f6);if(_0x2f6ed9['newRange']){const _0x559ab3=_0x17ef76['getFirstRange']()['getContainedElement']();if(_0x5c64cd['isBlockImage'](_0x559ab3))continue;_0x32fc2e['discardSuggestion'](_0x17ef76),_0x4ab77a=!0x0;}}if('insertion'==_0x21e142&&'imageCaption'==_0x451db3&&!_0x2f6ed9['newRange']){const _0x576c20=_0x32fc2e['getSuggestion'](_0x5d57f6);_0x576c20['next']&&_0x576c20['next']['isInContent']&&(_0x32fc2e['discardSuggestion'](_0x576c20['next']),_0x4ab77a=!0x0);}}}return _0x4ab77a;}),this['_registerLegacyDescription'](_0x2973b1);}['_registerLegacyDescription'](_0x2b9bb6){const _0x1ae453=this['editor'],_0x292f9f=_0x1ae453['locale'];_0x1ae453['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fdd30=>{if('formatBlock'!=_0x3fdd30['type']&&'formatInline'!=_0x3fdd30['type'])return;const {data:_0x39480f}=_0x3fdd30;if(!_0x39480f||'imageStyle'!=_0x39480f['commandName'])return;const _0x3ec338=_0x39480f['commandParams'][0x0]['value'];return _0x49d500('side'===_0x3ec338?o(_0x292f9f,'FORMAT_SIDE_IMAGE'):_0x2b9bb6[_0x3ec338]||_0x3ec338);function _0x49d500(_0x146af3){return{'type':'format','content':o(_0x292f9f,'*Format:*\x20%0',_0x146af3)};}});}}class lt extends _0x4e7f5a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1f5eea){super(_0x1f5eea),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x845488=this['editor'],_0x2a0cb2=_0x845488['commands']['get']('importWord'),_0x51dda9=_0x845488['commands']['get']('trackChanges');_0x2a0cb2&&(_0x2a0cb2['on']('execute',(_0x3627e5,[,_0x27ae37])=>{this['_trackChangesValueDuringImport']=_0x51dda9['value'],_0x27ae37['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2a0cb2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2a0cb2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x51dda9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x845488['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1be6aa,_0x4e0ded){const {suggestions:_0x2ff623}=_0x4e0ded,_0x2740b2=this['editor']['commands']['get']('trackChanges'),_0xc35eaa=_0x2740b2['value'];this['_trackChangesValueDuringImport']!==_0xc35eaa&&(_0x2740b2['execute'](),this['_trackChangesExecuted']=!0x0),_0x2ff623&&_0x2ff623['forEach'](({id:_0x3ca30b,type:_0x12bb5f,author:_0x1a7fc8,created_at:_0x3b0a13})=>{const _0xb770bb={'id':_0x3ca30b,'type':_0x12bb5f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1a7fc8,'createdAt':_0x3b0a13?new Date(_0x3b0a13):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb770bb);});}}class mt extends _0x4e7f5a{['afterInit'](){const _0x2b3e6c=this['editor'],_0x4b14ac=_0x2b3e6c['plugins']['get']('TrackChangesEditing');if(_0x2b3e6c['plugins']['has']('IndentEditing')&&(_0x4b14ac['enableCommand']('indent'),_0x4b14ac['enableCommand']('outdent')),_0x2b3e6c['plugins']['has']('IndentBlock')){for(const _0x3600b4 of['indentBlock','outdentBlock'])_0x4b14ac['enableDefaultAttributesIntegration'](_0x3600b4);}const _0x2f803f=_0x2b3e6c['locale'];_0x4b14ac['registerBlockAttribute']('blockIndent'),_0x4b14ac['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2f803f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9f4132=this['editor'],_0x11a322=_0x9f4132['locale'],_0x5662fb=_0x9f4132['plugins']['get']('TrackChangesEditing');_0x5662fb['descriptionFactory']['registerDescriptionCallback'](_0x203cd6=>{if('formatBlock'!=_0x203cd6['type'])return;const {data:_0x3b9b15}=_0x203cd6;if(!_0x3b9b15)return;if('indentBlock'!=_0x3b9b15['commandName']&&'outdentBlock'!=_0x3b9b15['commandName'])return;const _0x26986b=_0x203cd6['getItems']()[0x0],_0x264bbb=_0x5662fb['descriptionFactory']['getItemLabel'](_0x26986b);return'indentBlock'==_0x3b9b15['commandName']?{'type':'format','content':o(_0x11a322,'*Indent:*\x20%0',_0x264bbb)}:'outdentBlock'==_0x3b9b15['commandName']?{'type':'format','content':o(_0x11a322,'*Outdent:*\x20%0',_0x264bbb)}:void 0x0;});}}class dt extends _0x4e7f5a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class pt extends _0x4e7f5a{['afterInit'](){const _0x19ab43=this['editor'];if(!_0x19ab43['plugins']['has']('LinkEditing'))return;const _0xca4928=_0x19ab43['plugins']['get']('TrackChangesEditing'),_0x2bacb1=_0x19ab43['commands']['get']('link');_0xca4928['enableDefaultAttributesIntegration']('link'),_0xca4928['enableDefaultAttributesIntegration']('unlink'),_0xca4928['registerInlineAttribute']('linkHref');for(const _0x428f1f of _0x2bacb1['manualDecorators'])_0xca4928['registerInlineAttribute'](_0x428f1f['id']),_0xca4928['descriptionFactory']['registerAttributeLabel'](_0x428f1f['id'],'link\x20('+_0x428f1f['label']['toLowerCase']()+')');_0xca4928['descriptionFactory']['registerDescriptionCallback'](_0xfc3f94=>{if('attribute'!=_0xfc3f94['type'])return;const {data:_0x1dc034}=_0xfc3f94;if(!_0x1dc034||'linkHref'!=_0x1dc034['key'])return;const _0x4d55a4=_0x1dc034['newValue'],_0x55efd2=_0x19ab43['locale'];return{'type':'format','content':null==_0x4d55a4?o(_0x55efd2,'*Remove\x20link*'):o(_0x55efd2,'*Set\x20link:*\x20%0','\x22'+_0x4d55a4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1eb177=this['editor'],_0x287fa6=_0x1eb177['locale'];_0x1eb177['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x807284=>{if('formatInline'!=_0x807284['type'])return;const {data:_0x5ed17d}=_0x807284;if(_0x5ed17d){if('link'==_0x5ed17d['commandName']){const _0x5aaf30=_0x5ed17d['commandParams'][0x0];return{'type':'format','content':o(_0x287fa6,'*Set\x20link:*\x20%0','\x22'+_0x5aaf30+'\x22')};}return'unlink'==_0x5ed17d['commandName']?{'type':'format','content':o(_0x287fa6,'*Remove\x20link*')}:void 0x0;}});}}class kt extends _0x4e7f5a{['afterInit'](){const _0x1309aa=this['editor'],_0x59ff69=_0x1309aa['locale'];if(!_0x1309aa['plugins']['has']('LegacyListEditing'))return;const _0x2c2aeb=_0x1309aa['plugins']['get']('TrackChangesEditing'),_0x471f84=_0x1309aa['plugins']['has']('LegacyTodoListEditing');function _0x5b4731(_0x296217){return()=>{const _0x49d9f3=_0x1309aa['model']['document']['selection'],_0x3c548=_0x1309aa['commands']['get'](_0x296217);if(_0x3c548['value'])return void _0x1309aa['execute']('paragraph',{});const _0x3e8ed2=_0x296217['slice'](0x0,-0x4),_0x2f327c=function(_0x2e944e,_0x5df3be,_0x19fae1){let _0xd2d1ad=Array['from'](_0x2e944e)['filter'](_0xc2f100=>function(_0x5eab89,_0x440d3d){return _0x440d3d['checkChild'](_0x5eab89['parent'],'listItem')&&!_0x440d3d['isObject'](_0x5eab89);}(_0xc2f100,_0x19fae1));_0xd2d1ad=_0xd2d1ad['filter'](_0x452cb5=>!_0x452cb5['is']('element','listItem')||_0x452cb5['getAttribute']('listType')!=_0x5df3be);const _0x1316bd=new Set();for(const _0x1dc43b of _0xd2d1ad)_0x1dc43b['is']('element','listItem')?_0x1316bd['add'](Ne(_0x1dc43b)):_0x1316bd['add'](_0x1dc43b);return Array['from'](_0x1316bd);}(_0x49d9f3['getSelectedBlocks'](),_0x3e8ed2,_0x1309aa['model']['schema']);_0x1309aa['model']['change'](()=>{for(const _0x133a26 of _0x2f327c)_0x2c2aeb['markBlockFormat'](_0x133a26,{'commandName':_0x296217,'commandParams':[{'forceValue':!_0x3c548['value']}],'formatGroupId':'blockName'},Se(_0x133a26));});};}function _0x300226(_0x2e71b5){return()=>{const _0x2bb5f2=function(_0xdcade1){let _0x25d474=Array['from'](_0xdcade1);const _0x5eecd6=_0x25d474['findIndex'](_0x35ef66=>'listItem'!=_0x35ef66['name']);return _0x5eecd6>-0x1&&(_0x25d474=_0x25d474['slice'](0x0,_0x5eecd6)),_0x25d474;}(_0x1309aa['model']['document']['selection']['getSelectedBlocks']()),_0x49c988=_0x1309aa['model']['createRange'](_0x1309aa['model']['createPositionAt'](_0x2bb5f2[0x0],'before'),_0x1309aa['model']['createPositionAt'](_0x2bb5f2[_0x2bb5f2['length']-0x1],'end'));_0x1309aa['model']['change'](()=>{_0x2c2aeb['markBlockFormat'](_0x49c988,{'commandName':_0x2e71b5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x579212){const _0x49d090=new Set();for(const _0x1e2c41 of _0x579212){let _0x5b431f=_0x1e2c41['nextSibling'];for(;_0x5b431f&&_0x5b431f['getAttribute']('listIndent')>_0x1e2c41['getAttribute']('listIndent');)_0x49d090['add'](_0x5b431f),_0x5b431f=_0x5b431f['nextSibling'];}return Array['from'](_0x49d090);}(_0x2bb5f2));});};}_0x2c2aeb['enableCommand']('numberedList',_0x5b4731('numberedList')),_0x2c2aeb['enableCommand']('bulletedList',_0x5b4731('bulletedList')),_0x471f84&&_0x2c2aeb['enableCommand']('todoList',_0x5b4731('todoList')),_0x2c2aeb['enableCommand']('indentList',_0x300226('indentList')),_0x2c2aeb['enableCommand']('outdentList',_0x300226('outdentList')),_0x471f84&&_0x2c2aeb['enableCommand']('checkTodoList',()=>{const _0x3254f3=_0x1309aa['commands']['get']('checkTodoList'),_0x1bdcea=Array['from'](_0x3254f3['_selectedElements']);_0x1bdcea['filter'](_0x4cc284=>_0x4cc284['getAttribute']('todoListChecked')!=_0x3254f3['value']),_0x1309aa['model']['change'](()=>{for(const _0x2fa4d0 of _0x1bdcea)_0x2c2aeb['markBlockFormat'](_0x2fa4d0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3254f3['value']}]});});}),_0x2c2aeb['descriptionFactory']['registerElementLabel']('listItem',_0x32e9b9=>o(_0x59ff69,'ELEMENT_LIST_ITEM',_0x32e9b9)),_0x2c2aeb['descriptionFactory']['registerDescriptionCallback'](_0x4e008f=>{if('formatBlock'!=_0x4e008f['type']&&'formatInline'!=_0x4e008f['type'])return;const {data:_0x200cc0}=_0x4e008f;if(_0x200cc0){if('numberedList'==_0x200cc0['commandName']||'bulletedList'==_0x200cc0['commandName']||'todoList'==_0x200cc0['commandName'])switch(_0x200cc0['commandName']['replace']('List','')){case'bulleted':return _0x2c226a(o(_0x59ff69,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c226a(o(_0x59ff69,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c226a(o(_0x59ff69,'ELEMENT_TODO_LIST'));}if('indentList'==_0x200cc0['commandName'])return{'type':'format','content':o(_0x59ff69,'*Indent:*\x20%0',o(_0x59ff69,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x200cc0['commandName'])return{'type':'format','content':o(_0x59ff69,'*Outdent:*\x20%0',o(_0x59ff69,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x200cc0['commandName'])return _0x200cc0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59ff69,'*Check\x20item*')}:{'type':'format','content':o(_0x59ff69,'*Uncheck\x20item*')};}function _0x2c226a(_0x482b82){return{'type':'format','content':o(_0x59ff69,'*Change\x20to:*\x20%0',_0x482b82)};}});}}function Ne(_0x44f599){const _0xd5afc9=_0x44f599['getAttribute']('listIndent');if(0x0==_0xd5afc9)return _0x44f599;let _0x31df08=_0x44f599;for(;_0x44f599['previousSibling']&&_0x44f599['previousSibling']['is']('element','listItem');){const _0x4eec90=_0x44f599['previousSibling']['getAttribute']('listIndent');if(_0x4eec90==_0xd5afc9)_0x31df08=_0x44f599['previousSibling'];else{if(_0x4eec90<_0xd5afc9)break;}_0x44f599=_0x44f599['previousSibling'];}return _0x31df08;}function Se(_0x165192){const _0x3aa831=[];if(_0x165192['is']('element','listItem')&&_0x165192['getAttribute']('listIndent')>0x0){let _0x52df11=_0x165192['nextSibling'];for(;_0x52df11&&'listItem'==_0x52df11['name']&&_0x52df11['getAttribute']('listIndent')==_0x165192['getAttribute']('listIndent');)_0x3aa831['push'](_0x52df11),_0x52df11=_0x52df11['nextSibling'];}return _0x3aa831;}class wt extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5b1230=this['editor']['config']['get']('list.properties'),_0x2fdcca=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b1230['styles']&&_0x2fdcca['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5b1230['reversed']&&_0x2fdcca['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5b1230['startIndex']&&_0x2fdcca['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2fdcca['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x306b65,_0x1cf56d={}){const _0x3c970c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x156ce9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3c970c['markMultiRangeBlockFormat'](_0x156ce9,{'commandName':'listStyle','commandParams':[{'type':_0x1cf56d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x479389,_0x3a5cdc={}){const _0x4a9df5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ab990=this['_getSuggestionBlocks'](_0x5198bb=>_0x5198bb['is']('element','listItem')&&'numbered'===_0x5198bb['getAttribute']('listType'));if(_0x2ab990['length']<0x1)return;const _0x30c8f9=_0x2ab990['map'](_0x4956df=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4956df,'before'),this['editor']['model']['createPositionAt'](_0x4956df,0x0)));this['editor']['model']['change'](()=>{_0x4a9df5['markMultiRangeBlockFormat'](_0x30c8f9,{'commandName':'listReversed','commandParams':[{'reversed':_0x3a5cdc['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x39f863,_0x1e6b7d={}){const _0x129daa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e771e=this['_getSuggestionBlocks'](_0x1781a3=>_0x1781a3['is']('element','listItem')&&'numbered'===_0x1781a3['getAttribute']('listType'));if(_0x1e771e['length']<0x1)return;const _0x338b33=_0x1e771e['map'](_0x136d2f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x136d2f,'before'),this['editor']['model']['createPositionAt'](_0x136d2f,0x0)));this['editor']['model']['change'](()=>{_0x129daa['markMultiRangeBlockFormat'](_0x338b33,{'commandName':'listStart','commandParams':[{'startIndex':_0x1e6b7d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1775b8){if('formatBlock'!=_0x1775b8['type']&&'formatInline'!=_0x1775b8['type'])return;const _0x5b6cc5=this['editor']['locale'],{data:_0x50c47f}=_0x1775b8;if(!_0x50c47f)return;let _0x6ae46,_0x5a9a3e;switch(_0x50c47f['commandName']){case'listStyle':_0x6ae46='*Change\x20to:*\x20%0',_0x5a9a3e={'type':'format','content':o(_0x5b6cc5,_0x6ae46,o(_0x5b6cc5,this['_getTranslationKeyForListStyle'](_0x50c47f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x6ae46=_0x50c47f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5a9a3e={'type':'format','content':o(_0x5b6cc5,_0x6ae46)};break;case'listStart':_0x6ae46='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a9a3e={'type':'format','content':o(_0x5b6cc5,_0x6ae46,_0x50c47f['commandParams'][0x0]['startIndex'])};}return _0x5a9a3e;}['_getSuggestionBlocksForListStyle'](){const _0x1e4173=this['editor']['plugins']['get']('LegacyListUtils');let _0x1ef018=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1ef018[0x0]?.['is']('element','listItem')&&_0x1ef018['unshift'](..._0x1e4173['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1ef018[_0x1ef018['length']-0x1]?.['is']('element','listItem')&&_0x1ef018['push'](..._0x1e4173['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1ef018=[...new Set(_0x1ef018)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1ef018=_0x1ef018['filter'](_0x8c3a6c=>_0x8c3a6c['is']('element','listItem'))),_0x1ef018;}['_getSuggestionBlocks'](_0x208f26){const _0x397e35=this['editor']['plugins']['get']('LegacyListUtils');let _0x460c88=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x208f26)['map'](_0x5cfd99=>{const _0x11c7ce=this['editor']['model']['createPositionAt'](_0x5cfd99,0x0);return[..._0x397e35['getSiblingNodes'](_0x11c7ce,'backward'),..._0x397e35['getSiblingNodes'](_0x11c7ce,'forward')];})['flat']();return _0x460c88=[...new Set(_0x460c88)],_0x460c88;}['_getTranslationKeyForListStyle'](_0x4c8363){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4c8363)||'default')['toUpperCase']()+'_LIST_'+_0x4c8363['toUpperCase']()['replace'](/-/g,'_');}}class bt extends _0x4e7f5a{['afterInit'](){const _0xaad2b4=this['editor'];if(!_0xaad2b4['plugins']['has']('MediaEmbedEditing'))return;const _0x5d3261=_0xaad2b4['plugins']['get']('TrackChangesEditing'),_0x47b316=_0xaad2b4['locale'];_0x5d3261['enableCommand']('mediaEmbed'),_0x5d3261['descriptionFactory']['registerElementLabel']('media',_0x305a3b=>o(_0x47b316,'ELEMENT_MEDIA',_0x305a3b)),_0xaad2b4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x58d73e,{writer:_0x572ae4,options:_0x5cdccb})=>{if(_0x5cdccb['showSuggestionHighlights'])return _0x572ae4['createEmptyElement']('div');},'converterPriority':'high'}),_0xaad2b4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x573ea6,_0x1127d4,_0x2c414a)=>{_0x2c414a['options']['showSuggestionHighlights']&&_0x573ea6['stop']();},{'priority':'high'});}}class yt extends _0x4e7f5a{['afterInit'](){const _0x402fd7=this['editor'];_0x402fd7['plugins']['has']('MentionEditing')&&_0x402fd7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class St extends _0x4e7f5a{['afterInit'](){const _0x78b492=this['editor'];if(!_0x78b492['plugins']['has']('MergeFieldsEditing'))return;const _0x108ba5=_0x78b492['plugins']['get']('TrackChangesEditing'),_0x16ee83=_0x78b492['locale'];_0x108ba5['enableCommand']('insertMergeField'),_0x108ba5['enableCommand']('insertMergeFieldBlock'),_0x108ba5['enableCommand']('insertMergeFieldImage'),_0x108ba5['descriptionFactory']['registerElementLabel']('mergeField',_0x4567b3=>o(_0x16ee83,'ELEMENT_MERGE_FIELD',_0x4567b3)),_0x108ba5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xed6faf=>o(_0x16ee83,'ELEMENT_MERGE_FIELD',_0xed6faf)),_0x108ba5['descriptionFactory']['registerDescriptionCallback'](_0x1b8f60=>{if('insertion'!=_0x1b8f60['type']&&'deletion'!=_0x1b8f60['type'])return;const _0xc87a83=_0x1b8f60['getContainedElement']();if(null==_0xc87a83)return;const _0x3bdd5b=_0x78b492['plugins']['get']('MergeFieldsEditing');let _0x56d9a7;switch(_0x3bdd5b['getMergeFieldType'](_0xc87a83)){case null:return;case'image':{const _0x43d5db=_0x3bdd5b['unwrapAffixes'](_0xc87a83['getAttribute']('src'));_0x56d9a7=_0x3bdd5b['getLabel'](_0x43d5db)||_0x43d5db;break;}default:{const _0x49522e=_0xc87a83['getAttribute']('id');_0x56d9a7=_0x3bdd5b['getLabel'](_0x49522e)||_0x49522e;break;}}return'insertion'==_0x1b8f60['type']?{'type':'insertion','content':o(_0x16ee83,'*Insert:*\x20%0','\x22'+_0x56d9a7+'\x22\x20'+o(_0x16ee83,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x16ee83,'*Remove:*\x20%0','\x22'+_0x56d9a7+'\x22\x20'+o(_0x16ee83,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x4e7f5a{['afterInit'](){const _0x482ea0=this['editor'],_0x3346f3=_0x482ea0['plugins']['get']('TrackChangesEditing');_0x482ea0['plugins']['has']('MultiLevelList')&&(_0x3346f3['enableDefaultAttributesIntegration']('multiLevelList'),_0x3346f3['registerBlockAttribute']('listMarkerStyle'),_0x3346f3['descriptionFactory']['registerDescriptionCallback'](_0x3345ed=>this['handleDescriptions'](_0x3345ed)));}['handleDescriptions'](_0x3f025f){const _0x47d1e8=this['editor']['locale'],{data:_0x158502}=_0x3f025f,_0x129525={'type':'format','content':''};if(_0x158502&&'listMarkerStyle'==_0x158502['key']){if(!_0x158502['oldValue'])return{'type':'format','content':o(_0x47d1e8,'*Set\x20format:*\x20%0',o(_0x47d1e8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x158502['newValue']+')'};if(!_0x158502['newValue']){let _0x43b82b=_0x3f025f['head'];for(;_0x43b82b;){if(_0x43b82b['data']&&'listType'==_0x43b82b['data']['key']&&_0x43b82b['data']['newValue'])return _0x129525;_0x43b82b=_0x43b82b['next'];}return{'type':'format','content':o(_0x47d1e8,'*Remove\x20format:*\x20%0',o(_0x47d1e8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x158502['oldValue']+')'};}}}}class It extends _0x4e7f5a{['afterInit'](){const _0x1acc7a=this['editor'];if(!_0x1acc7a['plugins']['has']('PageBreakEditing'))return;_0x1acc7a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x535afd=_0x1acc7a['plugins']['get']('TrackChangesEditing'),_0x45dcd1=_0x1acc7a['locale'];_0x535afd['descriptionFactory']['registerElementLabel']('pageBreak',_0x1e49f8=>o(_0x45dcd1,'ELEMENT_PAGE_BREAK',_0x1e49f8));}}class At extends _0x4e7f5a{['afterInit'](){const _0x4245d6=this['editor'];if(!_0x4245d6['plugins']['has']('Paragraph'))return;const _0x230243=_0x4245d6['locale'],_0x368dfc=_0x4245d6['plugins']['get']('TrackChangesEditing');_0x368dfc['descriptionFactory']['registerElementLabel']('paragraph',_0x5e001f=>o(_0x230243,'ELEMENT_PARAGRAPH',_0x5e001f)),_0x368dfc['enableDefaultAttributesIntegration']('paragraph'),_0x368dfc['enableCommand']('insertParagraph'),_0x4245d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4245d6),{'priority':'highest'}),_0x4245d6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d459e,_0x3abbd7,_0x2a9856)=>{_0x2a9856['options']['showSuggestionHighlights']&&nr(_0x4245d6,{'showActiveMarker':!0x1})(_0x5d459e,_0x3abbd7,_0x2a9856);},{'priority':'highest'});const _0x40767a=_0x368dfc['descriptionFactory'];_0x40767a['registerDescriptionCallback'](_0x1e9513=>{if('insertion'!==_0x1e9513['type'])return;const {start:_0x371b9f,end:_0x3cce9a}=_0x1e9513['getFirstRange']();if(!_0x371b9f['isTouching'](_0x3cce9a)||!_0x371b9f['nodeAfter'])return;const _0x4f4d1c=_0x4245d6['model']['schema'],_0x286dde=_0x371b9f['nodeAfter'];return _0x4f4d1c['isBlock'](_0x286dde)&&!_0x4f4d1c['isLimit'](_0x286dde)&&_0x4f4d1c['checkChild'](_0x286dde,'$text')?{'type':'insertion','content':o(_0x230243,'*Insert:*\x20%0',_0x40767a['getItemLabel'](_0x286dde,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e874e=this['editor'],_0x4c26f9=_0x2e874e['locale'];_0x2e874e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49c884=>{if('formatBlock'!=_0x49c884['type'])return;const {data:_0x2c1cf2}=_0x49c884;return _0x2c1cf2&&'paragraph'==_0x2c1cf2['commandName']?{'type':'format','content':o(_0x4c26f9,'*Change\x20to:*\x20%0',o(_0x4c26f9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x35cca7,{showActiveMarker:_0x42f3a4=!0x0}={}){return(_0x4392ec,_0x4e8fc9,_0x3e8e4b)=>{const _0x31cb04=_0x35cca7['plugins']['get']('TrackChangesEditing'),_0x7601dd=_0x4e8fc9['markerRange']['start'],_0x3be934=_0x4e8fc9['markerRange']['end'],_0x96fb9a=_0x35cca7['model']['schema'];if(!_0x7601dd['isTouching'](_0x3be934)||!_0x7601dd['nodeAfter'])return;const _0x2933a3=_0x7601dd['nodeAfter'];if(_0x96fb9a['isBlock'](_0x2933a3)&&!_0x96fb9a['isLimit'](_0x2933a3)&&_0x96fb9a['checkChild'](_0x2933a3,'$text')){if(!_0x3e8e4b['consumable']['consume'](_0x4e8fc9['markerRange'],_0x4392ec['name']))return;const {id:_0x599291,authorId:_0x145235}=_0x31cb04['_splitMarkerName'](_0x4e8fc9['markerName']),_0x5ab47c=_0x3e8e4b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x599291,'data-author-id':_0x145235}),_0x3c06a4=_0x3e8e4b['mapper']['toViewPosition'](_0x3be934);_0x42f3a4&&_0x31cb04['activeMarkers']['includes'](_0x4e8fc9['markerName'])&&_0x3e8e4b['writer']['addClass']('ck-suggestion-marker--active',_0x5ab47c),_0x3e8e4b['writer']['insert'](_0x3c06a4,_0x5ab47c),_0x3e8e4b['mapper']['bindElementToMarker'](_0x5ab47c,_0x4e8fc9['markerName']);}};}class _t extends _0x4e7f5a{['afterInit'](){const _0x5b5de0=this['editor'];_0x5b5de0['commands']['get']('replaceSource')&&_0x5b5de0['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class $t extends _0x4e7f5a{['afterInit'](){const _0x754f87=this['editor'];if(!_0x754f87['plugins']['has']('RemoveFormatEditing'))return;_0x754f87['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x187eab=this['editor'];_0x187eab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b100c=>{if('formatBlock'!=_0x1b100c['type']&&'formatInline'!=_0x1b100c['type'])return;const {data:_0x325fb4}=_0x1b100c;return _0x325fb4&&'removeFormat'==_0x325fb4['commandName']?{'type':'format','content':o(_0x187eab['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class vt extends _0x4e7f5a{['afterInit'](){const _0x2479b5=this['editor'];if(!_0x2479b5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x517801=_0x2479b5['plugins']['get']('TrackChangesEditing');_0x517801['enableCommand']('goToPreviousRestrictedEditingException'),_0x517801['enableCommand']('goToNextRestrictedEditingException');const _0x1268e6=_0x2479b5['plugins']['get']('RestrictedEditingModeEditing');_0x1268e6['enableCommand']('trackChanges'),_0x1268e6['enableCommand']('acceptSuggestion'),_0x1268e6['enableCommand']('discardSuggestion'),_0x1268e6['enableCommand']('acceptAllSuggestions'),_0x1268e6['enableCommand']('discardAllSuggestions'),_0x1268e6['enableCommand']('acceptSelectedSuggestions'),_0x1268e6['enableCommand']('discardSelectedSuggestions');}}class Ct extends _0x4e7f5a{['afterInit'](){const _0x1cf726=this['editor'];if(!_0x1cf726['plugins']['has']('ShiftEnter'))return;const _0x49cbd4=_0x1cf726['plugins']['get']('TrackChangesEditing');_0x49cbd4['enableCommand']('shiftEnter'),_0x1cf726['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x1cf726),{'priority':'high'}),_0x1cf726['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x1cf726),{'priority':'high'}),_0x1cf726['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe3e1ab,_0x2a1229,_0x2cc127)=>{_0x2cc127['options']['showSuggestionHighlights']&&qe(_0x1cf726,{'showActiveMarker':!0x1})(_0xe3e1ab,_0x2a1229,_0x2cc127);}),_0x49cbd4['descriptionFactory']['registerElementLabel']('softBreak',_0xd8274b=>o(_0x1cf726['locale'],'ELEMENT_LINE_BREAK',_0xd8274b));}}function qe(_0xe9ece8,{showActiveMarker:_0xe53c09=!0x0}={}){return(_0x3d3bac,_0x3a77b7,_0x1f17cb)=>{const _0x240b6c=_0xe9ece8['plugins']['get']('TrackChangesEditing');if(!_0x1f17cb['consumable']['test'](_0x3a77b7['markerRange'],_0x3d3bac['name']))return;const _0x3df01a=_0xe9ece8['model'];for(const _0x312e5b of _0x3a77b7['markerRange']['getItems']()){if(!_0x312e5b['is']('element','softBreak'))continue;const _0x11847f='deletion'==_0x3a77b7['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x35e42c,authorId:_0x56f6a0}=_0x240b6c['_splitMarkerName'](_0x3a77b7['markerName']),_0x293f31=_0x1f17cb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x11847f,'data-suggestion':_0x35e42c,'data-author-id':_0x56f6a0}),_0x303ea8=_0x1f17cb['mapper']['toViewPosition'](_0x3df01a['createPositionBefore'](_0x312e5b));_0xe53c09&&_0x240b6c['activeMarkers']['includes'](_0x3a77b7['markerName'])&&_0x1f17cb['writer']['addClass']('ck-suggestion-marker--active',_0x293f31),_0x1f17cb['writer']['insert'](_0x303ea8,_0x293f31),_0x1f17cb['mapper']['bindElementToMarker'](_0x293f31,_0x3a77b7['markerName']);}};}class Nt extends _0x4e7f5a{['afterInit'](){const _0x250d88=this['editor'],_0x4a6102=_0x250d88['model'],_0x41d8ef=_0x250d88['locale'];if(!_0x250d88['plugins']['has']('StandardEditingModeEditing'))return;const _0x362187=_0x250d88['plugins']['get']('TrackChangesEditing'),_0xa85a30='restrictedEditingException',_0x2c399e=_0x250d88['commands']['get'](_0xa85a30);_0x362187['enableCommand'](_0xa85a30,(_0x5b3e72,_0x2e0e4b={})=>{const _0x2a0d94=_0x4a6102['document']['selection'];if(_0x2a0d94['isCollapsed'])return void _0x5b3e72(_0x2e0e4b);const _0x1143c6=void 0x0!==_0x2e0e4b['forceValue']?_0x2e0e4b['forceValue']:!_0x2c399e['value'];_0x4a6102['change'](()=>{const _0x3589c1=Array['from'](_0x2a0d94['getRanges']());for(const _0x18f20f of _0x3589c1){const _0x31a902=_0x1143c6?[_0x18f20f]:io(_0xa85a30,_0x18f20f,_0x4a6102);for(const _0x2f114b of _0x31a902)_0x362187['markInlineFormat'](_0x2f114b,{'commandName':_0xa85a30,'commandParams':[{'forceValue':_0x1143c6}]});}});}),_0x362187['descriptionFactory']['registerDescriptionCallback'](_0x3566a2=>{if('formatBlock'!=_0x3566a2['type']&&'formatInline'!=_0x3566a2['type'])return;const {data:_0x3bee97}=_0x3566a2;return _0x3bee97&&_0x3bee97['commandName']==_0xa85a30?_0x3bee97['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41d8ef,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x41d8ef,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Dt extends _0x4e7f5a{['afterInit'](){const _0x46d393=this['editor'];if(!_0x46d393['plugins']['has']('Style')||!_0x46d393['plugins']['has']('DataSchema'))return;const _0x4a19af=_0x46d393['plugins']['get']('TrackChangesEditing'),_0x3b157e=_0x46d393['locale'],_0x31cf07=_0x46d393['config']['get']('style')||{},_0x1ceb22=_0x46d393['plugins']['get']('GeneralHtmlSupport'),_0x482fdc=_0x46d393['plugins']['get']('StyleUtils')['normalizeConfig'](_0x46d393['plugins']['get']('DataSchema'),_0x31cf07['definitions']);_0x4a19af['enableDefaultAttributesIntegration']('style');const _0x859cda=new Set();for(const _0x35947d of _0x482fdc['block']){const _0x3c966b=_0x1ceb22['getGhsAttributeNameForElement'](_0x35947d['element']);_0x859cda['add'](_0x3c966b);}const _0x499690=new Set();for(const _0x1a2595 of _0x482fdc['inline']){const _0x1c243d=_0x1ceb22['getGhsAttributeNameForElement'](_0x1a2595['element']);_0x499690['add'](_0x1c243d);for(const _0x27f195 of _0x1a2595['ghsAttributes'])_0x499690['add'](_0x27f195);}for(const _0x1b84c0 of _0x859cda)_0x4a19af['registerBlockAttribute'](_0x1b84c0),_0x4a19af['descriptionFactory']['registerAttributeLabel'](_0x1b84c0,o(_0x3b157e,'FORMAT_STYLE'));for(const _0x2a17a4 of _0x499690)_0x4a19af['registerInlineAttribute'](_0x2a17a4),_0x4a19af['descriptionFactory']['registerAttributeLabel'](_0x2a17a4,o(_0x3b157e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f44a8=this['editor'],_0x5f1cf4=_0x4f44a8['locale'];_0x4f44a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b29e7=>{if('formatBlock'!=_0x4b29e7['type']&&'formatInline'!=_0x4b29e7['type'])return;const {data:_0x26c3dd}=_0x4b29e7;return _0x26c3dd&&'style'===_0x26c3dd['commandName']?_0x26c3dd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5f1cf4,'*Set\x20format:*\x20%0',_0x26c3dd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5f1cf4,'*Remove\x20format:*\x20%0',_0x26c3dd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Mt extends _0x4e7f5a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3bc5b9){super(_0x3bc5b9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x20ddad=this['editor'],_0x18e56f=_0x20ddad['model']['document']['selection'];if(!_0x20ddad['plugins']['has']('TableEditing'))return;const _0x11ad97=_0x20ddad['locale'],_0x13b06c=_0x20ddad['plugins']['get']('TrackChangesEditing'),_0x257afd=_0x20ddad['plugins']['get']('TableUtils');_0x13b06c['descriptionFactory']['registerElementLabel']('table',_0x199775=>o(_0x11ad97,'ELEMENT_TABLE',_0x199775)),this['_setupColumnsRowsFixing'](),_0x13b06c['enableCommand']('insertTable'),_0x13b06c['enableCommand']('selectTableRow'),_0x13b06c['enableCommand']('selectTableColumn');for(const _0x46494a of['insertTableRowAbove','insertTableRowBelow']){const _0x378202=_0x20ddad['commands']['get'](_0x46494a);_0x13b06c['enableCommand'](_0x46494a,_0x8f3a02=>{_0x20ddad['model']['change'](_0x3ada26=>{_0x8f3a02();const _0x3d7201='above'===_0x378202['order'],_0x246f05=_0x257afd['getSelectionAffectedTableCells'](_0x18e56f),_0x2eed74=_0x257afd['getRowIndexes'](_0x246f05),_0x206677=_0x3d7201?_0x2eed74['first']-0x1:_0x2eed74['last']+0x1,_0x27f139=_0x246f05[0x0]['findAncestor']('table'),_0x68a213=_0x257afd['createTableWalker'](_0x27f139,{'startRow':_0x206677,'endRow':_0x206677}),_0xa13089=Array['from'](_0x68a213)['map'](_0x506cdb=>_0x3ada26['createRangeOn'](_0x506cdb['cell']));_0x13b06c['markMultiRangeInsertion'](_0xa13089,'tableRow');});});}for(const _0x527b62 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3c90b0=_0x20ddad['commands']['get'](_0x527b62);_0x13b06c['enableCommand'](_0x527b62,_0x4817c6=>{_0x20ddad['model']['change'](_0x47ac59=>{_0x4817c6();const _0x368c3a='left'===_0x3c90b0['order'],_0x155a49=_0x257afd['getSelectionAffectedTableCells'](_0x18e56f),_0x4b271a=_0x257afd['getColumnIndexes'](_0x155a49),_0x2a33f9=_0x368c3a?_0x4b271a['first']-0x1:_0x4b271a['last']+0x1,_0x584bed=_0x155a49[0x0]['findAncestor']('table'),_0x256183=_0x257afd['createTableWalker'](_0x584bed,{'startRow':0x0,'column':_0x2a33f9,'includeAllSlots':!0x1}),_0x192915=Array['from'](_0x256183)['map'](_0x4e8d96=>_0x47ac59['createRangeOn'](_0x4e8d96['cell']));_0x13b06c['markMultiRangeInsertion'](_0x192915,'tableColumn');});});}for(const _0x43a9b6 of['removeTableRow','removeTableColumn']){const _0x1bb684=_0x43a9b6['substr'](0xb),_0x54e8b8=_0x1bb684['toLowerCase'](),_0x56450f=_0x54e8b8['substr'](0x0,0x3)+'span',_0x7d5dde='table'+_0x1bb684,_0x5d9177='min'+_0x1bb684,_0x1fa97f='max'+_0x1bb684;_0x13b06c['enableCommand'](_0x43a9b6,()=>{_0x20ddad['model']['change'](_0x31bcfb=>{const _0x1288dc=_0x257afd['getSelectionAffectedTableCells'](_0x18e56f),_0x3c1eb3=_0x1288dc[0x0]['findAncestor']('table');let _0x3e8d01;if('removeTableRow'==_0x43a9b6){const _0x5f3e3a=_0x257afd['getRowIndexes'](_0x1288dc);_0x3e8d01={'startRow':_0x5f3e3a['first'],'endRow':_0x5f3e3a['last'],'includeAllSlots':!0x0};}else{const _0x43b82a=_0x257afd['getColumnIndexes'](_0x1288dc);_0x3e8d01={'startColumn':_0x43b82a['first'],'endColumn':_0x43b82a['last'],'includeAllSlots':!0x0};}const _0x5ed4c6=_0x257afd['createTableWalker'](_0x3c1eb3,_0x3e8d01),_0x2c74f0=Array['from'](_0x5ed4c6)['map'](({cell:_0x361197})=>_0x361197),_0xd9efa=Oe(_0x2c74f0['filter'](_0x234bbe=>_0x234bbe['hasAttribute'](_0x56450f))),_0x450b58=Oe(_0x2c74f0['filter'](_0x2fa0ec=>!_0x2fa0ec['hasAttribute'](_0x56450f)))['map'](_0x2b3a0b=>_0x31bcfb['createRangeOn'](_0x2b3a0b)),_0x45f974=_0x13b06c['markMultiRangeDeletion'](_0x450b58,_0x7d5dde);if(_0x45f974&&('tableRow'==_0x45f974['subType']||'tableColumn'==_0x45f974['subType'])){const _0x42bec5=this['_getSuggestionCoords'](_0x45f974);for(const _0x162d3e of _0xd9efa){const _0x465aab=_0x31bcfb['createRangeOn'](_0x162d3e),_0xe96d0e=_0x257afd['getCellLocation'](_0x162d3e),_0x1415f6=_0x162d3e['getAttribute'](_0x56450f)-0x1,_0x45b912=_0x42bec5[_0x5d9177],_0x29d82e=_0x42bec5[_0x1fa97f];_0x45b912<=_0xe96d0e[_0x54e8b8]&&_0xe96d0e[_0x54e8b8]+_0x1415f6<=_0x29d82e&&_0x45f974['addRange'](_0x465aab);}}});});}function _0x5d16f5(_0x403980){const _0x17ee4f=Array['from'](_0x18e56f['getRanges']())['map'](_0x21e51c=>_0x3d40b9['fromRange'](_0x21e51c));_0x20ddad['model']['change'](_0x268214=>{const _0x246ac8=_0x268214['batch'];_0x403980=_0x403980['filter'](_0x3189dc=>'$graveyard'!=_0x3189dc['root']['rootName']),_0x268214['setSelection'](_0x403980),_0x20ddad['commands']['get']('removeTableRow')['refresh'](),_0x20ddad['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x20ddad['model']['enqueueChange'](()=>{_0x20ddad['model']['enqueueChange'](_0x246ac8,_0x3333b2=>{const _0x3012f8=_0x17ee4f['filter'](_0x12c68e=>'$graveyard'!=_0x12c68e['root']['rootName']);_0x3012f8['length']>0x0&&_0x3333b2['setSelection'](_0x3012f8);for(const _0x508355 of _0x17ee4f)_0x508355['detach']();});});});}function _0x3cd004(_0xaf92f5){_0x20ddad['model']['change'](_0x2687d2=>{const _0x5cd304=Array['from'](_0x18e56f['getRanges']())['map'](_0x51332f=>_0x3d40b9['fromRange'](_0x51332f)),_0x30308e=[];for(const _0x26f811 of _0xaf92f5)for(const _0x3db798 of _0x26f811['getItems']({'shallow':!0x0}))_0x30308e['push'](_0x3db798);for(const _0x1c5309 of _0x30308e)'$graveyard'!=_0x1c5309['root']['rootName']&&(_0x2687d2['setSelection'](_0x2687d2['createPositionAt'](_0x1c5309,0x0)),_0x20ddad['commands']['get']('removeTableColumn')['refresh'](),_0x20ddad['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x36e06f=_0x5cd304['filter'](_0x4f632d=>'$graveyard'!=_0x4f632d['root']['rootName']);_0x36e06f['length']>0x0&&_0x2687d2['setSelection'](_0x36e06f);for(const _0x10e780 of _0x5cd304)_0x10e780['detach']();});}function _0x30377f(_0x31fbfe,_0x53e970){return _0x53e970['every'](_0x12393b=>_0x31fbfe['some'](_0x12fdcc=>_0x12fdcc['end']['isEqual'](_0x12393b['start'])||_0x12393b['end']['isEqual'](_0x12fdcc['start'])));}function _0xcc5285(_0x1d5eef,_0x576a40){return!_0x1d5eef['some'](_0x35e318=>_0x576a40['some'](_0x379a3c=>_0x35e318['isIntersecting'](_0x379a3c)))&&_0x1d5eef['some'](_0x2fbf1=>_0x576a40['some'](_0x5b7eb0=>_0x2fbf1['end']['isTouching'](_0x5b7eb0['start'])));}_0x20ddad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a08e3,_0x344409,_0xc30721)=>{if(!_0xc30721['options']['showSuggestionHighlights'])return;const _0x249067=_0x344409['item'];if(!_0x249067||!_0x249067['is']('element','tableCell'))return;const _0x22abbb=_0xc30721['mapper']['toViewElement'](_0x249067);if(_0x22abbb){const {id:_0x300a2d,authorId:_0x286b15}=_0x13b06c['_splitMarkerName'](_0x344409['markerName']);_0x4b3917(_0x22abbb,_0xc30721['writer'],(_0x43ad5b,_0x387492,_0x592d0b)=>{_0x592d0b['addClass'](_0x53f15a(_0x387492['classes']),_0x43ad5b),_0x592d0b['setAttribute']('data-suggestion-id',_0x300a2d,_0x43ad5b),_0x592d0b['setAttribute']('data-author-id',_0x286b15,_0x43ad5b);},(_0x117cc2,_0x922fd7,_0x2b0337)=>{_0x2b0337['removeClass'](_0x53f15a(_0x922fd7['classes']),_0x117cc2),_0x2b0337['removeAttribute']('data-suggestion-id',_0x117cc2),_0x2b0337['removeAttribute']('data-author-id',_0x117cc2);});}},{'priority':'highest'}),_0x13b06c['descriptionFactory']['registerDescriptionCallback'](_0x266f61=>{if('insertion'!=_0x266f61['type']&&'deletion'!=_0x266f61['type'])return;const _0x19ec24=_0x266f61['getContainedElement']();if(null!=_0x19ec24&&_0x19ec24['is']('element','table')){if('insertion'==_0x266f61['type']){const _0x12ea53=_0x266f61['getItems']()['filter'](_0x3e23dc=>_0x3e23dc['is']('$textProxy'))['map'](_0x286245=>_0x286245['data']);if(_0x12ea53['length'])return{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x12ea53['join']('\x20')+'\x22'))};}if('deletion'==_0x266f61['type']){const _0x46e797=_0x266f61['getItems']()['filter'](_0x4c78a8=>_0x4c78a8['is']('$textProxy'))['map'](_0x3f8af3=>_0x3f8af3['data']);if(_0x46e797['length'])return{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x46e797['join']('\x20')+'\x22'))};}}}),_0x13b06c['descriptionFactory']['registerDescriptionCallback'](_0x17cf2e=>{if('tableRow'==_0x17cf2e['subType']){const _0x179610=_0x17cf2e['getItems']()['filter'](_0x10b543=>_0x10b543['is']('$textProxy'))['map'](_0x37aa56=>_0x37aa56['data']),_0x5c9809=this['_getSuggestionCoords'](_0x17cf2e),_0x107532=_0x5c9809['maxRow']-_0x5c9809['minRow']+0x1;if('insertion'==_0x17cf2e['type'])return _0x179610['length']?{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x107532,'\x22'+_0x179610['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_ROW',_0x107532))};if('deletion'==_0x17cf2e['type'])return _0x179610['length']?{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x107532,'\x22'+_0x179610['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_ROW',_0x107532))};}if('tableColumn'==_0x17cf2e['subType']){const _0x140e42=_0x17cf2e['getItems']()['filter'](_0xb4db79=>_0xb4db79['is']('$textProxy'))['map'](_0x3f8720=>_0x3f8720['data']),_0x258a21=this['_getSuggestionCoords'](_0x17cf2e),_0xdee3ca=_0x258a21['maxColumn']-_0x258a21['minColumn']+0x1;if('insertion'==_0x17cf2e['type'])return _0x140e42['length']?{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdee3ca,'\x22'+_0x140e42['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_COLUMN',_0xdee3ca))};if('deletion'==_0x17cf2e['type'])return _0x140e42['length']?{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdee3ca,'\x22'+_0x140e42['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_COLUMN',_0xdee3ca))};}}),_0x13b06c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5d16f5),_0x13b06c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5d16f5),_0x13b06c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3cd004),_0x13b06c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3cd004),_0x13b06c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x30377f),_0x13b06c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x30377f),_0x13b06c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xcc5285),_0x13b06c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xcc5285);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5c833e=this['editor'],_0x3948e4=_0x5c833e['model']['document']['selection'];return(_0x42ad41,_0x4a57ee)=>{_0x5c833e['model']['change'](_0x273c5c=>{const {commandName:_0x44f93a,commandParams:_0x498c0f}=_0x4a57ee;let _0x18da4a=_0x42ad41[0x0]['end']['nodeBefore'];_0x498c0f&&_0x498c0f[0x0]&&!0x1===_0x498c0f[0x0]['forceValue']&&(_0x18da4a=_0x42ad41[0x0]['start']['nodeAfter']);const _0x2a9426=_0x273c5c['createRangeIn'](_0x18da4a);if('$graveyard'==_0x2a9426['root']['rootName'])return;const _0x2afbde=Array['from'](_0x3948e4['getRanges']())['map'](_0x36d27d=>_0x3d40b9['fromRange'](_0x36d27d));_0x273c5c['setSelection'](_0x2a9426),_0x5c833e['commands']['get'](_0x44f93a)['refresh'](),_0x498c0f['push']({'forceDefaultExecution':!0x0}),_0x5c833e['execute'](_0x44f93a,..._0x498c0f);const _0x3010d7=_0x2afbde['filter'](_0x1d0821=>'$graveyard'!=_0x1d0821['root']['rootName']);_0x3010d7['length']>0x0&&_0x273c5c['setSelection'](_0x3010d7);for(const _0x471be8 of _0x2afbde)_0x471be8['detach']();});};}['_getCoordsForCells'](_0x37134f){const _0x4aeed6=this['editor']['plugins']['get']('TableUtils');let _0x318acc=Number['MAX_SAFE_INTEGER'],_0x1c24d7=Number['MIN_SAFE_INTEGER'],_0x4d5025=Number['MAX_SAFE_INTEGER'],_0x450b33=Number['MIN_SAFE_INTEGER'];for(const _0xb45104 of _0x37134f){if('$graveyard'==_0xb45104['root']['rootName'])continue;const {row:_0x530145,column:_0x197f42}=_0x4aeed6['getCellLocation'](_0xb45104),_0x2d13a1=_0xb45104['hasAttribute']('rowspan')?_0xb45104['getAttribute']('rowspan')-0x1:0x0,_0x138b3f=_0xb45104['hasAttribute']('colspan')?_0xb45104['getAttribute']('colspan')-0x1:0x0;_0x318acc=_0x530145<_0x318acc?_0x530145:_0x318acc,_0x1c24d7=_0x530145+_0x2d13a1>_0x1c24d7?_0x530145+_0x2d13a1:_0x1c24d7,_0x4d5025=_0x197f42<_0x4d5025?_0x197f42:_0x4d5025,_0x450b33=_0x197f42+_0x138b3f>_0x450b33?_0x197f42+_0x138b3f:_0x450b33;}return{'minRow':_0x318acc,'maxRow':_0x1c24d7,'minColumn':_0x4d5025,'maxColumn':_0x450b33};}['_setupColumnsRowsFixing'](){const _0x46dbc5=this['editor'],_0xe2905c=_0x46dbc5['plugins']['get']('TrackChangesEditing'),_0x4829cf=_0x46dbc5['plugins']['get']('TableUtils');_0x46dbc5['model']['document']['on']('change:data',()=>{const _0x19e8d7=Array['from'](_0x46dbc5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a6bca,data:_0x36cc1c}of _0x19e8d7){const {group:_0x185887,id:_0x52ff2a,subType:_0x285f50}=_0xe2905c['_splitMarkerName'](_0x2a6bca);if('suggestion'!=_0x185887)continue;if(null!=_0x36cc1c['oldRange'])continue;const _0x3f20fe=_0xe2905c['getSuggestion'](_0x52ff2a);this['_tablePostFixingSubtypes']['includes'](_0x285f50)&&this['_tableSuggestions']['add'](_0x3f20fe);}},{'priority':'low'});const _0x5adb02=(_0x58e760,_0x37a789)=>{let _0x527487=!0x1;const _0x5f1534=_0x37a789['createRangeOn'](_0x58e760),_0x129d0a=_0x58e760['findAncestor']('table'),_0x1bea31=_0x4829cf['getCellLocation'](_0x58e760);for(const _0x56410d of this['_tableSuggestions']){const _0x1edd08=_0x56410d['subType'],_0x4e61ec=_0x1edd08['startsWith']('tablePaste'),_0x9a060d=_0x1edd08['substr'](_0x4e61ec?0xa:0x5),_0x4a80ec=_0x9a060d['toLowerCase'](),_0x26453f=_0x4a80ec['substr'](0x0,0x3)+'span',_0x283f4a='min'+_0x9a060d,_0x38e032='max'+_0x9a060d;if(!_0x56410d['isInContent'])continue;if(_0x129d0a!=_0x56410d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x56410d['isIntersectingWithRange'](_0x5f1534))continue;const _0x2d39dc=_0x58e760['hasAttribute'](_0x26453f)?_0x58e760['getAttribute'](_0x26453f)-0x1:0x0,_0x3c75b7=this['_getSuggestionCoords'](_0x56410d),_0x59e68d=_0x3c75b7[_0x283f4a],_0x1d5662=_0x3c75b7[_0x38e032];_0x59e68d<=_0x1bea31[_0x4a80ec]&&_0x1bea31[_0x4a80ec]+_0x2d39dc<=_0x1d5662&&(_0x56410d['addRange'](_0x5f1534),_0x527487=!0x0);}return _0x527487;};_0x46dbc5['model']['document']['registerPostFixer'](_0x2d9b62=>{let _0x1f7f43=!0x1;for(const _0xe570c6 of _0x46dbc5['model']['document']['differ']['getChanges']())if('insert'==_0xe570c6['type']){if('tableRow'==_0xe570c6['name']){for(const _0x1e1a0e of _0xe570c6['position']['nodeAfter']['getChildren']())_0x1f7f43=_0x1f7f43||_0x5adb02(_0x1e1a0e,_0x2d9b62);}else'tableCell'==_0xe570c6['name']&&(_0x1f7f43=_0x1f7f43||_0x5adb02(_0xe570c6['position']['nodeAfter'],_0x2d9b62));}return _0x1f7f43;});}['_getSuggestionCoords'](_0xf25af0){return this['_getCoordsForCells'](_0xf25af0['getRanges']()['map'](_0x77136d=>_0x77136d['start']['nodeAfter']));}}function Oe(_0x42935c){return Array['from'](new Set(_0x42935c)['values']());}class Bt extends _0x4e7f5a{static get['requires'](){return[Mt];}['afterInit'](){const _0x1bf37d=this['editor'],_0x3e1fbd=_0x1bf37d['model']['document']['selection'],_0x37d6d9=_0x1bf37d['locale'];if(!_0x1bf37d['plugins']['has']('TableEditing'))return;const _0x3d69f0=_0x1bf37d['plugins']['get']('TrackChangesEditing'),_0x17e9fa=_0x1bf37d['plugins']['get']('TableUtils'),_0x42e690=_0x1bf37d['plugins']['get'](Mt);_0x42e690['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3d69f0['enableCommand']('mergeTableCells',()=>{const _0x399e54=_0x17e9fa['getSelectionAffectedTableCells'](_0x1bf37d['model']['document']['selection']);_0x1bf37d['model']['change'](()=>{_0x3d69f0['markMultiRangeBlockFormat'](_0x399e54,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1bf37d['commands']['get']('mergeTableCells')['on']('execute',(_0x4fe423,_0x15ff3e)=>{_0x1bf37d['commands']['get']('trackChanges')['value']&&(_0x15ff3e['length']>0x0&&_0x15ff3e[_0x15ff3e['length']-0x1]&&_0x15ff3e[_0x15ff3e['length']-0x1]['forceDefaultExecution']||_0x3d69f0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4fe423['stop']());},{'priority':'highest'});for(const _0x25a1a1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1ece94=_0x1bf37d['commands']['get'](_0x25a1a1);_0x3d69f0['enableCommand'](_0x25a1a1,()=>{const _0x1f0468=_0x1bf37d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x194b56=>_0x194b56['is']('element','tableCell')),_0x196f9f=_0x1ece94['value'];_0x1bf37d['model']['change'](()=>{_0x3d69f0['markMultiRangeBlockFormat']([_0x1f0468,_0x196f9f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x408e1b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5b18bb=_0x1bf37d['commands']['get'](_0x408e1b);_0x3d69f0['enableCommand'](_0x408e1b,()=>{const _0x3b9f4b=_0x17e9fa['getSelectionAffectedTableCells'](_0x1bf37d['model']['document']['selection'])[0x0],_0x2541e1=_0x3b9f4b['findAncestor']('table'),{column:_0x57f9ad,row:_0x57cb66}=_0x17e9fa['getCellLocation'](_0x3b9f4b);let _0x416f9f=[];if('horizontally'==_0x5b18bb['direction']){const _0x2e3662=_0x17e9fa['createTableWalker'](_0x2541e1,{'startRow':_0x57cb66,'endRow':_0x57cb66,'includeAllSlots':!0x0});_0x416f9f=Array['from'](_0x2e3662)['map'](_0x3bfa26=>_0x3bfa26['cell']);}else{const _0xafdc97=_0x17e9fa['createTableWalker'](_0x2541e1,{'column':_0x57f9ad,'includeAllSlots':!0x0});_0x416f9f=Array['from'](_0xafdc97)['map'](_0x1a0225=>_0x1a0225['cell']);}_0x1bf37d['model']['change'](_0x1250fb=>{_0x3d69f0['markBlockFormat'](_0x1250fb['createRangeOn'](_0x3b9f4b),{'commandName':_0x408e1b,'commandParams':[]},_0x416f9f,_0x408e1b);});});}_0x3d69f0['descriptionFactory']['registerDescriptionCallback'](_0x5b1d30=>{if('formatBlock'!=_0x5b1d30['type']&&'formatInline'!=_0x5b1d30['type'])return;const {data:_0x38dc14}=_0x5b1d30;return _0x38dc14&&'mergeTableCells'==_0x38dc14['commandName']?{'type':'format','content':o(_0x37d6d9,'*Merge\x20cells*')}:void 0x0;}),_0x3d69f0['descriptionFactory']['registerDescriptionCallback'](_0x280d75=>{if('formatBlock'!=_0x280d75['type']&&'formatInline'!=_0x280d75['type'])return;const {data:_0x4034aa}=_0x280d75;return _0x4034aa?'splitTableCellVertically'==_0x4034aa['commandName']?{'type':'format','content':o(_0x37d6d9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4034aa['commandName']?{'type':'format','content':o(_0x37d6d9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x389580=_0x42e690['_acceptFormatSuggestionCallbackFactory']();for(const _0x2a0715 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3d69f0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a0715,'accept',_0x389580);for(const _0x2fdf5a of['splitTableCellVertically','splitTableCellHorizontally'])_0x3d69f0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fdf5a,'accept',_0x389580);_0x3d69f0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3941ca=>{_0x1bf37d['model']['change'](_0x92bdd4=>{const _0x4d466d=Array['from'](_0x3e1fbd['getRanges']())['map'](_0xf82889=>_0x3d40b9['fromRange'](_0xf82889));_0x92bdd4['setSelection'](_0x3941ca),_0x1bf37d['commands']['get']('mergeTableCells')['refresh'](),_0x1bf37d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x143b36=_0x4d466d['filter'](_0x5aad98=>'$graveyard'!=_0x5aad98['root']['rootName']);_0x143b36['length']>0x0&&_0x92bdd4['setSelection'](_0x143b36);for(const _0x103b49 of _0x4d466d)_0x103b49['detach']();});});for(const _0x5076ff of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c93a4=_0x1bf37d['commands']['get'](_0x5076ff);_0x3c93a4['on']('set:isEnabled',(_0x53bb13,_0x233056,_0x1835ee)=>{if(_0x1835ee){const _0x4ea799=_0x1bf37d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3c6d03=>_0x3c6d03['is']('element','tableCell'));this['_areMergableCells'](_0x3c93a4['value'],_0x4ea799)||(_0x53bb13['return']=!0x1,_0x53bb13['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xfc4f9f=this['editor']['commands']['get']('mergeTableCells'),_0x38a46c=this['editor']['plugins']['get']('TableUtils');if(!_0xfc4f9f['isEnabled'])return!0x1;const _0x57fbbd=_0x38a46c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1a50ac of _0x57fbbd)for(const _0x313d95 of _0x57fbbd)if(_0x1a50ac!=_0x313d95&&!this['_areMergableCells'](_0x1a50ac,_0x313d95))return!0x1;return!0x0;}['_areMergableCells'](_0x583f31,_0x29d8a9){const _0x1da8a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11b760=this['editor']['model']['createRangeOn'](_0x583f31),_0x243113=this['editor']['model']['createRangeOn'](_0x29d8a9),_0x2d7f74=new Set(),_0x867cd8=new Set();for(const _0x51c01f of _0x1da8a8['getSuggestions']())if(('insertion'==_0x51c01f['type']||'deletion'==_0x51c01f['type']||'mergeTableCells'==_0x51c01f['subType'])&&_0x51c01f['isInContent']){for(const _0x1d65c6 of _0x51c01f['getRanges']())_0x1d65c6['containsRange'](_0x11b760,!0x0)&&_0x2d7f74['add'](_0x51c01f['type']+':'+_0x51c01f['author']['id']),_0x1d65c6['containsRange'](_0x243113,!0x0)&&_0x867cd8['add'](_0x51c01f['type']+':'+_0x51c01f['author']['id']);}if(_0x2d7f74['size']!=_0x867cd8['size'])return!0x1;for(const _0x540749 of _0x2d7f74)if(!_0x867cd8['has'](_0x540749))return!0x1;return!0x0;}}class Tt extends _0x4e7f5a{static get['requires'](){return[Mt];}['afterInit'](){const _0x3e8db8=this['editor'];if(!_0x3e8db8['plugins']['has']('TableEditing'))return;const _0x29b8fc=_0x3e8db8['locale'],_0x28762a=_0x3e8db8['plugins']['get']('TrackChangesEditing');_0x28762a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x28762a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x28762a['registerBlockAttribute']('headingRows'),_0x28762a['registerBlockAttribute']('headingColumns'),_0x28762a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x29b8fc,'FORMAT_HEADER_ROW')),_0x28762a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x29b8fc,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54aaf5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x345321=this['editor']['plugins']['get']('TableUtils'),_0x5f22a7=this['editor']['plugins']['get'](Mt)['_acceptFormatSuggestionCallbackFactory']();function _0x2ea2b0({showActiveMarker:_0x584a46=!0x0,setDataAttribute:_0x53398a=!0x0}={}){return(_0x4222b1,_0x468223,_0x5177e1)=>{const {type:_0x34b0b5,id:_0x38ace7}=_0x54aaf5['_splitMarkerName'](_0x468223['markerName']);if(!_0x54aaf5['hasSuggestion'](_0x38ace7))return;const _0x229e6e=_0x54aaf5['getSuggestion'](_0x38ace7),_0x17a356=_0x229e6e['data'];if('formatBlock'!=_0x229e6e['type']||!_0x17a356||'setTableColumnHeader'!=_0x17a356['commandName'])return;if(_0x468223['item'])return void _0x4222b1['stop']();if(!_0x5177e1['consumable']['consume'](_0x468223['markerRange'],_0x4222b1['name']))return;const _0x58dac0=_0x468223['markerRange']['start']['nodeAfter'],_0x41fd86=_0x468223['markerRange']['end']['nodeBefore'],_0x77232b=_0x58dac0['parent']['parent'],{column:_0x1e2d46}=_0x345321['getCellLocation'](_0x58dac0),{column:_0x15e1d6}=_0x345321['getCellLocation'](_0x41fd86);for(let _0x2c5407=_0x1e2d46;_0x2c5407<=_0x15e1d6;_0x2c5407++){const _0x9f84a=_0x345321['createTableWalker'](_0x77232b,{'column':_0x2c5407,'includeAllSlots':!0x1});for(const _0x4271e1 of _0x9f84a){const _0x56a30b=_0x4271e1['cell'],_0xed8834=_0x5177e1['mapper']['toViewElement'](_0x56a30b);_0x5177e1['writer']['addClass']('ck-suggestion-marker-'+_0x34b0b5,_0xed8834),_0x53398a&&_0x5177e1['writer']['setAttribute']('data-suggestion',_0x38ace7,_0xed8834),_0x5177e1['mapper']['bindElementToMarker'](_0xed8834,_0x468223['markerName']),_0x584a46&&(_0x54aaf5['activeMarkers']['includes'](_0x468223['markerName'])?_0x5177e1['writer']['addClass']('ck-suggestion-marker--active',_0xed8834):_0x5177e1['writer']['removeClass']('ck-suggestion-marker--active',_0xed8834));}}};}_0x54aaf5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5f22a7),_0x54aaf5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5f22a7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2ea2b0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15aa93,_0x340802,_0x1c99c8)=>{_0x1c99c8['options']['showSuggestionHighlights']&&_0x2ea2b0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x15aa93,_0x340802,_0x1c99c8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4320b3,_0xe2fccf,_0x412363)=>{const {type:_0x287cc4,id:_0x433a9e}=_0x54aaf5['_splitMarkerName'](_0xe2fccf['markerName']);if(!_0x54aaf5['hasSuggestion'](_0x433a9e))return;const _0x126601=_0x54aaf5['getSuggestion'](_0x433a9e),_0x9461fc=_0x126601['data'];if('formatBlock'!=_0x126601['type']||!_0x9461fc||'setTableColumnHeader'!=_0x9461fc['commandName'])return;const _0xe27c00=_0x412363['mapper']['markerNameToElements'](_0xe2fccf['markerName']);if(_0xe27c00){for(const _0x1ac57d of _0xe27c00)_0x412363['writer']['removeClass']('ck-suggestion-marker-'+_0x287cc4,_0x1ac57d),_0x412363['writer']['removeClass']('ck-suggestion-marker--active',_0x1ac57d),_0x412363['writer']['removeAttribute']('data-suggestion',_0x1ac57d),_0x412363['mapper']['unbindElementFromMarkerName'](_0x1ac57d,_0xe2fccf['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e773b=this['editor'],_0x315969=_0x3e773b['locale'];function _0x5065db(_0x4ec065){return{'type':'format','content':o(_0x315969,'*Format:*\x20%0',_0x4ec065)};}_0x3e773b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e93ed=>{if('formatBlock'!=_0x5e93ed['type'])return;const {data:_0x363994}=_0x5e93ed;if(_0x363994){if('setTableRowHeader'==_0x363994['commandName']){const _0x51b0d1=_0x363994['commandParams'][0x0]['forceValue'];return _0x5065db(o(_0x315969,_0x51b0d1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x363994['commandName']){const _0x3f6bde=_0x363994['commandParams'][0x0]['forceValue'];return _0x5065db(o(_0x315969,_0x3f6bde?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ot extends _0x4e7f5a{['afterInit'](){const _0x3298a5=this['editor'],_0x632ac5=_0x3298a5['locale'],_0x550b51=_0x3298a5['plugins']['get']('TrackChangesEditing');function _0x99770(_0x32ea36){return{'type':'format','content':''+o(_0x632ac5,'*Set\x20table\x20type:*\x20%0',_0x32ea36)};}_0x3298a5['plugins']['has']('TableLayout')&&(_0x550b51['enableCommand']('insertTableLayout'),_0x550b51['enableDefaultAttributesIntegration']('tableType'),_0x550b51['registerBlockAttribute']('tableType'),_0x550b51['descriptionFactory']['registerElementLabel'](_0x373f1a=>_0x373f1a['is']('element','table')&&'layout'===_0x373f1a['getAttribute']('tableType'),_0x13286c=>o(_0x632ac5,'ELEMENT_LAYOUT_TABLE',_0x13286c)),_0x550b51['descriptionFactory']['registerDescriptionCallback'](_0x380349=>{const {data:_0x2fbe40}=_0x380349;if(_0x2fbe40&&'tableType'==_0x2fbe40['key'])switch(_0x2fbe40['newValue']){case'layout':return _0x99770(o(_0x632ac5,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x99770(o(_0x632ac5,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Ue['map'](_0x30ccd7=>[_0x30ccd7,null]));class xt extends _0x4e7f5a{static get['requires'](){return[Mt];}['afterInit'](){const _0x5a0650=this['editor'];if(!_0x5a0650['plugins']['has']('TableClipboard'))return;const _0x201215=_0x5a0650['plugins']['get']('TrackChangesEditing'),_0x2449ed=_0x5a0650['plugins']['get']('TableUtils'),_0x9df8b8=_0x5a0650['plugins']['get'](Mt),_0x801757=_0x5a0650['plugins']['get']('TableClipboard'),_0x54661d=_0x5a0650['plugins']['get']('TableSelection'),_0x3c652b=_0x5a0650['plugins']['get'](_0x1d326f);_0x9df8b8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5a0650['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5a0650['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1ea5cb=null,_0x394944=!0x1;_0x3c652b['on']('contentInsertion',(_0xaad373,_0x1797d5)=>{_0x394944='paste'===_0x1797d5['method'];}),_0x5a0650['model']['on']('insertContent',(_0x2ae1dc,_0x43364f)=>{if(!_0x394944&&null===_0x54661d['getSelectedTableCells']())return;const [_0x50c0fc,_0x3225b7]=_0x43364f,_0x4af0c3=_0x43364f[_0x43364f['length']-0x1];_0x4af0c3&&_0x4af0c3['forceDefaultExecution']||_0x201215['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3ac806,_0x339db2,_0x4bf58f,_0x4ff7d4,_0x57be21){if(_0x339db2&&!_0x339db2['is']('documentSelection'))return!0x1;const _0xdf8e12=_0x57be21['getTableIfOnlyTableInContent'](_0x3ac806,_0x4bf58f);if(!_0xdf8e12||!Ge(_0xdf8e12,void 0x0,_0x4ff7d4))return!0x1;const _0x5e4fca=_0x4ff7d4['getSelectionAffectedTableCells'](_0x4bf58f['document']['selection']);if(!_0x5e4fca['length'])return!0x1;const _0x56901b=_0x5e4fca[0x0]['findAncestor']('table'),_0xe86ca7=_0x4ff7d4['getRowIndexes'](_0x5e4fca),_0x513df7=_0x4ff7d4['getColumnIndexes'](_0x5e4fca),_0x1fa9e5={'startRow':_0xe86ca7['first'],'endRow':_0xe86ca7['last'],'startColumn':_0x513df7['first'],'endColumn':_0x513df7['last']};return 0x1==_0x5e4fca['length']&&(_0x1fa9e5['endRow']+=_0x4ff7d4['getRows'](_0xdf8e12)-0x1,_0x1fa9e5['endColumn']+=_0x4ff7d4['getColumns'](_0xdf8e12)-0x1),Ge(_0x56901b,_0x1fa9e5,_0x4ff7d4);}(_0x50c0fc,_0x3225b7,_0x5a0650['model'],_0x2449ed,_0x801757)&&(_0x2ae1dc['stop'](),_0x1ea5cb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5a0650['model']['change'](()=>{_0x5a0650['model']['insertContent'](_0x43364f[0x0],_0x43364f[0x1],_0x43364f[0x2],{'forceDefaultExecution':!0x0});const _0x35a8be=_0x3caa75(),{rowInsertionRanges:_0x4c861e,columnInsertionRanges:_0x4b8025,insertionRanges:_0x4ffda9,deletionRanges:_0x723508,cells:_0x3cb2e3}=_0x1ea5cb;_0x4c861e['length']&&_0x201215['markMultiRangeInsertion'](_0x4c861e,'tablePasteRow',{'tablePasteChainId':_0x35a8be}),_0x4b8025['length']&&_0x201215['markMultiRangeInsertion'](_0x4b8025,'tablePasteColumn',{'tablePasteChainId':_0x35a8be}),_0x4ffda9['length']&&(_0x201215['markMultiRangeInsertion'](_0x4ffda9,'tablePaste',{'tablePasteChainId':_0x35a8be,'skipNestingCheck':!0x0}),_0x4ffda9['forEach'](_0xe517dc=>_0xe517dc['detach']?.())),_0x723508['length']&&(_0x201215['markMultiRangeDeletion'](_0x723508,'tablePaste',{'tablePasteChainId':_0x35a8be,'skipNestingCheck':!0x0}),_0x723508['forEach'](_0x26e277=>_0x26e277['detach']?.()));const _0x58f90b=_0x201215['markMultiRangeBlockFormat'](_0x3cb2e3['map'](({element:_0x48aae3})=>_0x48aae3),{'formatGroupId':_0x3caa75()},[],'tablePasteCell',{'tablePasteChainId':_0x35a8be});if(_0x58f90b){const _0x415ae9=_0x58f90b['getMarkers'](),_0x1c1de2=[];for(const {element:_0x5f0349,attributes:_0x24f014}of _0x3cb2e3){if(!_0x24f014)continue;const _0x575216=_0x5a0650['model']['createRangeOn'](_0x5f0349),_0x25a601=_0x415ae9['find'](_0x50d1cd=>_0x50d1cd['getRange']()['isEqual'](_0x575216));_0x25a601&&_0x1c1de2['push']([_0x25a601['name'],_0x24f014]);}_0x1c1de2['length']&&_0x58f90b['setAttribute']('markerAttributes',Object['fromEntries'](_0x1c1de2));}_0x1ea5cb=null;}));},{'priority':_0x35714c['high']+0xa}),_0x3c652b['on']('contentInsertion',()=>{_0x394944=!0x1;},{'priority':'lowest'}),_0x5a0650['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33c0ce,_0x595169)=>{const [_0x2032de,_0x5e51bd,,_0xe29169]=_0x595169;if(!_0x1ea5cb)return;_0x33c0ce['stop']();const _0x529c80=_0x2032de['cell'],_0x15a91c=_0x5e51bd,_0x509294=ze(_0x529c80),_0xa63789=ze(_0x15a91c);_0x33c0ce['return']=_0x529c80;let _0x262702=null,_0x180469=null;if(_0xa63789||_0x509294){if(_0x509294&&!_0xa63789){_0xe29169['remove'](_0x529c80['getChild'](0x0));for(const _0x145ab2 of Array['from'](_0x15a91c['getChildren']()))_0xe29169['insert'](_0x145ab2,_0x529c80,'end');const _0x505829=_0x1ea5cb['rowInsertionIndexes']['includes'](_0x2032de['row']),_0x1cee17=_0x1ea5cb['columnInsertionIndexes']['includes'](_0x2032de['column']);_0x505829||_0x1cee17||(_0x262702=_0x3d40b9['fromRange'](_0xe29169['createRangeIn'](_0x529c80)));}else _0xa63789&&!_0x509294&&(_0x180469=_0xe29169['createRangeIn'](_0x529c80));}else{const _0x263c2d=_0xe29169['createElement']('tableCellSuggestion'),_0x3965e9=_0xe29169['createElement']('tableCellSuggestion');_0xe29169['wrap'](_0xe29169['createRangeIn'](_0x529c80),_0x3965e9),_0xe29169['insert'](_0x263c2d,_0x529c80,0x0);for(const _0x102786 of Array['from'](_0x15a91c['getChildren']()))_0xe29169['insert'](_0x102786,_0x263c2d,'end');_0x262702=_0x3d40b9['fromRange'](_0xe29169['createRangeOn'](_0x263c2d)),_0x180469=_0x3d40b9['fromRange'](_0xe29169['createRangeOn'](_0x3965e9));}const _0x201ba6=Array['from'](_0x15a91c['getAttributes']())['filter'](([_0x2a4a43])=>Ue['includes'](_0x2a4a43));_0x1ea5cb['cells']['push']({'element':_0x529c80,'attributes':_0x201ba6['length']?Object['fromEntries'](_0x201ba6):null}),_0x262702&&_0x1ea5cb['insertionRanges']['push'](_0x262702),_0x180469&&_0x1ea5cb['deletionRanges']['push'](_0x180469);},{'priority':'high'}),_0x2449ed['on']('insertColumns',(_0x65ea73,_0x4f4c7b)=>{const [_0x2f1bc4,_0x38354f={}]=_0x4f4c7b;if(!_0x1ea5cb)return;const _0x1df7d6=_0x38354f['at']||0x0,_0x47ea79=_0x38354f['columns']||0x1;_0x1ea5cb['columnInsertionIndexes']=new Array(_0x47ea79)['fill'](_0x1df7d6)['map']((_0x111dd4,_0x369125)=>_0x111dd4+_0x369125);for(const {cell:_0x56ff39}of _0x2449ed['createTableWalker'](_0x2f1bc4,{'startColumn':_0x1df7d6,'endColumn':_0x1df7d6+_0x47ea79-0x1}))_0x1ea5cb['columnInsertionRanges']['push'](_0x5a0650['model']['createRangeOn'](_0x56ff39));},{'priority':'low'}),_0x2449ed['on']('insertRows',(_0xb6df7a,_0x231d8b)=>{const [_0x4befe0,_0x34a2bf={}]=_0x231d8b;if(!_0x1ea5cb)return;const _0x10ab55=_0x34a2bf['at']||0x0,_0x3e7bc5=_0x34a2bf['rows']||0x1;_0x1ea5cb['rowInsertionIndexes']=new Array(_0x3e7bc5)['fill'](_0x10ab55)['map']((_0xe72fe,_0x15ab28)=>_0xe72fe+_0x15ab28);for(const {cell:_0x5d3ba0}of _0x2449ed['createTableWalker'](_0x4befe0,{'startRow':_0x10ab55,'endRow':_0x10ab55+_0x3e7bc5-0x1}))_0x1ea5cb['rowInsertionRanges']['push'](_0x5a0650['model']['createRangeOn'](_0x5d3ba0));},{'priority':'low'}),_0x201215['descriptionFactory']['registerDescriptionCallback'](_0xa74789=>{if(_0xa74789['subType']&&_0xa74789['subType']['startsWith']('tablePaste'))return _0xa74789['previous']?{}:{'type':'insertion','content':o(_0x5a0650['locale'],'*Replace\x20table\x20cells*')};});const _0x513aca=()=>!0x1;for(const _0x44c98a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x201215['_suggestionFactory']['registerCustomCallback']('insertion',_0x44c98a,'join',_0x513aca),_0x201215['_suggestionFactory']['registerCustomCallback']('deletion',_0x44c98a,'join',_0x513aca),_0x201215['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44c98a,'join',_0x513aca);_0x201215['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x513aca),_0x201215['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x6ace96,_0x2d912b,_0xf11b03)=>{const _0x3c655b=_0x6ace96['map'](_0x387df0=>_0x387df0['getContainedElement']())['filter'](_0xe1d5b2=>_0xe1d5b2),_0x1bf14c=new Map(_0x3c655b['map'](_0x5a715c=>[_0x5a715c,null]));if(_0x1ea5cb){for(const {element:_0x4b2fbb,attributes:_0x32e9ee}of _0x1ea5cb['cells'])_0x32e9ee&&_0x1bf14c['set'](_0x4b2fbb,_0x32e9ee);}else{if(_0xf11b03&&_0xf11b03['markerAttributes'])for(const [_0x213930,_0x218447]of Object['entries'](_0xf11b03['markerAttributes'])){const _0x277b21=_0x5a0650['model']['markers']['get'](_0x213930),_0x57b3fe=_0x277b21?_0x277b21['getRange']()['getContainedElement']():null;_0x57b3fe&&_0x1bf14c['set'](_0x57b3fe,_0x218447);}}_0x5a0650['model']['change'](_0x4eb7b7=>{for(const [_0x3d2daf,_0x4c6da0]of _0x1bf14c)_0x4eb7b7['setAttributes']({...He,..._0x4c6da0},_0x3d2daf);});});const _0x1983a4=(_0x5c46f4,_0x224745)=>{_0x201215['_suggestionFactory']['registerCustomCallback'](_0x5c46f4,'tablePaste',_0x224745,(_0x363d44,_0x4965a5,_0x1704e1)=>{_0x5a0650['model']['change'](_0x265713=>{const _0x293ab8=[];for(const _0x3e7091 of _0x363d44){const _0x297115=_0x3e7091['start']['nodeAfter'];_0x297115['is']('element','tableCellSuggestion')&&_0x293ab8['push'](_0x297115);}_0x201215['_suggestionFactory']['getSuggestionCallback'](_0x5c46f4,null,_0x224745)(_0x363d44,_0x4965a5,_0x1704e1);for(const _0x8fefbd of _0x293ab8)'$graveyard'!=_0x8fefbd['root']['rootName']&&_0x265713['unwrap'](_0x8fefbd);});});};_0x1983a4('insertion','accept'),_0x1983a4('insertion','discard'),_0x1983a4('deletion','accept'),_0x1983a4('deletion','discard'),_0x201215['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x57180a=>{const _0x100d72=_0x57180a['map'](_0x10d566=>_0x10d566['getContainedElement']()),_0x2dda94=_0x100d72[0x0]['findAncestor']('table'),{minRow:_0x318caa,maxRow:_0x546496}=_0x9df8b8['_getCoordsForCells'](_0x100d72);_0x2449ed['removeRows'](_0x2dda94,{'at':_0x318caa,'rows':_0x546496-_0x318caa+0x1});}),_0x201215['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4fa323=>{const _0x51fae5=_0x4fa323['map'](_0x1605a0=>_0x1605a0['getContainedElement']()),_0x1b8e58=_0x51fae5[0x0]['findAncestor']('table'),{minColumn:_0x435b7d,maxColumn:_0x1a129d}=_0x9df8b8['_getCoordsForCells'](_0x51fae5);_0x2449ed['removeColumns'](_0x1b8e58,{'at':_0x435b7d,'columns':_0x1a129d-_0x435b7d+0x1});});const _0x19927e=(_0x229023,_0x41b4f2)=>{if(!_0x41b4f2['subType']||!_0x41b4f2['subType']['startsWith']('tablePaste'))return;const _0x222c97=_0x41b4f2['attributes']['tablePasteChainId'],_0x3c35ae=_0x201215['getSuggestions']()['filter'](_0x3b4fa4=>_0x3b4fa4['isInContent']&&_0x3b4fa4['attributes']&&_0x3b4fa4['attributes']['tablePasteChainId']==_0x222c97);_0x3c35ae['length']&&_0x41b4f2['getAllAdjacentSuggestions']()['length']!=_0x3c35ae['length']&&_0x3c35ae['reduce']((_0x1b5af6,_0x42adae)=>(_0x1b5af6['next']=_0x42adae,_0x42adae['previous']=_0x1b5af6,_0x42adae));};function _0x40d178(_0x3f169c,_0x24daf4=!0x0){const {id:_0x1f6875,authorId:_0x3995f1}=_0x201215['_splitMarkerName'](_0x3f169c['markerName']),_0x1e2601=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d998e=_0x201215['activeMarkers']['includes'](_0x3f169c['markerName']);return _0x1d998e&&_0x1e2601['push']('ck-suggestion-marker--active'),{'classes':_0x1e2601,'attributes':{'data-suggestion':_0x1f6875,'data-author-id':_0x3995f1},'priority':_0x1d998e&&_0x24daf4?0xbc2:0xbb8};}_0x201215['on']('suggestionLoaded',_0x19927e,{'priority':'high'}),_0x201215['on']('suggestionUnloaded',_0x19927e,{'priority':'high'}),_0x5a0650['model']['document']['registerPostFixer'](()=>{let _0x549929=!0x1;const _0xed27b8=Array['from'](_0x5a0650['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19dfb3,data:_0x3212d2}of _0xed27b8){const {group:_0x435432,type:_0x27ec28,id:_0x4a547f}=_0x201215['_splitMarkerName'](_0x19dfb3);if('suggestion'!=_0x435432||'deletion'!=_0x27ec28||_0x3212d2['oldRange'])continue;if(!_0x201215['hasSuggestion'](_0x4a547f))continue;const _0x45bed1=_0x201215['getSuggestion'](_0x4a547f)['getRanges'](),_0x5723dc=_0x5a0650['plugins']['get']('Users')['me'];for(const _0x7d858f of _0x201215['getSuggestions']()){if(!_0x7d858f['isInContent']||_0x7d858f['author']!=_0x5723dc)continue;if('formatBlock'!=_0x7d858f['type']||'tablePasteCell'!=_0x7d858f['subType'])continue;if(_0x7d858f['getRanges']()['every'](_0x87a18c=>_0x45bed1['some'](_0x361725=>_0x361725['containsRange'](_0x87a18c,!0x0)))){for(const _0xe42312 of _0x7d858f['getAllAdjacentSuggestions']())_0xe42312['isInContent']&&(_0xe42312['discard'](),_0x549929=!0x0);}}}return _0x549929;}),_0x5a0650['model']['document']['registerPostFixer'](_0x28be4e=>{const _0x462828=_0x5a0650['commands']['get']('redo');if(!_0x462828||!_0x462828['_createdBatches']['has'](_0x28be4e['batch']))return!0x1;let _0x5a94dc=!0x1;const _0x717cf5=_0x5a0650['plugins']['get']('Users')['me'],_0x33b96e=_0x5a0650['model']['document']['differ']['getChanges'](),_0x59bb73=Array['from'](_0x5a0650['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4826ae,data:_0x4a6e9c})=>{const {group:_0x289a06,subType:_0x5941d3,authorId:_0x3e83cf}=_0x201215['_splitMarkerName'](_0x4826ae);return'suggestion'==_0x289a06&&'tablePaste'==_0x5941d3&&_0x3e83cf==_0x717cf5['id']&&!_0x4a6e9c['oldRange'];});for(const _0x9e892c of _0x33b96e){if('insert'!=_0x9e892c['type']||'tableCellSuggestion'!=_0x9e892c['name']||0x1!=_0x9e892c['length'])continue;const _0x5a8f91=_0x28be4e['createRange'](_0x9e892c['position'],_0x9e892c['position']['getShiftedBy'](0x1));if(!_0x59bb73['find'](({data:_0x28de77})=>_0x28de77['newRange']['isEqual'](_0x5a8f91))){for(const {name:_0x4a087d,data:_0x221e10}of _0x59bb73)if(_0x5a8f91['containsRange'](_0x221e10['newRange'])){_0x28be4e['updateMarker'](_0x4a087d,{'range':_0x5a8f91}),_0x5a94dc=!0x0;break;}}}return _0x5a94dc;}),_0x5a0650['model']['document']['registerPostFixer'](_0x1482c1=>{let _0x1324c5=!0x1;const _0xd83b86=_0x5a0650['plugins']['get']('Users')['me'],_0x41c299=_0x201215['getSuggestions']()['filter'](_0x44f3a2=>_0x44f3a2['isInContent']&&_0x44f3a2['author']==_0xd83b86),_0x6679d4=new Set(),_0x23e9cc=new Set();for(const _0x29d7d6 of _0x41c299)if('tablePaste'==_0x29d7d6['subType'])for(const _0x1e9fc9 of _0x29d7d6['getMarkers']()){const _0x3f25b6=_0x1e9fc9['getRange']()['getContainedElement']();if(_0x3f25b6){if(_0x3f25b6['is']('element','tableCellSuggestion')&&ze(_0x3f25b6)){_0x29d7d6['removeMarker'](_0x1e9fc9['name']),_0x6679d4['add'](_0x3f25b6),_0x1324c5=!0x0;const _0x5410c2=_0x3f25b6['nextSibling'],_0x2550b1=_0x3f25b6['previousSibling'],_0x3000df=_0x5410c2&&_0x5410c2['is']('element','tableCellSuggestion'),_0x47ab8f=_0x2550b1&&_0x2550b1['is']('element','tableCellSuggestion');_0x3000df&&!_0x6679d4['has'](_0x5410c2)&&_0x23e9cc['add'](_0x5410c2),_0x47ab8f&&!_0x6679d4['has'](_0x2550b1)&&_0x23e9cc['add'](_0x2550b1);}else _0x3f25b6['is']('element','paragraph')&&_0x3f25b6['isEmpty']&&(_0x29d7d6['removeMarker'](_0x1e9fc9['name']),_0x1324c5=!0x0);}}else{if('tablePasteCell'==_0x29d7d6['subType']){if(!_0x29d7d6['attributes']||!_0x29d7d6['attributes']['tablePasteChainId'])continue;const _0x26c305=_0x29d7d6['attributes']['markerAttributes'];if(_0x26c305&&Object['keys'](_0x26c305)['length'])continue;const _0x4fef43=_0x29d7d6['attributes']['tablePasteChainId'];let _0x15bc6f=!0x0,_0x65ccd8=!0x0;for(const _0x3286d2 of _0x41c299)if(_0x3286d2['subType']&&_0x3286d2['subType']['startsWith']('tablePaste')){if(!_0x3286d2['attributes']['tablePasteChainId']){_0x65ccd8=!0x1;break;}if(_0x3286d2['id']!=_0x29d7d6['id']&&_0x3286d2['attributes']['tablePasteChainId']==_0x4fef43){_0x15bc6f=!0x1;break;}}_0x65ccd8&&_0x15bc6f&&(_0x29d7d6['removeMarkers'](),_0x1324c5=!0x0);}}for(const _0x31a3e5 of _0x6679d4)_0x1482c1['remove'](_0x31a3e5);for(const _0xf96af1 of _0x23e9cc)_0x1482c1['unwrap'](_0xf96af1);return _0x1324c5;}),_0x5a0650['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x42df55=>_0x40d178(_0x42df55),'converterPriority':'high'}),_0x5a0650['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xa69789,_0x512b09)=>_0x512b09['options']['showSuggestionHighlights']?_0x40d178(_0xa69789,!0x1):null,'converterPriority':'high'});const _0x5eed4e=_0x5a0650['editing']['view'];this['listenTo'](_0x5eed4e['document'],'clipboardOutput',(_0xe66848,_0x19b808)=>{const _0x452090=[];for(const _0x3297ed of _0x5eed4e['createRangeIn'](_0x19b808['content'])['getItems']())_0x3297ed['is']('element','suggestion-td')&&_0x452090['push'](_0x3297ed);_0x5eed4e['change'](_0x421ce0=>{for(const _0x133776 of _0x452090)_0x421ce0['move'](_0x421ce0['createRangeIn'](_0x133776),_0x421ce0['createPositionBefore'](_0x133776)),_0x421ce0['remove'](_0x133776);});});}}function ze(_0x5b0396){if(_0x5b0396['isEmpty'])return!0x0;const _0x362644=_0x5b0396['getChild'](0x0);return _0x362644['is']('element','paragraph')&&_0x362644['isEmpty'];}function Ge(_0x47440c,_0x1e8865={},_0x2ffa34){for(const {isAnchor:_0x15f7e0,cellHeight:_0x4b1d73,cellWidth:_0x1a4dea}of _0x2ffa34['createTableWalker'](_0x47440c,{'includeAllSlots':!0x0,..._0x1e8865}))if(!_0x15f7e0||0x1!=_0x4b1d73||0x1!=_0x1a4dea)return!0x1;return!0x0;}class Et extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5944a8=this['editor']['plugins']['get']('TrackChangesEditing');_0x5944a8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5944a8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5944a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5944a8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5944a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5944a8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x22ecd0,_0x10d98f){const _0x525cac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2efbb0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xbf96c8=_0x10d98f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x496e9d=_0x2efbb0['getColumnGroupElement'](_0xbf96c8);let _0x4f7842=_0x496e9d?_0x2efbb0['getTableColumnsWidths'](_0x496e9d):null,_0x14530f=_0xbf96c8['getAttribute']('tableWidth')||null;const _0x3f5f97=_0x10d98f['tableWidth']||_0x14530f,_0x3508e1=_0x10d98f['columnWidths']||_0x4f7842,_0x46b015=this['editor']['plugins']['get']('Users')['me'];for(const _0xd4d225 of _0x525cac['getSuggestions']()){const _0x231e54=_0xd4d225['getContainedElement']();if('resizeTable'===_0xd4d225['subType']&&_0x231e54===_0xbf96c8){_0xd4d225['author']!==_0x46b015&&_0xd4d225['discard']();const _0x59ffd8=_0xd4d225['data']['commandParams'];_0x14530f=_0x59ffd8[0x0]['tableWidth'],_0x4f7842=_0x59ffd8[0x0]['columnWidths'];break;}}_0x22ecd0({'table':_0xbf96c8,'tableWidth':_0x3f5f97,'columnWidths':_0x3508e1}),_0x525cac['markBlockFormat'](_0xbf96c8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x14530f,'columnWidths':_0x4f7842}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x979fb9){if('formatBlock'!=_0x979fb9['type']&&'formatInline'!=_0x979fb9['type'])return;const {data:_0x1057c8}=_0x979fb9;if(_0x1057c8&&'resizeTable'===_0x1057c8['formatGroupId']){const _0x1612e0='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1612e0)};}}}class Rt extends _0x4e7f5a{['afterInit'](){const _0x720207=this['editor'];_0x720207['plugins']['has']('Template')&&_0x720207['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ut extends _0x4e7f5a{['afterInit'](){const _0x165a4b=this['editor'];if(!_0x165a4b['commands']['get']('insertTableOfContents'))return;_0x165a4b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x40b0b9=_0x165a4b['plugins']['get']('TrackChangesEditing'),_0x42c769=_0x165a4b['locale'];_0x40b0b9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x14e079=>o(_0x42c769,'ELEMENT_TABLE_OF_CONTENTS',_0x14e079));}}class Vt extends _0x4e7f5a{['afterInit'](){const _0x4ee68a=this['editor'];if(!_0x4ee68a['plugins']['has']('Title'))return;const _0x35128c=_0x4ee68a['plugins']['get']('TrackChangesEditing');_0x35128c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4ee68a['locale'],'ELEMENT_TITLE')),_0x4ee68a['model']['document']['registerPostFixer'](_0x14f655=>{let _0x4fce5a=!0x1;const _0x5c8c85=Array['from'](_0x4ee68a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x310bb5,data:_0x579a3d}of _0x5c8c85){const {group:_0x3bb89b}=_0x35128c['_splitMarkerName'](_0x310bb5);if('suggestion'!==_0x3bb89b||!_0x579a3d['newRange'])continue;const _0x59ceed=_0x579a3d['newRange'],_0x3f99e1=_0x59ceed['end']['nodeBefore'];if(!_0x3f99e1||!_0x3f99e1['is']('element','title-content'))continue;if(!_0x59ceed['start']['isTouching'](_0x59ceed['end']))continue;const _0x290742=_0x4ee68a['model']['schema']['getNearestSelectionRange'](_0x59ceed['end'],'forward');if(_0x290742&&_0x290742['isCollapsed']){const _0x318af1=_0x14f655['createRange'](_0x59ceed['start'],_0x290742['start']);_0x318af1['isEqual'](_0x59ceed)||(_0x14f655['updateMarker'](_0x310bb5,{'range':_0x318af1}),_0x4fce5a=!0x0);}_0x4fce5a||(_0x14f655['removeMarker'](_0x310bb5),_0x4fce5a=!0x0);}return _0x4fce5a;});}}class Ft extends _0x4e7f5a{['afterInit'](){const _0x16278e=this['editor'],_0xbfac95=_0x16278e['plugins']['get']('TrackChangesEditing');_0x16278e['plugins']['has']('Uploadcare')&&(_0xbfac95['enableCommand']('uploadcare'),_0x16278e['plugins']['has']('UploadcareImageEdit')&&(_0xbfac95['enableCommand']('uploadcareImageEdit'),_0xbfac95['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xbfac95['registerBlockAttribute']('uploadcareImageId'),_0xbfac95['descriptionFactory']['registerDescriptionCallback'](_0x4dd517=>{if('attribute'!=_0x4dd517['type'])return;const {data:_0x9e0167}=_0x4dd517;return _0x9e0167&&'uploadcareImageId'==_0x9e0167['key']?{'type':'format','content':''}:void 0x0;})));}}class Pt extends _0x4e7f5a{['afterInit'](){const _0x417973=this['editor'],_0x8c6a36=_0x417973['plugins']['get']('TrackChangesEditing');_0x417973['plugins']['has']('UndoEditing')&&(_0x8c6a36['enableCommand']('undo'),_0x8c6a36['enableCommand']('redo'));}}class Gt extends _0x4e7f5a{static get['requires'](){return[Mt];}['afterInit'](){const _0x1173da=this['editor'];if(!_0x1173da['plugins']['has']('TableCaptionEditing'))return;_0x1173da['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Lt extends _0x4e7f5a{['tableProperties'];['tableCellProperties'];constructor(_0x4d2ef9){super(_0x4d2ef9),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 _0x1f093b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x252fa1 of this['tableProperties'])_0x1f093b['enableCommand'](_0x252fa1,(_0x4d61e9,_0x131d7a)=>{const _0x2be9c8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x252fa1,[_0x2be9c8],this['tableProperties'],'tableProperties',_0x4d61e9,_0x131d7a);});_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1f093b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x295da7,_0x1976a9)=>this['handleDiscardAction'](this['tableProperties'],_0x295da7,_0x1976a9)),_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xc40b00 of this['tableCellProperties'])_0x1f093b['enableCommand'](_0xc40b00,(_0x1bf5a5,_0xe98683)=>{const _0x4f4424=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xc40b00,_0x4f4424,this['tableCellProperties'],'tableCellProperties',_0x1bf5a5,_0xe98683);});_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1f093b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x82c1f6,_0x693ab6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x82c1f6,_0x693ab6)),_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1f093b['descriptionFactory']['registerDescriptionCallback'](_0x375633=>this['handleSuggestionDescription'](_0x375633)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x155cfb,_0x2c6980,_0x1ddd2e,_0x35f9b1,_0x548cbd,_0x14465b){const _0x717e1a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x14465b['batch'],()=>{for(const _0x12a177 of _0x2c6980){if(this['_getSuggestion'](_0x12a177,_0x35f9b1))_0x548cbd(_0x14465b);else{const _0x3c118b={};for(const _0x43b5e5 of _0x1ddd2e){const _0x5c9e57=_0x12a177['getAttribute'](_0x43b5e5);void 0x0!==_0x5c9e57&&(_0x3c118b[_0x43b5e5]=_0x5c9e57);}_0x548cbd(_0x14465b),_0x717e1a['markBlockFormat'](_0x12a177,{'commandParams':[_0x3c118b]},[],_0x35f9b1);}}});}['handleDiscardAction'](_0x1e6199,_0x405166,_0x37147f){const _0x2d1e5e=_0x405166[0x0]['start']['nodeAfter'],_0x369a96=_0x37147f['commandParams'][0x0];this['editor']['model']['change'](_0x2bd4ee=>{for(const _0x34964e of _0x1e6199)void 0x0!==_0x369a96[_0x34964e]?_0x2bd4ee['setAttribute'](_0x34964e,_0x369a96[_0x34964e],_0x2d1e5e):_0x2bd4ee['removeAttribute'](_0x34964e,_0x2d1e5e);});}['handleSuggestionDescription'](_0x563eb6){if(_0x563eb6['data'])switch(_0x563eb6['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'](_0x3df408,_0x1c6ea1){const _0x3b7fa6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x131b41 of _0x3b7fa6['getSuggestions']({'skipNotAttached':!0x0})){const _0x1fc837=_0x131b41['getContainedElement']();if(_0x131b41['subType']===_0x1c6ea1&&_0x1fc837===_0x3df408)return _0x131b41;}return null;}['_registerTablePropertiesAttributes'](){const _0x34c0cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d3a51=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x41cb07 of _0x2d3a51){const _0x48aca4=_0x41cb07['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x34c0cd['registerBlockAttribute'](_0x41cb07),_0x34c0cd['descriptionFactory']['registerAttributeLabel'](_0x41cb07,o(this['editor']['locale'],'FORMAT_'+_0x48aca4));}}}class Jt extends _0x4e7f5a{['afterInit'](){const _0x589078=this['editor'];if(!_0x589078['plugins']['has']('LineHeight'))return;const _0x31990d=_0x589078['plugins']['get']('TrackChangesEditing'),_0x40b571=_0x589078['locale'];_0x31990d['enableDefaultAttributesIntegration']('lineHeight'),_0x31990d['registerBlockAttribute']('lineHeight'),_0x31990d['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x40b571,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x4e7f5a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x57807f,_0x3008df,_0x26060f,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ft,gt,ht,lt,mt,dt,kt,wt,jt,pt,Y,Jt,Z,bt,yt,St,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Ot,Gt,xt,Et,Ut,Lt,Rt,Vt,Ft,Pt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b5544){super(_0x3b5544),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x24bc5a,_0x4dbb75,_0x476d68,_0x3e2643)=>{this['_model']['change'](()=>{for(const _0x38b248 of[..._0x3e2643,..._0x476d68])this['_model']['markers']['has'](_0x38b248)&&_0x3b5544['editing']['reconvertMarker'](_0x38b248);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3b5544['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(),_0x3b5544['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3b5544['config']['get']('trackChanges.trackFormatChanges'),_0x3b5544['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3b5544['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3b5544,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xb2b9ab=this['editor'],_0x34bdee=(_0x110d3f,_0x43ab4d)=>{if('attribute'!=_0x110d3f)return'ck-suggestion-marker-'+_0x110d3f;const _0x5491be=_0x43ab4d['split']('|')[0x0];return this['_isBlockAttribute'](_0x5491be)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xb2b9ab['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5aac75=>{const {id:_0xfb73ed,authorId:_0x40d209,type:_0x2459df,subType:_0x486e18}=this['_splitMarkerName'](_0x5aac75['markerName']),_0x30cbcc=['ck-suggestion-marker',_0x34bdee(_0x2459df,_0x486e18)];let _0x13ed35=0xbb8;return this['activeMarkers']['includes'](_0x5aac75['markerName'])&&(_0x30cbcc['push']('ck-suggestion-marker--active'),_0x13ed35=0xbc2),'deletion'==_0x2459df&&(_0x13ed35+=0x5),{'classes':_0x30cbcc,'attributes':{'data-suggestion':_0xfb73ed,'data-author-id':_0x40d209},'priority':_0x13ed35};}}),_0xb2b9ab['conversion']['for']('dataDowncast')['add'](_0x16f622=>{_0x16f622['on']('addMarker:suggestion',(_0x54e8ac,_0x433691,_0xc07f08)=>{if(!_0xc07f08['options']['showSuggestionHighlights'])return;const _0x1b1634=_0x433691['item'];if(!_0x1b1634)return;const _0x1be971=_0xc07f08['mapper']['toViewElement'](_0x1b1634);_0xb2b9ab['model']['schema']['isObject'](_0x1b1634)&&_0x1be971&&!_0x1be971['getCustomProperty']('widget')&&_0x1be971['is']('containerElement')&&_0x599747(_0x1be971,_0xc07f08['writer']);},{'priority':'high'});}),_0xb2b9ab['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x58737c,_0x5552a1)=>{if(!_0x5552a1['options']['showSuggestionHighlights'])return null;const {id:_0x17a079,authorId:_0x33e604,type:_0x3117f4,subType:_0x52bdef}=this['_splitMarkerName'](_0x58737c['markerName']);return{'classes':['ck-suggestion-marker',_0x34bdee(_0x3117f4,_0x52bdef)],'priority':0xbb8,'attributes':{'data-suggestion':_0x17a079,'data-author-id':_0x33e604}};}});const _0x56b131=({showActiveMarkers:_0x1e97c3=!0x0,isAttributeSuggestion:_0x521eb8=!0x1}={})=>(_0x24151e,_0x4d9e98,_0x3d4ef0)=>{if(!_0x4d9e98['item'])return;const {id:_0x50a346,authorId:_0x5b1d6a,subType:_0x3fa402}=this['_splitMarkerName'](_0x4d9e98['markerName']);if(_0x521eb8){const _0x2e78d8=ae(_0x3fa402);if(!this['_isBlockAttribute'](_0x2e78d8))return;}if(_0x4d9e98['item']['is']('selection'))return void _0x3d4ef0['consumable']['consume'](_0x4d9e98['item'],_0x24151e['name']);const _0x48464e=_0x3d4ef0['mapper']['toViewElement'](_0x4d9e98['item']);if(_0x4d9e98['item']['is']('element')&&_0xb2b9ab['model']['schema']['isBlock'](_0x4d9e98['item'])&&!_0x48464e['getCustomProperty']('addHighlight')){_0x3d4ef0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x48464e),_0x3d4ef0['writer']['setAttribute']('data-suggestion',_0x50a346,_0x48464e),_0x3d4ef0['writer']['setAttribute']('data-author-id',_0x5b1d6a,_0x48464e),_0x3d4ef0['mapper']['bindElementToMarker'](_0x48464e,_0x4d9e98['markerName']),_0x1e97c3&&(this['activeMarkers']['includes'](_0x4d9e98['markerName'])?_0x3d4ef0['writer']['addClass']('ck-suggestion-marker--active',_0x48464e):_0x3d4ef0['writer']['removeClass']('ck-suggestion-marker--active',_0x48464e));for(const _0x30beb1 of _0xb2b9ab['model']['createRangeIn'](_0x4d9e98['item'])['getItems']())_0x3d4ef0['consumable']['consume'](_0x30beb1,_0x24151e['name']);_0x3d4ef0['consumable']['consume'](_0x4d9e98['item'],_0x24151e['name']);}};_0xb2b9ab['conversion']['for']('dataDowncast')['add'](_0x3f2ec3=>{_0x3f2ec3['on']('addMarker:suggestion:formatBlock',(_0x213c9f,_0x1433c3,_0x419abb)=>{_0x419abb['options']['showSuggestionHighlights']&&_0x56b131({'showActiveMarkers':!0x1})(_0x213c9f,_0x1433c3,_0x419abb);},{'priority':'highest'});}),_0xb2b9ab['conversion']['for']('dataDowncast')['add'](_0x56b2c4=>{_0x56b2c4['on']('addMarker:suggestion:attribute',(_0x44e679,_0xb1472b,_0x196173)=>{_0x196173['options']['showSuggestionHighlights']&&_0x56b131({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x44e679,_0xb1472b,_0x196173);},{'priority':'highest'});}),_0xb2b9ab['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xf7723c,_0x127f95)=>{if(_0x127f95['options']['showSuggestionHighlights']){const {id:_0x10a2c7,authorId:_0x42bf9d}=this['_splitMarkerName'](_0xf7723c);return _0xf7723c['includes'](':split')||_0xf7723c['includes'](':merge')?{'group':'suggestion','name':_0xf7723c['substr'](0xb),'attributes':{'data-suggestion':_0x10a2c7,'data-author-id':_0x42bf9d}}:null;}return{'group':'suggestion','name':_0xf7723c['substr'](0xb)};}}),_0xb2b9ab['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x443a1f,{writer:_0x57589c})=>{let _0x3860fd='suggestion:'+_0x443a1f['getAttribute']('suggestion-type')+':'+_0x443a1f['getAttribute']('id');return _0x443a1f['getAttribute']('marker-count')&&(_0x3860fd+=':'+_0x443a1f['getAttribute']('marker-count')),_0x57589c['createElement']('$marker',{'data-name':_0x3860fd});}}),_0xb2b9ab['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xb2b9ab['conversion']['for']('editingDowncast')['add'](_0x2bd42e=>{_0x2bd42e['on']('addMarker:suggestion:formatBlock',_0x56b131(),{'priority':'high'});}),_0xb2b9ab['conversion']['for']('editingDowncast')['add'](_0x45715a=>{_0x45715a['on']('addMarker:suggestion:attribute',_0x56b131({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xb2b9ab['conversion']['for']('editingDowncast')['add'](_0x58e2dd=>{_0x58e2dd['on']('removeMarker:suggestion:formatBlock',(_0x2eebd7,_0x2dd636,_0x466e1a)=>{const _0x4733d9=_0x466e1a['mapper']['markerNameToElements'](_0x2dd636['markerName']);if(_0x4733d9){for(const _0x3c1349 of _0x4733d9)_0x3c1349['getCustomProperty']('addHighlight')||(_0x466e1a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c1349),_0x466e1a['writer']['removeAttribute']('data-suggestion',_0x3c1349),_0x466e1a['writer']['removeAttribute']('data-author-id',_0x3c1349),_0x466e1a['mapper']['unbindElementFromMarkerName'](_0x3c1349,_0x2dd636['markerName']));}},{'priority':'high'});}),_0xb2b9ab['conversion']['for']('editingDowncast')['add'](_0x25be57=>{_0x25be57['on']('removeMarker:suggestion:attribute',(_0x1cc7ec,_0x536d9e,_0x610608)=>{const _0x70e9da=_0x610608['mapper']['markerNameToElements'](_0x536d9e['markerName']);if(!_0x70e9da)return;const {subType:_0x111793}=this['_splitMarkerName'](_0x536d9e['markerName']),_0x2c70ae=ae(_0x111793);if(this['_isBlockAttribute'](_0x2c70ae)){for(const _0x2b5255 of _0x70e9da)_0x2b5255['getCustomProperty']('addHighlight')||(_0x610608['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2b5255),_0x610608['writer']['removeAttribute']('data-suggestion',_0x2b5255),_0x610608['writer']['removeAttribute']('data-author-id',_0x2b5255),_0x610608['mapper']['unbindElementFromMarkerName'](_0x2b5255,_0x536d9e['markerName']));}},{'priority':'high'});}),_0xb2b9ab['model']['document']['registerPostFixer'](_0x37a908=>{let _0x1be8b3=!0x1;const _0x5ea116=Array['from'](_0xb2b9ab['model']['document']['differ']['getChangedMarkers']()),_0x4affb3=new Set();for(const {name:_0x35069e,data:_0x2e820d}of _0x5ea116){const {group:_0x94e97f,type:_0x2e7001,subType:_0x5c882e,id:_0x333a95}=this['_splitMarkerName'](_0x35069e);if('suggestion'!==_0x94e97f)continue;const _0x38fecb=_0x5c882e?'suggestion:'+_0x2e7001+':'+_0x5c882e+':'+_0x333a95:'suggestion:'+_0x2e7001+':'+_0x333a95,_0x59e55c=_0xb2b9ab['model']['markers']['getMarkersGroup'](_0x38fecb),_0x2574c8=_0xb2b9ab['model']['markers']['get'](_0x35069e),_0x33fc6e=this['_suggestions']['get'](_0x333a95);if(null!=_0x2e820d['newRange']){'formatInline'==_0x2e7001&&(_0x1be8b3=_0x1be8b3||zt(_0x2e820d['newRange'],_0x35069e,_0x37a908,_0xb2b9ab['model']['schema']));const _0x36a485='attribute'==_0x2e7001&&this['_isBlockAttribute'](_0x5c882e['split']('|')[0x0]),_0x5667f0='attribute'==_0x2e7001&&this['_isInlineAttribute'](_0x5c882e['split']('|')[0x0]);if(_0x2e820d['newRange']['isCollapsed']||'$graveyard'==_0x2e820d['newRange']['root']['rootName']||'formatBlock'==_0x2e7001&&!Xt(_0x2e820d['newRange'])||_0x36a485&&!Xt(_0x2e820d['newRange'])||_0x5667f0&&Yt(_0x2e820d['newRange'])||'deletion'==_0x2e7001&&Yt(_0x2e820d['newRange'])||_0x2574c8&&Zt(_0x2574c8,_0x59e55c))_0x37a908['removeMarker'](_0x35069e),_0x1be8b3=!0x0;else{if(!_0x33fc6e||!_0x33fc6e['isInContent'])continue;if(_0x2e820d['newRange']&&_0x2e820d['oldRange']&&_0x2e820d['newRange']['isEqual'](_0x2e820d['oldRange']))continue;_0x4affb3['add'](_0x33fc6e);}}}return _0x4affb3['size']>0x0&&(_0x1be8b3=!!this['_joinWithAdjacentSuggestions'](_0x4affb3)||_0x1be8b3),_0x1be8b3;}),_0xb2b9ab['model']['document']['registerPostFixer'](_0x546802=>{let _0x188b6a=!0x1;for(const _0x5ad8ce of _0xb2b9ab['model']['document']['differ']['getChanges']())if('insert'==_0x5ad8ce['type'])for(const _0x53d988 of this['_suggestions']['values']()){if(_0x53d988['isMultiRange']||!_0x53d988['isInContent'])continue;const _0xd60e1a='formatBlock'==_0x53d988['type'],_0xd71420=this['_getAttributeKey'](_0x53d988),_0x4c9da0=_0xd71420&&this['_isBlockAttribute'](_0xd71420);if(!_0xd60e1a&&!_0x4c9da0)continue;const _0x526b81=_0x53d988['getFirstRange']();if(_0x526b81['start']['parent']!=_0x526b81['end']['parent']&&!_0x526b81['end']['isAtEnd']){const _0x53a481=_0xb2b9ab['model']['createPositionAt'](_0x526b81['start']['nodeAfter'],'end'),_0x2acee5=_0xb2b9ab['model']['createRange'](_0x526b81['start'],_0x53a481);_0x546802['updateMarker'](_0x53d988['getFirstMarker'](),{'range':_0x2acee5}),_0x188b6a=!0x0;}}return _0x188b6a;}),_0xb2b9ab['model']['document']['registerPostFixer'](_0x57a5bc=>this['_processAttributeChanges'](_0x57a5bc)),_0xb2b9ab['model']['document']['registerPostFixer'](_0x1245c2=>!_0x1245c2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1245c2)),_0xb2b9ab['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xb2b9ab['model']['document']['on']('change:data',(_0x26de66,_0xe0bd7e)=>{if(!_0xe0bd7e['isLocal']||_0xe0bd7e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3fce77=_0xb2b9ab['model']['document']['differ']['getChanges']();if(0x0==_0x3fce77['length'])return;const _0x14008e=[],_0xde37c=_0x3fce77['filter'](_0x243088=>'attribute'==_0x243088['type']),_0x2b1f77=_0x3fce77['filter'](_0xb6c083=>'insert'==_0xb6c083['type']&&'$text'!=_0xb6c083['name']);for(const _0x30741a of _0xde37c)this['_isRegisteredAttribute'](_0x30741a['attributeKey'])&&_0x14008e['push']({'key':_0x30741a['attributeKey'],'newValue':_0x30741a['attributeNewValue'],'oldValue':_0x30741a['attributeOldValue'],'range':ee(_0x30741a['range'],_0xb2b9ab['model'])});for(const _0x47ab96 of _0x2b1f77){if('rename'!=_0x47ab96['action']&&'refresh'!=_0x47ab96['action'])continue;const _0x1a05b9=ie(_0x47ab96['position']['nodeAfter'],_0xb2b9ab['model']),_0x1557e8=_0x47ab96['before'];'rename'==_0x47ab96['action']&&_0x14008e['push']({'key':m,'newValue':_0x47ab96['name'],'oldValue':_0x1557e8['name'],'range':_0x1a05b9});for(const [_0x306939,_0x4426fc]of _0x1557e8['attributes']){if(!this['_isRegisteredAttribute'](_0x306939))continue;const _0x4211ce=_0x47ab96['attributes']['get'](_0x306939);_0x4426fc!==_0x4211ce&&_0x14008e['push']({'key':_0x306939,'newValue':_0x4211ce,'oldValue':_0x4426fc,'range':_0x1a05b9});}for(const [_0x295126,_0x4a6158]of _0x47ab96['attributes'])this['_isRegisteredAttribute'](_0x295126)&&(_0x1557e8['attributes']['has'](_0x295126)||_0x14008e['push']({'key':_0x295126,'newValue':_0x4a6158,'oldValue':null,'range':_0x1a05b9}));}0x0!=_0x14008e['length']&&_0xb2b9ab['model']['enqueueChange'](_0xe0bd7e,_0x40f98a=>{const _0x466134=_0x3caa75();for(const {range:_0x2fcc84,key:_0x33c1c6,oldValue:_0x65f389,newValue:_0x549465}of _0x14008e)this['markAttributeChange'](_0x2fcc84,_0x33c1c6,_0x65f389,_0x549465,{'groupId':_0x466134});this['_reduceExistingSuggestions'](_0x40f98a,_0x14008e);});},{'priority':'lowest'}),_0xb2b9ab['model']['markers']['on']('update:suggestion',(_0x528d99,_0x1d60dc,_0x14b25b)=>{if(null==_0x14b25b){const {id:_0x2f346e}=this['_splitMarkerName'](_0x1d60dc['name']),_0x1d199c=this['_suggestions']['get'](_0x2f346e);_0x1d199c&&_0x1d199c['addMarkerName'](_0x1d60dc['name']);}}),_0xb2b9ab['model']['document']['on']('change:data',()=>{const _0x96724=Array['from'](_0xb2b9ab['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1eb9db=>'suggestion'===this['_splitMarkerName'](_0x1eb9db['name'])['group']);if(0x0===_0x96724['length'])return;_0x96724['sort']((_0x4c9195,_0x57c37c)=>{const _0x98243b=_0x4c9195['data']['oldRange'],_0x4853e5=_0x57c37c['data']['oldRange'];return null===_0x98243b&&null===_0x4853e5?0x0:null===_0x98243b&&null!==_0x4853e5?-0x1:null!==_0x98243b&&null===_0x4853e5?0x1:_0x98243b['start']['isBefore'](_0x4853e5['start'])?-0x1:0x1;});const _0x4325ee=new Set(),_0x57a9f2=new Set();for(const {name:_0x299b2d,data:_0x20510f}of _0x96724){const {id:_0x3eacbb}=this['_splitMarkerName'](_0x299b2d);if(null===_0x20510f['oldRange']){const _0x345133=this['_handleNewSuggestionMarker'](_0x299b2d);_0x57a9f2['add'](_0x345133);}else{const _0x5ab13c=this['_suggestions']['get'](_0x3eacbb);null!==_0x20510f['newRange']||_0x5ab13c['isInContent']?(_0x4325ee['add'](_0x5ab13c['head']),_0x57a9f2['add'](_0x5ab13c)):this['_removeSuggestion'](_0x5ab13c);}}_0x57a9f2['size']>0x0&&this['_refreshSuggestionsChain'](_0x57a9f2);for(const _0x5c6bd6 of _0x4325ee)this['fire']('suggestionChanged',_0x5c6bd6);}),_0xb2b9ab['model']['on']('applyOperation',(_0x1ce414,_0x5d50c2)=>{const _0x5e1db3=_0x5d50c2[0x0];if(!this['_suggestions']['size'])return;if(!_0x5e1db3['isDocumentOperation'])return;if(_0x5e1db3['batch']['isUndo']||!_0x5e1db3['batch']['isLocal'])return;let _0x15ca96,_0x478080;switch(_0x5e1db3['type']){case'insert':_0x15ca96=_0xb2b9ab['model']['createPositionAt'](_0x5e1db3['position']),_0x478080=_0x15ca96['getShiftedBy'](_0x5e1db3['howMany']);break;case'split':_0x15ca96=_0xb2b9ab['model']['createPositionAt'](_0x5e1db3['splitPosition']),_0x478080=_0xb2b9ab['model']['createPositionAt'](_0x5e1db3['moveTargetPosition']);break;case'move':_0x15ca96=_0xb2b9ab['model']['createPositionAt'](_0x5e1db3['targetPosition']),_0x478080=_0x15ca96['getShiftedBy'](_0x5e1db3['howMany']);break;default:return;}const _0x28c48c=_0xb2b9ab['model']['createRange'](_0x15ca96,_0x478080);_0xb2b9ab['model']['change'](()=>{for(const {suggestion:_0x343a63,meta:_0x838e57}of this['_findSuggestions'](_0x28c48c)){if(_0x343a63['isMultiRange'])continue;if('formatInline'==_0x343a63['type'])continue;const _0x58852e=this['_getAttributeKey'](_0x343a63);if(_0x58852e&&this['_isBlockAttribute'](_0x58852e)&&'split'!=_0x5e1db3['type'])continue;const _0x3c15c3=_0x343a63['data']&&_0x343a63['data']['multipleBlocks'];('formatBlock'!=_0x343a63['type']||'split'==_0x5e1db3['type']&&!_0x3c15c3)&&(_0x838e57['containsRangeInObject']||'insertion'==_0x343a63['type']&&_0x838e57['isOwn']||_0x343a63['getFirstRange']()['containsRange'](_0x28c48c)&&this['_breakSuggestionMarker'](_0x343a63,_0x15ca96,_0x478080));}});},{'priority':'lowest'}),_0xb2b9ab['model']['on']('deleteContent',(_0x1e1a85,_0xd848d3)=>{const _0x288f8c=_0xd848d3[0x0],_0x4a055c=_0xd848d3[0x1];if(_0x4a055c&&_0x4a055c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x288f8c['isCollapsed'])return;const _0x206bbf=_0xb2b9ab['model']['schema'],{start:_0x40eabd,end:_0x17ee01}=_0x288f8c['getFirstRange'](),_0xd6fa68=_0x40eabd['nodeAfter']&&_0x206bbf['isLimit'](_0x40eabd['nodeAfter'])?null:_0x206bbf['getNearestSelectionRange'](_0x40eabd,'forward'),_0x1c14cf=_0x17ee01['nodeBefore']&&_0x206bbf['isLimit'](_0x17ee01['nodeBefore'])?null:_0x206bbf['getNearestSelectionRange'](_0x17ee01,'backward'),_0x35a388=_0xb2b9ab['model']['createRange'](_0xd6fa68?_0xd6fa68['start']:_0x40eabd,_0x1c14cf?_0x1c14cf['end']:_0x17ee01);_0xb2b9ab['model']['change'](_0x2651b8=>{this['markDeletion'](_0x35a388);const _0x401357=_0xb2b9ab['model']['schema']['getNearestSelectionRange'](_0x35a388['start']);_0x288f8c['is']('documentSelection')?_0x2651b8['setSelection'](_0x401357):_0x288f8c['setTo'](_0x401357);}),_0x1e1a85['stop']();},{'priority':_0x35714c['normal']+0xa}),_0xb2b9ab['model']['on']('insertContent',(_0x24dc92,_0x27a600)=>{const _0x101d59=_0x27a600[_0x27a600['length']-0x1];_0x101d59&&_0x101d59['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xb2b9ab['model']['change'](()=>{let _0x1d7cbc=_0xb2b9ab['model']['insertContent'](_0x27a600[0x0],_0x27a600[0x1],_0x27a600[0x2],{'forceDefaultExecution':!0x0});if(!_0x1d7cbc)return;_0x24dc92['return']=_0x1d7cbc['clone']();const _0x4773ed=_0x1d7cbc['end']['nodeBefore'],_0x340e17=_0xb2b9ab['model']['schema'];_0x4773ed&&_0x340e17['isBlock'](_0x4773ed)&&!_0x340e17['isObject'](_0x4773ed)&&(_0x1d7cbc=_0xb2b9ab['model']['createRange'](_0x1d7cbc['start'],_0xb2b9ab['model']['createPositionAt'](_0x4773ed,'end'))),this['markInsertion'](_0x1d7cbc);}),_0x24dc92['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2c8892=new T(_0xb2b9ab,this['_suggestions']);_0xb2b9ab['commands']['add']('acceptSuggestion',_0x2c8892),this['enableCommand']('acceptSuggestion');const _0x99df5f=new O(_0xb2b9ab,this['_suggestions']);_0xb2b9ab['commands']['add']('discardSuggestion',_0x99df5f),this['enableCommand']('discardSuggestion'),_0xb2b9ab['commands']['add']('acceptAllSuggestions',new x(_0xb2b9ab,_0x2c8892,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xb2b9ab['commands']['add']('discardAllSuggestions',new x(_0xb2b9ab,_0x99df5f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xb2b9ab['commands']['add']('acceptSelectedSuggestions',new E(_0xb2b9ab,_0x2c8892,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xb2b9ab['commands']['add']('discardSelectedSuggestions',new E(_0xb2b9ab,_0x99df5f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1203b0=_0xb2b9ab['plugins']['get']('CommentsRepository');this['listenTo'](_0x1203b0,'addComment',(_0x2a4e4b,{threadId:_0x24608e})=>{const _0x36680a=this['_suggestions']['get'](_0x24608e);_0x36680a&&_0x36680a['commentThread']&&0x1===_0x36680a['commentThread']['length']&&this['_updateSuggestionData'](_0x24608e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1203b0,'removeComment',(_0x69bbe2,{threadId:_0x7332f7})=>{const _0x1c2c2b=this['_suggestions']['get'](_0x7332f7);_0x1c2c2b&&_0x1c2c2b['commentThread']&&!_0x1c2c2b['commentThread']['length']&&this['_updateSuggestionData'](_0x7332f7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1c688b){const _0x59ca41=_0x3883de([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x1cf16e=0x3d8d0df,_0x7efb68=0x3dfa7ef^_0x1cf16e,_0x3c56c7=window[_0x3883de([0x44,0x61,0x74,0x65])][_0x3883de([0x6e,0x6f,0x77])](),_0x1af10f=_0x1c688b[_0x3883de([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x447189=new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x119f2b=>{_0x1af10f[_0x3883de([0x6f,0x6e,0x63,0x65])](_0x3883de([0x72,0x65,0x61,0x64,0x79]),_0x119f2b);}),_0x5dedad={[_0x3883de([0x6b,0x74,0x79])]:_0x3883de([0x45,0x43]),[_0x3883de([0x75,0x73,0x65])]:_0x3883de([0x73,0x69,0x67]),[_0x3883de([0x63,0x72,0x76])]:_0x3883de([0x50,0x2d,0x32,0x35,0x36]),[_0x3883de([0x78])]:_0x3883de([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]),[_0x3883de([0x79])]:_0x3883de([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]),[_0x3883de([0x61,0x6c,0x67])]:_0x3883de([0x45,0x53,0x32,0x35,0x36])},_0x28cdd6=_0x1af10f[_0x3883de([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3883de([0x67,0x65,0x74])](_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x445d39(){let _0x163a37,_0x9bbfa7=null,_0x4ef95e=null;try{if(_0x28cdd6==_0x3883de([0x47,0x50,0x4c]))return _0x3883de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x163a37=_0x2b7d20(),!_0x163a37)return _0x3883de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x163a37[_0x3883de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ef95e=_0xc4ef11(_0x163a37[_0x3883de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x163a37[_0x3883de([0x6a,0x74,0x69])])),await _0x2bde3a()?_0x2ce1ac()?_0x202c35()?_0x3883de([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a36c7()?(_0x163a37[_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3883de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9bbfa7=_0xbf0748(_0x3883de([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x163a37[_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3883de([0x74,0x72,0x69,0x61,0x6c])&&(_0x9bbfa7=_0xbf0748(_0x3883de([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e6951()):_0x3883de([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3883de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3883de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3883de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x202c35(){const _0x25eda9=[_0x3883de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3883de([0x74,0x72,0x69,0x61,0x6c])][_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163a37[_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c56c7/0x3e8:0xe10*_0x7efb68;return _0x163a37[_0x3883de([0x65,0x78,0x70])]<_0x25eda9;}function _0x2ce1ac(){const _0x18c221=_0x163a37[_0x3883de([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x18c221)return!0x1;if(_0x18c221[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3883de([0x2a])))return!0x0;if(_0x18c221[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3883de([0x54,0x43])))return!0x0;if(_0x18c221[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3883de([0x52,0x54,0x43]))){if(_0x5cefce())return!0x0;if(_0x1a0723()||_0x1560cf())return!0x0;}return!0x1;}function _0x4a36c7(){const _0xe9492e=_0x163a37[_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe9492e||0x0==_0xe9492e[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x587ae1}=new URL(window[_0x3883de([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe9492e[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x587ae1))return!0x0;const _0x5946c6=_0x587ae1[_0x3883de([0x73,0x70,0x6c,0x69,0x74])](_0x3883de([0x2e]));return _0xe9492e[_0x3883de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x114fd8=>_0x114fd8[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3883de([0x2a])))[_0x3883de([0x6d,0x61,0x70])](_0x57c87a=>_0x57c87a[_0x3883de([0x73,0x70,0x6c,0x69,0x74])](_0x3883de([0x2e])))[_0x3883de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25aa08=>_0x25aa08[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5946c6[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3883de([0x6d,0x61,0x70])](_0x3d6cfd=>Array(_0x5946c6[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d6cfd[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3883de([0x66,0x69,0x6c,0x6c])](_0x3d6cfd[0x0]===_0x3883de([0x2a])?_0x3883de([0x2a]):'')[_0x3883de([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d6cfd))[_0x3883de([0x73,0x6f,0x6d,0x65])](_0x32c1af=>_0x5946c6[_0x3883de([0x65,0x76,0x65,0x72,0x79])]((_0x59ae53,_0x163618)=>_0x32c1af[_0x163618]===_0x59ae53||_0x32c1af[_0x163618]===_0x3883de([0x2a])));}function _0x2e6951(){return _0x9bbfa7&&_0x4ef95e?new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58f137,_0x466450)=>{_0x9bbfa7[_0x3883de([0x74,0x68,0x65,0x6e])](_0x58f137,_0x466450),_0x4ef95e[_0x3883de([0x74,0x68,0x65,0x6e])](_0x5692be=>{_0x5692be!=_0x3883de([0x56,0x61,0x6c,0x69,0x64])&&_0x58f137(_0x5692be);},_0x466450);}):_0x9bbfa7||_0x4ef95e||_0x3883de([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc4ef11(_0x5956ad,_0x57ba9a){return new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47d8fe=>{if(_0x475153())return _0x47d8fe(_0x3883de([0x56,0x61,0x6c,0x69,0x64]));_0xe3f81f(),_0x1af10f[_0x3883de([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3883de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1dbf5a=!0x1;const _0x436740=_0x3caa75();function _0x42b2db(_0x162493){return!!_0x162493&&(typeof _0x162493===_0x3883de([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x162493===_0x3883de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x162493[_0x3883de([0x74,0x68,0x65,0x6e])]===_0x3883de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x162493[_0x3883de([0x63,0x61,0x74,0x63,0x68])]===_0x3883de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2dbd5e(_0x55729e){_0x4b18c3(_0x55729e)[_0x3883de([0x74,0x68,0x65,0x6e])](_0x728a1e=>{if(!_0x728a1e||_0x728a1e[_0x3883de([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3883de([0x6f,0x6b]))return _0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x597074(_0x1ad3d4(_0x436740+_0x57ba9a))!=_0x728a1e[_0x3883de([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3883de([0x56,0x61,0x6c,0x69,0x64]);})[_0x3883de([0x74,0x68,0x65,0x6e])](_0x53b19b=>(_0x40a23c(),_0x53b19b),()=>{const _0x213f4b=_0x27645e();return null==_0x213f4b?(_0x40a23c(),_0x3883de([0x56,0x61,0x6c,0x69,0x64])):_0x3883de(_0x3c56c7-_0x213f4b>(0x27d454df^_0x1cf16e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3883de([0x74,0x68,0x65,0x6e])](_0x47d8fe)[_0x3883de([0x63,0x61,0x74,0x63,0x68])](()=>{_0x47d8fe(_0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ec72a=0x3ee3e5f^_0x1cf16e;function _0x40a23c(){const _0x1b4154=_0x3883de([0x6c,0x6c,0x63,0x74,0x2d])+_0x597074(_0x1ad3d4(_0x5956ad)),_0x211684=_0x304f37(_0x597074(window[_0x3883de([0x4d,0x61,0x74,0x68])][_0x3883de([0x63,0x65,0x69,0x6c])](_0x3c56c7/_0x1ec72a)));window[_0x3883de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3883de([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b4154,_0x211684);}function _0x27645e(){const _0x1ecfef=_0x3883de([0x6c,0x6c,0x63,0x74,0x2d])+_0x597074(_0x1ad3d4(_0x5956ad)),_0x478587=window[_0x3883de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3883de([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ecfef);return _0x478587?window[_0x3883de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x304f37(_0x478587),0x10)*_0x1ec72a:null;}function _0x4b18c3(_0x2511b1){return new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46414a,_0x411bad)=>{_0x2511b1[_0x3883de([0x74,0x68,0x65,0x6e])](_0x46414a,_0x411bad),window[_0x3883de([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x411bad,0x3d9041f^_0x1cf16e);});}}_0x1af10f[_0x3883de([0x6f,0x6e])](_0x3883de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ad7a0,_0x41471c)=>{if(_0x41471c[0x0]!=_0x5956ad)return _0x47d8fe(_0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x41471c[0x1]={..._0x41471c[0x1],[_0x3883de([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x436740};},{[_0x3883de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3883de([0x68,0x69,0x67,0x68])}),_0x1af10f[_0x3883de([0x6f,0x6e])](_0x3883de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x347f75=>{_0x42b2db(_0x347f75[_0x3883de([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1dbf5a=!0x0,_0x2dbd5e(_0x347f75[_0x3883de([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3883de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3883de([0x6c,0x6f,0x77])}),_0x447189[_0x3883de([0x74,0x68,0x65,0x6e])](()=>{_0x1dbf5a||_0x47d8fe(_0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x475153(){return _0x1af10f[_0x3883de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3883de([0x76,0x69,0x65,0x77])][_0x3883de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3883de([0x61,0x75,0x74,0x6f]);}function _0xe3f81f(){_0x1af10f[_0x3883de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3883de([0x76,0x69,0x65,0x77])][_0x3883de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3883de([0x61,0x75,0x74,0x6f]);}}function _0xbf0748(_0xa1ec1f){const _0x4db04d=[new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ff300=>setTimeout(_0x1ff300,0x3d1ee13^_0x1cf16e)),_0x447189[_0x3883de([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x400b51=>{let _0x1089ae=0x0;_0x1af10f[_0x3883de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3883de([0x6f,0x6e])](_0x3883de([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a5de4,_0x7f9117)=>{_0x7f9117[0x0][_0x3883de([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1089ae++,_0x1089ae==(0x3d8d127^_0x1cf16e)&&(_0x400b51(),_0x4a5de4[_0x3883de([0x6f,0x66,0x66])]());});}))];return window[_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3883de([0x72,0x61,0x63,0x65])](_0x4db04d)[_0x3883de([0x74,0x68,0x65,0x6e])](()=>_0xa1ec1f);}async function _0x10c163(){await _0x447189,_0x1af10f[_0x3883de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3883de([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3843ed,_0x1af10f[_0x3883de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3883de([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3843ed,_0x1af10f[_0x3883de([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3883de([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5cefce(){return _0x55df99(_0x3883de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x491485(_0x3883de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3883de([0x73,0x74,0x61,0x74,0x65])]==_0x3883de([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1a0723(){return _0x55df99(_0x3883de([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 _0x1560cf(){return _0x55df99(_0x3883de([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2f7d81(_0x5635ff){const _0x87e533=_0x4bd97e();_0x1af10f[_0x87e533]=_0x3883de([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5635ff,_0x5635ff!=_0x3883de([0x56,0x61,0x6c,0x69,0x64])&&_0x10c163();}function _0x4bd97e(){const _0x4f66c9=window[_0x3883de([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3883de([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3883de([0x6e,0x6f,0x77])]())[_0x3883de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3883de([0x2e]),'');let _0x574bb0=_0x3883de([0x52]);for(let _0x5bc80b=0x0;_0x5bc80b<_0x4f66c9[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bc80b+=0x2){let _0x2d0764=window[_0x3883de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f66c9[_0x3883de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bc80b,_0x5bc80b+0x2));_0x2d0764>=_0x59ca41[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d0764-=_0x59ca41[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x574bb0+=_0x59ca41[_0x2d0764];}return _0x574bb0;}function _0x2b7d20(){const _0x25adad=_0x28cdd6[_0x3883de([0x73,0x70,0x6c,0x69,0x74])](_0x3883de([0x2e]));if(0x3!=_0x25adad[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58015e(_0x25adad[0x1]);function _0x58015e(_0x464756){const _0x325111=_0x1a1583(_0x464756);return _0x325111&&_0x2545a2()?_0x325111:null;function _0x2545a2(){const _0x23c53b=_0x325111[_0x3883de([0x6a,0x74,0x69])],_0x1315d9=window[_0x3883de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23c53b[_0x3883de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23c53b[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3559c6={..._0x325111,[_0x3883de([0x6a,0x74,0x69])]:_0x23c53b[_0x3883de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23c53b[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3559c6[_0x3883de([0x76,0x63])],_0x1ad3d4(_0x3559c6)==_0x1315d9;}}}async function _0x2bde3a(){let _0x5621a8=!0x0;try{const _0x41a7ca=_0x28cdd6[_0x3883de([0x73,0x70,0x6c,0x69,0x74])](_0x3883de([0x2e])),[_0x22d199,_0xaa9dbb,_0x3c1d7a]=_0x41a7ca;return _0x49a729(_0x22d199),await _0x14b4b6(_0x22d199,_0xaa9dbb,_0x3c1d7a),_0x5621a8;}catch{return!0x1;}function _0x49a729(_0x203cca){const _0x2b89c6=_0x1a1583(_0x203cca);_0x2b89c6&&_0x2b89c6[_0x3883de([0x61,0x6c,0x67])]==_0x3883de([0x45,0x53,0x32,0x35,0x36])||(_0x5621a8=!0x1);}async function _0x14b4b6(_0x55c5f4,_0x34faa5,_0x53e695){const _0x4e5e1b=window[_0x3883de([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3883de([0x66,0x72,0x6f,0x6d])](_0x5af06a(_0x53e695),_0x2ce53d=>_0x2ce53d[_0x3883de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2de572=new window[(_0x3883de([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3883de([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55c5f4+_0x3883de([0x2e])+_0x34faa5),_0x16dd25=window[_0x3883de([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3883de([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16dd25)return;const _0x3db2be=await _0x16dd25[_0x3883de([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3883de([0x6a,0x77,0x6b]),_0x5dedad,{[_0x3883de([0x6e,0x61,0x6d,0x65])]:_0x3883de([0x45,0x43,0x44,0x53,0x41]),[_0x3883de([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3883de([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3883de([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16dd25[_0x3883de([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3883de([0x6e,0x61,0x6d,0x65])]:_0x3883de([0x45,0x43,0x44,0x53,0x41]),[_0x3883de([0x68,0x61,0x73,0x68])]:{[_0x3883de([0x6e,0x61,0x6d,0x65])]:_0x3883de([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3db2be,_0x4e5e1b,_0x2de572)||(_0x5621a8=!0x1);}}function _0x1a1583(_0x224cd1){return _0x224cd1[_0x3883de([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3883de([0x65,0x79]))?JSON[_0x3883de([0x70,0x61,0x72,0x73,0x65])](_0x5af06a(_0x224cd1)):null;}function _0x5af06a(_0x6fbefd){return window[_0x3883de([0x61,0x74,0x6f,0x62])](_0x6fbefd[_0x3883de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3883de([0x2b]))[_0x3883de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3883de([0x2f])));}function _0x1ad3d4(_0x3a124e){let _0x4c7144=0x1505;function _0x2a2624(_0x44f858){for(let _0x130523=0x0;_0x130523<_0x44f858[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x130523++){const _0x545a4d=_0x44f858[_0x3883de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x130523);_0x4c7144=(_0x4c7144<<0x5)+_0x4c7144+_0x545a4d,_0x4c7144&=_0x4c7144;}}function _0x1c4cf9(_0x4bd410){Array[_0x3883de([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4bd410)?_0x4bd410[_0x3883de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1c4cf9):_0x4bd410&&typeof _0x4bd410==_0x3883de([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3883de([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4bd410)[_0x3883de([0x73,0x6f,0x72,0x74])]()[_0x3883de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e522d,_0x5640ef])=>{_0x2a2624(_0x1e522d),_0x1c4cf9(_0x5640ef);}):_0x2a2624(window[_0x3883de([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4bd410));}return _0x1c4cf9(_0x3a124e),_0x4c7144>>>0x0;}function _0x597074(_0xb1dcad){return _0xb1dcad[_0x3883de([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3883de([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3883de([0x30]));}function _0x304f37(_0x50771d){return _0x50771d[_0x3883de([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3883de([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3883de([0x6a,0x6f,0x69,0x6e])]('');}function _0x55df99(_0x210d3b){return _0x1af10f[_0x3883de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3883de([0x68,0x61,0x73])](_0x210d3b);}function _0x491485(_0x384caf){return _0x1af10f[_0x3883de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3883de([0x67,0x65,0x74])](_0x384caf);}function _0x3843ed(){}function _0x3883de(_0x3d3566){return _0x3d3566['map'](_0x27a850=>String['fromCharCode'](_0x27a850))['join']('');}_0x2f7d81(await _0x445d39());}(this);}set['adapter'](_0x47fcd5){if(this['_adapter'])throw new _0x5a4829('track-changes-adapter-already-set',this);this['_adapter']=_0x47fcd5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3de594=!0x1,toJSON:_0x3dacae=!0x1}={}){const _0x491957=[];for(const _0x16e08a of this['_suggestions']['values']())_0x3de594&&!_0x16e08a['isInContent']||_0x491957['push'](_0x16e08a);return _0x3dacae?_0x491957['map'](_0x2d4768=>_0x2d4768['toJSON']()):_0x491957;}['getSuggestion'](_0x126591){const _0x5a3ca5=this['_suggestions']['get'](_0x126591);if(!_0x5a3ca5)throw new _0x5a4829('track-changes-suggestion-not-found',this);return _0x5a3ca5;}['hasSuggestion'](_0xd22c54){return this['_suggestions']['has'](_0xd22c54);}['addSuggestionData'](_0x7ab547){const {authorId:_0x24f46b,id:_0x500dc4,originalSuggestionId:_0x1f4abd,attributes:_0x267a91}=_0x7ab547,[_0x27e0cd,_0x5ba7f2]=_0x7ab547['type']['split'](':'),_0x4564a3=this['_suggestions']['get'](_0x500dc4)||this['_createSuggestion'](_0x27e0cd,_0x5ba7f2,_0x500dc4,_0x24f46b,_0x267a91,_0x1f4abd);if(this['_addThreadToSuggestion'](_0x4564a3),this['_checkSuggestionCorrectness'](_0x4564a3,_0x27e0cd,_0x5ba7f2||null,_0x24f46b),_0x4564a3['createdAt']=_0x7ab547['createdAt'],_0x4564a3['_isDataLoaded']=!0x0,_0x267a91&&_0x267a91['@external']){const _0x4356ae=_0x267a91['@external'],_0x5af7f1=this['_getExternalAuthor'](_0x4356ae['authorName']);_0x4564a3['authoredAt']=_0x4356ae['createdAt'],_0x4564a3['author']=_0x5af7f1,_0x4564a3['isExternal']=!0x0;}else _0x4564a3['authoredAt']=_0x7ab547['createdAt'];switch(_0x7ab547['data']&&(_0x4564a3['data']=_0x7ab547['data']),_0x7ab547['attributes']&&(_0x4564a3['attributes']=_0x7ab547['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4564a3['_saved']=!0x0),this['_suggestionState']['get'](_0x4564a3)){case'notReady':this['_suggestionState']['set'](_0x4564a3,'dataReady');break;case'markerReady':_0x4564a3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4564a3])),this['_refreshSuggestionsChain'](new Set([_0x4564a3])),this['_suggestionState']['set'](_0x4564a3,'ready'),this['fire']('suggestionLoaded',_0x4564a3)):this['_suggestionState']['set'](_0x4564a3,'removed');}return _0x4564a3;}['acceptSuggestion'](_0x3e6a74){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1adfc2 of _0x3e6a74['getAllAdjacentSuggestions']())_0x1adfc2['accept']();});});}['discardSuggestion'](_0x1ef7b8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x336e70 of _0x1ef7b8['getAllAdjacentSuggestions']())_0x336e70['discard']();});});}['enableCommand'](_0x1e1582,_0x451459){const _0x198d15=this['editor']['commands']['get'](_0x1e1582);if(!_0x198d15)throw new _0x5a4829('track-changes-command-not-found',this,{'commandName':_0x1e1582});if(this['_enabledCommands']['has'](_0x198d15))throw new _0x5a4829('track-changes-enable-command-twice',this,{'commandName':_0x1e1582});this['_enabledCommands']['add'](_0x198d15),_0x451459&&_0x198d15['on']('execute',(_0x48006a,_0x5bc8fa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5bc8fa['length']>0x0&&_0x5bc8fa[_0x5bc8fa['length']-0x1]&&_0x5bc8fa[_0x5bc8fa['length']-0x1]['forceDefaultExecution']?_0x5bc8fa['pop']():(_0x48006a['return']=_0x451459((..._0x35c156)=>_0x198d15['execute'](..._0x35c156,{'forceDefaultExecution':!0x0}),..._0x5bc8fa),_0x48006a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xc2c14b){let _0xc96a42,_0x5c1460;const _0x4f9e19=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc96a42=_0xc2c14b();}catch(_0x61c3fb){_0x5c1460=_0x61c3fb;}return _0x4f9e19||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5c1460&&_0x5a4829['rethrowUnexpectedError'](_0x5c1460,this),_0xc96a42;}['markInsertion'](_0x3e28af,_0x5db758=null,_0x3493b1={}){if(_0x3e28af['isCollapsed'])return null;const _0x1e886e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3493b1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5c2eaa,meta:_0x583bf0}of this['_findSuggestions'](_0x3e28af,'insertion'))if(_0x583bf0['isOwn']){if(!_0x583bf0['isNextTo']){if(_0x583bf0['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!oe(_0x5c2eaa,_0x3493b1))continue;return _0x5c2eaa;}if(oe(_0x5c2eaa,_0x3493b1))return _0x5c2eaa;this['_breakSuggestionMarker'](_0x5c2eaa,_0x3e28af['start'],_0x3e28af['end']);break;}if(_0x5db758==_0x5c2eaa['subType']&&oe(_0x5c2eaa,_0x3493b1)){const _0x43d22d=_0x5c2eaa['getFirstRange']();return _0x43d22d['start']['isEqual'](_0x3e28af['end'])?this['_setSuggestionRange'](_0x5c2eaa,this['_model']['createRange'](_0x3e28af['start'],_0x43d22d['end'])):this['_setSuggestionRange'](_0x5c2eaa,this['_model']['createRange'](_0x43d22d['start'],_0x3e28af['end'])),_0x5c2eaa;}}const _0x3933cd=_0x3caa75(),_0x39bfd5=_0x1e886e['id'],_0xe00286=_0x5db758?'insertion:'+_0x5db758:'insertion',_0x197382=this['_setSuggestionData']({'id':_0x3933cd,'type':_0xe00286,'createdAt':new Date(),'authorId':_0x39bfd5,'attributes':_0x3493b1});return this['_addSuggestionMarker'](_0xe00286,_0x3933cd,_0x39bfd5,_0x3e28af),_0x197382;}['markMultiRangeInsertion'](_0x3cfb00,_0x4d6e04='multi',_0x178159={}){const _0x10418f=this['editor']['plugins']['get']('Users')['me'],_0x2aa5d0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4d6e04,'join');this['_trackingSessionId']&&(_0x178159['trackingSessionId']=this['_trackingSessionId']);for(const _0x19d6b2 of this['getSuggestions']())if(_0x19d6b2['author']['id']==_0x10418f['id']&&'insertion'==_0x19d6b2['type']&&_0x19d6b2['subType']==_0x4d6e04&&oe(_0x19d6b2,_0x178159)&&(_0x2aa5d0(_0x19d6b2['getRanges'](),_0x3cfb00)||_0x2aa5d0(_0x3cfb00,_0x19d6b2['getRanges']()))){for(const _0x579c22 of _0x3cfb00)_0x19d6b2['addRange'](_0x579c22);return _0x19d6b2;}for(const {suggestion:_0x324cbe,meta:_0x23c346}of this['_findSuggestions'](_0x3cfb00,'insertion')){if(!_0x23c346['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x23c346['containsRangeInObject'])continue;if(!oe(_0x324cbe,_0x178159))continue;let _0x16897c=!0x0;for(const _0x2231d3 of _0x324cbe['getRanges']())for(const _0x1899f0 of _0x3cfb00)if(!_0x2231d3['containsRange'](_0x1899f0)){_0x16897c=!0x1;break;}if(_0x16897c)return _0x324cbe;}const _0x499ced=_0x3caa75(),_0x41b44b=_0x10418f['id'],_0x53a215='insertion:'+_0x4d6e04,_0x2fe202=this['_setSuggestionData']({'id':_0x499ced,'type':_0x53a215,'createdAt':new Date(),'authorId':_0x41b44b,'attributes':_0x178159});for(const _0x5b5652 of _0x3cfb00)this['_addSuggestionMarker'](_0x53a215,_0x499ced,_0x41b44b,_0x5b5652,R['getMultiRangeId']());return _0x2fe202;}['markInlineFormat'](_0xd37d8e,_0x4724d1,_0x5694d0=null,_0x31f661={}){if(_0x5694d0=_0x5694d0||Qt(_0x4724d1),_0xd37d8e['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x31f661['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x52af9f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5694d0,'accept');return this['forceDefaultExecution'](()=>_0x52af9f([_0xd37d8e],_0x4724d1,_0x31f661)),null;}const _0xdf692f=this['editor']['plugins']['get']('Users')['me'],_0x60baf9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1175b5,meta:_0x21d436}of this['_findSuggestions'](_0xd37d8e,'insertion'))_0x21d436['isOwn']&&!_0x21d436['isInsideObject']&&_0x60baf9['push'](..._0x1175b5['getRanges']());}const _0x226e58=function(_0x333d8f,_0x55639e){const _0x4b44d8=[];for(const _0x52897d of _0x55639e){const _0x1652c0=_0x333d8f['getIntersection'](_0x52897d);_0x1652c0&&_0x4b44d8['push'](_0x1652c0);}return _0x4b44d8;}(_0xd37d8e,_0x60baf9),_0x3c3f55=function(_0x2d153a,_0x2eb626){const _0x637263=[_0x2d153a];for(const _0x382bb7 of _0x2eb626){let _0x245968=0x0;for(;_0x245968<_0x637263['length'];){const _0x3bb4a2=_0x637263[_0x245968]['getDifference'](_0x382bb7);_0x637263['splice'](_0x245968,0x1,..._0x3bb4a2),_0x245968+=_0x3bb4a2['length'];}}return _0x637263;}(_0xd37d8e,_0x60baf9);_0x226e58['length']&&this['_model']['change'](()=>{for(const _0x125b2e of _0x226e58){const _0x14845a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5694d0,'accept');this['forceDefaultExecution'](()=>_0x14845a([_0x125b2e],_0x4724d1,_0x31f661));}});for(const _0x21d642 of _0x3c3f55){let _0x51dd1b=null,_0x3ae0d6=_0x21d642['start'],_0x187e7e=_0x21d642['end'];for(const {suggestion:_0x38dd01,meta:_0x18df74}of this['_findSuggestions'](_0x21d642,'formatInline')){if(!_0x18df74['isOwn'])continue;if(_0x38dd01['subType']!=_0x5694d0)continue;if(!oe(_0x38dd01,_0x31f661))continue;const _0x49c858=_0x38dd01['getFirstRange']();if(_0x49c858['containsRange'](_0x21d642,!0x0))return null;_0x3ae0d6=_0x3ae0d6['isBefore'](_0x49c858['start'])?_0x3ae0d6:_0x49c858['start'],_0x187e7e=_0x187e7e['isAfter'](_0x49c858['end'])?_0x187e7e:_0x49c858['end'],_0x51dd1b?_0x49c858['start']['isBefore'](_0x51dd1b['getFirstRange']()['start'])?(_0x51dd1b['removeMarkers'](),_0x51dd1b=_0x38dd01):_0x38dd01['removeMarkers']():_0x51dd1b=_0x38dd01;}const _0x1d2d94=this['_model']['createRange'](_0x3ae0d6,_0x187e7e);if(_0x51dd1b)this['_setSuggestionRange'](_0x51dd1b,_0x1d2d94);else{const _0x58c002=_0x3caa75(),_0x3415d9=_0xdf692f['id'];this['_setSuggestionData']({'id':_0x58c002,'type':'formatInline:'+_0x5694d0,'data':_0x4724d1,'createdAt':new Date(),'authorId':_0x3415d9,'attributes':_0x31f661}),this['_addSuggestionMarker']('formatInline:'+_0x5694d0,_0x58c002,_0x3415d9,_0x1d2d94);}}return null;}['markBlockFormat'](_0x1a561d,_0x2f1da8,_0xdbe820=[],_0x561ce3=null,_0x4c5277={}){_0x2f1da8['formatGroupId']||(_0x2f1da8['formatGroupId']=_0x2f1da8['commandName']),_0x2f1da8['multipleBlocks']=_0x1a561d['is']('range'),_0x561ce3=_0x561ce3||Qt(_0x2f1da8);const _0x13c87c=_0xdbe820['map'](_0x2b103f=>ie(_0x2b103f,this['_model'])),_0x2bafef=_0x1a561d['is']('range')?_0x1a561d:ie(_0x1a561d,this['_model']);if(this['_trackingSessionId']&&(_0x4c5277['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5b936f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x561ce3,'accept');return this['forceDefaultExecution'](()=>_0x5b936f([_0x2bafef],_0x2f1da8,_0x4c5277)),null;}_0x13c87c['push'](_0x2bafef);let _0x2601a2=!0x0;for(const _0x94eef1 of _0x13c87c)if(!this['_rangeIsInLocalUserInsertion'](_0x94eef1)){_0x2601a2=!0x1;break;}if(_0x2601a2&&'always'!==this['_trackFormatChanges']){const _0x5cb890=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x561ce3,'accept');return this['forceDefaultExecution'](()=>_0x5cb890([_0x2bafef],_0x2f1da8,_0x4c5277)),null;}let _0x545fb7=null,_0xaf8545=_0x2bafef['start'],_0x13fde8=_0x2bafef['end'];for(const {suggestion:_0x217503,meta:_0x333906}of this['_findSuggestions'](_0x2bafef,'formatBlock')){if(!_0x333906['isOwn'])continue;if(_0x333906['isNextTo']||_0x333906['containsRangeInObject']||_0x333906['isInsideObject'])continue;if(_0x217503['data']['formatGroupId']!=_0x2f1da8['formatGroupId'])continue;if(!oe(_0x217503,_0x4c5277))continue;const _0x444707=_0x217503['getFirstRange']();if(_0x217503['subType']==_0x561ce3){if(_0x444707['containsRange'](_0x2bafef,!0x0))return null;_0xaf8545=_0xaf8545['isBefore'](_0x444707['start'])?_0xaf8545:_0x444707['start'],_0x13fde8=_0x13fde8['isAfter'](_0x444707['end'])?_0x13fde8:_0x444707['end'],_0x545fb7?_0x444707['start']['isBefore'](_0x545fb7['getFirstRange']()['start'])?(_0x545fb7['removeMarkers'](),_0x545fb7=_0x217503):_0x217503['removeMarkers']():_0x545fb7=_0x217503;}else{const _0x287370=_0x2bafef['getIntersection'](_0x444707);this['_cutOutSuggestionMarker'](_0x217503,_0x287370);}}const _0x1462d9=this['editor']['plugins']['get']('Users')['me'],_0x5a5b45=_0x3caa75(),_0x4b2028=_0x1462d9['id'];if(_0x545fb7)return this['_setSuggestionRange'](_0x545fb7,this['_model']['createRange'](_0xaf8545,_0x13fde8)),_0x545fb7;{const _0x31285c=this['_setSuggestionData']({'id':_0x5a5b45,'type':'formatBlock:'+_0x561ce3,'data':_0x2f1da8,'createdAt':new Date(),'authorId':_0x4b2028,'attributes':_0x4c5277});return this['_addSuggestionMarker']('formatBlock:'+_0x561ce3,_0x5a5b45,_0x4b2028,this['_model']['createRange'](_0xaf8545,_0x13fde8)),_0x31285c;}}['markMultiRangeBlockFormat'](_0x515830,_0x42e4ca,_0x258776=[],_0x3a9c94=null,_0x21b92b={}){_0x42e4ca['formatGroupId']||(_0x42e4ca['formatGroupId']=_0x42e4ca['commandName']);const _0x390f45=_0x515830[0x0];_0x42e4ca['multipleBlocks']=_0x390f45['is']('range'),_0x3a9c94=_0x3a9c94||Qt(_0x42e4ca);const _0x45042c=_0x258776['map'](_0xdceed9=>ie(_0xdceed9,this['_model'])),_0x4d7f2a=_0x390f45['is']('range')?_0x515830:_0x515830['map'](_0x18d101=>ie(_0x18d101,this['_model']));if(this['_trackingSessionId']&&(_0x21b92b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x178abf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a9c94,'accept');return this['forceDefaultExecution'](()=>_0x178abf(_0x4d7f2a,_0x42e4ca,_0x21b92b)),null;}_0x45042c['push'](..._0x4d7f2a);let _0x8bfd24=!0x0;for(const _0x39fb33 of _0x45042c)if(!this['_rangeIsInLocalUserInsertion'](_0x39fb33)){_0x8bfd24=!0x1;break;}if(_0x8bfd24&&'always'!==this['_trackFormatChanges']){const _0x2eb9fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a9c94,'accept');return this['forceDefaultExecution'](()=>_0x2eb9fe(_0x4d7f2a,_0x42e4ca,_0x21b92b)),null;}const _0x3a9671=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d15d4 of this['getSuggestions']()){const _0xc180ea=_0x4d15d4['data'];if(_0x4d15d4['author']['id']!=_0x3a9671['id'])continue;if('formatBlock'!=_0x4d15d4['type']||_0xc180ea['formatGroupId']!=_0x42e4ca['formatGroupId'])continue;if(!oe(_0x4d15d4,_0x21b92b))continue;const _0x8e27b0=_0x4d15d4['subType']==_0x3a9c94;for(let _0x5d9389=0x0;_0x5d9389<_0x4d7f2a['length'];_0x5d9389++){const _0x45ba5f=_0x4d7f2a[_0x5d9389];for(const _0x5f30ed of _0x4d15d4['getMarkers']()){const _0x16e09e=_0x5f30ed['getRange']();if(_0x45ba5f['isEqual'](_0x16e09e)){_0x8e27b0?(_0x4d7f2a['splice'](_0x5d9389,0x1),_0x5d9389--):_0x4d15d4['removeMarker'](_0x5f30ed['name']);break;}}}}if(0x0==_0x4d7f2a['length'])return null;const _0x18936b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a9c94,'join');for(const _0x1db8f6 of this['getSuggestions']()){const _0x108813=_0x1db8f6['data'];if(_0x1db8f6['author']['id']==_0x3a9671['id']&&('formatBlock'==_0x1db8f6['type']&&_0x108813['formatGroupId']==_0x42e4ca['formatGroupId']&&_0x1db8f6['subType']==_0x3a9c94&&oe(_0x1db8f6,_0x21b92b)&&(_0x18936b(_0x1db8f6['getRanges'](),_0x4d7f2a)||_0x18936b(_0x4d7f2a,_0x1db8f6['getRanges']())))){for(const _0x44b8c4 of _0x4d7f2a)_0x1db8f6['addRange'](_0x44b8c4);return _0x1db8f6;}}const _0x1abff6=_0x3caa75(),_0x2e99cf=_0x3a9671['id'],_0x2292f2='formatBlock:'+_0x3a9c94,_0x5913cb=this['_setSuggestionData']({'id':_0x1abff6,'type':_0x2292f2,'data':_0x42e4ca,'createdAt':new Date(),'authorId':_0x2e99cf,'attributes':_0x21b92b});for(const _0x4cfca7 of _0x4d7f2a)this['_addSuggestionMarker'](_0x2292f2,_0x1abff6,_0x2e99cf,_0x4cfca7,R['getMultiRangeId']());return _0x5913cb;}['markDeletion'](_0x31ae08,_0x492294=null,_0x31019e={}){if(_0x31ae08['isCollapsed'])return null;const _0x45faa9=this['editor']['plugins']['get']('Users')['me'],_0x1e8b6f=new _0x3d40b9(_0x31ae08['start'],_0x31ae08['end']);this['_trackingSessionId']&&(_0x31019e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x23a84e,meta:_0x505617}of this['_findSuggestions'](_0x1e8b6f,'insertion'))if(_0x505617['isOwn']&&!_0x505617['isNextTo']){if(_0x23a84e['isMultiRange']){const _0x4f6d5e=_0x23a84e['getRanges']()['filter'](_0x449a32=>'$graveyard'!=_0x449a32['root']['rootName']);_0x4f6d5e['every'](_0x46e391=>_0x1e8b6f['containsRange'](_0x46e391,!0x0))&&_0x23a84e['discard']();if(_0x4f6d5e['some'](_0xd47ee6=>_0xd47ee6['containsRange'](_0x1e8b6f,!0x0))){const _0x43dada=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x492294,'accept');return this['forceDefaultExecution'](()=>_0x43dada([_0x1e8b6f],null,_0x31019e)),null;}}else{const _0x4f32d6=_0x1e8b6f['getIntersection'](_0x23a84e['getFirstRange']());null!==_0x4f32d6&&_0x23a84e['_onDiscard']([_0x4f32d6],null,_0x31019e);}}if(_0x1e8b6f['detach'](),_0x1e8b6f['isCollapsed']||'$graveyard'==_0x1e8b6f['root']['rootName'])return null;let _0x490d0c=null,_0x447fd8=_0x1e8b6f['start'],_0x454851=_0x1e8b6f['end'];const _0x1344f6=this['_findSuggestions'](_0x1e8b6f,'deletion');for(const {suggestion:_0x2c9de7,meta:_0x35a6a0}of _0x1344f6){const _0x45f6cd=this['_model']['createRange'](_0x447fd8,_0x454851);if(_0x35a6a0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x35a6a0['containsRangeInObject']&&!_0x35a6a0['isInsideObject'])){if(_0x2c9de7['isMultiRange']){if(!oe(_0x2c9de7,_0x31019e))continue;let _0x19ab57=!0x0;for(const _0x4260f2 of _0x2c9de7['getRanges']()){if(_0x4260f2['containsRange'](_0x45f6cd,!0x0))return _0x2c9de7;_0x45f6cd['containsRange'](_0x4260f2)||(_0x19ab57=!0x1);}_0x19ab57&&_0x2c9de7['discard']();}else{const _0x188f01=_0x2c9de7['getFirstRange']();if(_0x188f01['containsRange'](_0x45f6cd,!0x0))return _0x2c9de7;if(!oe(_0x2c9de7,_0x31019e)){_0x45f6cd['containsRange'](_0x188f01)?_0x2c9de7['removeMarkers']():_0x188f01['containsPosition'](_0x447fd8)?_0x447fd8=_0x188f01['end']:_0x188f01['containsPosition'](_0x454851)&&(_0x454851=_0x188f01['start']);continue;}_0x447fd8=_0x447fd8['isBefore'](_0x188f01['start'])?_0x447fd8:_0x188f01['start'],_0x454851=_0x454851['isAfter'](_0x188f01['end'])?_0x454851:_0x188f01['end'],_0x31019e=Object['assign']({},_0x2c9de7['attributes']),_0x490d0c?_0x188f01['start']['isBefore'](_0x490d0c['getFirstRange']()['start'])?(_0x490d0c['removeMarkers'](),_0x490d0c=_0x2c9de7):_0x2c9de7['removeMarkers']():_0x490d0c=_0x2c9de7;}}}if(_0x490d0c)return this['_setSuggestionRange'](_0x490d0c,this['_model']['createRange'](_0x447fd8,_0x454851)),_0x490d0c;{const _0x6ad9f7=_0x3caa75(),_0x3532a0=this['_model']['createRange'](_0x447fd8,_0x454851),_0x50216f=_0x45faa9['id'],_0xd4da17=_0x492294?'deletion:'+_0x492294:'deletion',_0x82fc0f=this['_setSuggestionData']({'id':_0x6ad9f7,'type':_0xd4da17,'createdAt':new Date(),'authorId':_0x50216f,'attributes':_0x31019e});return this['_addSuggestionMarker'](_0xd4da17,_0x6ad9f7,_0x50216f,_0x3532a0),_0x82fc0f;}}['markMultiRangeDeletion'](_0x2ef62f,_0x48924d='multi',_0x115ca7={}){const _0x530f28=this['editor']['plugins']['get']('Users')['me'],_0x1bc3da=_0x2ef62f['map'](_0x333fda=>new _0x3d40b9(_0x333fda['start'],_0x333fda['end'])),_0x2a5321=new Set();this['_trackingSessionId']&&(_0x115ca7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x17b2a7,meta:_0x469d2e}of this['_findSuggestions'](_0x1bc3da,'insertion'))_0x469d2e['isOwn']&&!_0x469d2e['isNextTo']&&_0x2a5321['add'](_0x17b2a7);for(const _0x27b352 of _0x2a5321)if(_0x27b352['isMultiRange']){const _0x2f4b6f=_0x27b352['getRanges']();(!_0x27b352['attributes']||!_0x27b352['attributes']['skipNestingCheck'])&&(_0x2f4b6f['every'](_0x20c114=>_0x1bc3da['some'](_0xf973f9=>_0xf973f9['containsRange'](_0x20c114,!0x0)))&&_0x27b352['discard']());if(_0x1bc3da['every'](_0x5b9418=>_0x2f4b6f['some'](_0x58dd5b=>_0x58dd5b['containsRange'](_0x5b9418,!0x0)))){const _0x1debbb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48924d,'accept');return this['forceDefaultExecution'](()=>_0x1debbb(_0x2ef62f,null,_0x115ca7)),null;}}else{const _0x26fcf8=_0x27b352['getFirstRange']();_0x1bc3da['some'](_0x3255ee=>_0x3255ee['containsRange'](_0x26fcf8,!0x0))&&_0x27b352['discard']();if(_0x1bc3da['every'](_0xe941dc=>_0x26fcf8['containsRange'](_0xe941dc,!0x0))){const _0x2c05ae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48924d,'accept');return this['forceDefaultExecution'](()=>_0x2c05ae(_0x1bc3da,null,_0x115ca7)),null;}}const _0x3f9c57=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48924d,'join');let _0x5e7e60=null;for(const _0x1052db of this['getSuggestions']())if(_0x1052db['author']['id']==_0x530f28['id']&&_0x1052db['isInContent']&&'deletion'==_0x1052db['type']&&_0x1052db['subType']==_0x48924d&&oe(_0x1052db,_0x115ca7)&&(_0x3f9c57(_0x1052db['getRanges'](),_0x1bc3da)||_0x3f9c57(_0x1bc3da,_0x1052db['getRanges']()))){if(_0x5e7e60){if(_0x1052db['commentThread']&&_0x1052db['commentThread']['length'])continue;for(const _0x400240 of _0x1052db['getRanges']())_0x5e7e60['isIntersectingWithRange'](_0x400240)||_0x5e7e60['addRange'](_0x400240);_0x1052db['removeMarkers']();}else{_0x5e7e60=_0x1052db;for(const _0x26c467 of _0x1bc3da)_0x1052db['isIntersectingWithRange'](_0x26c467)||_0x1052db['addRange'](_0x26c467);}}if(_0x5e7e60)return _0x5e7e60;_0x2a5321['clear']();for(const {suggestion:_0x16281b,meta:_0x187cc0}of this['_findSuggestions'](_0x1bc3da,'deletion'))_0x187cc0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x187cc0['containsRangeInObject']&&!_0x187cc0['isInsideObject'])&&oe(_0x16281b,_0x115ca7)&&_0x2a5321['add'](_0x16281b);for(const _0x25dc8d of _0x2a5321){const _0x5040c7=_0x25dc8d['getRanges']();if(!_0x115ca7||!_0x115ca7['skipNestingCheck']){if(_0x1bc3da['every'](_0x4bade7=>_0x5040c7['some'](_0x26cf1b=>_0x26cf1b['containsRange'](_0x4bade7,!0x0))))return _0x25dc8d;}(!_0x25dc8d['attributes']||!_0x25dc8d['attributes']['skipNestingCheck'])&&(_0x5040c7['every'](_0x2eb29b=>_0x1bc3da['some'](_0x546674=>_0x546674['containsRange'](_0x2eb29b,!0x0)))&&_0x25dc8d['discard']());}const _0x49c458=_0x3caa75(),_0x24174e=_0x530f28['id'],_0x3763f2='deletion:'+_0x48924d,_0x45a27b=this['_setSuggestionData']({'id':_0x49c458,'type':_0x3763f2,'createdAt':new Date(),'authorId':_0x24174e,'attributes':_0x115ca7});for(const _0x5323e3 of _0x1bc3da)_0x5323e3['detach'](),_0x5323e3['isCollapsed']||'$graveyard'==_0x5323e3['root']['rootName']||this['_addSuggestionMarker'](_0x3763f2,_0x49c458,_0x24174e,_0x5323e3,R['getMultiRangeId']());return _0x45a27b;}['markAttributeChange'](_0x552e24,_0x29a834,_0x198a1c,_0x5b4101,_0x421965){if(_0x552e24['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2504ba=this['editor']['plugins']['get']('Users')['me']['id'],_0x1dc932=Array['from'](this['_suggestions']['values']())['filter'](_0x435b8e=>'attribute'==_0x435b8e['type']&&_0x435b8e['data']['key']==_0x29a834&&_0x435b8e['isIntersectingWithRange'](_0x552e24));if(this['_trackingSessionId']&&(_0x421965['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x167dc0=this['_findSuggestions'](_0x552e24,'insertion')['filter'](({meta:_0x7d7fd8})=>_0x7d7fd8['isOwn']&&!_0x7d7fd8['isInsideObject']&&!_0x7d7fd8['isNextTo'])['map'](({suggestion:_0x2aa14b})=>_0x2aa14b);_0x1dc932['unshift'](..._0x167dc0);}const _0x22416c=new Map([[_0x552e24,_0x198a1c]]);for(const _0x13fff6 of _0x1dc932){const _0x897581='attribute'==_0x13fff6['type']?_0x13fff6['data']['oldValue']:void 0x0,_0x52aee7=_0x13fff6['getFirstRange'](),_0x582c72=Array['from'](_0x22416c['keys']())['find'](_0x236e48=>_0x236e48['isIntersecting'](_0x52aee7));if(!_0x582c72)continue;const _0x562475=_0x582c72['getDifference'](_0x52aee7);this['_isBlockAttribute'](_0x29a834)&&'insertion'==_0x13fff6['type']&&0x0!=_0x562475['length']||(_0x22416c['delete'](_0x582c72),_0x562475['forEach'](_0x376f65=>{_0x22416c['set'](_0x376f65,_0x198a1c);}),'insertion'!=_0x13fff6['type']&&_0x897581!=_0x5b4101&&_0x22416c['set'](_0x582c72['getIntersection'](_0x52aee7),_0x897581));}const _0x210de8=[];for(const [_0x2eed45,_0x1b3e75]of _0x22416c){const _0x525032=_0x3caa75(),_0x519a95={'key':_0x29a834,'oldValue':_0x1b3e75,'newValue':_0x5b4101};_0x29a834['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':_0x29a834});const _0x55c39d=('attribute:'+(_0x29a834+'|'+Qt({'newValue':_0x5b4101})))['substring'](0x0,0x3c),_0x15106f=this['_setSuggestionData']({'id':_0x525032,'type':_0x55c39d,'data':_0x519a95,'createdAt':new Date(),'authorId':_0x2504ba,'attributes':_0x421965});_0x210de8['push'](_0x15106f),this['_addSuggestionMarker'](_0x55c39d,_0x525032,_0x2504ba,_0x2eed45);}return _0x210de8;}['enableDefaultAttributesIntegration'](_0x50de3f){this['enableCommand'](_0x50de3f,(_0xa64f68,..._0x424aed)=>{this['recordAttributeChanges'](()=>{_0xa64f68(..._0x424aed);});});}['registerBlockAttribute'](_0x5e77b0){this['_blockAttributeKeys']['add'](_0x5e77b0);}['registerInlineAttribute'](_0x207321){this['_inlineAttributeKeys']['add'](_0x207321);}['startTrackingSession'](_0x5d024e){return this['_trackingSessionId']=void 0x0!==_0x5d024e?_0x5d024e:_0x3caa75(),this['_trackingSessionId'];}['_getAttributeKey'](_0x450a65){return'attribute'==_0x450a65['type']?ae(_0x450a65['subType']):null;}['_applyOperationsAsSuggestions'](_0x522c50){if(0x0==_0x522c50['length'])return;const _0x4a0ff4=this['editor'],_0x2c27d3=_0x4a0ff4['plugins']['get'](_0x26060f);let _0x3c9efd,_0x5d8b2e=!0x0;for(const _0x4398f7 in _0x522c50[0x0]){const _0x5df374=_0x522c50[0x0][_0x4398f7];if((_0x5df374 instanceof _0x7685d4||_0x5df374 instanceof _0x4e5d4b)&&_0x5df374['root']['is']('documentFragment')){_0x5d8b2e=!0x1,_0x3c9efd=_0x5df374['root'];break;}}_0x4a0ff4['model']['change'](_0x11630d=>{const _0x546fe8=new Set();for(let _0x67d238=0x0;_0x67d238<_0x522c50['length'];_0x67d238++){const _0x3a6acb=_0x522c50[_0x67d238];if(_0x3a6acb['baseVersion']=_0x5d8b2e?_0x4a0ff4['model']['document']['version']:null,_0x3a6acb['isDocumentOperation']=_0x5d8b2e,_0x2c27d3['isMarkedRemoveOperation'](_0x3a6acb)){const _0x3f51a7=te(_0x3a6acb['newRange'],_0x4a0ff4['model']);if(_0x5d8b2e)this['markDeletion'](_0x3f51a7);else{const _0x14ff84='suggestion:deletion:'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x14ff84,_0x3f51a7);}}else switch(_0x3a6acb['type']){case'rename':{const _0x4c8c92=_0x3a6acb['oldName'],_0x4853f2=_0x3a6acb['newName'];if(_0x4c8c92==_0x4853f2)break;_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);const _0x5a3ee3='$elementName',_0x5d0f1f=_0x3a6acb['position'],_0x42424c=_0x4a0ff4['model']['createRange'](_0x5d0f1f,_0x4a0ff4['model']['createPositionAt'](_0x5d0f1f['nodeAfter'],'end'));if(_0x5d8b2e)this['markAttributeChange'](_0x42424c,_0x5a3ee3,_0x4c8c92,_0x4853f2,{'groupId':_0x3caa75()});else{const _0x45a330='suggestion:attribute:'+_0x5a3ee3+':'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x45a330,_0x42424c);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x5683d2=_0x3a6acb['oldValue'],_0x49acd0=_0x3a6acb['newValue'];if(_0x5683d2==_0x49acd0)break;_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);const _0x1cd1d5=_0x3a6acb['key'];if(!this['_isRegisteredAttribute'](_0x1cd1d5))break;const _0x3202c6=te(_0x3a6acb['range'],_0x4a0ff4['model']);if(_0x5d8b2e)this['markAttributeChange'](_0x3202c6,_0x1cd1d5,_0x5683d2,_0x49acd0,{'groupId':_0x3caa75()});else{const _0x48712a='suggestion:attribute:'+_0x1cd1d5+':'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x48712a,_0x3202c6);}break;}case'insert':{_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);const _0x13250c=_0x522c50[_0x67d238+0x1]&&'move'==_0x522c50[_0x67d238+0x1]['type'];if(!_0x5d8b2e&&_0x13250c&&ce(_0x3c9efd,_0x3a6acb),_0x13250c)break;const _0x2ad56d=_0x3a6acb['position'],_0x3efd76=_0x3a6acb['howMany'],_0x458bab=te(_0x4a0ff4['model']['createRange'](_0x2ad56d,_0x2ad56d['getShiftedBy'](_0x3efd76)),_0x4a0ff4['model']);if(_0x5d8b2e)this['markInsertion'](_0x458bab);else{const _0xf9503e='suggestion:insertion:'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0xf9503e,_0x458bab);}break;}case'split':{_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);const _0x1b4b22=_0x3a6acb['splitPosition'],_0x1be8e=_0x3a6acb['moveTargetPosition'],_0x257908=_0x4a0ff4['model']['createRange'](_0x1b4b22,_0x1be8e);if(_0x5d8b2e)this['markInsertion'](_0x4a0ff4['model']['createRange'](_0x1b4b22,_0x1be8e));else{const _0x2874e3='suggestion:insertion:'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x2874e3,_0x257908);}break;}case'move':if(_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb),!_0x5d8b2e&&_0x522c50[_0x67d238-0x1]&&'insert'==_0x522c50[_0x67d238-0x1]['type']&&ce(_0x3c9efd,_0x3a6acb),!_0x5d8b2e){const _0x2dd983=_0x3a6acb['getMovedRangeStart'](),_0x32f793=_0x3a6acb['howMany'];for(let _0xee6923=0x0;_0xee6923<_0x32f793;_0xee6923++){const _0x2383e3=_0x2dd983['getShiftedBy'](_0xee6923)['nodeAfter'];_0x546fe8['add'](_0x2383e3);}}break;case'remove':if(_0x5d8b2e)_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);else{const _0x4b6127=_0x3a6acb['sourcePosition'],_0x22326f=_0x3a6acb['howMany'],_0x1f306f=new _0x2a730d(_0x4b6127,_0x22326f);_0x11630d['batch']['addOperation'](_0x1f306f),_0x4a0ff4['model']['applyOperation'](_0x1f306f);}}}for(const _0x49b105 of _0x546fe8){const _0x2ad6b1=_0x4a0ff4['model']['createRangeOn'](_0x49b105),_0x12ac53='suggestion:formatBlock:$fakeWrap:'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x12ac53,te(_0x2ad6b1,_0x4a0ff4['model']));}});}['_setSuggestionRange'](_0x142850,_0x53649f){const _0x5047b8=_0x142850['getFirstMarker']();this['_model']['change'](_0xabb34=>{_0xabb34['updateMarker'](_0x5047b8,{'range':_0x53649f});});}['_addThreadToSuggestion'](_0x43bc5e){const _0x2a45f4=_0x43bc5e['id'],_0x5bc942=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2a45f4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5bc942,'threadId':_0x2a45f4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x272ef4=this['_commentsRepository']['getCommentThread'](_0x2a45f4);_0x272ef4['unbind']('isRemovable'),_0x272ef4['isRemovable']=!0x1,_0x43bc5e['commentThread']=_0x272ef4;}['_checkSuggestionCorrectness'](_0x3989c0,_0x11cdcf,_0x329c63,_0x273d4d){if(_0x3989c0['type']!=_0x11cdcf||_0x3989c0['subType']!=_0x329c63||_0x3989c0['creator']['id']!=_0x273d4d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5a4829('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x40ec1c,_0xe668b0){const _0x5fc325=_0x40ec1c['getFirstRange']();if(_0xe668b0['isEqual'](_0x5fc325))_0x40ec1c['removeMarkers']();else{if(_0x5fc325['containsRange'](_0xe668b0)){const _0x325d90=this['_model']['createPositionAt'](_0xe668b0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40ec1c,this['_model']['createRange'](_0x5fc325['start'],_0x325d90));const _0x58a81e=_0x3caa75(),_0x3be0fb=_0x40ec1c['creator']['id'],_0x2a7eb0=_0x40ec1c['type']+':'+_0x40ec1c['subType'];this['_setSuggestionData']({'id':_0x58a81e,'type':_0x2a7eb0,'createdAt':new Date(),'authorId':_0x3be0fb,'data':_0x40ec1c['data'],'attributes':_0x40ec1c['attributes']});const _0x31e18a=this['_model']['createPositionAt'](_0xe668b0['end']['parent'],'after'),_0x19ba6e=this['_model']['createRange'](_0x31e18a,_0x5fc325['end']);this['_addSuggestionMarker'](_0x2a7eb0,_0x58a81e,_0x3be0fb,_0x19ba6e);}else{if(_0x5fc325['containsPosition'](_0xe668b0['start'])){const _0x5ba514=this['_model']['createPositionAt'](_0xe668b0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40ec1c,this['_model']['createRange'](_0x5fc325['start'],_0x5ba514));}else{const _0x128b3e=this['_model']['createPositionAt'](_0xe668b0['end']['parent'],'after');this['_setSuggestionRange'](_0x40ec1c,this['_model']['createRange'](_0x128b3e,_0x5fc325['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2f7655){for(const {suggestion:_0x276543,meta:_0x31e533}of this['_findSuggestions'](_0x2f7655,'insertion')){if(!_0x31e533['isOwn'])continue;const _0x39d130=_0x276543['getRanges']();for(const _0x5c45ea of _0x39d130)if(!_0x2f7655['getDifference'](_0x5c45ea)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x16fcb8){return this['editor']['plugins']['get']('Users')['getUser'](_0x16fcb8);}['_getExternalAuthor'](_0x1e3d6f){const _0x28a3a2=this['editor']['plugins']['get']('Users'),_0x4dd820=_0x5e961d('external:'+_0x1e3d6f),_0x32fc82=_0x28a3a2['getUser'](_0x4dd820);return _0x32fc82||_0x28a3a2['addUser']({'id':_0x4dd820,'name':_0x1e3d6f});}['_createSuggestion'](_0x5354c9,_0x1250c3,_0x488dde,_0x28ce16,_0x5b33da,_0x7819f0){const _0x540e9f=this['_getAuthorFromId'](_0x28ce16);if(!_0x540e9f)throw new _0x5a4829('track-changes-user-not-found',this,{'authorId':_0x28ce16,'suggestionId':_0x488dde});const _0x197d27=this['_suggestionFactory']['buildSuggestion'](_0x5354c9,_0x1250c3,_0x488dde,_0x540e9f,_0x5b33da,_0x5dd741=>{this['_updateSuggestionData'](_0x488dde,{'attributes':_0x5dd741});const _0x38d26e=this['getSuggestion'](_0x488dde);this['_joinWithAdjacentSuggestions'](new Set([_0x38d26e])),this['_refreshSuggestionsChain'](new Set([_0x38d26e]));},_0x7819f0);return this['listenTo'](_0x197d27,'accept',()=>{this['_updateSuggestionData'](_0x488dde,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x197d27,'discard',()=>{this['_updateSuggestionData'](_0x488dde,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x488dde,_0x197d27),this['_suggestionState']['set'](_0x197d27,'notReady'),_0x197d27;}['_splitMarkerName'](_0x3b0293){const _0x20036c=_0x3b0293['split'](':');return{'group':_0x20036c[0x0],'type':_0x20036c[0x1],'subType':_0x20036c['length']>=0x5?_0x20036c[0x2]:null,'id':_0x20036c['length']<0x5?_0x20036c[0x2]:_0x20036c[0x3],'authorId':_0x20036c['length']<0x5?_0x20036c[0x3]:_0x20036c[0x4],'markerCount':0x6==_0x20036c['length']?_0x20036c[0x5]:null};}['_breakSuggestionMarker'](_0x49aa40,_0x10a344,_0x47bd27){const _0x1bea4a=_0x49aa40['getFirstRange'](),_0x48392b=_0x1bea4a['start'],_0x3b459e=_0x1bea4a['end'];this['_setSuggestionRange'](_0x49aa40,this['_model']['createRange'](_0x48392b,_0x10a344));const _0x13aceb=_0x3caa75(),_0x5ba9a8=_0x49aa40['creator']['id'],_0x482dea=_0x49aa40['type']+(_0x49aa40['subType']?':'+_0x49aa40['subType']:'');this['_setSuggestionData']({'id':_0x13aceb,'type':_0x482dea,'createdAt':new Date(),'authorId':_0x5ba9a8,'originalSuggestionId':_0x49aa40['_originalSuggestionId']||_0x49aa40['id'],'attributes':_0x49aa40['attributes'],'data':_0x49aa40['data']});const _0x44aca8=this['_getAttributeKey'](_0x49aa40);('formatBlock'==_0x49aa40['type']||_0x44aca8&&this['_isBlockAttribute'](_0x44aca8))&&(_0x47bd27=this['_model']['createPositionBefore'](_0x47bd27['parent'])),this['_addSuggestionMarker'](_0x482dea,_0x13aceb,_0x5ba9a8,this['_model']['createRange'](_0x47bd27,_0x3b459e));}['_findSuggestions'](_0x9bdaca,_0x38bf16=null){const _0xdf07dd=[],_0x164594=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x9bdaca)||(_0x9bdaca=[_0x9bdaca]);for(const _0x1c9124 of this['getSuggestions']()){if(!_0x1c9124['isInContent'])continue;if(_0x38bf16&&_0x1c9124['type']!=_0x38bf16)continue;let _0x26c78d=!0x1;for(const _0x203f3b of _0x1c9124['getRanges']()){for(const _0x19cfee of _0x9bdaca){const _0xf50833=_0x19cfee['start']['isEqual'](_0x203f3b['end'])||_0x19cfee['end']['isEqual'](_0x203f3b['start']);if(_0xf50833||_0x19cfee['getIntersection'](_0x203f3b)){const _0x3796d1=_0x19cfee['containsRange'](_0x203f3b)&&Ht(this['_model']['schema'],_0x203f3b['start'],_0x19cfee),_0x3f22d6=_0x203f3b['containsRange'](_0x19cfee)&&Ht(this['_model']['schema'],_0x19cfee['start'],_0x203f3b);_0xdf07dd['push']({'suggestion':_0x1c9124,'meta':{'isOwn':_0x164594==_0x1c9124['author'],'isNextTo':_0xf50833,'isInsideObject':_0x3796d1,'containsRangeInObject':_0x3f22d6}}),_0x26c78d=!0x0;break;}}if(_0x26c78d)break;}}return _0xdf07dd;}['_addSuggestionMarker'](_0x2ee082,_0x1a4dd4,_0x3ce5cc,_0x3d91e9,_0x27de17){this['_model']['change'](_0x1bf021=>{let _0x3f86e0='suggestion:'+_0x2ee082+':'+_0x1a4dd4+':'+_0x3ce5cc;_0x27de17&&(_0x3f86e0=_0x3f86e0+':'+_0x27de17),_0x1bf021['addMarker'](_0x3f86e0,{'range':_0x3d91e9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xfcbe07){const _0x57a725=_0xfcbe07['previous'],_0x35a86a=_0xfcbe07['next'];_0xfcbe07['previous']=null,_0xfcbe07['next']=null,null!=_0x57a725&&_0x57a725['next']==_0xfcbe07&&(_0x57a725['next']=_0x35a86a),null!=_0x35a86a&&_0x35a86a['previous']==_0xfcbe07&&(_0x35a86a['previous']=_0x57a725),'ready'==this['_suggestionState']['get'](_0xfcbe07)&&(this['_suggestionState']['set'](_0xfcbe07,'removed'),this['fire']('suggestionUnloaded',_0xfcbe07,_0x57a725,_0x35a86a));}['_setSuggestionData'](_0x2cee63){const _0x5df317=_0x2cee63['id'],_0x30a431=this['addSuggestionData'](_0x2cee63);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x59d55f=this['editor']['plugins']['get']('PendingActions'),_0x45f173=_0x30a431['hasComments'],_0x1a1730=_0x30a431['subType']?_0x30a431['type']+':'+_0x30a431['subType']:_0x30a431['type'],_0xe1ef9a=this['editor']['locale'],_0x7c89ad=_0x59d55f['add'](o(_0xe1ef9a,'PENDING_ACTION_SUGGESTION')),_0x9faf23={'id':_0x5df317,'type':_0x1a1730,'hasComments':_0x45f173,'data':_0x2cee63['data']||null,'originalSuggestionId':_0x2cee63['originalSuggestionId']||null,'attributes':_0x30a431['attributes']};this['_adapter']['addSuggestion'](_0x9faf23)['then'](_0x18821c=>{_0x30a431['_saved']=!0x0,_0x59d55f['remove'](_0x7c89ad),_0x18821c&&_0x18821c['createdAt']&&(this['_suggestions']['get'](_0x5df317)['createdAt']=_0x18821c['createdAt']);})['catch'](_0x2f857b=>{throw _0xc9df51('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x30a431['discard']();}),_0x30a431['stopListening'](),this['_suggestions']['delete'](_0x30a431['id']),this['_suggestionState']['delete'](_0x30a431),_0x2f857b;});}return _0x30a431;}['_isBlockAttribute'](_0x3d3fe0){return this['_blockAttributeKeys']['has'](_0x3d3fe0);}['_isInlineAttribute'](_0x452156){return this['_inlineAttributeKeys']['has'](_0x452156);}['_updateSuggestionData'](_0x379e27,_0x4607cd){const _0x428ea5=this['editor']['plugins']['get']('PendingActions'),_0x28623a=this['getSuggestion'](_0x379e27);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x28623a['_saved']){const _0x5e016c=_0x428ea5['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x379e27,_0x4607cd)['then'](()=>{_0x428ea5['remove'](_0x5e016c);});}else _0x28623a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x379e27,_0x4607cd);});}}['_getSuggestionData'](_0x381ece){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5a4829('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x381ece);}['_handleNewSuggestionMarker'](_0x3ea535){const {id:_0x1c0a43,type:_0x3132e3,subType:_0x563ea8,authorId:_0xed9ad6}=this['_splitMarkerName'](_0x3ea535),_0x20d567=this['_suggestions']['get'](_0x1c0a43)||this['_createSuggestion'](_0x3132e3,_0x563ea8,_0x1c0a43,_0xed9ad6,{});switch(this['_checkSuggestionCorrectness'](_0x20d567,_0x3132e3,_0x563ea8,_0xed9ad6),this['_suggestionState']['get'](_0x20d567)){case'notReady':this['_getSuggestionData'](_0x1c0a43)['then'](_0x91bb29=>{let _0x237256=Promise['resolve']();_0x91bb29['hasComments']&&(_0x237256=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1c0a43})),_0x237256['then'](()=>{this['addSuggestionData'](_0x91bb29)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x20d567,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1c0a43,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x20d567,'ready'),this['fire']('suggestionLoaded',_0x20d567);break;case'ready':this['fire']('suggestionChanged',_0x20d567);}return _0x20d567['addMarkerName'](_0x3ea535),_0x20d567;}['_refreshSuggestionsChain'](_0x26ba39){const _0x523d75=Array['from'](_0x26ba39),_0x2cc96a=_0x523d75['filter'](_0x5e531d=>'attribute'==_0x5e531d['type']);this['_refreshAttributeSuggestionsChain'](_0x2cc96a);const _0x2b28a5=_0x523d75['filter'](_0x1591c4=>!_0x1591c4['isMultiRange']&&'attribute'!=_0x1591c4['type']),_0x1c7247=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ba3c1=>!_0x4ba3c1['isMultiRange']&&'attribute'!=_0x4ba3c1['type']),_0x157d3e=_0x1c7247['filter'](_0x17bf61=>!_0x26ba39['has'](_0x17bf61)),_0x321f82=new Map(_0x1c7247['map'](_0x3e3b30=>[_0x3e3b30,this['_suggestionFactory']['getSuggestionCallback'](_0x3e3b30['type'],_0x3e3b30['subType'],'chain')])),_0x133537=new Map(_0x1c7247['map'](_0x41451f=>[_0x41451f,_0x41451f['getFirstRange']()])),_0x3e8780=new Set(),_0x2263b9=new Set();for(let _0x218861=0x0;_0x218861<_0x2b28a5['length'];_0x218861++)_0x29be3e(_0x2b28a5[_0x218861],_0x2b28a5,_0x218861+0x1);for(let _0x24824b=0x0;_0x24824b<_0x2b28a5['length'];_0x24824b++)_0x29be3e(_0x2b28a5[_0x24824b],_0x157d3e,0x0);const _0x32cfd6=new Set();for(let _0x19ccf8=0x0;_0x19ccf8<_0x2b28a5['length'];_0x19ccf8++){const _0x388de2=_0x2b28a5[_0x19ccf8];!_0x2263b9['has'](_0x388de2)&&_0x388de2['previous']&&(_0x32cfd6['add'](_0x388de2['previous']),_0x388de2['previous']['next']===_0x388de2&&(_0x388de2['previous']['next']=null),_0x388de2['previous']=null),!_0x3e8780['has'](_0x388de2)&&_0x388de2['next']&&(_0x32cfd6['add'](_0x388de2['next']),_0x388de2['next']['previous']===_0x388de2&&(_0x388de2['next']['previous']=null),_0x388de2['next']=null);}function _0x29be3e(_0x3209c1,_0xd60935,_0x27689b){for(let _0x1b02fc=_0x27689b;_0x1b02fc<_0xd60935['length'];_0x1b02fc++){const _0x1bc790=_0x11a35e(_0x3209c1,_0xd60935[_0x1b02fc]);_0x1bc790&&(_0x1bc790[0x0]['next']=_0x1bc790[0x1],_0x1bc790[0x1]['previous']=_0x1bc790[0x0],_0x3e8780['add'](_0x1bc790[0x0]),_0x2263b9['add'](_0x1bc790[0x1]));}}function _0x11a35e(_0x4488c6,_0x4e3f4d){if(_0x4488c6['author']['id']!==_0x4e3f4d['author']['id'])return null;const _0x27c832=_0x321f82['get'](_0x4488c6)(_0x4488c6,_0x4e3f4d,_0x133537['get'](_0x4488c6),_0x133537['get'](_0x4e3f4d));if(!_0x27c832)return null;return _0x321f82['get'](_0x4e3f4d)(_0x4488c6,_0x4e3f4d,_0x133537['get'](_0x4488c6),_0x133537['get'](_0x4e3f4d))?_0x27c832[0x1]['commentThread']&&_0x27c832[0x1]['commentThread']['length']?null:_0x27c832:null;}_0x32cfd6['size']&&this['_refreshSuggestionsChain'](_0x32cfd6);}['_refreshAttributeSuggestionsChain'](_0x93e2ac){if(0x0==_0x93e2ac['length'])return;const _0x1791bd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2eb157=>'attribute'==_0x2eb157['type']&&_0x2eb157['_isDataLoaded']),_0x42ae3e=[],_0x1372a3=new Map();for(const _0x12bead of _0x1791bd){const _0x1fe375=_0x5e961d(_0x12bead['attributes']);_0x1372a3['has'](_0x1fe375)||(_0x1372a3['set'](_0x1fe375,_0x42ae3e['length']),_0x42ae3e['push']([]));const _0x2e9121=_0x1372a3['get'](_0x1fe375);_0x42ae3e[_0x2e9121]['push'](_0x12bead);}!(function(){_0x42ae3e['sort']((_0x4c9e81,_0x11c765)=>{const _0xf6632=_0x4c9e81[0x0]['createdAt'],_0x40e69a=_0x11c765[0x0]['createdAt'];return _0xf6632==_0x40e69a?_0x4c9e81[0x0]['attributes']['groupId']<_0x11c765[0x0]['attributes']['groupId']?-0x1:0x1:_0xf6632<_0x40e69a?-0x1:0x1;});for(const _0x493328 of _0x42ae3e)_0x493328['sort']((_0x3ba672,_0xf6716f)=>_0x3ba672['id']<_0xf6716f['id']?-0x1:0x1);}());for(let _0x54f5b0=0x0;_0x54f5b0<_0x42ae3e['length'];_0x54f5b0++){if(0x0==_0x42ae3e[_0x54f5b0]['length'])continue;const _0x2ccbf8=[];for(let _0x16c97e=_0x54f5b0+0x1;_0x16c97e<_0x42ae3e['length'];_0x16c97e++)0x0!=_0x42ae3e[_0x16c97e]['length']&&_0x196694(_0x42ae3e[_0x54f5b0],_0x42ae3e[_0x16c97e])&&_0x2ccbf8['push'](_0x16c97e);for(const _0x266e62 of _0x2ccbf8)_0x42ae3e[_0x54f5b0]=_0x42ae3e[_0x54f5b0]['concat'](_0x42ae3e[_0x266e62]),_0x42ae3e[_0x266e62]=[];}for(const _0x52a154 of _0x42ae3e)for(let _0x2a38b0=0x0;_0x2a38b0<_0x52a154['length'];_0x2a38b0++){const _0x442a66=_0x52a154[_0x2a38b0+0x1]||null;_0x52a154[_0x2a38b0]['next']!==_0x442a66&&(_0x52a154[_0x2a38b0]['next']=_0x442a66);}for(const _0x4486bd of _0x42ae3e)for(let _0x3a1099=0x0;_0x3a1099<_0x4486bd['length'];_0x3a1099++){const _0x128fc3=_0x4486bd[_0x3a1099-0x1]||null;_0x4486bd[_0x3a1099]['previous']!==_0x128fc3&&(_0x4486bd[_0x3a1099]['previous']=_0x128fc3);}function _0x196694(_0x2c8cfb,_0x3773a7){if(_0x2c8cfb[0x0]['attributes']['groupId']!==_0x3773a7[0x0]['attributes']['groupId']&&_0x2c8cfb[0x0]['author']!==_0x3773a7[0x0]['author'])return!0x1;if(!function(_0x3c1989,_0x144d09){if(!_0x3c1989['hasComments']&&!_0x144d09['hasComments'])return!0x0;if(_0x3c1989['hasComments']&&_0x144d09['hasComments'])return!0x1;if(_0x3c1989['hasComments']&&_0x144d09['createdAt']<_0x3c1989['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x144d09['hasComments']&&_0x3c1989['createdAt']<_0x144d09['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2c8cfb[0x0],_0x3773a7[0x0]))return!0x1;const _0x2e040e=Kt(_0x2c8cfb[0x0]['attributes'],['groupId','trackingSessionId']),_0x3c9f65=Kt(_0x3773a7[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5578d7(_0x2e040e,_0x3c9f65))return!0x1;if(_0x2c8cfb[0x0]['attributes']['groupId']==_0x3773a7[0x0]['attributes']['groupId'])return!0x0;if(_0x2c8cfb[0x0]['attributes']['trackingSessionId']!==_0x3773a7[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2c8cfb['every'](_0x37c341=>_0x3773a7['some'](_0x5ef3cd=>_0x37c341['getFirstRange']()['isEqual'](_0x5ef3cd['getFirstRange']())))&&_0x3773a7['every'](_0x2e6d79=>_0x2c8cfb['some'](_0x23b841=>_0x2e6d79['getFirstRange']()['isEqual'](_0x23b841['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1fc384){const _0x426f55=Array['from'](_0x1fc384),_0x2f470c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x24ba9d=_0x2f470c['filter'](_0x4ddb0e=>!_0x1fc384['has'](_0x4ddb0e)),_0x502e82=new Map(_0x426f55['map'](_0xb1b2b1=>[_0xb1b2b1,this['_suggestionFactory']['getSuggestionCallback'](_0xb1b2b1['type'],_0xb1b2b1['subType'],'join')])),_0x57e7ae=new Map(_0x2f470c['map'](_0x4e9be6=>[_0x4e9be6,_0x4e9be6['getRanges']()]));for(let _0x3f91e4=0x0;_0x3f91e4<_0x426f55['length'];_0x3f91e4++){if(_0x1bd0dc(this,_0x426f55[_0x3f91e4],_0x426f55,_0x3f91e4+0x1))return!0x0;}for(let _0x3fb03f=0x0;_0x3fb03f<_0x426f55['length'];_0x3fb03f++){if(_0x1bd0dc(this,_0x426f55[_0x3fb03f],_0x24ba9d,0x0))return!0x0;}return!0x1;function _0x1bd0dc(_0x388919,_0x450d6b,_0x421142,_0x2502ca){for(let _0xbe6a53=_0x2502ca;_0xbe6a53<_0x421142['length'];_0xbe6a53++){const _0x4c831a=_0x421142[_0xbe6a53];if(_0x4c831a['type']!==_0x450d6b['type']||_0x4c831a['author']['id']!==_0x450d6b['author']['id']||_0x4c831a['subType']!==_0x450d6b['subType'])continue;if(!se(_0x450d6b,_0x4c831a))continue;if('attribute'==_0x450d6b['type']&&_0x450d6b['data']['oldValue']!=_0x4c831a['data']['oldValue'])continue;if('attribute'==_0x450d6b['type']&&_0x388919['_isBlockAttribute'](_0x450d6b['data']['key']))continue;if('formatBlock'==_0x450d6b['type']){const _0x3a0d38=_0x388919['editor']['model'],_0x26f725=_0x450d6b['getContainedElement']();if(_0x26f725&&(_0x3a0d38['schema']['isObject'](_0x26f725)||_0x3a0d38['schema']['isLimit'](_0x26f725)))continue;}const _0x36039b=_0x502e82['get'](_0x450d6b),_0x3f8814=_0x57e7ae['get'](_0x450d6b),_0x5aec5a=_0x57e7ae['get'](_0x4c831a),_0x31251d=_0x450d6b['commentThread']&&_0x450d6b['commentThread']['length'],_0x445a0f=_0x4c831a['commentThread']&&_0x4c831a['commentThread']['length'];if(!_0x31251d&&_0x36039b(_0x5aec5a,_0x3f8814))return _0x388919['_joinSuggestions'](_0x4c831a,_0x450d6b),_0x57e7ae['delete'](_0x450d6b),!0x0;if(!_0x445a0f&&_0x36039b(_0x3f8814,_0x5aec5a))return _0x388919['_joinSuggestions'](_0x450d6b,_0x4c831a),_0x57e7ae['delete'](_0x4c831a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x388003,_0x202248){if(_0x388003['isMultiRange']){for(const _0x4de867 of _0x202248['getRanges']())_0x388003['addRange'](_0x4de867);}else{const _0x3f1af0=_0x202248['getFirstRange']()['end'];this['_setSuggestionRange'](_0x388003,this['_model']['createRange'](_0x388003['getFirstRange']()['start'],_0x3f1af0));}_0x202248['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1c20b5,_0x125cf8,_0x590cfc){const _0xd9eaa8=_0x1c20b5['startsWith']('format')||_0x1c20b5['startsWith']('attribute')?'FORMATTING':_0x1c20b5['toUpperCase']();return o(this['editor']['locale'],_0x125cf8+'_'+_0xd9eaa8+'_SUGGESTION_ANNOUNCEMENT',_0x590cfc);}['_initAriaMarkerChangeAnnouncements'](){const _0x1528f2=this['editor'];if(!_0x1528f2['ui'])return;const {ariaLiveAnnouncer:_0x1ad0d1}=_0x1528f2['ui'];_0x21fdb7(this['_model'],({left:_0x5d6792,entered:_0x2bfdf2})=>{for(const _0x5163a5 of _0x5d6792){const {group:_0x122ae9,type:_0x5899ab}=this['_splitMarkerName'](_0x5163a5['name']);if('suggestion'===_0x122ae9){_0x1ad0d1['announce'](this['_getMarkerAnnouncementText'](_0x5899ab,'LEAVE'));break;}}for(const _0x203f9f of _0x2bfdf2){const {group:_0x29d6cb,type:_0x501595}=this['_splitMarkerName'](_0x203f9f['name']);if('suggestion'===_0x29d6cb){_0x1ad0d1['announce'](this['_getMarkerAnnouncementText'](_0x501595,'ENTER',_0x5e22ae(_0x47d113)));break;}}});}['_processAttributeChanges'](_0x5bc5d3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x24e3cd=this['editor'],_0x456561=_0x24e3cd['model']['document']['differ']['getChanges']();if(0x0==_0x456561['length'])return!0x1;const _0x3da029=[],_0x360b77=_0x456561['filter'](_0x2b7ceb=>'attribute'==_0x2b7ceb['type']),_0x7b11b3=_0x456561['filter'](_0x562052=>'insert'==_0x562052['type']&&'$text'!=_0x562052['name']),_0x3506c3=_0x456561['filter'](_0x49b43d=>'remove'==_0x49b43d['type']&&'$text'!=_0x49b43d['name']);for(const _0x153a6e of _0x360b77)_0x3da029['push']({'key':_0x153a6e['attributeKey'],'newValue':_0x153a6e['attributeNewValue'],'oldValue':_0x153a6e['attributeOldValue'],'range':ee(_0x153a6e['range'],_0x24e3cd['model'])});for(const _0x935139 of _0x7b11b3){const _0x39d62d=_0x3506c3['find'](_0x120be3=>_0x120be3['position']['isEqual'](_0x935139['position']));_0x39d62d&&_0x3da029['push']({'key':m,'newValue':_0x935139['name'],'oldValue':_0x39d62d['name'],'range':_0x24e3cd['model']['createRangeOn'](_0x935139['position']['nodeAfter'])});}return 0x0!=_0x3da029['length']&&this['_reduceExistingSuggestions'](_0x5bc5d3,_0x3da029);}['_processAttributeSuggestions'](_0x29833b){let _0x3bee12=!0x1;const _0x599ee0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x16dbfc=>_0x16dbfc['data']['newRange']&&_0x16dbfc['name']['startsWith']('suggestion:attribute:'));for(const _0x2d17f2 of _0x599ee0){const {subType:_0x1de084,id:_0x38cc0a}=this['_splitMarkerName'](_0x2d17f2['name']),_0x9d215e=_0x1de084['split']('|')[0x0];for(const _0x65093e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x65093e['id']!=_0x38cc0a&&'attribute'==_0x65093e['type']&&_0x65093e['data']&&_0x65093e['data']['key']==_0x9d215e&&_0x65093e['getFirstRange']()['isIntersecting'](_0x2d17f2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x65093e,_0x2d17f2['data']['newRange'],_0x29833b),_0x3bee12=!0x0);}return _0x3bee12;}['recordAttributeChanges'](_0xe7a3e5){this['_recordAttributeSuggestions']=!0x0,_0xe7a3e5();}['_isRegisteredAttribute'](_0x45c559){const _0x248c72=this['_isBlockAttribute'](_0x45c559),_0x5287e3=this['_isInlineAttribute'](_0x45c559);return _0x248c72||_0x5287e3;}['_reduceExistingSuggestions'](_0x4d7ce9,_0x50b2a2){if(0x0==_0x50b2a2['length'])return!0x1;let _0x2b3389=!0x1;for(const _0x38559a of _0x50b2a2){const _0x5438a6=this['_findSuggestions'](_0x38559a['range'],'attribute')['filter'](_0x22ac02=>!_0x22ac02['meta']['isNextTo'])['map'](_0x661c22=>_0x661c22['suggestion']),_0x1863da=_0x5e961d({'newValue':_0x38559a['newValue']});_0x5438a6['filter'](_0x3954ca=>{const [_0x1b3144,_0x4bba2e]=_0x3954ca['subType']['split']('|');return _0x1b3144==_0x38559a['key']&&_0x4bba2e!=_0x1863da;})['forEach'](_0x1f70c7=>{this['_reduceSuggestionAttributeRange'](_0x1f70c7,_0x38559a['range'],_0x4d7ce9),_0x2b3389=!0x0;});}return _0x2b3389;}['_reduceSuggestionAttributeRange'](_0x1b0acc,_0x330ceb,_0x3c67be){const _0x114d87=_0x1b0acc['getFirstRange']()['getDifference'](_0x330ceb);0x0!==_0x114d87['length']?0x1!==_0x114d87['length']?this['_breakSuggestionMarker'](_0x1b0acc,_0x330ceb['start'],_0x330ceb['end']):this['_setSuggestionRange'](_0x1b0acc,_0x114d87[0x0]):_0x3c67be['removeMarker'](_0x1b0acc['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4a424d){this['_editor']=_0x4a424d,this['_model']=_0x4a424d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x58c36e,_0x5b0f08,_0x1519eb,_0x260a67,_0x122b6a,_0x505a1f,_0x213694){return new R(this['_model'],{'type':_0x58c36e,'subType':_0x5b0f08,'id':_0x1519eb,'originalSuggestionId':_0x213694,'author':_0x260a67,'creator':_0x260a67,'attributes':_0x122b6a,'onAttributesChange':_0x505a1f,'onAccept':(..._0x1c0e74)=>this['getSuggestionCallback'](_0x58c36e,_0x5b0f08,'accept')(..._0x1c0e74),'onDiscard':(..._0x323820)=>this['getSuggestionCallback'](_0x58c36e,_0x5b0f08,'discard')(..._0x323820)});}['registerCustomCallback'](_0x3462b5,_0x39aeef,_0x5d2bd6,_0xcfe5c6){const _0x18cc91=_0x3462b5+':'+_0x39aeef+':'+_0x5d2bd6;this['_customCallbacks']['set'](_0x18cc91,_0xcfe5c6);}['getSuggestionCallback'](_0x400352,_0x363a57,_0x4bad5f){const _0x5339ea=_0x400352+':'+_0x363a57+':'+_0x4bad5f;return this['_customCallbacks']['get'](_0x5339ea)||this['_defaultCallbacks']['get'](_0x400352+':'+_0x4bad5f);}['_registerDefaultCallbacks'](){const _0x187d07=()=>!0x1,_0x552ab5=_0x44de4e=>{_0x44de4e['sort']((_0x3ff49b,_0x1346af)=>_0x3ff49b['start']['isBefore'](_0x1346af['start'])?0x1:-0x1),this['_model']['change'](_0x1c1955=>{for(const _0x50dea2 of _0x44de4e){let _0x40ff19;_0x40ff19=_0x50dea2['end']['isAtEnd']&&_0x50dea2['end']['parent']==_0x50dea2['start']['nodeAfter']?_0x1c1955['createSelection'](_0x50dea2['start']['nodeAfter'],'on'):_0x1c1955['createSelection'](_0x50dea2),this['_model']['deleteContent'](_0x40ff19,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4c0ead=(_0x3cafa9,_0x279545)=>{_0x279545&&this['_model']['change'](_0x295749=>{const {commandName:_0x37b494,commandParams:_0x29e08b=[]}=_0x279545,_0x39191c=_0x3cafa9['map'](_0x51cf7d=>(Wt(_0x51cf7d)&&(_0x51cf7d=this['_model']['createRange'](_0x51cf7d['end'])),_0x51cf7d))['filter'](_0x47e9dd=>'$graveyard'!==_0x47e9dd['root']['rootName']);if(_0x39191c['length']<0x1)return;const _0x3c1844=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xc4055d=>_0x3d40b9['fromRange'](_0xc4055d));_0x295749['setSelection'](_0x39191c);for(const _0xe466da of this['_editor']['commands']['commands']())_0xe466da['refresh']();_0x29e08b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x37b494,..._0x29e08b);const _0x1fb4f8=_0x3c1844['filter'](_0xc95579=>'$graveyard'!=_0xc95579['root']['rootName']);_0x1fb4f8['length']>0x0&&_0x295749['setSelection'](_0x1fb4f8);for(const _0xface6f of _0x3c1844)_0xface6f['detach']();});},_0x12e4bd=(_0x29ddb0,_0x16bbdd)=>0x1==_0x29ddb0['length']&&0x1==_0x16bbdd['length']&&_0x29ddb0[0x0]['end']['isEqual'](_0x16bbdd[0x0]['start']),_0x3db565=(_0x28ba69,_0x3064b2,_0x5075fc,_0x548c56)=>ne(_0x28ba69,_0x3064b2,_0x5075fc,_0x548c56)?[_0x28ba69,_0x3064b2]:ne(_0x3064b2,_0x28ba69,_0x548c56,_0x5075fc)?[_0x3064b2,_0x28ba69]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x187d07),this['_defaultCallbacks']['set']('insertion:discard',_0x552ab5),this['_defaultCallbacks']['set']('insertion:join',_0x12e4bd),this['_defaultCallbacks']['set']('insertion:chain',_0x3db565),this['_defaultCallbacks']['set']('deletion:accept',_0x552ab5),this['_defaultCallbacks']['set']('deletion:discard',_0x187d07),this['_defaultCallbacks']['set']('deletion:join',_0x12e4bd),this['_defaultCallbacks']['set']('deletion:chain',_0x3db565),this['_defaultCallbacks']['set']('formatInline:accept',_0x4c0ead),this['_defaultCallbacks']['set']('formatInline:discard',_0x187d07),this['_defaultCallbacks']['set']('formatInline:join',_0x12e4bd),this['_defaultCallbacks']['set']('formatInline:chain',_0x187d07),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4c0ead),this['_defaultCallbacks']['set']('formatBlock:discard',_0x187d07),this['_defaultCallbacks']['set']('formatBlock:join',_0x12e4bd),this['_defaultCallbacks']['set']('formatBlock:chain',_0x187d07),this['_defaultCallbacks']['set']('attribute:accept',_0x187d07),this['_defaultCallbacks']['set']('attribute:discard',(_0x56c218,_0x43b451)=>{if(!_0x43b451)return;const _0x5ef8e6=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x167d14=>{if(_0x43b451['key']==m)for(const _0x17efc9 of _0x56c218){const _0x5b9e42=_0x17efc9['start']['nodeAfter'],_0x12a5f6=_0x43b451['oldValue'];_0x167d14['rename'](_0x5b9e42,_0x12a5f6);}else{if(_0x5ef8e6['_isBlockAttribute'](_0x43b451['key'])){for(const _0xd5fa0e of _0x56c218)void 0x0!==_0x43b451['oldValue']?_0x167d14['setAttribute'](_0x43b451['key'],_0x43b451['oldValue'],_0xd5fa0e['start']['nodeAfter']):_0x167d14['removeAttribute'](_0x43b451['key'],_0xd5fa0e['start']['nodeAfter']);}else{for(const _0x3cb319 of _0x56c218)_0x43b451['oldValue']?_0x167d14['setAttribute'](_0x43b451['key'],_0x43b451['oldValue'],_0x3cb319):_0x167d14['removeAttribute'](_0x43b451['key'],_0x3cb319);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x12e4bd);}}function Ht(_0x2fb46a,_0x12f6ff,_0x2824a0){for(const _0x1bac6f of _0x12f6ff['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1bac6f['root']==_0x1bac6f)return!0x1;if(!_0x2824a0['containsItem'](_0x1bac6f))return!0x1;if(_0x2fb46a['isObject'](_0x1bac6f)||_0x2fb46a['isLimit'](_0x1bac6f))return!0x0;}return!0x1;}function Wt(_0x40eb34){return _0x40eb34['end']['parent']==_0x40eb34['start']['nodeAfter']&&_0x40eb34['end']['isAtStart'];}function zt(_0x527819,_0x5c0b4a,_0xd5f8ac,_0x5c2c4e){const _0x2697c5=_0x407bbd=>!_0x407bbd['item']['is']('$textProxy')&&!_0x5c2c4e['isObject'](_0x407bbd['item']),_0x4dbbe7=_0x527819['start']['getLastMatchingPosition'](_0x2697c5),_0x35e5df=_0x527819['end']['getLastMatchingPosition'](_0x2697c5,{'direction':'backward'});return(!_0x527819['start']['isEqual'](_0x4dbbe7)||!_0x527819['end']['isEqual'](_0x35e5df))&&(_0x4dbbe7['isBefore'](_0x35e5df)?_0xd5f8ac['updateMarker'](_0x5c0b4a,{'range':_0xd5f8ac['createRange'](_0x4dbbe7,_0x35e5df)}):_0xd5f8ac['removeMarker'](_0x5c0b4a),!0x0);}function Qt(_0x398713){return _0x5e961d(_0x398713);}function Xt(_0x3d0035){const _0x4e4c39=_0x3d0035['start']['nodeAfter'];return _0x4e4c39&&_0x4e4c39['is']('element');}function Yt(_0x43249b){return Wt(_0x43249b)||function(_0x43191b){return _0x43191b['start']['parent']==_0x43191b['end']['nodeBefore']&&_0x43191b['start']['isAtEnd'];}(_0x43249b);}function Zt(_0x118c0e,_0x47e951){try{const _0x400072=_0x118c0e['getRange']();for(const _0x4eb99e of _0x47e951)if(_0x118c0e!==_0x4eb99e&&_0x400072&&_0x400072['isIntersecting'](_0x4eb99e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function te(_0x5ed350,_0x3cfe07){const _0x1ef272=_0x5ed350['end']['nodeBefore'];if(_0x1ef272&&_0x1ef272['is']('element')&&_0x3cfe07['schema']['isBlock'](_0x1ef272)&&!_0x3cfe07['schema']['isObject'](_0x1ef272)){const _0x2b37b9=_0x3cfe07['createPositionAt'](_0x1ef272,'end');return _0x3cfe07['createRange'](_0x5ed350['start'],_0x2b37b9);}return _0x5ed350;}function ee(_0x1d30e7,_0x58b5d4){return null==_0x1d30e7['end']['nodeBefore']&&_0x1d30e7['end']['parent']==_0x1d30e7['start']['nodeAfter']?ie(_0x1d30e7['start']['nodeAfter'],_0x58b5d4):_0x1d30e7;}function ie(_0x2e33d2,_0x46a82d){const _0x440267=_0x46a82d['schema']['isObject'](_0x2e33d2)||_0x46a82d['schema']['isSelectable'](_0x2e33d2);return _0x46a82d['createRange'](_0x46a82d['createPositionAt'](_0x2e33d2,'before'),_0x440267?_0x46a82d['createPositionAfter'](_0x2e33d2):_0x46a82d['createPositionAt'](_0x2e33d2,'end'));}function ne(_0x3e5dff,_0x2e4af5,_0x254c0a,_0x94641f){return!!se(_0x3e5dff,_0x2e4af5)&&_0x254c0a['end']['isEqual'](_0x94641f['start']);}function se(_0x424485,_0x120f5e){if(!_0x424485['_isDataLoaded']||!_0x120f5e['_isDataLoaded'])return!0x1;const _0x51ecf4=new Set(Object['keys'](_0x424485['attributes'])),_0xeb0016=new Set(Object['keys'](_0x120f5e['attributes']));if(_0x51ecf4['delete']('groupId'),_0xeb0016['delete']('groupId'),0x0==_0x51ecf4['size']&&0x0==_0xeb0016['size'])return!0x0;if(_0x51ecf4['size']!=_0xeb0016['size'])return!0x1;const _0x34eaa1={..._0x424485['attributes']},_0x4e29ac={..._0x120f5e['attributes']};return delete _0x34eaa1['groupId'],delete _0x4e29ac['groupId'],JSON['stringify'](_0x34eaa1)==JSON['stringify'](_0x4e29ac);}function oe(_0x5763a4,_0x240d7f){const _0x1d698f=re(_0x5763a4['attributes']),_0x5507ee=re(_0x240d7f);if(!_0x5763a4['_isDataLoaded'])return!0x1;for(const _0x5e61fd of Object['keys'](_0x5507ee))if(!_0x5578d7(_0x1d698f[_0x5e61fd],_0x5507ee[_0x5e61fd]))return!0x1;return!0x0;}function re(_0x382b02){const _0x153fc6=Object['assign']({},_0x382b02);return delete _0x153fc6['skipNestingCheck'],delete _0x153fc6['tablePasteChainId'],_0x153fc6;}function ae(_0x57ccbb){return _0x57ccbb['split']('|')[0x0];}function ce(_0xf40a7f,_0x1273d2){for(const [_0x1deef0,_0x29f497]of _0xf40a7f['markers']){const _0x49df39=_0x4e5d4b['_createFromRanges'](_0x29f497['getTransformedByOperation'](_0x1273d2));_0xf40a7f['markers']['set'](_0x1deef0,_0x49df39);}}class xe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x2def01(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x220d88,_0x3592fa,_0x4614ba,_0x3218ed){super(),this['model']=_0x3592fa,this['view']=_0x4614ba,this['commentThreadController']=_0x3218ed,this['_editor']=_0x220d88,this['_acceptCommand']=_0x220d88['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x220d88['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1cf08f,_0x16bd0c)=>_0x1cf08f||_0x16bd0c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5aead9=>_0x5aead9&&this['_editor']['model']['canEditAt'](_0x3592fa['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x125f8e=>_0x125f8e&&this['_editor']['model']['canEditAt'](_0x3592fa['getRanges']())),this['_pendingAction']=null,_0x4614ba['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4614ba,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4614ba,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4614ba,'change:isDirty',()=>{_0x4614ba['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 _0x25b53f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x25b53f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x16d85e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1ca254,_0x1d991b,_0x32ff53,_0x5306a6){super(_0x1ca254),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xa7cd6f(_0x1ca254,o(_0x1ca254,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1d991b['authoredAt']),this['bind']('authoredAt')['to'](_0x1d991b),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',_0x1d991b,'authoredAt',this,'descriptionParts',(_0x3a362e,_0x41c9d9,_0x2ecc48)=>{const _0x7f156f=_0x2ecc48['map'](_0x4ef08f=>ls(_0x4ef08f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3a362e-0x1,_0x1d991b['author']['name'],_0x41c9d9?_0x5306a6['formatDateTime'](_0x41c9d9):'',new DOMParser()['parseFromString'](_0x7f156f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x406985(),this['focusTracker']=new _0xc435d8(),this['keystrokes']=new _0x5dc328(),this['focusCycler']=new _0x580b2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x25f077=>_0x25f077['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1d991b,this['_localUser']=_0x32ff53,this['_config']=_0x5306a6,_0x5306a6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5d33c9(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xcb655f}=this['_config'];this['commentsListView']=new _0xcb655f(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',_0x90c62b=>_0x90c62b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x42fff8,_0x3d572a)=>_0x42fff8||!!_0x3d572a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x43105a}=this['_config'],_0x30e49f=new _0x43105a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3c6e50=_0x30e49f['commentInputView'];return _0x30e49f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3c6e50,'value',(_0x32b231,_0x59c73e,_0xa27bd9)=>!!_0xa27bd9||_0x32b231&&!_0x59c73e),_0x3c6e50['on']('submit',(_0x3c1c68,_0x12eef3)=>{this['fire']('addComment',_0x12eef3),_0x3c6e50['editor']['setData']('');}),_0x3c6e50['on']('cancel',()=>this['focus']()),_0x3c6e50['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x30e49f;}}class Ae extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x355971,_0x490962,_0x39a3d4,_0x546b4c){super(_0x355971,_0x490962,_0x39a3d4,_0x546b4c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x590463=>_0x590463&&_0x590463[0x0]?_0x590463[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2832d6,_0x23c85a)=>{let _0x1dd45e='';for(const _0x3d761b of _0x2832d6)_0x1dd45e+='<p>'+ls(_0x3d761b['content'],_0x3d761b['color'])+'</p>';return _0x23c85a?_0x1dd45e:_0x1a9b5a(_0x1dd45e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x546b4c['SuggestionView'](_0x355971,_0x490962,{'formatDateTime':_0x546b4c['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 _0x4cf78f=this['bindTemplate'],_0x4d8a0e=[this['suggestionView']];return this['commentsListView']&&_0x4d8a0e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4d8a0e['push'](this['commentThreadInputView']),_0x4d8a0e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4cf78f['if']('isActive','ck-suggestion-wrapper--active'),_0x4cf78f['to']('type',_0x23f608=>'ck-suggestion-'+_0x23f608),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':_0x4cf78f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4d8a0e};}['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 Ee extends _0x16d85e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x17e7e7,_0xb17ea8,_0x3fc200){super(_0x17e7e7),this['_model']=_0xb17ea8,this['_config']=_0x3fc200,this['set']('description',''),this['bind']('authoredAt')['to'](_0xb17ea8),this['acceptButton']=this['_createButton'](o(_0x17e7e7,'Accept\x20suggestion'),_0x461762,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x17e7e7,'Discard\x20suggestion'),_0x53f153,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3cfc9e(_0x17e7e7,_0xb17ea8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x406985([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc435d8(),this['keystrokes']=new _0x5dc328(),this['focusCycler']=new _0x580b2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x322247=>_0x322247['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x55ee2d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x55ee2d['innerHTML']=this['description'],this['on']('change:description',(_0x5d0f11,_0x237ddc,_0x2e0810)=>{_0x55ee2d['innerHTML']=_0x2e0810;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x488f3c=this['bindTemplate'],_0xc64fd9=[{'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':_0x488f3c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x488f3c['to']('authoredAt',_0x3412af=>this['_config']['formatDateTime'](_0x3412af))}]}]},{'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']&&_0xc64fd9['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':_0xc64fd9}]};}['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'](_0x2273ad,_0x4d8637,_0x29cc7c,_0x5eea44,_0x5f826e){const _0x41a94c=new _0x8c1f8b(this['locale']);return _0x41a94c['set']({'label':_0x2273ad,'icon':_0x4d8637,'tooltip':!0x0,'tooltipPosition':_0x5f826e}),_0x41a94c['extendTemplate']({'attributes':{'class':_0x29cc7c}}),_0x41a94c['on']('execute',()=>{this['fire'](_0x5eea44,this['_model']['id']);}),_0x41a94c;}['_setupKeyboardNavigation'](){const _0x8bf54e=this['element'];this['keystrokes']['listenTo'](_0x8bf54e);for(const _0x2fc473 of this['focusables'])this['focusTracker']['add'](_0x2fc473['element']),this['keystrokes']['listenTo'](_0x2fc473['element']);this['keystrokes']['set']('enter',(_0x2a0e64,_0x44ed8a)=>{_0x8bf54e===_0x2a0e64['target']&&(this['focusCycler']['focusFirst'](),_0x44ed8a());}),this['keystrokes']['set']('esc',(_0x5b18f8,_0x4b7864)=>{_0x8bf54e!==_0x5b18f8['target']&&(this['focus'](),_0x4b7864());});}}class u extends _0x4e7f5a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x57807f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cd2ce){super(_0x5cd2ce),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x15e9e8=this['editor']['config'];_0x15e9e8['define']('trackChanges.SuggestionThreadView',Ae),_0x15e9e8['define']('trackChanges.SuggestionView',Ee),_0x15e9e8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x15e9e8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x54b254,_0x20b3a9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2a8fee,_0x4c29a9]of this['_handleControllerBuffer']){const _0x4ef269=this['_suggestionToController']['has'](_0x2a8fee);_0x4ef269||_0x4c29a9?_0x4ef269&&_0x4c29a9&&this['_destroyController'](_0x2a8fee):this['_initializeController'](_0x2a8fee);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x54b254,_0x20b3a9);}['init'](){const _0x242141=this['editor'],_0x30c0b2=_0x242141['plugins']['get']('TrackChangesEditing'),_0x38194d=_0x242141['plugins']['get']('Annotations'),_0x5ca0ca=_0x242141['plugins']['get']('EditorAnnotations'),_0x38619f=_0x242141['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5ca0ca['addSourceCollector'](()=>{const _0x44595e=[];for(const [_0x2bf56a,_0x4a75bf]of Array['from'](this['_suggestionToController'])){const _0x2ebd74=_0x2bf56a['getAllAdjacentSuggestions'](),_0x39a4a2=[];for(const _0x27c56f of _0x2ebd74){if(!_0x27c56f['isInContent'])continue;if(_0x27c56f['isMultiRange']){_0x39a4a2['push'](..._0x27c56f['getRanges']());continue;}const _0x468887=_0x27c56f['getFirstRange']();if(_0x39a4a2['length']>0x0){const _0x2e369c=_0x39a4a2[0x0]['getJoined'](_0x468887);if(_0x2e369c){_0x39a4a2[0x0]=_0x2e369c;continue;}}_0x39a4a2['push'](_0x468887);}_0x44595e['push']([_0x4a75bf['view'],_0x39a4a2]);}return _0x44595e;}),this['listenTo'](_0x30c0b2,'suggestionLoaded',(_0x4dc551,_0x5a1323)=>{this['listenTo'](_0x5a1323,'change:previous',(_0x1e5e82,_0x4dbb1a,_0x338fa2,_0x59307a)=>{_0x5a1323['isInContent']&&(null==_0x338fa2?(this['_updateController'](_0x59307a['head']),this['_handleSuggestionControllerDelayed'](_0x5a1323,!0x1)):(this['_updateController'](_0x338fa2['head']),null==_0x59307a&&this['_handleSuggestionControllerDelayed'](_0x5a1323,!0x0)));}),null!==_0x5a1323['previous']?this['_updateController'](_0x5a1323['head']):this['_handleSuggestionControllerDelayed'](_0x5a1323,!0x1);}),this['listenTo'](_0x30c0b2,'suggestionUnloaded',(_0xdc9dcf,_0x2f1dfc,_0x3ff59a)=>{this['stopListening'](_0x2f1dfc,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2f1dfc),this['_suggestionToController']['has'](_0x2f1dfc)&&this['_destroyController'](_0x2f1dfc),_0x3ff59a&&this['_updateController'](_0x3ff59a['head']);}),this['listenTo'](_0x30c0b2,'suggestionChanged',(_0x217ab3,_0x30d822)=>{this['_updateController'](_0x30d822);}),this['listenTo'](_0x38194d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x38619f,'addComment',(_0x445093,{threadId:_0x251531,isFromAdapter:_0x432567})=>{if(_0x432567||!_0x30c0b2['hasSuggestion'](_0x251531))return;const _0x6c7c1b=_0x30c0b2['getSuggestion'](_0x251531);this['_suggestionToController']['get'](_0x6c7c1b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4fa3f9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe7fd;for(const _0x362b5c in _0x4fa3f9){const _0x5a2568=_0x362b5c,_0x39525b=_0x4fa3f9[_0x5a2568];if('trackChangesLicenseKeyValid'==_0x39525b||'trackChangesLicenseKeyInvalid'==_0x39525b||'trackChangesLicenseKeyExpired'==_0x39525b||'trackChangesLicenseKeyDomainLimit'==_0x39525b||'trackChangesLicenseKeyNotAllowed'==_0x39525b||'trackChangesLicenseKeyEvaluationLimit'==_0x39525b||'trackChangesLicenseKeyTrialLimit'==_0x39525b||'trackChangesLicenseKeyUsageLimit'==_0x39525b){delete _0x4fa3f9[_0x5a2568],_0xe7fd=_0x39525b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xc65c82){const _0x3d52ed=this['_suggestionToController']['get'](_0xc65c82);if(!_0x3d52ed)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3d52ed['view'])||null;}['getSuggestionForAnnotation'](_0x168b95){const _0x2d01ed=this['_viewToController']['get'](_0x168b95['innerView']);return _0x2d01ed?_0x2d01ed['model']:null;}['_refreshActiveMarkers'](){const _0x453cd0=this['editor']['plugins']['get']('Annotations'),_0x4f674e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e9678=Array['from'](_0x453cd0['activeAnnotations'],_0x19d9cc=>_0x19d9cc['innerView'])['filter'](_0x4f1041=>this['_viewToController']['has'](_0x4f1041)),_0x1f18e1=[];for(const _0x60bc5 of _0x4e9678){const _0x5a6545=this['_viewToController']['get'](_0x60bc5)['model']['getAllAdjacentSuggestions']();_0x1f18e1['push'](..._0x5a6545['reduce']((_0x2cebf6,_0x5d474b)=>[..._0x2cebf6,..._0x5d474b['getMarkerNames']()],[]));}_0x4f674e['activeMarkers']=_0x1f18e1;}['_addUIComponentsToFactory'](){const _0x176aa3=this['editor'],_0x2311b4=_0x176aa3['locale'],_0x288050=o(_0x2311b4,'Track\x20changes'),_0x23555f=new _0x3edcbf([{'type':'switchbutton','model':new _0x20f578({'withText':!0x0,'isToggleable':!0x0,'label':_0x288050,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x176aa3['plugins']['has']('TrackChangesPreview')&&_0x23555f['addMany']([{'type':'separator'},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2b9839 of _0x23555f)if(Ke(_0x2b9839)){const _0x432ab6=_0x176aa3['commands']['get'](_0x2b9839['model']['commandName']);_0x2b9839['model']['bind']('isOn','isEnabled')['to'](_0x432ab6,'value','isEnabled');}_0x176aa3['ui']['componentFactory']['add']('trackChanges',_0x337c2c=>this['_createToolbarButton'](_0x337c2c,_0x23555f,_0x288050)),_0x176aa3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x40cf03=>this['_createMenuBarMenu'](_0x40cf03,_0x23555f,_0x288050));}['_createToolbarButton'](_0xa6d15f,_0x5d9923,_0x5ba354){const _0x454355=_0x4f4152(_0xa6d15f,_0x11da7c),_0x5b861b=this['editor']['commands']['get']('trackChanges');_0x454355['buttonView']['set']({'tooltip':_0x5ba354,'label':_0x5ba354,'icon':_0x2784bc}),_0x454355['buttonView']['bind']('isOn')['to'](_0x5b861b,'value'),_0x454355['buttonView']['on']('execute',()=>{_0x5b861b['execute'](),this['editor']['editing']['view']['focus']();}),_0x2241b4(_0x454355,_0x5d9923,{'role':'menu'});const _0x51b18b=[];for(const _0x3ad346 of _0x5d9923)Ke(_0x3ad346)&&_0x51b18b['push'](this['editor']['commands']['get'](_0x3ad346['model']['commandName']));const _0x4930f1=_0x454355['buttonView'];return _0x4930f1['actionView']['unbind']('isEnabled'),_0x4930f1['arrowView']['unbind']('isEnabled'),_0x4930f1['actionView']['bind']('isEnabled')['to'](_0x5b861b,'isEnabled'),_0x4930f1['arrowView']['bind']('isEnabled')['toMany'](_0x51b18b,'isEnabled',(..._0x49d95c)=>_0x49d95c['some'](_0x34c66b=>_0x34c66b)),_0x454355['on']('execute',_0x226076=>{this['editor']['execute'](_0x226076['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x454355;}['_createMenuBarMenu'](_0x4e0922,_0x304ea6,_0x2ab8e7){const _0x3eab4a=new _0x17af2b(_0x4e0922),_0x2b2314=this['editor']['commands']['get']('trackChanges');_0x3eab4a['buttonView']['set']({'label':_0x2ab8e7,'icon':_0x2784bc});const _0x5bcc58=new _0x74cb29(_0x4e0922);for(const _0x46f129 of _0x304ea6){if('separator'==_0x46f129['type']){_0x5bcc58['items']['add'](new _0x2d6e36(_0x4e0922));continue;}const _0x402dad=new _0xa48ed1(_0x4e0922,_0x3eab4a),_0x4da2dc=new _0x23adcf(_0x4e0922),_0x3a735f=_0x46f129['model'];_0x4da2dc['bind'](...Object['keys'](_0x3a735f))['to'](_0x3a735f),_0x4da2dc['delegate']('execute')['to'](_0x3eab4a),_0x4da2dc['on']('execute',()=>{this['editor']['execute'](_0x3a735f['commandName']),this['editor']['editing']['view']['focus']();}),_0x402dad['children']['add'](_0x4da2dc),_0x5bcc58['items']['add'](_0x402dad);}return _0x3eab4a['bind']('isEnabled')['to'](_0x2b2314,'isEnabled'),_0x3eab4a['panelView']['children']['add'](_0x5bcc58),_0x3eab4a;}['_initializeController'](_0x8d17e3){const _0x536adc=this['editor'],_0x22ede9=_0x536adc['config'],_0x3219d4=_0x536adc['plugins']['get']('Annotations'),_0x5ef0c3=_0x536adc['plugins']['get']('CommentsRepository'),_0x6a5d=_0x536adc['plugins']['get']('EditorAnnotations'),_0x18a331=_0x536adc['plugins']['get'](_0x57807f)['me'],_0xdf03fd=_0x22ede9['get']('trackChanges')['SuggestionThreadView'],_0x234959=_0x22ede9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x34684a,CommentThreadInputView:_0x258a08}=_0x536adc['plugins']['get']('CommentsUI');let _0xd05b15,_0x3a326e,_0x1545ea;this['_annotationViews']['has'](_0x8d17e3['id'])?(_0x3a326e=this['_annotationViews']['get'](_0x8d17e3['id']),_0xd05b15=_0x3a326e['mainView']):(_0xd05b15=new _0xdf03fd(_0x536adc['locale'],_0x8d17e3,_0x18a331,{'disableComments':this['_disableComments'],'editorConfig':{..._0x22ede9['get']('comments.editorConfig'),'licenseKey':_0x22ede9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x22ede9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x22ede9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x22ede9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x128e55(_0x22ede9['get']('locale'),_0x536adc['locale']),'CommentView':_0x22ede9['get']('comments')['CommentView'],'CommentsListView':_0x34684a,'CommentThreadInputView':_0x258a08,'SuggestionView':_0x234959}),_0xd05b15['suggestionView']['acceptButton']['on']('execute',()=>{_0x536adc['editing']['view']['focus']();}),_0xd05b15['suggestionView']['discardButton']['on']('execute',()=>{_0x536adc['editing']['view']['focus']();}),_0x3a326e=_0x3219d4['createAnnotationView'](this['editor']['locale'],_0xd05b15),_0x3a326e['bind']('isDirty')['to'](_0xd05b15,'isDirty'),_0x3a326e['bind']('length')['to'](_0xd05b15),_0x3a326e['bind']('type')['to'](_0xd05b15,'type',_0x377468=>'suggestion-'+_0x377468),_0xd05b15['on']('escape',()=>{_0x1545ea['fire']('escape');}),this['_annotationViews']['set'](_0x8d17e3['id'],_0x3a326e));const _0x39c011=_0x5ef0c3['createCommentThreadController'](_0x8d17e3['commentThread'],_0xd05b15),_0x1622ac=new xe(_0x536adc,_0x8d17e3,_0xd05b15,_0x39c011),_0xb1648c=_0x8d17e3['getAllAdjacentSuggestions']()['filter'](_0xda5b7f=>_0xda5b7f['isInContent']);_0xd05b15['descriptionParts']=_0x536adc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xb1648c),this['_suggestionToController']['set'](_0x8d17e3,_0x1622ac),this['_viewToController']['set'](_0xd05b15,_0x1622ac);const _0x3be56d=()=>{const _0x5e8761=[],_0x543667=_0x8d17e3['getAllAdjacentSuggestions']()['filter'](_0x5967e8=>_0x5967e8['isInContent']);for(const _0x17c1db of _0x543667)_0x5e8761['push'](..._0x17c1db['getMarkers']());return _0x4c9d1b(_0x536adc['editing'],_0x5e8761);};_0x1545ea=_0x3219d4['createAnnotation']({'view':_0x3a326e,'target':_0x3be56d,'type':()=>'suggestion-'+_0x1622ac['view']['type'],'isVisible':!!_0x3be56d()}),_0x5ef0c3['_bindAnnotationToEditors'](_0xd05b15,_0x1545ea),_0x3219d4['add'](_0x1545ea),_0x6a5d['registerAnnotation'](_0x1545ea);}['_destroyController'](_0x4f3c3c){const _0xefb75d=this['editor']['plugins']['get']('CommentsRepository'),_0x575c77=this['editor']['plugins']['get']('Annotations'),_0x496641=this['_suggestionToController']['get'](_0x4f3c3c),_0x51bdda=_0x496641['view'],_0x272300=_0x575c77['getByInnerView'](_0x51bdda);_0xefb75d['_unbindEditors'](_0x51bdda),_0x272300&&_0x575c77['remove'](_0x272300),this['_suggestionToController']['delete'](_0x4f3c3c),this['_viewToController']['delete'](_0x51bdda),_0x496641['destroy']();}['_updateController'](_0x50039f){if(!_0x50039f['isInContent']||!this['_suggestionToController']['has'](_0x50039f))return;const _0x59fe00=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22aa08=this['_suggestionToController']['get'](_0x50039f),_0x15120e=_0x50039f['getAllAdjacentSuggestions']();_0x22aa08['view']['descriptionParts']=_0x59fe00['descriptionFactory']['getDescriptions'](_0x15120e);}['destroy'](){for(const _0x2e2c86 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2e2c86);for(const _0x3bbb32 of this['_annotationViews']['values']())_0x3bbb32['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ke(_0x39c2b0){return'model'in _0x39c2b0;}class Xe extends _0x4e7f5a{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4694ea){this['editor']['plugins']['get'](d)['adapter']=_0x4694ea;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x39788e){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x39788e);}['getSuggestions']({skipNotAttached:_0x369b5d=!0x1,toJSON:_0x4b78b0=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x369b5d,'toJSON':_0x4b78b0});}['getSuggestion'](_0x1527ee){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1527ee);}}const p=['Pagination'];class ue extends _0x4e7f5a{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xfc40a6=this['editor'];if(_0xfc40a6['config']['define']('trackChangesData.editorCreator',_0x5f3c2e=>{const _0x3aa845=_0xfc40a6['model']['document']['getRootNames']()['reduce']((_0x2a929e,_0x2e3609)=>(_0x2a929e[_0x2e3609]='',_0x2a929e),{});return _0xfc40a6['constructor']['create'](_0x3aa845,_0x5f3c2e);}),'function'!=typeof _0xfc40a6['config']['get']('trackChangesData')['editorCreator'])throw new _0x5a4829('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x394151){return P(this['editor'],!0x0,_0x394151);}['getDataWithDiscardedSuggestions'](_0x225d24){return P(this['editor'],!0x1,_0x225d24);}}class Ye extends _0x4e7f5a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f06df){function _0x20c372(_0x53dce5){return _0x53dce5['map'](_0x7aba07=>String['fromCharCode'](_0x7aba07))['join']('');}super(_0x2f06df),this['result']='end',_0x2f06df[_0x20c372([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20c372([0x76,0x69,0x65,0x77])][_0x20c372([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20c372([0x61,0x75,0x74,0x6f]),_0x2f06df[_0x20c372([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20c372([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20c372([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20c372([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20c372([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 Qe(_0x297d30){return void 0x0!==_0x297d30['getRootsAttributes'];}async function P(_0x11f0fe,_0x9122f8,_0x67c3fd){const _0x111ce7=_0x3e3c2c(_0x11f0fe,p);_0x111ce7['plugins']['push'](d,Ye),_0x111ce7['rootsAttributes']=Qe(_0x11f0fe)?_0x11f0fe['getRootsAttributes']():void 0x0;const _0x5ca5ec=document['createDocumentFragment'](),_0x46b093=_0x11f0fe['config']['get']('trackChangesData')['editorCreator'],_0x2a1461=await _0x46b093(_0x111ce7,()=>function(_0x3955ef){const _0xb9febf=document['createElement']('div');return _0x3955ef['appendChild'](_0xb9febf),_0xb9febf;}(_0x5ca5ec));!function(_0x2f8b9b,_0x78ae92){const _0x125853=_0x2f8b9b['model']['document']['getRootNames']()['reduce']((_0x457d4a,_0x5b1779)=>(_0x457d4a[_0x5b1779]=_0x2f8b9b['data']['get']({'rootName':_0x5b1779}),_0x457d4a),{}),_0x216e61=_0x2f8b9b['plugins']['get']('Users')['users']['map'](_0x3428ef=>({'id':_0x3428ef['id'],'name':_0x3428ef['name']})),_0x378938=_0x2f8b9b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x54e2b4=_0x2f8b9b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x351743=_0x78ae92['plugins']['get']('Users'),_0x5b1a5d=_0x78ae92['plugins']['get']('TrackChangesEditing'),_0x3e11db=_0x78ae92['plugins']['get']('CommentsRepository');for(const _0x12a3e4 of _0x3e11db['getCommentThreads']())_0x12a3e4['remove']();for(const _0x217572 of _0x216e61)_0x351743['getUser'](_0x217572['id'])||_0x351743['addUser'](_0x217572);_0x351743['me']||_0x351743['useAnonymousUser']();for(const _0x30bd9d of _0x54e2b4)_0x3e11db['addCommentThread'](_0x30bd9d);for(const _0x451a5e of _0x378938)_0x5b1a5d['addSuggestionData'](_0x451a5e);_0x78ae92['data']['set'](_0x125853);}(_0x11f0fe,_0x2a1461),_0x2a1461['execute'](_0x9122f8?'acceptAllSuggestions':'discardAllSuggestions');const _0x5018f3=Qe(_0x2a1461)?_0x2a1461['getFullData'](_0x67c3fd):_0x2a1461['data']['get'](_0x67c3fd);return await _0x2a1461['destroy'](),_0x5018f3;}class _e extends _0x16d85e{['options'];constructor(_0x4db2dd,_0x234bc0){super(_0x4db2dd),this['options']=_0x234bc0,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'](_0x28c19d,_0x14d03b){if(!this['element'])return;const _0x59567f=[];for(const [_0x32c02e,_0x3565e8]of _0x28c19d){const _0xe23359=document['createElement']('div');_0xe23359['setAttribute']('data-ck-root-name',_0x32c02e),_0xe23359['className']=_0x3565e8['classes']+'\x20ck-track-changes-preview__root-container',_0xe23359['innerHTML']=_0x3565e8['content'],_0x59567f['push'](_0xe23359);}_0x14d03b(this['element'],_0x59567f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ge extends _0x30f11b{constructor(_0x22c16f){super(_0x22c16f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x207ffd=this['editor'],_0x562ac7=_0x207ffd['locale'],_0x11dab3=_0x207ffd['plugins']['get']('Dialog');let _0x3a5c1e;const _0x18f16d=function(_0x2bfa5b){const _0x354de3={};if('editables'in _0x2bfa5b['ui']['view']){for(const [_0xdf34f9,_0x136495]of Object['entries'](_0x2bfa5b['ui']['view']['editables']))_0x354de3[_0xdf34f9]=_0x136495['element'];}else _0x354de3[_0x2bfa5b['model']['document']['getRootNames']()[0x0]]=_0x2bfa5b['ui']['view']['editable']['element'];return _0x354de3;}(_0x207ffd),_0x17f996=function(_0x1e83d0){let _0x787d54=0x0;for(const _0x4d7eb7 of Object['values'](_0x1e83d0))_0x787d54=Math['max'](_0x787d54,_0x4d7eb7['getBoundingClientRect']()['width']);let _0x2987a7=0x0;for(const _0x2697d8 of Object['values'](_0x1e83d0))_0x2987a7+=_0x2697d8['getBoundingClientRect']()['height'];const _0x442e52=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x53116c=Math['min'](_0x2987a7,_0x442e52);return{'width':_0x787d54,'height':_0x53116c};}(_0x18f16d);_0x11dab3['show']({'id':'finalContentPreview','title':o(_0x562ac7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x562ac7,{'dialogRects':_0x17f996}),'onHide':()=>{_0x3a5c1e['detachFromDom']();},'onShow':()=>{_0x207ffd['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x41559d=>{const _0x4a6b9e=this['_standarizeRootsData'](_0x41559d,_0x207ffd,_0x18f16d);_0x11dab3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4a6b9e,_0x207ffd['config']['get']('trackChanges.preview.renderFunction'));}),_0x3a5c1e=new _0x2dfe06(_0x562ac7,[_0x11dab3['view']]),_0x3a5c1e['attachToDom'](),_0x3a5c1e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x207ffd['once']('destroy',()=>{_0x3a5c1e['detachFromDom']();});const _0x19325c=_0x11dab3['view']['headerView']['class'];_0x11dab3['view']['headerView']['class']=_0x19325c?_0x19325c+'\x20ck-reset_all':'ck-reset_all',_0x11dab3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x11dab3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2a2070=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4f3a02=_0x2a2070['previewMode'],_0x2c6a2e={};if('$labels'===_0x4f3a02){for(const _0x32fee2 of _0x2a2070['getMergeFieldsIds']())_0x2c6a2e[_0x32fee2]=_0x2a2070['getLabel'](_0x32fee2)||_0x32fee2;}else{const _0x339ee0='$defaultValues'===_0x4f3a02?_0x2a2070['getDefaultValues']():_0x2a2070['getDataSetValues'](_0x4f3a02,!0x0);for(const _0xb2a632 of Object['entries'](_0x339ee0)){const [_0x4b9607,_0x1e36c6]=_0xb2a632;_0x2c6a2e[_0x4b9607]=null!==_0x1e36c6?_0x1e36c6:_0x2a2070['getLabel'](_0x4b9607)||_0x4b9607;}}return{'mergeFieldsData':_0x2c6a2e};}['_standarizeRootsData'](_0x3b31e2,_0x2358ab,_0x204f68){let _0x3db349;if('string'==typeof _0x3b31e2){const _0x1b7914=_0x2358ab['model']['document']['getRootNames']()[0x0];_0x3db349={[_0x1b7914]:_0x3b31e2};}else _0x3db349=_0x3b31e2;const _0x16e968=this['_fixMediaEmbeds'](_0x3db349,_0x2358ab),_0x1bc2c6=function(_0x3574fb,_0x1148c7){for(const [_0x3b6ca1,_0x19d06a]of _0x3574fb)_0x19d06a['classes']=_0x1148c7[_0x3b6ca1]['classList']['value']['replace']('ck-focused','');return _0x3574fb;}(this['_sortRoots'](_0x2358ab)['reduce']((_0x58d7d3,_0x57a573)=>(_0x58d7d3['push']([_0x57a573,{'content':_0x16e968[_0x57a573],'classes':''}]),_0x58d7d3),[]),_0x204f68);return _0x1bc2c6;}['_fixMediaEmbeds'](_0x3d9e47,_0x39a1dd){if(!_0x39a1dd['plugins']['has']('MediaEmbedEditing'))return _0x3d9e47;const _0x88acb7=_0x39a1dd['plugins']['get']('MediaEmbedEditing');for(const [_0x4a1208,_0x3b5252]of Object['entries'](_0x3d9e47)){const _0x14eaf3=document['createElement']('div');_0x14eaf3['innerHTML']=_0x3b5252,(_0x14eaf3['querySelectorAll']('figure.media')['forEach'](_0x40d3e2=>{const _0x3981a6=_0x40d3e2['querySelector']('oembed');if(_0x3981a6){const _0x2037c5=_0x3981a6['getAttribute']('url');if(_0x2037c5){const _0x1f29f1=_0x88acb7['registry']['getMediaViewElement'](new _0x2ef6b6(_0x39a1dd['editing']['view']['document']),_0x2037c5,{'elementName':'','renderForEditingView':!0x0}),_0x59db8d=document['createElement']('div');_0x59db8d['classList']['add']('ck-media__wrapper'),_0x1f29f1['render'](_0x59db8d,_0x39a1dd['editing']['view']['domConverter']),_0x3981a6['replaceWith'](_0x59db8d);}}}),_0x3d9e47[_0x4a1208]=_0x14eaf3['innerHTML']);}return _0x3d9e47;}['_sortRoots'](_0x1645ec){if(!function(_0x4fbf49){return void 0x0!==_0x4fbf49['getRootsAttributes'];}(_0x1645ec))return _0x1645ec['model']['document']['getRootNames']();const _0x552cbb=[],_0x129385=new Map();for(const _0x1579ac of _0x1645ec['model']['document']['getRootNames']()){const _0x5e3aba=_0x1645ec['editing']['view']['getDomRoot'](_0x1579ac)['getClientRects']()['item'](0x0);_0x552cbb['push'](_0x1579ac),_0x129385['set'](_0x1579ac,_0x5e3aba);}return _0x552cbb['sort']((_0x19f498,_0x4c43b6)=>{const _0x4a6879=_0x129385['get'](_0x19f498),_0x115624=_0x129385['get'](_0x4c43b6);return _0x4a6879['y']-_0x115624['y']||_0x4a6879['x']-_0x115624['x'];}),_0x552cbb;}}class Ze extends _0x4e7f5a{static get['requires'](){return[ue,_0x540b17];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36db03){super(_0x36db03),_0x36db03['commands']['add']('previewFinalContent',new ge(this['editor'])),_0x36db03['config']['define']('trackChanges.preview.renderFunction',(_0x59a632,_0x346756)=>{for(const _0x9c381c of _0x346756)_0x59a632['appendChild'](_0x9c381c);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ge as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Ae as SuggestionThreadView,Ee as SuggestionView,Xe as TrackChanges,B as TrackChangesCommand,ue as TrackChangesData,Ye as TrackChangesDataGetter,d as TrackChangesEditing,Ze as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x197fe8,Plugin as _0x3ff253,PendingActions as _0x1ca644}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4964f4,ObservableMixin as _0x34315a,uid as _0x13e6cd,priorities as _0x5a134e,insertToPriorityArray as _0x2a3c9f,toArray as _0x450ade,logWarning as _0x588cb2,getEnvKeystrokeText as _0x50aa86,FocusTracker as _0x128746,KeystrokeHandler as _0x395a1f,Collection as _0x1d6967}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x30cac2,IconCancel as _0x54f76b,IconTrackChanges as _0xac9376}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x29e386,View as _0x5ab6e0,ViewCollection as _0x58401a,FocusCycler as _0x4ed098,UIModel as _0x4aa3c6,createDropdown as _0x49756b,SplitButtonView as _0x4bf0f9,addListToDropdown as _0x272a4e,MenuBarMenuView as _0xaa592d,MenuBarMenuListView as _0x10040f,ListSeparatorView as _0x56208f,MenuBarMenuListItemView as _0x34b94f,MenuBarMenuListItemButtonView as _0x29304c,BodyCollection as _0x54faef,Dialog as _0x3d43a3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x47590f,DocumentCompare as _0x4e924d,hashObject as _0x1133e6,surroundingMarkersDetector as _0x4566d8,FOCUS_ANNOTATION_KEYSTROKE as _0x59ea8b,AriaDescriptionView as _0xf50ffe,setupThreadKeyboardNavigation as _0x43d8a9,trimHtml as _0x47e25d,UserView as _0x160425,LateFocusButtonView as _0x29ae1c,getDateTimeFormatter as _0x1f0255,getAllMarkersDomElementsSorted as _0x2e076c,sanitizeEditorConfig as _0x26a146}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x4b3341,ModelLiveRange as _0x2d08fb,ModelLivePosition as _0x5a5ab4,ModelPosition as _0x3b90e7,ModelRange as _0x8685de,_DetachOperation as _0x78412,ViewDowncastWriter as _0x342669}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x46b1d6,toWidget as _0x581e21}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3a922d,set as _0x51c7eb,isEqual as _0x1593b8,unset as _0x5aaac8,omit as Kt}from'es-toolkit/compat';import{Delete as _0x86581d,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3ea759}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1fc43f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x197fe8{['_enabledCommands'];constructor(_0x5289cd,_0x2fd300){super(_0x5289cd),this['_enabledCommands']=_0x2fd300,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 _0x1920be of this['editor']['commands']['commands']())_0x1920be['affectsData']&&!this['_enabledCommands']['has'](_0x1920be)&&_0x1920be['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x148a33 of this['editor']['commands']['commands']())_0x148a33['affectsData']&&!this['_enabledCommands']['has'](_0x148a33)&&_0x148a33['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x197fe8{['_suggestions'];constructor(_0x50698f,_0x156a90){super(_0x50698f),this['_suggestions']=_0x156a90,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x298345){const _0x30ea37=this['_suggestions']['get'](_0x298345);if(!_0x30ea37)throw new _0x4964f4('track-changes-accept-suggestion-not-found',this);const _0x39eff8=_0x30ea37['getRanges']();this['editor']['model']['canEditAt'](_0x39eff8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x30ea37);}}class O extends _0x197fe8{['_suggestions'];constructor(_0x463d6a,_0x11affa){super(_0x463d6a),this['_suggestions']=_0x11affa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x109f5f){const _0x12fe39=this['_suggestions']['get'](_0x109f5f);if(!_0x12fe39)throw new _0x4964f4('track-changes-discard-suggestion-not-found',this);const _0x34a1a5=_0x12fe39['getRanges']();this['editor']['model']['canEditAt'](_0x34a1a5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x12fe39);}}function ls(_0x49c646,_0x58a70c){let _0x5baafa='';return _0x5baafa+=_0x49c646['split']('*')['map']((_0x2d9e2d,_0x5f20a1)=>_0x5f20a1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x2d9e2d)+'</span>':tn(_0x2d9e2d))['join'](''),_0x58a70c&&(_0x5baafa+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x58a70c['value']+'\x22\x20title=\x22'+_0x58a70c['title']+'\x22></span>'),_0x5baafa;}function tn(_0x3d5755){const _0x49d971=document['createElement']('span');return _0x49d971['innerText']=_0x3d5755,_0x49d971['innerHTML'];}function ts(_0x24939d){return _0x24939d['sort']((_0x3179d2,_0x11c337)=>'attribute'===_0x3179d2['type']&&'attribute'!==_0x11c337['type']?-0x1:'attribute'!==_0x3179d2['type']&&'attribute'===_0x11c337['type']?0x1:'deletion'==_0x3179d2['type']&&'deletion'!=_0x11c337['type']?-0x1:'deletion'!=_0x3179d2['type']&&'deletion'==_0x11c337['type']?0x1:0x0);}function to(_0x45ffc5,_0x1fb1b1){let _0x17ebdc,_0x250b69=0x0;const _0x1f1261=[],_0x1c35d8=_0x1fb1b1['schema'];for(;_0x250b69<_0x45ffc5['length'];){const _0x39cc8c=_0x45ffc5[_0x250b69],_0x21e99d=_0x45ffc5[_0x250b69+0x1];_0x17ebdc||(_0x17ebdc=_0x1fb1b1['createPositionBefore'](_0x39cc8c)),nn(_0x1fb1b1,_0x39cc8c,_0x21e99d)||(_0x1f1261['push'](_0x1fb1b1['createRange'](_0x17ebdc,_0x1c35d8['isObject'](_0x39cc8c)?_0x1fb1b1['createPositionAfter'](_0x39cc8c):_0x1fb1b1['createPositionAt'](_0x39cc8c,'end'))),_0x17ebdc=null),_0x250b69++;}return _0x1f1261;}function nn(_0x434e99,_0x2dc59c,_0x502a8f){if(!_0x502a8f)return!0x1;const _0x4a6f3f=_0x434e99['createPositionAfter'](_0x2dc59c),_0xb7bd87=_0x434e99['createPositionBefore'](_0x502a8f);return _0x4a6f3f['isTouching'](_0xb7bd87);}function rs(_0x31c3e2,_0x1bfb92,_0x2382da){for(;_0x2382da['length'];){const _0x569d47=_0x2382da['splice'](0x0,0x64);_0x31c3e2['change'](()=>{for(const _0x3e8a99 of _0x569d47)_0x3e8a99['isInContent']&&_0x1bfb92['execute'](_0x3e8a99['id']);});}}class x extends _0x197fe8{['_command'];['_suggestions'];constructor(_0x1b4ceb,_0x49df32,_0x4625b6){super(_0x1b4ceb),this['_command']=_0x49df32,this['_suggestions']=_0x4625b6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x59c599=Array['from'](this['_suggestions']['values']())['some'](_0x36bac3=>_0x36bac3['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x59c599;}['execute'](){const _0x1127f2=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2b7df7 of _0x1127f2){const _0x8d149f=_0x2b7df7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x8d149f))return;}rs(this['editor']['model'],this['_command'],_0x1127f2);}}class E extends _0x197fe8{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x476c9a,_0x138a0e,_0x2f49f7){super(_0x476c9a),this['_command']=_0x138a0e,this['_suggestions']=_0x2f49f7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x9eb44a=this['editor']['model']['document']['selection'],_0x269640=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1ff664,_0x2c7dfc){const _0x471f90=Array['from'](_0x1ff664['getRanges']()),_0x1a1f4f=new Set();for(const _0x2d3293 of _0x2c7dfc)if(_0x2d3293['isInContent']){for(const _0x45860a of _0x471f90)for(const _0xd296c of _0x2d3293['getRanges']())(_0x45860a['isIntersecting'](_0xd296c)||_0x1ff664['isCollapsed']&&!_0x2d3293['isMultiRange']&&_0x2d3293['next']&&_0xd296c['end']['isTouching'](_0x45860a['start']))&&_0x1a1f4f['add'](_0x2d3293);}return _0x1a1f4f;}(_0x9eb44a,_0x269640),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x30f564=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1deb25 of _0x30f564){const _0x19eaa8=_0x1deb25['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19eaa8))return;}rs(this['editor']['model'],this['_command'],_0x30f564);}}class R extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x34315a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x23b35a,_0x385d11){super(),this['id']=_0x385d11['id'],this['type']=_0x385d11['type'],this['subType']=_0x385d11['subType']||null,this['author']=_0x385d11['author'],this['creator']=_0x385d11['creator']||_0x385d11['author'],this['isExternal']=Boolean(_0x385d11['attributes']&&_0x385d11['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x385d11['originalSuggestionId']||null,this['_model']=_0x23b35a,this['_onAccept']=_0x385d11['onAccept'],this['_onDiscard']=_0x385d11['onDiscard'],this['_onAttributesChange']=_0x385d11['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x385d11['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 _0x37a316=this;for(;_0x37a316['previous'];)_0x37a316=_0x37a316['previous'];return _0x37a316;}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'](_0x3836f3){this['_markerNames']['add'](_0x3836f3);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xa97ae6=>this['_model']['markers']['get'](_0xa97ae6))['filter'](_0xd36be3=>_0xd36be3);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5b0c37=>{for(const _0x3112fb of this['getMarkers']())_0x5b0c37['removeMarker'](_0x3112fb);}),this['_markerNames']['clear']();}['removeMarker'](_0x386677){this['_model']['change'](_0x2cefae=>{_0x2cefae['removeMarker'](_0x386677);}),this['_markerNames']['delete'](_0x386677);}['addRange'](_0x378b60){const _0x3ef3f0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x3ef3f0),this['_model']['change'](_0x376b79=>{_0x376b79['addMarker'](_0x3ef3f0,{'range':_0x378b60,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x796d8e){for(const _0x17e9ee of this['getRanges']())if(_0x17e9ee['isIntersecting'](_0x796d8e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5d5246=>_0x5d5246['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4ad5f8,_0x52d52f)=>[..._0x4ad5f8,..._0x52d52f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x457a2d=this['getRanges']();if(0x1!=_0x457a2d['length'])return null;const _0x5ac102=_0x457a2d[0x0],_0x561b7e=_0x5ac102['start']['nodeAfter'],_0x511cc3=_0x5ac102['end']['nodeBefore'];return _0x561b7e instanceof _0x4b3341?_0x561b7e!=_0x511cc3?null:_0x561b7e: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 _0x3391f8=[];let _0x5a8361=this['head'];for(;_0x5a8361;)_0x3391f8['push'](_0x5a8361),_0x5a8361=_0x5a8361['next'];return _0x3391f8;}['setAttribute'](_0x38ae6a,_0x32c581){const _0x454f5e=_0x3a922d(this['attributes']);_0x51c7eb(_0x454f5e,_0x38ae6a,_0x32c581),_0x1593b8(_0x454f5e,this['attributes'])||(this['attributes']=_0x454f5e,this['_onAttributesChange'](_0x454f5e));}['removeAttribute'](_0xf0619e){const _0x92b145=_0x3a922d(this['attributes']);_0x5aaac8(_0x92b145,_0xf0619e),_0x1593b8(_0x92b145,this['attributes'])||(this['attributes']=_0x92b145,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 _0x13e6cd()['substr'](0x1,0x5);}}function o(_0x35cbac,_0x37bbc3,_0x43421b){const _0x4d60c0=_0x35cbac['t'],t=_0x35cbac['t'];switch(_0x37bbc3){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',_0x43421b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x43421b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x43421b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x43421b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x43421b);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',_0x43421b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x43421b);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',_0x43421b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x43421b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x43421b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x43421b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x43421b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x43421b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x43421b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x43421b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x43421b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x43421b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x43421b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x43421b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x43421b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x43421b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x43421b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x43421b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x43421b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x43421b);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'},_0x43421b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x43421b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x43421b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x43421b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x43421b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x43421b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x43421b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x43421b);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'},_0x43421b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x43421b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x43421b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x43421b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x43421b);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'},_0x43421b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x43421b);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'},_0x43421b);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'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x43421b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x43421b);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'},_0x43421b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x43421b);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'},_0x43421b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x43421b);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x43421b);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x43421b);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x43421b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x43421b);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'},_0x43421b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x43421b);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 _0x4d60c0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x43421b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4d60c0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x43421b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x43421b);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'},_0x43421b);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'},_0x43421b);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'},_0x43421b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x37bbc3;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2ba8da,_0x24adf3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2ba8da,this['_locale']=_0x24adf3;}['getDescriptions'](_0x589701){const _0x10180a=[],_0x6ca967=new Set(),_0x3a9eb2=new Set();for(let _0x5826ef=0x0;_0x5826ef<_0x589701['length'];_0x5826ef++){const _0x25f9fc=_0x589701[_0x5826ef];if(!_0x25f9fc['isInContent'])continue;const _0x19e091=this['_handleCustomCallbackDescription'](_0x25f9fc);if(_0x19e091){if(null!=_0x25f9fc['subType']){if(_0x6ca967['has'](_0x25f9fc['subType']))continue;_0x6ca967['add'](_0x25f9fc['subType']);}_0x10180a['push'](_0x19e091);}else{if('attribute'==_0x25f9fc['type']){const _0x18aa34=_0x25f9fc['data']['key'];if(_0x3a9eb2['has'](_0x18aa34))continue;_0x3a9eb2['add'](_0x25f9fc['data']['key']),_0x18aa34==m?this['_handleRenameSuggestionDescription'](_0x10180a,_0x25f9fc):this['_handleAttributeSuggestionDescription'](_0x10180a,_0x25f9fc);continue;}'insertion'!=_0x25f9fc['type']&&'deletion'!=_0x25f9fc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x10180a,_0x25f9fc,_0x589701[_0x5826ef+0x1]);}}return this['_resolveDescriptionItems'](_0x10180a);}['registerDescriptionCallback'](_0x4b6028){this['_customCallbacks']['push'](_0x4b6028);}['registerElementLabel'](_0x2bb4fd,_0x19d0cd,_0x215f6c=_0x5a134e['normal']){'function'==typeof _0x2bb4fd?_0x2a3c9f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2bb4fd,'label':_0x19d0cd,'priority':_0x215f6c}):this['_itemLabels']['set'](_0x2bb4fd,_0x19d0cd);}['registerAttributeLabel'](_0x3e2ec9,_0x78f2e5){this['_attributeLabels']['set'](_0x3e2ec9,_0x78f2e5);}['getItemLabel'](_0xde323a,_0x474fa5=0x1){let _0x259317;for(const _0xbaf7f5 of this['_itemLabelsCallbacks'])if(_0xbaf7f5['matchingCallback'](_0xde323a)){_0x259317=_0xbaf7f5['label'];break;}return _0x259317||(_0x259317=this['_itemLabels']['get'](_0xde323a['name'])),_0x259317?_0x259317(_0x474fa5):0x1!==_0x474fa5?_0x474fa5+'\x20'+_0xde323a['name']+'s':''+_0xde323a['name'];}['_addDescriptionItems'](_0x24f2e2,_0x574418){const _0x5be47e=_0x574418['getFirstRange']()['getWalker'](),_0x3b28dc='insertion'==_0x574418['type']?'add':'remove';for(const _0x44ef51 of _0x5be47e){const _0x305ab4=_0x44ef51['item'],_0x2aa720=_0x24f2e2[_0x24f2e2['length']-0x1];if(_0x305ab4['is']('$textProxy'))_0x2aa720&&_0x2aa720['type']['indexOf']('Container')>-0x1&&_0x24f2e2['pop'](),_0x2aa720&&'text'==_0x2aa720['type']?_0x2aa720[_0x3b28dc]+=_0x305ab4['data']:_0x24f2e2['push']({'type':'text','add':'add'==_0x3b28dc?_0x305ab4['data']:'','remove':'remove'==_0x3b28dc?_0x305ab4['data']:''});else{if(this['_schema']['isObject'](_0x305ab4)){const _0x27f821=_0x305ab4;if(_0x2aa720&&_0x2aa720['type']['indexOf']('Container')>-0x1&&_0x24f2e2['pop'](),'elementEnd'==_0x44ef51['type'])continue;_0x2aa720&&_0x2aa720['type']==_0x3b28dc+'Object'&&_0x2aa720['element']['name']==_0x27f821['name']?_0x2aa720['quantity']++:_0x24f2e2['push']({'type':_0x3b28dc+'Object','element':_0x27f821,'quantity':0x1}),_0x5be47e['skip'](_0xd78deb=>!('elementEnd'==_0xd78deb['type']&&_0xd78deb['item']==_0x305ab4));}else{if(this['_schema']['checkChild'](_0x305ab4,'$text')||_0x305ab4['is']('element','softBreak')){const _0x116b99=_0x305ab4;if('add'==_0x3b28dc&&'elementStart'==_0x44ef51['type']||'remove'==_0x3b28dc&&'elementEnd'==_0x44ef51['type'])continue;if(_0x2aa720&&-0x1==_0x2aa720['type']['indexOf']('Container')){'text'==_0x2aa720['type']&&(_0x2aa720[_0x3b28dc]+='\x0a');continue;}let _0x78a9de;if(_0x78a9de='add'==_0x3b28dc?_0x116b99['nextSibling']&&!this['_schema']['isObject'](_0x116b99['nextSibling'])?_0x116b99['nextSibling']:null:_0x116b99['previousSibling']&&!this['_schema']['isObject'](_0x116b99['previousSibling'])?_0x116b99['previousSibling']:null,_0x116b99['isEmpty']||_0x78a9de&&_0x78a9de['isEmpty']){const _0x2b7def=_0x78a9de&&_0x78a9de['isEmpty']?_0x78a9de:_0x116b99;_0x2aa720&&_0x2aa720['type']==_0x3b28dc+'EmptyContainer'&&_0x2aa720['element']['name']==_0x2b7def['name']?_0x2aa720['quantity']++:_0x24f2e2['push']({'type':_0x3b28dc+'EmptyContainer','element':_0x2b7def,'quantity':0x1});}else _0x24f2e2['push']({'type':_0x3b28dc+'Container','element':_0x116b99});}}}}}['_resolveDescriptionItems'](_0x2d3a00){const _0x5cd16f=this['_locale'],_0x26b029=[],_0x25b370=[],_0xe56f33=[];for(const _0x5a175b of _0x2d3a00)switch(_0x5a175b['type']){case'text':if(_0x5a175b['add']=_0x5a175b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5a175b['remove']=_0x5a175b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5a175b['add']&&''!=_0x5a175b['remove']){_0x26b029['push']({'type':'replace','content':o(_0x5cd16f,'REPLACE_TEXT',['\x22'+_0x5a175b['remove']+'\x22','\x22'+_0x5a175b['add']+'\x22'])});continue;}if(null!=_0x5a175b['add']['match'](/^ +$/)){_0x26b029['push']({'type':'insertion','content':o(_0x5cd16f,'*Insert:*\x20%0',o(_0x5cd16f,'ELEMENT_SPACE',_0x5a175b['add']['length']))});continue;}if(null!=_0x5a175b['remove']['match'](/^ +$/)){_0x26b029['push']({'type':'deletion','content':o(_0x5cd16f,'*Remove:*\x20%0',o(_0x5cd16f,'ELEMENT_SPACE',_0x5a175b['remove']['length']))});continue;}if(''!=_0x5a175b['add']){_0x26b029['push']({'type':'insertion','content':o(_0x5cd16f,'*Insert:*\x20%0','\x22'+_0x5a175b['add']+'\x22')});continue;}_0x26b029['push']({'type':'deletion','content':o(_0x5cd16f,'*Remove:*\x20%0','\x22'+_0x5a175b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x26b029['push']({'type':'insertion','content':o(_0x5cd16f,'*Insert:*\x20%0',this['getItemLabel'](_0x5a175b['element'],_0x5a175b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x26b029['push']({'type':'deletion','content':o(_0x5cd16f,'*Remove:*\x20%0',this['getItemLabel'](_0x5a175b['element'],_0x5a175b['quantity']))});continue;case'addContainer':_0x26b029['push']({'type':'insertion','content':o(_0x5cd16f,'*Split:*\x20%0',this['getItemLabel'](_0x5a175b['element'],_0x5a175b['quantity']))});continue;case'removeContainer':_0x26b029['push']({'type':'deletion','content':o(_0x5cd16f,'*Merge:*\x20%0',this['getItemLabel'](_0x5a175b['element'],_0x5a175b['quantity']))});continue;case'addFormat':_0x25b370['push'](_0x5a175b['key']);continue;case'removeFormat':_0xe56f33['push'](_0x5a175b['key']);continue;default:_0x26b029['push'](_0x5a175b);}if(_0x25b370['length']){const _0x28b1d1=_0x25b370['map'](_0x23a9ef=>this['_attributeLabels']['has'](_0x23a9ef)?this['_attributeLabels']['get'](_0x23a9ef):_0x23a9ef)['join'](',\x20');_0x26b029['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x28b1d1)});}if(_0xe56f33['length']){const _0x4eb820=_0xe56f33['map'](_0x37b07b=>this['_attributeLabels']['has'](_0x37b07b)?this['_attributeLabels']['get'](_0x37b07b):_0x37b07b)['join'](',\x20');_0x26b029['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4eb820)});}return _0x26b029;}['_handleCustomCallbackDescription'](_0x44bfa2){for(const _0x3fc8a2 of this['_customCallbacks']){const _0x4c2360=_0x3fc8a2(_0x44bfa2);if(_0x4c2360&&'type'in _0x4c2360)return _0x4c2360;}}['_handleAttributeSuggestionDescription'](_0x4d05e5,_0x3b1659){const _0x52cf22=_0x3b1659['data'],_0x363224=void 0x0===_0x52cf22['newValue']?'removeFormat':'addFormat';_0x4d05e5['push']({'type':_0x363224,'key':_0x52cf22['key']});}['_handleRenameSuggestionDescription'](_0x5d5c12,_0x2a97dd){_0x5d5c12['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2a97dd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2976f2,_0x3a7c3c,_0x1b9979){if(this['_addDescriptionItems'](_0x2976f2,_0x3a7c3c),_0x1b9979&&_0x1b9979['getFirstRange']()&&!_0x3a7c3c['getFirstRange']()['end']['isEqual'](_0x1b9979['getFirstRange']()['start'])){const _0x525843=_0x2976f2[_0x2976f2['length']-0x1],_0x150941='insertion'==_0x3a7c3c['type']?'add':'remove';_0x525843&&'text'==_0x525843['type']&&(_0x525843[_0x150941]+='\x0a');}}}class V extends _0x3ff253{['afterInit'](){const _0x4cde13=this['editor'],_0x4a1cc1=_0x4cde13['plugins']['get']('TrackChangesEditing');_0x4cde13['commands']['get']('showAIAssistant')&&_0x4a1cc1['enableCommand']('showAIAssistant');}}class F extends _0x3ff253{['afterInit'](){const _0x3aee34=this['editor'],_0x1877cf=_0x3aee34['plugins']['get']('TrackChangesEditing');_0x3aee34['commands']['get']('toggleAi')&&_0x1877cf['enableCommand']('toggleAi');}}class G extends _0x3ff253{['afterInit'](){const _0x46a0ff=this['editor'],_0x35f9fb=_0x46a0ff['plugins']['get']('TrackChangesEditing');_0x46a0ff['commands']['get']('aiQuickAction')&&_0x35f9fb['enableCommand']('aiQuickAction');}}class L extends _0x3ff253{['afterInit'](){const _0x22654e=this['editor'],_0x2d7b1f=_0x22654e['locale'];if(!_0x22654e['plugins']['has']('AlignmentEditing'))return;const _0x33fb43=_0x22654e['plugins']['get']('TrackChangesEditing');_0x33fb43['enableDefaultAttributesIntegration']('alignment'),_0x33fb43['registerBlockAttribute']('alignment'),_0x33fb43['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2d7b1f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x499c7a=this['editor'],_0x244a27=_0x499c7a['locale'];_0x499c7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe57183=>{if('formatBlock'!=_0xe57183['type'])return;const {data:_0x1ab24e}=_0xe57183;if(_0x1ab24e&&'alignment'==_0x1ab24e['commandName']){const _0x4732be=_0x1ab24e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x244a27,'*Format:*\x20%0',function(_0x26062b){switch(_0x26062b){case'left':return o(_0x244a27,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x244a27,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x244a27,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x244a27,'FORMAT_JUSTIFY_TEXT');}}(_0x4732be))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x3ff253{['afterInit'](){const _0xcb494f=this['editor'],_0x385536=_0xcb494f['plugins']['get']('TrackChangesEditing'),_0x392cae=_0xcb494f['locale'];for(const _0x232474 of ti){if(!_0xcb494f['plugins']['has'](_0x232474))continue;const _0x1d784e=_0x232474['slice'](0x0,-0x7)['toLowerCase'](),_0x3bcc61='FORMAT_'+_0x1d784e['toUpperCase']();_0x385536['enableDefaultAttributesIntegration'](_0x1d784e),_0x385536['registerInlineAttribute'](_0x1d784e),_0x385536['descriptionFactory']['registerAttributeLabel'](_0x1d784e,o(_0x392cae,_0x3bcc61));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a3dcc=this['editor'],_0x5a34e5=_0x1a3dcc['locale'],_0x643c3c=_0x1a3dcc['plugins']['get']('TrackChangesEditing');function _0x450d44(_0x265798,_0x4468f7){_0x643c3c['descriptionFactory']['registerDescriptionCallback'](_0xf161b7=>{if('formatInline'!=_0xf161b7['type'])return;const {data:_0x2fb4f9}=_0xf161b7;return _0x2fb4f9&&_0x2fb4f9['commandName']===_0x265798?_0x2fb4f9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a34e5,'*Format:*\x20%0',_0x4468f7)}:{'type':'format','content':o(_0x5a34e5,'*Remove\x20format:*\x20%0',_0x4468f7)}:void 0x0;});}_0x450d44('bold',o(_0x5a34e5,'FORMAT_BOLD')),_0x450d44('italic',o(_0x5a34e5,'FORMAT_ITALIC')),_0x450d44('underline',o(_0x5a34e5,'FORMAT_UNDERLINE')),_0x450d44('code',o(_0x5a34e5,'FORMAT_CODE')),_0x450d44('strikethrough',o(_0x5a34e5,'FORMAT_STRIKETHROUGH')),_0x450d44('subscript',o(_0x5a34e5,'FORMAT_SUBSCRIPT')),_0x450d44('superscript',o(_0x5a34e5,'FORMAT_SUPERSCRIPT'));}}class K extends _0x3ff253{['afterInit'](){const _0x464fa9=this['editor'],_0x373089=_0x464fa9['locale'];if(!_0x464fa9['plugins']['has']('BlockQuoteEditing'))return;const _0x391c8f=_0x464fa9['plugins']['get']('TrackChangesEditing'),_0xd9e371=this['editor']['commands']['get']('blockQuote');_0x391c8f['enableCommand']('blockQuote',(_0x2fc75f,_0x50e449={})=>{const _0x1121be=this['editor']['model']['document']['selection'],_0x1d43a5=_0x50e449&&void 0x0!==_0x50e449['forceValue']?_0x50e449['forceValue']:!_0xd9e371['value'];let _0x53fe7c=[];if(_0x1d43a5){const _0x177748=Array['from'](_0x1121be['getSelectedBlocks']())['filter'](_0xb3981=>oo(_0xb3981)||function(_0xbe6d6c,_0x1234c2){const _0x3c594b=_0x1234c2['checkChild'](_0xbe6d6c['parent'],'blockQuote'),_0x26d95e=_0x1234c2['checkChild'](['$root','blockQuote'],_0xbe6d6c);return _0x3c594b&&_0x26d95e;}(_0xb3981,this['editor']['model']['schema']));_0x53fe7c=to(_0x177748,_0x464fa9['model']);}else{const _0x1f8daa=Array['from'](_0x1121be['getSelectedBlocks']())['filter'](_0x4245be=>oo(_0x4245be));_0x53fe7c=to(_0x1f8daa,_0x464fa9['model']);}_0x464fa9['model']['change'](()=>{for(const _0x545008 of _0x53fe7c)_0x391c8f['markBlockFormat'](_0x545008,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1d43a5}]});});}),_0x391c8f['descriptionFactory']['registerDescriptionCallback'](_0x236b4f=>{const {data:_0x2d7991}=_0x236b4f;if(_0x2d7991&&'blockQuote'==_0x2d7991['commandName']){const _0x5b3de4=o(_0x373089,'ELEMENT_BLOCK_QUOTE');return _0x2d7991['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x373089,'*Set\x20format:*\x20%0',_0x5b3de4)}:{'type':'format','content':o(_0x373089,'*Remove\x20format:*\x20%0',_0x5b3de4)};}});}}function oo(_0x2f435c){return'blockQuote'==_0x2f435c['parent']['name'];}class q extends _0x3ff253{['afterInit'](){const _0x14676c=this['editor'],_0x173e42=_0x14676c['locale'],_0x41bf01=_0x14676c['plugins']['get']('TrackChangesEditing');_0x14676c['plugins']['has']('BookmarkEditing')&&(_0x41bf01['enableCommand']('insertBookmark'),_0x41bf01['enableDefaultAttributesIntegration']('updateBookmark'),_0x41bf01['registerBlockAttribute']('bookmarkId'),_0x41bf01['descriptionFactory']['registerDescriptionCallback'](_0x5214b4=>{if('insertion'!=_0x5214b4['type']&&'deletion'!=_0x5214b4['type']&&'attribute'!=_0x5214b4['type'])return;const _0x5c2d3b=_0x5214b4['getContainedElement']();if(null==_0x5c2d3b)return;if(!_0x5c2d3b['is']('element','bookmark'))return;const _0x3bc70e=_0x5c2d3b['getAttribute']('bookmarkId');if('insertion'==_0x5214b4['type'])return{'type':'insertion','content':o(_0x173e42,'*Insert:*\x20%0','\x22'+_0x3bc70e+'\x22\x20'+o(_0x173e42,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5214b4['type'])return{'type':'deletion','content':o(_0x173e42,'*Remove:*\x20%0','\x22'+_0x3bc70e+'\x22\x20'+o(_0x173e42,'ELEMENT_BOOKMARK'))};const {data:_0x2032b2}=_0x5214b4;if(!_0x2032b2||'bookmarkId'!=_0x2032b2['key'])return;return{'type':'format','content':o(_0x173e42,'*Set\x20bookmark:*\x20%0','\x22'+_0x2032b2['newValue']+'\x22')};}));}}class H extends _0x3ff253{['afterInit'](){const _0xde7b4c=this['editor'];_0xde7b4c['plugins']['has']('CaseChange')&&(_0xde7b4c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xde7b4c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xde7b4c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x3ff253{['afterInit'](){const _0x1f8609=this['editor'];_0x1f8609['commands']['get']('ckbox')&&_0x1f8609['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x3ff253{['afterInit'](){const _0x2605bd=this['editor'];if(!_0x2605bd['plugins']['has']('CodeBlock'))return;const _0x2e47aa=_0x2605bd['plugins']['get']('TrackChangesEditing'),_0x49e5c1=_0x2605bd['locale'],_0x258e19=_0x2605bd['config']['get']('codeBlock')['languages'],_0x1d4d88=_0x2605bd['commands']['get']('codeBlock');_0x2e47aa['enableCommand']('indentCodeBlock'),_0x2e47aa['enableCommand']('outdentCodeBlock'),_0x2e47aa['enableCommand']('codeBlock',(_0xadd444,_0x2a8d2e={})=>{const _0x2d6cc4=_0x2605bd['model'],_0x224db1=_0x2605bd['model']['document']['selection'],_0x39b378=_0x2a8d2e&&void 0x0!==_0x2a8d2e['forceValue']?_0x2a8d2e['forceValue']:!_0x1d4d88['value'];let _0xa0049a;_0x2a8d2e['language']||(_0x2a8d2e['language']=_0x258e19[0x0]['language']),_0xa0049a=_0x39b378?Array['from'](_0x224db1['getSelectedBlocks']())['filter'](_0x1bc26f=>co(_0x1bc26f)||function(_0x39567f,_0x86d44d){if(_0x39567f['is']('rootElement')||_0x86d44d['isLimit'](_0x39567f))return!0x1;return _0x86d44d['checkChild'](_0x39567f['parent'],'codeBlock');}(_0x1bc26f,_0x2d6cc4['schema'])):Array['from'](_0x224db1['getSelectedBlocks']())['filter'](_0x33a0cf=>co(_0x33a0cf));const _0x32daa4=to(_0xa0049a,_0x2d6cc4);_0x2d6cc4['change'](()=>{for(const _0x1f39ae of _0x32daa4)_0x2e47aa['markBlockFormat'](_0x1f39ae,{'commandName':'codeBlock','commandParams':[{..._0x2a8d2e,'forceValue':_0x39b378}],'formatGroupId':'blockName'});});}),(_0x2e47aa['descriptionFactory']['registerElementLabel']('codeBlock',_0x10882a=>o(_0x49e5c1,'ELEMENT_CODE_BLOCK',_0x10882a)),_0x2e47aa['descriptionFactory']['registerDescriptionCallback'](_0x542705=>{if('formatBlock'!=_0x542705['type'])return;const _0x28cc35=_0x49e5c1['t'],{data:_0x4c59df}=_0x542705;if(!_0x4c59df||'codeBlock'!=_0x4c59df['commandName'])return;const _0x3abe3d=_0x4c59df['commandParams'][0x0]['language'],_0x28c601=_0x28cc35(_0x258e19['find'](_0x43aab8=>_0x43aab8['language']===_0x3abe3d)['label'])['toLowerCase']();return _0x4c59df['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49e5c1,'*Set\x20format:*\x20%0',o(_0x49e5c1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x28c601+')')}:{'type':'format','content':o(_0x49e5c1,'*Remove\x20format:*\x20%0',o(_0x49e5c1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x2a9033){return'codeBlock'==_0x2a9033['name'];}class Q extends _0x3ff253{['afterInit'](){const _0x4b775a=this['editor'];if(!_0x4b775a['plugins']['has']('CommentsEditing'))return;_0x4b775a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x588fff,_0x42bae2,_0x1e53cc){const _0x103550=[];for(const _0x7bee25 of _0x42bae2['getItems']())_0x7bee25['hasAttribute'](_0x588fff)&&_0x103550['push'](_0x1e53cc['createRangeOn'](_0x7bee25));return _0x103550;}function Ve(_0x1474ab,_0x1445d5,{showActiveMarker:_0x5561fc=!0x0}={}){const _0x3d46c8=_0x1474ab['plugins']['get']('TrackChangesEditing');return(_0x4e4d4a,_0x583462,_0x5882a0)=>{if(!_0x5882a0['consumable']['test'](_0x583462['markerRange'],_0x4e4d4a['name']))return;const _0x5362fd=_0x583462['markerRange']['getWalker'](),_0x1cd2ba=_0x583462['markerRange']['start'],_0x3d1701=_0x1474ab['model']['schema'];let _0x4ef5f3=null,_0x545386=null,_0x5d999b=!0x1,_0x61398e=!0x1;for(const _0x3eb2a2 of _0x5362fd){const _0x568d39=_0x3eb2a2['item'];_0x5d999b=_0x5d999b||_0x3d1701['isContent'](_0x568d39);const _0x101da8=_0x5882a0['mapper']['toViewElement'](_0x568d39);if(_0x101da8&&_0x101da8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3eb2a2['type']&&(_0x3d1701['isBlock'](_0x568d39)&&!_0x3d1701['isLimit'](_0x568d39)&&(_0x568d39['nextSibling']||_0x1cd2ba['isAtEnd']?_0x4ef5f3&&_0x4ef5f3['parent']==_0x568d39||(_0x4ef5f3=_0x568d39,_0x4d065e(_0x3eb2a2['previousPosition']),_0x61398e=!0x0):_0x545386=_0x545386||_0x3eb2a2['previousPosition']));}function _0x4d065e(_0xf40e55){const {id:_0x2543d6,authorId:_0x28fe77}=_0x3d46c8['_splitMarkerName'](_0x583462['markerName']),_0x29b341=_0x5882a0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1445d5,'data-suggestion':_0x2543d6,'data-author-id':_0x28fe77}),_0x552597=_0x5882a0['mapper']['toViewPosition'](_0xf40e55);_0x5561fc&&_0x3d46c8['activeMarkers']['includes'](_0x583462['markerName'])&&_0x5882a0['writer']['addClass']('ck-suggestion-marker--active',_0x29b341),_0x5882a0['writer']['insert'](_0x552597,_0x29b341),_0x5882a0['mapper']['bindElementToMarker'](_0x29b341,_0x583462['markerName']);}_0x5d999b||_0x61398e||!_0x545386||_0x4d065e(_0x545386);};}class X extends _0x3ff253{static get['requires'](){return[_0x86581d];}['init'](){const _0x526e1e=this['editor'],_0x9ed400=_0x526e1e['plugins']['get']('TrackChangesEditing');_0x9ed400['enableCommand']('delete');const _0x3094c0=_0x526e1e['commands']['get']('deleteForward');_0x9ed400['enableCommand']('deleteForward',(_0xd21cb7,_0x35e931={})=>{const _0x18cc08=_0x526e1e['model']['createSelection'](_0x526e1e['model']['document']['selection']);_0x18cc08['isCollapsed']&&_0x526e1e['model']['modifySelection'](_0x18cc08,{'direction':'forward','unit':_0x35e931['unit']});const _0x15bedc=_0x18cc08['getFirstRange'](),_0x377ba1=_0x2d08fb['fromRange'](_0x15bedc);let _0x3ce9fd;_0xd21cb7(_0x35e931),_0x3ce9fd='$graveyard'==_0x377ba1['root']['rootName']?_0x526e1e['model']['createRange'](_0x15bedc['start']):_0x526e1e['model']['createRange'](_0x377ba1['start'],_0x377ba1['end']),_0x377ba1['detach'](),_0x526e1e['model']['enqueueChange'](_0x3094c0['buffer']['batch'],_0x1506f8=>{_0x3094c0['buffer']['lock'](),_0x1506f8['setSelection'](_0x1506f8['createRange'](_0x3ce9fd['end'])),_0x3094c0['buffer']['unlock']();});}),_0x526e1e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x526e1e,'merge'),{'priority':'high'}),_0x526e1e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x30ed69,_0xc8e750,_0x38a4d1)=>{_0x38a4d1['options']['showSuggestionHighlights']&&Ve(_0x526e1e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x30ed69,_0xc8e750,_0x38a4d1);},{'priority':'high'}),_0x526e1e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3b100d,_0x418279,_0x44c8a5)=>{const _0x5a4f29=_0x44c8a5['mapper']['markerNameToElements'](_0x418279['markerName']);if(_0x5a4f29){for(const _0x4b9a73 of _0x5a4f29)_0x4b9a73['is']('uiElement')&&(_0x44c8a5['mapper']['unbindElementFromMarkerName'](_0x4b9a73,_0x418279['markerName']),_0x44c8a5['writer']['remove'](_0x4b9a73));}},{'priority':'high'});}}class Y extends _0x3ff253{['afterInit'](){const _0xcafe42=this['editor'];if(!_0xcafe42['plugins']['has']('ListEditing'))return;const _0xf04e17=_0xcafe42['locale'],_0x58b67a=_0xcafe42['plugins']['get']('TrackChangesEditing'),_0x4387cd=_0xcafe42['plugins']['has']('TodoListEditing'),_0x3bfb82=!!_0xcafe42['config']['get']('list.multiBlock');function _0x15c1ea(_0x396d1f){return{'type':'format','content':''+o(_0xf04e17,'*Set\x20format:*\x20%0',_0x396d1f)};}function _0x2b5492(_0x2d4ca1){return{'type':'format','content':''+o(_0xf04e17,'*Remove\x20format:*\x20%0',_0x2d4ca1)};}_0x58b67a['enableDefaultAttributesIntegration']('numberedList'),_0x58b67a['enableDefaultAttributesIntegration']('bulletedList'),_0x58b67a['enableDefaultAttributesIntegration']('customNumberedList'),_0x58b67a['enableDefaultAttributesIntegration']('customBulletedList'),_0x58b67a['enableDefaultAttributesIntegration']('indentList'),_0x58b67a['enableDefaultAttributesIntegration']('outdentList'),_0x58b67a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x58b67a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x58b67a['registerBlockAttribute']('listItemId'),_0x58b67a['registerBlockAttribute']('listType'),_0x58b67a['registerBlockAttribute']('listIndent'),_0x3bfb82&&(_0x58b67a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x58b67a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4387cd&&(_0x58b67a['enableDefaultAttributesIntegration']('todoList'),_0x58b67a['enableDefaultAttributesIntegration']('checkTodoList'),_0x58b67a['registerBlockAttribute']('todoListChecked'),_0x58b67a['descriptionFactory']['registerDescriptionCallback'](_0x300d28=>{const {data:_0x4ae5d2}=_0x300d28;if(_0x4ae5d2&&'todoListChecked'==_0x4ae5d2['key'])return{'type':'format','content':_0x4ae5d2['newValue']?o(_0xf04e17,'*Check\x20item*'):o(_0xf04e17,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x345ed6=>{if(_0x345ed6['batch']['isUndo'])return!0x1;let _0x4595fb=!0x1;const _0x3f2aa4=_0x58b67a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b2b15=>'todoListChecked'===_0x58b67a['_getAttributeKey'](_0x1b2b15));for(const _0x3975e5 of _0x3f2aa4){'todo'!=_0x3975e5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x58b67a['_findSuggestions'](_0x3975e5['getFirstRange'](),'attribute')['find'](_0x57ac4e=>'listType'===_0x58b67a['_getAttributeKey'](_0x57ac4e['suggestion']))||(_0x345ed6['removeMarker'](_0x3975e5['getFirstMarker']()),_0x4595fb=!0x0));}return _0x4595fb;})),_0x58b67a['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xf04e17,'FORMAT_INDENT'));const _0x5d7979={'type':'format','content':''};_0x58b67a['descriptionFactory']['registerDescriptionCallback'](_0x940464=>{const {data:_0x57b6ee}=_0x940464;if(!_0x57b6ee||'listType'!=_0x57b6ee['key'])return;let _0x647a53=_0x940464['head'];for(;_0x647a53;){if(_0x647a53['data']&&(('listStyle'==_0x647a53['data']['key']||'listMarkerStyle'==_0x647a53['data']['key'])&&(_0x647a53['data']['newValue']&&'default'!=_0x647a53['data']['newValue']||'default'!=_0x647a53['data']['oldValue']&&!_0x57b6ee['newValue'])||!_0x3bfb82&&_0x647a53['data']['key']==m))return _0x5d7979;_0x647a53=_0x647a53['next'];}if(null==_0x57b6ee['newValue'])switch(_0x57b6ee['oldValue']){case'bulleted':return _0x2b5492(o(_0xf04e17,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b5492(o(_0xf04e17,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b5492(o(_0xf04e17,'ELEMENT_TODO_LIST'));}switch(_0x57b6ee['newValue']){case'bulleted':return _0x15c1ea(o(_0xf04e17,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15c1ea(o(_0xf04e17,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15c1ea(o(_0xf04e17,'ELEMENT_TODO_LIST'));}}),_0x58b67a['descriptionFactory']['registerDescriptionCallback'](_0x49364e=>{const {data:_0x317137}=_0x49364e;if(_0x317137&&'listIndent'==_0x317137['key'])return null==_0x317137['newValue']||null==_0x317137['oldValue']&&0x0==_0x317137['newValue']?_0x5d7979:void 0x0;}),_0x58b67a['descriptionFactory']['registerDescriptionCallback'](_0x3db4b1=>{if('attribute'!=_0x3db4b1['type'])return;const {data:_0x459483}=_0x3db4b1;if(!_0x459483||'listItemId'!=_0x459483['key'])return;const _0x10a82f=Be(_0x3db4b1);return'newValue'==_0x10a82f?{'type':'format','content':o(_0xf04e17,'*Merge:*\x20list\x20item')}:'oldValue'==_0x10a82f?{'type':'format','content':o(_0xf04e17,'*Split:*\x20list\x20item')}:_0x5d7979;}),_0xcafe42['model']['document']['registerPostFixer'](_0x52d7a7=>this['listItemIdFixer'](_0x52d7a7)),_0xcafe42['model']['document']['registerPostFixer'](_0x228c8b=>this['noTrackChangesFixer'](_0x228c8b)),_0xcafe42['model']['document']['on']('change:data',(_0x55371e,_0x389773)=>{if(_0x389773['isUndo']||!_0x389773['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1591bb){if(_0x1591bb['batch']['isUndo']||!_0x1591bb['batch']['isLocal'])return!0x1;let _0x41f6c8=!0x1;const _0x3a65bf=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c1c8b=>_0x3c1c8b['data']&&'listItemId'==_0x3c1c8b['data']['key'])['filter'](_0x42d30e=>_0x42d30e['data']['newValue']&&_0x42d30e['data']['oldValue']);for(const _0x1e27fb of _0x3a65bf)Be(_0x1e27fb)||(_0x1591bb['removeMarker'](_0x1e27fb['getFirstMarker']()),_0x41f6c8=!0x0);return _0x41f6c8;}['noTrackChangesFixer'](_0x45e67d){if(_0x45e67d['batch']['isUndo']||!_0x45e67d['batch']['isLocal'])return!0x1;const _0xb08435=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xb08435['trackChangesCommand']['value'])return!0x1;let _0x1b83ef=!0x1;const _0x1a8b86=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4931bb=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x38d7dc=>'attribute'==_0x38d7dc['type'])['filter'](_0x331637=>_0x1a8b86['includes'](_0x331637['attributeKey']));if(0x0==_0x4931bb['length'])return _0x1b83ef;for(const _0x2640de of _0x4931bb){const _0xeca6e3=_0xb08435['_findSuggestions'](_0x2640de['range'],'attribute')['filter'](_0x20fadc=>!_0x20fadc['meta']['isNextTo'])['map'](_0x59fcf0=>_0x59fcf0['suggestion'])['filter'](_0x36cd81=>{const _0xe41aea=_0xb08435['_getAttributeKey'](_0x36cd81);return _0x1a8b86['includes'](_0xe41aea);});if(_0xeca6e3['length']){for(const _0xef8a09 of _0xeca6e3)_0x45e67d['removeMarker'](_0xef8a09['getFirstMarker']());_0x1b83ef=!0x0;}}return _0x1b83ef;}['assureChains'](){const _0x4e7d14=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d1b41=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2c997d;const _0xfe8dc8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x45c4c8=>{if(_0x45c4c8['data']['oldRange']||!_0x45c4c8['data']['newRange'])return null;if(!_0x45c4c8['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x9dd8fe}=_0x4e7d14['_splitMarkerName'](_0x45c4c8['name']);if(!_0x4e7d14['hasSuggestion'](_0x9dd8fe))return null;const _0x331ec8=_0x4e7d14['getSuggestion'](_0x9dd8fe);return _0x4d1b41['includes'](_0x331ec8['data']['key']);})['map'](_0x3cbfec=>{const {id:_0x424914}=_0x4e7d14['_splitMarkerName'](_0x3cbfec['name']),_0x7d525c=_0x4e7d14['getSuggestion'](_0x424914);return _0x2c997d=_0x7d525c['attributes']['groupId'],_0x7d525c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xfe8dc8['size'])return;const _0x461c3a=_0x4e7d14['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb71d6c=>'attribute'==_0xb71d6c['type']&&_0xb71d6c['data']&&_0x4d1b41['includes'](_0xb71d6c['data']['key'])&&_0xb71d6c['attributes']['groupId']!=_0x2c997d)['map'](_0x401433=>({'listItem':_0x401433['getFirstRange']()['start']['nodeAfter'],'groupId':_0x401433['attributes']['groupId']})),_0x29eeea=new Set();for(const {groupId:_0x400517,listItem:_0x3071dd}of _0x461c3a)_0xfe8dc8['has'](_0x3071dd)&&_0x29eeea['add'](_0x400517);for(const _0x37d725 of _0x4e7d14['getSuggestions']())_0x29eeea['has'](_0x37d725['attributes']['groupId'])&&_0x37d725['setAttribute']('groupId',_0x2c997d);}['_supportLegacySuggestions'](){const _0x4a0639=this['editor'],_0x4908d7=_0x4a0639['locale'],_0x2220ea=_0x4a0639['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2220ea['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x432ea7,_0x254519){const _0x5d14ad=[];for(let _0x17c61e of _0x432ea7)_0x17c61e['start']['nodeAfter']===_0x17c61e['end']['parent']&&(_0x17c61e=_0x4a0639['model']['createRange'](_0x4a0639['model']['createPositionAt'](_0x17c61e['start']['nodeAfter'],0x0))),_0x5d14ad['push'](_0x17c61e);_0x4a0639['model']['change'](_0x4cd888=>{const _0x249d0e=_0x4a0639['model']['document']['selection'],_0x4bc796=Array['from'](_0x249d0e['getRanges']())['map'](_0xb2cea0=>_0x2d08fb['fromRange'](_0xb2cea0));_0x4cd888['setSelection'](_0x5d14ad),_0x4a0639['commands']['get'](_0x254519['commandName'])['refresh'](),_0x254519['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a0639['execute'](_0x254519['commandName'],..._0x254519['commandParams']),_0x4cd888['setSelection'](_0x4bc796);for(const _0x4af886 of _0x4bc796)_0x4af886['detach']();});}),_0x2220ea['descriptionFactory']['registerElementLabel'](function(_0x33a538){const _0x167698=!_0x4a0639['model']['schema']['isObject'](_0x33a538),_0x2db4ac=_0x33a538['previousSibling'],_0x91fba9=_0x33a538['nextSibling'],_0x3be98c=_0x33a538['getAttribute']('listItemId'),_0x86fc31=!_0x2db4ac||_0x2db4ac['getAttribute']('listItemId')!==_0x3be98c,_0x17c112=!_0x91fba9||_0x91fba9['getAttribute']('listItemId')!==_0x3be98c;return _0x167698&&Boolean(_0x3be98c)&&_0x86fc31&&_0x17c112;},_0x518a59=>o(_0x4908d7,'ELEMENT_LIST_ITEM',_0x518a59));}['_registerLegacyDescription'](){const _0x5cd31b=this['editor'],_0x2890f7=_0x5cd31b['locale'];function _0x530e78(_0x38b787){const _0x2fe21f=_0x5cd31b['commands']['get']('bulletedList')['value'],_0x460761=_0x5cd31b['commands']['get']('numberedList')['value'];return'numberedList'===_0x38b787?_0x2fe21f:_0x460761;}_0x5cd31b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2c7253){if('formatBlock'!=_0x2c7253['type'])return;const {data:_0x3a5f26}=_0x2c7253;if(!_0x3a5f26)return;let _0x26209c,_0x2bb2a9,_0x295c07,_0x1202cc;switch(_0x3a5f26['commandName']){case'bulletedList':_0x295c07=_0x3a5f26['commandParams'][0x0]['forceValue'],_0x1202cc=_0x530e78(_0x3a5f26['commandName']),_0x26209c=_0x295c07?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1202cc&&_0x5cd31b['config']['get']('list.multiBlock')||(_0x26209c='*Change\x20to:*\x20%0'),_0x2bb2a9={'type':'format','content':o(_0x2890f7,_0x26209c,o(_0x2890f7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x295c07=_0x3a5f26['commandParams'][0x0]['forceValue'],_0x1202cc=_0x530e78(_0x3a5f26['commandName']),_0x26209c=_0x295c07?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1202cc&&_0x5cd31b['config']['get']('list.multiBlock')||(_0x26209c='*Change\x20to:*\x20%0'),_0x2bb2a9={'type':'format','content':o(_0x2890f7,_0x26209c,o(_0x2890f7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x26209c='*Indent:*\x20%0',_0x2bb2a9={'type':'format','content':o(_0x2890f7,_0x26209c,o(_0x2890f7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x26209c=function(_0x4c2602){const _0x5acde0=_0x4c2602['getFirstRange']();let _0x2a8501=_0x5acde0['start']['nodeAfter'];for(;_0x2a8501&&_0x5acde0['containsItem'](_0x2a8501);){if(_0x2a8501['getAttribute']('listIndent')>0x0)return!0x1;_0x2a8501=_0x2a8501['nextSibling'];}return!0x0;}(_0x2c7253)?o(_0x2890f7,'*Format:*\x20remove\x20from\x20%0',o(_0x2890f7,function(_0x3dca29){return'ELEMENT_'+_0x3dca29['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2c7253))):o(_0x2890f7,'*Outdent:*\x20%0',o(_0x2890f7,'ELEMENT_LIST_ITEM')),_0x2bb2a9={'type':'format','content':_0x26209c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3a5f26['multipleBlocks']&&(_0x26209c='*Merge:*\x20%0',_0x2bb2a9={'type':'deletion','content':o(_0x2890f7,_0x26209c,o(_0x2890f7,'ELEMENT_LIST_ITEM'))});}return _0x2bb2a9;});}}function Be(_0x15b806){let _0x3b4097=_0x15b806['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3b4097;){const _0x3d2269=_0x3b4097['getAttribute']('listItemId');if(!_0x3d2269)return!0x1;if(_0x3d2269==_0x15b806['data']['newValue'])return'newValue';if(_0x3d2269==_0x15b806['data']['oldValue'])return'oldValue';_0x3b4097=_0x3b4097['previousSibling'];}return!0x1;}class Z extends _0x3ff253{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x24bf6c=this['editor']['config']['get']('list.properties'),_0x227439=this['editor']['plugins']['get']('TrackChangesEditing');_0x24bf6c['styles']&&(_0x227439['enableDefaultAttributesIntegration']('listStyle'),_0x227439['registerBlockAttribute']('listStyle')),_0x24bf6c['reversed']&&(_0x227439['enableDefaultAttributesIntegration']('listReversed'),_0x227439['registerBlockAttribute']('listReversed')),_0x24bf6c['startIndex']&&(_0x227439['enableDefaultAttributesIntegration']('listStart'),_0x227439['registerBlockAttribute']('listStart'));const _0x3cbf06={'type':'format','content':''};_0x227439['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2ce9da=this['editor']['locale'];_0x227439['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2ce9da,'FORMAT_LIST_REVERSED')),_0x227439['descriptionFactory']['registerDescriptionCallback'](_0x55f18d=>{const {data:_0x23699e}=_0x55f18d;if(_0x23699e&&'listReversed'==_0x23699e['key'])return null==_0x23699e['newValue']||0x0==_0x23699e['newValue']&&null==_0x23699e['oldValue']?_0x3cbf06:void 0x0;}),_0x227439['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2ce9da,'FORMAT_LIST_START')),_0x227439['descriptionFactory']['registerDescriptionCallback'](_0x29c865=>{const {data:_0x135cac}=_0x29c865;if(_0x135cac&&'listStart'==_0x135cac['key'])return null==_0x135cac['newValue']||0x1==_0x135cac['newValue']&&null==_0x135cac['oldValue']?_0x3cbf06:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1776c8=>{if(_0x1776c8['batch']['isUndo'])return!0x1;let _0x4d42a7=!0x1;const _0x22cc2c=_0x227439['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1064a9=>{const _0x91f937=_0x227439['_getAttributeKey'](_0x1064a9);return'listStart'==_0x91f937||'listReversed'==_0x91f937;});for(const _0x286bfb of _0x22cc2c){const _0x23d79d=_0x286bfb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x23d79d||'customNumbered'==_0x23d79d)continue;_0x227439['_findSuggestions'](_0x286bfb['getFirstRange'](),'attribute')['find'](_0x5f32e2=>'listType'==_0x227439['_getAttributeKey'](_0x5f32e2['suggestion']))||(_0x1776c8['removeMarker'](_0x286bfb['getFirstMarker']()),_0x4d42a7=!0x0);}return _0x4d42a7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xd807f0){const _0x5b9b84=this['editor']['locale'],{data:_0x5c45ad}=_0xd807f0,_0x2cfd0b={'type':'format','content':''};if(!_0x5c45ad||'listStyle'!=_0x5c45ad['key'])return;if(!_0x5c45ad['oldValue'])return'default'==_0x5c45ad['newValue']?_0x2cfd0b:{'type':'format','content':''+o(_0x5b9b84,'*Set\x20format:*\x20%0',o(_0x5b9b84,this['_getTranslationKeyForListStyle'](_0x5c45ad['newValue'])))};if(!_0x5c45ad['newValue']){if('default'==_0x5c45ad['oldValue'])return _0x2cfd0b;let _0x353d60=_0xd807f0['head'];for(;_0x353d60;){if(_0x353d60['data']&&'listType'==_0x353d60['data']['key']&&_0x353d60['data']['newValue'])return _0x2cfd0b;_0x353d60=_0x353d60['next'];}return{'type':'format','content':''+o(_0x5b9b84,'*Remove\x20format:*\x20%0',o(_0x5b9b84,this['_getTranslationKeyForListStyle'](_0x5c45ad['oldValue'])))};}if('default'!=_0x5c45ad['newValue'])return{'type':'format','content':''+o(_0x5b9b84,'*Set\x20format:*\x20%0',o(_0x5b9b84,this['_getTranslationKeyForListStyle'](_0x5c45ad['newValue'])))};let _0x664266=_0xd807f0['head'];for(;_0x664266;){if(_0x664266['data']&&'listType'==_0x664266['data']['key']&&_0x664266['data']['newValue']&&_0x664266['data']['oldValue'])return _0x2cfd0b;_0x664266=_0x664266['next'];}return{'type':'format','content':o(_0x5b9b84,'*Set\x20format:*\x20%0',o(_0x5b9b84,'ELEMENT_'+_0xd807f0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3b9d72=this['editor'],_0x115f72=_0x3b9d72['locale'];_0x3b9d72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2da0a4=>{if('formatBlock'!=_0x2da0a4['type'])return;const {data:_0x615b5b}=_0x2da0a4;if(!_0x615b5b)return;let _0x2cb550,_0x9a7f4b;switch(_0x615b5b['commandName']){case'listStyle':_0x2cb550='*Change\x20to:*\x20%0',_0x9a7f4b={'type':'format','content':o(_0x115f72,_0x2cb550,o(_0x115f72,this['_getTranslationKeyForListStyle'](_0x615b5b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2cb550=_0x615b5b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x9a7f4b={'type':'format','content':o(_0x115f72,_0x2cb550)};break;case'listStart':_0x2cb550='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x9a7f4b={'type':'format','content':o(_0x115f72,_0x2cb550,_0x615b5b['commandParams'][0x0]['startIndex'])};}return _0x9a7f4b;});}['_getTranslationKeyForListStyle'](_0x5a3854){return'ELEMENT_'+function(_0x1a76b8){if(Re['includes'](_0x1a76b8))return'bulleted';if(De['includes'](_0x1a76b8))return'numbered';return null;}(_0x5a3854)['toUpperCase']()+'_LIST_'+_0x5a3854['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x3ff253{['afterInit'](){const _0x2fc0aa=this['editor'];_0x2fc0aa['commands']['get']('emoji')&&_0x2fc0aa['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x3ff253{static get['requires'](){return[_0x3ea759];}['init'](){const _0x5eb5e7=this['editor'],_0x436172=_0x5eb5e7['plugins']['get']('TrackChangesEditing'),_0x559098=_0x5eb5e7['commands']['get']('enter');_0x436172['enableCommand']('enter',()=>{_0x5eb5e7['model']['change'](_0x4273cf=>{const _0x282dc9=_0x5eb5e7['model']['document']['selection'],_0x46d264=_0x282dc9['getFirstPosition'](),_0x37cbf1=_0x2d08fb['fromRange'](_0x282dc9['getFirstRange']());if(_0x559098['enterBlock'](_0x4273cf)){const _0x56c7ec=_0x5eb5e7['model']['createPositionAt'](_0x46d264['parent']['nextSibling'],0x0),_0x24a0f4=_0x4273cf['createRange'](_0x46d264,_0x56c7ec);_0x436172['markInsertion'](_0x24a0f4);}else _0x4273cf['setSelection'](_0x4273cf['createRange'](_0x37cbf1['end']));_0x37cbf1['detach'](),_0x559098['fire']('afterExecute',{'writer':_0x4273cf});});}),_0x5eb5e7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x5eb5e7,'split'),{'priority':'high'}),_0x5eb5e7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x27efd8,_0x496f05,_0x57e1e9)=>{const _0x273c2b=_0x57e1e9['mapper']['markerNameToElements'](_0x496f05['markerName']);if(_0x273c2b){for(const _0x278598 of _0x273c2b)_0x278598['hasClass']('ck-suggestion-marker-split')&&(_0x57e1e9['mapper']['unbindElementFromMarkerName'](_0x278598,_0x496f05['markerName']),_0x57e1e9['writer']['remove'](_0x278598));}},{'priority':'high'}),_0x5eb5e7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5123a4,_0x324ed6,_0x4a35c9)=>{_0x4a35c9['options']['showSuggestionHighlights']&&Ve(_0x5eb5e7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5123a4,_0x324ed6,_0x4a35c9);},{'priority':'high'});}}class it extends _0x3ff253{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x12b89c=this['editor']['plugins']['get']('TrackChangesEditing');_0x12b89c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x12b89c['enableCommand']('findNext'),_0x12b89c['enableCommand']('findPrevious'),_0x12b89c['enableCommand']('replace'),_0x12b89c['enableCommand']('replaceAll');}['handleFindCommand'](_0xa0c23c,_0x223258,_0x39cc7d={}){const _0x22bce7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xa0c23c(_0x55b3f2=>{let _0x1525f7=('string'==typeof _0x223258?_0x22bce7['findByTextCallback'](_0x223258,_0x39cc7d):_0x223258)(_0x55b3f2);Array['isArray'](_0x1525f7)&&(_0x1525f7={'results':_0x1525f7,'searchText':'string'==typeof _0x223258?_0x223258:''});const _0x53bb0f=_0x1525f7['results']['filter'](_0x1d8d2e=>!0x1===this['_isInDeletionRange'](_0x1d8d2e,_0x55b3f2['item']));return{..._0x1525f7,'results':_0x53bb0f};},_0x39cc7d);}['_isInDeletionRange'](_0x256203,_0x4170b2){const _0x27ea40=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4170b2,_0x256203['start']),this['editor']['model']['createPositionAt'](_0x4170b2,_0x256203['end']));for(const _0x58b8a9 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x27ea40['getIntersection'](_0x58b8a9['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x3ff253{['afterInit'](){const _0x4161e7=this['editor']['locale'],_0x297601=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4a8728,commandName:_0x332780}of eo)this['editor']['plugins']['has'](_0x4a8728)&&(_0x297601['enableDefaultAttributesIntegration'](_0x332780),_0x297601['registerInlineAttribute'](_0x332780));_0x297601['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4161e7,'FORMAT_FONT_SIZE')),_0x297601['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4161e7,'FORMAT_FONT_FAMILY')),_0x297601['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4161e7,'FORMAT_FONT_COLOR')),_0x297601['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4161e7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c7dac=this['editor'],_0x2e8f10=_0x3c7dac['locale'];_0x3c7dac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f2cc5=>{const _0x5bd09e=_0x2e8f10['t'];if('formatInline'!=_0x1f2cc5['type'])return;const {data:_0x2abb4b}=_0x1f2cc5;if(null!=_0x2abb4b){if('fontSize'==_0x2abb4b['commandName']){const _0x545211=_0x2abb4b['commandParams'][0x0]['value'];if(_0x545211){const _0x54fc68=_0x5bd09e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x146395=>_0x146395['model']==_0x545211)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2e8f10,'*Set\x20font\x20size:*\x20%0',_0x54fc68)};}return{'type':'format','content':o(_0x2e8f10,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2abb4b['commandName']){const _0x2351ce=_0x2abb4b['commandParams'][0x0]['value'];return _0x2351ce?{'type':'format','content':o(_0x2e8f10,'*Set\x20font\x20family:*\x20%0',_0x2351ce)}:{'type':'format','content':o(_0x2e8f10,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2abb4b['commandName']){const _0x564935=_0x2abb4b['commandParams'][0x0]['value'];if(_0x564935){const _0x4c8ee0=_0x29e386(this['editor']['config']['get']('fontColor.colors'))['find'](_0x406086=>_0x406086['model']==_0x564935);let _0x87054e=_0x564935,_0x536ce4='';return _0x4c8ee0&&(_0x87054e=_0x4c8ee0['label'],_0x536ce4=_0x5bd09e(_0x87054e)['toLowerCase']()),{'type':'format','content':o(_0x2e8f10,'*Set\x20font\x20color:*\x20%0',_0x536ce4)['trim'](),'color':{'value':_0x564935,'title':_0x536ce4||_0x87054e}};}return{'type':'format','content':o(_0x2e8f10,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2abb4b['commandName']){const _0x311064=_0x2abb4b['commandParams'][0x0]['value'];if(_0x311064){const _0x56596d=_0x29e386(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x141f43=>_0x141f43['model']==_0x311064);let _0x430287=_0x311064,_0x349cae='';return _0x56596d&&(_0x430287=_0x56596d['label'],_0x349cae=_0x5bd09e(_0x430287)['toLowerCase']()),{'type':'format','content':o(_0x2e8f10,'*Set\x20font\x20background\x20color:*\x20%0',_0x349cae)['trim'](),'color':{'value':_0x311064,'title':_0x349cae||_0x430287}};}return{'type':'format','content':o(_0x2e8f10,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x3ff253{['afterInit'](){const {plugins:_0x187068}=this['editor'];_0x187068['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x187068['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x37e5c4,plugins:_0x433e4e,commands:_0x2bcc51}=this['editor'],_0x27aea5=_0x433e4e['get']('TrackChangesEditing');_0x2bcc51['get']('footnotesStyle')&&_0x27aea5['enableDefaultAttributesIntegration']('footnotesStyle'),_0x2bcc51['get']('footnotesStart')&&_0x27aea5['enableDefaultAttributesIntegration']('footnotesStart'),_0x27aea5['registerBlockAttribute']('footnotesListStyle'),_0x27aea5['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x37e5c4,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x27aea5['registerBlockAttribute']('footnotesListStart'),_0x27aea5['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x37e5c4,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x5cd7e7=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x15e606,commands:_0x30286e}=this['editor'];_0x30286e['get']('insertFootnote')&&_0x5cd7e7['enableCommand']('insertFootnote'),_0x5cd7e7['descriptionFactory']['registerElementLabel']('footnoteRef',_0x3e2d78=>o(_0x15e606,'ELEMENT_FOOTNOTE_REF',_0x3e2d78)),_0x5cd7e7['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x2503be=>o(_0x15e606,'ELEMENT_FOOTNOTE_DEFINITION',_0x2503be)),_0x5cd7e7['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x293d85=>o(_0x15e606,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x293d85));}}class ot extends _0x3ff253{['afterInit'](){const _0x2c81f2=this['editor'],_0x1718d8=_0x2c81f2['plugins']['get']('TrackChangesEditing'),_0xc19266=_0x2c81f2['commands']['get']('copyFormat'),_0x303f6a=_0x2c81f2['commands']['get']('pasteFormat');_0xc19266&&_0x303f6a&&(_0x1718d8['enableDefaultAttributesIntegration']('pasteFormat'),_0x1718d8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4a8a75=this['editor'],_0x5b9b8e=_0x4a8a75['locale'];_0x4a8a75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2788a5=>{if('formatBlock'!=_0x2788a5['type']&&'formatInline'!=_0x2788a5['type'])return;const {data:_0x3b40b6}=_0x2788a5;if(_0x3b40b6&&'pasteFormat'===_0x3b40b6['commandName']){const _0x597f24=[],_0x4c096f=_0x3b40b6['commandParams'][0x0];for(const [_0x3280c2,_0x545f46]of Object['entries'](_0x4c096f))_0x597f24['push'](ro(_0x4a8a75,_0x3280c2,_0x545f46));return _0x597f24['length']?{'type':'format','content':o(_0x5b9b8e,'*Set\x20format\x20to:*\x20%0',_0x597f24['join'](',\x20'))}:{'type':'format','content':o(_0x5b9b8e,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5d0c81,_0x48a6d1,_0x11de1a){const _0x387876=_0x5d0c81['locale']['t'],_0x48a04=_0x48a6d1['split'](/(?=[A-Z])/)['join']('\x20'),_0x5b337a=_0x387876(_0x48a04['charAt'](0x0)['toUpperCase']()+_0x48a04['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x11de1a)return _0x5b337a;if('fontColor'===_0x48a6d1||'fontBackgroundColor'===_0x48a6d1){const _0x87e88e=_0x29e386(_0x5d0c81['config']['get']('fontColor.colors'))['find'](_0x2010de=>_0x2010de['model']==_0x11de1a);return _0x5b337a+'\x20('+(_0x87e88e?_0x387876(_0x87e88e['label'])['toLowerCase']():_0x11de1a)+')';}if('fontSize'===_0x48a6d1&&isNaN(parseFloat(_0x11de1a))){const _0x5807e4=_0x5d0c81['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5d0c81['config']['get']('fontSize.options'))['find'](_0x35b34d=>_0x35b34d['model']==_0x11de1a);return _0x5b337a+'\x20('+(_0x5807e4?_0x387876(_0x5807e4['title'])['toLowerCase']():_0x11de1a)+')';}return _0x5b337a+'\x20('+_0x11de1a+')';}class rt extends _0x3ff253{['_headingOptions'];['afterInit'](){const _0x824675=this['editor'];if(!_0x824675['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x824675['config']['get']('heading.options');const _0x1c103a=_0x824675['locale'],_0x409348=_0x824675['plugins']['get']('TrackChangesEditing');_0x409348['enableDefaultAttributesIntegration']('heading');for(const _0x4a7d46 of this['_headingOptions'])'paragraph'!=_0x4a7d46['model']&&_0x409348['descriptionFactory']['registerElementLabel'](_0x4a7d46['model'],_0x130652=>{const _0x3334ab=this['_getHeadingLevel'](_0x4a7d46['model']);return null!==_0x3334ab?_0x1a7e21(_0x130652,_0x3334ab):_0x608b8b(_0x130652,_0x4a7d46['title']);});function _0x1a7e21(_0x32ddb3,_0x59e414){return o(_0x1c103a,'ELEMENT_HEADING',[_0x32ddb3,_0x59e414]);}function _0x608b8b(_0x37381e,_0xd6d299){return o(_0x1c103a,'ELEMENT_HEADING_CUSTOM',[_0x37381e,_0xd6d299]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57af66=this['editor'],_0x221d2c=_0x57af66['locale'];function _0x1f4737(_0x25bd2e,_0xbb99b0){return o(_0x221d2c,'ELEMENT_HEADING_CUSTOM',[_0x25bd2e,_0xbb99b0]);}_0x57af66['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x291384=>{if('formatBlock'!=_0x291384['type'])return;const {data:_0x3d8954}=_0x291384;if(_0x3d8954&&'heading'==_0x3d8954['commandName']){const _0x5e3b8f=_0x3d8954['commandParams'][0x0]['value'],_0x8c4fcc=this['_getHeadingLevel'](_0x5e3b8f);if(null!==_0x8c4fcc)return{'type':'format','content':o(_0x221d2c,'*Change\x20to:*\x20%0',(_0x571969=0x1,_0x3d48f3=_0x8c4fcc,o(_0x221d2c,'ELEMENT_HEADING',[_0x571969,_0x3d48f3])))};const _0x4c53c0=this['_headingOptions']['find'](_0x14b852=>_0x14b852['model']===_0x5e3b8f)['title'];return{'type':'format','content':o(_0x221d2c,'*Change\x20to:*\x20%0',_0x1f4737(0x1,_0x4c53c0))};}var _0x571969,_0x3d48f3;});}['_getHeadingLevel'](_0x2307bb){const _0x3f8427=_0x2307bb['match'](/^heading(\d+)/);if(_0x3f8427)return _0x3f8427[0x1];const _0x52a4ab=this['_headingOptions']?.['find'](_0x561518=>_0x561518['model']==_0x2307bb);if(_0x52a4ab&&_0x52a4ab['view']){const _0x299730=_0x52a4ab['view'],_0x25a5c8=(_0x299730['name']??_0x299730)['match'](/^h(\d+)/);if(_0x25a5c8)return _0x25a5c8[0x1];}return null;}}class at extends _0x3ff253{['afterInit'](){const _0x2671c5=this['editor'];if(!_0x2671c5['plugins']['has']('HighlightEditing'))return;const _0xc06aa0=_0x2671c5['plugins']['get']('TrackChangesEditing'),_0xacb760=_0x2671c5['locale'];_0xc06aa0['enableDefaultAttributesIntegration']('highlight'),_0xc06aa0['registerInlineAttribute']('highlight'),_0xc06aa0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xacb760,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x560919=this['editor'],_0x212794=_0x560919['locale'];_0x560919['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15df83=>{if('formatInline'!=_0x15df83['type'])return;const {data:_0x3b6193}=_0x15df83;if(_0x3b6193&&'highlight'==_0x3b6193['commandName']){const _0x30057a=_0x212794['t'],_0x3b28ad=_0x3b6193['commandParams'][0x0]['value'];if(_0x3b28ad){const _0x5e7bcf=_0x560919['config']['get']('highlight.options')['find'](_0x19270a=>_0x19270a['model']==_0x3b28ad),_0x131ae6=_0x30057a(_0x5e7bcf['title'])['toLowerCase']();return{'type':'format','content':o(_0x212794,'*Set\x20highlight:*\x20%0',_0x131ae6),'color':{'value':_0x5e7bcf['color'],'title':_0x5e7bcf['title']}};}return{'type':'format','content':o(_0x212794,'*Remove\x20highlight*',o(_0x212794,'FORMAT_HIGHLIGHT'))};}});}}class ct extends _0x3ff253{['afterInit'](){const _0x4c016b=this['editor'];if(!_0x4c016b['plugins']['has']('HorizontalLineEditing'))return;_0x4c016b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x840346=_0x4c016b['plugins']['get']('TrackChangesEditing'),_0xd15b53=_0x4c016b['locale'];_0x840346['descriptionFactory']['registerElementLabel']('horizontalLine',_0x6d64d0=>o(_0xd15b53,'ELEMENT_HORIZONTAL_LINE',_0x6d64d0)),_0x4c016b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x48106b,{writer:_0x7ce329,options:_0x3b813c})=>{if(!_0x3b813c['showSuggestionHighlights'])return null;const _0x6ebe3d=_0x7ce329['createContainerElement']('div'),_0x4235bb=_0x7ce329['createEmptyElement']('hr');return _0x7ce329['addClass']('ck-horizontal-line',_0x6ebe3d),_0x7ce329['insert'](_0x7ce329['createPositionAt'](_0x6ebe3d,0x0),_0x4235bb),_0x6ebe3d;},'converterPriority':'high'});}}class ut extends _0x3ff253{['afterInit'](){const _0x22e364=this['editor'];if(!_0x22e364['plugins']['has']('HtmlEmbed'))return;const _0x329528=_0x22e364['plugins']['get']('TrackChangesEditing'),_0x3314e9=_0x22e364['locale'];_0x329528['descriptionFactory']['registerElementLabel']('rawHtml',_0x51b6fc=>o(_0x3314e9,'ELEMENT_HTML_EMBED',_0x51b6fc)),_0x329528['enableDefaultAttributesIntegration']('htmlEmbed'),_0x329528['registerBlockAttribute']('value'),_0x329528['descriptionFactory']['registerDescriptionCallback'](_0x2ced8b=>{if('attribute'!=_0x2ced8b['type'])return;const {data:_0x3faa23}=_0x2ced8b;if(_0x3faa23&&'value'==_0x3faa23['key']&&_0x2ced8b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x567c6b=o(_0x3314e9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3314e9,'*Change\x20%0\x20content*',_0x567c6b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x224cb0=this['editor'],_0x42a03f=_0x224cb0['locale'];_0x224cb0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ef81d=>{if('formatBlock'!=_0x1ef81d['type'])return;const {data:_0x1e509d}=_0x1ef81d;if(_0x1e509d&&'htmlEmbed'==_0x1e509d['commandName']){const _0x2f3288=o(_0x42a03f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x42a03f,'*Change\x20%0\x20content*',_0x2f3288)};}});}}class ft extends _0x3ff253{['afterInit'](){const _0x42502b=this['editor'];if(!_0x42502b['plugins']['has']('ImageEditing'))return;const _0x413e53=_0x42502b['plugins']['get']('TrackChangesEditing'),_0xfc039c=_0x42502b['plugins']['get']('ImageUtils'),_0x39af61=_0x42502b['locale'];_0x413e53['enableCommand']('insertImage'),_0x413e53['descriptionFactory']['registerElementLabel']('imageBlock',_0x3e0ff6=>o(_0x39af61,'ELEMENT_IMAGE',_0x3e0ff6)),_0x413e53['descriptionFactory']['registerElementLabel']('imageInline',_0x1c33c5=>o(_0x39af61,'ELEMENT_INLINE_IMAGE',_0x1c33c5)),_0x413e53['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x39af61,'ELEMENT_CAPTION')),_0x42502b['plugins']['has']('ImageUploadEditing')&&_0x413e53['enableCommand']('uploadImage'),_0x42502b['plugins']['has']('ImageBlockEditing')&&_0x42502b['plugins']['has']('ImageInlineEditing')&&(_0x413e53['enableCommand']('imageTypeInline',(_0xf42888,_0x357510)=>{const _0x4f8126=_0xfc039c['getClosestSelectedImageElement'](_0x42502b['model']['document']['selection']);_0x42502b['model']['change'](()=>{_0x413e53['markBlockFormat'](_0x4f8126,{'commandName':'imageTypeInline','commandParams':[_0x357510]},[],'convertBlockImageToInline');});}),_0x413e53['enableCommand']('imageTypeBlock',(_0x3a078f,_0x48a797)=>{_0x42502b['model']['change'](_0x5c13a2=>{let _0x13a96b=_0xfc039c['getClosestSelectedImageElement'](_0x42502b['model']['document']['selection']),_0x10e325=_0x5c13a2['createRangeOn'](_0x13a96b);const _0x2a81c6=_0x5a5ab4['fromPosition'](_0x10e325['start'],'toPrevious'),_0x381627=_0x5a5ab4['fromPosition'](_0x10e325['end'],'toNext');_0x413e53['forceDefaultExecution'](()=>_0x3a078f(_0x48a797)),_0x13a96b=_0xfc039c['getClosestSelectedImageElement'](_0x42502b['model']['document']['selection']),_0x10e325=_0x5c13a2['createRangeOn'](_0x13a96b);const _0x17e4f8=_0x5c13a2['createRange'](_0x2a81c6,_0x381627);_0x2a81c6['detach'](),_0x381627['detach'](),_0x413e53['markBlockFormat'](_0x13a96b,{'commandName':'imageTypeInline','commandParams':[_0x48a797]},[],'convertInlineImageToBlock'),_0x17e4f8['start']['isBefore'](_0x10e325['start'])&&_0x413e53['markInsertion'](_0x5c13a2['createRange'](_0x17e4f8['start'],_0x10e325['start']),'convertInlineImageToBlock'),_0x10e325['end']['isBefore'](_0x17e4f8['end'])&&_0x413e53['markInsertion'](_0x5c13a2['createRange'](_0x10e325['end'],_0x17e4f8['end']),'convertInlineImageToBlock');});}),_0x413e53['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x413e53['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x413e53['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x413e53['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x413e53['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x413e53['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x37da4c])=>{const _0x1abe23=_0x413e53['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x229082=_0x37da4c['start'],_0x2ad0b2=_0x37da4c['end'];const _0x1074fb=_0x42502b['model']['schema']['getNearestSelectionRange'](_0x229082,'backward'),_0x22da5b=_0x42502b['model']['schema']['getNearestSelectionRange'](_0x2ad0b2,'forward');_0x1074fb['isCollapsed']&&(_0x229082=_0x1074fb['start']),_0x22da5b['isCollapsed']&&(_0x2ad0b2=_0x22da5b['end']),_0x1abe23([_0x42502b['model']['createRange'](_0x229082,_0x2ad0b2)]);}),_0x413e53['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xff6769),_0x413e53['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xff6769)),_0x42502b['plugins']['has']('ImageCaptionEditing')&&(_0x413e53['enableCommand']('toggleImageCaption',(_0x1f8637,_0x3dabf0)=>{const _0x4ec321=_0x42502b['plugins']['get']('ImageCaptionUtils');let _0x1f58d9=_0xfc039c['getClosestSelectedImageElement'](_0x42502b['model']['document']['selection']),_0x4ebfbe=_0x4ec321['getCaptionFromImageModelElement'](_0x1f58d9);_0x42502b['model']['change'](()=>{if(_0x4ebfbe)return void _0x413e53['markDeletion'](_0x42502b['model']['createRangeOn'](_0x4ebfbe));const _0x3157ca=_0xfc039c['isBlockImage'](_0x1f58d9);_0x1f8637(_0x3dabf0),_0x1f58d9=_0xfc039c['getClosestSelectedImageElement'](_0x42502b['model']['document']['selection']),_0x4ebfbe=_0x4ec321['getCaptionFromImageModelElement'](_0x1f58d9),_0x413e53['markInsertion'](_0x42502b['model']['createRangeOn'](_0x4ebfbe),_0x3157ca?null:'imageCaption');});}),_0x413e53['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xff6769));const _0x518a22=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4900c9(_0x506d0e,_0x125b61){const _0x471cf5=_0x518a22['findIndex'](({type:_0x3d064b,subType:_0x1b6822})=>_0x506d0e['type']==_0x3d064b&&_0x506d0e['subType']==_0x1b6822),_0x1209f9=_0x518a22['findIndex'](({type:_0x407520,subType:_0x217dc9})=>_0x125b61['type']==_0x407520&&_0x125b61['subType']==_0x217dc9);if(_0x471cf5<0x0||_0x1209f9<0x0)return!0x1;const _0x1567fc=_0x506d0e['getFirstRange'](),_0x28d9a8=_0x125b61['getFirstRange']();if((0x0==_0x471cf5||0x1==_0x471cf5)&&0x2==_0x1209f9&&_0x1567fc['isIntersecting'](_0x28d9a8))return!0x0;if(0x2==_0x471cf5&&0x3==_0x1209f9){const _0x50cff7=_0x413e53['_findSuggestions'](_0x1567fc,'insertion')['filter'](({suggestion:_0x2227cd,meta:_0x425f7c})=>_0x425f7c['isOwn']&&'convertInlineImageToBlock'==_0x2227cd['subType']);if(_0x50cff7['length']>0x1&&_0x28d9a8['end']['isEqual'](_0x1567fc['start']))return!0x0;if(0x1==_0x50cff7['length']&&(_0x1567fc['start']['isEqual'](_0x28d9a8['end'])||_0x1567fc['end']['isEqual'](_0x28d9a8['start'])))return!0x0;}if(0x3==_0x471cf5&&0x3==_0x1209f9&&_0x1567fc['start']['isBefore'](_0x28d9a8['start'])){const _0x2bc263=_0x1567fc['end']['nodeAfter'],_0x4ee9a6=_0x28d9a8['start']['nodeBefore'];return _0xfc039c['isBlockImage'](_0x2bc263)&&_0x2bc263===_0x4ee9a6;}return!0x1;}function _0xff6769(_0x55b5d5,_0x412263){return _0x4900c9(_0x55b5d5,_0x412263)?[_0x55b5d5,_0x412263]:_0x4900c9(_0x412263,_0x55b5d5)?[_0x412263,_0x55b5d5]:null;}_0x42502b['plugins']['has']('ImageResize')&&(_0x413e53['enableDefaultAttributesIntegration']('resizeImage'),_0x413e53['registerBlockAttribute']('resizedWidth'),_0x413e53['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x39af61,'FORMAT_IMAGE_SIZE'))),_0x42502b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x413e53['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x413e53['registerBlockAttribute']('alt')),_0x42502b['plugins']['has']('PictureEditing')&&(_0x413e53['registerBlockAttribute']('sources'),_0x413e53['descriptionFactory']['registerDescriptionCallback'](_0x53b286=>{if('attribute'!=_0x53b286['type'])return;const {data:_0x2c6b30}=_0x53b286;return _0x2c6b30&&'sources'==_0x2c6b30['key']?{'type':'format','content':''}:void 0x0;})),_0x42502b['plugins']['has']('ImageSizeAttributes')&&(_0x413e53['registerBlockAttribute']('width'),_0x413e53['registerBlockAttribute']('height'),_0x413e53['descriptionFactory']['registerDescriptionCallback'](_0x4c5a5f=>{if('attribute'!=_0x4c5a5f['type'])return;const {data:_0x522760}=_0x4c5a5f;return!_0x522760||'width'!=_0x522760['key']&&'height'!=_0x522760['key']?void 0x0:{'type':'format','content':''};})),_0x413e53['descriptionFactory']['registerDescriptionCallback'](_0x3a3147=>{if(!!_0x518a22['find'](({type:_0x263f53,subType:_0x15a5eb})=>_0x3a3147['type']==_0x263f53&&_0x3a3147['subType']==_0x15a5eb))return _0x3a3147['previous']?{}:void 0x0;}),_0x413e53['descriptionFactory']['registerDescriptionCallback'](_0x1fd30f=>{if('insertion'==_0x1fd30f['type']||'deletion'==_0x1fd30f['type']){const _0x15af17=_0x1fd30f['getContainedElement']();if(_0x15af17&&_0x15af17['is']('element','caption'))return{'type':'insertion'==_0x1fd30f['type']?'addObject':'removeObject','element':_0x15af17,'quantity':0x1};}}),_0x413e53['descriptionFactory']['registerDescriptionCallback'](_0x87b166=>'formatBlock'==_0x87b166['type']&&'convertInlineImageToBlock'==_0x87b166['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x87b166['type']&&'convertBlockImageToInline'==_0x87b166['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x413e53['descriptionFactory']['registerDescriptionCallback'](_0x1a28f7=>{if('attribute'!=_0x1a28f7['type'])return;const {data:_0x258133}=_0x1a28f7;if(!_0x258133||'alt'!=_0x258133['key'])return;const _0x2d66a3=_0x258133['newValue'];return _0x2d66a3?{'type':'format','content':o(_0x39af61,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d66a3+'\x22')}:{'type':'format','content':o(_0x39af61,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc4d206=this['editor'],_0x14a83a=_0xc4d206['locale'];_0xc4d206['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b0a3c=>{if('formatBlock'!=_0x3b0a3c['type']&&'formatInline'!=_0x3b0a3c['type'])return;const {data:_0x515c68}=_0x3b0a3c;if(_0x515c68){if('imageTextAlternative'==_0x515c68['commandName']){const _0xa9a341=_0x515c68['commandParams'][0x0]['newValue'];return _0xa9a341?{'type':'format','content':o(_0x14a83a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa9a341+'\x22')}:{'type':'format','content':o(_0x14a83a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x515c68['commandName']){const _0x4763e6=_0x515c68['commandParams'][0x0]['width'];return _0x4763e6?{'type':'format','content':o(_0x14a83a,'*Set\x20image\x20width:*\x20%0',_0x4763e6)}:{'type':'format','content':o(_0x14a83a,'*Reset\x20image\x20width*')};}}});}}class ht extends _0x3ff253{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x21e8cb=this['editor']['locale'],_0xdf723a=this['editor']['plugins']['get']('TrackChangesEditing');_0xdf723a['enableDefaultAttributesIntegration']('replaceImageSource'),_0xdf723a['registerBlockAttribute']('src'),_0xdf723a['descriptionFactory']['registerDescriptionCallback'](_0x13286c=>{if('attribute'!=_0x13286c['type'])return;const {data:_0x49b028}=_0x13286c;return _0x49b028&&'src'==_0x49b028['key']?_0x49b028['newValue']&&_0x49b028['oldValue']?{'type':'format','content':o(_0x21e8cb,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x25626d=this['editor']['plugins']['get']('TrackChangesEditing');_0x25626d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x25626d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x25626d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x25626d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41cdb1=this['editor'],_0x376053=_0x41cdb1['locale'];_0x41cdb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x471149=>{if('formatBlock'!=_0x471149['type']&&'formatInline'!=_0x471149['type'])return;const {data:_0x562c29}=_0x471149;if(!_0x562c29||'replaceImageSource'!=_0x562c29['commandName'])return;return{'type':'format','content':o(_0x376053,'*Format:*\x20replace\x20image\x20URL')};});}}class gt extends _0x3ff253{['afterInit'](){const _0x3cfeed=this['editor'];if(!_0x3cfeed['plugins']['has']('ImageStyleEditing'))return;const _0x128f58=_0x3cfeed['plugins']['get']('TrackChangesEditing'),_0x15c19e=_0x3cfeed['plugins']['get']('ImageUtils'),_0x7f73e6={};_0x128f58['enableCommand']('imageStyle',(_0x2ce047,_0x128147)=>{const _0x13f588=_0x3cfeed['plugins']['get']('Users')['me'],_0x16a24b=_0x3cfeed['commands']['get']('imageStyle');let _0x44f871=_0x15c19e['getClosestSelectedImageElement'](_0x3cfeed['model']['document']['selection']),_0x41eaf6=_0x3cfeed['model']['createRangeOn'](_0x44f871),_0x3c8a63=_0x16a24b['value'];if(_0x3c8a63==_0x128147['value'])return;const _0x6a607d={'commandName':'imageStyle','commandParams':[_0x128147],'formatGroupId':_0x13e6cd()};_0x3cfeed['model']['change'](()=>{if(_0x128f58['getSuggestions']()['filter'](_0x1821d1=>_0x1821d1['isInContent']&&_0x13f588==_0x1821d1['author']&&('formatBlock'==_0x1821d1['type']||'formatInline'==_0x1821d1['type'])&&('imageStylePreApply'==_0x1821d1['subType']||'imageStylePostApply'==_0x1821d1['subType'])&&_0x1821d1['getFirstRange']()['isEqual'](_0x41eaf6))['forEach'](_0x3296a2=>_0x128f58['discardSuggestion'](_0x3296a2['head'])),_0x44f871=_0x15c19e['getClosestSelectedImageElement'](_0x3cfeed['model']['document']['selection']),_0x41eaf6=_0x3cfeed['model']['createRangeOn'](_0x44f871),_0x16a24b['refresh'](),_0x3cfeed['commands']['get']('imageTypeInline')['refresh'](),_0x3cfeed['commands']['get']('imageTypeBlock')['refresh'](),_0x3c8a63=_0x16a24b['value'],_0x3c8a63!=_0x128147['value'])return _0x15c19e['isInlineImage'](_0x44f871)&&_0x16a24b['shouldConvertImageType'](_0x128147['value'],_0x44f871)?(_0x2ce047({..._0x128147,'setImageSizes':!0x1}),_0x44f871=_0x15c19e['getClosestSelectedImageElement'](_0x3cfeed['model']['document']['selection']),void _0x128f58['markBlockFormat'](_0x44f871,{..._0x6a607d,'commandReversedParams':[{'value':_0x3c8a63||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x15c19e['isBlockImage'](_0x44f871)?_0x128f58['markBlockFormat'](_0x44f871,_0x6a607d,[],'imageStylePostApply'):_0x128f58['markInlineFormat'](_0x41eaf6,_0x6a607d,'imageStylePostApply'));});});for(const _0x5e0747 of _0x3cfeed['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x7f73e6[_0x5e0747['name']]=_0x5e0747['title']['toLowerCase']();_0x128f58['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x128f58['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x128f58['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x128f58['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x16f400])=>{_0x15c19e['setImageNaturalSizeAttributes'](_0x16f400['getContainedElement']());}),_0x128f58['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4da9ef,_0x5388c5)=>{_0x128f58['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4da9ef,{'commandName':_0x5388c5['commandName'],'commandParams':_0x5388c5['commandReversedParams']});}),_0x128f58['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x49ea96,_0x3e3d1d){if(_0x234768(_0x49ea96,_0x3e3d1d))return[_0x49ea96,_0x3e3d1d];if(_0x234768(_0x3e3d1d,_0x49ea96))return[_0x3e3d1d,_0x49ea96];return null;});const _0x43507d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x234768(_0x181f66,_0x5bde41){const _0x501415=_0x43507d['findIndex'](({type:_0x20f648,subType:_0x9aa64e})=>_0x181f66['type']==_0x20f648&&_0x181f66['subType']==_0x9aa64e),_0x6414a0=_0x43507d['findIndex'](({type:_0x7a7d86,subType:_0xc2db46})=>_0x5bde41['type']==_0x7a7d86&&_0x5bde41['subType']==_0xc2db46);if(_0x501415<0x0||_0x6414a0<0x0)return!0x1;const _0x4ec83b=_0x181f66['getFirstRange'](),_0x1ff6ab=_0x5bde41['getFirstRange']();if((0x0==_0x501415||0x1==_0x501415)&&0x2==_0x6414a0&&_0x4ec83b['isIntersecting'](_0x1ff6ab))return!0x0;if(0x2==_0x501415&&0x3==_0x6414a0){const _0x2116f1=_0x128f58['_findSuggestions'](_0x4ec83b,'insertion')['filter'](({suggestion:_0x222f1e,meta:_0x4e3d20})=>_0x4e3d20['isOwn']&&'convertInlineImageToBlock'==_0x222f1e['subType']);if(_0x2116f1['length']>0x1&&_0x1ff6ab['end']['isEqual'](_0x4ec83b['start']))return!0x0;if(0x1==_0x2116f1['length']&&(_0x4ec83b['start']['isEqual'](_0x1ff6ab['end'])||_0x4ec83b['end']['isEqual'](_0x1ff6ab['start'])))return!0x0;}if(0x3==_0x501415&&0x3==_0x6414a0&&_0x4ec83b['start']['isBefore'](_0x1ff6ab['start'])){const _0x209d47=_0x4ec83b['end']['nodeAfter'],_0x2535e3=_0x1ff6ab['start']['nodeBefore'];return _0x15c19e['isBlockImage'](_0x209d47)&&_0x209d47===_0x2535e3;}return!0x1;}_0x3cfeed['model']['document']['registerPostFixer'](()=>{let _0x21866d=!0x1;const _0x16709b=Array['from'](_0x3cfeed['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x11e073,data:_0x307f11}of _0x16709b){const {group:_0x33fb7f,type:_0x2eadc4,subType:_0xf52461,id:_0x555dcc}=_0x128f58['_splitMarkerName'](_0x11e073);if('suggestion'==_0x33fb7f&&_0x128f58['hasSuggestion'](_0x555dcc)){if('formatBlock'==_0x2eadc4&&('imageStylePreApply'==_0xf52461||'imageStylePostApply'==_0xf52461)){const _0x5092f6=_0x128f58['getSuggestion'](_0x555dcc);if(_0x307f11['newRange']){const _0x1b3b9c=_0x5092f6['getFirstRange']()['getContainedElement']();if(_0x15c19e['isBlockImage'](_0x1b3b9c))continue;_0x128f58['discardSuggestion'](_0x5092f6),_0x21866d=!0x0;}}if('insertion'==_0x2eadc4&&'imageCaption'==_0xf52461&&!_0x307f11['newRange']){const _0x5ccf39=_0x128f58['getSuggestion'](_0x555dcc);_0x5ccf39['next']&&_0x5ccf39['next']['isInContent']&&(_0x128f58['discardSuggestion'](_0x5ccf39['next']),_0x21866d=!0x0);}}}return _0x21866d;}),this['_registerLegacyDescription'](_0x7f73e6);}['_registerLegacyDescription'](_0x4da658){const _0x868afa=this['editor'],_0x2b3bf9=_0x868afa['locale'];_0x868afa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d8233=>{if('formatBlock'!=_0x3d8233['type']&&'formatInline'!=_0x3d8233['type'])return;const {data:_0x100c75}=_0x3d8233;if(!_0x100c75||'imageStyle'!=_0x100c75['commandName'])return;const _0x572a7a=_0x100c75['commandParams'][0x0]['value'];return _0x3b9e17('side'===_0x572a7a?o(_0x2b3bf9,'FORMAT_SIDE_IMAGE'):_0x4da658[_0x572a7a]||_0x572a7a);function _0x3b9e17(_0x466dd0){return{'type':'format','content':o(_0x2b3bf9,'*Format:*\x20%0',_0x466dd0)};}});}}class lt extends _0x3ff253{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x55293e){super(_0x55293e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xbf15c2=this['editor'],_0x5c8b19=_0xbf15c2['commands']['get']('importWord'),_0x3128e6=_0xbf15c2['commands']['get']('trackChanges');_0x5c8b19&&(_0x5c8b19['on']('execute',(_0x4237fd,[,_0x4153b8])=>{this['_trackChangesValueDuringImport']=_0x3128e6['value'],_0x4153b8['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5c8b19,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5c8b19,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3128e6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xbf15c2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1c1ebd,_0x49f469){const {suggestions:_0x4f2e14}=_0x49f469,_0x1296bf=this['editor']['commands']['get']('trackChanges'),_0x4429fd=_0x1296bf['value'];this['_trackChangesValueDuringImport']!==_0x4429fd&&(_0x1296bf['execute'](),this['_trackChangesExecuted']=!0x0),_0x4f2e14&&_0x4f2e14['forEach'](({id:_0x53f624,type:_0x95a721,author:_0x4ecf2b,created_at:_0x1933f6})=>{const _0x5264ad={'id':_0x53f624,'type':_0x95a721,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4ecf2b,'createdAt':_0x1933f6?new Date(_0x1933f6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5264ad);});}}class mt extends _0x3ff253{['afterInit'](){const _0x3adf36=this['editor'],_0x15a73c=_0x3adf36['plugins']['get']('TrackChangesEditing');if(_0x3adf36['plugins']['has']('IndentEditing')&&(_0x15a73c['enableCommand']('indent'),_0x15a73c['enableCommand']('outdent')),_0x3adf36['plugins']['has']('IndentBlock')){for(const _0x3e492c of['indentBlock','outdentBlock'])_0x15a73c['enableDefaultAttributesIntegration'](_0x3e492c);}const _0x50ff9e=_0x3adf36['locale'];_0x15a73c['registerBlockAttribute']('blockIndent'),_0x15a73c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x50ff9e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf901aa=this['editor'],_0xa61be3=_0xf901aa['locale'],_0x4de575=_0xf901aa['plugins']['get']('TrackChangesEditing');_0x4de575['descriptionFactory']['registerDescriptionCallback'](_0x4b8f8c=>{if('formatBlock'!=_0x4b8f8c['type'])return;const {data:_0x3152e5}=_0x4b8f8c;if(!_0x3152e5)return;if('indentBlock'!=_0x3152e5['commandName']&&'outdentBlock'!=_0x3152e5['commandName'])return;const _0x194285=_0x4b8f8c['getItems']()[0x0],_0x508de5=_0x4de575['descriptionFactory']['getItemLabel'](_0x194285);return'indentBlock'==_0x3152e5['commandName']?{'type':'format','content':o(_0xa61be3,'*Indent:*\x20%0',_0x508de5)}:'outdentBlock'==_0x3152e5['commandName']?{'type':'format','content':o(_0xa61be3,'*Outdent:*\x20%0',_0x508de5)}:void 0x0;});}}class dt extends _0x3ff253{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class pt extends _0x3ff253{['afterInit'](){const _0x41157c=this['editor'];if(!_0x41157c['plugins']['has']('LinkEditing'))return;const _0x37bd08=_0x41157c['plugins']['get']('TrackChangesEditing'),_0x1b7517=_0x41157c['commands']['get']('link');_0x37bd08['enableDefaultAttributesIntegration']('link'),_0x37bd08['enableDefaultAttributesIntegration']('unlink'),_0x37bd08['registerInlineAttribute']('linkHref');for(const _0x5d34e7 of _0x1b7517['manualDecorators'])_0x37bd08['registerInlineAttribute'](_0x5d34e7['id']),_0x37bd08['descriptionFactory']['registerAttributeLabel'](_0x5d34e7['id'],'link\x20('+_0x5d34e7['label']['toLowerCase']()+')');_0x37bd08['descriptionFactory']['registerDescriptionCallback'](_0x1ae20e=>{if('attribute'!=_0x1ae20e['type'])return;const {data:_0x4db99c}=_0x1ae20e;if(!_0x4db99c||'linkHref'!=_0x4db99c['key'])return;const _0x355c39=_0x4db99c['newValue'],_0x421f2a=_0x41157c['locale'];return{'type':'format','content':null==_0x355c39?o(_0x421f2a,'*Remove\x20link*'):o(_0x421f2a,'*Set\x20link:*\x20%0','\x22'+_0x355c39+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4472ac=this['editor'],_0x34cc64=_0x4472ac['locale'];_0x4472ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5955ea=>{if('formatInline'!=_0x5955ea['type'])return;const {data:_0x58a2d8}=_0x5955ea;if(_0x58a2d8){if('link'==_0x58a2d8['commandName']){const _0x2fdfa6=_0x58a2d8['commandParams'][0x0];return{'type':'format','content':o(_0x34cc64,'*Set\x20link:*\x20%0','\x22'+_0x2fdfa6+'\x22')};}return'unlink'==_0x58a2d8['commandName']?{'type':'format','content':o(_0x34cc64,'*Remove\x20link*')}:void 0x0;}});}}class kt extends _0x3ff253{['afterInit'](){const _0x253f4c=this['editor'],_0x4ad71d=_0x253f4c['locale'];if(!_0x253f4c['plugins']['has']('LegacyListEditing'))return;const _0x1d755b=_0x253f4c['plugins']['get']('TrackChangesEditing'),_0x32c9d8=_0x253f4c['plugins']['has']('LegacyTodoListEditing');function _0x199a9e(_0x48ea85){return()=>{const _0x3608c6=_0x253f4c['model']['document']['selection'],_0x357aec=_0x253f4c['commands']['get'](_0x48ea85);if(_0x357aec['value'])return void _0x253f4c['execute']('paragraph',{});const _0x677a41=_0x48ea85['slice'](0x0,-0x4),_0x33635e=function(_0x3532e5,_0x1993f9,_0x359180){let _0x20ddfe=Array['from'](_0x3532e5)['filter'](_0x45bec0=>function(_0x1fcc69,_0x3c22d6){return _0x3c22d6['checkChild'](_0x1fcc69['parent'],'listItem')&&!_0x3c22d6['isObject'](_0x1fcc69);}(_0x45bec0,_0x359180));_0x20ddfe=_0x20ddfe['filter'](_0x46ac43=>!_0x46ac43['is']('element','listItem')||_0x46ac43['getAttribute']('listType')!=_0x1993f9);const _0x7ae1c5=new Set();for(const _0x3bbce8 of _0x20ddfe)_0x3bbce8['is']('element','listItem')?_0x7ae1c5['add'](Ne(_0x3bbce8)):_0x7ae1c5['add'](_0x3bbce8);return Array['from'](_0x7ae1c5);}(_0x3608c6['getSelectedBlocks'](),_0x677a41,_0x253f4c['model']['schema']);_0x253f4c['model']['change'](()=>{for(const _0x40fafd of _0x33635e)_0x1d755b['markBlockFormat'](_0x40fafd,{'commandName':_0x48ea85,'commandParams':[{'forceValue':!_0x357aec['value']}],'formatGroupId':'blockName'},Se(_0x40fafd));});};}function _0x1925b6(_0x3bbdd6){return()=>{const _0x20ae4f=function(_0x59c331){let _0x5bab64=Array['from'](_0x59c331);const _0x27b9b1=_0x5bab64['findIndex'](_0x3e803c=>'listItem'!=_0x3e803c['name']);return _0x27b9b1>-0x1&&(_0x5bab64=_0x5bab64['slice'](0x0,_0x27b9b1)),_0x5bab64;}(_0x253f4c['model']['document']['selection']['getSelectedBlocks']()),_0x337748=_0x253f4c['model']['createRange'](_0x253f4c['model']['createPositionAt'](_0x20ae4f[0x0],'before'),_0x253f4c['model']['createPositionAt'](_0x20ae4f[_0x20ae4f['length']-0x1],'end'));_0x253f4c['model']['change'](()=>{_0x1d755b['markBlockFormat'](_0x337748,{'commandName':_0x3bbdd6,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4187d0){const _0x50791b=new Set();for(const _0x4c9e16 of _0x4187d0){let _0x3c1274=_0x4c9e16['nextSibling'];for(;_0x3c1274&&_0x3c1274['getAttribute']('listIndent')>_0x4c9e16['getAttribute']('listIndent');)_0x50791b['add'](_0x3c1274),_0x3c1274=_0x3c1274['nextSibling'];}return Array['from'](_0x50791b);}(_0x20ae4f));});};}_0x1d755b['enableCommand']('numberedList',_0x199a9e('numberedList')),_0x1d755b['enableCommand']('bulletedList',_0x199a9e('bulletedList')),_0x32c9d8&&_0x1d755b['enableCommand']('todoList',_0x199a9e('todoList')),_0x1d755b['enableCommand']('indentList',_0x1925b6('indentList')),_0x1d755b['enableCommand']('outdentList',_0x1925b6('outdentList')),_0x32c9d8&&_0x1d755b['enableCommand']('checkTodoList',()=>{const _0xcbb05f=_0x253f4c['commands']['get']('checkTodoList'),_0x3e45b3=Array['from'](_0xcbb05f['_selectedElements']);_0x3e45b3['filter'](_0x450c6f=>_0x450c6f['getAttribute']('todoListChecked')!=_0xcbb05f['value']),_0x253f4c['model']['change'](()=>{for(const _0x49e32e of _0x3e45b3)_0x1d755b['markBlockFormat'](_0x49e32e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xcbb05f['value']}]});});}),_0x1d755b['descriptionFactory']['registerElementLabel']('listItem',_0x3f7fdd=>o(_0x4ad71d,'ELEMENT_LIST_ITEM',_0x3f7fdd)),_0x1d755b['descriptionFactory']['registerDescriptionCallback'](_0x2b38ed=>{if('formatBlock'!=_0x2b38ed['type']&&'formatInline'!=_0x2b38ed['type'])return;const {data:_0x528bfe}=_0x2b38ed;if(_0x528bfe){if('numberedList'==_0x528bfe['commandName']||'bulletedList'==_0x528bfe['commandName']||'todoList'==_0x528bfe['commandName'])switch(_0x528bfe['commandName']['replace']('List','')){case'bulleted':return _0x576e50(o(_0x4ad71d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x576e50(o(_0x4ad71d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x576e50(o(_0x4ad71d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x528bfe['commandName'])return{'type':'format','content':o(_0x4ad71d,'*Indent:*\x20%0',o(_0x4ad71d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x528bfe['commandName'])return{'type':'format','content':o(_0x4ad71d,'*Outdent:*\x20%0',o(_0x4ad71d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x528bfe['commandName'])return _0x528bfe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ad71d,'*Check\x20item*')}:{'type':'format','content':o(_0x4ad71d,'*Uncheck\x20item*')};}function _0x576e50(_0x160983){return{'type':'format','content':o(_0x4ad71d,'*Change\x20to:*\x20%0',_0x160983)};}});}}function Ne(_0x5182aa){const _0x422782=_0x5182aa['getAttribute']('listIndent');if(0x0==_0x422782)return _0x5182aa;let _0x3800bc=_0x5182aa;for(;_0x5182aa['previousSibling']&&_0x5182aa['previousSibling']['is']('element','listItem');){const _0x4c4a7a=_0x5182aa['previousSibling']['getAttribute']('listIndent');if(_0x4c4a7a==_0x422782)_0x3800bc=_0x5182aa['previousSibling'];else{if(_0x4c4a7a<_0x422782)break;}_0x5182aa=_0x5182aa['previousSibling'];}return _0x3800bc;}function Se(_0x176a7b){const _0x1ecf25=[];if(_0x176a7b['is']('element','listItem')&&_0x176a7b['getAttribute']('listIndent')>0x0){let _0x329e01=_0x176a7b['nextSibling'];for(;_0x329e01&&'listItem'==_0x329e01['name']&&_0x329e01['getAttribute']('listIndent')==_0x176a7b['getAttribute']('listIndent');)_0x1ecf25['push'](_0x329e01),_0x329e01=_0x329e01['nextSibling'];}return _0x1ecf25;}class wt extends _0x3ff253{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x471117=this['editor']['config']['get']('list.properties'),_0x58ad16=this['editor']['plugins']['get']('TrackChangesEditing');_0x471117['styles']&&_0x58ad16['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x471117['reversed']&&_0x58ad16['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x471117['startIndex']&&_0x58ad16['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x58ad16['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x62f5b2,_0x14de3d={}){const _0x19b502=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10dfed=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x19b502['markMultiRangeBlockFormat'](_0x10dfed,{'commandName':'listStyle','commandParams':[{'type':_0x14de3d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1e222e,_0xa389cb={}){const _0x138aa3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x481038=this['_getSuggestionBlocks'](_0x387e96=>_0x387e96['is']('element','listItem')&&'numbered'===_0x387e96['getAttribute']('listType'));if(_0x481038['length']<0x1)return;const _0x550147=_0x481038['map'](_0x18fde8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x18fde8,'before'),this['editor']['model']['createPositionAt'](_0x18fde8,0x0)));this['editor']['model']['change'](()=>{_0x138aa3['markMultiRangeBlockFormat'](_0x550147,{'commandName':'listReversed','commandParams':[{'reversed':_0xa389cb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x32b9f7,_0x2c2472={}){const _0x241c9f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59dfa0=this['_getSuggestionBlocks'](_0x3cc706=>_0x3cc706['is']('element','listItem')&&'numbered'===_0x3cc706['getAttribute']('listType'));if(_0x59dfa0['length']<0x1)return;const _0x5476ce=_0x59dfa0['map'](_0x33408b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33408b,'before'),this['editor']['model']['createPositionAt'](_0x33408b,0x0)));this['editor']['model']['change'](()=>{_0x241c9f['markMultiRangeBlockFormat'](_0x5476ce,{'commandName':'listStart','commandParams':[{'startIndex':_0x2c2472['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5b17b0){if('formatBlock'!=_0x5b17b0['type']&&'formatInline'!=_0x5b17b0['type'])return;const _0xe9f32f=this['editor']['locale'],{data:_0x45f43d}=_0x5b17b0;if(!_0x45f43d)return;let _0x1a649c,_0x2b82e5;switch(_0x45f43d['commandName']){case'listStyle':_0x1a649c='*Change\x20to:*\x20%0',_0x2b82e5={'type':'format','content':o(_0xe9f32f,_0x1a649c,o(_0xe9f32f,this['_getTranslationKeyForListStyle'](_0x45f43d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1a649c=_0x45f43d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2b82e5={'type':'format','content':o(_0xe9f32f,_0x1a649c)};break;case'listStart':_0x1a649c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2b82e5={'type':'format','content':o(_0xe9f32f,_0x1a649c,_0x45f43d['commandParams'][0x0]['startIndex'])};}return _0x2b82e5;}['_getSuggestionBlocksForListStyle'](){const _0xe207c8=this['editor']['plugins']['get']('LegacyListUtils');let _0x2314d4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2314d4[0x0]?.['is']('element','listItem')&&_0x2314d4['unshift'](..._0xe207c8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2314d4[_0x2314d4['length']-0x1]?.['is']('element','listItem')&&_0x2314d4['push'](..._0xe207c8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2314d4=[...new Set(_0x2314d4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2314d4=_0x2314d4['filter'](_0x530563=>_0x530563['is']('element','listItem'))),_0x2314d4;}['_getSuggestionBlocks'](_0x554d36){const _0x3da51d=this['editor']['plugins']['get']('LegacyListUtils');let _0x286124=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x554d36)['map'](_0x390fa4=>{const _0x14f2d2=this['editor']['model']['createPositionAt'](_0x390fa4,0x0);return[..._0x3da51d['getSiblingNodes'](_0x14f2d2,'backward'),..._0x3da51d['getSiblingNodes'](_0x14f2d2,'forward')];})['flat']();return _0x286124=[...new Set(_0x286124)],_0x286124;}['_getTranslationKeyForListStyle'](_0x1a2ec9){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1a2ec9)||'default')['toUpperCase']()+'_LIST_'+_0x1a2ec9['toUpperCase']()['replace'](/-/g,'_');}}class bt extends _0x3ff253{['afterInit'](){const _0x23bab6=this['editor'];if(!_0x23bab6['plugins']['has']('MediaEmbedEditing'))return;const _0x3dca42=_0x23bab6['plugins']['get']('TrackChangesEditing'),_0x1f4719=_0x23bab6['locale'];_0x3dca42['enableCommand']('mediaEmbed'),_0x3dca42['descriptionFactory']['registerElementLabel']('media',_0x439284=>o(_0x1f4719,'ELEMENT_MEDIA',_0x439284)),_0x23bab6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3a8268,{writer:_0x131f67,options:_0x468fb1})=>{if(_0x468fb1['showSuggestionHighlights'])return _0x131f67['createEmptyElement']('div');},'converterPriority':'high'}),_0x23bab6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2c2975,_0x403fee,_0x22c4c0)=>{_0x22c4c0['options']['showSuggestionHighlights']&&_0x2c2975['stop']();},{'priority':'high'});}}class yt extends _0x3ff253{['afterInit'](){const _0x119c2d=this['editor'];_0x119c2d['plugins']['has']('MentionEditing')&&_0x119c2d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class St extends _0x3ff253{['afterInit'](){const _0x2e746f=this['editor'];if(!_0x2e746f['plugins']['has']('MergeFieldsEditing'))return;const _0x480ecb=_0x2e746f['plugins']['get']('TrackChangesEditing'),_0x25e0ff=_0x2e746f['locale'];_0x480ecb['enableCommand']('insertMergeField'),_0x480ecb['enableCommand']('insertMergeFieldBlock'),_0x480ecb['enableCommand']('insertMergeFieldImage'),_0x480ecb['descriptionFactory']['registerElementLabel']('mergeField',_0x39665b=>o(_0x25e0ff,'ELEMENT_MERGE_FIELD',_0x39665b)),_0x480ecb['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4210c5=>o(_0x25e0ff,'ELEMENT_MERGE_FIELD',_0x4210c5)),_0x480ecb['descriptionFactory']['registerDescriptionCallback'](_0x3b775d=>{if('insertion'!=_0x3b775d['type']&&'deletion'!=_0x3b775d['type'])return;const _0x35cb17=_0x3b775d['getContainedElement']();if(null==_0x35cb17)return;const _0x339068=_0x2e746f['plugins']['get']('MergeFieldsEditing');let _0x577cec;switch(_0x339068['getMergeFieldType'](_0x35cb17)){case null:return;case'image':{const _0x4e760e=_0x339068['unwrapAffixes'](_0x35cb17['getAttribute']('src'));_0x577cec=_0x339068['getLabel'](_0x4e760e)||_0x4e760e;break;}default:{const _0x5751db=_0x35cb17['getAttribute']('id');_0x577cec=_0x339068['getLabel'](_0x5751db)||_0x5751db;break;}}return'insertion'==_0x3b775d['type']?{'type':'insertion','content':o(_0x25e0ff,'*Insert:*\x20%0','\x22'+_0x577cec+'\x22\x20'+o(_0x25e0ff,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x25e0ff,'*Remove:*\x20%0','\x22'+_0x577cec+'\x22\x20'+o(_0x25e0ff,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x3ff253{['afterInit'](){const _0x53c7fb=this['editor'],_0x48f049=_0x53c7fb['plugins']['get']('TrackChangesEditing');_0x53c7fb['plugins']['has']('MultiLevelList')&&(_0x48f049['enableDefaultAttributesIntegration']('multiLevelList'),_0x48f049['registerBlockAttribute']('listMarkerStyle'),_0x48f049['descriptionFactory']['registerDescriptionCallback'](_0x56c6bd=>this['handleDescriptions'](_0x56c6bd)));}['handleDescriptions'](_0x252972){const _0x5a75b2=this['editor']['locale'],{data:_0x57e61c}=_0x252972,_0x25a234={'type':'format','content':''};if(_0x57e61c&&'listMarkerStyle'==_0x57e61c['key']){if(!_0x57e61c['oldValue'])return{'type':'format','content':o(_0x5a75b2,'*Set\x20format:*\x20%0',o(_0x5a75b2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x57e61c['newValue']+')'};if(!_0x57e61c['newValue']){let _0x53a8d7=_0x252972['head'];for(;_0x53a8d7;){if(_0x53a8d7['data']&&'listType'==_0x53a8d7['data']['key']&&_0x53a8d7['data']['newValue'])return _0x25a234;_0x53a8d7=_0x53a8d7['next'];}return{'type':'format','content':o(_0x5a75b2,'*Remove\x20format:*\x20%0',o(_0x5a75b2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x57e61c['oldValue']+')'};}}}}class It extends _0x3ff253{['afterInit'](){const _0x1871ca=this['editor'];if(!_0x1871ca['plugins']['has']('PageBreakEditing'))return;_0x1871ca['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x547f6a=_0x1871ca['plugins']['get']('TrackChangesEditing'),_0x401a54=_0x1871ca['locale'];_0x547f6a['descriptionFactory']['registerElementLabel']('pageBreak',_0x1620ea=>o(_0x401a54,'ELEMENT_PAGE_BREAK',_0x1620ea));}}class At extends _0x3ff253{['afterInit'](){const _0xf6f764=this['editor'];if(!_0xf6f764['plugins']['has']('Paragraph'))return;const _0x37f650=_0xf6f764['locale'],_0x543778=_0xf6f764['plugins']['get']('TrackChangesEditing');_0x543778['descriptionFactory']['registerElementLabel']('paragraph',_0x2c413a=>o(_0x37f650,'ELEMENT_PARAGRAPH',_0x2c413a)),_0x543778['enableDefaultAttributesIntegration']('paragraph'),_0x543778['enableCommand']('insertParagraph'),_0xf6f764['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xf6f764),{'priority':'highest'}),_0xf6f764['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x24d255,_0x48cc32,_0x22dc8b)=>{_0x22dc8b['options']['showSuggestionHighlights']&&nr(_0xf6f764,{'showActiveMarker':!0x1})(_0x24d255,_0x48cc32,_0x22dc8b);},{'priority':'highest'});const _0x66fe1=_0x543778['descriptionFactory'];_0x66fe1['registerDescriptionCallback'](_0x3c1322=>{if('insertion'!==_0x3c1322['type'])return;const {start:_0xaa3197,end:_0x5a0dce}=_0x3c1322['getFirstRange']();if(!_0xaa3197['isTouching'](_0x5a0dce)||!_0xaa3197['nodeAfter'])return;const _0x593b48=_0xf6f764['model']['schema'],_0x4d616f=_0xaa3197['nodeAfter'];return _0x593b48['isBlock'](_0x4d616f)&&!_0x593b48['isLimit'](_0x4d616f)&&_0x593b48['checkChild'](_0x4d616f,'$text')?{'type':'insertion','content':o(_0x37f650,'*Insert:*\x20%0',_0x66fe1['getItemLabel'](_0x4d616f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4aad35=this['editor'],_0x33e1e7=_0x4aad35['locale'];_0x4aad35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ed49a=>{if('formatBlock'!=_0x5ed49a['type'])return;const {data:_0x2c4806}=_0x5ed49a;return _0x2c4806&&'paragraph'==_0x2c4806['commandName']?{'type':'format','content':o(_0x33e1e7,'*Change\x20to:*\x20%0',o(_0x33e1e7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3b28e6,{showActiveMarker:_0x432086=!0x0}={}){return(_0xc99194,_0x495323,_0x31bf78)=>{const _0x5e3d97=_0x3b28e6['plugins']['get']('TrackChangesEditing'),_0x1d8694=_0x495323['markerRange']['start'],_0x22f068=_0x495323['markerRange']['end'],_0x53f656=_0x3b28e6['model']['schema'];if(!_0x1d8694['isTouching'](_0x22f068)||!_0x1d8694['nodeAfter'])return;const _0x3655f4=_0x1d8694['nodeAfter'];if(_0x53f656['isBlock'](_0x3655f4)&&!_0x53f656['isLimit'](_0x3655f4)&&_0x53f656['checkChild'](_0x3655f4,'$text')){if(!_0x31bf78['consumable']['consume'](_0x495323['markerRange'],_0xc99194['name']))return;const {id:_0x34a701,authorId:_0x2ef58c}=_0x5e3d97['_splitMarkerName'](_0x495323['markerName']),_0x3a9bc6=_0x31bf78['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x34a701,'data-author-id':_0x2ef58c}),_0x32bcb5=_0x31bf78['mapper']['toViewPosition'](_0x22f068);_0x432086&&_0x5e3d97['activeMarkers']['includes'](_0x495323['markerName'])&&_0x31bf78['writer']['addClass']('ck-suggestion-marker--active',_0x3a9bc6),_0x31bf78['writer']['insert'](_0x32bcb5,_0x3a9bc6),_0x31bf78['mapper']['bindElementToMarker'](_0x3a9bc6,_0x495323['markerName']);}};}class _t extends _0x3ff253{['afterInit'](){const _0x287c16=this['editor'];_0x287c16['commands']['get']('replaceSource')&&_0x287c16['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class $t extends _0x3ff253{['afterInit'](){const _0x41d371=this['editor'];if(!_0x41d371['plugins']['has']('RemoveFormatEditing'))return;_0x41d371['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x479c6a=this['editor'];_0x479c6a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d4c72=>{if('formatBlock'!=_0x1d4c72['type']&&'formatInline'!=_0x1d4c72['type'])return;const {data:_0x4948ed}=_0x1d4c72;return _0x4948ed&&'removeFormat'==_0x4948ed['commandName']?{'type':'format','content':o(_0x479c6a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class vt extends _0x3ff253{['afterInit'](){const _0x54c61d=this['editor'];if(!_0x54c61d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3266d8=_0x54c61d['plugins']['get']('TrackChangesEditing');_0x3266d8['enableCommand']('goToPreviousRestrictedEditingException'),_0x3266d8['enableCommand']('goToNextRestrictedEditingException');const _0x5c3d18=_0x54c61d['plugins']['get']('RestrictedEditingModeEditing');_0x5c3d18['enableCommand']('trackChanges'),_0x5c3d18['enableCommand']('acceptSuggestion'),_0x5c3d18['enableCommand']('discardSuggestion'),_0x5c3d18['enableCommand']('acceptAllSuggestions'),_0x5c3d18['enableCommand']('discardAllSuggestions'),_0x5c3d18['enableCommand']('acceptSelectedSuggestions'),_0x5c3d18['enableCommand']('discardSelectedSuggestions');}}class Ct extends _0x3ff253{['afterInit'](){const _0x1e3969=this['editor'];if(!_0x1e3969['plugins']['has']('ShiftEnter'))return;const _0x784a46=_0x1e3969['plugins']['get']('TrackChangesEditing');_0x784a46['enableCommand']('shiftEnter'),_0x1e3969['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x1e3969),{'priority':'high'}),_0x1e3969['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x1e3969),{'priority':'high'}),_0x1e3969['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x151306,_0x4586b2,_0x268959)=>{_0x268959['options']['showSuggestionHighlights']&&qe(_0x1e3969,{'showActiveMarker':!0x1})(_0x151306,_0x4586b2,_0x268959);}),_0x784a46['descriptionFactory']['registerElementLabel']('softBreak',_0x43c4db=>o(_0x1e3969['locale'],'ELEMENT_LINE_BREAK',_0x43c4db));}}function qe(_0x376f6e,{showActiveMarker:_0x2755a1=!0x0}={}){return(_0x40b667,_0x4a1c07,_0x1aeb79)=>{const _0xf70e1a=_0x376f6e['plugins']['get']('TrackChangesEditing');if(!_0x1aeb79['consumable']['test'](_0x4a1c07['markerRange'],_0x40b667['name']))return;const _0x243d81=_0x376f6e['model'];for(const _0x40459d of _0x4a1c07['markerRange']['getItems']()){if(!_0x40459d['is']('element','softBreak'))continue;const _0x4e8e05='deletion'==_0x4a1c07['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xfec5f1,authorId:_0x3a4a2a}=_0xf70e1a['_splitMarkerName'](_0x4a1c07['markerName']),_0xd10b27=_0x1aeb79['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e8e05,'data-suggestion':_0xfec5f1,'data-author-id':_0x3a4a2a}),_0x2ca275=_0x1aeb79['mapper']['toViewPosition'](_0x243d81['createPositionBefore'](_0x40459d));_0x2755a1&&_0xf70e1a['activeMarkers']['includes'](_0x4a1c07['markerName'])&&_0x1aeb79['writer']['addClass']('ck-suggestion-marker--active',_0xd10b27),_0x1aeb79['writer']['insert'](_0x2ca275,_0xd10b27),_0x1aeb79['mapper']['bindElementToMarker'](_0xd10b27,_0x4a1c07['markerName']);}};}class Nt extends _0x3ff253{['afterInit'](){const _0x4871d9=this['editor'],_0x4eb9c6=_0x4871d9['model'],_0x839d6e=_0x4871d9['locale'];if(!_0x4871d9['plugins']['has']('StandardEditingModeEditing'))return;const _0x4e670a=_0x4871d9['plugins']['get']('TrackChangesEditing'),_0x3f900d='restrictedEditingException',_0xb2ca1e=_0x4871d9['commands']['get'](_0x3f900d);_0x4e670a['enableCommand'](_0x3f900d,(_0x4dfc2d,_0x577728={})=>{const _0x951622=_0x4eb9c6['document']['selection'];if(_0x951622['isCollapsed'])return void _0x4dfc2d(_0x577728);const _0x462c68=void 0x0!==_0x577728['forceValue']?_0x577728['forceValue']:!_0xb2ca1e['value'];_0x4eb9c6['change'](()=>{const _0x54cb4d=Array['from'](_0x951622['getRanges']());for(const _0x33ec6c of _0x54cb4d){const _0x500f97=_0x462c68?[_0x33ec6c]:io(_0x3f900d,_0x33ec6c,_0x4eb9c6);for(const _0x2acc88 of _0x500f97)_0x4e670a['markInlineFormat'](_0x2acc88,{'commandName':_0x3f900d,'commandParams':[{'forceValue':_0x462c68}]});}});}),_0x4e670a['descriptionFactory']['registerDescriptionCallback'](_0x3fba66=>{if('formatBlock'!=_0x3fba66['type']&&'formatInline'!=_0x3fba66['type'])return;const {data:_0x48f762}=_0x3fba66;return _0x48f762&&_0x48f762['commandName']==_0x3f900d?_0x48f762['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x839d6e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x839d6e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Dt extends _0x3ff253{['afterInit'](){const _0x563610=this['editor'];if(!_0x563610['plugins']['has']('Style')||!_0x563610['plugins']['has']('DataSchema'))return;const _0x41784c=_0x563610['plugins']['get']('TrackChangesEditing'),_0x14be48=_0x563610['locale'],_0x1980ca=_0x563610['config']['get']('style')||{},_0x19055d=_0x563610['plugins']['get']('GeneralHtmlSupport'),_0x198fc2=_0x563610['plugins']['get']('StyleUtils')['normalizeConfig'](_0x563610['plugins']['get']('DataSchema'),_0x1980ca['definitions']);_0x41784c['enableDefaultAttributesIntegration']('style');const _0x133ddc=new Set();for(const _0x2e45e0 of _0x198fc2['block']){const _0x417a98=_0x19055d['getGhsAttributeNameForElement'](_0x2e45e0['element']);_0x133ddc['add'](_0x417a98);}const _0x26d0af=new Set();for(const _0x423d55 of _0x198fc2['inline']){const _0xaf25f0=_0x19055d['getGhsAttributeNameForElement'](_0x423d55['element']);_0x26d0af['add'](_0xaf25f0);for(const _0x7f1559 of _0x423d55['ghsAttributes'])_0x26d0af['add'](_0x7f1559);}for(const _0x395dcb of _0x133ddc)_0x41784c['registerBlockAttribute'](_0x395dcb),_0x41784c['descriptionFactory']['registerAttributeLabel'](_0x395dcb,o(_0x14be48,'FORMAT_STYLE'));for(const _0x408500 of _0x26d0af)_0x41784c['registerInlineAttribute'](_0x408500),_0x41784c['descriptionFactory']['registerAttributeLabel'](_0x408500,o(_0x14be48,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x211344=this['editor'],_0x14bfa7=_0x211344['locale'];_0x211344['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c510f=>{if('formatBlock'!=_0x5c510f['type']&&'formatInline'!=_0x5c510f['type'])return;const {data:_0x2fb9d5}=_0x5c510f;return _0x2fb9d5&&'style'===_0x2fb9d5['commandName']?_0x2fb9d5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14bfa7,'*Set\x20format:*\x20%0',_0x2fb9d5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x14bfa7,'*Remove\x20format:*\x20%0',_0x2fb9d5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Mt extends _0x3ff253{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1a26aa){super(_0x1a26aa),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x68f80c=this['editor'],_0x43e42c=_0x68f80c['model']['document']['selection'];if(!_0x68f80c['plugins']['has']('TableEditing'))return;const _0x2180c0=_0x68f80c['locale'],_0x223209=_0x68f80c['plugins']['get']('TrackChangesEditing'),_0x5352ac=_0x68f80c['plugins']['get']('TableUtils');_0x223209['descriptionFactory']['registerElementLabel']('table',_0x283850=>o(_0x2180c0,'ELEMENT_TABLE',_0x283850)),this['_setupColumnsRowsFixing'](),_0x223209['enableCommand']('insertTable'),_0x223209['enableCommand']('selectTableRow'),_0x223209['enableCommand']('selectTableColumn');for(const _0x26ef72 of['insertTableRowAbove','insertTableRowBelow']){const _0x33a7eb=_0x68f80c['commands']['get'](_0x26ef72);_0x223209['enableCommand'](_0x26ef72,_0x62ca23=>{_0x68f80c['model']['change'](_0x11cbe4=>{_0x62ca23();const _0xc4b7ac='above'===_0x33a7eb['order'],_0x450be1=_0x5352ac['getSelectionAffectedTableCells'](_0x43e42c),_0x267723=_0x5352ac['getRowIndexes'](_0x450be1),_0x8d89bf=_0xc4b7ac?_0x267723['first']-0x1:_0x267723['last']+0x1,_0xa8b01a=_0x450be1[0x0]['findAncestor']('table'),_0x21afea=_0x5352ac['createTableWalker'](_0xa8b01a,{'startRow':_0x8d89bf,'endRow':_0x8d89bf}),_0x324891=Array['from'](_0x21afea)['map'](_0x4ec44a=>_0x11cbe4['createRangeOn'](_0x4ec44a['cell']));_0x223209['markMultiRangeInsertion'](_0x324891,'tableRow');});});}for(const _0x4aea01 of['insertTableColumnLeft','insertTableColumnRight']){const _0x262472=_0x68f80c['commands']['get'](_0x4aea01);_0x223209['enableCommand'](_0x4aea01,_0x325633=>{_0x68f80c['model']['change'](_0x5b6ee5=>{_0x325633();const _0x5886c7='left'===_0x262472['order'],_0x25ea61=_0x5352ac['getSelectionAffectedTableCells'](_0x43e42c),_0x10e167=_0x5352ac['getColumnIndexes'](_0x25ea61),_0x26643e=_0x5886c7?_0x10e167['first']-0x1:_0x10e167['last']+0x1,_0x1fbc12=_0x25ea61[0x0]['findAncestor']('table'),_0x5f0ca6=_0x5352ac['createTableWalker'](_0x1fbc12,{'startRow':0x0,'column':_0x26643e,'includeAllSlots':!0x1}),_0x26abbb=Array['from'](_0x5f0ca6)['map'](_0x2a790d=>_0x5b6ee5['createRangeOn'](_0x2a790d['cell']));_0x223209['markMultiRangeInsertion'](_0x26abbb,'tableColumn');});});}for(const _0x5da6bc of['removeTableRow','removeTableColumn']){const _0x18a390=_0x5da6bc['substr'](0xb),_0x196178=_0x18a390['toLowerCase'](),_0x14cf24=_0x196178['substr'](0x0,0x3)+'span',_0xeacf51='table'+_0x18a390,_0x5c39a0='min'+_0x18a390,_0xe89f67='max'+_0x18a390;_0x223209['enableCommand'](_0x5da6bc,()=>{_0x68f80c['model']['change'](_0x31ece9=>{const _0x57bbbf=_0x5352ac['getSelectionAffectedTableCells'](_0x43e42c),_0xf1a962=_0x57bbbf[0x0]['findAncestor']('table');let _0x2043db;if('removeTableRow'==_0x5da6bc){const _0x31caaa=_0x5352ac['getRowIndexes'](_0x57bbbf);_0x2043db={'startRow':_0x31caaa['first'],'endRow':_0x31caaa['last'],'includeAllSlots':!0x0};}else{const _0x2cc045=_0x5352ac['getColumnIndexes'](_0x57bbbf);_0x2043db={'startColumn':_0x2cc045['first'],'endColumn':_0x2cc045['last'],'includeAllSlots':!0x0};}const _0x305f3c=_0x5352ac['createTableWalker'](_0xf1a962,_0x2043db),_0x1208a1=Array['from'](_0x305f3c)['map'](({cell:_0x42a80f})=>_0x42a80f),_0x5c04e7=Oe(_0x1208a1['filter'](_0x50ad47=>_0x50ad47['hasAttribute'](_0x14cf24))),_0x391743=Oe(_0x1208a1['filter'](_0x5d11c6=>!_0x5d11c6['hasAttribute'](_0x14cf24)))['map'](_0x50960e=>_0x31ece9['createRangeOn'](_0x50960e)),_0x3dc0ee=_0x223209['markMultiRangeDeletion'](_0x391743,_0xeacf51);if(_0x3dc0ee&&('tableRow'==_0x3dc0ee['subType']||'tableColumn'==_0x3dc0ee['subType'])){const _0x4eee8b=this['_getSuggestionCoords'](_0x3dc0ee);for(const _0x2c7169 of _0x5c04e7){const _0x36bf0f=_0x31ece9['createRangeOn'](_0x2c7169),_0x37e0f2=_0x5352ac['getCellLocation'](_0x2c7169),_0x5d9104=_0x2c7169['getAttribute'](_0x14cf24)-0x1,_0xf2cfdd=_0x4eee8b[_0x5c39a0],_0x36b8fa=_0x4eee8b[_0xe89f67];_0xf2cfdd<=_0x37e0f2[_0x196178]&&_0x37e0f2[_0x196178]+_0x5d9104<=_0x36b8fa&&_0x3dc0ee['addRange'](_0x36bf0f);}}});});}function _0x7d2eba(_0x353015){const _0x29b162=Array['from'](_0x43e42c['getRanges']())['map'](_0x25e010=>_0x2d08fb['fromRange'](_0x25e010));_0x68f80c['model']['change'](_0x3235ab=>{const _0x3be441=_0x3235ab['batch'];_0x353015=_0x353015['filter'](_0x26e741=>'$graveyard'!=_0x26e741['root']['rootName']),_0x3235ab['setSelection'](_0x353015),_0x68f80c['commands']['get']('removeTableRow')['refresh'](),_0x68f80c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x68f80c['model']['enqueueChange'](()=>{_0x68f80c['model']['enqueueChange'](_0x3be441,_0x5f4602=>{const _0x49c93a=_0x29b162['filter'](_0x113bbf=>'$graveyard'!=_0x113bbf['root']['rootName']);_0x49c93a['length']>0x0&&_0x5f4602['setSelection'](_0x49c93a);for(const _0x325a29 of _0x29b162)_0x325a29['detach']();});});});}function _0x581145(_0x132b96){_0x68f80c['model']['change'](_0x37f5bb=>{const _0x4641c5=Array['from'](_0x43e42c['getRanges']())['map'](_0x3c5b19=>_0x2d08fb['fromRange'](_0x3c5b19)),_0xea8df9=[];for(const _0x48f25b of _0x132b96)for(const _0x1970fe of _0x48f25b['getItems']({'shallow':!0x0}))_0xea8df9['push'](_0x1970fe);for(const _0x178b77 of _0xea8df9)'$graveyard'!=_0x178b77['root']['rootName']&&(_0x37f5bb['setSelection'](_0x37f5bb['createPositionAt'](_0x178b77,0x0)),_0x68f80c['commands']['get']('removeTableColumn')['refresh'](),_0x68f80c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x11a716=_0x4641c5['filter'](_0xf79e09=>'$graveyard'!=_0xf79e09['root']['rootName']);_0x11a716['length']>0x0&&_0x37f5bb['setSelection'](_0x11a716);for(const _0x2d374a of _0x4641c5)_0x2d374a['detach']();});}function _0x9bc8d3(_0x2fcc94,_0x47b536){return _0x47b536['every'](_0x194d48=>_0x2fcc94['some'](_0x5e9fea=>_0x5e9fea['end']['isEqual'](_0x194d48['start'])||_0x194d48['end']['isEqual'](_0x5e9fea['start'])));}function _0x162c51(_0x454d20,_0x10a88e){return!_0x454d20['some'](_0xee8d94=>_0x10a88e['some'](_0x3dad49=>_0xee8d94['isIntersecting'](_0x3dad49)))&&_0x454d20['some'](_0x8e8224=>_0x10a88e['some'](_0x4bc435=>_0x8e8224['end']['isTouching'](_0x4bc435['start'])));}_0x68f80c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x318475,_0x18dbdd,_0x1c0acb)=>{if(!_0x1c0acb['options']['showSuggestionHighlights'])return;const _0x58c588=_0x18dbdd['item'];if(!_0x58c588||!_0x58c588['is']('element','tableCell'))return;const _0x56a88d=_0x1c0acb['mapper']['toViewElement'](_0x58c588);if(_0x56a88d){const {id:_0x1f5b0a,authorId:_0x5b16f9}=_0x223209['_splitMarkerName'](_0x18dbdd['markerName']);_0x46b1d6(_0x56a88d,_0x1c0acb['writer'],(_0x446b0c,_0x3a5af6,_0xe7c1de)=>{_0xe7c1de['addClass'](_0x450ade(_0x3a5af6['classes']),_0x446b0c),_0xe7c1de['setAttribute']('data-suggestion-id',_0x1f5b0a,_0x446b0c),_0xe7c1de['setAttribute']('data-author-id',_0x5b16f9,_0x446b0c);},(_0x19aa1d,_0x463dbf,_0xf9e293)=>{_0xf9e293['removeClass'](_0x450ade(_0x463dbf['classes']),_0x19aa1d),_0xf9e293['removeAttribute']('data-suggestion-id',_0x19aa1d),_0xf9e293['removeAttribute']('data-author-id',_0x19aa1d);});}},{'priority':'highest'}),_0x223209['descriptionFactory']['registerDescriptionCallback'](_0x1eca6e=>{if('insertion'!=_0x1eca6e['type']&&'deletion'!=_0x1eca6e['type'])return;const _0x119458=_0x1eca6e['getContainedElement']();if(null!=_0x119458&&_0x119458['is']('element','table')){if('insertion'==_0x1eca6e['type']){const _0x146c8b=_0x1eca6e['getItems']()['filter'](_0x28e3d2=>_0x28e3d2['is']('$textProxy'))['map'](_0x943df6=>_0x943df6['data']);if(_0x146c8b['length'])return{'type':'insertion','content':o(_0x2180c0,'*Insert:*\x20%0',o(_0x2180c0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x146c8b['join']('\x20')+'\x22'))};}if('deletion'==_0x1eca6e['type']){const _0x54497f=_0x1eca6e['getItems']()['filter'](_0x2562d8=>_0x2562d8['is']('$textProxy'))['map'](_0x17d7b=>_0x17d7b['data']);if(_0x54497f['length'])return{'type':'deletion','content':o(_0x2180c0,'*Remove:*\x20%0',o(_0x2180c0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x54497f['join']('\x20')+'\x22'))};}}}),_0x223209['descriptionFactory']['registerDescriptionCallback'](_0x2aad61=>{if('tableRow'==_0x2aad61['subType']){const _0x182055=_0x2aad61['getItems']()['filter'](_0x253249=>_0x253249['is']('$textProxy'))['map'](_0x59abdf=>_0x59abdf['data']),_0x3e1bc1=this['_getSuggestionCoords'](_0x2aad61),_0x175a3d=_0x3e1bc1['maxRow']-_0x3e1bc1['minRow']+0x1;if('insertion'==_0x2aad61['type'])return _0x182055['length']?{'type':'insertion','content':o(_0x2180c0,'*Insert:*\x20%0',o(_0x2180c0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x175a3d,'\x22'+_0x182055['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2180c0,'*Insert:*\x20%0',o(_0x2180c0,'ELEMENT_TABLE_ROW',_0x175a3d))};if('deletion'==_0x2aad61['type'])return _0x182055['length']?{'type':'deletion','content':o(_0x2180c0,'*Remove:*\x20%0',o(_0x2180c0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x175a3d,'\x22'+_0x182055['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2180c0,'*Remove:*\x20%0',o(_0x2180c0,'ELEMENT_TABLE_ROW',_0x175a3d))};}if('tableColumn'==_0x2aad61['subType']){const _0x279bdd=_0x2aad61['getItems']()['filter'](_0x2f2fe1=>_0x2f2fe1['is']('$textProxy'))['map'](_0x4fdf55=>_0x4fdf55['data']),_0x37f289=this['_getSuggestionCoords'](_0x2aad61),_0x5c4469=_0x37f289['maxColumn']-_0x37f289['minColumn']+0x1;if('insertion'==_0x2aad61['type'])return _0x279bdd['length']?{'type':'insertion','content':o(_0x2180c0,'*Insert:*\x20%0',o(_0x2180c0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c4469,'\x22'+_0x279bdd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2180c0,'*Insert:*\x20%0',o(_0x2180c0,'ELEMENT_TABLE_COLUMN',_0x5c4469))};if('deletion'==_0x2aad61['type'])return _0x279bdd['length']?{'type':'deletion','content':o(_0x2180c0,'*Remove:*\x20%0',o(_0x2180c0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c4469,'\x22'+_0x279bdd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2180c0,'*Remove:*\x20%0',o(_0x2180c0,'ELEMENT_TABLE_COLUMN',_0x5c4469))};}}),_0x223209['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x7d2eba),_0x223209['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x7d2eba),_0x223209['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x581145),_0x223209['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x581145),_0x223209['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x9bc8d3),_0x223209['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x9bc8d3),_0x223209['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x162c51),_0x223209['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x162c51);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3ba94b=this['editor'],_0x55ae02=_0x3ba94b['model']['document']['selection'];return(_0xd02c5,_0x555582)=>{_0x3ba94b['model']['change'](_0x103064=>{const {commandName:_0x1230d1,commandParams:_0x41383f}=_0x555582;let _0x2563ba=_0xd02c5[0x0]['end']['nodeBefore'];_0x41383f&&_0x41383f[0x0]&&!0x1===_0x41383f[0x0]['forceValue']&&(_0x2563ba=_0xd02c5[0x0]['start']['nodeAfter']);const _0x14d1eb=_0x103064['createRangeIn'](_0x2563ba);if('$graveyard'==_0x14d1eb['root']['rootName'])return;const _0x2966a8=Array['from'](_0x55ae02['getRanges']())['map'](_0x13f615=>_0x2d08fb['fromRange'](_0x13f615));_0x103064['setSelection'](_0x14d1eb),_0x3ba94b['commands']['get'](_0x1230d1)['refresh'](),_0x41383f['push']({'forceDefaultExecution':!0x0}),_0x3ba94b['execute'](_0x1230d1,..._0x41383f);const _0x55ab84=_0x2966a8['filter'](_0x374a32=>'$graveyard'!=_0x374a32['root']['rootName']);_0x55ab84['length']>0x0&&_0x103064['setSelection'](_0x55ab84);for(const _0x29b5c2 of _0x2966a8)_0x29b5c2['detach']();});};}['_getCoordsForCells'](_0x22e22d){const _0x42c637=this['editor']['plugins']['get']('TableUtils');let _0x2fa079=Number['MAX_SAFE_INTEGER'],_0x446937=Number['MIN_SAFE_INTEGER'],_0x15af52=Number['MAX_SAFE_INTEGER'],_0x37ef5b=Number['MIN_SAFE_INTEGER'];for(const _0x3838c1 of _0x22e22d){if('$graveyard'==_0x3838c1['root']['rootName'])continue;const {row:_0x28554e,column:_0x2516e9}=_0x42c637['getCellLocation'](_0x3838c1),_0x17372f=_0x3838c1['hasAttribute']('rowspan')?_0x3838c1['getAttribute']('rowspan')-0x1:0x0,_0x5354d6=_0x3838c1['hasAttribute']('colspan')?_0x3838c1['getAttribute']('colspan')-0x1:0x0;_0x2fa079=_0x28554e<_0x2fa079?_0x28554e:_0x2fa079,_0x446937=_0x28554e+_0x17372f>_0x446937?_0x28554e+_0x17372f:_0x446937,_0x15af52=_0x2516e9<_0x15af52?_0x2516e9:_0x15af52,_0x37ef5b=_0x2516e9+_0x5354d6>_0x37ef5b?_0x2516e9+_0x5354d6:_0x37ef5b;}return{'minRow':_0x2fa079,'maxRow':_0x446937,'minColumn':_0x15af52,'maxColumn':_0x37ef5b};}['_setupColumnsRowsFixing'](){const _0x490e44=this['editor'],_0x3abc07=_0x490e44['plugins']['get']('TrackChangesEditing'),_0x1ccd77=_0x490e44['plugins']['get']('TableUtils');_0x490e44['model']['document']['on']('change:data',()=>{const _0x4c7c68=Array['from'](_0x490e44['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40a4f8,data:_0x473ce0}of _0x4c7c68){const {group:_0x1fca21,id:_0x4f5f90,subType:_0x2fdf75}=_0x3abc07['_splitMarkerName'](_0x40a4f8);if('suggestion'!=_0x1fca21)continue;if(null!=_0x473ce0['oldRange'])continue;const _0x549023=_0x3abc07['getSuggestion'](_0x4f5f90);this['_tablePostFixingSubtypes']['includes'](_0x2fdf75)&&this['_tableSuggestions']['add'](_0x549023);}},{'priority':'low'});const _0x4709a1=(_0x3f1717,_0x36eb95)=>{let _0x95034d=!0x1;const _0x43f12a=_0x36eb95['createRangeOn'](_0x3f1717),_0x2f8779=_0x3f1717['findAncestor']('table'),_0x15b002=_0x1ccd77['getCellLocation'](_0x3f1717);for(const _0x458a3e of this['_tableSuggestions']){const _0x363f22=_0x458a3e['subType'],_0xd6696a=_0x363f22['startsWith']('tablePaste'),_0x2f8847=_0x363f22['substr'](_0xd6696a?0xa:0x5),_0x142cfc=_0x2f8847['toLowerCase'](),_0x44367f=_0x142cfc['substr'](0x0,0x3)+'span',_0x2c10ba='min'+_0x2f8847,_0x4cea0e='max'+_0x2f8847;if(!_0x458a3e['isInContent'])continue;if(_0x2f8779!=_0x458a3e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x458a3e['isIntersectingWithRange'](_0x43f12a))continue;const _0x15cffc=_0x3f1717['hasAttribute'](_0x44367f)?_0x3f1717['getAttribute'](_0x44367f)-0x1:0x0,_0x32e991=this['_getSuggestionCoords'](_0x458a3e),_0x28c472=_0x32e991[_0x2c10ba],_0x52c9a6=_0x32e991[_0x4cea0e];_0x28c472<=_0x15b002[_0x142cfc]&&_0x15b002[_0x142cfc]+_0x15cffc<=_0x52c9a6&&(_0x458a3e['addRange'](_0x43f12a),_0x95034d=!0x0);}return _0x95034d;};_0x490e44['model']['document']['registerPostFixer'](_0x4f74ce=>{let _0xb89e64=!0x1;for(const _0x3a012c of _0x490e44['model']['document']['differ']['getChanges']())if('insert'==_0x3a012c['type']){if('tableRow'==_0x3a012c['name']){for(const _0x31e2a3 of _0x3a012c['position']['nodeAfter']['getChildren']())_0xb89e64=_0xb89e64||_0x4709a1(_0x31e2a3,_0x4f74ce);}else'tableCell'==_0x3a012c['name']&&(_0xb89e64=_0xb89e64||_0x4709a1(_0x3a012c['position']['nodeAfter'],_0x4f74ce));}return _0xb89e64;});}['_getSuggestionCoords'](_0x111d97){return this['_getCoordsForCells'](_0x111d97['getRanges']()['map'](_0xc21cab=>_0xc21cab['start']['nodeAfter']));}}function Oe(_0x430853){return Array['from'](new Set(_0x430853)['values']());}class Bt extends _0x3ff253{static get['requires'](){return[Mt];}['afterInit'](){const _0x26535b=this['editor'],_0x3482b8=_0x26535b['model']['document']['selection'],_0x5e7c63=_0x26535b['locale'];if(!_0x26535b['plugins']['has']('TableEditing'))return;const _0x96accd=_0x26535b['plugins']['get']('TrackChangesEditing'),_0x50a0a5=_0x26535b['plugins']['get']('TableUtils'),_0x4205f9=_0x26535b['plugins']['get'](Mt);_0x4205f9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x96accd['enableCommand']('mergeTableCells',()=>{const _0x5e5f3c=_0x50a0a5['getSelectionAffectedTableCells'](_0x26535b['model']['document']['selection']);_0x26535b['model']['change'](()=>{_0x96accd['markMultiRangeBlockFormat'](_0x5e5f3c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x26535b['commands']['get']('mergeTableCells')['on']('execute',(_0x1bdc86,_0x2466df)=>{_0x26535b['commands']['get']('trackChanges')['value']&&(_0x2466df['length']>0x0&&_0x2466df[_0x2466df['length']-0x1]&&_0x2466df[_0x2466df['length']-0x1]['forceDefaultExecution']||_0x96accd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1bdc86['stop']());},{'priority':'highest'});for(const _0x2d5352 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x107825=_0x26535b['commands']['get'](_0x2d5352);_0x96accd['enableCommand'](_0x2d5352,()=>{const _0x4f9079=_0x26535b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3a4abb=>_0x3a4abb['is']('element','tableCell')),_0x1c108a=_0x107825['value'];_0x26535b['model']['change'](()=>{_0x96accd['markMultiRangeBlockFormat']([_0x4f9079,_0x1c108a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2d2230 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1e6d7a=_0x26535b['commands']['get'](_0x2d2230);_0x96accd['enableCommand'](_0x2d2230,()=>{const _0x37d318=_0x50a0a5['getSelectionAffectedTableCells'](_0x26535b['model']['document']['selection'])[0x0],_0x3c775b=_0x37d318['findAncestor']('table'),{column:_0x370d45,row:_0x2c670e}=_0x50a0a5['getCellLocation'](_0x37d318);let _0x5da154=[];if('horizontally'==_0x1e6d7a['direction']){const _0x2a02d5=_0x50a0a5['createTableWalker'](_0x3c775b,{'startRow':_0x2c670e,'endRow':_0x2c670e,'includeAllSlots':!0x0});_0x5da154=Array['from'](_0x2a02d5)['map'](_0x49abee=>_0x49abee['cell']);}else{const _0x5ef6ab=_0x50a0a5['createTableWalker'](_0x3c775b,{'column':_0x370d45,'includeAllSlots':!0x0});_0x5da154=Array['from'](_0x5ef6ab)['map'](_0x1e91b8=>_0x1e91b8['cell']);}_0x26535b['model']['change'](_0x19c74f=>{_0x96accd['markBlockFormat'](_0x19c74f['createRangeOn'](_0x37d318),{'commandName':_0x2d2230,'commandParams':[]},_0x5da154,_0x2d2230);});});}_0x96accd['descriptionFactory']['registerDescriptionCallback'](_0x15eb16=>{if('formatBlock'!=_0x15eb16['type']&&'formatInline'!=_0x15eb16['type'])return;const {data:_0x4a4857}=_0x15eb16;return _0x4a4857&&'mergeTableCells'==_0x4a4857['commandName']?{'type':'format','content':o(_0x5e7c63,'*Merge\x20cells*')}:void 0x0;}),_0x96accd['descriptionFactory']['registerDescriptionCallback'](_0x571c13=>{if('formatBlock'!=_0x571c13['type']&&'formatInline'!=_0x571c13['type'])return;const {data:_0xa9d3ac}=_0x571c13;return _0xa9d3ac?'splitTableCellVertically'==_0xa9d3ac['commandName']?{'type':'format','content':o(_0x5e7c63,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xa9d3ac['commandName']?{'type':'format','content':o(_0x5e7c63,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xfcfe4b=_0x4205f9['_acceptFormatSuggestionCallbackFactory']();for(const _0x21646c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x96accd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21646c,'accept',_0xfcfe4b);for(const _0x4fa357 of['splitTableCellVertically','splitTableCellHorizontally'])_0x96accd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4fa357,'accept',_0xfcfe4b);_0x96accd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x21bcec=>{_0x26535b['model']['change'](_0x4c03f4=>{const _0x451e78=Array['from'](_0x3482b8['getRanges']())['map'](_0x223bc8=>_0x2d08fb['fromRange'](_0x223bc8));_0x4c03f4['setSelection'](_0x21bcec),_0x26535b['commands']['get']('mergeTableCells')['refresh'](),_0x26535b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1f2a75=_0x451e78['filter'](_0x39eae8=>'$graveyard'!=_0x39eae8['root']['rootName']);_0x1f2a75['length']>0x0&&_0x4c03f4['setSelection'](_0x1f2a75);for(const _0x1ea7e2 of _0x451e78)_0x1ea7e2['detach']();});});for(const _0x413360 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4c762f=_0x26535b['commands']['get'](_0x413360);_0x4c762f['on']('set:isEnabled',(_0x34697c,_0x124783,_0x3963c0)=>{if(_0x3963c0){const _0x5d83ee=_0x26535b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x20da58=>_0x20da58['is']('element','tableCell'));this['_areMergableCells'](_0x4c762f['value'],_0x5d83ee)||(_0x34697c['return']=!0x1,_0x34697c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x28eb71=this['editor']['commands']['get']('mergeTableCells'),_0x3dbd6f=this['editor']['plugins']['get']('TableUtils');if(!_0x28eb71['isEnabled'])return!0x1;const _0x56e801=_0x3dbd6f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x25c641 of _0x56e801)for(const _0x3abd7e of _0x56e801)if(_0x25c641!=_0x3abd7e&&!this['_areMergableCells'](_0x25c641,_0x3abd7e))return!0x1;return!0x0;}['_areMergableCells'](_0x29fd19,_0x8d8f22){const _0x53be6c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bd2b6=this['editor']['model']['createRangeOn'](_0x29fd19),_0x5cfac1=this['editor']['model']['createRangeOn'](_0x8d8f22),_0x429eec=new Set(),_0x27e5a3=new Set();for(const _0x2b351d of _0x53be6c['getSuggestions']())if(('insertion'==_0x2b351d['type']||'deletion'==_0x2b351d['type']||'mergeTableCells'==_0x2b351d['subType'])&&_0x2b351d['isInContent']){for(const _0x433746 of _0x2b351d['getRanges']())_0x433746['containsRange'](_0x4bd2b6,!0x0)&&_0x429eec['add'](_0x2b351d['type']+':'+_0x2b351d['author']['id']),_0x433746['containsRange'](_0x5cfac1,!0x0)&&_0x27e5a3['add'](_0x2b351d['type']+':'+_0x2b351d['author']['id']);}if(_0x429eec['size']!=_0x27e5a3['size'])return!0x1;for(const _0x4e978a of _0x429eec)if(!_0x27e5a3['has'](_0x4e978a))return!0x1;return!0x0;}}class Tt extends _0x3ff253{static get['requires'](){return[Mt];}['afterInit'](){const _0x4adb30=this['editor'];if(!_0x4adb30['plugins']['has']('TableEditing'))return;const _0x3fa7ea=_0x4adb30['locale'],_0x51bbb8=_0x4adb30['plugins']['get']('TrackChangesEditing');_0x51bbb8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x51bbb8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x51bbb8['registerBlockAttribute']('headingRows'),_0x51bbb8['registerBlockAttribute']('headingColumns'),_0x51bbb8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3fa7ea,'FORMAT_HEADER_ROW')),_0x51bbb8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3fa7ea,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x255264=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b6647=this['editor']['plugins']['get']('TableUtils'),_0x2da148=this['editor']['plugins']['get'](Mt)['_acceptFormatSuggestionCallbackFactory']();function _0xbf522c({showActiveMarker:_0x4a4336=!0x0,setDataAttribute:_0xee456f=!0x0}={}){return(_0x136479,_0x4a6db1,_0x2267d6)=>{const {type:_0x4b5638,id:_0x51a23b}=_0x255264['_splitMarkerName'](_0x4a6db1['markerName']);if(!_0x255264['hasSuggestion'](_0x51a23b))return;const _0x3e285b=_0x255264['getSuggestion'](_0x51a23b),_0x43131e=_0x3e285b['data'];if('formatBlock'!=_0x3e285b['type']||!_0x43131e||'setTableColumnHeader'!=_0x43131e['commandName'])return;if(_0x4a6db1['item'])return void _0x136479['stop']();if(!_0x2267d6['consumable']['consume'](_0x4a6db1['markerRange'],_0x136479['name']))return;const _0x16b757=_0x4a6db1['markerRange']['start']['nodeAfter'],_0x5de985=_0x4a6db1['markerRange']['end']['nodeBefore'],_0x174ae1=_0x16b757['parent']['parent'],{column:_0x44a17f}=_0x4b6647['getCellLocation'](_0x16b757),{column:_0x40c15a}=_0x4b6647['getCellLocation'](_0x5de985);for(let _0x290e17=_0x44a17f;_0x290e17<=_0x40c15a;_0x290e17++){const _0x600170=_0x4b6647['createTableWalker'](_0x174ae1,{'column':_0x290e17,'includeAllSlots':!0x1});for(const _0x4ca39f of _0x600170){const _0x45934c=_0x4ca39f['cell'],_0x3ea578=_0x2267d6['mapper']['toViewElement'](_0x45934c);_0x2267d6['writer']['addClass']('ck-suggestion-marker-'+_0x4b5638,_0x3ea578),_0xee456f&&_0x2267d6['writer']['setAttribute']('data-suggestion',_0x51a23b,_0x3ea578),_0x2267d6['mapper']['bindElementToMarker'](_0x3ea578,_0x4a6db1['markerName']),_0x4a4336&&(_0x255264['activeMarkers']['includes'](_0x4a6db1['markerName'])?_0x2267d6['writer']['addClass']('ck-suggestion-marker--active',_0x3ea578):_0x2267d6['writer']['removeClass']('ck-suggestion-marker--active',_0x3ea578));}}};}_0x255264['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2da148),_0x255264['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2da148),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xbf522c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x583f26,_0x4fe1be,_0x13a193)=>{_0x13a193['options']['showSuggestionHighlights']&&_0xbf522c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x583f26,_0x4fe1be,_0x13a193);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2af242,_0x10228f,_0x3df61f)=>{const {type:_0x2977ec,id:_0x58b4c0}=_0x255264['_splitMarkerName'](_0x10228f['markerName']);if(!_0x255264['hasSuggestion'](_0x58b4c0))return;const _0x465c53=_0x255264['getSuggestion'](_0x58b4c0),_0x103fb8=_0x465c53['data'];if('formatBlock'!=_0x465c53['type']||!_0x103fb8||'setTableColumnHeader'!=_0x103fb8['commandName'])return;const _0xbe8b05=_0x3df61f['mapper']['markerNameToElements'](_0x10228f['markerName']);if(_0xbe8b05){for(const _0x520e36 of _0xbe8b05)_0x3df61f['writer']['removeClass']('ck-suggestion-marker-'+_0x2977ec,_0x520e36),_0x3df61f['writer']['removeClass']('ck-suggestion-marker--active',_0x520e36),_0x3df61f['writer']['removeAttribute']('data-suggestion',_0x520e36),_0x3df61f['mapper']['unbindElementFromMarkerName'](_0x520e36,_0x10228f['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31c5c6=this['editor'],_0x116e4a=_0x31c5c6['locale'];function _0xdb7920(_0x43e7b0){return{'type':'format','content':o(_0x116e4a,'*Format:*\x20%0',_0x43e7b0)};}_0x31c5c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43ee81=>{if('formatBlock'!=_0x43ee81['type'])return;const {data:_0x323bb8}=_0x43ee81;if(_0x323bb8){if('setTableRowHeader'==_0x323bb8['commandName']){const _0x27d386=_0x323bb8['commandParams'][0x0]['forceValue'];return _0xdb7920(o(_0x116e4a,_0x27d386?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x323bb8['commandName']){const _0x117fc3=_0x323bb8['commandParams'][0x0]['forceValue'];return _0xdb7920(o(_0x116e4a,_0x117fc3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ot extends _0x3ff253{['afterInit'](){const _0x21b6a3=this['editor'],_0x5ab5af=_0x21b6a3['locale'],_0x5c3cc8=_0x21b6a3['plugins']['get']('TrackChangesEditing');function _0x203c03(_0x1af5d5){return{'type':'format','content':''+o(_0x5ab5af,'*Set\x20table\x20type:*\x20%0',_0x1af5d5)};}_0x21b6a3['plugins']['has']('TableLayout')&&(_0x5c3cc8['enableCommand']('insertTableLayout'),_0x5c3cc8['enableDefaultAttributesIntegration']('tableType'),_0x5c3cc8['registerBlockAttribute']('tableType'),_0x5c3cc8['descriptionFactory']['registerElementLabel'](_0x1ff190=>_0x1ff190['is']('element','table')&&'layout'===_0x1ff190['getAttribute']('tableType'),_0x3c90d0=>o(_0x5ab5af,'ELEMENT_LAYOUT_TABLE',_0x3c90d0)),_0x5c3cc8['descriptionFactory']['registerDescriptionCallback'](_0x3cbf4e=>{const {data:_0x2f11da}=_0x3cbf4e;if(_0x2f11da&&'tableType'==_0x2f11da['key'])switch(_0x2f11da['newValue']){case'layout':return _0x203c03(o(_0x5ab5af,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x203c03(o(_0x5ab5af,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Ue['map'](_0x2ceeee=>[_0x2ceeee,null]));class xt extends _0x3ff253{static get['requires'](){return[Mt];}['afterInit'](){const _0x1568a8=this['editor'];if(!_0x1568a8['plugins']['has']('TableClipboard'))return;const _0x2c7c57=_0x1568a8['plugins']['get']('TrackChangesEditing'),_0x3e404d=_0x1568a8['plugins']['get']('TableUtils'),_0xe88f72=_0x1568a8['plugins']['get'](Mt),_0x1de191=_0x1568a8['plugins']['get']('TableClipboard'),_0x1fa7bd=_0x1568a8['plugins']['get']('TableSelection'),_0x480c7c=_0x1568a8['plugins']['get'](_0x1fc43f);_0xe88f72['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1568a8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1568a8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x33eee8=null,_0x4feccb=!0x1;_0x480c7c['on']('contentInsertion',(_0xdbf3ac,_0x3b6e0e)=>{_0x4feccb='paste'===_0x3b6e0e['method'];}),_0x1568a8['model']['on']('insertContent',(_0x2f29be,_0x1d4773)=>{if(!_0x4feccb&&null===_0x1fa7bd['getSelectedTableCells']())return;const [_0x1f2559,_0x35db00]=_0x1d4773,_0x326409=_0x1d4773[_0x1d4773['length']-0x1];_0x326409&&_0x326409['forceDefaultExecution']||_0x2c7c57['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3591c8,_0x14aea5,_0x3a2f94,_0x57be2a,_0x3ae540){if(_0x14aea5&&!_0x14aea5['is']('documentSelection'))return!0x1;const _0x4e0430=_0x3ae540['getTableIfOnlyTableInContent'](_0x3591c8,_0x3a2f94);if(!_0x4e0430||!Ge(_0x4e0430,void 0x0,_0x57be2a))return!0x1;const _0x5da745=_0x57be2a['getSelectionAffectedTableCells'](_0x3a2f94['document']['selection']);if(!_0x5da745['length'])return!0x1;const _0x2b91f2=_0x5da745[0x0]['findAncestor']('table'),_0x135f61=_0x57be2a['getRowIndexes'](_0x5da745),_0x4f5353=_0x57be2a['getColumnIndexes'](_0x5da745),_0x3ae354={'startRow':_0x135f61['first'],'endRow':_0x135f61['last'],'startColumn':_0x4f5353['first'],'endColumn':_0x4f5353['last']};return 0x1==_0x5da745['length']&&(_0x3ae354['endRow']+=_0x57be2a['getRows'](_0x4e0430)-0x1,_0x3ae354['endColumn']+=_0x57be2a['getColumns'](_0x4e0430)-0x1),Ge(_0x2b91f2,_0x3ae354,_0x57be2a);}(_0x1f2559,_0x35db00,_0x1568a8['model'],_0x3e404d,_0x1de191)&&(_0x2f29be['stop'](),_0x33eee8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1568a8['model']['change'](()=>{_0x1568a8['model']['insertContent'](_0x1d4773[0x0],_0x1d4773[0x1],_0x1d4773[0x2],{'forceDefaultExecution':!0x0});const _0xf580dc=_0x13e6cd(),{rowInsertionRanges:_0x429b75,columnInsertionRanges:_0x3df7bf,insertionRanges:_0x2e1054,deletionRanges:_0x1875c5,cells:_0x46a14e}=_0x33eee8;_0x429b75['length']&&_0x2c7c57['markMultiRangeInsertion'](_0x429b75,'tablePasteRow',{'tablePasteChainId':_0xf580dc}),_0x3df7bf['length']&&_0x2c7c57['markMultiRangeInsertion'](_0x3df7bf,'tablePasteColumn',{'tablePasteChainId':_0xf580dc}),_0x2e1054['length']&&(_0x2c7c57['markMultiRangeInsertion'](_0x2e1054,'tablePaste',{'tablePasteChainId':_0xf580dc,'skipNestingCheck':!0x0}),_0x2e1054['forEach'](_0x2dd7d2=>_0x2dd7d2['detach']?.())),_0x1875c5['length']&&(_0x2c7c57['markMultiRangeDeletion'](_0x1875c5,'tablePaste',{'tablePasteChainId':_0xf580dc,'skipNestingCheck':!0x0}),_0x1875c5['forEach'](_0xd217bc=>_0xd217bc['detach']?.()));const _0xc8788b=_0x2c7c57['markMultiRangeBlockFormat'](_0x46a14e['map'](({element:_0x3c39f7})=>_0x3c39f7),{'formatGroupId':_0x13e6cd()},[],'tablePasteCell',{'tablePasteChainId':_0xf580dc});if(_0xc8788b){const _0xbf6000=_0xc8788b['getMarkers'](),_0x108014=[];for(const {element:_0x5d0c40,attributes:_0x59e6cf}of _0x46a14e){if(!_0x59e6cf)continue;const _0x20a43e=_0x1568a8['model']['createRangeOn'](_0x5d0c40),_0x39b85f=_0xbf6000['find'](_0x582597=>_0x582597['getRange']()['isEqual'](_0x20a43e));_0x39b85f&&_0x108014['push']([_0x39b85f['name'],_0x59e6cf]);}_0x108014['length']&&_0xc8788b['setAttribute']('markerAttributes',Object['fromEntries'](_0x108014));}_0x33eee8=null;}));},{'priority':_0x5a134e['high']+0xa}),_0x480c7c['on']('contentInsertion',()=>{_0x4feccb=!0x1;},{'priority':'lowest'}),_0x1568a8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1fffa3,_0x323a59)=>{const [_0x2a14ff,_0x3e4cd4,,_0x4d979b]=_0x323a59;if(!_0x33eee8)return;_0x1fffa3['stop']();const _0x3a4aba=_0x2a14ff['cell'],_0x45257e=_0x3e4cd4,_0xf634fe=ze(_0x3a4aba),_0x15ade1=ze(_0x45257e);_0x1fffa3['return']=_0x3a4aba;let _0x5940d3=null,_0x3bd8e5=null;if(_0x15ade1||_0xf634fe){if(_0xf634fe&&!_0x15ade1){_0x4d979b['remove'](_0x3a4aba['getChild'](0x0));for(const _0x3b2335 of Array['from'](_0x45257e['getChildren']()))_0x4d979b['insert'](_0x3b2335,_0x3a4aba,'end');const _0xd5fa90=_0x33eee8['rowInsertionIndexes']['includes'](_0x2a14ff['row']),_0x44ad8a=_0x33eee8['columnInsertionIndexes']['includes'](_0x2a14ff['column']);_0xd5fa90||_0x44ad8a||(_0x5940d3=_0x2d08fb['fromRange'](_0x4d979b['createRangeIn'](_0x3a4aba)));}else _0x15ade1&&!_0xf634fe&&(_0x3bd8e5=_0x4d979b['createRangeIn'](_0x3a4aba));}else{const _0x549642=_0x4d979b['createElement']('tableCellSuggestion'),_0x85f017=_0x4d979b['createElement']('tableCellSuggestion');_0x4d979b['wrap'](_0x4d979b['createRangeIn'](_0x3a4aba),_0x85f017),_0x4d979b['insert'](_0x549642,_0x3a4aba,0x0);for(const _0x2d2ef8 of Array['from'](_0x45257e['getChildren']()))_0x4d979b['insert'](_0x2d2ef8,_0x549642,'end');_0x5940d3=_0x2d08fb['fromRange'](_0x4d979b['createRangeOn'](_0x549642)),_0x3bd8e5=_0x2d08fb['fromRange'](_0x4d979b['createRangeOn'](_0x85f017));}const _0x5c8106=Array['from'](_0x45257e['getAttributes']())['filter'](([_0x1fda16])=>Ue['includes'](_0x1fda16));_0x33eee8['cells']['push']({'element':_0x3a4aba,'attributes':_0x5c8106['length']?Object['fromEntries'](_0x5c8106):null}),_0x5940d3&&_0x33eee8['insertionRanges']['push'](_0x5940d3),_0x3bd8e5&&_0x33eee8['deletionRanges']['push'](_0x3bd8e5);},{'priority':'high'}),_0x3e404d['on']('insertColumns',(_0x443623,_0x1311d8)=>{const [_0x36e64b,_0x1d11f2={}]=_0x1311d8;if(!_0x33eee8)return;const _0x2bd424=_0x1d11f2['at']||0x0,_0x282ca0=_0x1d11f2['columns']||0x1;_0x33eee8['columnInsertionIndexes']=new Array(_0x282ca0)['fill'](_0x2bd424)['map']((_0x3f3b23,_0x2f96f4)=>_0x3f3b23+_0x2f96f4);for(const {cell:_0x4bd294}of _0x3e404d['createTableWalker'](_0x36e64b,{'startColumn':_0x2bd424,'endColumn':_0x2bd424+_0x282ca0-0x1}))_0x33eee8['columnInsertionRanges']['push'](_0x1568a8['model']['createRangeOn'](_0x4bd294));},{'priority':'low'}),_0x3e404d['on']('insertRows',(_0xf96faa,_0x3cddd3)=>{const [_0xded441,_0x1be9c8={}]=_0x3cddd3;if(!_0x33eee8)return;const _0x548fa5=_0x1be9c8['at']||0x0,_0x5c3e36=_0x1be9c8['rows']||0x1;_0x33eee8['rowInsertionIndexes']=new Array(_0x5c3e36)['fill'](_0x548fa5)['map']((_0x411526,_0x729cd6)=>_0x411526+_0x729cd6);for(const {cell:_0x17d558}of _0x3e404d['createTableWalker'](_0xded441,{'startRow':_0x548fa5,'endRow':_0x548fa5+_0x5c3e36-0x1}))_0x33eee8['rowInsertionRanges']['push'](_0x1568a8['model']['createRangeOn'](_0x17d558));},{'priority':'low'}),_0x2c7c57['descriptionFactory']['registerDescriptionCallback'](_0x403b93=>{if(_0x403b93['subType']&&_0x403b93['subType']['startsWith']('tablePaste'))return _0x403b93['previous']?{}:{'type':'insertion','content':o(_0x1568a8['locale'],'*Replace\x20table\x20cells*')};});const _0x3c9c27=()=>!0x1;for(const _0x2d21a8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2c7c57['_suggestionFactory']['registerCustomCallback']('insertion',_0x2d21a8,'join',_0x3c9c27),_0x2c7c57['_suggestionFactory']['registerCustomCallback']('deletion',_0x2d21a8,'join',_0x3c9c27),_0x2c7c57['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d21a8,'join',_0x3c9c27);_0x2c7c57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3c9c27),_0x2c7c57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xe8e69b,_0x136dbb,_0x37e01a)=>{const _0x4423ff=_0xe8e69b['map'](_0x1e6ff=>_0x1e6ff['getContainedElement']())['filter'](_0xdf5482=>_0xdf5482),_0x272723=new Map(_0x4423ff['map'](_0x279293=>[_0x279293,null]));if(_0x33eee8){for(const {element:_0x1243d3,attributes:_0x962bf1}of _0x33eee8['cells'])_0x962bf1&&_0x272723['set'](_0x1243d3,_0x962bf1);}else{if(_0x37e01a&&_0x37e01a['markerAttributes'])for(const [_0x28590c,_0x3ee9ef]of Object['entries'](_0x37e01a['markerAttributes'])){const _0x2fad8d=_0x1568a8['model']['markers']['get'](_0x28590c),_0x14d4ee=_0x2fad8d?_0x2fad8d['getRange']()['getContainedElement']():null;_0x14d4ee&&_0x272723['set'](_0x14d4ee,_0x3ee9ef);}}_0x1568a8['model']['change'](_0x6e1294=>{for(const [_0x5d632e,_0x102d92]of _0x272723)_0x6e1294['setAttributes']({...He,..._0x102d92},_0x5d632e);});});const _0x1888f2=(_0x4ffe33,_0xc411f5)=>{_0x2c7c57['_suggestionFactory']['registerCustomCallback'](_0x4ffe33,'tablePaste',_0xc411f5,(_0x13a819,_0xbbb360,_0x184dfb)=>{_0x1568a8['model']['change'](_0x34e129=>{const _0x320d3d=[];for(const _0x286742 of _0x13a819){const _0x517044=_0x286742['start']['nodeAfter'];_0x517044['is']('element','tableCellSuggestion')&&_0x320d3d['push'](_0x517044);}_0x2c7c57['_suggestionFactory']['getSuggestionCallback'](_0x4ffe33,null,_0xc411f5)(_0x13a819,_0xbbb360,_0x184dfb);for(const _0x2b3cba of _0x320d3d)'$graveyard'!=_0x2b3cba['root']['rootName']&&_0x34e129['unwrap'](_0x2b3cba);});});};_0x1888f2('insertion','accept'),_0x1888f2('insertion','discard'),_0x1888f2('deletion','accept'),_0x1888f2('deletion','discard'),_0x2c7c57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x49f4cc=>{const _0x4eb4dd=_0x49f4cc['map'](_0xc0984c=>_0xc0984c['getContainedElement']()),_0x3aa4e2=_0x4eb4dd[0x0]['findAncestor']('table'),{minRow:_0x4fc0da,maxRow:_0x1c3552}=_0xe88f72['_getCoordsForCells'](_0x4eb4dd);_0x3e404d['removeRows'](_0x3aa4e2,{'at':_0x4fc0da,'rows':_0x1c3552-_0x4fc0da+0x1});}),_0x2c7c57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1029cb=>{const _0xfa4656=_0x1029cb['map'](_0x1f9229=>_0x1f9229['getContainedElement']()),_0x1ad18e=_0xfa4656[0x0]['findAncestor']('table'),{minColumn:_0x226086,maxColumn:_0x9e5367}=_0xe88f72['_getCoordsForCells'](_0xfa4656);_0x3e404d['removeColumns'](_0x1ad18e,{'at':_0x226086,'columns':_0x9e5367-_0x226086+0x1});});const _0x47b5f9=(_0x349574,_0x341330)=>{if(!_0x341330['subType']||!_0x341330['subType']['startsWith']('tablePaste'))return;const _0x3c0bca=_0x341330['attributes']['tablePasteChainId'],_0x2e4585=_0x2c7c57['getSuggestions']()['filter'](_0x590997=>_0x590997['isInContent']&&_0x590997['attributes']&&_0x590997['attributes']['tablePasteChainId']==_0x3c0bca);_0x2e4585['length']&&_0x341330['getAllAdjacentSuggestions']()['length']!=_0x2e4585['length']&&_0x2e4585['reduce']((_0x339845,_0x1bab8c)=>(_0x339845['next']=_0x1bab8c,_0x1bab8c['previous']=_0x339845,_0x1bab8c));};function _0x54cfd4(_0x957f34,_0xf80e88=!0x0){const {id:_0x370aed,authorId:_0x4388c4}=_0x2c7c57['_splitMarkerName'](_0x957f34['markerName']),_0x242036=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1aebcb=_0x2c7c57['activeMarkers']['includes'](_0x957f34['markerName']);return _0x1aebcb&&_0x242036['push']('ck-suggestion-marker--active'),{'classes':_0x242036,'attributes':{'data-suggestion':_0x370aed,'data-author-id':_0x4388c4},'priority':_0x1aebcb&&_0xf80e88?0xbc2:0xbb8};}_0x2c7c57['on']('suggestionLoaded',_0x47b5f9,{'priority':'high'}),_0x2c7c57['on']('suggestionUnloaded',_0x47b5f9,{'priority':'high'}),_0x1568a8['model']['document']['registerPostFixer'](()=>{let _0x10da39=!0x1;const _0x10b878=Array['from'](_0x1568a8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x398f8d,data:_0x557c0f}of _0x10b878){const {group:_0x14e25c,type:_0x515ef2,id:_0x582f7b}=_0x2c7c57['_splitMarkerName'](_0x398f8d);if('suggestion'!=_0x14e25c||'deletion'!=_0x515ef2||_0x557c0f['oldRange'])continue;if(!_0x2c7c57['hasSuggestion'](_0x582f7b))continue;const _0x204507=_0x2c7c57['getSuggestion'](_0x582f7b)['getRanges'](),_0x46f8c3=_0x1568a8['plugins']['get']('Users')['me'];for(const _0x27b4d1 of _0x2c7c57['getSuggestions']()){if(!_0x27b4d1['isInContent']||_0x27b4d1['author']!=_0x46f8c3)continue;if('formatBlock'!=_0x27b4d1['type']||'tablePasteCell'!=_0x27b4d1['subType'])continue;if(_0x27b4d1['getRanges']()['every'](_0x2da3f6=>_0x204507['some'](_0x2fe168=>_0x2fe168['containsRange'](_0x2da3f6,!0x0)))){for(const _0x1b91dd of _0x27b4d1['getAllAdjacentSuggestions']())_0x1b91dd['isInContent']&&(_0x1b91dd['discard'](),_0x10da39=!0x0);}}}return _0x10da39;}),_0x1568a8['model']['document']['registerPostFixer'](_0x1e6322=>{const _0x3399b2=_0x1568a8['commands']['get']('redo');if(!_0x3399b2||!_0x3399b2['_createdBatches']['has'](_0x1e6322['batch']))return!0x1;let _0xc85ec6=!0x1;const _0x49eab6=_0x1568a8['plugins']['get']('Users')['me'],_0x2976e5=_0x1568a8['model']['document']['differ']['getChanges'](),_0x422c2a=Array['from'](_0x1568a8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1600f8,data:_0x5a292d})=>{const {group:_0x2c0799,subType:_0x35a405,authorId:_0xcf98bc}=_0x2c7c57['_splitMarkerName'](_0x1600f8);return'suggestion'==_0x2c0799&&'tablePaste'==_0x35a405&&_0xcf98bc==_0x49eab6['id']&&!_0x5a292d['oldRange'];});for(const _0xd0ad68 of _0x2976e5){if('insert'!=_0xd0ad68['type']||'tableCellSuggestion'!=_0xd0ad68['name']||0x1!=_0xd0ad68['length'])continue;const _0x30e8f5=_0x1e6322['createRange'](_0xd0ad68['position'],_0xd0ad68['position']['getShiftedBy'](0x1));if(!_0x422c2a['find'](({data:_0x2b574c})=>_0x2b574c['newRange']['isEqual'](_0x30e8f5))){for(const {name:_0x40fee4,data:_0x13a603}of _0x422c2a)if(_0x30e8f5['containsRange'](_0x13a603['newRange'])){_0x1e6322['updateMarker'](_0x40fee4,{'range':_0x30e8f5}),_0xc85ec6=!0x0;break;}}}return _0xc85ec6;}),_0x1568a8['model']['document']['registerPostFixer'](_0x186550=>{let _0xd47450=!0x1;const _0xe20be9=_0x1568a8['plugins']['get']('Users')['me'],_0x15050f=_0x2c7c57['getSuggestions']()['filter'](_0x1574a1=>_0x1574a1['isInContent']&&_0x1574a1['author']==_0xe20be9),_0xbf9f0e=new Set(),_0xd483b=new Set();for(const _0x232b47 of _0x15050f)if('tablePaste'==_0x232b47['subType'])for(const _0x1294d4 of _0x232b47['getMarkers']()){const _0x1e77c1=_0x1294d4['getRange']()['getContainedElement']();if(_0x1e77c1){if(_0x1e77c1['is']('element','tableCellSuggestion')&&ze(_0x1e77c1)){_0x232b47['removeMarker'](_0x1294d4['name']),_0xbf9f0e['add'](_0x1e77c1),_0xd47450=!0x0;const _0x37230b=_0x1e77c1['nextSibling'],_0x132982=_0x1e77c1['previousSibling'],_0x3c87b9=_0x37230b&&_0x37230b['is']('element','tableCellSuggestion'),_0x4d2c24=_0x132982&&_0x132982['is']('element','tableCellSuggestion');_0x3c87b9&&!_0xbf9f0e['has'](_0x37230b)&&_0xd483b['add'](_0x37230b),_0x4d2c24&&!_0xbf9f0e['has'](_0x132982)&&_0xd483b['add'](_0x132982);}else _0x1e77c1['is']('element','paragraph')&&_0x1e77c1['isEmpty']&&(_0x232b47['removeMarker'](_0x1294d4['name']),_0xd47450=!0x0);}}else{if('tablePasteCell'==_0x232b47['subType']){if(!_0x232b47['attributes']||!_0x232b47['attributes']['tablePasteChainId'])continue;const _0x5a5c9b=_0x232b47['attributes']['markerAttributes'];if(_0x5a5c9b&&Object['keys'](_0x5a5c9b)['length'])continue;const _0x166e17=_0x232b47['attributes']['tablePasteChainId'];let _0x3568ca=!0x0,_0x249be9=!0x0;for(const _0x2f5788 of _0x15050f)if(_0x2f5788['subType']&&_0x2f5788['subType']['startsWith']('tablePaste')){if(!_0x2f5788['attributes']['tablePasteChainId']){_0x249be9=!0x1;break;}if(_0x2f5788['id']!=_0x232b47['id']&&_0x2f5788['attributes']['tablePasteChainId']==_0x166e17){_0x3568ca=!0x1;break;}}_0x249be9&&_0x3568ca&&(_0x232b47['removeMarkers'](),_0xd47450=!0x0);}}for(const _0x199791 of _0xbf9f0e)_0x186550['remove'](_0x199791);for(const _0x57f6e5 of _0xd483b)_0x186550['unwrap'](_0x57f6e5);return _0xd47450;}),_0x1568a8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5c5f6a=>_0x54cfd4(_0x5c5f6a),'converterPriority':'high'}),_0x1568a8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x39002b,_0x7721cb)=>_0x7721cb['options']['showSuggestionHighlights']?_0x54cfd4(_0x39002b,!0x1):null,'converterPriority':'high'});const _0x1c0f2b=_0x1568a8['editing']['view'];this['listenTo'](_0x1c0f2b['document'],'clipboardOutput',(_0x260072,_0x18fd81)=>{const _0x462a9c=[];for(const _0x331abf of _0x1c0f2b['createRangeIn'](_0x18fd81['content'])['getItems']())_0x331abf['is']('element','suggestion-td')&&_0x462a9c['push'](_0x331abf);_0x1c0f2b['change'](_0x2f168d=>{for(const _0xa4d81f of _0x462a9c)_0x2f168d['move'](_0x2f168d['createRangeIn'](_0xa4d81f),_0x2f168d['createPositionBefore'](_0xa4d81f)),_0x2f168d['remove'](_0xa4d81f);});});}}function ze(_0x5f174a){if(_0x5f174a['isEmpty'])return!0x0;const _0x3161ad=_0x5f174a['getChild'](0x0);return _0x3161ad['is']('element','paragraph')&&_0x3161ad['isEmpty'];}function Ge(_0x31dc5e,_0xc25c58={},_0x3a0179){for(const {isAnchor:_0x4016c3,cellHeight:_0x66a301,cellWidth:_0x18f794}of _0x3a0179['createTableWalker'](_0x31dc5e,{'includeAllSlots':!0x0,..._0xc25c58}))if(!_0x4016c3||0x1!=_0x66a301||0x1!=_0x18f794)return!0x1;return!0x0;}class Et extends _0x3ff253{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x19e272=this['editor']['plugins']['get']('TrackChangesEditing');_0x19e272['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x19e272['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x19e272['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19e272['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x19e272['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x19e272['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2923b1,_0x40bded){const _0x167a4e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x97d6c3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4f3182=_0x40bded['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x200972=_0x97d6c3['getColumnGroupElement'](_0x4f3182);let _0x1a0c26=_0x200972?_0x97d6c3['getTableColumnsWidths'](_0x200972):null,_0x551bc8=_0x4f3182['getAttribute']('tableWidth')||null;const _0xe8fcac=_0x40bded['tableWidth']||_0x551bc8,_0x1aa9c3=_0x40bded['columnWidths']||_0x1a0c26,_0x2a0e1b=this['editor']['plugins']['get']('Users')['me'];for(const _0x4696e2 of _0x167a4e['getSuggestions']()){const _0x3054b6=_0x4696e2['getContainedElement']();if('resizeTable'===_0x4696e2['subType']&&_0x3054b6===_0x4f3182){_0x4696e2['author']!==_0x2a0e1b&&_0x4696e2['discard']();const _0x2e01da=_0x4696e2['data']['commandParams'];_0x551bc8=_0x2e01da[0x0]['tableWidth'],_0x1a0c26=_0x2e01da[0x0]['columnWidths'];break;}}_0x2923b1({'table':_0x4f3182,'tableWidth':_0xe8fcac,'columnWidths':_0x1aa9c3}),_0x167a4e['markBlockFormat'](_0x4f3182,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x551bc8,'columnWidths':_0x1a0c26}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x373008){if('formatBlock'!=_0x373008['type']&&'formatInline'!=_0x373008['type'])return;const {data:_0x30560d}=_0x373008;if(_0x30560d&&'resizeTable'===_0x30560d['formatGroupId']){const _0x55653d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x55653d)};}}}class Rt extends _0x3ff253{['afterInit'](){const _0x5b8ed6=this['editor'];_0x5b8ed6['plugins']['has']('Template')&&_0x5b8ed6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ut extends _0x3ff253{['afterInit'](){const _0x18b03e=this['editor'];if(!_0x18b03e['commands']['get']('insertTableOfContents'))return;_0x18b03e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x569409=_0x18b03e['plugins']['get']('TrackChangesEditing'),_0x49cf8e=_0x18b03e['locale'];_0x569409['descriptionFactory']['registerElementLabel']('tableOfContents',_0x579d33=>o(_0x49cf8e,'ELEMENT_TABLE_OF_CONTENTS',_0x579d33));}}class Vt extends _0x3ff253{['afterInit'](){const _0x5060a8=this['editor'];if(!_0x5060a8['plugins']['has']('Title'))return;const _0x554d62=_0x5060a8['plugins']['get']('TrackChangesEditing');_0x554d62['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5060a8['locale'],'ELEMENT_TITLE')),_0x5060a8['model']['document']['registerPostFixer'](_0x554e6e=>{let _0x3ff70b=!0x1;const _0x4a68bb=Array['from'](_0x5060a8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x393d5f,data:_0x12e931}of _0x4a68bb){const {group:_0x513695}=_0x554d62['_splitMarkerName'](_0x393d5f);if('suggestion'!==_0x513695||!_0x12e931['newRange'])continue;const _0x5d92ba=_0x12e931['newRange'],_0x1e065e=_0x5d92ba['end']['nodeBefore'];if(!_0x1e065e||!_0x1e065e['is']('element','title-content'))continue;if(!_0x5d92ba['start']['isTouching'](_0x5d92ba['end']))continue;const _0x53c2e4=_0x5060a8['model']['schema']['getNearestSelectionRange'](_0x5d92ba['end'],'forward');if(_0x53c2e4&&_0x53c2e4['isCollapsed']){const _0xedd7a=_0x554e6e['createRange'](_0x5d92ba['start'],_0x53c2e4['start']);_0xedd7a['isEqual'](_0x5d92ba)||(_0x554e6e['updateMarker'](_0x393d5f,{'range':_0xedd7a}),_0x3ff70b=!0x0);}_0x3ff70b||(_0x554e6e['removeMarker'](_0x393d5f),_0x3ff70b=!0x0);}return _0x3ff70b;});}}class Ft extends _0x3ff253{['afterInit'](){const _0x5e4274=this['editor'],_0x4fde98=_0x5e4274['plugins']['get']('TrackChangesEditing');_0x5e4274['plugins']['has']('Uploadcare')&&(_0x4fde98['enableCommand']('uploadcare'),_0x5e4274['plugins']['has']('UploadcareImageEdit')&&(_0x4fde98['enableCommand']('uploadcareImageEdit'),_0x4fde98['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4fde98['registerBlockAttribute']('uploadcareImageId'),_0x4fde98['descriptionFactory']['registerDescriptionCallback'](_0x52fef0=>{if('attribute'!=_0x52fef0['type'])return;const {data:_0x33ad66}=_0x52fef0;return _0x33ad66&&'uploadcareImageId'==_0x33ad66['key']?{'type':'format','content':''}:void 0x0;})));}}class Pt extends _0x3ff253{['afterInit'](){const _0x5d5145=this['editor'],_0x592557=_0x5d5145['plugins']['get']('TrackChangesEditing');_0x5d5145['plugins']['has']('UndoEditing')&&(_0x592557['enableCommand']('undo'),_0x592557['enableCommand']('redo'));}}class Gt extends _0x3ff253{static get['requires'](){return[Mt];}['afterInit'](){const _0x2f7a9f=this['editor'];if(!_0x2f7a9f['plugins']['has']('TableCaptionEditing'))return;_0x2f7a9f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Lt extends _0x3ff253{['tableProperties'];['tableCellProperties'];constructor(_0x2f6e36){super(_0x2f6e36),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 _0x5c55cc=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x465a50 of this['tableProperties'])_0x5c55cc['enableCommand'](_0x465a50,(_0x5c0e33,_0x5a9236)=>{const _0x404631=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x465a50,[_0x404631],this['tableProperties'],'tableProperties',_0x5c0e33,_0x5a9236);});_0x5c55cc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5c55cc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c55cc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4e63ad,_0x3d70c2)=>this['handleDiscardAction'](this['tableProperties'],_0x4e63ad,_0x3d70c2)),_0x5c55cc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5932fd of this['tableCellProperties'])_0x5c55cc['enableCommand'](_0x5932fd,(_0x3c1922,_0x42eb25)=>{const _0x4d09cd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5932fd,_0x4d09cd,this['tableCellProperties'],'tableCellProperties',_0x3c1922,_0x42eb25);});_0x5c55cc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5c55cc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c55cc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4f6d15,_0xded465)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4f6d15,_0xded465)),_0x5c55cc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5c55cc['descriptionFactory']['registerDescriptionCallback'](_0x8a06e0=>this['handleSuggestionDescription'](_0x8a06e0)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5ce25b,_0x1a92b2,_0x463fd3,_0x1ddfc5,_0x536fc5,_0x2a3962){const _0x598c57=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2a3962['batch'],()=>{for(const _0x45a2fa of _0x1a92b2){if(this['_getSuggestion'](_0x45a2fa,_0x1ddfc5))_0x536fc5(_0x2a3962);else{const _0x1ec878={};for(const _0xa9c4d7 of _0x463fd3){const _0x26d8dd=_0x45a2fa['getAttribute'](_0xa9c4d7);void 0x0!==_0x26d8dd&&(_0x1ec878[_0xa9c4d7]=_0x26d8dd);}_0x536fc5(_0x2a3962),_0x598c57['markBlockFormat'](_0x45a2fa,{'commandParams':[_0x1ec878]},[],_0x1ddfc5);}}});}['handleDiscardAction'](_0x11b778,_0x2740ce,_0x1fc11c){const _0x451216=_0x2740ce[0x0]['start']['nodeAfter'],_0x43aac0=_0x1fc11c['commandParams'][0x0];this['editor']['model']['change'](_0x38f25a=>{for(const _0x31698f of _0x11b778)void 0x0!==_0x43aac0[_0x31698f]?_0x38f25a['setAttribute'](_0x31698f,_0x43aac0[_0x31698f],_0x451216):_0x38f25a['removeAttribute'](_0x31698f,_0x451216);});}['handleSuggestionDescription'](_0x218007){if(_0x218007['data'])switch(_0x218007['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'](_0x12a673,_0x1a4f97){const _0x70376c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x58ddfa of _0x70376c['getSuggestions']({'skipNotAttached':!0x0})){const _0x1d087f=_0x58ddfa['getContainedElement']();if(_0x58ddfa['subType']===_0x1a4f97&&_0x1d087f===_0x12a673)return _0x58ddfa;}return null;}['_registerTablePropertiesAttributes'](){const _0x1a74ff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5aa3d9=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2b11b6 of _0x5aa3d9){const _0x587719=_0x2b11b6['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1a74ff['registerBlockAttribute'](_0x2b11b6),_0x1a74ff['descriptionFactory']['registerAttributeLabel'](_0x2b11b6,o(this['editor']['locale'],'FORMAT_'+_0x587719));}}}class Jt extends _0x3ff253{['afterInit'](){const _0x436430=this['editor'];if(!_0x436430['plugins']['has']('LineHeight'))return;const _0x2231ad=_0x436430['plugins']['get']('TrackChangesEditing'),_0x58f6f0=_0x436430['locale'];_0x2231ad['enableDefaultAttributesIntegration']('lineHeight'),_0x2231ad['registerBlockAttribute']('lineHeight'),_0x2231ad['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x58f6f0,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x3ff253{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x47590f,_0x1ca644,_0x4e924d,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ft,gt,ht,lt,mt,dt,kt,wt,jt,pt,Y,Jt,Z,bt,yt,St,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Ot,Gt,xt,Et,Ut,Lt,Rt,Vt,Ft,Pt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1bafe3){super(_0x1bafe3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x521b70,_0x2e8d2a,_0x4a6cdf,_0x128f91)=>{this['_model']['change'](()=>{for(const _0x1fd370 of[..._0x128f91,..._0x4a6cdf])this['_model']['markers']['has'](_0x1fd370)&&_0x1bafe3['editing']['reconvertMarker'](_0x1fd370);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1bafe3['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(),_0x1bafe3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1bafe3['config']['get']('trackChanges.trackFormatChanges'),_0x1bafe3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1bafe3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1bafe3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x532708=this['editor'],_0x270971=(_0x4b1faf,_0x2d7e02)=>{if('attribute'!=_0x4b1faf)return'ck-suggestion-marker-'+_0x4b1faf;const _0x194671=_0x2d7e02['split']('|')[0x0];return this['_isBlockAttribute'](_0x194671)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x532708['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x196cce=>{const {id:_0xd1cdc1,authorId:_0x2f4f02,type:_0x3c272c,subType:_0xba1725}=this['_splitMarkerName'](_0x196cce['markerName']),_0x35236b=['ck-suggestion-marker',_0x270971(_0x3c272c,_0xba1725)];let _0x25b84a=0xbb8;return this['activeMarkers']['includes'](_0x196cce['markerName'])&&(_0x35236b['push']('ck-suggestion-marker--active'),_0x25b84a=0xbc2),'deletion'==_0x3c272c&&(_0x25b84a+=0x5),{'classes':_0x35236b,'attributes':{'data-suggestion':_0xd1cdc1,'data-author-id':_0x2f4f02},'priority':_0x25b84a};}}),_0x532708['conversion']['for']('dataDowncast')['add'](_0x2b709f=>{_0x2b709f['on']('addMarker:suggestion',(_0x330568,_0x14b3bc,_0x85b168)=>{if(!_0x85b168['options']['showSuggestionHighlights'])return;const _0x392db9=_0x14b3bc['item'];if(!_0x392db9)return;const _0x5c2e7d=_0x85b168['mapper']['toViewElement'](_0x392db9);_0x532708['model']['schema']['isObject'](_0x392db9)&&_0x5c2e7d&&!_0x5c2e7d['getCustomProperty']('widget')&&_0x5c2e7d['is']('containerElement')&&_0x581e21(_0x5c2e7d,_0x85b168['writer']);},{'priority':'high'});}),_0x532708['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x47bcef,_0x14a987)=>{if(!_0x14a987['options']['showSuggestionHighlights'])return null;const {id:_0x5c35c4,authorId:_0x26310c,type:_0x7e9bf1,subType:_0xbebd0a}=this['_splitMarkerName'](_0x47bcef['markerName']);return{'classes':['ck-suggestion-marker',_0x270971(_0x7e9bf1,_0xbebd0a)],'priority':0xbb8,'attributes':{'data-suggestion':_0x5c35c4,'data-author-id':_0x26310c}};}});const _0x3da083=({showActiveMarkers:_0x265ad1=!0x0,isAttributeSuggestion:_0xa67318=!0x1}={})=>(_0x4ec439,_0x52f7ef,_0x24becb)=>{if(!_0x52f7ef['item'])return;const {id:_0x5a01b9,authorId:_0x4936a3,subType:_0x5b8c9a}=this['_splitMarkerName'](_0x52f7ef['markerName']);if(_0xa67318){const _0x572633=ae(_0x5b8c9a);if(!this['_isBlockAttribute'](_0x572633))return;}if(_0x52f7ef['item']['is']('selection'))return void _0x24becb['consumable']['consume'](_0x52f7ef['item'],_0x4ec439['name']);const _0x3c2faa=_0x24becb['mapper']['toViewElement'](_0x52f7ef['item']);if(_0x52f7ef['item']['is']('element')&&_0x532708['model']['schema']['isBlock'](_0x52f7ef['item'])&&!_0x3c2faa['getCustomProperty']('addHighlight')){_0x24becb['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3c2faa),_0x24becb['writer']['setAttribute']('data-suggestion',_0x5a01b9,_0x3c2faa),_0x24becb['writer']['setAttribute']('data-author-id',_0x4936a3,_0x3c2faa),_0x24becb['mapper']['bindElementToMarker'](_0x3c2faa,_0x52f7ef['markerName']),_0x265ad1&&(this['activeMarkers']['includes'](_0x52f7ef['markerName'])?_0x24becb['writer']['addClass']('ck-suggestion-marker--active',_0x3c2faa):_0x24becb['writer']['removeClass']('ck-suggestion-marker--active',_0x3c2faa));for(const _0x171e70 of _0x532708['model']['createRangeIn'](_0x52f7ef['item'])['getItems']())_0x24becb['consumable']['consume'](_0x171e70,_0x4ec439['name']);_0x24becb['consumable']['consume'](_0x52f7ef['item'],_0x4ec439['name']);}};_0x532708['conversion']['for']('dataDowncast')['add'](_0x41c3e8=>{_0x41c3e8['on']('addMarker:suggestion:formatBlock',(_0x2425e2,_0x40b617,_0x57673f)=>{_0x57673f['options']['showSuggestionHighlights']&&_0x3da083({'showActiveMarkers':!0x1})(_0x2425e2,_0x40b617,_0x57673f);},{'priority':'highest'});}),_0x532708['conversion']['for']('dataDowncast')['add'](_0x132c9d=>{_0x132c9d['on']('addMarker:suggestion:attribute',(_0x5dc858,_0x5075b2,_0x58b003)=>{_0x58b003['options']['showSuggestionHighlights']&&_0x3da083({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5dc858,_0x5075b2,_0x58b003);},{'priority':'highest'});}),_0x532708['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2bf618,_0x24a889)=>{if(_0x24a889['options']['showSuggestionHighlights']){const {id:_0x1a58c5,authorId:_0x337bda}=this['_splitMarkerName'](_0x2bf618);return _0x2bf618['includes'](':split')||_0x2bf618['includes'](':merge')?{'group':'suggestion','name':_0x2bf618['substr'](0xb),'attributes':{'data-suggestion':_0x1a58c5,'data-author-id':_0x337bda}}:null;}return{'group':'suggestion','name':_0x2bf618['substr'](0xb)};}}),_0x532708['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xa7a396,{writer:_0x2e24a4})=>{let _0xbf08f7='suggestion:'+_0xa7a396['getAttribute']('suggestion-type')+':'+_0xa7a396['getAttribute']('id');return _0xa7a396['getAttribute']('marker-count')&&(_0xbf08f7+=':'+_0xa7a396['getAttribute']('marker-count')),_0x2e24a4['createElement']('$marker',{'data-name':_0xbf08f7});}}),_0x532708['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x532708['conversion']['for']('editingDowncast')['add'](_0x59de1d=>{_0x59de1d['on']('addMarker:suggestion:formatBlock',_0x3da083(),{'priority':'high'});}),_0x532708['conversion']['for']('editingDowncast')['add'](_0x5d2af3=>{_0x5d2af3['on']('addMarker:suggestion:attribute',_0x3da083({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x532708['conversion']['for']('editingDowncast')['add'](_0x48f5b9=>{_0x48f5b9['on']('removeMarker:suggestion:formatBlock',(_0x1e95d5,_0x382e02,_0x42f206)=>{const _0x23c78e=_0x42f206['mapper']['markerNameToElements'](_0x382e02['markerName']);if(_0x23c78e){for(const _0x474155 of _0x23c78e)_0x474155['getCustomProperty']('addHighlight')||(_0x42f206['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x474155),_0x42f206['writer']['removeAttribute']('data-suggestion',_0x474155),_0x42f206['writer']['removeAttribute']('data-author-id',_0x474155),_0x42f206['mapper']['unbindElementFromMarkerName'](_0x474155,_0x382e02['markerName']));}},{'priority':'high'});}),_0x532708['conversion']['for']('editingDowncast')['add'](_0x861429=>{_0x861429['on']('removeMarker:suggestion:attribute',(_0x66d95,_0x38646e,_0x58c30b)=>{const _0x5a2299=_0x58c30b['mapper']['markerNameToElements'](_0x38646e['markerName']);if(!_0x5a2299)return;const {subType:_0x5a9219}=this['_splitMarkerName'](_0x38646e['markerName']),_0x432db9=ae(_0x5a9219);if(this['_isBlockAttribute'](_0x432db9)){for(const _0x56d144 of _0x5a2299)_0x56d144['getCustomProperty']('addHighlight')||(_0x58c30b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x56d144),_0x58c30b['writer']['removeAttribute']('data-suggestion',_0x56d144),_0x58c30b['writer']['removeAttribute']('data-author-id',_0x56d144),_0x58c30b['mapper']['unbindElementFromMarkerName'](_0x56d144,_0x38646e['markerName']));}},{'priority':'high'});}),_0x532708['model']['document']['registerPostFixer'](_0x3f22c2=>{let _0x3e0397=!0x1;const _0x18498c=Array['from'](_0x532708['model']['document']['differ']['getChangedMarkers']()),_0x5041d9=new Set();for(const {name:_0xf1a28d,data:_0x272380}of _0x18498c){const {group:_0x337cf5,type:_0x450eca,subType:_0x5d8e7f,id:_0x342efb}=this['_splitMarkerName'](_0xf1a28d);if('suggestion'!==_0x337cf5)continue;const _0x1381e0=_0x5d8e7f?'suggestion:'+_0x450eca+':'+_0x5d8e7f+':'+_0x342efb:'suggestion:'+_0x450eca+':'+_0x342efb,_0x34afe1=_0x532708['model']['markers']['getMarkersGroup'](_0x1381e0),_0x1229df=_0x532708['model']['markers']['get'](_0xf1a28d),_0xf9b101=this['_suggestions']['get'](_0x342efb);if(null!=_0x272380['newRange']){'formatInline'==_0x450eca&&(_0x3e0397=_0x3e0397||zt(_0x272380['newRange'],_0xf1a28d,_0x3f22c2,_0x532708['model']['schema']));const _0x467507='attribute'==_0x450eca&&this['_isBlockAttribute'](_0x5d8e7f['split']('|')[0x0]),_0xa62fdb='attribute'==_0x450eca&&this['_isInlineAttribute'](_0x5d8e7f['split']('|')[0x0]);if(_0x272380['newRange']['isCollapsed']||'$graveyard'==_0x272380['newRange']['root']['rootName']||'formatBlock'==_0x450eca&&!Xt(_0x272380['newRange'])||_0x467507&&!Xt(_0x272380['newRange'])||_0xa62fdb&&Yt(_0x272380['newRange'])||'deletion'==_0x450eca&&Yt(_0x272380['newRange'])||_0x1229df&&Zt(_0x1229df,_0x34afe1))_0x3f22c2['removeMarker'](_0xf1a28d),_0x3e0397=!0x0;else{if(!_0xf9b101||!_0xf9b101['isInContent'])continue;if(_0x272380['newRange']&&_0x272380['oldRange']&&_0x272380['newRange']['isEqual'](_0x272380['oldRange']))continue;_0x5041d9['add'](_0xf9b101);}}}return _0x5041d9['size']>0x0&&(_0x3e0397=!!this['_joinWithAdjacentSuggestions'](_0x5041d9)||_0x3e0397),_0x3e0397;}),_0x532708['model']['document']['registerPostFixer'](_0x43ce72=>{let _0x2ad70a=!0x1;for(const _0x4224b4 of _0x532708['model']['document']['differ']['getChanges']())if('insert'==_0x4224b4['type'])for(const _0x5ce9d1 of this['_suggestions']['values']()){if(_0x5ce9d1['isMultiRange']||!_0x5ce9d1['isInContent'])continue;const _0x198bb3='formatBlock'==_0x5ce9d1['type'],_0x675b06=this['_getAttributeKey'](_0x5ce9d1),_0x11ca5f=_0x675b06&&this['_isBlockAttribute'](_0x675b06);if(!_0x198bb3&&!_0x11ca5f)continue;const _0x35d098=_0x5ce9d1['getFirstRange']();if(_0x35d098['start']['parent']!=_0x35d098['end']['parent']&&!_0x35d098['end']['isAtEnd']){const _0x5245c8=_0x532708['model']['createPositionAt'](_0x35d098['start']['nodeAfter'],'end'),_0x254cc6=_0x532708['model']['createRange'](_0x35d098['start'],_0x5245c8);_0x43ce72['updateMarker'](_0x5ce9d1['getFirstMarker'](),{'range':_0x254cc6}),_0x2ad70a=!0x0;}}return _0x2ad70a;}),_0x532708['model']['document']['registerPostFixer'](_0xce3bb6=>this['_processAttributeChanges'](_0xce3bb6)),_0x532708['model']['document']['registerPostFixer'](_0x363a70=>!_0x363a70['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x363a70)),_0x532708['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x532708['model']['document']['on']('change:data',(_0x51af56,_0x1b1af8)=>{if(!_0x1b1af8['isLocal']||_0x1b1af8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xda41e=_0x532708['model']['document']['differ']['getChanges']();if(0x0==_0xda41e['length'])return;const _0x217979=[],_0x559a8d=_0xda41e['filter'](_0xea7cd0=>'attribute'==_0xea7cd0['type']),_0xa7bca5=_0xda41e['filter'](_0x24bcbf=>'insert'==_0x24bcbf['type']&&'$text'!=_0x24bcbf['name']);for(const _0x4fe62d of _0x559a8d)this['_isRegisteredAttribute'](_0x4fe62d['attributeKey'])&&_0x217979['push']({'key':_0x4fe62d['attributeKey'],'newValue':_0x4fe62d['attributeNewValue'],'oldValue':_0x4fe62d['attributeOldValue'],'range':ee(_0x4fe62d['range'],_0x532708['model'])});for(const _0x3df8dc of _0xa7bca5){if('rename'!=_0x3df8dc['action']&&'refresh'!=_0x3df8dc['action'])continue;const _0x40169c=ie(_0x3df8dc['position']['nodeAfter'],_0x532708['model']),_0x304588=_0x3df8dc['before'];'rename'==_0x3df8dc['action']&&_0x217979['push']({'key':m,'newValue':_0x3df8dc['name'],'oldValue':_0x304588['name'],'range':_0x40169c});for(const [_0x49af0f,_0x50eaf5]of _0x304588['attributes']){if(!this['_isRegisteredAttribute'](_0x49af0f))continue;const _0x537770=_0x3df8dc['attributes']['get'](_0x49af0f);_0x50eaf5!==_0x537770&&_0x217979['push']({'key':_0x49af0f,'newValue':_0x537770,'oldValue':_0x50eaf5,'range':_0x40169c});}for(const [_0xeeddcb,_0xcd52e9]of _0x3df8dc['attributes'])this['_isRegisteredAttribute'](_0xeeddcb)&&(_0x304588['attributes']['has'](_0xeeddcb)||_0x217979['push']({'key':_0xeeddcb,'newValue':_0xcd52e9,'oldValue':null,'range':_0x40169c}));}0x0!=_0x217979['length']&&_0x532708['model']['enqueueChange'](_0x1b1af8,_0x433de7=>{const _0x3d1009=_0x13e6cd();for(const {range:_0x2063eb,key:_0x4b7063,oldValue:_0x29fe4b,newValue:_0x289e95}of _0x217979)this['markAttributeChange'](_0x2063eb,_0x4b7063,_0x29fe4b,_0x289e95,{'groupId':_0x3d1009});this['_reduceExistingSuggestions'](_0x433de7,_0x217979);});},{'priority':'lowest'}),_0x532708['model']['markers']['on']('update:suggestion',(_0x14e555,_0x57d2aa,_0x2ee4c9)=>{if(null==_0x2ee4c9){const {id:_0x293434}=this['_splitMarkerName'](_0x57d2aa['name']),_0x32f505=this['_suggestions']['get'](_0x293434);_0x32f505&&_0x32f505['addMarkerName'](_0x57d2aa['name']);}}),_0x532708['model']['document']['on']('change:data',()=>{const _0x41f140=Array['from'](_0x532708['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46ac48=>'suggestion'===this['_splitMarkerName'](_0x46ac48['name'])['group']);if(0x0===_0x41f140['length'])return;_0x41f140['sort']((_0x4e0a2f,_0x1737b8)=>{const _0x47df89=_0x4e0a2f['data']['oldRange'],_0x511a61=_0x1737b8['data']['oldRange'];return null===_0x47df89&&null===_0x511a61?0x0:null===_0x47df89&&null!==_0x511a61?-0x1:null!==_0x47df89&&null===_0x511a61?0x1:_0x47df89['start']['isBefore'](_0x511a61['start'])?-0x1:0x1;});const _0x3c77a7=new Set(),_0x2bf5e4=new Set();for(const {name:_0x4002ac,data:_0x4b7d01}of _0x41f140){const {id:_0x364d65}=this['_splitMarkerName'](_0x4002ac);if(null===_0x4b7d01['oldRange']){const _0xe9d237=this['_handleNewSuggestionMarker'](_0x4002ac);_0x2bf5e4['add'](_0xe9d237);}else{const _0x541de3=this['_suggestions']['get'](_0x364d65);null!==_0x4b7d01['newRange']||_0x541de3['isInContent']?(_0x3c77a7['add'](_0x541de3['head']),_0x2bf5e4['add'](_0x541de3)):this['_removeSuggestion'](_0x541de3);}}_0x2bf5e4['size']>0x0&&this['_refreshSuggestionsChain'](_0x2bf5e4);for(const _0x47763d of _0x3c77a7)this['fire']('suggestionChanged',_0x47763d);}),_0x532708['model']['on']('applyOperation',(_0x1de8b1,_0x3519ee)=>{const _0x409e26=_0x3519ee[0x0];if(!this['_suggestions']['size'])return;if(!_0x409e26['isDocumentOperation'])return;if(_0x409e26['batch']['isUndo']||!_0x409e26['batch']['isLocal'])return;let _0x326fc0,_0x540121;switch(_0x409e26['type']){case'insert':_0x326fc0=_0x532708['model']['createPositionAt'](_0x409e26['position']),_0x540121=_0x326fc0['getShiftedBy'](_0x409e26['howMany']);break;case'split':_0x326fc0=_0x532708['model']['createPositionAt'](_0x409e26['splitPosition']),_0x540121=_0x532708['model']['createPositionAt'](_0x409e26['moveTargetPosition']);break;case'move':_0x326fc0=_0x532708['model']['createPositionAt'](_0x409e26['targetPosition']),_0x540121=_0x326fc0['getShiftedBy'](_0x409e26['howMany']);break;default:return;}const _0x45736a=_0x532708['model']['createRange'](_0x326fc0,_0x540121);_0x532708['model']['change'](()=>{for(const {suggestion:_0xe241d,meta:_0x37e48a}of this['_findSuggestions'](_0x45736a)){if(_0xe241d['isMultiRange'])continue;if('formatInline'==_0xe241d['type'])continue;const _0x4d8f20=this['_getAttributeKey'](_0xe241d);if(_0x4d8f20&&this['_isBlockAttribute'](_0x4d8f20)&&'split'!=_0x409e26['type'])continue;const _0x5ceeaa=_0xe241d['data']&&_0xe241d['data']['multipleBlocks'];('formatBlock'!=_0xe241d['type']||'split'==_0x409e26['type']&&!_0x5ceeaa)&&(_0x37e48a['containsRangeInObject']||'insertion'==_0xe241d['type']&&_0x37e48a['isOwn']||_0xe241d['getFirstRange']()['containsRange'](_0x45736a)&&this['_breakSuggestionMarker'](_0xe241d,_0x326fc0,_0x540121));}});},{'priority':'lowest'}),_0x532708['model']['on']('deleteContent',(_0x52d746,_0x4a211e)=>{const _0x4e1b8c=_0x4a211e[0x0],_0x42eb74=_0x4a211e[0x1];if(_0x42eb74&&_0x42eb74['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4e1b8c['isCollapsed'])return;const _0x5ddcc4=_0x532708['model']['schema'],{start:_0x4ab47c,end:_0x2f8b36}=_0x4e1b8c['getFirstRange'](),_0x4bb4c9=_0x4ab47c['nodeAfter']&&_0x5ddcc4['isLimit'](_0x4ab47c['nodeAfter'])?null:_0x5ddcc4['getNearestSelectionRange'](_0x4ab47c,'forward'),_0x1b081f=_0x2f8b36['nodeBefore']&&_0x5ddcc4['isLimit'](_0x2f8b36['nodeBefore'])?null:_0x5ddcc4['getNearestSelectionRange'](_0x2f8b36,'backward'),_0x830595=_0x532708['model']['createRange'](_0x4bb4c9?_0x4bb4c9['start']:_0x4ab47c,_0x1b081f?_0x1b081f['end']:_0x2f8b36);_0x532708['model']['change'](_0x693842=>{this['markDeletion'](_0x830595);const _0x22a566=_0x532708['model']['schema']['getNearestSelectionRange'](_0x830595['start']);_0x4e1b8c['is']('documentSelection')?_0x693842['setSelection'](_0x22a566):_0x4e1b8c['setTo'](_0x22a566);}),_0x52d746['stop']();},{'priority':_0x5a134e['normal']+0xa}),_0x532708['model']['on']('insertContent',(_0x270b7d,_0x41278b)=>{const _0x507a5d=_0x41278b[_0x41278b['length']-0x1];_0x507a5d&&_0x507a5d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x532708['model']['change'](()=>{let _0x518914=_0x532708['model']['insertContent'](_0x41278b[0x0],_0x41278b[0x1],_0x41278b[0x2],{'forceDefaultExecution':!0x0});if(!_0x518914)return;_0x270b7d['return']=_0x518914['clone']();const _0x1abee2=_0x518914['end']['nodeBefore'],_0x538557=_0x532708['model']['schema'];_0x1abee2&&_0x538557['isBlock'](_0x1abee2)&&!_0x538557['isObject'](_0x1abee2)&&(_0x518914=_0x532708['model']['createRange'](_0x518914['start'],_0x532708['model']['createPositionAt'](_0x1abee2,'end'))),this['markInsertion'](_0x518914);}),_0x270b7d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x91cc07=new T(_0x532708,this['_suggestions']);_0x532708['commands']['add']('acceptSuggestion',_0x91cc07),this['enableCommand']('acceptSuggestion');const _0x281178=new O(_0x532708,this['_suggestions']);_0x532708['commands']['add']('discardSuggestion',_0x281178),this['enableCommand']('discardSuggestion'),_0x532708['commands']['add']('acceptAllSuggestions',new x(_0x532708,_0x91cc07,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x532708['commands']['add']('discardAllSuggestions',new x(_0x532708,_0x281178,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x532708['commands']['add']('acceptSelectedSuggestions',new E(_0x532708,_0x91cc07,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x532708['commands']['add']('discardSelectedSuggestions',new E(_0x532708,_0x281178,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x135fb9=_0x532708['plugins']['get']('CommentsRepository');this['listenTo'](_0x135fb9,'addComment',(_0x1b3133,{threadId:_0x225e0c})=>{const _0x4ee046=this['_suggestions']['get'](_0x225e0c);_0x4ee046&&_0x4ee046['commentThread']&&0x1===_0x4ee046['commentThread']['length']&&this['_updateSuggestionData'](_0x225e0c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x135fb9,'removeComment',(_0x1d7b5b,{threadId:_0x419c38})=>{const _0x177f27=this['_suggestions']['get'](_0x419c38);_0x177f27&&_0x177f27['commentThread']&&!_0x177f27['commentThread']['length']&&this['_updateSuggestionData'](_0x419c38,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2c1c01){const _0x46178a=_0x5ce581([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x5bdef4=0x3d8d0df,_0x387e56=0x3dfa797^_0x5bdef4,_0x5777a9=window[_0x5ce581([0x44,0x61,0x74,0x65])][_0x5ce581([0x6e,0x6f,0x77])](),_0x19eb3b=_0x2c1c01[_0x5ce581([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c63c4=new window[(_0x5ce581([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39337c=>{_0x19eb3b[_0x5ce581([0x6f,0x6e,0x63,0x65])](_0x5ce581([0x72,0x65,0x61,0x64,0x79]),_0x39337c);}),_0x2869e5={[_0x5ce581([0x6b,0x74,0x79])]:_0x5ce581([0x45,0x43]),[_0x5ce581([0x75,0x73,0x65])]:_0x5ce581([0x73,0x69,0x67]),[_0x5ce581([0x63,0x72,0x76])]:_0x5ce581([0x50,0x2d,0x32,0x35,0x36]),[_0x5ce581([0x78])]:_0x5ce581([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]),[_0x5ce581([0x79])]:_0x5ce581([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]),[_0x5ce581([0x61,0x6c,0x67])]:_0x5ce581([0x45,0x53,0x32,0x35,0x36])},_0x5acbff=_0x19eb3b[_0x5ce581([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ce581([0x67,0x65,0x74])](_0x5ce581([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x135516(){let _0x1cc415,_0x4bdc59=null,_0xbfdbc7=null;try{if(_0x5acbff==_0x5ce581([0x47,0x50,0x4c]))return _0x5ce581([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cc415=_0x5a0d26(),!_0x1cc415)return _0x5ce581([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cc415[_0x5ce581([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbfdbc7=_0x1bb385(_0x1cc415[_0x5ce581([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cc415[_0x5ce581([0x6a,0x74,0x69])])),await _0x42bb25()?_0x2933d()?_0x1c1e82()?_0x5ce581([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x499f34()?(_0x1cc415[_0x5ce581([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ce581([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4bdc59=_0x36d08b(_0x5ce581([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cc415[_0x5ce581([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ce581([0x74,0x72,0x69,0x61,0x6c])&&(_0x4bdc59=_0x36d08b(_0x5ce581([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x149618()):_0x5ce581([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ce581([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ce581([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ce581([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c1e82(){const _0x5a24f2=[_0x5ce581([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ce581([0x74,0x72,0x69,0x61,0x6c])][_0x5ce581([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cc415[_0x5ce581([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5777a9/0x3e8:0xe10*_0x387e56;return _0x1cc415[_0x5ce581([0x65,0x78,0x70])]<_0x5a24f2;}function _0x2933d(){const _0x1f8849=_0x1cc415[_0x5ce581([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1f8849)return!0x1;if(_0x1f8849[_0x5ce581([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce581([0x2a])))return!0x0;if(_0x1f8849[_0x5ce581([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce581([0x54,0x43])))return!0x0;if(_0x1f8849[_0x5ce581([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce581([0x52,0x54,0x43]))){if(_0x1e9138())return!0x0;if(_0x445c45()||_0x4529a3())return!0x0;}return!0x1;}function _0x499f34(){const _0x26626c=_0x1cc415[_0x5ce581([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26626c||0x0==_0x26626c[_0x5ce581([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x533ba8}=new URL(window[_0x5ce581([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26626c[_0x5ce581([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533ba8))return!0x0;const _0x4ba815=_0x533ba8[_0x5ce581([0x73,0x70,0x6c,0x69,0x74])](_0x5ce581([0x2e]));return _0x26626c[_0x5ce581([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b9c51=>_0x5b9c51[_0x5ce581([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce581([0x2a])))[_0x5ce581([0x6d,0x61,0x70])](_0x28ff83=>_0x28ff83[_0x5ce581([0x73,0x70,0x6c,0x69,0x74])](_0x5ce581([0x2e])))[_0x5ce581([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x323898=>_0x323898[_0x5ce581([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4ba815[_0x5ce581([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ce581([0x6d,0x61,0x70])](_0x34b5c9=>Array(_0x4ba815[_0x5ce581([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x34b5c9[_0x5ce581([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ce581([0x66,0x69,0x6c,0x6c])](_0x34b5c9[0x0]===_0x5ce581([0x2a])?_0x5ce581([0x2a]):'')[_0x5ce581([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x34b5c9))[_0x5ce581([0x73,0x6f,0x6d,0x65])](_0xbe1dd=>_0x4ba815[_0x5ce581([0x65,0x76,0x65,0x72,0x79])]((_0x2ab9e8,_0x1f1eb2)=>_0xbe1dd[_0x1f1eb2]===_0x2ab9e8||_0xbe1dd[_0x1f1eb2]===_0x5ce581([0x2a])));}function _0x149618(){return _0x4bdc59&&_0xbfdbc7?new window[(_0x5ce581([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1661ff,_0x1e0587)=>{_0x4bdc59[_0x5ce581([0x74,0x68,0x65,0x6e])](_0x1661ff,_0x1e0587),_0xbfdbc7[_0x5ce581([0x74,0x68,0x65,0x6e])](_0x27d037=>{_0x27d037!=_0x5ce581([0x56,0x61,0x6c,0x69,0x64])&&_0x1661ff(_0x27d037);},_0x1e0587);}):_0x4bdc59||_0xbfdbc7||_0x5ce581([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1bb385(_0x2a8dda,_0x257059){return new window[(_0x5ce581([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50ade1=>{if(_0x5ed65f())return _0x50ade1(_0x5ce581([0x56,0x61,0x6c,0x69,0x64]));_0x50a68a(),_0x19eb3b[_0x5ce581([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ce581([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x200325=!0x1;const _0x58f3c2=_0x13e6cd();function _0x21b859(_0x3ff6d5){return!!_0x3ff6d5&&(typeof _0x3ff6d5===_0x5ce581([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ff6d5===_0x5ce581([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ff6d5[_0x5ce581([0x74,0x68,0x65,0x6e])]===_0x5ce581([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ff6d5[_0x5ce581([0x63,0x61,0x74,0x63,0x68])]===_0x5ce581([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ce13f(_0x47300b){_0x18e351(_0x47300b)[_0x5ce581([0x74,0x68,0x65,0x6e])](_0x343eee=>{if(!_0x343eee||_0x343eee[_0x5ce581([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ce581([0x6f,0x6b]))return _0x5ce581([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c3d13(_0x134dee(_0x58f3c2+_0x257059))!=_0x343eee[_0x5ce581([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ce581([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ce581([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ce581([0x74,0x68,0x65,0x6e])](_0x18b3a0=>(_0x18581c(),_0x18b3a0),()=>{const _0x26587e=_0x3a2460();return null==_0x26587e?(_0x18581c(),_0x5ce581([0x56,0x61,0x6c,0x69,0x64])):_0x5ce581(_0x5777a9-_0x26587e>(0x27d454df^_0x5bdef4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ce581([0x74,0x68,0x65,0x6e])](_0x50ade1)[_0x5ce581([0x63,0x61,0x74,0x63,0x68])](()=>{_0x50ade1(_0x5ce581([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x416e86=0x3ee3e5f^_0x5bdef4;function _0x18581c(){const _0x1e016d=_0x5ce581([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c3d13(_0x134dee(_0x2a8dda)),_0x1e0992=_0x5d3ee2(_0x2c3d13(window[_0x5ce581([0x4d,0x61,0x74,0x68])][_0x5ce581([0x63,0x65,0x69,0x6c])](_0x5777a9/_0x416e86)));window[_0x5ce581([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ce581([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e016d,_0x1e0992);}function _0x3a2460(){const _0x509d13=_0x5ce581([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c3d13(_0x134dee(_0x2a8dda)),_0x29540f=window[_0x5ce581([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ce581([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x509d13);return _0x29540f?window[_0x5ce581([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d3ee2(_0x29540f),0x10)*_0x416e86:null;}function _0x18e351(_0x463526){return new window[(_0x5ce581([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x490f72,_0x84d357)=>{_0x463526[_0x5ce581([0x74,0x68,0x65,0x6e])](_0x490f72,_0x84d357),window[_0x5ce581([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x84d357,0x3d9041f^_0x5bdef4);});}}_0x19eb3b[_0x5ce581([0x6f,0x6e])](_0x5ce581([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x598d4b,_0x35e25c)=>{if(_0x35e25c[0x0]!=_0x2a8dda)return _0x50ade1(_0x5ce581([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35e25c[0x1]={..._0x35e25c[0x1],[_0x5ce581([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58f3c2};},{[_0x5ce581([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ce581([0x68,0x69,0x67,0x68])}),_0x19eb3b[_0x5ce581([0x6f,0x6e])](_0x5ce581([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16fd30=>{_0x21b859(_0x16fd30[_0x5ce581([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x200325=!0x0,_0x4ce13f(_0x16fd30[_0x5ce581([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ce581([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ce581([0x6c,0x6f,0x77])}),_0x1c63c4[_0x5ce581([0x74,0x68,0x65,0x6e])](()=>{_0x200325||_0x50ade1(_0x5ce581([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ed65f(){return _0x19eb3b[_0x5ce581([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ce581([0x76,0x69,0x65,0x77])][_0x5ce581([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ce581([0x61,0x75,0x74,0x6f]);}function _0x50a68a(){_0x19eb3b[_0x5ce581([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ce581([0x76,0x69,0x65,0x77])][_0x5ce581([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ce581([0x61,0x75,0x74,0x6f]);}}function _0x36d08b(_0x59f868){const _0x11746d=[new window[(_0x5ce581([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bd858=>setTimeout(_0x1bd858,0x3d1ee13^_0x5bdef4)),_0x1c63c4[_0x5ce581([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ce581([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x218b72=>{let _0x545b35=0x0;_0x19eb3b[_0x5ce581([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce581([0x6f,0x6e])](_0x5ce581([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x310a79,_0x1f290c)=>{_0x1f290c[0x0][_0x5ce581([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x545b35++,_0x545b35==(0x3d8d127^_0x5bdef4)&&(_0x218b72(),_0x310a79[_0x5ce581([0x6f,0x66,0x66])]());});}))];return window[_0x5ce581([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ce581([0x72,0x61,0x63,0x65])](_0x11746d)[_0x5ce581([0x74,0x68,0x65,0x6e])](()=>_0x59f868);}async function _0x5dd9da(){await _0x1c63c4,_0x19eb3b[_0x5ce581([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce581([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x11cb59,_0x19eb3b[_0x5ce581([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce581([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x11cb59,_0x19eb3b[_0x5ce581([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ce581([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e9138(){return _0x14ae38(_0x5ce581([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5f20de(_0x5ce581([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5ce581([0x73,0x74,0x61,0x74,0x65])]==_0x5ce581([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x445c45(){return _0x14ae38(_0x5ce581([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 _0x4529a3(){return _0x14ae38(_0x5ce581([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x16ca9f(_0x2f06dd){const _0x5afa1b=_0x20fba4();_0x19eb3b[_0x5afa1b]=_0x5ce581([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f06dd,_0x2f06dd!=_0x5ce581([0x56,0x61,0x6c,0x69,0x64])&&_0x5dd9da();}function _0x20fba4(){const _0x3bf700=window[_0x5ce581([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ce581([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ce581([0x6e,0x6f,0x77])]())[_0x5ce581([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ce581([0x2e]),'');let _0x350873=_0x5ce581([0x52]);for(let _0x270e3f=0x0;_0x270e3f<_0x3bf700[_0x5ce581([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x270e3f+=0x2){let _0x48487a=window[_0x5ce581([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bf700[_0x5ce581([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x270e3f,_0x270e3f+0x2));_0x48487a>=_0x46178a[_0x5ce581([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x48487a-=_0x46178a[_0x5ce581([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x350873+=_0x46178a[_0x48487a];}return _0x350873;}function _0x5a0d26(){const _0x44512d=_0x5acbff[_0x5ce581([0x73,0x70,0x6c,0x69,0x74])](_0x5ce581([0x2e]));if(0x3!=_0x44512d[_0x5ce581([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3efd0d(_0x44512d[0x1]);function _0x3efd0d(_0x2ad888){const _0x319485=_0x247efb(_0x2ad888);return _0x319485&&_0x5a91f2()?_0x319485:null;function _0x5a91f2(){const _0x19fe41=_0x319485[_0x5ce581([0x6a,0x74,0x69])],_0x1b8f40=window[_0x5ce581([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19fe41[_0x5ce581([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19fe41[_0x5ce581([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f786e={..._0x319485,[_0x5ce581([0x6a,0x74,0x69])]:_0x19fe41[_0x5ce581([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19fe41[_0x5ce581([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f786e[_0x5ce581([0x76,0x63])],_0x134dee(_0x2f786e)==_0x1b8f40;}}}async function _0x42bb25(){let _0x8a7d7a=!0x0;try{const _0x422dc0=_0x5acbff[_0x5ce581([0x73,0x70,0x6c,0x69,0x74])](_0x5ce581([0x2e])),[_0x4043f3,_0x994c2f,_0x1da159]=_0x422dc0;return _0x11e573(_0x4043f3),await _0x330710(_0x4043f3,_0x994c2f,_0x1da159),_0x8a7d7a;}catch{return!0x1;}function _0x11e573(_0x520fc3){const _0x8983cd=_0x247efb(_0x520fc3);_0x8983cd&&_0x8983cd[_0x5ce581([0x61,0x6c,0x67])]==_0x5ce581([0x45,0x53,0x32,0x35,0x36])||(_0x8a7d7a=!0x1);}async function _0x330710(_0x405503,_0x171fab,_0x34ce40){const _0x9ea38a=window[_0x5ce581([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ce581([0x66,0x72,0x6f,0x6d])](_0x545048(_0x34ce40),_0x69234d=>_0x69234d[_0x5ce581([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x38ead9=new window[(_0x5ce581([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ce581([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x405503+_0x5ce581([0x2e])+_0x171fab),_0x43f627=window[_0x5ce581([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ce581([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43f627)return;const _0x1045d0=await _0x43f627[_0x5ce581([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ce581([0x6a,0x77,0x6b]),_0x2869e5,{[_0x5ce581([0x6e,0x61,0x6d,0x65])]:_0x5ce581([0x45,0x43,0x44,0x53,0x41]),[_0x5ce581([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ce581([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ce581([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43f627[_0x5ce581([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ce581([0x6e,0x61,0x6d,0x65])]:_0x5ce581([0x45,0x43,0x44,0x53,0x41]),[_0x5ce581([0x68,0x61,0x73,0x68])]:{[_0x5ce581([0x6e,0x61,0x6d,0x65])]:_0x5ce581([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1045d0,_0x9ea38a,_0x38ead9)||(_0x8a7d7a=!0x1);}}function _0x247efb(_0x57cc78){return _0x57cc78[_0x5ce581([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ce581([0x65,0x79]))?JSON[_0x5ce581([0x70,0x61,0x72,0x73,0x65])](_0x545048(_0x57cc78)):null;}function _0x545048(_0x2fa8b7){return window[_0x5ce581([0x61,0x74,0x6f,0x62])](_0x2fa8b7[_0x5ce581([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ce581([0x2b]))[_0x5ce581([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ce581([0x2f])));}function _0x134dee(_0x45bf89){let _0x2743ce=0x1505;function _0x25b924(_0x2e8133){for(let _0x1259f7=0x0;_0x1259f7<_0x2e8133[_0x5ce581([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1259f7++){const _0x5a1c30=_0x2e8133[_0x5ce581([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1259f7);_0x2743ce=(_0x2743ce<<0x5)+_0x2743ce+_0x5a1c30,_0x2743ce&=_0x2743ce;}}function _0x29e31f(_0x544b20){Array[_0x5ce581([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x544b20)?_0x544b20[_0x5ce581([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x29e31f):_0x544b20&&typeof _0x544b20==_0x5ce581([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ce581([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x544b20)[_0x5ce581([0x73,0x6f,0x72,0x74])]()[_0x5ce581([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c993f,_0x1d5cec])=>{_0x25b924(_0x2c993f),_0x29e31f(_0x1d5cec);}):_0x25b924(window[_0x5ce581([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x544b20));}return _0x29e31f(_0x45bf89),_0x2743ce>>>0x0;}function _0x2c3d13(_0x1f9f64){return _0x1f9f64[_0x5ce581([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ce581([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ce581([0x30]));}function _0x5d3ee2(_0x459f9c){return _0x459f9c[_0x5ce581([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ce581([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ce581([0x6a,0x6f,0x69,0x6e])]('');}function _0x14ae38(_0x50f081){return _0x19eb3b[_0x5ce581([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5ce581([0x68,0x61,0x73])](_0x50f081);}function _0x5f20de(_0x5ab1ed){return _0x19eb3b[_0x5ce581([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5ce581([0x67,0x65,0x74])](_0x5ab1ed);}function _0x11cb59(){}function _0x5ce581(_0x47d313){return _0x47d313['map'](_0x5dad63=>String['fromCharCode'](_0x5dad63))['join']('');}_0x16ca9f(await _0x135516());}(this);}set['adapter'](_0x1789bd){if(this['_adapter'])throw new _0x4964f4('track-changes-adapter-already-set',this);this['_adapter']=_0x1789bd;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x435d6d=!0x1,toJSON:_0x329835=!0x1}={}){const _0x301e94=[];for(const _0x3f4dea of this['_suggestions']['values']())_0x435d6d&&!_0x3f4dea['isInContent']||_0x301e94['push'](_0x3f4dea);return _0x329835?_0x301e94['map'](_0x563787=>_0x563787['toJSON']()):_0x301e94;}['getSuggestion'](_0x5d1761){const _0x4abc82=this['_suggestions']['get'](_0x5d1761);if(!_0x4abc82)throw new _0x4964f4('track-changes-suggestion-not-found',this);return _0x4abc82;}['hasSuggestion'](_0x640f8f){return this['_suggestions']['has'](_0x640f8f);}['addSuggestionData'](_0x2fa561){const {authorId:_0x876869,id:_0x53ae85,originalSuggestionId:_0x285181,attributes:_0x15555e}=_0x2fa561,[_0x22fab2,_0x10839d]=_0x2fa561['type']['split'](':'),_0x2921a1=this['_suggestions']['get'](_0x53ae85)||this['_createSuggestion'](_0x22fab2,_0x10839d,_0x53ae85,_0x876869,_0x15555e,_0x285181);if(this['_addThreadToSuggestion'](_0x2921a1),this['_checkSuggestionCorrectness'](_0x2921a1,_0x22fab2,_0x10839d||null,_0x876869),_0x2921a1['createdAt']=_0x2fa561['createdAt'],_0x2921a1['_isDataLoaded']=!0x0,_0x15555e&&_0x15555e['@external']){const _0x28c8f6=_0x15555e['@external'],_0x535ba8=this['_getExternalAuthor'](_0x28c8f6['authorName']);_0x2921a1['authoredAt']=_0x28c8f6['createdAt'],_0x2921a1['author']=_0x535ba8,_0x2921a1['isExternal']=!0x0;}else _0x2921a1['authoredAt']=_0x2fa561['createdAt'];switch(_0x2fa561['data']&&(_0x2921a1['data']=_0x2fa561['data']),_0x2fa561['attributes']&&(_0x2921a1['attributes']=_0x2fa561['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2921a1['_saved']=!0x0),this['_suggestionState']['get'](_0x2921a1)){case'notReady':this['_suggestionState']['set'](_0x2921a1,'dataReady');break;case'markerReady':_0x2921a1['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2921a1])),this['_refreshSuggestionsChain'](new Set([_0x2921a1])),this['_suggestionState']['set'](_0x2921a1,'ready'),this['fire']('suggestionLoaded',_0x2921a1)):this['_suggestionState']['set'](_0x2921a1,'removed');}return _0x2921a1;}['acceptSuggestion'](_0xd390){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xbfdf10 of _0xd390['getAllAdjacentSuggestions']())_0xbfdf10['accept']();});});}['discardSuggestion'](_0x51b262){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x38b8d2 of _0x51b262['getAllAdjacentSuggestions']())_0x38b8d2['discard']();});});}['enableCommand'](_0xeca7c7,_0x34f973){const _0x18270d=this['editor']['commands']['get'](_0xeca7c7);if(!_0x18270d)throw new _0x4964f4('track-changes-command-not-found',this,{'commandName':_0xeca7c7});if(this['_enabledCommands']['has'](_0x18270d))throw new _0x4964f4('track-changes-enable-command-twice',this,{'commandName':_0xeca7c7});this['_enabledCommands']['add'](_0x18270d),_0x34f973&&_0x18270d['on']('execute',(_0x1f1cbf,_0x2d2cea)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2d2cea['length']>0x0&&_0x2d2cea[_0x2d2cea['length']-0x1]&&_0x2d2cea[_0x2d2cea['length']-0x1]['forceDefaultExecution']?_0x2d2cea['pop']():(_0x1f1cbf['return']=_0x34f973((..._0x428a68)=>_0x18270d['execute'](..._0x428a68,{'forceDefaultExecution':!0x0}),..._0x2d2cea),_0x1f1cbf['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5da63a){let _0x14d3c2,_0xb5b208;const _0xb62534=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x14d3c2=_0x5da63a();}catch(_0x5aaf48){_0xb5b208=_0x5aaf48;}return _0xb62534||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xb5b208&&_0x4964f4['rethrowUnexpectedError'](_0xb5b208,this),_0x14d3c2;}['markInsertion'](_0xf3d3f8,_0x24885f=null,_0x304321={}){if(_0xf3d3f8['isCollapsed'])return null;const _0x10effd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x304321['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3184df,meta:_0x5d18a7}of this['_findSuggestions'](_0xf3d3f8,'insertion'))if(_0x5d18a7['isOwn']){if(!_0x5d18a7['isNextTo']){if(_0x5d18a7['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!oe(_0x3184df,_0x304321))continue;return _0x3184df;}if(oe(_0x3184df,_0x304321))return _0x3184df;this['_breakSuggestionMarker'](_0x3184df,_0xf3d3f8['start'],_0xf3d3f8['end']);break;}if(_0x24885f==_0x3184df['subType']&&oe(_0x3184df,_0x304321)){const _0x40ed67=_0x3184df['getFirstRange']();return _0x40ed67['start']['isEqual'](_0xf3d3f8['end'])?this['_setSuggestionRange'](_0x3184df,this['_model']['createRange'](_0xf3d3f8['start'],_0x40ed67['end'])):this['_setSuggestionRange'](_0x3184df,this['_model']['createRange'](_0x40ed67['start'],_0xf3d3f8['end'])),_0x3184df;}}const _0x3ec7be=_0x13e6cd(),_0x4d11c8=_0x10effd['id'],_0x19a332=_0x24885f?'insertion:'+_0x24885f:'insertion',_0x2fae60=this['_setSuggestionData']({'id':_0x3ec7be,'type':_0x19a332,'createdAt':new Date(),'authorId':_0x4d11c8,'attributes':_0x304321});return this['_addSuggestionMarker'](_0x19a332,_0x3ec7be,_0x4d11c8,_0xf3d3f8),_0x2fae60;}['markMultiRangeInsertion'](_0x38a311,_0x59d306='multi',_0x717c54={}){const _0x221d63=this['editor']['plugins']['get']('Users')['me'],_0x4a69ce=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x59d306,'join');this['_trackingSessionId']&&(_0x717c54['trackingSessionId']=this['_trackingSessionId']);for(const _0x598af4 of this['getSuggestions']())if(_0x598af4['author']['id']==_0x221d63['id']&&'insertion'==_0x598af4['type']&&_0x598af4['subType']==_0x59d306&&oe(_0x598af4,_0x717c54)&&(_0x4a69ce(_0x598af4['getRanges'](),_0x38a311)||_0x4a69ce(_0x38a311,_0x598af4['getRanges']()))){for(const _0x44ad5c of _0x38a311)_0x598af4['addRange'](_0x44ad5c);return _0x598af4;}for(const {suggestion:_0x5e8b7e,meta:_0x58afa4}of this['_findSuggestions'](_0x38a311,'insertion')){if(!_0x58afa4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x58afa4['containsRangeInObject'])continue;if(!oe(_0x5e8b7e,_0x717c54))continue;let _0x11e6bd=!0x0;for(const _0x46d48a of _0x5e8b7e['getRanges']())for(const _0x3a4695 of _0x38a311)if(!_0x46d48a['containsRange'](_0x3a4695)){_0x11e6bd=!0x1;break;}if(_0x11e6bd)return _0x5e8b7e;}const _0x518aa5=_0x13e6cd(),_0x4c1170=_0x221d63['id'],_0x58101e='insertion:'+_0x59d306,_0x590bb4=this['_setSuggestionData']({'id':_0x518aa5,'type':_0x58101e,'createdAt':new Date(),'authorId':_0x4c1170,'attributes':_0x717c54});for(const _0x12ac1a of _0x38a311)this['_addSuggestionMarker'](_0x58101e,_0x518aa5,_0x4c1170,_0x12ac1a,R['getMultiRangeId']());return _0x590bb4;}['markInlineFormat'](_0x40413e,_0x496008,_0x13fe7b=null,_0x459b24={}){if(_0x13fe7b=_0x13fe7b||Qt(_0x496008),_0x40413e['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x459b24['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xa1d349=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13fe7b,'accept');return this['forceDefaultExecution'](()=>_0xa1d349([_0x40413e],_0x496008,_0x459b24)),null;}const _0xb090a7=this['editor']['plugins']['get']('Users')['me'],_0x2cf0ba=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x42c21c,meta:_0x357c94}of this['_findSuggestions'](_0x40413e,'insertion'))_0x357c94['isOwn']&&!_0x357c94['isInsideObject']&&_0x2cf0ba['push'](..._0x42c21c['getRanges']());}const _0x243d87=function(_0x1fea41,_0x31f3aa){const _0x35b078=[];for(const _0x383710 of _0x31f3aa){const _0x1d8da5=_0x1fea41['getIntersection'](_0x383710);_0x1d8da5&&_0x35b078['push'](_0x1d8da5);}return _0x35b078;}(_0x40413e,_0x2cf0ba),_0x458e55=function(_0x13f0cf,_0x8712c0){const _0x324754=[_0x13f0cf];for(const _0x340c2f of _0x8712c0){let _0x2fca47=0x0;for(;_0x2fca47<_0x324754['length'];){const _0x2ebb0c=_0x324754[_0x2fca47]['getDifference'](_0x340c2f);_0x324754['splice'](_0x2fca47,0x1,..._0x2ebb0c),_0x2fca47+=_0x2ebb0c['length'];}}return _0x324754;}(_0x40413e,_0x2cf0ba);_0x243d87['length']&&this['_model']['change'](()=>{for(const _0xb8c981 of _0x243d87){const _0x3cdb35=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13fe7b,'accept');this['forceDefaultExecution'](()=>_0x3cdb35([_0xb8c981],_0x496008,_0x459b24));}});for(const _0x524e1f of _0x458e55){let _0x51ed53=null,_0x4ce16c=_0x524e1f['start'],_0xc1f54e=_0x524e1f['end'];for(const {suggestion:_0x5c482f,meta:_0x49288c}of this['_findSuggestions'](_0x524e1f,'formatInline')){if(!_0x49288c['isOwn'])continue;if(_0x5c482f['subType']!=_0x13fe7b)continue;if(!oe(_0x5c482f,_0x459b24))continue;const _0x4edf34=_0x5c482f['getFirstRange']();if(_0x4edf34['containsRange'](_0x524e1f,!0x0))return null;_0x4ce16c=_0x4ce16c['isBefore'](_0x4edf34['start'])?_0x4ce16c:_0x4edf34['start'],_0xc1f54e=_0xc1f54e['isAfter'](_0x4edf34['end'])?_0xc1f54e:_0x4edf34['end'],_0x51ed53?_0x4edf34['start']['isBefore'](_0x51ed53['getFirstRange']()['start'])?(_0x51ed53['removeMarkers'](),_0x51ed53=_0x5c482f):_0x5c482f['removeMarkers']():_0x51ed53=_0x5c482f;}const _0x322256=this['_model']['createRange'](_0x4ce16c,_0xc1f54e);if(_0x51ed53)this['_setSuggestionRange'](_0x51ed53,_0x322256);else{const _0x3fe357=_0x13e6cd(),_0x227940=_0xb090a7['id'];this['_setSuggestionData']({'id':_0x3fe357,'type':'formatInline:'+_0x13fe7b,'data':_0x496008,'createdAt':new Date(),'authorId':_0x227940,'attributes':_0x459b24}),this['_addSuggestionMarker']('formatInline:'+_0x13fe7b,_0x3fe357,_0x227940,_0x322256);}}return null;}['markBlockFormat'](_0x271f5f,_0x39576e,_0x22bc65=[],_0x34f5fc=null,_0x46099a={}){_0x39576e['formatGroupId']||(_0x39576e['formatGroupId']=_0x39576e['commandName']),_0x39576e['multipleBlocks']=_0x271f5f['is']('range'),_0x34f5fc=_0x34f5fc||Qt(_0x39576e);const _0x393e0a=_0x22bc65['map'](_0x1887b1=>ie(_0x1887b1,this['_model'])),_0x129625=_0x271f5f['is']('range')?_0x271f5f:ie(_0x271f5f,this['_model']);if(this['_trackingSessionId']&&(_0x46099a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x26c210=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x34f5fc,'accept');return this['forceDefaultExecution'](()=>_0x26c210([_0x129625],_0x39576e,_0x46099a)),null;}_0x393e0a['push'](_0x129625);let _0x5d61c2=!0x0;for(const _0x4c2b02 of _0x393e0a)if(!this['_rangeIsInLocalUserInsertion'](_0x4c2b02)){_0x5d61c2=!0x1;break;}if(_0x5d61c2&&'always'!==this['_trackFormatChanges']){const _0x1d66aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x34f5fc,'accept');return this['forceDefaultExecution'](()=>_0x1d66aa([_0x129625],_0x39576e,_0x46099a)),null;}let _0xd99a98=null,_0x2aa164=_0x129625['start'],_0x28c328=_0x129625['end'];for(const {suggestion:_0x5d3af6,meta:_0x306edf}of this['_findSuggestions'](_0x129625,'formatBlock')){if(!_0x306edf['isOwn'])continue;if(_0x306edf['isNextTo']||_0x306edf['containsRangeInObject']||_0x306edf['isInsideObject'])continue;if(_0x5d3af6['data']['formatGroupId']!=_0x39576e['formatGroupId'])continue;if(!oe(_0x5d3af6,_0x46099a))continue;const _0x1fa808=_0x5d3af6['getFirstRange']();if(_0x5d3af6['subType']==_0x34f5fc){if(_0x1fa808['containsRange'](_0x129625,!0x0))return null;_0x2aa164=_0x2aa164['isBefore'](_0x1fa808['start'])?_0x2aa164:_0x1fa808['start'],_0x28c328=_0x28c328['isAfter'](_0x1fa808['end'])?_0x28c328:_0x1fa808['end'],_0xd99a98?_0x1fa808['start']['isBefore'](_0xd99a98['getFirstRange']()['start'])?(_0xd99a98['removeMarkers'](),_0xd99a98=_0x5d3af6):_0x5d3af6['removeMarkers']():_0xd99a98=_0x5d3af6;}else{const _0x4bbbac=_0x129625['getIntersection'](_0x1fa808);this['_cutOutSuggestionMarker'](_0x5d3af6,_0x4bbbac);}}const _0xb1d523=this['editor']['plugins']['get']('Users')['me'],_0xa9d5a1=_0x13e6cd(),_0x134d54=_0xb1d523['id'];if(_0xd99a98)return this['_setSuggestionRange'](_0xd99a98,this['_model']['createRange'](_0x2aa164,_0x28c328)),_0xd99a98;{const _0x48c7d3=this['_setSuggestionData']({'id':_0xa9d5a1,'type':'formatBlock:'+_0x34f5fc,'data':_0x39576e,'createdAt':new Date(),'authorId':_0x134d54,'attributes':_0x46099a});return this['_addSuggestionMarker']('formatBlock:'+_0x34f5fc,_0xa9d5a1,_0x134d54,this['_model']['createRange'](_0x2aa164,_0x28c328)),_0x48c7d3;}}['markMultiRangeBlockFormat'](_0x4e7698,_0x2362f8,_0x10f3e2=[],_0x357570=null,_0x42c6f5={}){_0x2362f8['formatGroupId']||(_0x2362f8['formatGroupId']=_0x2362f8['commandName']);const _0x79b0bf=_0x4e7698[0x0];_0x2362f8['multipleBlocks']=_0x79b0bf['is']('range'),_0x357570=_0x357570||Qt(_0x2362f8);const _0x202bb5=_0x10f3e2['map'](_0x5f24a9=>ie(_0x5f24a9,this['_model'])),_0x5f44e7=_0x79b0bf['is']('range')?_0x4e7698:_0x4e7698['map'](_0x1cd19f=>ie(_0x1cd19f,this['_model']));if(this['_trackingSessionId']&&(_0x42c6f5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x7819e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x357570,'accept');return this['forceDefaultExecution'](()=>_0x7819e5(_0x5f44e7,_0x2362f8,_0x42c6f5)),null;}_0x202bb5['push'](..._0x5f44e7);let _0x2e5789=!0x0;for(const _0x43443d of _0x202bb5)if(!this['_rangeIsInLocalUserInsertion'](_0x43443d)){_0x2e5789=!0x1;break;}if(_0x2e5789&&'always'!==this['_trackFormatChanges']){const _0x34815a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x357570,'accept');return this['forceDefaultExecution'](()=>_0x34815a(_0x5f44e7,_0x2362f8,_0x42c6f5)),null;}const _0x2638f8=this['editor']['plugins']['get']('Users')['me'];for(const _0x219758 of this['getSuggestions']()){const _0xb171ed=_0x219758['data'];if(_0x219758['author']['id']!=_0x2638f8['id'])continue;if('formatBlock'!=_0x219758['type']||_0xb171ed['formatGroupId']!=_0x2362f8['formatGroupId'])continue;if(!oe(_0x219758,_0x42c6f5))continue;const _0x4a3232=_0x219758['subType']==_0x357570;for(let _0x3f6da4=0x0;_0x3f6da4<_0x5f44e7['length'];_0x3f6da4++){const _0x16db93=_0x5f44e7[_0x3f6da4];for(const _0x2c79a5 of _0x219758['getMarkers']()){const _0x32031c=_0x2c79a5['getRange']();if(_0x16db93['isEqual'](_0x32031c)){_0x4a3232?(_0x5f44e7['splice'](_0x3f6da4,0x1),_0x3f6da4--):_0x219758['removeMarker'](_0x2c79a5['name']);break;}}}}if(0x0==_0x5f44e7['length'])return null;const _0x158543=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x357570,'join');for(const _0x3f2d2e of this['getSuggestions']()){const _0x51e0a6=_0x3f2d2e['data'];if(_0x3f2d2e['author']['id']==_0x2638f8['id']&&('formatBlock'==_0x3f2d2e['type']&&_0x51e0a6['formatGroupId']==_0x2362f8['formatGroupId']&&_0x3f2d2e['subType']==_0x357570&&oe(_0x3f2d2e,_0x42c6f5)&&(_0x158543(_0x3f2d2e['getRanges'](),_0x5f44e7)||_0x158543(_0x5f44e7,_0x3f2d2e['getRanges']())))){for(const _0x5a234e of _0x5f44e7)_0x3f2d2e['addRange'](_0x5a234e);return _0x3f2d2e;}}const _0x306dd7=_0x13e6cd(),_0x522870=_0x2638f8['id'],_0x5363cd='formatBlock:'+_0x357570,_0x2658be=this['_setSuggestionData']({'id':_0x306dd7,'type':_0x5363cd,'data':_0x2362f8,'createdAt':new Date(),'authorId':_0x522870,'attributes':_0x42c6f5});for(const _0x1b092b of _0x5f44e7)this['_addSuggestionMarker'](_0x5363cd,_0x306dd7,_0x522870,_0x1b092b,R['getMultiRangeId']());return _0x2658be;}['markDeletion'](_0x4dec0f,_0x31bd6b=null,_0x55ad3e={}){if(_0x4dec0f['isCollapsed'])return null;const _0x2ec7da=this['editor']['plugins']['get']('Users')['me'],_0x10f31d=new _0x2d08fb(_0x4dec0f['start'],_0x4dec0f['end']);this['_trackingSessionId']&&(_0x55ad3e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x276521,meta:_0x3c7a0b}of this['_findSuggestions'](_0x10f31d,'insertion'))if(_0x3c7a0b['isOwn']&&!_0x3c7a0b['isNextTo']){if(_0x276521['isMultiRange']){const _0x48f24b=_0x276521['getRanges']()['filter'](_0xe95e85=>'$graveyard'!=_0xe95e85['root']['rootName']);_0x48f24b['every'](_0x1e7b19=>_0x10f31d['containsRange'](_0x1e7b19,!0x0))&&_0x276521['discard']();if(_0x48f24b['some'](_0x2f0d7a=>_0x2f0d7a['containsRange'](_0x10f31d,!0x0))){const _0x2313a2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31bd6b,'accept');return this['forceDefaultExecution'](()=>_0x2313a2([_0x10f31d],null,_0x55ad3e)),null;}}else{const _0x439a7b=_0x10f31d['getIntersection'](_0x276521['getFirstRange']());null!==_0x439a7b&&_0x276521['_onDiscard']([_0x439a7b],null,_0x55ad3e);}}if(_0x10f31d['detach'](),_0x10f31d['isCollapsed']||'$graveyard'==_0x10f31d['root']['rootName'])return null;let _0x2b4037=null,_0x5e8a0f=_0x10f31d['start'],_0xde819=_0x10f31d['end'];const _0x998257=this['_findSuggestions'](_0x10f31d,'deletion');for(const {suggestion:_0x1203a1,meta:_0x36b615}of _0x998257){const _0x5ab49f=this['_model']['createRange'](_0x5e8a0f,_0xde819);if(_0x36b615['isOwn']&&(this['_mergeNestedSuggestions']||!_0x36b615['containsRangeInObject']&&!_0x36b615['isInsideObject'])){if(_0x1203a1['isMultiRange']){if(!oe(_0x1203a1,_0x55ad3e))continue;let _0x474523=!0x0;for(const _0x48fda2 of _0x1203a1['getRanges']()){if(_0x48fda2['containsRange'](_0x5ab49f,!0x0))return _0x1203a1;_0x5ab49f['containsRange'](_0x48fda2)||(_0x474523=!0x1);}_0x474523&&_0x1203a1['discard']();}else{const _0x1e0185=_0x1203a1['getFirstRange']();if(_0x1e0185['containsRange'](_0x5ab49f,!0x0))return _0x1203a1;if(!oe(_0x1203a1,_0x55ad3e)){_0x5ab49f['containsRange'](_0x1e0185)?_0x1203a1['removeMarkers']():_0x1e0185['containsPosition'](_0x5e8a0f)?_0x5e8a0f=_0x1e0185['end']:_0x1e0185['containsPosition'](_0xde819)&&(_0xde819=_0x1e0185['start']);continue;}_0x5e8a0f=_0x5e8a0f['isBefore'](_0x1e0185['start'])?_0x5e8a0f:_0x1e0185['start'],_0xde819=_0xde819['isAfter'](_0x1e0185['end'])?_0xde819:_0x1e0185['end'],_0x55ad3e=Object['assign']({},_0x1203a1['attributes']),_0x2b4037?_0x1e0185['start']['isBefore'](_0x2b4037['getFirstRange']()['start'])?(_0x2b4037['removeMarkers'](),_0x2b4037=_0x1203a1):_0x1203a1['removeMarkers']():_0x2b4037=_0x1203a1;}}}if(_0x2b4037)return this['_setSuggestionRange'](_0x2b4037,this['_model']['createRange'](_0x5e8a0f,_0xde819)),_0x2b4037;{const _0x523745=_0x13e6cd(),_0x5508c6=this['_model']['createRange'](_0x5e8a0f,_0xde819),_0x1c91d2=_0x2ec7da['id'],_0x28c2c9=_0x31bd6b?'deletion:'+_0x31bd6b:'deletion',_0x3a4e04=this['_setSuggestionData']({'id':_0x523745,'type':_0x28c2c9,'createdAt':new Date(),'authorId':_0x1c91d2,'attributes':_0x55ad3e});return this['_addSuggestionMarker'](_0x28c2c9,_0x523745,_0x1c91d2,_0x5508c6),_0x3a4e04;}}['markMultiRangeDeletion'](_0x588072,_0x4b43cf='multi',_0x3be855={}){const _0x5b4e0d=this['editor']['plugins']['get']('Users')['me'],_0xe280e7=_0x588072['map'](_0x6bdf06=>new _0x2d08fb(_0x6bdf06['start'],_0x6bdf06['end'])),_0x37d473=new Set();this['_trackingSessionId']&&(_0x3be855['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2093c5,meta:_0x570ec3}of this['_findSuggestions'](_0xe280e7,'insertion'))_0x570ec3['isOwn']&&!_0x570ec3['isNextTo']&&_0x37d473['add'](_0x2093c5);for(const _0x1b7708 of _0x37d473)if(_0x1b7708['isMultiRange']){const _0x302361=_0x1b7708['getRanges']();(!_0x1b7708['attributes']||!_0x1b7708['attributes']['skipNestingCheck'])&&(_0x302361['every'](_0x3ed0a5=>_0xe280e7['some'](_0x48770e=>_0x48770e['containsRange'](_0x3ed0a5,!0x0)))&&_0x1b7708['discard']());if(_0xe280e7['every'](_0x3e603b=>_0x302361['some'](_0x6adccf=>_0x6adccf['containsRange'](_0x3e603b,!0x0)))){const _0x5d0d00=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b43cf,'accept');return this['forceDefaultExecution'](()=>_0x5d0d00(_0x588072,null,_0x3be855)),null;}}else{const _0x30b6cc=_0x1b7708['getFirstRange']();_0xe280e7['some'](_0x1ea666=>_0x1ea666['containsRange'](_0x30b6cc,!0x0))&&_0x1b7708['discard']();if(_0xe280e7['every'](_0x124db1=>_0x30b6cc['containsRange'](_0x124db1,!0x0))){const _0x13ad4b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b43cf,'accept');return this['forceDefaultExecution'](()=>_0x13ad4b(_0xe280e7,null,_0x3be855)),null;}}const _0x33b68f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b43cf,'join');let _0x21a0d1=null;for(const _0x4e81cb of this['getSuggestions']())if(_0x4e81cb['author']['id']==_0x5b4e0d['id']&&_0x4e81cb['isInContent']&&'deletion'==_0x4e81cb['type']&&_0x4e81cb['subType']==_0x4b43cf&&oe(_0x4e81cb,_0x3be855)&&(_0x33b68f(_0x4e81cb['getRanges'](),_0xe280e7)||_0x33b68f(_0xe280e7,_0x4e81cb['getRanges']()))){if(_0x21a0d1){if(_0x4e81cb['commentThread']&&_0x4e81cb['commentThread']['length'])continue;for(const _0x21af72 of _0x4e81cb['getRanges']())_0x21a0d1['isIntersectingWithRange'](_0x21af72)||_0x21a0d1['addRange'](_0x21af72);_0x4e81cb['removeMarkers']();}else{_0x21a0d1=_0x4e81cb;for(const _0x3f820d of _0xe280e7)_0x4e81cb['isIntersectingWithRange'](_0x3f820d)||_0x4e81cb['addRange'](_0x3f820d);}}if(_0x21a0d1)return _0x21a0d1;_0x37d473['clear']();for(const {suggestion:_0x24a8d6,meta:_0x29649a}of this['_findSuggestions'](_0xe280e7,'deletion'))_0x29649a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x29649a['containsRangeInObject']&&!_0x29649a['isInsideObject'])&&oe(_0x24a8d6,_0x3be855)&&_0x37d473['add'](_0x24a8d6);for(const _0x16f74c of _0x37d473){const _0x4362dc=_0x16f74c['getRanges']();if(!_0x3be855||!_0x3be855['skipNestingCheck']){if(_0xe280e7['every'](_0x414469=>_0x4362dc['some'](_0x11189a=>_0x11189a['containsRange'](_0x414469,!0x0))))return _0x16f74c;}(!_0x16f74c['attributes']||!_0x16f74c['attributes']['skipNestingCheck'])&&(_0x4362dc['every'](_0x34aa98=>_0xe280e7['some'](_0x1c046a=>_0x1c046a['containsRange'](_0x34aa98,!0x0)))&&_0x16f74c['discard']());}const _0xaa587a=_0x13e6cd(),_0x667172=_0x5b4e0d['id'],_0xb3f941='deletion:'+_0x4b43cf,_0xf1ad49=this['_setSuggestionData']({'id':_0xaa587a,'type':_0xb3f941,'createdAt':new Date(),'authorId':_0x667172,'attributes':_0x3be855});for(const _0x299dfe of _0xe280e7)_0x299dfe['detach'](),_0x299dfe['isCollapsed']||'$graveyard'==_0x299dfe['root']['rootName']||this['_addSuggestionMarker'](_0xb3f941,_0xaa587a,_0x667172,_0x299dfe,R['getMultiRangeId']());return _0xf1ad49;}['markAttributeChange'](_0x3a66d1,_0x23aa3c,_0xa874b1,_0x7107b1,_0x296ab5){if(_0x3a66d1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5b9faa=this['editor']['plugins']['get']('Users')['me']['id'],_0x4ad52c=Array['from'](this['_suggestions']['values']())['filter'](_0x713b74=>'attribute'==_0x713b74['type']&&_0x713b74['data']['key']==_0x23aa3c&&_0x713b74['isIntersectingWithRange'](_0x3a66d1));if(this['_trackingSessionId']&&(_0x296ab5['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x422e9d=this['_findSuggestions'](_0x3a66d1,'insertion')['filter'](({meta:_0xdc6ccb})=>_0xdc6ccb['isOwn']&&!_0xdc6ccb['isInsideObject']&&!_0xdc6ccb['isNextTo'])['map'](({suggestion:_0x49e6d6})=>_0x49e6d6);_0x4ad52c['unshift'](..._0x422e9d);}const _0x4d307d=new Map([[_0x3a66d1,_0xa874b1]]);for(const _0x429bc6 of _0x4ad52c){const _0x3b20be='attribute'==_0x429bc6['type']?_0x429bc6['data']['oldValue']:void 0x0,_0xe507c0=_0x429bc6['getFirstRange'](),_0x39c4ba=Array['from'](_0x4d307d['keys']())['find'](_0x55a2a3=>_0x55a2a3['isIntersecting'](_0xe507c0));if(!_0x39c4ba)continue;const _0x2b812a=_0x39c4ba['getDifference'](_0xe507c0);this['_isBlockAttribute'](_0x23aa3c)&&'insertion'==_0x429bc6['type']&&0x0!=_0x2b812a['length']||(_0x4d307d['delete'](_0x39c4ba),_0x2b812a['forEach'](_0x131601=>{_0x4d307d['set'](_0x131601,_0xa874b1);}),'insertion'!=_0x429bc6['type']&&_0x3b20be!=_0x7107b1&&_0x4d307d['set'](_0x39c4ba['getIntersection'](_0xe507c0),_0x3b20be));}const _0x3feccb=[];for(const [_0x2c184c,_0x222fde]of _0x4d307d){const _0x2ba426=_0x13e6cd(),_0x1bba81={'key':_0x23aa3c,'oldValue':_0x222fde,'newValue':_0x7107b1};_0x23aa3c['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':_0x23aa3c});const _0x2b9e21=('attribute:'+(_0x23aa3c+'|'+Qt({'newValue':_0x7107b1})))['substring'](0x0,0x3c),_0x4c677d=this['_setSuggestionData']({'id':_0x2ba426,'type':_0x2b9e21,'data':_0x1bba81,'createdAt':new Date(),'authorId':_0x5b9faa,'attributes':_0x296ab5});_0x3feccb['push'](_0x4c677d),this['_addSuggestionMarker'](_0x2b9e21,_0x2ba426,_0x5b9faa,_0x2c184c);}return _0x3feccb;}['enableDefaultAttributesIntegration'](_0x347c6d){this['enableCommand'](_0x347c6d,(_0x453037,..._0x4b43a5)=>{this['recordAttributeChanges'](()=>{_0x453037(..._0x4b43a5);});});}['registerBlockAttribute'](_0x292066){this['_blockAttributeKeys']['add'](_0x292066);}['registerInlineAttribute'](_0x4c6250){this['_inlineAttributeKeys']['add'](_0x4c6250);}['startTrackingSession'](_0x2be6fa){return this['_trackingSessionId']=void 0x0!==_0x2be6fa?_0x2be6fa:_0x13e6cd(),this['_trackingSessionId'];}['_getAttributeKey'](_0x15e64e){return'attribute'==_0x15e64e['type']?ae(_0x15e64e['subType']):null;}['_applyOperationsAsSuggestions'](_0x14908b){if(0x0==_0x14908b['length'])return;const _0x249516=this['editor'],_0x15ab4b=_0x249516['plugins']['get'](_0x4e924d);let _0x269878,_0x4dca86=!0x0;for(const _0x34492c in _0x14908b[0x0]){const _0xe40e12=_0x14908b[0x0][_0x34492c];if((_0xe40e12 instanceof _0x3b90e7||_0xe40e12 instanceof _0x8685de)&&_0xe40e12['root']['is']('documentFragment')){_0x4dca86=!0x1,_0x269878=_0xe40e12['root'];break;}}_0x249516['model']['change'](_0x5d73d3=>{const _0x254f69=new Set();for(let _0x1dcb30=0x0;_0x1dcb30<_0x14908b['length'];_0x1dcb30++){const _0x116326=_0x14908b[_0x1dcb30];if(_0x116326['baseVersion']=_0x4dca86?_0x249516['model']['document']['version']:null,_0x116326['isDocumentOperation']=_0x4dca86,_0x15ab4b['isMarkedRemoveOperation'](_0x116326)){const _0x143170=te(_0x116326['newRange'],_0x249516['model']);if(_0x4dca86)this['markDeletion'](_0x143170);else{const _0x146bb0='suggestion:deletion:'+_0x13e6cd()+':$aiSuggestion';_0x269878['markers']['set'](_0x146bb0,_0x143170);}}else switch(_0x116326['type']){case'rename':{const _0x3abdd3=_0x116326['oldName'],_0x5ebcd8=_0x116326['newName'];if(_0x3abdd3==_0x5ebcd8)break;_0x5d73d3['batch']['addOperation'](_0x116326),_0x249516['model']['applyOperation'](_0x116326);const _0xcf0a8b='$elementName',_0x30aa3a=_0x116326['position'],_0x1daf29=_0x249516['model']['createRange'](_0x30aa3a,_0x249516['model']['createPositionAt'](_0x30aa3a['nodeAfter'],'end'));if(_0x4dca86)this['markAttributeChange'](_0x1daf29,_0xcf0a8b,_0x3abdd3,_0x5ebcd8,{'groupId':_0x13e6cd()});else{const _0x5ddc25='suggestion:attribute:'+_0xcf0a8b+':'+_0x13e6cd()+':$aiSuggestion';_0x269878['markers']['set'](_0x5ddc25,_0x1daf29);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x8db5f3=_0x116326['oldValue'],_0x55adff=_0x116326['newValue'];if(_0x8db5f3==_0x55adff)break;_0x5d73d3['batch']['addOperation'](_0x116326),_0x249516['model']['applyOperation'](_0x116326);const _0x12631f=_0x116326['key'];if(!this['_isRegisteredAttribute'](_0x12631f))break;const _0x5a7ee4=te(_0x116326['range'],_0x249516['model']);if(_0x4dca86)this['markAttributeChange'](_0x5a7ee4,_0x12631f,_0x8db5f3,_0x55adff,{'groupId':_0x13e6cd()});else{const _0x4b486='suggestion:attribute:'+_0x12631f+':'+_0x13e6cd()+':$aiSuggestion';_0x269878['markers']['set'](_0x4b486,_0x5a7ee4);}break;}case'insert':{_0x5d73d3['batch']['addOperation'](_0x116326),_0x249516['model']['applyOperation'](_0x116326);const _0x234896=_0x14908b[_0x1dcb30+0x1]&&'move'==_0x14908b[_0x1dcb30+0x1]['type'];if(!_0x4dca86&&_0x234896&&ce(_0x269878,_0x116326),_0x234896)break;const _0x3c3e4f=_0x116326['position'],_0x197aef=_0x116326['howMany'],_0x2b5ad5=te(_0x249516['model']['createRange'](_0x3c3e4f,_0x3c3e4f['getShiftedBy'](_0x197aef)),_0x249516['model']);if(_0x4dca86)this['markInsertion'](_0x2b5ad5);else{const _0xb6dbdc='suggestion:insertion:'+_0x13e6cd()+':$aiSuggestion';_0x269878['markers']['set'](_0xb6dbdc,_0x2b5ad5);}break;}case'split':{_0x5d73d3['batch']['addOperation'](_0x116326),_0x249516['model']['applyOperation'](_0x116326);const _0x33fd56=_0x116326['splitPosition'],_0xfe7755=_0x116326['moveTargetPosition'],_0x2cff1d=_0x249516['model']['createRange'](_0x33fd56,_0xfe7755);if(_0x4dca86)this['markInsertion'](_0x249516['model']['createRange'](_0x33fd56,_0xfe7755));else{const _0x1d56c8='suggestion:insertion:'+_0x13e6cd()+':$aiSuggestion';_0x269878['markers']['set'](_0x1d56c8,_0x2cff1d);}break;}case'move':if(_0x5d73d3['batch']['addOperation'](_0x116326),_0x249516['model']['applyOperation'](_0x116326),!_0x4dca86&&_0x14908b[_0x1dcb30-0x1]&&'insert'==_0x14908b[_0x1dcb30-0x1]['type']&&ce(_0x269878,_0x116326),!_0x4dca86){const _0x182e2b=_0x116326['getMovedRangeStart'](),_0x5ac6fc=_0x116326['howMany'];for(let _0x50c2f2=0x0;_0x50c2f2<_0x5ac6fc;_0x50c2f2++){const _0x1b9097=_0x182e2b['getShiftedBy'](_0x50c2f2)['nodeAfter'];_0x254f69['add'](_0x1b9097);}}break;case'remove':if(_0x4dca86)_0x5d73d3['batch']['addOperation'](_0x116326),_0x249516['model']['applyOperation'](_0x116326);else{const _0x22cfb3=_0x116326['sourcePosition'],_0x43e87d=_0x116326['howMany'],_0x5a20fc=new _0x78412(_0x22cfb3,_0x43e87d);_0x5d73d3['batch']['addOperation'](_0x5a20fc),_0x249516['model']['applyOperation'](_0x5a20fc);}}}for(const _0x5c2698 of _0x254f69){const _0x4c4de4=_0x249516['model']['createRangeOn'](_0x5c2698),_0x1dabe0='suggestion:formatBlock:$fakeWrap:'+_0x13e6cd()+':$aiSuggestion';_0x269878['markers']['set'](_0x1dabe0,te(_0x4c4de4,_0x249516['model']));}});}['_setSuggestionRange'](_0x16a052,_0x22e237){const _0x49754e=_0x16a052['getFirstMarker']();this['_model']['change'](_0x42a9b8=>{_0x42a9b8['updateMarker'](_0x49754e,{'range':_0x22e237});});}['_addThreadToSuggestion'](_0xcc3625){const _0x164e5b=_0xcc3625['id'],_0x3cba9d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x164e5b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3cba9d,'threadId':_0x164e5b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x29d4bc=this['_commentsRepository']['getCommentThread'](_0x164e5b);_0x29d4bc['unbind']('isRemovable'),_0x29d4bc['isRemovable']=!0x1,_0xcc3625['commentThread']=_0x29d4bc;}['_checkSuggestionCorrectness'](_0x73a7a1,_0x27b0e8,_0x241c90,_0x568839){if(_0x73a7a1['type']!=_0x27b0e8||_0x73a7a1['subType']!=_0x241c90||_0x73a7a1['creator']['id']!=_0x568839)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4964f4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3f4525,_0x52c06e){const _0x2c0ee2=_0x3f4525['getFirstRange']();if(_0x52c06e['isEqual'](_0x2c0ee2))_0x3f4525['removeMarkers']();else{if(_0x2c0ee2['containsRange'](_0x52c06e)){const _0x3e85b6=this['_model']['createPositionAt'](_0x52c06e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f4525,this['_model']['createRange'](_0x2c0ee2['start'],_0x3e85b6));const _0x23415e=_0x13e6cd(),_0x40bc27=_0x3f4525['creator']['id'],_0xc78ceb=_0x3f4525['type']+':'+_0x3f4525['subType'];this['_setSuggestionData']({'id':_0x23415e,'type':_0xc78ceb,'createdAt':new Date(),'authorId':_0x40bc27,'data':_0x3f4525['data'],'attributes':_0x3f4525['attributes']});const _0x1c49c6=this['_model']['createPositionAt'](_0x52c06e['end']['parent'],'after'),_0x2f2102=this['_model']['createRange'](_0x1c49c6,_0x2c0ee2['end']);this['_addSuggestionMarker'](_0xc78ceb,_0x23415e,_0x40bc27,_0x2f2102);}else{if(_0x2c0ee2['containsPosition'](_0x52c06e['start'])){const _0x5d8c52=this['_model']['createPositionAt'](_0x52c06e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f4525,this['_model']['createRange'](_0x2c0ee2['start'],_0x5d8c52));}else{const _0x3787cb=this['_model']['createPositionAt'](_0x52c06e['end']['parent'],'after');this['_setSuggestionRange'](_0x3f4525,this['_model']['createRange'](_0x3787cb,_0x2c0ee2['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x47bd91){for(const {suggestion:_0x58c689,meta:_0x469678}of this['_findSuggestions'](_0x47bd91,'insertion')){if(!_0x469678['isOwn'])continue;const _0xd07dc2=_0x58c689['getRanges']();for(const _0x2f39bd of _0xd07dc2)if(!_0x47bd91['getDifference'](_0x2f39bd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x461885){return this['editor']['plugins']['get']('Users')['getUser'](_0x461885);}['_getExternalAuthor'](_0x3e9fa5){const _0x233389=this['editor']['plugins']['get']('Users'),_0x57380c=_0x1133e6('external:'+_0x3e9fa5),_0x3fa0ed=_0x233389['getUser'](_0x57380c);return _0x3fa0ed||_0x233389['addUser']({'id':_0x57380c,'name':_0x3e9fa5});}['_createSuggestion'](_0x393cfc,_0x2adea8,_0x3a06a6,_0x32e5d4,_0x43854f,_0x2cdedd){const _0x1b0270=this['_getAuthorFromId'](_0x32e5d4);if(!_0x1b0270)throw new _0x4964f4('track-changes-user-not-found',this,{'authorId':_0x32e5d4,'suggestionId':_0x3a06a6});const _0x3d5b15=this['_suggestionFactory']['buildSuggestion'](_0x393cfc,_0x2adea8,_0x3a06a6,_0x1b0270,_0x43854f,_0xece614=>{this['_updateSuggestionData'](_0x3a06a6,{'attributes':_0xece614});const _0x1c5a8c=this['getSuggestion'](_0x3a06a6);this['_joinWithAdjacentSuggestions'](new Set([_0x1c5a8c])),this['_refreshSuggestionsChain'](new Set([_0x1c5a8c]));},_0x2cdedd);return this['listenTo'](_0x3d5b15,'accept',()=>{this['_updateSuggestionData'](_0x3a06a6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3d5b15,'discard',()=>{this['_updateSuggestionData'](_0x3a06a6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3a06a6,_0x3d5b15),this['_suggestionState']['set'](_0x3d5b15,'notReady'),_0x3d5b15;}['_splitMarkerName'](_0x442bd3){const _0x114f7e=_0x442bd3['split'](':');return{'group':_0x114f7e[0x0],'type':_0x114f7e[0x1],'subType':_0x114f7e['length']>=0x5?_0x114f7e[0x2]:null,'id':_0x114f7e['length']<0x5?_0x114f7e[0x2]:_0x114f7e[0x3],'authorId':_0x114f7e['length']<0x5?_0x114f7e[0x3]:_0x114f7e[0x4],'markerCount':0x6==_0x114f7e['length']?_0x114f7e[0x5]:null};}['_breakSuggestionMarker'](_0x2b3bc1,_0x29d576,_0x291207){const _0x350a2b=_0x2b3bc1['getFirstRange'](),_0x12f8f6=_0x350a2b['start'],_0x34f309=_0x350a2b['end'];this['_setSuggestionRange'](_0x2b3bc1,this['_model']['createRange'](_0x12f8f6,_0x29d576));const _0x190378=_0x13e6cd(),_0x4e5ac3=_0x2b3bc1['creator']['id'],_0x4be6c5=_0x2b3bc1['type']+(_0x2b3bc1['subType']?':'+_0x2b3bc1['subType']:'');this['_setSuggestionData']({'id':_0x190378,'type':_0x4be6c5,'createdAt':new Date(),'authorId':_0x4e5ac3,'originalSuggestionId':_0x2b3bc1['_originalSuggestionId']||_0x2b3bc1['id'],'attributes':_0x2b3bc1['attributes'],'data':_0x2b3bc1['data']});const _0x420b9d=this['_getAttributeKey'](_0x2b3bc1);('formatBlock'==_0x2b3bc1['type']||_0x420b9d&&this['_isBlockAttribute'](_0x420b9d))&&(_0x291207=this['_model']['createPositionBefore'](_0x291207['parent'])),this['_addSuggestionMarker'](_0x4be6c5,_0x190378,_0x4e5ac3,this['_model']['createRange'](_0x291207,_0x34f309));}['_findSuggestions'](_0x523211,_0xea5b1d=null){const _0x53ad70=[],_0x362080=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x523211)||(_0x523211=[_0x523211]);for(const _0x2a7404 of this['getSuggestions']()){if(!_0x2a7404['isInContent'])continue;if(_0xea5b1d&&_0x2a7404['type']!=_0xea5b1d)continue;let _0x33e920=!0x1;for(const _0x52ecba of _0x2a7404['getRanges']()){for(const _0x4a939e of _0x523211){const _0x9c7fb2=_0x4a939e['start']['isEqual'](_0x52ecba['end'])||_0x4a939e['end']['isEqual'](_0x52ecba['start']);if(_0x9c7fb2||_0x4a939e['getIntersection'](_0x52ecba)){const _0x5476d7=_0x4a939e['containsRange'](_0x52ecba)&&Ht(this['_model']['schema'],_0x52ecba['start'],_0x4a939e),_0x8d5425=_0x52ecba['containsRange'](_0x4a939e)&&Ht(this['_model']['schema'],_0x4a939e['start'],_0x52ecba);_0x53ad70['push']({'suggestion':_0x2a7404,'meta':{'isOwn':_0x362080==_0x2a7404['author'],'isNextTo':_0x9c7fb2,'isInsideObject':_0x5476d7,'containsRangeInObject':_0x8d5425}}),_0x33e920=!0x0;break;}}if(_0x33e920)break;}}return _0x53ad70;}['_addSuggestionMarker'](_0x586458,_0x1a0711,_0x567de1,_0x48b15d,_0x13a406){this['_model']['change'](_0xa6124c=>{let _0x5e51b7='suggestion:'+_0x586458+':'+_0x1a0711+':'+_0x567de1;_0x13a406&&(_0x5e51b7=_0x5e51b7+':'+_0x13a406),_0xa6124c['addMarker'](_0x5e51b7,{'range':_0x48b15d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x35274d){const _0x59011c=_0x35274d['previous'],_0x49c035=_0x35274d['next'];_0x35274d['previous']=null,_0x35274d['next']=null,null!=_0x59011c&&_0x59011c['next']==_0x35274d&&(_0x59011c['next']=_0x49c035),null!=_0x49c035&&_0x49c035['previous']==_0x35274d&&(_0x49c035['previous']=_0x59011c),'ready'==this['_suggestionState']['get'](_0x35274d)&&(this['_suggestionState']['set'](_0x35274d,'removed'),this['fire']('suggestionUnloaded',_0x35274d,_0x59011c,_0x49c035));}['_setSuggestionData'](_0xb7f197){const _0x4fc570=_0xb7f197['id'],_0x4b6f32=this['addSuggestionData'](_0xb7f197);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x567714=this['editor']['plugins']['get']('PendingActions'),_0x29df6e=_0x4b6f32['hasComments'],_0x36d054=_0x4b6f32['subType']?_0x4b6f32['type']+':'+_0x4b6f32['subType']:_0x4b6f32['type'],_0x50a1da=this['editor']['locale'],_0x231491=_0x567714['add'](o(_0x50a1da,'PENDING_ACTION_SUGGESTION')),_0xb0828={'id':_0x4fc570,'type':_0x36d054,'hasComments':_0x29df6e,'data':_0xb7f197['data']||null,'originalSuggestionId':_0xb7f197['originalSuggestionId']||null,'attributes':_0x4b6f32['attributes']};this['_adapter']['addSuggestion'](_0xb0828)['then'](_0x5c1433=>{_0x4b6f32['_saved']=!0x0,_0x567714['remove'](_0x231491),_0x5c1433&&_0x5c1433['createdAt']&&(this['_suggestions']['get'](_0x4fc570)['createdAt']=_0x5c1433['createdAt']);})['catch'](_0xe16cc8=>{throw _0x588cb2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4b6f32['discard']();}),_0x4b6f32['stopListening'](),this['_suggestions']['delete'](_0x4b6f32['id']),this['_suggestionState']['delete'](_0x4b6f32),_0xe16cc8;});}return _0x4b6f32;}['_isBlockAttribute'](_0x3c62d9){return this['_blockAttributeKeys']['has'](_0x3c62d9);}['_isInlineAttribute'](_0x4baeca){return this['_inlineAttributeKeys']['has'](_0x4baeca);}['_updateSuggestionData'](_0x44bce3,_0x480f6a){const _0x1a9ccd=this['editor']['plugins']['get']('PendingActions'),_0x25d664=this['getSuggestion'](_0x44bce3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x25d664['_saved']){const _0x56dd92=_0x1a9ccd['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x44bce3,_0x480f6a)['then'](()=>{_0x1a9ccd['remove'](_0x56dd92);});}else _0x25d664['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x44bce3,_0x480f6a);});}}['_getSuggestionData'](_0x1eda64){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4964f4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1eda64);}['_handleNewSuggestionMarker'](_0x598fc1){const {id:_0x15a12e,type:_0x2d06cf,subType:_0x5aa596,authorId:_0x2a6ae8}=this['_splitMarkerName'](_0x598fc1),_0x1348cf=this['_suggestions']['get'](_0x15a12e)||this['_createSuggestion'](_0x2d06cf,_0x5aa596,_0x15a12e,_0x2a6ae8,{});switch(this['_checkSuggestionCorrectness'](_0x1348cf,_0x2d06cf,_0x5aa596,_0x2a6ae8),this['_suggestionState']['get'](_0x1348cf)){case'notReady':this['_getSuggestionData'](_0x15a12e)['then'](_0xbee257=>{let _0x377bd4=Promise['resolve']();_0xbee257['hasComments']&&(_0x377bd4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x15a12e})),_0x377bd4['then'](()=>{this['addSuggestionData'](_0xbee257)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1348cf,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x15a12e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1348cf,'ready'),this['fire']('suggestionLoaded',_0x1348cf);break;case'ready':this['fire']('suggestionChanged',_0x1348cf);}return _0x1348cf['addMarkerName'](_0x598fc1),_0x1348cf;}['_refreshSuggestionsChain'](_0x2a8879){const _0x4f6f1a=Array['from'](_0x2a8879),_0xb621c6=_0x4f6f1a['filter'](_0x24e853=>'attribute'==_0x24e853['type']);this['_refreshAttributeSuggestionsChain'](_0xb621c6);const _0x3813ca=_0x4f6f1a['filter'](_0x44b226=>!_0x44b226['isMultiRange']&&'attribute'!=_0x44b226['type']),_0x233919=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x361812=>!_0x361812['isMultiRange']&&'attribute'!=_0x361812['type']),_0x39773a=_0x233919['filter'](_0x3add28=>!_0x2a8879['has'](_0x3add28)),_0x18bce7=new Map(_0x233919['map'](_0x328a99=>[_0x328a99,this['_suggestionFactory']['getSuggestionCallback'](_0x328a99['type'],_0x328a99['subType'],'chain')])),_0x31ff11=new Map(_0x233919['map'](_0x1bd9d7=>[_0x1bd9d7,_0x1bd9d7['getFirstRange']()])),_0x56a017=new Set(),_0x2ed9fb=new Set();for(let _0x32e8ea=0x0;_0x32e8ea<_0x3813ca['length'];_0x32e8ea++)_0x227652(_0x3813ca[_0x32e8ea],_0x3813ca,_0x32e8ea+0x1);for(let _0x3a18f7=0x0;_0x3a18f7<_0x3813ca['length'];_0x3a18f7++)_0x227652(_0x3813ca[_0x3a18f7],_0x39773a,0x0);const _0xc30f2d=new Set();for(let _0x1df0a9=0x0;_0x1df0a9<_0x3813ca['length'];_0x1df0a9++){const _0x13a5f0=_0x3813ca[_0x1df0a9];!_0x2ed9fb['has'](_0x13a5f0)&&_0x13a5f0['previous']&&(_0xc30f2d['add'](_0x13a5f0['previous']),_0x13a5f0['previous']['next']===_0x13a5f0&&(_0x13a5f0['previous']['next']=null),_0x13a5f0['previous']=null),!_0x56a017['has'](_0x13a5f0)&&_0x13a5f0['next']&&(_0xc30f2d['add'](_0x13a5f0['next']),_0x13a5f0['next']['previous']===_0x13a5f0&&(_0x13a5f0['next']['previous']=null),_0x13a5f0['next']=null);}function _0x227652(_0x22bb2b,_0x53ebee,_0x3b35f8){for(let _0x7ce1a7=_0x3b35f8;_0x7ce1a7<_0x53ebee['length'];_0x7ce1a7++){const _0xf82d49=_0x77c037(_0x22bb2b,_0x53ebee[_0x7ce1a7]);_0xf82d49&&(_0xf82d49[0x0]['next']=_0xf82d49[0x1],_0xf82d49[0x1]['previous']=_0xf82d49[0x0],_0x56a017['add'](_0xf82d49[0x0]),_0x2ed9fb['add'](_0xf82d49[0x1]));}}function _0x77c037(_0x33a74e,_0x1628e5){if(_0x33a74e['author']['id']!==_0x1628e5['author']['id'])return null;const _0x5f0846=_0x18bce7['get'](_0x33a74e)(_0x33a74e,_0x1628e5,_0x31ff11['get'](_0x33a74e),_0x31ff11['get'](_0x1628e5));if(!_0x5f0846)return null;return _0x18bce7['get'](_0x1628e5)(_0x33a74e,_0x1628e5,_0x31ff11['get'](_0x33a74e),_0x31ff11['get'](_0x1628e5))?_0x5f0846[0x1]['commentThread']&&_0x5f0846[0x1]['commentThread']['length']?null:_0x5f0846:null;}_0xc30f2d['size']&&this['_refreshSuggestionsChain'](_0xc30f2d);}['_refreshAttributeSuggestionsChain'](_0x5f04d4){if(0x0==_0x5f04d4['length'])return;const _0x1d78af=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3dd729=>'attribute'==_0x3dd729['type']&&_0x3dd729['_isDataLoaded']),_0x33ec66=[],_0x101099=new Map();for(const _0x23a11e of _0x1d78af){const _0x56306b=_0x1133e6(_0x23a11e['attributes']);_0x101099['has'](_0x56306b)||(_0x101099['set'](_0x56306b,_0x33ec66['length']),_0x33ec66['push']([]));const _0x30e97f=_0x101099['get'](_0x56306b);_0x33ec66[_0x30e97f]['push'](_0x23a11e);}!(function(){_0x33ec66['sort']((_0x3def15,_0x503989)=>{const _0x3e2e3e=_0x3def15[0x0]['createdAt'],_0x533106=_0x503989[0x0]['createdAt'];return _0x3e2e3e==_0x533106?_0x3def15[0x0]['attributes']['groupId']<_0x503989[0x0]['attributes']['groupId']?-0x1:0x1:_0x3e2e3e<_0x533106?-0x1:0x1;});for(const _0x5ac8ae of _0x33ec66)_0x5ac8ae['sort']((_0x44cebf,_0x2a74e2)=>_0x44cebf['id']<_0x2a74e2['id']?-0x1:0x1);}());for(let _0x5d43eb=0x0;_0x5d43eb<_0x33ec66['length'];_0x5d43eb++){if(0x0==_0x33ec66[_0x5d43eb]['length'])continue;const _0x47b122=[];for(let _0x270fe2=_0x5d43eb+0x1;_0x270fe2<_0x33ec66['length'];_0x270fe2++)0x0!=_0x33ec66[_0x270fe2]['length']&&_0x2e75a0(_0x33ec66[_0x5d43eb],_0x33ec66[_0x270fe2])&&_0x47b122['push'](_0x270fe2);for(const _0xf306ed of _0x47b122)_0x33ec66[_0x5d43eb]=_0x33ec66[_0x5d43eb]['concat'](_0x33ec66[_0xf306ed]),_0x33ec66[_0xf306ed]=[];}for(const _0x5ca8aa of _0x33ec66)for(let _0x136e50=0x0;_0x136e50<_0x5ca8aa['length'];_0x136e50++){const _0x2fd6c4=_0x5ca8aa[_0x136e50+0x1]||null;_0x5ca8aa[_0x136e50]['next']!==_0x2fd6c4&&(_0x5ca8aa[_0x136e50]['next']=_0x2fd6c4);}for(const _0x52fa4d of _0x33ec66)for(let _0xd427e=0x0;_0xd427e<_0x52fa4d['length'];_0xd427e++){const _0x9c0863=_0x52fa4d[_0xd427e-0x1]||null;_0x52fa4d[_0xd427e]['previous']!==_0x9c0863&&(_0x52fa4d[_0xd427e]['previous']=_0x9c0863);}function _0x2e75a0(_0x5a6e38,_0x160790){if(_0x5a6e38[0x0]['attributes']['groupId']!==_0x160790[0x0]['attributes']['groupId']&&_0x5a6e38[0x0]['author']!==_0x160790[0x0]['author'])return!0x1;if(!function(_0x5a5031,_0x1f4947){if(!_0x5a5031['hasComments']&&!_0x1f4947['hasComments'])return!0x0;if(_0x5a5031['hasComments']&&_0x1f4947['hasComments'])return!0x1;if(_0x5a5031['hasComments']&&_0x1f4947['createdAt']<_0x5a5031['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1f4947['hasComments']&&_0x5a5031['createdAt']<_0x1f4947['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5a6e38[0x0],_0x160790[0x0]))return!0x1;const _0x405a48=Kt(_0x5a6e38[0x0]['attributes'],['groupId','trackingSessionId']),_0x2357d6=Kt(_0x160790[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1593b8(_0x405a48,_0x2357d6))return!0x1;if(_0x5a6e38[0x0]['attributes']['groupId']==_0x160790[0x0]['attributes']['groupId'])return!0x0;if(_0x5a6e38[0x0]['attributes']['trackingSessionId']!==_0x160790[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5a6e38['every'](_0x455101=>_0x160790['some'](_0x253bb4=>_0x455101['getFirstRange']()['isEqual'](_0x253bb4['getFirstRange']())))&&_0x160790['every'](_0x47ded1=>_0x5a6e38['some'](_0xc63ced=>_0x47ded1['getFirstRange']()['isEqual'](_0xc63ced['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4c56a9){const _0x1f8000=Array['from'](_0x4c56a9),_0x52cc9f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3b3cb9=_0x52cc9f['filter'](_0x48ee74=>!_0x4c56a9['has'](_0x48ee74)),_0x45488b=new Map(_0x1f8000['map'](_0x516402=>[_0x516402,this['_suggestionFactory']['getSuggestionCallback'](_0x516402['type'],_0x516402['subType'],'join')])),_0x30d98e=new Map(_0x52cc9f['map'](_0xa2152e=>[_0xa2152e,_0xa2152e['getRanges']()]));for(let _0x59cc32=0x0;_0x59cc32<_0x1f8000['length'];_0x59cc32++){if(_0x2c2083(this,_0x1f8000[_0x59cc32],_0x1f8000,_0x59cc32+0x1))return!0x0;}for(let _0x50919e=0x0;_0x50919e<_0x1f8000['length'];_0x50919e++){if(_0x2c2083(this,_0x1f8000[_0x50919e],_0x3b3cb9,0x0))return!0x0;}return!0x1;function _0x2c2083(_0x13b871,_0x5c0848,_0x1d9425,_0x27e370){for(let _0x2241be=_0x27e370;_0x2241be<_0x1d9425['length'];_0x2241be++){const _0x3d4538=_0x1d9425[_0x2241be];if(_0x3d4538['type']!==_0x5c0848['type']||_0x3d4538['author']['id']!==_0x5c0848['author']['id']||_0x3d4538['subType']!==_0x5c0848['subType'])continue;if(!se(_0x5c0848,_0x3d4538))continue;if('attribute'==_0x5c0848['type']&&_0x5c0848['data']['oldValue']!=_0x3d4538['data']['oldValue'])continue;if('attribute'==_0x5c0848['type']&&_0x13b871['_isBlockAttribute'](_0x5c0848['data']['key']))continue;if('formatBlock'==_0x5c0848['type']){const _0x5ac839=_0x13b871['editor']['model'],_0x2b1036=_0x5c0848['getContainedElement']();if(_0x2b1036&&(_0x5ac839['schema']['isObject'](_0x2b1036)||_0x5ac839['schema']['isLimit'](_0x2b1036)))continue;}const _0x5a90f9=_0x45488b['get'](_0x5c0848),_0x2a1622=_0x30d98e['get'](_0x5c0848),_0x40652a=_0x30d98e['get'](_0x3d4538),_0x2620ff=_0x5c0848['commentThread']&&_0x5c0848['commentThread']['length'],_0x500c33=_0x3d4538['commentThread']&&_0x3d4538['commentThread']['length'];if(!_0x2620ff&&_0x5a90f9(_0x40652a,_0x2a1622))return _0x13b871['_joinSuggestions'](_0x3d4538,_0x5c0848),_0x30d98e['delete'](_0x5c0848),!0x0;if(!_0x500c33&&_0x5a90f9(_0x2a1622,_0x40652a))return _0x13b871['_joinSuggestions'](_0x5c0848,_0x3d4538),_0x30d98e['delete'](_0x3d4538),!0x0;}return!0x1;}}['_joinSuggestions'](_0x8d235a,_0x470664){if(_0x8d235a['isMultiRange']){for(const _0xd8b40e of _0x470664['getRanges']())_0x8d235a['addRange'](_0xd8b40e);}else{const _0x43bf70=_0x470664['getFirstRange']()['end'];this['_setSuggestionRange'](_0x8d235a,this['_model']['createRange'](_0x8d235a['getFirstRange']()['start'],_0x43bf70));}_0x470664['removeMarkers']();}['_getMarkerAnnouncementText'](_0x505778,_0x348141,_0x1ecb05){const _0x5018dc=_0x505778['startsWith']('format')||_0x505778['startsWith']('attribute')?'FORMATTING':_0x505778['toUpperCase']();return o(this['editor']['locale'],_0x348141+'_'+_0x5018dc+'_SUGGESTION_ANNOUNCEMENT',_0x1ecb05);}['_initAriaMarkerChangeAnnouncements'](){const _0x48cfb0=this['editor'];if(!_0x48cfb0['ui'])return;const {ariaLiveAnnouncer:_0x58b6eb}=_0x48cfb0['ui'];_0x4566d8(this['_model'],({left:_0x1afa94,entered:_0x670fc2})=>{for(const _0x357d91 of _0x1afa94){const {group:_0x5efb0f,type:_0x217fe0}=this['_splitMarkerName'](_0x357d91['name']);if('suggestion'===_0x5efb0f){_0x58b6eb['announce'](this['_getMarkerAnnouncementText'](_0x217fe0,'LEAVE'));break;}}for(const _0x3e445e of _0x670fc2){const {group:_0x255a78,type:_0x5cfbba}=this['_splitMarkerName'](_0x3e445e['name']);if('suggestion'===_0x255a78){_0x58b6eb['announce'](this['_getMarkerAnnouncementText'](_0x5cfbba,'ENTER',_0x50aa86(_0x59ea8b)));break;}}});}['_processAttributeChanges'](_0x5de6d6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2655a0=this['editor'],_0x33f205=_0x2655a0['model']['document']['differ']['getChanges']();if(0x0==_0x33f205['length'])return!0x1;const _0x533c29=[],_0x42d8c2=_0x33f205['filter'](_0x5cd1fc=>'attribute'==_0x5cd1fc['type']),_0x21f954=_0x33f205['filter'](_0xfa3195=>'insert'==_0xfa3195['type']&&'$text'!=_0xfa3195['name']),_0x58220f=_0x33f205['filter'](_0x21b73d=>'remove'==_0x21b73d['type']&&'$text'!=_0x21b73d['name']);for(const _0x18157a of _0x42d8c2)_0x533c29['push']({'key':_0x18157a['attributeKey'],'newValue':_0x18157a['attributeNewValue'],'oldValue':_0x18157a['attributeOldValue'],'range':ee(_0x18157a['range'],_0x2655a0['model'])});for(const _0x1e6c95 of _0x21f954){const _0x454699=_0x58220f['find'](_0x54079a=>_0x54079a['position']['isEqual'](_0x1e6c95['position']));_0x454699&&_0x533c29['push']({'key':m,'newValue':_0x1e6c95['name'],'oldValue':_0x454699['name'],'range':_0x2655a0['model']['createRangeOn'](_0x1e6c95['position']['nodeAfter'])});}return 0x0!=_0x533c29['length']&&this['_reduceExistingSuggestions'](_0x5de6d6,_0x533c29);}['_processAttributeSuggestions'](_0xa3c82b){let _0x2d55ec=!0x1;const _0x5c254e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x419ac9=>_0x419ac9['data']['newRange']&&_0x419ac9['name']['startsWith']('suggestion:attribute:'));for(const _0x382a9d of _0x5c254e){const {subType:_0x2bbb39,id:_0x3b000b}=this['_splitMarkerName'](_0x382a9d['name']),_0x1740cf=_0x2bbb39['split']('|')[0x0];for(const _0x1e3ba9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1e3ba9['id']!=_0x3b000b&&'attribute'==_0x1e3ba9['type']&&_0x1e3ba9['data']&&_0x1e3ba9['data']['key']==_0x1740cf&&_0x1e3ba9['getFirstRange']()['isIntersecting'](_0x382a9d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1e3ba9,_0x382a9d['data']['newRange'],_0xa3c82b),_0x2d55ec=!0x0);}return _0x2d55ec;}['recordAttributeChanges'](_0x5a0d4a){this['_recordAttributeSuggestions']=!0x0,_0x5a0d4a();}['_isRegisteredAttribute'](_0x3d484e){const _0x1cbeda=this['_isBlockAttribute'](_0x3d484e),_0x15efd0=this['_isInlineAttribute'](_0x3d484e);return _0x1cbeda||_0x15efd0;}['_reduceExistingSuggestions'](_0x126067,_0x132386){if(0x0==_0x132386['length'])return!0x1;let _0x5dc0a9=!0x1;for(const _0x2bf472 of _0x132386){const _0x251283=this['_findSuggestions'](_0x2bf472['range'],'attribute')['filter'](_0x1ae9d3=>!_0x1ae9d3['meta']['isNextTo'])['map'](_0x2b98d8=>_0x2b98d8['suggestion']),_0x40ccf1=_0x1133e6({'newValue':_0x2bf472['newValue']});_0x251283['filter'](_0x3592c9=>{const [_0xfa03fc,_0x2f5d4f]=_0x3592c9['subType']['split']('|');return _0xfa03fc==_0x2bf472['key']&&_0x2f5d4f!=_0x40ccf1;})['forEach'](_0x343ad1=>{this['_reduceSuggestionAttributeRange'](_0x343ad1,_0x2bf472['range'],_0x126067),_0x5dc0a9=!0x0;});}return _0x5dc0a9;}['_reduceSuggestionAttributeRange'](_0x5c7e9b,_0x16824d,_0x46f418){const _0x5254eb=_0x5c7e9b['getFirstRange']()['getDifference'](_0x16824d);0x0!==_0x5254eb['length']?0x1!==_0x5254eb['length']?this['_breakSuggestionMarker'](_0x5c7e9b,_0x16824d['start'],_0x16824d['end']):this['_setSuggestionRange'](_0x5c7e9b,_0x5254eb[0x0]):_0x46f418['removeMarker'](_0x5c7e9b['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4b0d12){this['_editor']=_0x4b0d12,this['_model']=_0x4b0d12['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xe9f9d7,_0x1d0f55,_0x107249,_0x21fd74,_0x3e5835,_0x4633ff,_0x4415ef){return new R(this['_model'],{'type':_0xe9f9d7,'subType':_0x1d0f55,'id':_0x107249,'originalSuggestionId':_0x4415ef,'author':_0x21fd74,'creator':_0x21fd74,'attributes':_0x3e5835,'onAttributesChange':_0x4633ff,'onAccept':(..._0x47cbcc)=>this['getSuggestionCallback'](_0xe9f9d7,_0x1d0f55,'accept')(..._0x47cbcc),'onDiscard':(..._0x4d9dd7)=>this['getSuggestionCallback'](_0xe9f9d7,_0x1d0f55,'discard')(..._0x4d9dd7)});}['registerCustomCallback'](_0x551761,_0x4131db,_0x47bb0d,_0xe09625){const _0x2bb89a=_0x551761+':'+_0x4131db+':'+_0x47bb0d;this['_customCallbacks']['set'](_0x2bb89a,_0xe09625);}['getSuggestionCallback'](_0x312a22,_0x4e9af5,_0xca37af){const _0x492de9=_0x312a22+':'+_0x4e9af5+':'+_0xca37af;return this['_customCallbacks']['get'](_0x492de9)||this['_defaultCallbacks']['get'](_0x312a22+':'+_0xca37af);}['_registerDefaultCallbacks'](){const _0x21fe8e=()=>!0x1,_0x3ebf63=_0x23c604=>{_0x23c604['sort']((_0x21fa32,_0x2abf93)=>_0x21fa32['start']['isBefore'](_0x2abf93['start'])?0x1:-0x1),this['_model']['change'](_0x40a2d7=>{for(const _0x287f8f of _0x23c604){let _0x591610;_0x591610=_0x287f8f['end']['isAtEnd']&&_0x287f8f['end']['parent']==_0x287f8f['start']['nodeAfter']?_0x40a2d7['createSelection'](_0x287f8f['start']['nodeAfter'],'on'):_0x40a2d7['createSelection'](_0x287f8f),this['_model']['deleteContent'](_0x591610,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2b3c81=(_0xc19ce1,_0x4fb533)=>{_0x4fb533&&this['_model']['change'](_0x39b5dc=>{const {commandName:_0x7c86f7,commandParams:_0x5b3c99=[]}=_0x4fb533,_0x1b66f6=_0xc19ce1['map'](_0x5a2d57=>(Wt(_0x5a2d57)&&(_0x5a2d57=this['_model']['createRange'](_0x5a2d57['end'])),_0x5a2d57))['filter'](_0x2ea674=>'$graveyard'!==_0x2ea674['root']['rootName']);if(_0x1b66f6['length']<0x1)return;const _0x3aa505=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x129dfd=>_0x2d08fb['fromRange'](_0x129dfd));_0x39b5dc['setSelection'](_0x1b66f6);for(const _0x2c3f1a of this['_editor']['commands']['commands']())_0x2c3f1a['refresh']();_0x5b3c99['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x7c86f7,..._0x5b3c99);const _0x2b67e5=_0x3aa505['filter'](_0x39c7b8=>'$graveyard'!=_0x39c7b8['root']['rootName']);_0x2b67e5['length']>0x0&&_0x39b5dc['setSelection'](_0x2b67e5);for(const _0x1cae96 of _0x3aa505)_0x1cae96['detach']();});},_0x9f2620=(_0x193327,_0x37b5a4)=>0x1==_0x193327['length']&&0x1==_0x37b5a4['length']&&_0x193327[0x0]['end']['isEqual'](_0x37b5a4[0x0]['start']),_0x528c8b=(_0x159178,_0x5d3075,_0x58b4a6,_0x59c506)=>ne(_0x159178,_0x5d3075,_0x58b4a6,_0x59c506)?[_0x159178,_0x5d3075]:ne(_0x5d3075,_0x159178,_0x59c506,_0x58b4a6)?[_0x5d3075,_0x159178]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x21fe8e),this['_defaultCallbacks']['set']('insertion:discard',_0x3ebf63),this['_defaultCallbacks']['set']('insertion:join',_0x9f2620),this['_defaultCallbacks']['set']('insertion:chain',_0x528c8b),this['_defaultCallbacks']['set']('deletion:accept',_0x3ebf63),this['_defaultCallbacks']['set']('deletion:discard',_0x21fe8e),this['_defaultCallbacks']['set']('deletion:join',_0x9f2620),this['_defaultCallbacks']['set']('deletion:chain',_0x528c8b),this['_defaultCallbacks']['set']('formatInline:accept',_0x2b3c81),this['_defaultCallbacks']['set']('formatInline:discard',_0x21fe8e),this['_defaultCallbacks']['set']('formatInline:join',_0x9f2620),this['_defaultCallbacks']['set']('formatInline:chain',_0x21fe8e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2b3c81),this['_defaultCallbacks']['set']('formatBlock:discard',_0x21fe8e),this['_defaultCallbacks']['set']('formatBlock:join',_0x9f2620),this['_defaultCallbacks']['set']('formatBlock:chain',_0x21fe8e),this['_defaultCallbacks']['set']('attribute:accept',_0x21fe8e),this['_defaultCallbacks']['set']('attribute:discard',(_0x19738f,_0x2c3b3f)=>{if(!_0x2c3b3f)return;const _0x106d34=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x5f166e=>{if(_0x2c3b3f['key']==m)for(const _0x410c3d of _0x19738f){const _0x15bd20=_0x410c3d['start']['nodeAfter'],_0xf68007=_0x2c3b3f['oldValue'];_0x5f166e['rename'](_0x15bd20,_0xf68007);}else{if(_0x106d34['_isBlockAttribute'](_0x2c3b3f['key'])){for(const _0xa2e12a of _0x19738f)void 0x0!==_0x2c3b3f['oldValue']?_0x5f166e['setAttribute'](_0x2c3b3f['key'],_0x2c3b3f['oldValue'],_0xa2e12a['start']['nodeAfter']):_0x5f166e['removeAttribute'](_0x2c3b3f['key'],_0xa2e12a['start']['nodeAfter']);}else{for(const _0x50f6e7 of _0x19738f)_0x2c3b3f['oldValue']?_0x5f166e['setAttribute'](_0x2c3b3f['key'],_0x2c3b3f['oldValue'],_0x50f6e7):_0x5f166e['removeAttribute'](_0x2c3b3f['key'],_0x50f6e7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x9f2620);}}function Ht(_0x552758,_0x521279,_0x1bb1eb){for(const _0x5cd8f9 of _0x521279['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5cd8f9['root']==_0x5cd8f9)return!0x1;if(!_0x1bb1eb['containsItem'](_0x5cd8f9))return!0x1;if(_0x552758['isObject'](_0x5cd8f9)||_0x552758['isLimit'](_0x5cd8f9))return!0x0;}return!0x1;}function Wt(_0x594852){return _0x594852['end']['parent']==_0x594852['start']['nodeAfter']&&_0x594852['end']['isAtStart'];}function zt(_0x30b6f6,_0x5513ef,_0x1eb7a1,_0x31ff43){const _0x5b41d2=_0x187711=>!_0x187711['item']['is']('$textProxy')&&!_0x31ff43['isObject'](_0x187711['item']),_0x5d6118=_0x30b6f6['start']['getLastMatchingPosition'](_0x5b41d2),_0x2e0a0d=_0x30b6f6['end']['getLastMatchingPosition'](_0x5b41d2,{'direction':'backward'});return(!_0x30b6f6['start']['isEqual'](_0x5d6118)||!_0x30b6f6['end']['isEqual'](_0x2e0a0d))&&(_0x5d6118['isBefore'](_0x2e0a0d)?_0x1eb7a1['updateMarker'](_0x5513ef,{'range':_0x1eb7a1['createRange'](_0x5d6118,_0x2e0a0d)}):_0x1eb7a1['removeMarker'](_0x5513ef),!0x0);}function Qt(_0xa50ed8){return _0x1133e6(_0xa50ed8);}function Xt(_0x50eb96){const _0x3df20b=_0x50eb96['start']['nodeAfter'];return _0x3df20b&&_0x3df20b['is']('element');}function Yt(_0x121d25){return Wt(_0x121d25)||function(_0x1a524e){return _0x1a524e['start']['parent']==_0x1a524e['end']['nodeBefore']&&_0x1a524e['start']['isAtEnd'];}(_0x121d25);}function Zt(_0x4acbe6,_0x460968){try{const _0x3a6c5f=_0x4acbe6['getRange']();for(const _0x550ce1 of _0x460968)if(_0x4acbe6!==_0x550ce1&&_0x3a6c5f&&_0x3a6c5f['isIntersecting'](_0x550ce1['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function te(_0x41e5c6,_0x3be4c5){const _0x483b46=_0x41e5c6['end']['nodeBefore'];if(_0x483b46&&_0x483b46['is']('element')&&_0x3be4c5['schema']['isBlock'](_0x483b46)&&!_0x3be4c5['schema']['isObject'](_0x483b46)){const _0xd4d85=_0x3be4c5['createPositionAt'](_0x483b46,'end');return _0x3be4c5['createRange'](_0x41e5c6['start'],_0xd4d85);}return _0x41e5c6;}function ee(_0x3a2c95,_0x1ad296){return null==_0x3a2c95['end']['nodeBefore']&&_0x3a2c95['end']['parent']==_0x3a2c95['start']['nodeAfter']?ie(_0x3a2c95['start']['nodeAfter'],_0x1ad296):_0x3a2c95;}function ie(_0x26b5d0,_0x4a5442){const _0x1e1d1c=_0x4a5442['schema']['isObject'](_0x26b5d0)||_0x4a5442['schema']['isSelectable'](_0x26b5d0);return _0x4a5442['createRange'](_0x4a5442['createPositionAt'](_0x26b5d0,'before'),_0x1e1d1c?_0x4a5442['createPositionAfter'](_0x26b5d0):_0x4a5442['createPositionAt'](_0x26b5d0,'end'));}function ne(_0x4ce443,_0x3d5dda,_0x589dfc,_0x18a947){return!!se(_0x4ce443,_0x3d5dda)&&_0x589dfc['end']['isEqual'](_0x18a947['start']);}function se(_0x2bed48,_0x3ccc88){if(!_0x2bed48['_isDataLoaded']||!_0x3ccc88['_isDataLoaded'])return!0x1;const _0x182aed=new Set(Object['keys'](_0x2bed48['attributes'])),_0x45fe4e=new Set(Object['keys'](_0x3ccc88['attributes']));if(_0x182aed['delete']('groupId'),_0x45fe4e['delete']('groupId'),0x0==_0x182aed['size']&&0x0==_0x45fe4e['size'])return!0x0;if(_0x182aed['size']!=_0x45fe4e['size'])return!0x1;const _0x2f0948={..._0x2bed48['attributes']},_0x1ae500={..._0x3ccc88['attributes']};return delete _0x2f0948['groupId'],delete _0x1ae500['groupId'],JSON['stringify'](_0x2f0948)==JSON['stringify'](_0x1ae500);}function oe(_0x5205fb,_0x236fd7){const _0x9c9404=re(_0x5205fb['attributes']),_0x194f47=re(_0x236fd7);if(!_0x5205fb['_isDataLoaded'])return!0x1;for(const _0x3cd57c of Object['keys'](_0x194f47))if(!_0x1593b8(_0x9c9404[_0x3cd57c],_0x194f47[_0x3cd57c]))return!0x1;return!0x0;}function re(_0x4b7fb0){const _0x4c59be=Object['assign']({},_0x4b7fb0);return delete _0x4c59be['skipNestingCheck'],delete _0x4c59be['tablePasteChainId'],_0x4c59be;}function ae(_0x386128){return _0x386128['split']('|')[0x0];}function ce(_0xb985d6,_0xec4db2){for(const [_0x304a55,_0x465691]of _0xb985d6['markers']){const _0x505087=_0x8685de['_createFromRanges'](_0x465691['getTransformedByOperation'](_0xec4db2));_0xb985d6['markers']['set'](_0x304a55,_0x505087);}}class xe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x34315a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4992a5,_0x19565f,_0x1da292,_0x49f627){super(),this['model']=_0x19565f,this['view']=_0x1da292,this['commentThreadController']=_0x49f627,this['_editor']=_0x4992a5,this['_acceptCommand']=_0x4992a5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4992a5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2836a4,_0x156775)=>_0x2836a4||_0x156775),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x47863=>_0x47863&&this['_editor']['model']['canEditAt'](_0x19565f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3e6627=>_0x3e6627&&this['_editor']['model']['canEditAt'](_0x19565f['getRanges']())),this['_pendingAction']=null,_0x1da292['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1da292,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1da292,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1da292,'change:isDirty',()=>{_0x1da292['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 _0xf1b4c7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xf1b4c7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x5ab6e0{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x433686,_0x41a82a,_0x69da19,_0x117737){super(_0x433686),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xf50ffe(_0x433686,o(_0x433686,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x41a82a['authoredAt']),this['bind']('authoredAt')['to'](_0x41a82a),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',_0x41a82a,'authoredAt',this,'descriptionParts',(_0xeffc75,_0x454670,_0x241469)=>{const _0x592687=_0x241469['map'](_0x2ae39f=>ls(_0x2ae39f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xeffc75-0x1,_0x41a82a['author']['name'],_0x454670?_0x117737['formatDateTime'](_0x454670):'',new DOMParser()['parseFromString'](_0x592687,'text/html')['body']['textContent']]);}),this['focusables']=new _0x58401a(),this['focusTracker']=new _0x128746(),this['keystrokes']=new _0x395a1f(),this['focusCycler']=new _0x4ed098({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xe3d406=>_0xe3d406['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x41a82a,this['_localUser']=_0x69da19,this['_config']=_0x117737,_0x117737['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x43d8a9(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x170278}=this['_config'];this['commentsListView']=new _0x170278(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',_0x3003fd=>_0x3003fd+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4ec9d6,_0x21dadc)=>_0x4ec9d6||!!_0x21dadc);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xde0ea6}=this['_config'],_0x5ae1b6=new _0xde0ea6(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x35f8ec=_0x5ae1b6['commentInputView'];return _0x5ae1b6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x35f8ec,'value',(_0x763034,_0xd9428d,_0xba11ba)=>!!_0xba11ba||_0x763034&&!_0xd9428d),_0x35f8ec['on']('submit',(_0x53560b,_0x450de6)=>{this['fire']('addComment',_0x450de6),_0x35f8ec['editor']['setData']('');}),_0x35f8ec['on']('cancel',()=>this['focus']()),_0x35f8ec['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5ae1b6;}}class Ae extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x55dc3e,_0x24ab81,_0x13877f,_0xdf6251){super(_0x55dc3e,_0x24ab81,_0x13877f,_0xdf6251),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3ca035=>_0x3ca035&&_0x3ca035[0x0]?_0x3ca035[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x84161,_0x7c60ff)=>{let _0x3175e5='';for(const _0x132fdd of _0x84161)_0x3175e5+='<p>'+ls(_0x132fdd['content'],_0x132fdd['color'])+'</p>';return _0x7c60ff?_0x3175e5:_0x47e25d(_0x3175e5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xdf6251['SuggestionView'](_0x55dc3e,_0x24ab81,{'formatDateTime':_0xdf6251['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 _0xfd399b=this['bindTemplate'],_0x13c22f=[this['suggestionView']];return this['commentsListView']&&_0x13c22f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x13c22f['push'](this['commentThreadInputView']),_0x13c22f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xfd399b['if']('isActive','ck-suggestion-wrapper--active'),_0xfd399b['to']('type',_0x2d5a74=>'ck-suggestion-'+_0x2d5a74),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':_0xfd399b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x13c22f};}['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 Ee extends _0x5ab6e0{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5c9e0f,_0x31d49b,_0x80a79a){super(_0x5c9e0f),this['_model']=_0x31d49b,this['_config']=_0x80a79a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x31d49b),this['acceptButton']=this['_createButton'](o(_0x5c9e0f,'Accept\x20suggestion'),_0x30cac2,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5c9e0f,'Discard\x20suggestion'),_0x54f76b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x160425(_0x5c9e0f,_0x31d49b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x58401a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x128746(),this['keystrokes']=new _0x395a1f(),this['focusCycler']=new _0x4ed098({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x23798d=>_0x23798d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x33edaa=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x33edaa['innerHTML']=this['description'],this['on']('change:description',(_0x44d74d,_0x195ce8,_0x5eb02e)=>{_0x33edaa['innerHTML']=_0x5eb02e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4a3909=this['bindTemplate'],_0x3f9c1c=[{'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':_0x4a3909['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4a3909['to']('authoredAt',_0x450900=>this['_config']['formatDateTime'](_0x450900))}]}]},{'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']&&_0x3f9c1c['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':_0x3f9c1c}]};}['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'](_0x33a7c8,_0x10c40e,_0x27ed3e,_0xc212f7,_0x3e7853){const _0x1cff5d=new _0x29ae1c(this['locale']);return _0x1cff5d['set']({'label':_0x33a7c8,'icon':_0x10c40e,'tooltip':!0x0,'tooltipPosition':_0x3e7853}),_0x1cff5d['extendTemplate']({'attributes':{'class':_0x27ed3e}}),_0x1cff5d['on']('execute',()=>{this['fire'](_0xc212f7,this['_model']['id']);}),_0x1cff5d;}['_setupKeyboardNavigation'](){const _0x4c7060=this['element'];this['keystrokes']['listenTo'](_0x4c7060);for(const _0x5a095f of this['focusables'])this['focusTracker']['add'](_0x5a095f['element']),this['keystrokes']['listenTo'](_0x5a095f['element']);this['keystrokes']['set']('enter',(_0x44ebc9,_0x355b89)=>{_0x4c7060===_0x44ebc9['target']&&(this['focusCycler']['focusFirst'](),_0x355b89());}),this['keystrokes']['set']('esc',(_0x245c0f,_0x55815e)=>{_0x4c7060!==_0x245c0f['target']&&(this['focus'](),_0x55815e());});}}class u extends _0x3ff253{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x47590f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37ea4f){super(_0x37ea4f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3a27e5=this['editor']['config'];_0x3a27e5['define']('trackChanges.SuggestionThreadView',Ae),_0x3a27e5['define']('trackChanges.SuggestionView',Ee),_0x3a27e5['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3a27e5['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3cb994,_0x54b184){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x9b0cb5,_0x2d61b1]of this['_handleControllerBuffer']){const _0x5524c7=this['_suggestionToController']['has'](_0x9b0cb5);_0x5524c7||_0x2d61b1?_0x5524c7&&_0x2d61b1&&this['_destroyController'](_0x9b0cb5):this['_initializeController'](_0x9b0cb5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3cb994,_0x54b184);}['init'](){const _0x489e78=this['editor'],_0x41905c=_0x489e78['plugins']['get']('TrackChangesEditing'),_0x4473c0=_0x489e78['plugins']['get']('Annotations'),_0x439c85=_0x489e78['plugins']['get']('EditorAnnotations'),_0x234de0=_0x489e78['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x439c85['addSourceCollector'](()=>{const _0x178dfb=[];for(const [_0x3a8722,_0x90a863]of Array['from'](this['_suggestionToController'])){const _0x59b9ea=_0x3a8722['getAllAdjacentSuggestions'](),_0x473b8e=[];for(const _0x5ac780 of _0x59b9ea){if(!_0x5ac780['isInContent'])continue;if(_0x5ac780['isMultiRange']){_0x473b8e['push'](..._0x5ac780['getRanges']());continue;}const _0xce1ef8=_0x5ac780['getFirstRange']();if(_0x473b8e['length']>0x0){const _0x2aec63=_0x473b8e[0x0]['getJoined'](_0xce1ef8);if(_0x2aec63){_0x473b8e[0x0]=_0x2aec63;continue;}}_0x473b8e['push'](_0xce1ef8);}_0x178dfb['push']([_0x90a863['view'],_0x473b8e]);}return _0x178dfb;}),this['listenTo'](_0x41905c,'suggestionLoaded',(_0x236e5d,_0x16a578)=>{this['listenTo'](_0x16a578,'change:previous',(_0x361053,_0x14d424,_0xc227d1,_0x5dbe0a)=>{_0x16a578['isInContent']&&(null==_0xc227d1?(this['_updateController'](_0x5dbe0a['head']),this['_handleSuggestionControllerDelayed'](_0x16a578,!0x1)):(this['_updateController'](_0xc227d1['head']),null==_0x5dbe0a&&this['_handleSuggestionControllerDelayed'](_0x16a578,!0x0)));}),null!==_0x16a578['previous']?this['_updateController'](_0x16a578['head']):this['_handleSuggestionControllerDelayed'](_0x16a578,!0x1);}),this['listenTo'](_0x41905c,'suggestionUnloaded',(_0x3f0ae7,_0xbc7ffa,_0x55b42f)=>{this['stopListening'](_0xbc7ffa,'change:previous'),this['_handleControllerBuffer']['delete'](_0xbc7ffa),this['_suggestionToController']['has'](_0xbc7ffa)&&this['_destroyController'](_0xbc7ffa),_0x55b42f&&this['_updateController'](_0x55b42f['head']);}),this['listenTo'](_0x41905c,'suggestionChanged',(_0x3fa203,_0x538236)=>{this['_updateController'](_0x538236);}),this['listenTo'](_0x4473c0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x234de0,'addComment',(_0x5eeb98,{threadId:_0x264db3,isFromAdapter:_0x16f779})=>{if(_0x16f779||!_0x41905c['hasSuggestion'](_0x264db3))return;const _0x17339f=_0x41905c['getSuggestion'](_0x264db3);this['_suggestionToController']['get'](_0x17339f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x487c43=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5169be;for(const _0x3d6df7 in _0x487c43){const _0x10d352=_0x3d6df7,_0x17235b=_0x487c43[_0x10d352];if('trackChangesLicenseKeyValid'==_0x17235b||'trackChangesLicenseKeyInvalid'==_0x17235b||'trackChangesLicenseKeyExpired'==_0x17235b||'trackChangesLicenseKeyDomainLimit'==_0x17235b||'trackChangesLicenseKeyNotAllowed'==_0x17235b||'trackChangesLicenseKeyEvaluationLimit'==_0x17235b||'trackChangesLicenseKeyTrialLimit'==_0x17235b||'trackChangesLicenseKeyUsageLimit'==_0x17235b){delete _0x487c43[_0x10d352],_0x5169be=_0x17235b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5169be&&_0x487c43['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5169be&&_0x487c43['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5169be&&_0x487c43['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5169be&&_0x487c43['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5169be&&_0x487c43['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5169be&&_0x487c43['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5169be&&_0x487c43['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x52a280){const _0x1e67a1=this['_suggestionToController']['get'](_0x52a280);if(!_0x1e67a1)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x1e67a1['view'])||null;}['getSuggestionForAnnotation'](_0x39c4b2){const _0x4695c6=this['_viewToController']['get'](_0x39c4b2['innerView']);return _0x4695c6?_0x4695c6['model']:null;}['_refreshActiveMarkers'](){const _0x4020e2=this['editor']['plugins']['get']('Annotations'),_0x48e079=this['editor']['plugins']['get']('TrackChangesEditing'),_0x133f81=Array['from'](_0x4020e2['activeAnnotations'],_0x1a53d5=>_0x1a53d5['innerView'])['filter'](_0x2b2d6a=>this['_viewToController']['has'](_0x2b2d6a)),_0x34ab6b=[];for(const _0x319515 of _0x133f81){const _0x5d9adb=this['_viewToController']['get'](_0x319515)['model']['getAllAdjacentSuggestions']();_0x34ab6b['push'](..._0x5d9adb['reduce']((_0x219405,_0x2db47e)=>[..._0x219405,..._0x2db47e['getMarkerNames']()],[]));}_0x48e079['activeMarkers']=_0x34ab6b;}['_addUIComponentsToFactory'](){const _0x5882ac=this['editor'],_0x3854f1=_0x5882ac['locale'],_0x2c4f0f=o(_0x3854f1,'Track\x20changes'),_0x2e4033=new _0x1d6967([{'type':'switchbutton','model':new _0x4aa3c6({'withText':!0x0,'isToggleable':!0x0,'label':_0x2c4f0f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4aa3c6({'withText':!0x0,'label':o(_0x3854f1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4aa3c6({'withText':!0x0,'label':o(_0x3854f1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4aa3c6({'withText':!0x0,'label':o(_0x3854f1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4aa3c6({'withText':!0x0,'label':o(_0x3854f1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5882ac['plugins']['has']('TrackChangesPreview')&&_0x2e4033['addMany']([{'type':'separator'},{'type':'button','model':new _0x4aa3c6({'withText':!0x0,'label':o(_0x3854f1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4942e0 of _0x2e4033)if(Ke(_0x4942e0)){const _0x3cf0a1=_0x5882ac['commands']['get'](_0x4942e0['model']['commandName']);_0x4942e0['model']['bind']('isOn','isEnabled')['to'](_0x3cf0a1,'value','isEnabled');}_0x5882ac['ui']['componentFactory']['add']('trackChanges',_0x584b36=>this['_createToolbarButton'](_0x584b36,_0x2e4033,_0x2c4f0f)),_0x5882ac['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4b2e99=>this['_createMenuBarMenu'](_0x4b2e99,_0x2e4033,_0x2c4f0f));}['_createToolbarButton'](_0x381c37,_0x11a826,_0x30e3c0){const _0xc8613=_0x49756b(_0x381c37,_0x4bf0f9),_0x4d3cac=this['editor']['commands']['get']('trackChanges');_0xc8613['buttonView']['set']({'tooltip':_0x30e3c0,'label':_0x30e3c0,'icon':_0xac9376}),_0xc8613['buttonView']['bind']('isOn')['to'](_0x4d3cac,'value'),_0xc8613['buttonView']['on']('execute',()=>{_0x4d3cac['execute'](),this['editor']['editing']['view']['focus']();}),_0x272a4e(_0xc8613,_0x11a826,{'role':'menu'});const _0xa44ff5=[];for(const _0x181f62 of _0x11a826)Ke(_0x181f62)&&_0xa44ff5['push'](this['editor']['commands']['get'](_0x181f62['model']['commandName']));const _0x2912e6=_0xc8613['buttonView'];return _0x2912e6['actionView']['unbind']('isEnabled'),_0x2912e6['arrowView']['unbind']('isEnabled'),_0x2912e6['actionView']['bind']('isEnabled')['to'](_0x4d3cac,'isEnabled'),_0x2912e6['arrowView']['bind']('isEnabled')['toMany'](_0xa44ff5,'isEnabled',(..._0x4e08da)=>_0x4e08da['some'](_0x590b27=>_0x590b27)),_0xc8613['on']('execute',_0x498f37=>{this['editor']['execute'](_0x498f37['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xc8613;}['_createMenuBarMenu'](_0x5caf9c,_0x15b1ba,_0x2403f5){const _0x20b6de=new _0xaa592d(_0x5caf9c),_0x4a669d=this['editor']['commands']['get']('trackChanges');_0x20b6de['buttonView']['set']({'label':_0x2403f5,'icon':_0xac9376});const _0x2f73b9=new _0x10040f(_0x5caf9c);for(const _0x4a8249 of _0x15b1ba){if('separator'==_0x4a8249['type']){_0x2f73b9['items']['add'](new _0x56208f(_0x5caf9c));continue;}const _0xada91d=new _0x34b94f(_0x5caf9c,_0x20b6de),_0x517053=new _0x29304c(_0x5caf9c),_0x581751=_0x4a8249['model'];_0x517053['bind'](...Object['keys'](_0x581751))['to'](_0x581751),_0x517053['delegate']('execute')['to'](_0x20b6de),_0x517053['on']('execute',()=>{this['editor']['execute'](_0x581751['commandName']),this['editor']['editing']['view']['focus']();}),_0xada91d['children']['add'](_0x517053),_0x2f73b9['items']['add'](_0xada91d);}return _0x20b6de['bind']('isEnabled')['to'](_0x4a669d,'isEnabled'),_0x20b6de['panelView']['children']['add'](_0x2f73b9),_0x20b6de;}['_initializeController'](_0x2c0650){const _0x42fd19=this['editor'],_0x141bbc=_0x42fd19['config'],_0x7481da=_0x42fd19['plugins']['get']('Annotations'),_0x3d2c79=_0x42fd19['plugins']['get']('CommentsRepository'),_0x531da2=_0x42fd19['plugins']['get']('EditorAnnotations'),_0x3be637=_0x42fd19['plugins']['get'](_0x47590f)['me'],_0x15ccf8=_0x141bbc['get']('trackChanges')['SuggestionThreadView'],_0x39946d=_0x141bbc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x532a95,CommentThreadInputView:_0x5dc6c6}=_0x42fd19['plugins']['get']('CommentsUI');let _0x53f5ad,_0x1c3f83,_0x41e1ae;this['_annotationViews']['has'](_0x2c0650['id'])?(_0x1c3f83=this['_annotationViews']['get'](_0x2c0650['id']),_0x53f5ad=_0x1c3f83['mainView']):(_0x53f5ad=new _0x15ccf8(_0x42fd19['locale'],_0x2c0650,_0x3be637,{'disableComments':this['_disableComments'],'editorConfig':{..._0x141bbc['get']('comments.editorConfig'),'licenseKey':_0x141bbc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x141bbc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x141bbc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x141bbc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1f0255(_0x141bbc['get']('locale'),_0x42fd19['locale']),'CommentView':_0x141bbc['get']('comments')['CommentView'],'CommentsListView':_0x532a95,'CommentThreadInputView':_0x5dc6c6,'SuggestionView':_0x39946d}),_0x53f5ad['suggestionView']['acceptButton']['on']('execute',()=>{_0x42fd19['editing']['view']['focus']();}),_0x53f5ad['suggestionView']['discardButton']['on']('execute',()=>{_0x42fd19['editing']['view']['focus']();}),_0x1c3f83=_0x7481da['createAnnotationView'](this['editor']['locale'],_0x53f5ad),_0x1c3f83['bind']('isDirty')['to'](_0x53f5ad,'isDirty'),_0x1c3f83['bind']('length')['to'](_0x53f5ad),_0x1c3f83['bind']('type')['to'](_0x53f5ad,'type',_0x2b0844=>'suggestion-'+_0x2b0844),_0x53f5ad['on']('escape',()=>{_0x41e1ae['fire']('escape');}),this['_annotationViews']['set'](_0x2c0650['id'],_0x1c3f83));const _0x52d2a5=_0x3d2c79['createCommentThreadController'](_0x2c0650['commentThread'],_0x53f5ad),_0x2af297=new xe(_0x42fd19,_0x2c0650,_0x53f5ad,_0x52d2a5),_0x3957be=_0x2c0650['getAllAdjacentSuggestions']()['filter'](_0x52fbdc=>_0x52fbdc['isInContent']);_0x53f5ad['descriptionParts']=_0x42fd19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3957be),this['_suggestionToController']['set'](_0x2c0650,_0x2af297),this['_viewToController']['set'](_0x53f5ad,_0x2af297);const _0x38b300=()=>{const _0x11dd0a=[],_0x45a6d3=_0x2c0650['getAllAdjacentSuggestions']()['filter'](_0x43fd0a=>_0x43fd0a['isInContent']);for(const _0x46cafb of _0x45a6d3)_0x11dd0a['push'](..._0x46cafb['getMarkers']());return _0x2e076c(_0x42fd19['editing'],_0x11dd0a);};_0x41e1ae=_0x7481da['createAnnotation']({'view':_0x1c3f83,'target':_0x38b300,'type':()=>'suggestion-'+_0x2af297['view']['type'],'isVisible':!!_0x38b300()}),_0x3d2c79['_bindAnnotationToEditors'](_0x53f5ad,_0x41e1ae),_0x7481da['add'](_0x41e1ae),_0x531da2['registerAnnotation'](_0x41e1ae);}['_destroyController'](_0x3f8aac){const _0x1253ee=this['editor']['plugins']['get']('CommentsRepository'),_0x4f9702=this['editor']['plugins']['get']('Annotations'),_0x36f295=this['_suggestionToController']['get'](_0x3f8aac),_0xc2e272=_0x36f295['view'],_0x47ffae=_0x4f9702['getByInnerView'](_0xc2e272);_0x1253ee['_unbindEditors'](_0xc2e272),_0x47ffae&&_0x4f9702['remove'](_0x47ffae),this['_suggestionToController']['delete'](_0x3f8aac),this['_viewToController']['delete'](_0xc2e272),_0x36f295['destroy']();}['_updateController'](_0x152791){if(!_0x152791['isInContent']||!this['_suggestionToController']['has'](_0x152791))return;const _0x3470e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5598a1=this['_suggestionToController']['get'](_0x152791),_0x22164=_0x152791['getAllAdjacentSuggestions']();_0x5598a1['view']['descriptionParts']=_0x3470e7['descriptionFactory']['getDescriptions'](_0x22164);}['destroy'](){for(const _0x5a7564 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5a7564);for(const _0xc7aca1 of this['_annotationViews']['values']())_0xc7aca1['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ke(_0x50087b){return'model'in _0x50087b;}class Xe extends _0x3ff253{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4945d8){this['editor']['plugins']['get'](d)['adapter']=_0x4945d8;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x40cc38){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x40cc38);}['getSuggestions']({skipNotAttached:_0x52d6c3=!0x1,toJSON:_0x35244a=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x52d6c3,'toJSON':_0x35244a});}['getSuggestion'](_0x17824c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x17824c);}}const p=['Pagination'];class ue extends _0x3ff253{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xf6df57=this['editor'];if(_0xf6df57['config']['define']('trackChangesData.editorCreator',_0x11ec4a=>{const _0x590983=_0xf6df57['model']['document']['getRootNames']()['reduce']((_0x395ddf,_0x441419)=>(_0x395ddf[_0x441419]='',_0x395ddf),{});return _0xf6df57['constructor']['create'](_0x590983,_0x11ec4a);}),'function'!=typeof _0xf6df57['config']['get']('trackChangesData')['editorCreator'])throw new _0x4964f4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x11743b){return P(this['editor'],!0x0,_0x11743b);}['getDataWithDiscardedSuggestions'](_0xc65830){return P(this['editor'],!0x1,_0xc65830);}}class Ye extends _0x3ff253{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x516715){function _0x1928e9(_0x4678d1){return _0x4678d1['map'](_0x19549c=>String['fromCharCode'](_0x19549c))['join']('');}super(_0x516715),this['result']='end',_0x516715[_0x1928e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1928e9([0x76,0x69,0x65,0x77])][_0x1928e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1928e9([0x61,0x75,0x74,0x6f]),_0x516715[_0x1928e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1928e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1928e9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1928e9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1928e9([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 Qe(_0x143ffe){return void 0x0!==_0x143ffe['getRootsAttributes'];}async function P(_0x21ca55,_0x40ad2c,_0x29f377){const _0x41483b=_0x26a146(_0x21ca55,p);_0x41483b['plugins']['push'](d,Ye),_0x41483b['rootsAttributes']=Qe(_0x21ca55)?_0x21ca55['getRootsAttributes']():void 0x0;const _0x2d0e6c=document['createDocumentFragment'](),_0x357c2c=_0x21ca55['config']['get']('trackChangesData')['editorCreator'],_0x4e375b=await _0x357c2c(_0x41483b,()=>function(_0x51e668){const _0x213828=document['createElement']('div');return _0x51e668['appendChild'](_0x213828),_0x213828;}(_0x2d0e6c));!function(_0x246809,_0x4e7d59){const _0x1b8e7e=_0x246809['model']['document']['getRootNames']()['reduce']((_0x23b282,_0x270b90)=>(_0x23b282[_0x270b90]=_0x246809['data']['get']({'rootName':_0x270b90}),_0x23b282),{}),_0x201f22=_0x246809['plugins']['get']('Users')['users']['map'](_0x5336dd=>({'id':_0x5336dd['id'],'name':_0x5336dd['name']})),_0x2aea51=_0x246809['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x17e48a=_0x246809['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2bf23c=_0x4e7d59['plugins']['get']('Users'),_0x18f254=_0x4e7d59['plugins']['get']('TrackChangesEditing'),_0x4daa0a=_0x4e7d59['plugins']['get']('CommentsRepository');for(const _0x42e238 of _0x4daa0a['getCommentThreads']())_0x42e238['remove']();for(const _0x243226 of _0x201f22)_0x2bf23c['getUser'](_0x243226['id'])||_0x2bf23c['addUser'](_0x243226);_0x2bf23c['me']||_0x2bf23c['useAnonymousUser']();for(const _0x1bf868 of _0x17e48a)_0x4daa0a['addCommentThread'](_0x1bf868);for(const _0x1ba7de of _0x2aea51)_0x18f254['addSuggestionData'](_0x1ba7de);_0x4e7d59['data']['set'](_0x1b8e7e);}(_0x21ca55,_0x4e375b),_0x4e375b['execute'](_0x40ad2c?'acceptAllSuggestions':'discardAllSuggestions');const _0x19203b=Qe(_0x4e375b)?_0x4e375b['getFullData'](_0x29f377):_0x4e375b['data']['get'](_0x29f377);return await _0x4e375b['destroy'](),_0x19203b;}class _e extends _0x5ab6e0{['options'];constructor(_0x4e0fa9,_0x322569){super(_0x4e0fa9),this['options']=_0x322569,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'](_0x544e76,_0x3f6d53){if(!this['element'])return;const _0x285f32=[];for(const [_0x3a61e9,_0x5a64ed]of _0x544e76){const _0x1d4af4=document['createElement']('div');_0x1d4af4['setAttribute']('data-ck-root-name',_0x3a61e9),_0x1d4af4['className']=_0x5a64ed['classes']+'\x20ck-track-changes-preview__root-container',_0x1d4af4['innerHTML']=_0x5a64ed['content'],_0x285f32['push'](_0x1d4af4);}_0x3f6d53(this['element'],_0x285f32),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ge extends _0x197fe8{constructor(_0x166e1e){super(_0x166e1e),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5e8352=this['editor'],_0x233f6c=_0x5e8352['locale'],_0x3f553f=_0x5e8352['plugins']['get']('Dialog');let _0x1b04de;const _0x313401=function(_0x9ab87f){const _0x55d282={};if('editables'in _0x9ab87f['ui']['view']){for(const [_0x19e2f5,_0x4db342]of Object['entries'](_0x9ab87f['ui']['view']['editables']))_0x55d282[_0x19e2f5]=_0x4db342['element'];}else _0x55d282[_0x9ab87f['model']['document']['getRootNames']()[0x0]]=_0x9ab87f['ui']['view']['editable']['element'];return _0x55d282;}(_0x5e8352),_0x4d77d9=function(_0x18a248){let _0x30fe3e=0x0;for(const _0x2e491e of Object['values'](_0x18a248))_0x30fe3e=Math['max'](_0x30fe3e,_0x2e491e['getBoundingClientRect']()['width']);let _0xbb047=0x0;for(const _0x56c27f of Object['values'](_0x18a248))_0xbb047+=_0x56c27f['getBoundingClientRect']()['height'];const _0x599790=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xf062cc=Math['min'](_0xbb047,_0x599790);return{'width':_0x30fe3e,'height':_0xf062cc};}(_0x313401);_0x3f553f['show']({'id':'finalContentPreview','title':o(_0x233f6c,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x233f6c,{'dialogRects':_0x4d77d9}),'onHide':()=>{_0x1b04de['detachFromDom']();},'onShow':()=>{_0x5e8352['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x941b92=>{const _0x4b8a28=this['_standarizeRootsData'](_0x941b92,_0x5e8352,_0x313401);_0x3f553f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4b8a28,_0x5e8352['config']['get']('trackChanges.preview.renderFunction'));}),_0x1b04de=new _0x54faef(_0x233f6c,[_0x3f553f['view']]),_0x1b04de['attachToDom'](),_0x1b04de['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5e8352['once']('destroy',()=>{_0x1b04de['detachFromDom']();});const _0x1be121=_0x3f553f['view']['headerView']['class'];_0x3f553f['view']['headerView']['class']=_0x1be121?_0x1be121+'\x20ck-reset_all':'ck-reset_all',_0x3f553f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3f553f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x10e927=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x45cd94=_0x10e927['previewMode'],_0x399cfb={};if('$labels'===_0x45cd94){for(const _0x20a133 of _0x10e927['getMergeFieldsIds']())_0x399cfb[_0x20a133]=_0x10e927['getLabel'](_0x20a133)||_0x20a133;}else{const _0x964271='$defaultValues'===_0x45cd94?_0x10e927['getDefaultValues']():_0x10e927['getDataSetValues'](_0x45cd94,!0x0);for(const _0x4a3494 of Object['entries'](_0x964271)){const [_0x2ed53e,_0x2d1db7]=_0x4a3494;_0x399cfb[_0x2ed53e]=null!==_0x2d1db7?_0x2d1db7:_0x10e927['getLabel'](_0x2ed53e)||_0x2ed53e;}}return{'mergeFieldsData':_0x399cfb};}['_standarizeRootsData'](_0x364fc7,_0x217c13,_0x43439c){let _0x48c2df;if('string'==typeof _0x364fc7){const _0x17fa7c=_0x217c13['model']['document']['getRootNames']()[0x0];_0x48c2df={[_0x17fa7c]:_0x364fc7};}else _0x48c2df=_0x364fc7;const _0x4b07a2=this['_fixMediaEmbeds'](_0x48c2df,_0x217c13),_0x47e2b1=function(_0x548067,_0x8eab8d){for(const [_0x32f60a,_0xc53fc5]of _0x548067)_0xc53fc5['classes']=_0x8eab8d[_0x32f60a]['classList']['value']['replace']('ck-focused','');return _0x548067;}(this['_sortRoots'](_0x217c13)['reduce']((_0x315f4d,_0x58234e)=>(_0x315f4d['push']([_0x58234e,{'content':_0x4b07a2[_0x58234e],'classes':''}]),_0x315f4d),[]),_0x43439c);return _0x47e2b1;}['_fixMediaEmbeds'](_0x348c44,_0x88722f){if(!_0x88722f['plugins']['has']('MediaEmbedEditing'))return _0x348c44;const _0x3414b8=_0x88722f['plugins']['get']('MediaEmbedEditing');for(const [_0x36c161,_0x1656c5]of Object['entries'](_0x348c44)){const _0x3f64fb=document['createElement']('div');_0x3f64fb['innerHTML']=_0x1656c5,(_0x3f64fb['querySelectorAll']('figure.media')['forEach'](_0xd63155=>{const _0x1b6d65=_0xd63155['querySelector']('oembed');if(_0x1b6d65){const _0x577cc5=_0x1b6d65['getAttribute']('url');if(_0x577cc5){const _0x2ce04d=_0x3414b8['registry']['getMediaViewElement'](new _0x342669(_0x88722f['editing']['view']['document']),_0x577cc5,{'elementName':'','renderForEditingView':!0x0}),_0x1b8485=document['createElement']('div');_0x1b8485['classList']['add']('ck-media__wrapper'),_0x2ce04d['render'](_0x1b8485,_0x88722f['editing']['view']['domConverter']),_0x1b6d65['replaceWith'](_0x1b8485);}}}),_0x348c44[_0x36c161]=_0x3f64fb['innerHTML']);}return _0x348c44;}['_sortRoots'](_0xcd09){if(!function(_0x4dde56){return void 0x0!==_0x4dde56['getRootsAttributes'];}(_0xcd09))return _0xcd09['model']['document']['getRootNames']();const _0x19f15d=[],_0x283b01=new Map();for(const _0x55b047 of _0xcd09['model']['document']['getRootNames']()){const _0x1817fa=_0xcd09['editing']['view']['getDomRoot'](_0x55b047)['getClientRects']()['item'](0x0);_0x19f15d['push'](_0x55b047),_0x283b01['set'](_0x55b047,_0x1817fa);}return _0x19f15d['sort']((_0x576690,_0x2376b1)=>{const _0x5e991a=_0x283b01['get'](_0x576690),_0x169f7d=_0x283b01['get'](_0x2376b1);return _0x5e991a['y']-_0x169f7d['y']||_0x5e991a['x']-_0x169f7d['x'];}),_0x19f15d;}}class Ze extends _0x3ff253{static get['requires'](){return[ue,_0x3d43a3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd510){super(_0xd510),_0xd510['commands']['add']('previewFinalContent',new ge(this['editor'])),_0xd510['config']['define']('trackChanges.preview.renderFunction',(_0x24b444,_0x5425bc)=>{for(const _0x2fb9bd of _0x5425bc)_0x24b444['appendChild'](_0x2fb9bd);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ge as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Ae as SuggestionThreadView,Ee as SuggestionView,Xe as TrackChanges,B as TrackChangesCommand,ue as TrackChangesData,Ye as TrackChangesDataGetter,d as TrackChangesEditing,Ze as TrackChangesPreview,u as TrackChangesUI};
|