@ckeditor/ckeditor5-track-changes 48.0.0-alpha.2 → 48.0.0-alpha.3
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/dist/index.js +4 -4
- package/package.json +25 -25
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x241079(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x16fb50,_0x35e90d){super(),this['id']=_0x35e90d['id'],this['type']=_0x35e90d['type'],this['subType']=_0x35e90d['subType']||null,this['author']=_0x35e90d['author'],this['creator']=_0x35e90d['creator']||_0x35e90d['author'],this['isExternal']=Boolean(_0x35e90d['attributes']&&_0x35e90d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x35e90d['originalSuggestionId']||null,this['_model']=_0x16fb50,this['_onAccept']=_0x35e90d['onAccept'],this['_onDiscard']=_0x35e90d['onDiscard'],this['_onAttributesChange']=_0x35e90d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x35e90d['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 _0x6d1bfe=this;for(;_0x6d1bfe['previous'];)_0x6d1bfe=_0x6d1bfe['previous'];return _0x6d1bfe;}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'](_0x2e8343){this['_markerNames']['add'](_0x2e8343);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xdceec6=>this['_model']['markers']['get'](_0xdceec6))['filter'](_0xf9dbd7=>_0xf9dbd7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3e7b59=>{for(const _0x26425d of this['getMarkers']())_0x3e7b59['removeMarker'](_0x26425d);}),this['_markerNames']['clear']();}['removeMarker'](_0x21aa03){this['_model']['change'](_0x820c2c=>{_0x820c2c['removeMarker'](_0x21aa03);}),this['_markerNames']['delete'](_0x21aa03);}['addRange'](_0xcfd8f1){const _0x3bf45d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x3bf45d),this['_model']['change'](_0x50eaaf=>{_0x50eaaf['addMarker'](_0x3bf45d,{'range':_0xcfd8f1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2cd17b){for(const _0x14e25e of this['getRanges']())if(_0x14e25e['isIntersecting'](_0x2cd17b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x85b2b4=>_0x85b2b4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3be876,_0x18dce8)=>[..._0x3be876,..._0x18dce8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x43b8f6=this['getRanges']();if(0x1!=_0x43b8f6['length'])return null;const _0x5c6137=_0x43b8f6[0x0],_0x48e36a=_0x5c6137['start']['nodeAfter'],_0x540fcc=_0x5c6137['end']['nodeBefore'];return _0x48e36a instanceof _0x36f0f9?_0x48e36a!=_0x540fcc?null:_0x48e36a: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 _0x3c2dae=[];let _0x46fe66=this['head'];for(;_0x46fe66;)_0x3c2dae['push'](_0x46fe66),_0x46fe66=_0x46fe66['next'];return _0x3c2dae;}['setAttribute'](_0xd0d4ba,_0x30f060){const _0x4ff8ed=nt(this['attributes']);it(_0x4ff8ed,_0xd0d4ba,_0x30f060),st(_0x4ff8ed,this['attributes'])||(this['attributes']=_0x4ff8ed,this['_onAttributesChange'](_0x4ff8ed));}['removeAttribute'](_0x2401d8){const _0x5a6954=nt(this['attributes']);rt(_0x5a6954,_0x2401d8),st(_0x5a6954,this['attributes'])||(this['attributes']=_0x5a6954,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 _0x6e7e15()['substr'](0x1,0x5);}}function At(_0x2bcf0b,_0x31cfdc,_0x2a2f25){const _0x39ffcd=_0x2bcf0b['t'],t=_0x2bcf0b['t'];switch(_0x31cfdc){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',_0x2a2f25);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2a2f25);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2a2f25);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2a2f25);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2a2f25);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',_0x2a2f25);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2a2f25);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',_0x2a2f25);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2a2f25);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2a2f25);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2a2f25);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2a2f25);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2a2f25);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2a2f25);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2a2f25);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2a2f25);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2a2f25);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2a2f25);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2a2f25);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2a2f25);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2a2f25);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2a2f25);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2a2f25);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2a2f25);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2a2f25);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'},_0x2a2f25);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2a2f25);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2a2f25);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2a2f25);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2a2f25);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2a2f25);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2a2f25);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2a2f25);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'},_0x2a2f25);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2a2f25);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2a2f25);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2a2f25);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2a2f25);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x2a2f25);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2a2f25);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'},_0x2a2f25);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});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'},_0x2a2f25);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2a2f25);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'},_0x2a2f25);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2a2f25);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'},_0x2a2f25);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2a2f25);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2a2f25);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2a2f25);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2a2f25);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2a2f25);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'},_0x2a2f25);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2a2f25);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 _0x39ffcd({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2a2f25);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x39ffcd({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2a2f25);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2a2f25);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'},_0x2a2f25);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'},_0x2a2f25);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'},_0x2a2f25);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x31cfdc;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xa696f1,_0x35d81b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xa696f1,this['_locale']=_0x35d81b;}['getDescriptions'](_0x113f6c){const _0x57b806=[],_0x4add31=new Set(),_0x46bca3=new Set();for(let _0x205c32=0x0;_0x205c32<_0x113f6c['length'];_0x205c32++){const _0x1c5089=_0x113f6c[_0x205c32];if(!_0x1c5089['isInContent'])continue;const _0x1f905c=this['_handleCustomCallbackDescription'](_0x1c5089);if(_0x1f905c){if(null!=_0x1c5089['subType']){if(_0x4add31['has'](_0x1c5089['subType']))continue;_0x4add31['add'](_0x1c5089['subType']);}_0x57b806['push'](_0x1f905c);}else{if('attribute'==_0x1c5089['type']){const _0x1ed803=_0x1c5089['data']['key'];if(_0x46bca3['has'](_0x1ed803))continue;_0x46bca3['add'](_0x1c5089['data']['key']),_0x1ed803==Ke?this['_handleRenameSuggestionDescription'](_0x57b806,_0x1c5089):this['_handleAttributeSuggestionDescription'](_0x57b806,_0x1c5089);continue;}'insertion'!=_0x1c5089['type']&&'deletion'!=_0x1c5089['type']||this['_handleInsertRemoveSuggestionDescription'](_0x57b806,_0x1c5089,_0x113f6c[_0x205c32+0x1]);}}return this['_resolveDescriptionItems'](_0x57b806);}['registerDescriptionCallback'](_0x5b24e9){this['_customCallbacks']['push'](_0x5b24e9);}['registerElementLabel'](_0x27ec9d,_0x1c6090,_0x52cce3=_0x2d50ac['normal']){'function'==typeof _0x27ec9d?_0x28ec7d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x27ec9d,'label':_0x1c6090,'priority':_0x52cce3}):this['_itemLabels']['set'](_0x27ec9d,_0x1c6090);}['registerAttributeLabel'](_0x325b09,_0x5d9016){this['_attributeLabels']['set'](_0x325b09,_0x5d9016);}['getItemLabel'](_0x490854,_0xe19b7f=0x1){let _0x4077ae;for(const _0x127a30 of this['_itemLabelsCallbacks'])if(_0x127a30['matchingCallback'](_0x490854)){_0x4077ae=_0x127a30['label'];break;}return _0x4077ae||(_0x4077ae=this['_itemLabels']['get'](_0x490854['name'])),_0x4077ae?_0x4077ae(_0xe19b7f):0x1!==_0xe19b7f?_0xe19b7f+'\x20'+_0x490854['name']+'s':''+_0x490854['name'];}['_addDescriptionItems'](_0x5bee87,_0x3a585c){const _0x200c9c=_0x3a585c['getFirstRange']()['getWalker'](),_0x40a649='insertion'==_0x3a585c['type']?'add':'remove';for(const _0x51e28a of _0x200c9c){const _0x4ce602=_0x51e28a['item'],_0x1b0c20=_0x5bee87[_0x5bee87['length']-0x1];if(_0x4ce602['is']('$textProxy'))_0x1b0c20&&_0x1b0c20['type']['indexOf']('Container')>-0x1&&_0x5bee87['pop'](),_0x1b0c20&&'text'==_0x1b0c20['type']?_0x1b0c20[_0x40a649]+=_0x4ce602['data']:_0x5bee87['push']({'type':'text','add':'add'==_0x40a649?_0x4ce602['data']:'','remove':'remove'==_0x40a649?_0x4ce602['data']:''});else{if(this['_schema']['isObject'](_0x4ce602)){const _0x1d29f4=_0x4ce602;if(_0x1b0c20&&_0x1b0c20['type']['indexOf']('Container')>-0x1&&_0x5bee87['pop'](),'elementEnd'==_0x51e28a['type'])continue;_0x1b0c20&&_0x1b0c20['type']==_0x40a649+'Object'&&_0x1b0c20['element']['name']==_0x1d29f4['name']?_0x1b0c20['quantity']++:_0x5bee87['push']({'type':_0x40a649+'Object','element':_0x1d29f4,'quantity':0x1}),_0x200c9c['skip'](_0x3ff72e=>!('elementEnd'==_0x3ff72e['type']&&_0x3ff72e['item']==_0x4ce602));}else{if(this['_schema']['checkChild'](_0x4ce602,'$text')||_0x4ce602['is']('element','softBreak')){const _0x25dd93=_0x4ce602;if('add'==_0x40a649&&'elementStart'==_0x51e28a['type']||'remove'==_0x40a649&&'elementEnd'==_0x51e28a['type'])continue;if(_0x1b0c20&&-0x1==_0x1b0c20['type']['indexOf']('Container')){'text'==_0x1b0c20['type']&&(_0x1b0c20[_0x40a649]+='\x0a');continue;}let _0x3eaeb5;if(_0x3eaeb5='add'==_0x40a649?_0x25dd93['nextSibling']&&!this['_schema']['isObject'](_0x25dd93['nextSibling'])?_0x25dd93['nextSibling']:null:_0x25dd93['previousSibling']&&!this['_schema']['isObject'](_0x25dd93['previousSibling'])?_0x25dd93['previousSibling']:null,_0x25dd93['isEmpty']||_0x3eaeb5&&_0x3eaeb5['isEmpty']){const _0xb67eb=_0x3eaeb5&&_0x3eaeb5['isEmpty']?_0x3eaeb5:_0x25dd93;_0x1b0c20&&_0x1b0c20['type']==_0x40a649+'EmptyContainer'&&_0x1b0c20['element']['name']==_0xb67eb['name']?_0x1b0c20['quantity']++:_0x5bee87['push']({'type':_0x40a649+'EmptyContainer','element':_0xb67eb,'quantity':0x1});}else _0x5bee87['push']({'type':_0x40a649+'Container','element':_0x25dd93});}}}}}['_resolveDescriptionItems'](_0x8700d9){const _0xda185c=this['_locale'],_0x5c378f=[],_0x5e259f=[],_0x1195c8=[];for(const _0x9bc4ec of _0x8700d9)switch(_0x9bc4ec['type']){case'text':if(_0x9bc4ec['add']=_0x9bc4ec['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x9bc4ec['remove']=_0x9bc4ec['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x9bc4ec['add']&&''!=_0x9bc4ec['remove']){_0x5c378f['push']({'type':'replace','content':At(_0xda185c,'REPLACE_TEXT',['\x22'+_0x9bc4ec['remove']+'\x22','\x22'+_0x9bc4ec['add']+'\x22'])});continue;}if(null!=_0x9bc4ec['add']['match'](/^ +$/)){_0x5c378f['push']({'type':'insertion','content':At(_0xda185c,'*Insert:*\x20%0',At(_0xda185c,'ELEMENT_SPACE',_0x9bc4ec['add']['length']))});continue;}if(null!=_0x9bc4ec['remove']['match'](/^ +$/)){_0x5c378f['push']({'type':'deletion','content':At(_0xda185c,'*Remove:*\x20%0',At(_0xda185c,'ELEMENT_SPACE',_0x9bc4ec['remove']['length']))});continue;}if(''!=_0x9bc4ec['add']){_0x5c378f['push']({'type':'insertion','content':At(_0xda185c,'*Insert:*\x20%0','\x22'+_0x9bc4ec['add']+'\x22')});continue;}_0x5c378f['push']({'type':'deletion','content':At(_0xda185c,'*Remove:*\x20%0','\x22'+_0x9bc4ec['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5c378f['push']({'type':'insertion','content':At(_0xda185c,'*Insert:*\x20%0',this['getItemLabel'](_0x9bc4ec['element'],_0x9bc4ec['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5c378f['push']({'type':'deletion','content':At(_0xda185c,'*Remove:*\x20%0',this['getItemLabel'](_0x9bc4ec['element'],_0x9bc4ec['quantity']))});continue;case'addContainer':_0x5c378f['push']({'type':'insertion','content':At(_0xda185c,'*Split:*\x20%0',this['getItemLabel'](_0x9bc4ec['element'],_0x9bc4ec['quantity']))});continue;case'removeContainer':_0x5c378f['push']({'type':'deletion','content':At(_0xda185c,'*Merge:*\x20%0',this['getItemLabel'](_0x9bc4ec['element'],_0x9bc4ec['quantity']))});continue;case'addFormat':_0x5e259f['push'](_0x9bc4ec['key']);continue;case'removeFormat':_0x1195c8['push'](_0x9bc4ec['key']);continue;default:_0x5c378f['push'](_0x9bc4ec);}if(_0x5e259f['length']){const _0x2b898a=_0x5e259f['map'](_0x364de2=>this['_attributeLabels']['has'](_0x364de2)?this['_attributeLabels']['get'](_0x364de2):_0x364de2)['join'](',\x20');_0x5c378f['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x2b898a)});}if(_0x1195c8['length']){const _0x40372a=_0x1195c8['map'](_0x4e6d47=>this['_attributeLabels']['has'](_0x4e6d47)?this['_attributeLabels']['get'](_0x4e6d47):_0x4e6d47)['join'](',\x20');_0x5c378f['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x40372a)});}return _0x5c378f;}['_handleCustomCallbackDescription'](_0x5189e3){for(const _0x28f124 of this['_customCallbacks']){const _0x555dd5=_0x28f124(_0x5189e3);if(_0x555dd5&&'type'in _0x555dd5)return _0x555dd5;}}['_handleAttributeSuggestionDescription'](_0x3492cc,_0x28e2ab){const _0x39770b=_0x28e2ab['data'],_0x553d9f=void 0x0===_0x39770b['newValue']?'removeFormat':'addFormat';_0x3492cc['push']({'type':_0x553d9f,'key':_0x39770b['key']});}['_handleRenameSuggestionDescription'](_0x223cf2,_0x6b6a64){_0x223cf2['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x6b6a64['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x46334e,_0x39edb0,_0x47d67f){if(this['_addDescriptionItems'](_0x46334e,_0x39edb0),_0x47d67f&&_0x47d67f['getFirstRange']()&&!_0x39edb0['getFirstRange']()['end']['isEqual'](_0x47d67f['getFirstRange']()['start'])){const _0xae2f2a=_0x46334e[_0x46334e['length']-0x1],_0x33c414='insertion'==_0x39edb0['type']?'add':'remove';_0xae2f2a&&'text'==_0xae2f2a['type']&&(_0xae2f2a[_0x33c414]+='\x0a');}}}class Ct extends _0x542478{['afterInit'](){const _0x46c26c=this['editor'],_0x24d438=_0x46c26c['plugins']['get']('TrackChangesEditing');_0x46c26c['commands']['get']('showAIAssistant')&&_0x24d438['enableCommand']('showAIAssistant');}}class yt extends _0x542478{['afterInit'](){const _0x1edb77=this['editor'],_0x1e6d7f=_0x1edb77['plugins']['get']('TrackChangesEditing');_0x1edb77['commands']['get']('toggleAi')&&_0x1e6d7f['enableCommand']('toggleAi');}}class Nt extends _0x542478{['afterInit'](){const _0x143946=this['editor'],_0x8ac62b=_0x143946['plugins']['get']('TrackChangesEditing');_0x143946['commands']['get']('aiQuickAction')&&_0x8ac62b['enableCommand']('aiQuickAction');}}class Rt extends _0x542478{['afterInit'](){const _0x88307e=this['editor'],_0x2571f4=_0x88307e['locale'];if(!_0x88307e['plugins']['has']('AlignmentEditing'))return;const _0x57c7d8=_0x88307e['plugins']['get']('TrackChangesEditing');_0x57c7d8['enableDefaultAttributesIntegration']('alignment'),_0x57c7d8['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x2571f4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaeb4cf=this['editor'],_0x48d878=_0xaeb4cf['locale'];_0xaeb4cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e05c2=>{if('formatBlock'!=_0x1e05c2['type'])return;const {data:_0x403cfb}=_0x1e05c2;if(_0x403cfb&&'alignment'==_0x403cfb['commandName']){const _0x2e064a=_0x403cfb['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x48d878,'*Format:*\x20%0',function(_0x438f98){switch(_0x438f98){case'left':return At(_0x48d878,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x48d878,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x48d878,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x48d878,'FORMAT_JUSTIFY_TEXT');}}(_0x2e064a))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x542478{['afterInit'](){const _0x29d0b1=this['editor'],_0x107bbd=_0x29d0b1['plugins']['get']('TrackChangesEditing'),_0x13b565=_0x29d0b1['locale'];for(const _0x3e0573 of St){if(!_0x29d0b1['plugins']['has'](_0x3e0573))continue;const _0x62791d=_0x3e0573['slice'](0x0,-0x7)['toLowerCase'](),_0x1ee5b6='FORMAT_'+_0x62791d['toUpperCase']();_0x107bbd['enableDefaultAttributesIntegration'](_0x62791d),_0x107bbd['descriptionFactory']['registerAttributeLabel'](_0x62791d,At(_0x13b565,_0x1ee5b6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dbdd8=this['editor'],_0x34c265=_0x3dbdd8['locale'],_0x8bba10=_0x3dbdd8['plugins']['get']('TrackChangesEditing');function _0x26c5db(_0x1f02e1,_0x38527a){_0x8bba10['descriptionFactory']['registerDescriptionCallback'](_0x40bcaa=>{if('formatInline'!=_0x40bcaa['type'])return;const {data:_0x4e4b95}=_0x40bcaa;return _0x4e4b95&&_0x4e4b95['commandName']===_0x1f02e1?_0x4e4b95['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x34c265,'*Format:*\x20%0',_0x38527a)}:{'type':'format','content':At(_0x34c265,'*Remove\x20format:*\x20%0',_0x38527a)}:void 0x0;});}_0x26c5db('bold',At(_0x34c265,'FORMAT_BOLD')),_0x26c5db('italic',At(_0x34c265,'FORMAT_ITALIC')),_0x26c5db('underline',At(_0x34c265,'FORMAT_UNDERLINE')),_0x26c5db('code',At(_0x34c265,'FORMAT_CODE')),_0x26c5db('strikethrough',At(_0x34c265,'FORMAT_STRIKETHROUGH')),_0x26c5db('subscript',At(_0x34c265,'FORMAT_SUBSCRIPT')),_0x26c5db('superscript',At(_0x34c265,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x542478{['afterInit'](){const _0x48117b=this['editor'],_0x575791=_0x48117b['locale'];if(!_0x48117b['plugins']['has']('BlockQuoteEditing'))return;const _0x399100=_0x48117b['plugins']['get']('TrackChangesEditing'),_0x4afcee=this['editor']['commands']['get']('blockQuote');_0x399100['enableCommand']('blockQuote',(_0x1768d5,_0x4ed2df={})=>{const _0x447291=this['editor']['model']['document']['selection'],_0x5c0656=_0x4ed2df&&void 0x0!==_0x4ed2df['forceValue']?_0x4ed2df['forceValue']:!_0x4afcee['value'];let _0x251f44=[];if(_0x5c0656){const _0x25ba83=Array['from'](_0x447291['getSelectedBlocks']())['filter'](_0x1c05ac=>wt(_0x1c05ac)||function(_0x29c404,_0xac3c68){const _0x64298f=_0xac3c68['checkChild'](_0x29c404['parent'],'blockQuote'),_0x1bee5d=_0xac3c68['checkChild'](['$root','blockQuote'],_0x29c404);return _0x64298f&&_0x1bee5d;}(_0x1c05ac,this['editor']['model']['schema']));_0x251f44=Tt(_0x25ba83,_0x48117b['model']);}else{const _0x5a3eff=Array['from'](_0x447291['getSelectedBlocks']())['filter'](_0x5f581a=>wt(_0x5f581a));_0x251f44=Tt(_0x5a3eff,_0x48117b['model']);}_0x48117b['model']['change'](()=>{for(const _0x26ad9d of _0x251f44)_0x399100['markBlockFormat'](_0x26ad9d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5c0656}]});});}),_0x399100['descriptionFactory']['registerDescriptionCallback'](_0x5e9b0a=>{const {data:_0x330410}=_0x5e9b0a;if(_0x330410&&'blockQuote'==_0x330410['commandName']){const _0x206ce9=At(_0x575791,'ELEMENT_BLOCK_QUOTE');return _0x330410['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x575791,'*Set\x20format:*\x20%0',_0x206ce9)}:{'type':'format','content':At(_0x575791,'*Remove\x20format:*\x20%0',_0x206ce9)};}});}}function wt(_0x1d406e){return'blockQuote'==_0x1d406e['parent']['name'];}class Bt extends _0x542478{['afterInit'](){const _0x1c49eb=this['editor'],_0x5dc806=_0x1c49eb['locale'],_0x582814=_0x1c49eb['plugins']['get']('TrackChangesEditing');_0x1c49eb['plugins']['has']('BookmarkEditing')&&(_0x582814['enableCommand']('insertBookmark'),_0x582814['enableDefaultAttributesIntegration']('updateBookmark'),_0x582814['descriptionFactory']['registerDescriptionCallback'](_0x1e3d80=>{if('insertion'!=_0x1e3d80['type']&&'deletion'!=_0x1e3d80['type']&&'attribute'!=_0x1e3d80['type'])return;const _0x41ca9c=_0x1e3d80['getContainedElement']();if(null==_0x41ca9c)return;if(!_0x41ca9c['is']('element','bookmark'))return;const _0x45ca58=_0x41ca9c['getAttribute']('bookmarkId');if('insertion'==_0x1e3d80['type'])return{'type':'insertion','content':At(_0x5dc806,'*Insert:*\x20%0','\x22'+_0x45ca58+'\x22\x20'+At(_0x5dc806,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1e3d80['type'])return{'type':'deletion','content':At(_0x5dc806,'*Remove:*\x20%0','\x22'+_0x45ca58+'\x22\x20'+At(_0x5dc806,'ELEMENT_BOOKMARK'))};const {data:_0x138a3a}=_0x1e3d80;if(!_0x138a3a||'bookmarkId'!=_0x138a3a['key'])return;return{'type':'format','content':At(_0x5dc806,'*Set\x20bookmark:*\x20%0','\x22'+_0x138a3a['newValue']+'\x22')};}));}}class Ft extends _0x542478{['afterInit'](){const _0x28c939=this['editor'];_0x28c939['plugins']['has']('CaseChange')&&(_0x28c939['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x28c939['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x28c939['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x542478{['afterInit'](){const _0x4826d8=this['editor'];_0x4826d8['commands']['get']('ckbox')&&_0x4826d8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x542478{['afterInit'](){const _0x2edc31=this['editor'];if(!_0x2edc31['plugins']['has']('CodeBlock'))return;const _0x4c8ae9=_0x2edc31['plugins']['get']('TrackChangesEditing'),_0x146505=_0x2edc31['locale'],_0x323ccc=_0x2edc31['config']['get']('codeBlock')['languages'],_0x1f9459=_0x2edc31['commands']['get']('codeBlock');_0x4c8ae9['enableCommand']('indentCodeBlock'),_0x4c8ae9['enableCommand']('outdentCodeBlock'),_0x4c8ae9['enableCommand']('codeBlock',(_0x5e3ab5,_0x524b21={})=>{const _0x246b3f=_0x2edc31['model'],_0xfe58fd=_0x2edc31['model']['document']['selection'],_0x375abd=_0x524b21&&void 0x0!==_0x524b21['forceValue']?_0x524b21['forceValue']:!_0x1f9459['value'];let _0x78e5dd;_0x524b21['language']||(_0x524b21['language']=_0x323ccc[0x0]['language']),_0x78e5dd=_0x375abd?Array['from'](_0xfe58fd['getSelectedBlocks']())['filter'](_0x4fed91=>xt(_0x4fed91)||function(_0x2aa538,_0x868947){if(_0x2aa538['is']('rootElement')||_0x868947['isLimit'](_0x2aa538))return!0x1;return _0x868947['checkChild'](_0x2aa538['parent'],'codeBlock');}(_0x4fed91,_0x246b3f['schema'])):Array['from'](_0xfe58fd['getSelectedBlocks']())['filter'](_0xa0dbaf=>xt(_0xa0dbaf));const _0x28f41e=Tt(_0x78e5dd,_0x246b3f);_0x246b3f['change'](()=>{for(const _0x374787 of _0x28f41e)_0x4c8ae9['markBlockFormat'](_0x374787,{'commandName':'codeBlock','commandParams':[{..._0x524b21,'forceValue':_0x375abd}],'formatGroupId':'blockName'});});}),(_0x4c8ae9['descriptionFactory']['registerElementLabel']('codeBlock',_0x59c58f=>At(_0x146505,'ELEMENT_CODE_BLOCK',_0x59c58f)),_0x4c8ae9['descriptionFactory']['registerDescriptionCallback'](_0x19be74=>{if('formatBlock'!=_0x19be74['type'])return;const _0x324d8e=_0x146505['t'],{data:_0x54d4ab}=_0x19be74;if(!_0x54d4ab||'codeBlock'!=_0x54d4ab['commandName'])return;const _0x581f87=_0x54d4ab['commandParams'][0x0]['language'],_0x249d6f=_0x324d8e(_0x323ccc['find'](_0x5706bf=>_0x5706bf['language']===_0x581f87)['label'])['toLowerCase']();return _0x54d4ab['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x146505,'*Set\x20format:*\x20%0',At(_0x146505,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x249d6f+')')}:{'type':'format','content':At(_0x146505,'*Remove\x20format:*\x20%0',At(_0x146505,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x128974){return'codeBlock'==_0x128974['name'];}class Pt extends _0x542478{['afterInit'](){const _0x2b5616=this['editor'];if(!_0x2b5616['plugins']['has']('CommentsEditing'))return;_0x2b5616['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x542478{static get['requires'](){return[at];}['init'](){const _0x226535=this['editor'],_0x484a3b=_0x226535['plugins']['get']('TrackChangesEditing');_0x484a3b['enableCommand']('delete');const _0x3e92b6=_0x226535['commands']['get']('deleteForward');_0x484a3b['enableCommand']('deleteForward',(_0x2a069f,_0x28c236={})=>{const _0x4bab29=_0x226535['model']['createSelection'](_0x226535['model']['document']['selection']);_0x4bab29['isCollapsed']&&_0x226535['model']['modifySelection'](_0x4bab29,{'direction':'forward','unit':_0x28c236['unit']});const _0x1a0a3f=_0x4bab29['getFirstRange'](),_0x2840c4=_0x5ce503['fromRange'](_0x1a0a3f);let _0x38058d;_0x2a069f(_0x28c236),_0x38058d='$graveyard'==_0x2840c4['root']['rootName']?_0x226535['model']['createRange'](_0x1a0a3f['start']):_0x226535['model']['createRange'](_0x2840c4['start'],_0x2840c4['end']),_0x2840c4['detach'](),_0x226535['model']['enqueueChange'](_0x3e92b6['buffer']['batch'],_0x249490=>{_0x3e92b6['buffer']['lock'](),_0x249490['setSelection'](_0x249490['createRange'](_0x38058d['end'])),_0x3e92b6['buffer']['unlock']();});});}}class Gt extends _0x542478{['afterInit'](){const _0x8da529=this['editor'];if(!_0x8da529['plugins']['has']('ListEditing'))return;const _0x4c8846=_0x8da529['locale'],_0x213ee5=_0x8da529['plugins']['get']('TrackChangesEditing'),_0x410b08=_0x8da529['plugins']['has']('TodoListEditing'),_0x370d30=!!_0x8da529['config']['get']('list.multiBlock');function _0x1f51d8(_0x240ec2){return{'type':'format','content':''+At(_0x4c8846,'*Set\x20format:*\x20%0',_0x240ec2)};}function _0x18e50d(_0x5bc67d){return{'type':'format','content':''+At(_0x4c8846,'*Remove\x20format:*\x20%0',_0x5bc67d)};}_0x213ee5['enableDefaultAttributesIntegration']('numberedList'),_0x213ee5['enableDefaultAttributesIntegration']('bulletedList'),_0x213ee5['enableDefaultAttributesIntegration']('customNumberedList'),_0x213ee5['enableDefaultAttributesIntegration']('customBulletedList'),_0x213ee5['enableDefaultAttributesIntegration']('indentList'),_0x213ee5['enableDefaultAttributesIntegration']('outdentList'),_0x213ee5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x213ee5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x370d30&&(_0x213ee5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x213ee5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x410b08&&(_0x213ee5['enableDefaultAttributesIntegration']('todoList'),_0x213ee5['enableDefaultAttributesIntegration']('checkTodoList'),_0x213ee5['descriptionFactory']['registerDescriptionCallback'](_0x21f590=>{const {data:_0x224af3}=_0x21f590;if(_0x224af3&&'todoListChecked'==_0x224af3['key'])return{'type':'format','content':_0x224af3['newValue']?At(_0x4c8846,'*Check\x20item*'):At(_0x4c8846,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4df5bc=>{if(_0x4df5bc['batch']['isUndo'])return!0x1;let _0xf96098=!0x1;const _0x6b5fac=_0x213ee5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d2596=>'todoListChecked'===_0x213ee5['_getAttributeKey'](_0x4d2596));for(const _0x1b635a of _0x6b5fac){'todo'!=_0x1b635a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x213ee5['_findSuggestions'](_0x1b635a['getFirstRange'](),'attribute')['find'](_0x24fc3f=>'listType'===_0x213ee5['_getAttributeKey'](_0x24fc3f['suggestion']))||(_0x4df5bc['removeMarker'](_0x1b635a['getFirstMarker']()),_0xf96098=!0x0));}return _0xf96098;})),_0x213ee5['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x4c8846,'FORMAT_INDENT'));const _0x22e7de={'type':'format','content':''};_0x213ee5['descriptionFactory']['registerDescriptionCallback'](_0x156048=>{const {data:_0x3e4c63}=_0x156048;if(!_0x3e4c63||'listType'!=_0x3e4c63['key'])return;let _0x4bf4f1=_0x156048['head'];for(;_0x4bf4f1;){if(_0x4bf4f1['data']&&(('listStyle'==_0x4bf4f1['data']['key']||'listMarkerStyle'==_0x4bf4f1['data']['key'])&&(_0x4bf4f1['data']['newValue']&&'default'!=_0x4bf4f1['data']['newValue']||'default'!=_0x4bf4f1['data']['oldValue']&&!_0x3e4c63['newValue'])||!_0x370d30&&_0x4bf4f1['data']['key']==Ke))return _0x22e7de;_0x4bf4f1=_0x4bf4f1['next'];}if(null==_0x3e4c63['newValue'])switch(_0x3e4c63['oldValue']){case'bulleted':return _0x18e50d(At(_0x4c8846,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x18e50d(At(_0x4c8846,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x18e50d(At(_0x4c8846,'ELEMENT_TODO_LIST'));}switch(_0x3e4c63['newValue']){case'bulleted':return _0x1f51d8(At(_0x4c8846,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f51d8(At(_0x4c8846,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f51d8(At(_0x4c8846,'ELEMENT_TODO_LIST'));}}),_0x213ee5['descriptionFactory']['registerDescriptionCallback'](_0x1e1768=>{const {data:_0x540b26}=_0x1e1768;if(_0x540b26&&'listIndent'==_0x540b26['key'])return null==_0x540b26['newValue']||null==_0x540b26['oldValue']&&0x0==_0x540b26['newValue']?_0x22e7de:void 0x0;}),_0x213ee5['descriptionFactory']['registerDescriptionCallback'](_0x1c3b3f=>{if('attribute'!=_0x1c3b3f['type'])return;const {data:_0x2d2f2c}=_0x1c3b3f;if(!_0x2d2f2c||'listItemId'!=_0x2d2f2c['key'])return;const _0x4b99e7=Ht(_0x1c3b3f);return'newValue'==_0x4b99e7?{'type':'format','content':At(_0x4c8846,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4b99e7?{'type':'format','content':At(_0x4c8846,'*Split:*\x20list\x20item')}:_0x22e7de;}),_0x8da529['model']['document']['registerPostFixer'](_0xd4398e=>this['listItemIdFixer'](_0xd4398e)),_0x8da529['model']['document']['registerPostFixer'](_0x30157c=>this['noTrackChangesFixer'](_0x30157c)),_0x8da529['model']['document']['on']('change:data',(_0xe806bb,_0x15805f)=>{if(_0x15805f['isUndo']||!_0x15805f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xaed835){if(_0xaed835['batch']['isUndo']||!_0xaed835['batch']['isLocal'])return!0x1;let _0xa348c1=!0x1;const _0x1337fe=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48d034=>_0x48d034['data']&&'listItemId'==_0x48d034['data']['key'])['filter'](_0x4fbd58=>_0x4fbd58['data']['newValue']&&_0x4fbd58['data']['oldValue']);for(const _0x3c6468 of _0x1337fe)Ht(_0x3c6468)||(_0xaed835['removeMarker'](_0x3c6468['getFirstMarker']()),_0xa348c1=!0x0);return _0xa348c1;}['noTrackChangesFixer'](_0x54d676){if(_0x54d676['batch']['isUndo']||!_0x54d676['batch']['isLocal'])return!0x1;const _0x49d256=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x49d256['trackChangesCommand']['value'])return!0x1;let _0x10ecca=!0x1;const _0x402407=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x351291=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1b2460=>'attribute'==_0x1b2460['type'])['filter'](_0x14da68=>_0x402407['includes'](_0x14da68['attributeKey']));if(0x0==_0x351291['length'])return _0x10ecca;for(const _0x2c07f2 of _0x351291){const _0x34b695=_0x49d256['_findSuggestions'](_0x2c07f2['range'],'attribute')['filter'](_0x57e3d8=>!_0x57e3d8['meta']['isNextTo'])['map'](_0x263eab=>_0x263eab['suggestion'])['filter'](_0x4d27a5=>{const _0x5ceb17=_0x49d256['_getAttributeKey'](_0x4d27a5);return _0x402407['includes'](_0x5ceb17);});if(_0x34b695['length']){for(const _0x1fae0f of _0x34b695)_0x54d676['removeMarker'](_0x1fae0f['getFirstMarker']());_0x10ecca=!0x0;}}return _0x10ecca;}['assureChains'](){const _0x2eec6c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45a1e1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x399382;const _0x216850=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x336a27=>{if(_0x336a27['data']['oldRange']||!_0x336a27['data']['newRange'])return null;if(!_0x336a27['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x19bd11}=_0x5024a3(_0x336a27['name']);if(!_0x2eec6c['hasSuggestion'](_0x19bd11))return null;const _0x577342=_0x2eec6c['getSuggestion'](_0x19bd11);return _0x45a1e1['includes'](_0x577342['data']['key']);})['map'](_0x589963=>{const {id:_0xf157eb}=_0x5024a3(_0x589963['name']),_0x616681=_0x2eec6c['getSuggestion'](_0xf157eb);return _0x399382=_0x616681['attributes']['groupId'],_0x616681['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x216850['size'])return;const _0x31bbd3=_0x2eec6c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d64ba=>'attribute'==_0x5d64ba['type']&&_0x5d64ba['data']&&_0x45a1e1['includes'](_0x5d64ba['data']['key'])&&_0x5d64ba['attributes']['groupId']!=_0x399382)['map'](_0x3bf1e9=>({'listItem':_0x3bf1e9['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3bf1e9['attributes']['groupId']})),_0x3225f6=new Set();for(const {groupId:_0x4579de,listItem:_0x5d548b}of _0x31bbd3)_0x216850['has'](_0x5d548b)&&_0x3225f6['add'](_0x4579de);for(const _0xf7ec4e of _0x2eec6c['getSuggestions']())_0x3225f6['has'](_0xf7ec4e['attributes']['groupId'])&&_0xf7ec4e['setAttribute']('groupId',_0x399382);}['_supportLegacySuggestions'](){const _0x5f09b7=this['editor'],_0x4c3ab6=_0x5f09b7['locale'],_0x37e67f=_0x5f09b7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x37e67f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1d529a,_0x128818){const _0x15a077=[];for(let _0x40e9ad of _0x1d529a)_0x40e9ad['start']['nodeAfter']===_0x40e9ad['end']['parent']&&(_0x40e9ad=_0x5f09b7['model']['createRange'](_0x5f09b7['model']['createPositionAt'](_0x40e9ad['start']['nodeAfter'],0x0))),_0x15a077['push'](_0x40e9ad);_0x5f09b7['model']['change'](_0x4aebd5=>{const _0x722d96=_0x5f09b7['model']['document']['selection'],_0x23ecfc=Array['from'](_0x722d96['getRanges']())['map'](_0x154463=>_0x5ce503['fromRange'](_0x154463));_0x4aebd5['setSelection'](_0x15a077),_0x5f09b7['commands']['get'](_0x128818['commandName'])['refresh'](),_0x128818['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5f09b7['execute'](_0x128818['commandName'],..._0x128818['commandParams']),_0x4aebd5['setSelection'](_0x23ecfc);for(const _0x3841ed of _0x23ecfc)_0x3841ed['detach']();});}),_0x37e67f['descriptionFactory']['registerElementLabel'](function(_0x50891f){const _0x51064a=!_0x5f09b7['model']['schema']['isObject'](_0x50891f),_0x3ab40f=_0x50891f['previousSibling'],_0x51438e=_0x50891f['nextSibling'],_0x2958db=_0x50891f['getAttribute']('listItemId'),_0xbb23a9=!_0x3ab40f||_0x3ab40f['getAttribute']('listItemId')!==_0x2958db,_0x4b3d28=!_0x51438e||_0x51438e['getAttribute']('listItemId')!==_0x2958db;return _0x51064a&&Boolean(_0x2958db)&&_0xbb23a9&&_0x4b3d28;},_0x474aae=>At(_0x4c3ab6,'ELEMENT_LIST_ITEM',_0x474aae));}['_registerLegacyDescription'](){const _0x5a31e7=this['editor'],_0x286bd2=_0x5a31e7['locale'];function _0x22aad6(_0x130f07){const _0x11cb82=_0x5a31e7['commands']['get']('bulletedList')['value'],_0x21d379=_0x5a31e7['commands']['get']('numberedList')['value'];return'numberedList'===_0x130f07?_0x11cb82:_0x21d379;}_0x5a31e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3a6f1c){if('formatBlock'!=_0x3a6f1c['type'])return;const {data:_0x1aead1}=_0x3a6f1c;if(!_0x1aead1)return;let _0x4a3508,_0x58a7df,_0x4d4b1e,_0x4562b6;switch(_0x1aead1['commandName']){case'bulletedList':_0x4d4b1e=_0x1aead1['commandParams'][0x0]['forceValue'],_0x4562b6=_0x22aad6(_0x1aead1['commandName']),_0x4a3508=_0x4d4b1e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4562b6&&_0x5a31e7['config']['get']('list.multiBlock')||(_0x4a3508='*Change\x20to:*\x20%0'),_0x58a7df={'type':'format','content':At(_0x286bd2,_0x4a3508,At(_0x286bd2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4d4b1e=_0x1aead1['commandParams'][0x0]['forceValue'],_0x4562b6=_0x22aad6(_0x1aead1['commandName']),_0x4a3508=_0x4d4b1e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4562b6&&_0x5a31e7['config']['get']('list.multiBlock')||(_0x4a3508='*Change\x20to:*\x20%0'),_0x58a7df={'type':'format','content':At(_0x286bd2,_0x4a3508,At(_0x286bd2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4a3508='*Indent:*\x20%0',_0x58a7df={'type':'format','content':At(_0x286bd2,_0x4a3508,At(_0x286bd2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4a3508=function(_0x1123e0){const _0x546c86=_0x1123e0['getFirstRange']();let _0x475a6e=_0x546c86['start']['nodeAfter'];for(;_0x475a6e&&_0x546c86['containsItem'](_0x475a6e);){if(_0x475a6e['getAttribute']('listIndent')>0x0)return!0x1;_0x475a6e=_0x475a6e['nextSibling'];}return!0x0;}(_0x3a6f1c)?At(_0x286bd2,'*Format:*\x20remove\x20from\x20%0',At(_0x286bd2,function(_0x2bddef){return'ELEMENT_'+_0x2bddef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3a6f1c))):At(_0x286bd2,'*Outdent:*\x20%0',At(_0x286bd2,'ELEMENT_LIST_ITEM')),_0x58a7df={'type':'format','content':_0x4a3508};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1aead1['multipleBlocks']&&(_0x4a3508='*Merge:*\x20%0',_0x58a7df={'type':'deletion','content':At(_0x286bd2,_0x4a3508,At(_0x286bd2,'ELEMENT_LIST_ITEM'))});}return _0x58a7df;});}}function Ht(_0x84165a){let _0x3df60d=_0x84165a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3df60d;){const _0x52fa63=_0x3df60d['getAttribute']('listItemId');if(!_0x52fa63)return!0x1;if(_0x52fa63==_0x84165a['data']['newValue'])return'newValue';if(_0x52fa63==_0x84165a['data']['oldValue'])return'oldValue';_0x3df60d=_0x3df60d['previousSibling'];}return!0x1;}class $t extends _0x542478{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1f9a70=this['editor']['config']['get']('list.properties'),_0x29de3b=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f9a70['styles']&&_0x29de3b['enableDefaultAttributesIntegration']('listStyle'),_0x1f9a70['reversed']&&_0x29de3b['enableDefaultAttributesIntegration']('listReversed'),_0x1f9a70['startIndex']&&_0x29de3b['enableDefaultAttributesIntegration']('listStart');const _0x24fcc6={'type':'format','content':''};_0x29de3b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x314da6=this['editor']['locale'];_0x29de3b['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x314da6,'FORMAT_LIST_REVERSED')),_0x29de3b['descriptionFactory']['registerDescriptionCallback'](_0x1c208c=>{const {data:_0x247a2b}=_0x1c208c;if(_0x247a2b&&'listReversed'==_0x247a2b['key'])return null==_0x247a2b['newValue']||0x0==_0x247a2b['newValue']&&null==_0x247a2b['oldValue']?_0x24fcc6:void 0x0;}),_0x29de3b['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x314da6,'FORMAT_LIST_START')),_0x29de3b['descriptionFactory']['registerDescriptionCallback'](_0x3c8dbb=>{const {data:_0x13457c}=_0x3c8dbb;if(_0x13457c&&'listStart'==_0x13457c['key'])return null==_0x13457c['newValue']||0x1==_0x13457c['newValue']&&null==_0x13457c['oldValue']?_0x24fcc6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x27ee01=>{if(_0x27ee01['batch']['isUndo'])return!0x1;let _0x520d15=!0x1;const _0x4369fb=_0x29de3b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc400ca=>{const _0x7871b9=_0x29de3b['_getAttributeKey'](_0xc400ca);return'listStart'==_0x7871b9||'listReversed'==_0x7871b9;});for(const _0xc2168f of _0x4369fb){const _0x4e9e49=_0xc2168f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4e9e49||'customNumbered'==_0x4e9e49)continue;_0x29de3b['_findSuggestions'](_0xc2168f['getFirstRange'](),'attribute')['find'](_0x4dc4f8=>'listType'==_0x29de3b['_getAttributeKey'](_0x4dc4f8['suggestion']))||(_0x27ee01['removeMarker'](_0xc2168f['getFirstMarker']()),_0x520d15=!0x0);}return _0x520d15;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x45f5e2){const _0x2c051f=this['editor']['locale'],{data:_0x42922f}=_0x45f5e2,_0x4e4c2f={'type':'format','content':''};if(!_0x42922f||'listStyle'!=_0x42922f['key'])return;if(!_0x42922f['oldValue'])return'default'==_0x42922f['newValue']?_0x4e4c2f:{'type':'format','content':''+At(_0x2c051f,'*Set\x20format:*\x20%0',At(_0x2c051f,this['_getTranslationKeyForListStyle'](_0x42922f['newValue'])))};if(!_0x42922f['newValue']){if('default'==_0x42922f['oldValue'])return _0x4e4c2f;let _0x36ef5d=_0x45f5e2['head'];for(;_0x36ef5d;){if(_0x36ef5d['data']&&'listType'==_0x36ef5d['data']['key']&&_0x36ef5d['data']['newValue'])return _0x4e4c2f;_0x36ef5d=_0x36ef5d['next'];}return{'type':'format','content':''+At(_0x2c051f,'*Remove\x20format:*\x20%0',At(_0x2c051f,this['_getTranslationKeyForListStyle'](_0x42922f['oldValue'])))};}if('default'!=_0x42922f['newValue'])return{'type':'format','content':''+At(_0x2c051f,'*Set\x20format:*\x20%0',At(_0x2c051f,this['_getTranslationKeyForListStyle'](_0x42922f['newValue'])))};let _0x3490ab=_0x45f5e2['head'];for(;_0x3490ab;){if(_0x3490ab['data']&&'listType'==_0x3490ab['data']['key']&&_0x3490ab['data']['newValue']&&_0x3490ab['data']['oldValue'])return _0x4e4c2f;_0x3490ab=_0x3490ab['next'];}return{'type':'format','content':At(_0x2c051f,'*Set\x20format:*\x20%0',At(_0x2c051f,'ELEMENT_'+_0x45f5e2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2f7a2e=this['editor'],_0x37c795=_0x2f7a2e['locale'];_0x2f7a2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e75cf=>{if('formatBlock'!=_0x4e75cf['type'])return;const {data:_0x198d7e}=_0x4e75cf;if(!_0x198d7e)return;let _0x183719,_0x43a287;switch(_0x198d7e['commandName']){case'listStyle':_0x183719='*Change\x20to:*\x20%0',_0x43a287={'type':'format','content':At(_0x37c795,_0x183719,At(_0x37c795,this['_getTranslationKeyForListStyle'](_0x198d7e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x183719=_0x198d7e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x43a287={'type':'format','content':At(_0x37c795,_0x183719)};break;case'listStart':_0x183719='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x43a287={'type':'format','content':At(_0x37c795,_0x183719,_0x198d7e['commandParams'][0x0]['startIndex'])};}return _0x43a287;});}['_getTranslationKeyForListStyle'](_0x1b294e){return'ELEMENT_'+function(_0x20bb9d){if(Wt['includes'](_0x20bb9d))return'bulleted';if(Vt['includes'](_0x20bb9d))return'numbered';return null;}(_0x1b294e)['toUpperCase']()+'_LIST_'+_0x1b294e['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x542478{['afterInit'](){const _0x13c49a=this['editor'];_0x13c49a['commands']['get']('emoji')&&_0x13c49a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x542478{static get['requires'](){return[lt];}['init'](){const _0x2fb4b4=this['editor'],_0x3596d9=_0x2fb4b4['plugins']['get']('TrackChangesEditing'),_0x1309d6=_0x2fb4b4['commands']['get']('enter');_0x3596d9['enableCommand']('enter',()=>{_0x2fb4b4['model']['change'](_0x5864fd=>{const _0x124e3c=_0x2fb4b4['model']['document']['selection'],_0x399cdc=_0x124e3c['getFirstPosition'](),_0x42b8d8=_0x5ce503['fromRange'](_0x124e3c['getFirstRange']());if(_0x1309d6['enterBlock'](_0x5864fd)){const _0x5078f1=_0x2fb4b4['model']['createPositionAt'](_0x399cdc['parent']['nextSibling'],0x0),_0x3a59d6=_0x5864fd['createRange'](_0x399cdc,_0x5078f1);_0x3596d9['markInsertion'](_0x3a59d6);}else _0x5864fd['setSelection'](_0x5864fd['createRange'](_0x42b8d8['end']));_0x42b8d8['detach'](),_0x1309d6['fire']('afterExecute',{'writer':_0x5864fd});});});}}class Kt extends _0x542478{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xd7153b=this['editor']['plugins']['get']('TrackChangesEditing');_0xd7153b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xd7153b['enableCommand']('findNext'),_0xd7153b['enableCommand']('findPrevious'),_0xd7153b['enableCommand']('replace'),_0xd7153b['enableCommand']('replaceAll');}['handleFindCommand'](_0x26ed83,_0x197ddf,_0x10827c={}){const _0x2f8da3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x26ed83(_0x2ee7a7=>{let _0x580935=('string'==typeof _0x197ddf?_0x2f8da3['findByTextCallback'](_0x197ddf,_0x10827c):_0x197ddf)(_0x2ee7a7);Array['isArray'](_0x580935)&&(_0x580935={'results':_0x580935,'searchText':'string'==typeof _0x197ddf?_0x197ddf:''});const _0x241061=_0x580935['results']['filter'](_0x4a07ba=>!0x1===this['_isInDeletionRange'](_0x4a07ba,_0x2ee7a7['item']));return{..._0x580935,'results':_0x241061};},_0x10827c);}['_isInDeletionRange'](_0x47d49d,_0x4b6c5c){const _0xb6e450=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b6c5c,_0x47d49d['start']),this['editor']['model']['createPositionAt'](_0x4b6c5c,_0x47d49d['end']));for(const _0x341b14 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xb6e450['getIntersection'](_0x341b14['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x542478{['afterInit'](){const _0x3098a4=this['editor']['locale'],_0x3dbbd2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2d27a2,commandName:_0xc3dc6}of Xt)this['editor']['plugins']['has'](_0x2d27a2)&&_0x3dbbd2['enableDefaultAttributesIntegration'](_0xc3dc6);_0x3dbbd2['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x3098a4,'FORMAT_FONT_SIZE')),_0x3dbbd2['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x3098a4,'FORMAT_FONT_FAMILY')),_0x3dbbd2['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x3098a4,'FORMAT_FONT_COLOR')),_0x3dbbd2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x3098a4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11fec3=this['editor'],_0x4c2939=_0x11fec3['locale'];_0x11fec3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e1ef5=>{const _0x30e8f4=_0x4c2939['t'];if('formatInline'!=_0x2e1ef5['type'])return;const {data:_0x10c56f}=_0x2e1ef5;if(null!=_0x10c56f){if('fontSize'==_0x10c56f['commandName']){const _0x2fd298=_0x10c56f['commandParams'][0x0]['value'];if(_0x2fd298){const _0x32dfdc=_0x30e8f4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x182bcf=>_0x182bcf['model']==_0x2fd298)['title'])['toLowerCase']();return{'type':'format','content':At(_0x4c2939,'*Set\x20font\x20size:*\x20%0',_0x32dfdc)};}return{'type':'format','content':At(_0x4c2939,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x10c56f['commandName']){const _0x3a49c1=_0x10c56f['commandParams'][0x0]['value'];return _0x3a49c1?{'type':'format','content':At(_0x4c2939,'*Set\x20font\x20family:*\x20%0',_0x3a49c1)}:{'type':'format','content':At(_0x4c2939,'*Reset\x20font\x20family*')};}if('fontColor'==_0x10c56f['commandName']){const _0x11afd6=_0x10c56f['commandParams'][0x0]['value'];if(_0x11afd6){const _0x53c2da=_0x13ca38(this['editor']['config']['get']('fontColor.colors'))['find'](_0x45d908=>_0x45d908['model']==_0x11afd6);let _0x20b3a7=_0x11afd6,_0x494f39='';return _0x53c2da&&(_0x20b3a7=_0x53c2da['label'],_0x494f39=_0x30e8f4(_0x20b3a7)['toLowerCase']()),{'type':'format','content':At(_0x4c2939,'*Set\x20font\x20color:*\x20%0',_0x494f39)['trim'](),'color':{'value':_0x11afd6,'title':_0x494f39||_0x20b3a7}};}return{'type':'format','content':At(_0x4c2939,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x10c56f['commandName']){const _0x3dc5df=_0x10c56f['commandParams'][0x0]['value'];if(_0x3dc5df){const _0xa4a724=_0x13ca38(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2b578a=>_0x2b578a['model']==_0x3dc5df);let _0xe614e2=_0x3dc5df,_0x25edcb='';return _0xa4a724&&(_0xe614e2=_0xa4a724['label'],_0x25edcb=_0x30e8f4(_0xe614e2)['toLowerCase']()),{'type':'format','content':At(_0x4c2939,'*Set\x20font\x20background\x20color:*\x20%0',_0x25edcb)['trim'](),'color':{'value':_0x3dc5df,'title':_0x25edcb||_0xe614e2}};}return{'type':'format','content':At(_0x4c2939,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x542478{['afterInit'](){const {plugins:_0x2b9940}=this['editor'];_0x2b9940['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2b9940['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x375fe9,plugins:_0x15f101,commands:_0x1565d8}=this['editor'],_0x3eba53=_0x15f101['get']('TrackChangesEditing');_0x1565d8['get']('footnotesStyle')&&_0x3eba53['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1565d8['get']('footnotesStart')&&_0x3eba53['enableDefaultAttributesIntegration']('footnotesStart'),_0x3eba53['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x375fe9,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x3eba53['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x375fe9,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x21c220=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5cf1b3,commands:_0x1279d7}=this['editor'];_0x1279d7['get']('insertFootnote')&&_0x21c220['enableCommand']('insertFootnote'),_0x21c220['descriptionFactory']['registerElementLabel']('footnoteRef',_0x21cdee=>At(_0x5cf1b3,'ELEMENT_FOOTNOTE_REF',_0x21cdee)),_0x21c220['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1e63f4=>At(_0x5cf1b3,'ELEMENT_FOOTNOTE_DEFINITION',_0x1e63f4)),_0x21c220['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4f4890=>At(_0x5cf1b3,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4f4890));}}class Qt extends _0x542478{['afterInit'](){const _0x9255e1=this['editor'],_0x41d08c=_0x9255e1['plugins']['get']('TrackChangesEditing'),_0x1a2275=_0x9255e1['commands']['get']('copyFormat'),_0x108cad=_0x9255e1['commands']['get']('pasteFormat');_0x1a2275&&_0x108cad&&(_0x41d08c['enableDefaultAttributesIntegration']('pasteFormat'),_0x41d08c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2833c2=this['editor'],_0x2d7898=_0x2833c2['locale'];_0x2833c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x438a3a=>{if('formatBlock'!=_0x438a3a['type']&&'formatInline'!=_0x438a3a['type'])return;const {data:_0x49dc6e}=_0x438a3a;if(_0x49dc6e&&'pasteFormat'===_0x49dc6e['commandName']){const _0x573acc=[],_0x5cb104=_0x49dc6e['commandParams'][0x0];for(const [_0x13e5e0,_0x1b6645]of Object['entries'](_0x5cb104))_0x573acc['push'](Zt(_0x2833c2,_0x13e5e0,_0x1b6645));return _0x573acc['length']?{'type':'format','content':At(_0x2d7898,'*Set\x20format\x20to:*\x20%0',_0x573acc['join'](',\x20'))}:{'type':'format','content':At(_0x2d7898,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x891146,_0x48488b,_0x3c2a8e){const _0x52bbac=_0x891146['locale']['t'],_0xffcd8d=_0x48488b['split'](/(?=[A-Z])/)['join']('\x20'),_0x5be742=_0x52bbac(_0xffcd8d['charAt'](0x0)['toUpperCase']()+_0xffcd8d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3c2a8e)return _0x5be742;if('fontColor'===_0x48488b||'fontBackgroundColor'===_0x48488b){const _0x3f38f2=_0x13ca38(_0x891146['config']['get']('fontColor.colors'))['find'](_0x3e5f95=>_0x3e5f95['model']==_0x3c2a8e);return _0x5be742+'\x20('+(_0x3f38f2?_0x52bbac(_0x3f38f2['label'])['toLowerCase']():_0x3c2a8e)+')';}if('fontSize'===_0x48488b&&isNaN(parseFloat(_0x3c2a8e))){const _0x36b50f=_0x891146['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x891146['config']['get']('fontSize.options'))['find'](_0x740650=>_0x740650['model']==_0x3c2a8e);return _0x5be742+'\x20('+(_0x36b50f?_0x52bbac(_0x36b50f['title'])['toLowerCase']():_0x3c2a8e)+')';}return _0x5be742+'\x20('+_0x3c2a8e+')';}class Jt extends _0x542478{['_headingOptions'];['afterInit'](){const _0x280a90=this['editor'];if(!_0x280a90['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x280a90['config']['get']('heading.options');const _0xcf76f1=_0x280a90['locale'],_0x53001c=_0x280a90['plugins']['get']('TrackChangesEditing');_0x53001c['enableDefaultAttributesIntegration']('heading');for(const _0x224250 of this['_headingOptions'])'paragraph'!=_0x224250['model']&&_0x53001c['descriptionFactory']['registerElementLabel'](_0x224250['model'],_0x126ec3=>{const _0xb6e166=this['_getHeadingLevel'](_0x224250['model']);return null!==_0xb6e166?_0x4da758(_0x126ec3,_0xb6e166):_0x1fe3f7(_0x126ec3,_0x224250['title']);});function _0x4da758(_0x39513f,_0x3f94ba){return At(_0xcf76f1,'ELEMENT_HEADING',[_0x39513f,_0x3f94ba]);}function _0x1fe3f7(_0x4f7696,_0x483cdc){return At(_0xcf76f1,'ELEMENT_HEADING_CUSTOM',[_0x4f7696,_0x483cdc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a6cd2=this['editor'],_0x6e12e4=_0x4a6cd2['locale'];function _0x1fed79(_0x2fed4a,_0x2dde38){return At(_0x6e12e4,'ELEMENT_HEADING_CUSTOM',[_0x2fed4a,_0x2dde38]);}_0x4a6cd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20b3eb=>{if('formatBlock'!=_0x20b3eb['type'])return;const {data:_0x26d2ae}=_0x20b3eb;if(_0x26d2ae&&'heading'==_0x26d2ae['commandName']){const _0x5b324f=_0x26d2ae['commandParams'][0x0]['value'],_0xfadb95=this['_getHeadingLevel'](_0x5b324f);if(null!==_0xfadb95)return{'type':'format','content':At(_0x6e12e4,'*Change\x20to:*\x20%0',(_0x2f138d=0x1,_0x4925f6=_0xfadb95,At(_0x6e12e4,'ELEMENT_HEADING',[_0x2f138d,_0x4925f6])))};const _0x34d5f0=this['_headingOptions']['find'](_0x5eda5b=>_0x5eda5b['model']===_0x5b324f)['title'];return{'type':'format','content':At(_0x6e12e4,'*Change\x20to:*\x20%0',_0x1fed79(0x1,_0x34d5f0))};}var _0x2f138d,_0x4925f6;});}['_getHeadingLevel'](_0x415f94){const _0x4f4520=_0x415f94['match'](/^heading(\d+)/);if(_0x4f4520)return _0x4f4520[0x1];const _0x45adeb=this['_headingOptions']?.['find'](_0x43ef04=>_0x43ef04['model']==_0x415f94);if(_0x45adeb&&_0x45adeb['view']){const _0x575f51=_0x45adeb['view'],_0xd22d79=(_0x575f51['name']??_0x575f51)['match'](/^h(\d+)/);if(_0xd22d79)return _0xd22d79[0x1];}return null;}}class te extends _0x542478{['afterInit'](){const _0xc72f6=this['editor'];if(!_0xc72f6['plugins']['has']('HighlightEditing'))return;const _0x5ad5e7=_0xc72f6['plugins']['get']('TrackChangesEditing'),_0x4de9e3=_0xc72f6['locale'];_0x5ad5e7['enableDefaultAttributesIntegration']('highlight'),_0x5ad5e7['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x4de9e3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31c80e=this['editor'],_0x28b5d6=_0x31c80e['locale'];_0x31c80e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e105a=>{if('formatInline'!=_0x4e105a['type'])return;const {data:_0x41e2e3}=_0x4e105a;if(_0x41e2e3&&'highlight'==_0x41e2e3['commandName']){const _0x3c0da1=_0x28b5d6['t'],_0x5c4143=_0x41e2e3['commandParams'][0x0]['value'];if(_0x5c4143){const _0x4b101e=_0x31c80e['config']['get']('highlight.options')['find'](_0x5ecafd=>_0x5ecafd['model']==_0x5c4143),_0x1199d3=_0x3c0da1(_0x4b101e['title'])['toLowerCase']();return{'type':'format','content':At(_0x28b5d6,'*Set\x20highlight:*\x20%0',_0x1199d3),'color':{'value':_0x4b101e['color'],'title':_0x4b101e['title']}};}return{'type':'format','content':At(_0x28b5d6,'*Remove\x20highlight*',At(_0x28b5d6,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x542478{['afterInit'](){const _0xe22009=this['editor'];if(!_0xe22009['plugins']['has']('HorizontalLineEditing'))return;_0xe22009['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c0539=_0xe22009['plugins']['get']('TrackChangesEditing'),_0x3913cb=_0xe22009['locale'];_0x4c0539['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2d5f9e=>At(_0x3913cb,'ELEMENT_HORIZONTAL_LINE',_0x2d5f9e));}}class ne extends _0x542478{['afterInit'](){const _0x256819=this['editor'];if(!_0x256819['plugins']['has']('HtmlEmbed'))return;const _0x8d7da3=_0x256819['plugins']['get']('TrackChangesEditing'),_0x4e9407=_0x256819['locale'];_0x8d7da3['descriptionFactory']['registerElementLabel']('rawHtml',_0x566571=>At(_0x4e9407,'ELEMENT_HTML_EMBED',_0x566571)),_0x8d7da3['enableDefaultAttributesIntegration']('htmlEmbed'),_0x8d7da3['descriptionFactory']['registerDescriptionCallback'](_0xfd6a07=>{if('attribute'!=_0xfd6a07['type'])return;const {data:_0x6b9dfa}=_0xfd6a07;if(_0x6b9dfa&&'value'==_0x6b9dfa['key']&&_0xfd6a07['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1bab36=At(_0x4e9407,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x4e9407,'*Change\x20%0\x20content*',_0x1bab36)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16df28=this['editor'],_0x112898=_0x16df28['locale'];_0x16df28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e5dee=>{if('formatBlock'!=_0x3e5dee['type'])return;const {data:_0x488561}=_0x3e5dee;if(_0x488561&&'htmlEmbed'==_0x488561['commandName']){const _0x47e1b0=At(_0x112898,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x112898,'*Change\x20%0\x20content*',_0x47e1b0)};}});}}class ie extends _0x542478{['afterInit'](){const _0x31b9ff=this['editor'];if(!_0x31b9ff['plugins']['has']('ImageEditing'))return;const _0x46c01c=_0x31b9ff['plugins']['get']('TrackChangesEditing'),_0xaebb81=_0x31b9ff['plugins']['get']('ImageUtils'),_0x11fe03=_0x31b9ff['locale'];_0x46c01c['enableCommand']('insertImage'),_0x46c01c['descriptionFactory']['registerElementLabel']('imageBlock',_0x4893e1=>At(_0x11fe03,'ELEMENT_IMAGE',_0x4893e1)),_0x46c01c['descriptionFactory']['registerElementLabel']('imageInline',_0x425e5e=>At(_0x11fe03,'ELEMENT_INLINE_IMAGE',_0x425e5e)),_0x46c01c['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x11fe03,'ELEMENT_CAPTION')),_0x31b9ff['plugins']['has']('ImageUploadEditing')&&_0x46c01c['enableCommand']('uploadImage'),_0x31b9ff['plugins']['has']('ImageBlockEditing')&&_0x31b9ff['plugins']['has']('ImageInlineEditing')&&(_0x46c01c['enableCommand']('imageTypeInline',(_0x462ef8,_0x5a2238)=>{const _0x4cc380=_0xaebb81['getClosestSelectedImageElement'](_0x31b9ff['model']['document']['selection']);_0x31b9ff['model']['change'](()=>{_0x46c01c['markBlockFormat'](_0x4cc380,{'commandName':'imageTypeInline','commandParams':[_0x5a2238]},[],'convertBlockImageToInline');});}),_0x46c01c['enableCommand']('imageTypeBlock',(_0x59bf74,_0xd81317)=>{_0x31b9ff['model']['change'](_0x471ec4=>{let _0x321686=_0xaebb81['getClosestSelectedImageElement'](_0x31b9ff['model']['document']['selection']),_0x3eaf04=_0x471ec4['createRangeOn'](_0x321686);const _0xf2ce26=tt['fromPosition'](_0x3eaf04['start'],'toPrevious'),_0x462131=tt['fromPosition'](_0x3eaf04['end'],'toNext');_0x46c01c['forceDefaultExecution'](()=>_0x59bf74(_0xd81317)),_0x321686=_0xaebb81['getClosestSelectedImageElement'](_0x31b9ff['model']['document']['selection']),_0x3eaf04=_0x471ec4['createRangeOn'](_0x321686);const _0x5a896e=_0x471ec4['createRange'](_0xf2ce26,_0x462131);_0xf2ce26['detach'](),_0x462131['detach'](),_0x46c01c['markBlockFormat'](_0x321686,{'commandName':'imageTypeInline','commandParams':[_0xd81317]},[],'convertInlineImageToBlock'),_0x5a896e['start']['isBefore'](_0x3eaf04['start'])&&_0x46c01c['markInsertion'](_0x471ec4['createRange'](_0x5a896e['start'],_0x3eaf04['start']),'convertInlineImageToBlock'),_0x3eaf04['end']['isBefore'](_0x5a896e['end'])&&_0x46c01c['markInsertion'](_0x471ec4['createRange'](_0x3eaf04['end'],_0x5a896e['end']),'convertInlineImageToBlock');});}),_0x46c01c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x46c01c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x46c01c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x46c01c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x46c01c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x46c01c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x306b12])=>{const _0x505e02=_0x46c01c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4f9796=_0x306b12['start'],_0x35c3e0=_0x306b12['end'];const _0x481137=_0x31b9ff['model']['schema']['getNearestSelectionRange'](_0x4f9796,'backward'),_0xd106b3=_0x31b9ff['model']['schema']['getNearestSelectionRange'](_0x35c3e0,'forward');_0x481137['isCollapsed']&&(_0x4f9796=_0x481137['start']),_0xd106b3['isCollapsed']&&(_0x35c3e0=_0xd106b3['end']),_0x505e02([_0x31b9ff['model']['createRange'](_0x4f9796,_0x35c3e0)]);}),_0x46c01c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5c0450),_0x46c01c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5c0450)),_0x31b9ff['plugins']['has']('ImageCaptionEditing')&&(_0x46c01c['enableCommand']('toggleImageCaption',(_0x4488ee,_0x5925cc)=>{const _0x5d2471=_0x31b9ff['plugins']['get']('ImageCaptionUtils');let _0x3715da=_0xaebb81['getClosestSelectedImageElement'](_0x31b9ff['model']['document']['selection']),_0x4a38ea=_0x5d2471['getCaptionFromImageModelElement'](_0x3715da);_0x31b9ff['model']['change'](()=>{if(_0x4a38ea)return void _0x46c01c['markDeletion'](_0x31b9ff['model']['createRangeOn'](_0x4a38ea));const _0x562f48=_0xaebb81['isBlockImage'](_0x3715da);_0x4488ee(_0x5925cc),_0x3715da=_0xaebb81['getClosestSelectedImageElement'](_0x31b9ff['model']['document']['selection']),_0x4a38ea=_0x5d2471['getCaptionFromImageModelElement'](_0x3715da),_0x46c01c['markInsertion'](_0x31b9ff['model']['createRangeOn'](_0x4a38ea),_0x562f48?null:'imageCaption');});}),_0x46c01c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5c0450));const _0x8d8805=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x39730b(_0x3efeb1,_0x1c45af){const _0x23182e=_0x8d8805['findIndex'](({type:_0x1f3e79,subType:_0x398131})=>_0x3efeb1['type']==_0x1f3e79&&_0x3efeb1['subType']==_0x398131),_0x49cf08=_0x8d8805['findIndex'](({type:_0x5907aa,subType:_0x5d6c5d})=>_0x1c45af['type']==_0x5907aa&&_0x1c45af['subType']==_0x5d6c5d);if(_0x23182e<0x0||_0x49cf08<0x0)return!0x1;const _0x467818=_0x3efeb1['getFirstRange'](),_0x4a10c3=_0x1c45af['getFirstRange']();if((0x0==_0x23182e||0x1==_0x23182e)&&0x2==_0x49cf08&&_0x467818['isIntersecting'](_0x4a10c3))return!0x0;if(0x2==_0x23182e&&0x3==_0x49cf08){const _0x57db2a=_0x46c01c['_findSuggestions'](_0x467818,'insertion')['filter'](({suggestion:_0x40cc0a,meta:_0x4f55f3})=>_0x4f55f3['isOwn']&&'convertInlineImageToBlock'==_0x40cc0a['subType']);if(_0x57db2a['length']>0x1&&_0x4a10c3['end']['isEqual'](_0x467818['start']))return!0x0;if(0x1==_0x57db2a['length']&&(_0x467818['start']['isEqual'](_0x4a10c3['end'])||_0x467818['end']['isEqual'](_0x4a10c3['start'])))return!0x0;}if(0x3==_0x23182e&&0x3==_0x49cf08&&_0x467818['start']['isBefore'](_0x4a10c3['start'])){const _0x45a075=_0x467818['end']['nodeAfter'],_0x17dfaf=_0x4a10c3['start']['nodeBefore'];return _0xaebb81['isBlockImage'](_0x45a075)&&_0x45a075===_0x17dfaf;}return!0x1;}function _0x5c0450(_0x3e92e0,_0x246b16){return _0x39730b(_0x3e92e0,_0x246b16)?[_0x3e92e0,_0x246b16]:_0x39730b(_0x246b16,_0x3e92e0)?[_0x246b16,_0x3e92e0]:null;}_0x31b9ff['plugins']['has']('ImageResize')&&(_0x46c01c['enableDefaultAttributesIntegration']('resizeImage'),_0x46c01c['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x11fe03,'FORMAT_IMAGE_SIZE'))),_0x31b9ff['plugins']['has']('ImageTextAlternativeEditing')&&_0x46c01c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x31b9ff['plugins']['has']('PictureEditing')&&_0x46c01c['descriptionFactory']['registerDescriptionCallback'](_0x36b29e=>{if('attribute'!=_0x36b29e['type'])return;const {data:_0x257f7c}=_0x36b29e;return _0x257f7c&&'sources'==_0x257f7c['key']?{'type':'format','content':''}:void 0x0;}),_0x31b9ff['plugins']['has']('ImageSizeAttributes')&&_0x46c01c['descriptionFactory']['registerDescriptionCallback'](_0x2fa2d7=>{if('attribute'!=_0x2fa2d7['type'])return;const {data:_0x1769ce}=_0x2fa2d7;return!_0x1769ce||'width'!=_0x1769ce['key']&&'height'!=_0x1769ce['key']?void 0x0:{'type':'format','content':''};}),_0x46c01c['descriptionFactory']['registerDescriptionCallback'](_0x758e29=>{if(!!_0x8d8805['find'](({type:_0x7ec3ae,subType:_0x519697})=>_0x758e29['type']==_0x7ec3ae&&_0x758e29['subType']==_0x519697))return _0x758e29['previous']?{}:void 0x0;}),_0x46c01c['descriptionFactory']['registerDescriptionCallback'](_0x238a2d=>{if('insertion'==_0x238a2d['type']||'deletion'==_0x238a2d['type']){const _0x2d7fb9=_0x238a2d['getContainedElement']();if(_0x2d7fb9&&_0x2d7fb9['is']('element','caption'))return{'type':'insertion'==_0x238a2d['type']?'addObject':'removeObject','element':_0x2d7fb9,'quantity':0x1};}}),_0x46c01c['descriptionFactory']['registerDescriptionCallback'](_0x171c4d=>'formatBlock'==_0x171c4d['type']&&'convertInlineImageToBlock'==_0x171c4d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x171c4d['type']&&'convertBlockImageToInline'==_0x171c4d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x46c01c['descriptionFactory']['registerDescriptionCallback'](_0x3ce7e1=>{if('attribute'!=_0x3ce7e1['type'])return;const {data:_0x164fe8}=_0x3ce7e1;if(!_0x164fe8||'alt'!=_0x164fe8['key'])return;const _0x2e6377=_0x164fe8['newValue'];return _0x2e6377?{'type':'format','content':At(_0x11fe03,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e6377+'\x22')}:{'type':'format','content':At(_0x11fe03,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x247753=this['editor'],_0x153b6a=_0x247753['locale'];_0x247753['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcfe0d2=>{if('formatBlock'!=_0xcfe0d2['type']&&'formatInline'!=_0xcfe0d2['type'])return;const {data:_0x3d36aa}=_0xcfe0d2;if(_0x3d36aa){if('imageTextAlternative'==_0x3d36aa['commandName']){const _0x5422db=_0x3d36aa['commandParams'][0x0]['newValue'];return _0x5422db?{'type':'format','content':At(_0x153b6a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5422db+'\x22')}:{'type':'format','content':At(_0x153b6a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3d36aa['commandName']){const _0xe72bcd=_0x3d36aa['commandParams'][0x0]['width'];return _0xe72bcd?{'type':'format','content':At(_0x153b6a,'*Set\x20image\x20width:*\x20%0',_0xe72bcd)}:{'type':'format','content':At(_0x153b6a,'*Reset\x20image\x20width*')};}}});}}class se extends _0x542478{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3d266f=this['editor']['locale'],_0x216123=this['editor']['plugins']['get']('TrackChangesEditing');_0x216123['enableDefaultAttributesIntegration']('replaceImageSource'),_0x216123['descriptionFactory']['registerDescriptionCallback'](_0x13583b=>{if('attribute'!=_0x13583b['type'])return;const {data:_0x4f77a3}=_0x13583b;return _0x4f77a3&&'src'==_0x4f77a3['key']?_0x4f77a3['newValue']&&_0x4f77a3['oldValue']?{'type':'format','content':At(_0x3d266f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x554e31=this['editor']['plugins']['get']('TrackChangesEditing');_0x554e31['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x554e31['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x554e31['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x554e31['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2111c1=this['editor'],_0x2ed599=_0x2111c1['locale'];_0x2111c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c4269=>{if('formatBlock'!=_0x4c4269['type']&&'formatInline'!=_0x4c4269['type'])return;const {data:_0x4a0abf}=_0x4c4269;if(!_0x4a0abf||'replaceImageSource'!=_0x4a0abf['commandName'])return;return{'type':'format','content':At(_0x2ed599,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x542478{['afterInit'](){const _0x2056bf=this['editor'];if(!_0x2056bf['plugins']['has']('ImageStyleEditing'))return;const _0x175f24=_0x2056bf['plugins']['get']('TrackChangesEditing'),_0x543896=_0x2056bf['plugins']['get']('ImageUtils'),_0x123894={};_0x175f24['enableCommand']('imageStyle',(_0x50f3ae,_0x2307ae)=>{const _0x3b1245=_0x2056bf['plugins']['get']('Users')['me'],_0x2f6b95=_0x2056bf['commands']['get']('imageStyle');let _0x416640=_0x543896['getClosestSelectedImageElement'](_0x2056bf['model']['document']['selection']),_0x4f9e4f=_0x2056bf['model']['createRangeOn'](_0x416640),_0x3fe325=_0x2f6b95['value'];if(_0x3fe325==_0x2307ae['value'])return;const _0x2ab80f={'commandName':'imageStyle','commandParams':[_0x2307ae],'formatGroupId':_0x6e7e15()};_0x2056bf['model']['change'](()=>{if(_0x175f24['getSuggestions']()['filter'](_0x22d95c=>_0x22d95c['isInContent']&&_0x3b1245==_0x22d95c['author']&&('formatBlock'==_0x22d95c['type']||'formatInline'==_0x22d95c['type'])&&('imageStylePreApply'==_0x22d95c['subType']||'imageStylePostApply'==_0x22d95c['subType'])&&_0x22d95c['getFirstRange']()['isEqual'](_0x4f9e4f))['forEach'](_0x2b4bde=>_0x175f24['discardSuggestion'](_0x2b4bde['head'])),_0x416640=_0x543896['getClosestSelectedImageElement'](_0x2056bf['model']['document']['selection']),_0x4f9e4f=_0x2056bf['model']['createRangeOn'](_0x416640),_0x2f6b95['refresh'](),_0x2056bf['commands']['get']('imageTypeInline')['refresh'](),_0x2056bf['commands']['get']('imageTypeBlock')['refresh'](),_0x3fe325=_0x2f6b95['value'],_0x3fe325!=_0x2307ae['value'])return _0x543896['isInlineImage'](_0x416640)&&_0x2f6b95['shouldConvertImageType'](_0x2307ae['value'],_0x416640)?(_0x50f3ae({..._0x2307ae,'setImageSizes':!0x1}),_0x416640=_0x543896['getClosestSelectedImageElement'](_0x2056bf['model']['document']['selection']),void _0x175f24['markBlockFormat'](_0x416640,{..._0x2ab80f,'commandReversedParams':[{'value':_0x3fe325||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x543896['isBlockImage'](_0x416640)?_0x175f24['markBlockFormat'](_0x416640,_0x2ab80f,[],'imageStylePostApply'):_0x175f24['markInlineFormat'](_0x4f9e4f,_0x2ab80f,'imageStylePostApply'));});});for(const _0xc2a85e of _0x2056bf['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x123894[_0xc2a85e['name']]=_0xc2a85e['title']['toLowerCase']();_0x175f24['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x175f24['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x175f24['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x175f24['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x559259])=>{_0x543896['setImageNaturalSizeAttributes'](_0x559259['getContainedElement']());}),_0x175f24['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3ffee4,_0xdc97a0)=>{_0x175f24['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3ffee4,{'commandName':_0xdc97a0['commandName'],'commandParams':_0xdc97a0['commandReversedParams']});}),_0x175f24['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x12e3e6,_0x5699ab){if(_0x5245ee(_0x12e3e6,_0x5699ab))return[_0x12e3e6,_0x5699ab];if(_0x5245ee(_0x5699ab,_0x12e3e6))return[_0x5699ab,_0x12e3e6];return null;});const _0x36651e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5245ee(_0x1c3839,_0x388eae){const _0x2d3704=_0x36651e['findIndex'](({type:_0x31014e,subType:_0x1c7428})=>_0x1c3839['type']==_0x31014e&&_0x1c3839['subType']==_0x1c7428),_0x5ef2fb=_0x36651e['findIndex'](({type:_0x1bb7fa,subType:_0x18d7fa})=>_0x388eae['type']==_0x1bb7fa&&_0x388eae['subType']==_0x18d7fa);if(_0x2d3704<0x0||_0x5ef2fb<0x0)return!0x1;const _0x8022d9=_0x1c3839['getFirstRange'](),_0x3a68d6=_0x388eae['getFirstRange']();if((0x0==_0x2d3704||0x1==_0x2d3704)&&0x2==_0x5ef2fb&&_0x8022d9['isIntersecting'](_0x3a68d6))return!0x0;if(0x2==_0x2d3704&&0x3==_0x5ef2fb){const _0x3e3346=_0x175f24['_findSuggestions'](_0x8022d9,'insertion')['filter'](({suggestion:_0x2c49a8,meta:_0x5db2ff})=>_0x5db2ff['isOwn']&&'convertInlineImageToBlock'==_0x2c49a8['subType']);if(_0x3e3346['length']>0x1&&_0x3a68d6['end']['isEqual'](_0x8022d9['start']))return!0x0;if(0x1==_0x3e3346['length']&&(_0x8022d9['start']['isEqual'](_0x3a68d6['end'])||_0x8022d9['end']['isEqual'](_0x3a68d6['start'])))return!0x0;}if(0x3==_0x2d3704&&0x3==_0x5ef2fb&&_0x8022d9['start']['isBefore'](_0x3a68d6['start'])){const _0x428525=_0x8022d9['end']['nodeAfter'],_0x5ae220=_0x3a68d6['start']['nodeBefore'];return _0x543896['isBlockImage'](_0x428525)&&_0x428525===_0x5ae220;}return!0x1;}_0x2056bf['model']['document']['registerPostFixer'](()=>{let _0x2b11b9=!0x1;const _0xd8adfd=Array['from'](_0x2056bf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a68a1,data:_0x46f3f5}of _0xd8adfd){const {group:_0x1b66e2,type:_0xcbb4dd,subType:_0x3dac1a,id:_0x517ad9}=_0x5024a3(_0x2a68a1);if('suggestion'==_0x1b66e2&&_0x175f24['hasSuggestion'](_0x517ad9)){if('formatBlock'==_0xcbb4dd&&('imageStylePreApply'==_0x3dac1a||'imageStylePostApply'==_0x3dac1a)){const _0x414c0d=_0x175f24['getSuggestion'](_0x517ad9);if(_0x46f3f5['newRange']){const _0x3c4b86=_0x414c0d['getFirstRange']()['getContainedElement']();if(_0x543896['isBlockImage'](_0x3c4b86))continue;_0x175f24['discardSuggestion'](_0x414c0d),_0x2b11b9=!0x0;}}if('insertion'==_0xcbb4dd&&'imageCaption'==_0x3dac1a&&!_0x46f3f5['newRange']){const _0x458236=_0x175f24['getSuggestion'](_0x517ad9);_0x458236['next']&&_0x458236['next']['isInContent']&&(_0x175f24['discardSuggestion'](_0x458236['next']),_0x2b11b9=!0x0);}}}return _0x2b11b9;}),this['_registerLegacyDescription'](_0x123894);}['_registerLegacyDescription'](_0x4f6cd2){const _0x35bf94=this['editor'],_0x165752=_0x35bf94['locale'];_0x35bf94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x169f48=>{if('formatBlock'!=_0x169f48['type']&&'formatInline'!=_0x169f48['type'])return;const {data:_0x423fe7}=_0x169f48;if(!_0x423fe7||'imageStyle'!=_0x423fe7['commandName'])return;const _0x300e38=_0x423fe7['commandParams'][0x0]['value'];return _0x91d2ff('side'===_0x300e38?At(_0x165752,'FORMAT_SIDE_IMAGE'):_0x4f6cd2[_0x300e38]||_0x300e38);function _0x91d2ff(_0xcfa913){return{'type':'format','content':At(_0x165752,'*Format:*\x20%0',_0xcfa913)};}});}}class oe extends _0x542478{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2cea1d){super(_0x2cea1d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5b43cb=this['editor'],_0x1da2d0=_0x5b43cb['commands']['get']('importWord'),_0x14e271=_0x5b43cb['commands']['get']('trackChanges');_0x1da2d0&&(_0x1da2d0['on']('execute',(_0x46cfc8,[,_0x3eac6c])=>{this['_trackChangesValueDuringImport']=_0x14e271['value'],_0x3eac6c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1da2d0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1da2d0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x14e271['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5b43cb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1b3664,_0x4a6377){const {suggestions:_0x385cc5}=_0x4a6377,_0x1dd575=this['editor']['commands']['get']('trackChanges'),_0x7fa00=_0x1dd575['value'];this['_trackChangesValueDuringImport']!==_0x7fa00&&(_0x1dd575['execute'](),this['_trackChangesExecuted']=!0x0),_0x385cc5&&_0x385cc5['forEach'](({id:_0xd84dc1,type:_0x56df1c,author:_0x11ffe8,created_at:_0x379bd0})=>{const _0x21c41c={'id':_0xd84dc1,'type':_0x56df1c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x11ffe8,'createdAt':_0x379bd0?new Date(_0x379bd0):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x21c41c);});}}class ae extends _0x542478{['afterInit'](){const _0x3fa128=this['editor'],_0x887ce1=_0x3fa128['plugins']['get']('TrackChangesEditing');if(_0x3fa128['plugins']['has']('IndentEditing')&&(_0x887ce1['enableCommand']('indent'),_0x887ce1['enableCommand']('outdent')),_0x3fa128['plugins']['has']('IndentBlock')){for(const _0x4c67f6 of['indentBlock','outdentBlock'])_0x887ce1['enableDefaultAttributesIntegration'](_0x4c67f6);if(_0x3fa128['plugins']['has']('ListEditing')){for(const _0x5c0504 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x887ce1['enableDefaultAttributesIntegration'](_0x5c0504);}}const _0x6662c1=_0x3fa128['locale'];_0x887ce1['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x6662c1,'FORMAT_INDENT')),_0x887ce1['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x6662c1,'FORMAT_INDENT')),_0x887ce1['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x6662c1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29b1c6=this['editor'],_0x16cd11=_0x29b1c6['locale'],_0x38aea8=_0x29b1c6['plugins']['get']('TrackChangesEditing');_0x38aea8['descriptionFactory']['registerDescriptionCallback'](_0x1d5c43=>{if('formatBlock'!=_0x1d5c43['type'])return;const {data:_0x32e6f9}=_0x1d5c43;if(!_0x32e6f9)return;if('indentBlock'!=_0x32e6f9['commandName']&&'outdentBlock'!=_0x32e6f9['commandName'])return;const _0x3664e7=_0x1d5c43['getItems']()[0x0],_0x3e396f=_0x38aea8['descriptionFactory']['getItemLabel'](_0x3664e7);return'indentBlock'==_0x32e6f9['commandName']?{'type':'format','content':At(_0x16cd11,'*Indent:*\x20%0',_0x3e396f)}:'outdentBlock'==_0x32e6f9['commandName']?{'type':'format','content':At(_0x16cd11,'*Outdent:*\x20%0',_0x3e396f)}:void 0x0;});}}class ce extends _0x542478{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x542478{['afterInit'](){const _0x38c6f6=this['editor'];if(!_0x38c6f6['plugins']['has']('LinkEditing'))return;const _0x271e4c=_0x38c6f6['plugins']['get']('TrackChangesEditing'),_0x4003b3=_0x38c6f6['commands']['get']('link');_0x271e4c['enableDefaultAttributesIntegration']('link'),_0x271e4c['enableDefaultAttributesIntegration']('unlink');for(const _0x5d8ad7 of _0x4003b3['manualDecorators'])_0x271e4c['descriptionFactory']['registerAttributeLabel'](_0x5d8ad7['id'],'link\x20('+_0x5d8ad7['label']['toLowerCase']()+')');_0x271e4c['descriptionFactory']['registerDescriptionCallback'](_0x5eb020=>{if('attribute'!=_0x5eb020['type'])return;const {data:_0x40175f}=_0x5eb020;if(!_0x40175f||'linkHref'!=_0x40175f['key'])return;const _0x122ecd=_0x40175f['newValue'],_0x4b30c3=_0x38c6f6['locale'];return{'type':'format','content':null==_0x122ecd?At(_0x4b30c3,'*Remove\x20link*'):At(_0x4b30c3,'*Set\x20link:*\x20%0','\x22'+_0x122ecd+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9f87eb=this['editor'],_0x38a272=_0x9f87eb['locale'];_0x9f87eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x289f1c=>{if('formatInline'!=_0x289f1c['type'])return;const {data:_0x378368}=_0x289f1c;if(_0x378368){if('link'==_0x378368['commandName']){const _0x34c603=_0x378368['commandParams'][0x0];return{'type':'format','content':At(_0x38a272,'*Set\x20link:*\x20%0','\x22'+_0x34c603+'\x22')};}return'unlink'==_0x378368['commandName']?{'type':'format','content':At(_0x38a272,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x542478{['afterInit'](){const _0x51a2f5=this['editor'],_0x15f7ba=_0x51a2f5['locale'];if(!_0x51a2f5['plugins']['has']('LegacyListEditing'))return;const _0x1d2e0b=_0x51a2f5['plugins']['get']('TrackChangesEditing'),_0x292be=_0x51a2f5['plugins']['has']('LegacyTodoListEditing');function _0x44dbf5(_0x129b2b){return()=>{const _0x16e855=_0x51a2f5['model']['document']['selection'],_0x316ec8=_0x51a2f5['commands']['get'](_0x129b2b);if(_0x316ec8['value'])return void _0x51a2f5['execute']('paragraph',{});const _0x523dc6=_0x129b2b['slice'](0x0,-0x4),_0x37071d=function(_0x45f50d,_0x3de3bf,_0x3f578b){let _0x53b2e6=Array['from'](_0x45f50d)['filter'](_0x221fef=>function(_0x6b7ea1,_0x52f52f){return _0x52f52f['checkChild'](_0x6b7ea1['parent'],'listItem')&&!_0x52f52f['isObject'](_0x6b7ea1);}(_0x221fef,_0x3f578b));_0x53b2e6=_0x53b2e6['filter'](_0x541547=>!_0x541547['is']('element','listItem')||_0x541547['getAttribute']('listType')!=_0x3de3bf);const _0x4d30f5=new Set();for(const _0x389512 of _0x53b2e6)_0x389512['is']('element','listItem')?_0x4d30f5['add'](he(_0x389512)):_0x4d30f5['add'](_0x389512);return Array['from'](_0x4d30f5);}(_0x16e855['getSelectedBlocks'](),_0x523dc6,_0x51a2f5['model']['schema']);_0x51a2f5['model']['change'](()=>{for(const _0x6b8a11 of _0x37071d)_0x1d2e0b['markBlockFormat'](_0x6b8a11,{'commandName':_0x129b2b,'commandParams':[{'forceValue':!_0x316ec8['value']}],'formatGroupId':'blockName'},de(_0x6b8a11));});};}function _0x220596(_0x4b1181){return()=>{const _0x41f16a=function(_0x231916){let _0x3c5100=Array['from'](_0x231916);const _0x45d58d=_0x3c5100['findIndex'](_0x4b5c77=>'listItem'!=_0x4b5c77['name']);return _0x45d58d>-0x1&&(_0x3c5100=_0x3c5100['slice'](0x0,_0x45d58d)),_0x3c5100;}(_0x51a2f5['model']['document']['selection']['getSelectedBlocks']()),_0x50f9be=_0x51a2f5['model']['createRange'](_0x51a2f5['model']['createPositionAt'](_0x41f16a[0x0],'before'),_0x51a2f5['model']['createPositionAt'](_0x41f16a[_0x41f16a['length']-0x1],'end'));_0x51a2f5['model']['change'](()=>{_0x1d2e0b['markBlockFormat'](_0x50f9be,{'commandName':_0x4b1181,'commandParams':[],'formatGroupId':'listIndent'},function(_0x20aa46){const _0x3000ec=new Set();for(const _0xf5c95e of _0x20aa46){let _0x3060e7=_0xf5c95e['nextSibling'];for(;_0x3060e7&&_0x3060e7['getAttribute']('listIndent')>_0xf5c95e['getAttribute']('listIndent');)_0x3000ec['add'](_0x3060e7),_0x3060e7=_0x3060e7['nextSibling'];}return Array['from'](_0x3000ec);}(_0x41f16a));});};}_0x1d2e0b['enableCommand']('numberedList',_0x44dbf5('numberedList')),_0x1d2e0b['enableCommand']('bulletedList',_0x44dbf5('bulletedList')),_0x292be&&_0x1d2e0b['enableCommand']('todoList',_0x44dbf5('todoList')),_0x1d2e0b['enableCommand']('indentList',_0x220596('indentList')),_0x1d2e0b['enableCommand']('outdentList',_0x220596('outdentList')),_0x292be&&_0x1d2e0b['enableCommand']('checkTodoList',()=>{const _0x3c47e3=_0x51a2f5['commands']['get']('checkTodoList'),_0x183875=Array['from'](_0x3c47e3['_selectedElements']);_0x183875['filter'](_0x12e091=>_0x12e091['getAttribute']('todoListChecked')!=_0x3c47e3['value']),_0x51a2f5['model']['change'](()=>{for(const _0x418577 of _0x183875)_0x1d2e0b['markBlockFormat'](_0x418577,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3c47e3['value']}]});});}),_0x1d2e0b['descriptionFactory']['registerElementLabel']('listItem',_0x1867e5=>At(_0x15f7ba,'ELEMENT_LIST_ITEM',_0x1867e5)),_0x1d2e0b['descriptionFactory']['registerDescriptionCallback'](_0x3d6b74=>{if('formatBlock'!=_0x3d6b74['type']&&'formatInline'!=_0x3d6b74['type'])return;const {data:_0x51f549}=_0x3d6b74;if(_0x51f549){if('numberedList'==_0x51f549['commandName']||'bulletedList'==_0x51f549['commandName']||'todoList'==_0x51f549['commandName'])switch(_0x51f549['commandName']['replace']('List','')){case'bulleted':return _0x5126ca(At(_0x15f7ba,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5126ca(At(_0x15f7ba,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5126ca(At(_0x15f7ba,'ELEMENT_TODO_LIST'));}if('indentList'==_0x51f549['commandName'])return{'type':'format','content':At(_0x15f7ba,'*Indent:*\x20%0',At(_0x15f7ba,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x51f549['commandName'])return{'type':'format','content':At(_0x15f7ba,'*Outdent:*\x20%0',At(_0x15f7ba,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x51f549['commandName'])return _0x51f549['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x15f7ba,'*Check\x20item*')}:{'type':'format','content':At(_0x15f7ba,'*Uncheck\x20item*')};}function _0x5126ca(_0x5adb4d){return{'type':'format','content':At(_0x15f7ba,'*Change\x20to:*\x20%0',_0x5adb4d)};}});}}function he(_0x5cdb42){const _0x2166b7=_0x5cdb42['getAttribute']('listIndent');if(0x0==_0x2166b7)return _0x5cdb42;let _0x25a469=_0x5cdb42;for(;_0x5cdb42['previousSibling']&&_0x5cdb42['previousSibling']['is']('element','listItem');){const _0x109ac2=_0x5cdb42['previousSibling']['getAttribute']('listIndent');if(_0x109ac2==_0x2166b7)_0x25a469=_0x5cdb42['previousSibling'];else{if(_0x109ac2<_0x2166b7)break;}_0x5cdb42=_0x5cdb42['previousSibling'];}return _0x25a469;}function de(_0x556a0f){const _0x2ed36=[];if(_0x556a0f['is']('element','listItem')&&_0x556a0f['getAttribute']('listIndent')>0x0){let _0x32636a=_0x556a0f['nextSibling'];for(;_0x32636a&&'listItem'==_0x32636a['name']&&_0x32636a['getAttribute']('listIndent')==_0x556a0f['getAttribute']('listIndent');)_0x2ed36['push'](_0x32636a),_0x32636a=_0x32636a['nextSibling'];}return _0x2ed36;}class fe extends _0x542478{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x57ff6e=this['editor']['config']['get']('list.properties'),_0x25e22d=this['editor']['plugins']['get']('TrackChangesEditing');_0x57ff6e['styles']&&_0x25e22d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x57ff6e['reversed']&&_0x25e22d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x57ff6e['startIndex']&&_0x25e22d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x25e22d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x17426c,_0xd00722={}){const _0x1696d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc9b6b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1696d0['markMultiRangeBlockFormat'](_0xc9b6b,{'commandName':'listStyle','commandParams':[{'type':_0xd00722['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5dd405,_0x28cbee={}){const _0x57c7bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b69a9=this['_getSuggestionBlocks'](_0x5afd71=>_0x5afd71['is']('element','listItem')&&'numbered'===_0x5afd71['getAttribute']('listType'));if(_0x1b69a9['length']<0x1)return;const _0x2c2fc6=_0x1b69a9['map'](_0x1a16ab=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a16ab,'before'),this['editor']['model']['createPositionAt'](_0x1a16ab,0x0)));this['editor']['model']['change'](()=>{_0x57c7bc['markMultiRangeBlockFormat'](_0x2c2fc6,{'commandName':'listReversed','commandParams':[{'reversed':_0x28cbee['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x482417,_0x17b3e0={}){const _0xb14135=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55eaab=this['_getSuggestionBlocks'](_0x831f8d=>_0x831f8d['is']('element','listItem')&&'numbered'===_0x831f8d['getAttribute']('listType'));if(_0x55eaab['length']<0x1)return;const _0x3f89c5=_0x55eaab['map'](_0x2e57e0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e57e0,'before'),this['editor']['model']['createPositionAt'](_0x2e57e0,0x0)));this['editor']['model']['change'](()=>{_0xb14135['markMultiRangeBlockFormat'](_0x3f89c5,{'commandName':'listStart','commandParams':[{'startIndex':_0x17b3e0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1a831b){if('formatBlock'!=_0x1a831b['type']&&'formatInline'!=_0x1a831b['type'])return;const _0x2e7518=this['editor']['locale'],{data:_0x220c2b}=_0x1a831b;if(!_0x220c2b)return;let _0xf63430,_0x56f865;switch(_0x220c2b['commandName']){case'listStyle':_0xf63430='*Change\x20to:*\x20%0',_0x56f865={'type':'format','content':At(_0x2e7518,_0xf63430,At(_0x2e7518,this['_getTranslationKeyForListStyle'](_0x220c2b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xf63430=_0x220c2b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56f865={'type':'format','content':At(_0x2e7518,_0xf63430)};break;case'listStart':_0xf63430='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56f865={'type':'format','content':At(_0x2e7518,_0xf63430,_0x220c2b['commandParams'][0x0]['startIndex'])};}return _0x56f865;}['_getSuggestionBlocksForListStyle'](){const _0x5becaf=this['editor']['plugins']['get']('LegacyListUtils');let _0x28abfb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x28abfb[0x0]?.['is']('element','listItem')&&_0x28abfb['unshift'](..._0x5becaf['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x28abfb[_0x28abfb['length']-0x1]?.['is']('element','listItem')&&_0x28abfb['push'](..._0x5becaf['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x28abfb=[...new Set(_0x28abfb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x28abfb=_0x28abfb['filter'](_0x1cda8d=>_0x1cda8d['is']('element','listItem'))),_0x28abfb;}['_getSuggestionBlocks'](_0x1a31d6){const _0xcc6dce=this['editor']['plugins']['get']('LegacyListUtils');let _0x5415cd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1a31d6)['map'](_0x332b4f=>{const _0x348998=this['editor']['model']['createPositionAt'](_0x332b4f,0x0);return[..._0xcc6dce['getSiblingNodes'](_0x348998,'backward'),..._0xcc6dce['getSiblingNodes'](_0x348998,'forward')];})['flat']();return _0x5415cd=[...new Set(_0x5415cd)],_0x5415cd;}['_getTranslationKeyForListStyle'](_0x3f05c2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3f05c2)||'default')['toUpperCase']()+'_LIST_'+_0x3f05c2['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x542478{['afterInit'](){const _0x2bd9c2=this['editor'];if(!_0x2bd9c2['plugins']['has']('MediaEmbedEditing'))return;const _0x28cf5b=_0x2bd9c2['plugins']['get']('TrackChangesEditing'),_0x3b733b=_0x2bd9c2['locale'];_0x28cf5b['enableCommand']('mediaEmbed'),_0x28cf5b['descriptionFactory']['registerElementLabel']('media',_0x4bfc4d=>At(_0x3b733b,'ELEMENT_MEDIA',_0x4bfc4d));}}class me extends _0x542478{['afterInit'](){const _0x188d47=this['editor'];_0x188d47['plugins']['has']('MentionEditing')&&_0x188d47['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x542478{['afterInit'](){const _0xbade1d=this['editor'];if(!_0xbade1d['plugins']['has']('MergeFieldsEditing'))return;const _0x332b41=_0xbade1d['plugins']['get']('TrackChangesEditing'),_0x1211b4=_0xbade1d['locale'];_0x332b41['enableCommand']('insertMergeField'),_0x332b41['enableCommand']('insertMergeFieldBlock'),_0x332b41['enableCommand']('insertMergeFieldImage'),_0x332b41['descriptionFactory']['registerElementLabel']('mergeField',_0x400b45=>At(_0x1211b4,'ELEMENT_MERGE_FIELD',_0x400b45)),_0x332b41['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3aad36=>At(_0x1211b4,'ELEMENT_MERGE_FIELD',_0x3aad36)),_0x332b41['descriptionFactory']['registerDescriptionCallback'](_0x1a60da=>{if('insertion'!=_0x1a60da['type']&&'deletion'!=_0x1a60da['type'])return;const _0x4f9ab7=_0x1a60da['getContainedElement']();if(null==_0x4f9ab7)return;const _0x262142=_0xbade1d['plugins']['get']('MergeFieldsEditing');let _0x371f4d;switch(_0x262142['getMergeFieldType'](_0x4f9ab7)){case null:return;case'image':{const _0x2ce6dd=_0x262142['unwrapAffixes'](_0x4f9ab7['getAttribute']('src'));_0x371f4d=_0x262142['getLabel'](_0x2ce6dd)||_0x2ce6dd;break;}default:{const _0x19c95b=_0x4f9ab7['getAttribute']('id');_0x371f4d=_0x262142['getLabel'](_0x19c95b)||_0x19c95b;break;}}return'insertion'==_0x1a60da['type']?{'type':'insertion','content':At(_0x1211b4,'*Insert:*\x20%0','\x22'+_0x371f4d+'\x22\x20'+At(_0x1211b4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x1211b4,'*Remove:*\x20%0','\x22'+_0x371f4d+'\x22\x20'+At(_0x1211b4,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x542478{['afterInit'](){const _0x53c706=this['editor'],_0x4876c7=_0x53c706['plugins']['get']('TrackChangesEditing');_0x53c706['plugins']['has']('MultiLevelList')&&(_0x4876c7['enableDefaultAttributesIntegration']('multiLevelList'),_0x4876c7['descriptionFactory']['registerDescriptionCallback'](_0x7de889=>this['handleDescriptions'](_0x7de889)));}['handleDescriptions'](_0x577704){const _0x27e882=this['editor']['locale'],{data:_0x971da1}=_0x577704,_0x5618a9={'type':'format','content':''};if(_0x971da1&&'listMarkerStyle'==_0x971da1['key']){if(!_0x971da1['oldValue'])return{'type':'format','content':At(_0x27e882,'*Set\x20format:*\x20%0',At(_0x27e882,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x971da1['newValue']+')'};if(!_0x971da1['newValue']){let _0x4dc0c1=_0x577704['head'];for(;_0x4dc0c1;){if(_0x4dc0c1['data']&&'listType'==_0x4dc0c1['data']['key']&&_0x4dc0c1['data']['newValue'])return _0x5618a9;_0x4dc0c1=_0x4dc0c1['next'];}return{'type':'format','content':At(_0x27e882,'*Remove\x20format:*\x20%0',At(_0x27e882,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x971da1['oldValue']+')'};}}}}class _e extends _0x542478{['afterInit'](){const _0x15404a=this['editor'];if(!_0x15404a['plugins']['has']('PageBreakEditing'))return;_0x15404a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x35ed01=_0x15404a['plugins']['get']('TrackChangesEditing'),_0x943a87=_0x15404a['locale'];_0x35ed01['descriptionFactory']['registerElementLabel']('pageBreak',_0x55beca=>At(_0x943a87,'ELEMENT_PAGE_BREAK',_0x55beca));}}class pe extends _0x542478{['afterInit'](){const _0x13946d=this['editor'];if(!_0x13946d['plugins']['has']('Paragraph'))return;const _0x11617e=_0x13946d['locale'],_0x46eca9=_0x13946d['plugins']['get']('TrackChangesEditing');_0x46eca9['descriptionFactory']['registerElementLabel']('paragraph',_0x307c9f=>At(_0x11617e,'ELEMENT_PARAGRAPH',_0x307c9f)),_0x46eca9['enableDefaultAttributesIntegration']('paragraph'),_0x46eca9['enableCommand']('insertParagraph');const _0x5a2e12=_0x46eca9['descriptionFactory'];_0x5a2e12['registerDescriptionCallback'](_0x1b286f=>{if('insertion'!==_0x1b286f['type'])return;const {start:_0xd2cc34,end:_0x1171ad}=_0x1b286f['getFirstRange']();if(!_0xd2cc34['isTouching'](_0x1171ad)||!_0xd2cc34['nodeAfter'])return;const _0x4a558d=_0x13946d['model']['schema'],_0x26f0f4=_0xd2cc34['nodeAfter'];return _0x4a558d['isBlock'](_0x26f0f4)&&!_0x4a558d['isLimit'](_0x26f0f4)&&_0x4a558d['checkChild'](_0x26f0f4,'$text')?{'type':'insertion','content':At(_0x11617e,'*Insert:*\x20%0',_0x5a2e12['getItemLabel'](_0x26f0f4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x423ced=this['editor'],_0xa542de=_0x423ced['locale'];_0x423ced['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb6ae8f=>{if('formatBlock'!=_0xb6ae8f['type'])return;const {data:_0x4c4ac8}=_0xb6ae8f;return _0x4c4ac8&&'paragraph'==_0x4c4ac8['commandName']?{'type':'format','content':At(_0xa542de,'*Change\x20to:*\x20%0',At(_0xa542de,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x542478{['afterInit'](){const _0x325074=this['editor'];_0x325074['commands']['get']('replaceSource')&&_0x325074['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x542478{['afterInit'](){const _0x474b87=this['editor'];if(!_0x474b87['plugins']['has']('RemoveFormatEditing'))return;_0x474b87['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a10d0=this['editor'];_0x1a10d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x269342=>{if('formatBlock'!=_0x269342['type']&&'formatInline'!=_0x269342['type'])return;const {data:_0x444e8e}=_0x269342;return _0x444e8e&&'removeFormat'==_0x444e8e['commandName']?{'type':'format','content':At(_0x1a10d0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x542478{['afterInit'](){const _0x464c8d=this['editor'];if(!_0x464c8d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3fc5e7=_0x464c8d['plugins']['get']('TrackChangesEditing');_0x3fc5e7['enableCommand']('goToPreviousRestrictedEditingException'),_0x3fc5e7['enableCommand']('goToNextRestrictedEditingException');const _0x50715a=_0x464c8d['plugins']['get']('RestrictedEditingModeEditing');_0x50715a['enableCommand']('trackChanges'),_0x50715a['enableCommand']('acceptSuggestion'),_0x50715a['enableCommand']('discardSuggestion'),_0x50715a['enableCommand']('acceptAllSuggestions'),_0x50715a['enableCommand']('discardAllSuggestions'),_0x50715a['enableCommand']('acceptSelectedSuggestions'),_0x50715a['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x542478{['afterInit'](){const _0x151504=this['editor'];if(!_0x151504['plugins']['has']('ShiftEnter'))return;const _0x6b5e32=_0x151504['plugins']['get']('TrackChangesEditing');_0x6b5e32['enableCommand']('shiftEnter'),_0x6b5e32['descriptionFactory']['registerElementLabel']('softBreak',_0x47193d=>At(_0x151504['locale'],'ELEMENT_LINE_BREAK',_0x47193d));}}function ke(_0x39f005,_0x3a8729,_0x1c11a8){const _0x54400f=[];for(const _0x34ef57 of _0x3a8729['getItems']())_0x34ef57['hasAttribute'](_0x39f005)&&_0x54400f['push'](_0x1c11a8['createRangeOn'](_0x34ef57));return _0x54400f;}class Ce extends _0x542478{['afterInit'](){const _0x4bf1bf=this['editor'],_0x223b3c=_0x4bf1bf['plugins']['get']('TrackChangesEditing');_0x4bf1bf['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x223b3c['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x3c0c44=this['editor'],_0x337726=_0x3c0c44['model'],_0x4f5ec1=_0x3c0c44['locale'],_0xe9aa28=_0x3c0c44['plugins']['get']('TrackChangesEditing'),_0x88bc0='restrictedEditingException',_0x5e1b8f=_0x3c0c44['commands']['get'](_0x88bc0);_0xe9aa28['enableCommand'](_0x88bc0,(_0x421a74,_0x53e39a={})=>{const _0x28854a=_0x337726['document']['selection'];if(_0x28854a['isCollapsed'])return void _0x421a74(_0x53e39a);const _0x16858f=void 0x0!==_0x53e39a['forceValue']?_0x53e39a['forceValue']:!_0x5e1b8f['value'];_0x337726['change'](()=>{const _0x34755d=Array['from'](_0x28854a['getRanges']());for(const _0x5bd9e7 of _0x34755d){const _0x49371c=_0x16858f?[_0x5bd9e7]:ke(_0x88bc0,_0x5bd9e7,_0x337726);for(const _0x1a9f31 of _0x49371c)_0xe9aa28['markInlineFormat'](_0x1a9f31,{'commandName':_0x88bc0,'commandParams':[{'forceValue':_0x16858f}]});}});}),_0xe9aa28['descriptionFactory']['registerDescriptionCallback'](_0x2bdb28=>{if('formatBlock'!=_0x2bdb28['type']&&'formatInline'!=_0x2bdb28['type'])return;const {data:_0x35a007}=_0x2bdb28;return _0x35a007&&_0x35a007['commandName']==_0x88bc0?_0x35a007['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4f5ec1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x4f5ec1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x4383cc=this['editor'],_0x434dfc=_0x4383cc['locale'],_0x52e8d7=_0x4383cc['plugins']['get']('TrackChangesEditing'),_0x502534='restrictedEditingExceptionBlock',_0x326bcc=this['editor']['commands']['get'](_0x502534);_0x52e8d7['enableCommand'](_0x502534,(_0x3fa6fd,_0x441998={})=>{const _0x3dae27=this['editor']['model']['document']['selection'],_0x53de28=_0x441998&&void 0x0!==_0x441998['forceValue']?_0x441998['forceValue']:!_0x326bcc['value'];let _0x3cb750=[];if(_0x53de28){const _0x245613=Array['from'](_0x3dae27['getSelectedBlocks']())['filter'](_0x14a984=>function(_0x56896a){return!!_0x56896a['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x14a984)||function(_0x138d4f,_0x138782){const _0x532447=_0x138782['createContext'](_0x138d4f['parent']);if(!_0x138782['checkChild'](_0x532447,'restrictedEditingException'))return!0x1;if(!_0x138782['checkChild'](_0x532447['push']('restrictedEditingException'),_0x138d4f))return!0x1;return!0x0;}(_0x14a984,this['editor']['model']['schema']));_0x3cb750=Tt(_0x245613,_0x4383cc['model']);}else{const _0x5978b0=Array['from'](_0x3dae27['getSelectedBlocks']())['map'](_0x489bc3=>function(_0x18a9de){let _0x1d6842=_0x18a9de;for(;_0x1d6842['parent'];){if('restrictedEditingException'==_0x1d6842['parent']['name'])return _0x1d6842;_0x1d6842=_0x1d6842['parent'];}return null;}(_0x489bc3))['filter'](_0x321501=>!!_0x321501);_0x3cb750=Tt(_0x5978b0,_0x4383cc['model']);}_0x4383cc['model']['change'](()=>{for(const _0x56d515 of _0x3cb750)_0x52e8d7['markBlockFormat'](_0x56d515,{'commandName':_0x502534,'commandParams':[{'forceValue':_0x53de28}]});});}),_0x52e8d7['descriptionFactory']['registerDescriptionCallback'](_0x222eda=>{const {data:_0x279f79}=_0x222eda;if(_0x279f79&&_0x279f79['commandName']==_0x502534)return _0x279f79['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x434dfc,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x434dfc,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x542478{['afterInit'](){const _0x5f3f55=this['editor'];if(!_0x5f3f55['plugins']['has']('Style')||!_0x5f3f55['plugins']['has']('DataSchema'))return;const _0x4ed37c=_0x5f3f55['plugins']['get']('TrackChangesEditing'),_0x2b36a7=_0x5f3f55['locale'],_0x184e3a=_0x5f3f55['config']['get']('style')||{},_0x4cec21=_0x5f3f55['plugins']['get']('GeneralHtmlSupport'),_0x575d85=_0x5f3f55['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5f3f55['plugins']['get']('DataSchema'),_0x184e3a['definitions']);_0x4ed37c['enableDefaultAttributesIntegration']('style');const _0x2d89c9=new Set();for(const _0x473314 of _0x575d85['block']){const _0x80fca2=_0x4cec21['getGhsAttributeNameForElement'](_0x473314['element']);_0x2d89c9['add'](_0x80fca2);}const _0x15bcb2=new Set();for(const _0x581831 of _0x575d85['inline']){const _0xf913fa=_0x4cec21['getGhsAttributeNameForElement'](_0x581831['element']);_0x15bcb2['add'](_0xf913fa);for(const _0x15f83f of _0x581831['ghsAttributes'])_0x15bcb2['add'](_0x15f83f);}for(const _0x49131c of _0x2d89c9)_0x4ed37c['descriptionFactory']['registerAttributeLabel'](_0x49131c,At(_0x2b36a7,'FORMAT_STYLE'));for(const _0x38fc97 of _0x15bcb2)_0x4ed37c['descriptionFactory']['registerAttributeLabel'](_0x38fc97,At(_0x2b36a7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44cea7=this['editor'],_0x576fb5=_0x44cea7['locale'];_0x44cea7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e914a=>{if('formatBlock'!=_0x2e914a['type']&&'formatInline'!=_0x2e914a['type'])return;const {data:_0x18bbe0}=_0x2e914a;return _0x18bbe0&&'style'===_0x18bbe0['commandName']?_0x18bbe0['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x576fb5,'*Set\x20format:*\x20%0',_0x18bbe0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x576fb5,'*Remove\x20format:*\x20%0',_0x18bbe0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x542478{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3ef19e){super(_0x3ef19e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4eb684=this['editor'],_0x2f88b9=_0x4eb684['model']['document']['selection'];if(!_0x4eb684['plugins']['has']('TableEditing'))return;const _0x53fb07=_0x4eb684['locale'],_0x1dc2df=_0x4eb684['plugins']['get']('TrackChangesEditing'),_0xe954d1=_0x4eb684['plugins']['get']('TableUtils');_0x1dc2df['descriptionFactory']['registerElementLabel']('table',_0x4d04bc=>At(_0x53fb07,'ELEMENT_TABLE',_0x4d04bc)),this['_setupColumnsRowsFixing'](),_0x1dc2df['enableCommand']('insertTable'),_0x1dc2df['enableCommand']('selectTableRow'),_0x1dc2df['enableCommand']('selectTableColumn');for(const _0xa776c5 of['insertTableRowAbove','insertTableRowBelow']){const _0x2c322a=_0x4eb684['commands']['get'](_0xa776c5);_0x1dc2df['enableCommand'](_0xa776c5,_0x420c8f=>{_0x4eb684['model']['change'](_0x2c06ac=>{_0x420c8f();const _0x44a573='above'===_0x2c322a['order'],_0x145032=_0xe954d1['getSelectionAffectedTableCells'](_0x2f88b9),_0x140b7e=_0xe954d1['getRowIndexes'](_0x145032),_0x15c51e=_0x44a573?_0x140b7e['first']-0x1:_0x140b7e['last']+0x1,_0x3f453c=_0x145032[0x0]['findAncestor']('table'),_0xb32f62=_0xe954d1['createTableWalker'](_0x3f453c,{'startRow':_0x15c51e,'endRow':_0x15c51e}),_0x57789c=Array['from'](_0xb32f62)['map'](_0x149146=>_0x2c06ac['createRangeOn'](_0x149146['cell']));_0x1dc2df['markMultiRangeInsertion'](_0x57789c,'tableRow');});});}for(const _0x18a515 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2cedc6=_0x4eb684['commands']['get'](_0x18a515);_0x1dc2df['enableCommand'](_0x18a515,_0x15c332=>{_0x4eb684['model']['change'](_0x26a08b=>{_0x15c332();const _0x4ed2f0='left'===_0x2cedc6['order'],_0x335d07=_0xe954d1['getSelectionAffectedTableCells'](_0x2f88b9),_0x193d0f=_0xe954d1['getColumnIndexes'](_0x335d07),_0x4ae14c=_0x4ed2f0?_0x193d0f['first']-0x1:_0x193d0f['last']+0x1,_0x3842cd=_0x335d07[0x0]['findAncestor']('table'),_0x5a220c=_0xe954d1['createTableWalker'](_0x3842cd,{'startRow':0x0,'column':_0x4ae14c,'includeAllSlots':!0x1}),_0x1fea60=Array['from'](_0x5a220c)['map'](_0x43f24b=>_0x26a08b['createRangeOn'](_0x43f24b['cell']));_0x1dc2df['markMultiRangeInsertion'](_0x1fea60,'tableColumn');});});}for(const _0x6c9138 of['removeTableRow','removeTableColumn']){const _0x28d252=_0x6c9138['substr'](0xb),_0x3e20b4=_0x28d252['toLowerCase'](),_0xee365b=_0x3e20b4['substr'](0x0,0x3)+'span',_0x5d3332='table'+_0x28d252,_0xfc3827='min'+_0x28d252,_0x13059f='max'+_0x28d252;_0x1dc2df['enableCommand'](_0x6c9138,()=>{_0x4eb684['model']['change'](_0x5ebe3f=>{const _0x5f8509=_0xe954d1['getSelectionAffectedTableCells'](_0x2f88b9),_0x2747be=_0x5f8509[0x0]['findAncestor']('table');let _0x221876;if('removeTableRow'==_0x6c9138){const _0x44c81c=_0xe954d1['getRowIndexes'](_0x5f8509);_0x221876={'startRow':_0x44c81c['first'],'endRow':_0x44c81c['last'],'includeAllSlots':!0x0};}else{const _0x34c89b=_0xe954d1['getColumnIndexes'](_0x5f8509);_0x221876={'startColumn':_0x34c89b['first'],'endColumn':_0x34c89b['last'],'includeAllSlots':!0x0};}const _0x167842=_0xe954d1['createTableWalker'](_0x2747be,_0x221876),_0x590220=Array['from'](_0x167842)['map'](({cell:_0x4c52bf})=>_0x4c52bf),_0x622250=Re(_0x590220['filter'](_0x23ff73=>_0x23ff73['hasAttribute'](_0xee365b))),_0x1cc390=Re(_0x590220['filter'](_0x15ea31=>!_0x15ea31['hasAttribute'](_0xee365b)))['map'](_0x901a2a=>_0x5ebe3f['createRangeOn'](_0x901a2a)),_0x2864fb=_0x1dc2df['markMultiRangeDeletion'](_0x1cc390,_0x5d3332);if(_0x2864fb&&('tableRow'==_0x2864fb['subType']||'tableColumn'==_0x2864fb['subType'])){const _0x20b962=this['_getSuggestionCoords'](_0x2864fb);for(const _0x49e70b of _0x622250){const _0x12fa56=_0x5ebe3f['createRangeOn'](_0x49e70b),_0x53b476=_0xe954d1['getCellLocation'](_0x49e70b),_0x18e96c=_0x49e70b['getAttribute'](_0xee365b)-0x1,_0x4b1696=_0x20b962[_0xfc3827],_0x4e13dc=_0x20b962[_0x13059f];_0x4b1696<=_0x53b476[_0x3e20b4]&&_0x53b476[_0x3e20b4]+_0x18e96c<=_0x4e13dc&&_0x2864fb['addRange'](_0x12fa56);}}});});}function _0x200ebb(_0x4872e4){const _0x35ee8b=Array['from'](_0x2f88b9['getRanges']())['map'](_0x4f54de=>_0x5ce503['fromRange'](_0x4f54de));_0x4eb684['model']['change'](_0xba256f=>{const _0x1037fb=_0xba256f['batch'];_0x4872e4=_0x4872e4['filter'](_0x1bb179=>'$graveyard'!=_0x1bb179['root']['rootName']),_0xba256f['setSelection'](_0x4872e4),_0x4eb684['commands']['get']('removeTableRow')['refresh'](),_0x4eb684['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4eb684['model']['enqueueChange'](()=>{_0x4eb684['model']['enqueueChange'](_0x1037fb,_0x173260=>{const _0x5e1182=_0x35ee8b['filter'](_0x515565=>'$graveyard'!=_0x515565['root']['rootName']);_0x5e1182['length']>0x0&&_0x173260['setSelection'](_0x5e1182);for(const _0x35aa15 of _0x35ee8b)_0x35aa15['detach']();});});});}function _0x1b6c0(_0x3d7bd1){_0x4eb684['model']['change'](_0x2b3f03=>{const _0x539bed=Array['from'](_0x2f88b9['getRanges']())['map'](_0x29ba73=>_0x5ce503['fromRange'](_0x29ba73)),_0x2bb0b5=[];for(const _0x60abeb of _0x3d7bd1)for(const _0x2c04fb of _0x60abeb['getItems']({'shallow':!0x0}))_0x2bb0b5['push'](_0x2c04fb);for(const _0x28799c of _0x2bb0b5)'$graveyard'!=_0x28799c['root']['rootName']&&(_0x2b3f03['setSelection'](_0x2b3f03['createPositionAt'](_0x28799c,0x0)),_0x4eb684['commands']['get']('removeTableColumn')['refresh'](),_0x4eb684['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4e4730=_0x539bed['filter'](_0x36d737=>'$graveyard'!=_0x36d737['root']['rootName']);_0x4e4730['length']>0x0&&_0x2b3f03['setSelection'](_0x4e4730);for(const _0x2d19f5 of _0x539bed)_0x2d19f5['detach']();});}function _0x4dd65a(_0xdd0b47,_0x424483){return _0x424483['every'](_0x335c12=>_0xdd0b47['some'](_0x3bb123=>_0x3bb123['end']['isEqual'](_0x335c12['start'])||_0x335c12['end']['isEqual'](_0x3bb123['start'])));}function _0x1cf546(_0x4aa97f,_0x58324b){return!_0x4aa97f['some'](_0x52e343=>_0x58324b['some'](_0x1d09bc=>_0x52e343['isIntersecting'](_0x1d09bc)))&&_0x4aa97f['some'](_0x5e86e7=>_0x58324b['some'](_0xbdc271=>_0x5e86e7['end']['isTouching'](_0xbdc271['start'])));}_0x1dc2df['descriptionFactory']['registerDescriptionCallback'](_0x1eca0d=>{if('insertion'!=_0x1eca0d['type']&&'deletion'!=_0x1eca0d['type'])return;const _0x209e70=_0x1eca0d['getContainedElement']();if(null!=_0x209e70&&_0x209e70['is']('element','table')){if('insertion'==_0x1eca0d['type']){const _0x25806e=_0x1eca0d['getItems']()['filter'](_0x2547bf=>_0x2547bf['is']('$textProxy'))['map'](_0x4588de=>_0x4588de['data']);if(_0x25806e['length'])return{'type':'insertion','content':At(_0x53fb07,'*Insert:*\x20%0',At(_0x53fb07,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x25806e['join']('\x20')+'\x22'))};}if('deletion'==_0x1eca0d['type']){const _0x11384e=_0x1eca0d['getItems']()['filter'](_0x2c320c=>_0x2c320c['is']('$textProxy'))['map'](_0x74b4e3=>_0x74b4e3['data']);if(_0x11384e['length'])return{'type':'deletion','content':At(_0x53fb07,'*Remove:*\x20%0',At(_0x53fb07,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x11384e['join']('\x20')+'\x22'))};}}}),_0x1dc2df['descriptionFactory']['registerDescriptionCallback'](_0x551408=>{if('tableRow'==_0x551408['subType']){const _0x35e23d=_0x551408['getItems']()['filter'](_0x4d2bfb=>_0x4d2bfb['is']('$textProxy'))['map'](_0x3fefac=>_0x3fefac['data']),_0xf3b846=this['_getSuggestionCoords'](_0x551408),_0x2c78d7=_0xf3b846['maxRow']-_0xf3b846['minRow']+0x1;if('insertion'==_0x551408['type'])return _0x35e23d['length']?{'type':'insertion','content':At(_0x53fb07,'*Insert:*\x20%0',At(_0x53fb07,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2c78d7,'\x22'+_0x35e23d['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x53fb07,'*Insert:*\x20%0',At(_0x53fb07,'ELEMENT_TABLE_ROW',_0x2c78d7))};if('deletion'==_0x551408['type'])return _0x35e23d['length']?{'type':'deletion','content':At(_0x53fb07,'*Remove:*\x20%0',At(_0x53fb07,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2c78d7,'\x22'+_0x35e23d['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x53fb07,'*Remove:*\x20%0',At(_0x53fb07,'ELEMENT_TABLE_ROW',_0x2c78d7))};}if('tableColumn'==_0x551408['subType']){const _0x5be251=_0x551408['getItems']()['filter'](_0x40cdf4=>_0x40cdf4['is']('$textProxy'))['map'](_0x412bd8=>_0x412bd8['data']),_0xf94a51=this['_getSuggestionCoords'](_0x551408),_0x410204=_0xf94a51['maxColumn']-_0xf94a51['minColumn']+0x1;if('insertion'==_0x551408['type'])return _0x5be251['length']?{'type':'insertion','content':At(_0x53fb07,'*Insert:*\x20%0',At(_0x53fb07,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x410204,'\x22'+_0x5be251['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x53fb07,'*Insert:*\x20%0',At(_0x53fb07,'ELEMENT_TABLE_COLUMN',_0x410204))};if('deletion'==_0x551408['type'])return _0x5be251['length']?{'type':'deletion','content':At(_0x53fb07,'*Remove:*\x20%0',At(_0x53fb07,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x410204,'\x22'+_0x5be251['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x53fb07,'*Remove:*\x20%0',At(_0x53fb07,'ELEMENT_TABLE_COLUMN',_0x410204))};}}),_0x1dc2df['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x200ebb),_0x1dc2df['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x200ebb),_0x1dc2df['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1b6c0),_0x1dc2df['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1b6c0),_0x1dc2df['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4dd65a),_0x1dc2df['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4dd65a),_0x1dc2df['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1cf546),_0x1dc2df['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1cf546);}['_acceptFormatSuggestionCallbackFactory'](){const _0x77f55d=this['editor'],_0x3af50c=_0x77f55d['model']['document']['selection'];return(_0x5b741c,_0x530e96)=>{_0x77f55d['model']['change'](_0x1b3961=>{const {commandName:_0x2b6a3e,commandParams:_0x10be7b}=_0x530e96;let _0x545ab0=_0x5b741c[0x0]['end']['nodeBefore'];_0x10be7b&&_0x10be7b[0x0]&&!0x1===_0x10be7b[0x0]['forceValue']&&(_0x545ab0=_0x5b741c[0x0]['start']['nodeAfter']);const _0x3d7f3a=_0x1b3961['createRangeIn'](_0x545ab0);if('$graveyard'==_0x3d7f3a['root']['rootName'])return;const _0x17e26f=Array['from'](_0x3af50c['getRanges']())['map'](_0x1fe8d3=>_0x5ce503['fromRange'](_0x1fe8d3));_0x1b3961['setSelection'](_0x3d7f3a),_0x77f55d['commands']['get'](_0x2b6a3e)['refresh'](),_0x10be7b['push']({'forceDefaultExecution':!0x0}),_0x77f55d['execute'](_0x2b6a3e,..._0x10be7b);const _0x577581=_0x17e26f['filter'](_0x26539a=>'$graveyard'!=_0x26539a['root']['rootName']);_0x577581['length']>0x0&&_0x1b3961['setSelection'](_0x577581);for(const _0x4330e8 of _0x17e26f)_0x4330e8['detach']();});};}['_getCoordsForCells'](_0xbb1058){const _0x30f5a0=this['editor']['plugins']['get']('TableUtils');let _0x5a6c70=Number['MAX_SAFE_INTEGER'],_0x2ed27f=Number['MIN_SAFE_INTEGER'],_0x4324c2=Number['MAX_SAFE_INTEGER'],_0x375263=Number['MIN_SAFE_INTEGER'];for(const _0x543c54 of _0xbb1058){if('$graveyard'==_0x543c54['root']['rootName'])continue;const {row:_0x52d709,column:_0x4b4f0f}=_0x30f5a0['getCellLocation'](_0x543c54),_0x5d55ad=_0x543c54['hasAttribute']('rowspan')?_0x543c54['getAttribute']('rowspan')-0x1:0x0,_0xaa8feb=_0x543c54['hasAttribute']('colspan')?_0x543c54['getAttribute']('colspan')-0x1:0x0;_0x5a6c70=_0x52d709<_0x5a6c70?_0x52d709:_0x5a6c70,_0x2ed27f=_0x52d709+_0x5d55ad>_0x2ed27f?_0x52d709+_0x5d55ad:_0x2ed27f,_0x4324c2=_0x4b4f0f<_0x4324c2?_0x4b4f0f:_0x4324c2,_0x375263=_0x4b4f0f+_0xaa8feb>_0x375263?_0x4b4f0f+_0xaa8feb:_0x375263;}return{'minRow':_0x5a6c70,'maxRow':_0x2ed27f,'minColumn':_0x4324c2,'maxColumn':_0x375263};}['_setupColumnsRowsFixing'](){const _0x5812b6=this['editor'],_0x3fd4e4=_0x5812b6['plugins']['get']('TrackChangesEditing'),_0x3e41a1=_0x5812b6['plugins']['get']('TableUtils');_0x5812b6['model']['document']['on']('change:data',()=>{const _0x31ed87=Array['from'](_0x5812b6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51bfe7,data:_0x9bbe79}of _0x31ed87){const {group:_0x2a32b0,id:_0x58ec27,subType:_0x5476bf}=_0x5024a3(_0x51bfe7);if('suggestion'!=_0x2a32b0)continue;if(null!=_0x9bbe79['oldRange'])continue;const _0x9821cd=_0x3fd4e4['getSuggestion'](_0x58ec27);this['_tablePostFixingSubtypes']['includes'](_0x5476bf)&&this['_tableSuggestions']['add'](_0x9821cd);}},{'priority':'low'});const _0x3100ae=(_0x5e5ae2,_0x69fee8)=>{let _0x8a28ec=!0x1;const _0x3d1c7a=_0x69fee8['createRangeOn'](_0x5e5ae2),_0x3e35b7=_0x5e5ae2['findAncestor']('table'),_0x200e2f=_0x3e41a1['getCellLocation'](_0x5e5ae2);for(const _0x51da63 of this['_tableSuggestions']){const _0x15d3ea=_0x51da63['subType'],_0x13f950=_0x15d3ea['startsWith']('tablePaste'),_0x14401c=_0x15d3ea['substr'](_0x13f950?0xa:0x5),_0x42fd5f=_0x14401c['toLowerCase'](),_0x13116d=_0x42fd5f['substr'](0x0,0x3)+'span',_0x4f1236='min'+_0x14401c,_0x44b29c='max'+_0x14401c;if(!_0x51da63['isInContent'])continue;if(_0x3e35b7!=_0x51da63['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x51da63['isIntersectingWithRange'](_0x3d1c7a))continue;const _0x55a6d6=_0x5e5ae2['hasAttribute'](_0x13116d)?_0x5e5ae2['getAttribute'](_0x13116d)-0x1:0x0,_0x351bb4=this['_getSuggestionCoords'](_0x51da63),_0x52817b=_0x351bb4[_0x4f1236],_0x459615=_0x351bb4[_0x44b29c];_0x52817b<=_0x200e2f[_0x42fd5f]&&_0x200e2f[_0x42fd5f]+_0x55a6d6<=_0x459615&&(_0x51da63['addRange'](_0x3d1c7a),_0x8a28ec=!0x0);}return _0x8a28ec;};_0x5812b6['model']['document']['registerPostFixer'](_0x23921a=>{let _0x5d9b81=!0x1;for(const _0x3467ed of _0x5812b6['model']['document']['differ']['getChanges']())if('insert'==_0x3467ed['type']){if('tableRow'==_0x3467ed['name']){for(const _0x1043cd of _0x3467ed['position']['nodeAfter']['getChildren']())_0x5d9b81=_0x5d9b81||_0x3100ae(_0x1043cd,_0x23921a);}else'tableCell'==_0x3467ed['name']&&(_0x5d9b81=_0x5d9b81||_0x3100ae(_0x3467ed['position']['nodeAfter'],_0x23921a));}return _0x5d9b81;});}['_getSuggestionCoords'](_0x3f9baa){return this['_getCoordsForCells'](_0x3f9baa['getRanges']()['map'](_0x5101d7=>_0x5101d7['start']['nodeAfter']));}}function Re(_0x28d8d4){return Array['from'](new Set(_0x28d8d4)['values']());}class Se extends _0x542478{static get['requires'](){return[Ne];}['afterInit'](){const _0x2e0550=this['editor'],_0x4889c9=_0x2e0550['model']['document']['selection'],_0x53a8d0=_0x2e0550['locale'];if(!_0x2e0550['plugins']['has']('TableEditing'))return;const _0x2241fe=_0x2e0550['plugins']['get']('TrackChangesEditing'),_0x5dc4c8=_0x2e0550['plugins']['get']('TableUtils'),_0x43d71d=_0x2e0550['plugins']['get'](Ne);_0x43d71d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2241fe['enableCommand']('mergeTableCells',()=>{const _0x52c474=_0x5dc4c8['getSelectionAffectedTableCells'](_0x2e0550['model']['document']['selection']);_0x2e0550['model']['change'](()=>{_0x2241fe['markMultiRangeBlockFormat'](_0x52c474,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2e0550['commands']['get']('mergeTableCells')['on']('execute',(_0x103b06,_0x1b856d)=>{_0x2e0550['commands']['get']('trackChanges')['value']&&(_0x1b856d['length']>0x0&&_0x1b856d[_0x1b856d['length']-0x1]&&_0x1b856d[_0x1b856d['length']-0x1]['forceDefaultExecution']||_0x2241fe['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x103b06['stop']());},{'priority':'highest'});for(const _0x7e1536 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1b5c7c=_0x2e0550['commands']['get'](_0x7e1536);_0x2241fe['enableCommand'](_0x7e1536,()=>{const _0x4042f8=_0x2e0550['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f8310=>_0x1f8310['is']('element','tableCell')),_0x1096b3=_0x1b5c7c['value'];_0x2e0550['model']['change'](()=>{_0x2241fe['markMultiRangeBlockFormat']([_0x4042f8,_0x1096b3],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3b7b6d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4237d2=_0x2e0550['commands']['get'](_0x3b7b6d);_0x2241fe['enableCommand'](_0x3b7b6d,()=>{const _0x9c5d62=_0x5dc4c8['getSelectionAffectedTableCells'](_0x2e0550['model']['document']['selection'])[0x0],_0x871852=_0x9c5d62['findAncestor']('table'),{column:_0x412891,row:_0x1a5849}=_0x5dc4c8['getCellLocation'](_0x9c5d62);let _0x30d631=[];if('horizontally'==_0x4237d2['direction']){const _0x169ca3=_0x5dc4c8['createTableWalker'](_0x871852,{'startRow':_0x1a5849,'endRow':_0x1a5849,'includeAllSlots':!0x0});_0x30d631=Array['from'](_0x169ca3)['map'](_0x29f064=>_0x29f064['cell']);}else{const _0x47dd15=_0x5dc4c8['createTableWalker'](_0x871852,{'column':_0x412891,'includeAllSlots':!0x0});_0x30d631=Array['from'](_0x47dd15)['map'](_0x2821c1=>_0x2821c1['cell']);}_0x2e0550['model']['change'](_0x3e28b6=>{_0x2241fe['markBlockFormat'](_0x3e28b6['createRangeOn'](_0x9c5d62),{'commandName':_0x3b7b6d,'commandParams':[]},_0x30d631,_0x3b7b6d);});});}_0x2241fe['descriptionFactory']['registerDescriptionCallback'](_0x30d5c8=>{if('formatBlock'!=_0x30d5c8['type']&&'formatInline'!=_0x30d5c8['type'])return;const {data:_0x17798a}=_0x30d5c8;return _0x17798a&&'mergeTableCells'==_0x17798a['commandName']?{'type':'format','content':At(_0x53a8d0,'*Merge\x20cells*')}:void 0x0;}),_0x2241fe['descriptionFactory']['registerDescriptionCallback'](_0x4c2496=>{if('formatBlock'!=_0x4c2496['type']&&'formatInline'!=_0x4c2496['type'])return;const {data:_0x201bad}=_0x4c2496;return _0x201bad?'splitTableCellVertically'==_0x201bad['commandName']?{'type':'format','content':At(_0x53a8d0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x201bad['commandName']?{'type':'format','content':At(_0x53a8d0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x579b88=_0x43d71d['_acceptFormatSuggestionCallbackFactory']();for(const _0x13db1c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2241fe['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x13db1c,'accept',_0x579b88);for(const _0x26e39f of['splitTableCellVertically','splitTableCellHorizontally'])_0x2241fe['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x26e39f,'accept',_0x579b88);_0x2241fe['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x23c97c=>{_0x2e0550['model']['change'](_0x1288cd=>{const _0x214e37=Array['from'](_0x4889c9['getRanges']())['map'](_0x14bb3d=>_0x5ce503['fromRange'](_0x14bb3d));_0x1288cd['setSelection'](_0x23c97c),_0x2e0550['commands']['get']('mergeTableCells')['refresh'](),_0x2e0550['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x523208=_0x214e37['filter'](_0x1824bd=>'$graveyard'!=_0x1824bd['root']['rootName']);_0x523208['length']>0x0&&_0x1288cd['setSelection'](_0x523208);for(const _0x2b356c of _0x214e37)_0x2b356c['detach']();});});for(const _0x49100f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2a4edd=_0x2e0550['commands']['get'](_0x49100f);_0x2a4edd['on']('set:isEnabled',(_0x3cb26a,_0x51c453,_0x20293e)=>{if(_0x20293e){const _0x139b2b=_0x2e0550['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x42d16f=>_0x42d16f['is']('element','tableCell'));this['_areMergableCells'](_0x2a4edd['value'],_0x139b2b)||(_0x3cb26a['return']=!0x1,_0x3cb26a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x21bf32=this['editor']['commands']['get']('mergeTableCells'),_0x5958a2=this['editor']['plugins']['get']('TableUtils');if(!_0x21bf32['isEnabled'])return!0x1;const _0x2396d6=_0x5958a2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x42637c of _0x2396d6)for(const _0x4c4ab1 of _0x2396d6)if(_0x42637c!=_0x4c4ab1&&!this['_areMergableCells'](_0x42637c,_0x4c4ab1))return!0x1;return!0x0;}['_areMergableCells'](_0x326705,_0x4e7915){const _0x3bef63=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4965a2=this['editor']['model']['createRangeOn'](_0x326705),_0xce066f=this['editor']['model']['createRangeOn'](_0x4e7915),_0x2f8b8d=new Set(),_0x2b3aec=new Set();for(const _0x2f989b of _0x3bef63['getSuggestions']())if(('insertion'==_0x2f989b['type']||'deletion'==_0x2f989b['type']||'mergeTableCells'==_0x2f989b['subType'])&&_0x2f989b['isInContent']){for(const _0x4de6bf of _0x2f989b['getRanges']())_0x4de6bf['containsRange'](_0x4965a2,!0x0)&&_0x2f8b8d['add'](_0x2f989b['type']+':'+_0x2f989b['author']['id']),_0x4de6bf['containsRange'](_0xce066f,!0x0)&&_0x2b3aec['add'](_0x2f989b['type']+':'+_0x2f989b['author']['id']);}if(_0x2f8b8d['size']!=_0x2b3aec['size'])return!0x1;for(const _0xb21bd3 of _0x2f8b8d)if(!_0x2b3aec['has'](_0xb21bd3))return!0x1;return!0x0;}}class Me extends _0x542478{static get['requires'](){return[Ne];}['afterInit'](){const _0x34593b=this['editor'];if(!_0x34593b['plugins']['has']('TableEditing'))return;const _0x162a12=_0x34593b['locale'],_0x157e6b=_0x34593b['plugins']['get']('TrackChangesEditing');_0x157e6b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x157e6b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x157e6b['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x162a12,'FORMAT_HEADER_ROW')),_0x157e6b['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x162a12,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4365bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x158bf7=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x4365bc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x158bf7),_0x4365bc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x158bf7),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x5108f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x141fbc=this['editor']['plugins']['get']('TableUtils');function _0x1e48b4({showActiveMarker:_0x2a4683=!0x0,setDataAttribute:_0x4ad8c1=!0x0}={}){return(_0x42a7c5,_0x585153,_0xd16be6)=>{const {type:_0x3f1c13,id:_0x5bae9a}=_0x5024a3(_0x585153['markerName']);if(!_0x5108f9['hasSuggestion'](_0x5bae9a))return;const _0x12e167=_0x5108f9['getSuggestion'](_0x5bae9a),_0x4193e2=_0x12e167['data'];if('formatBlock'!=_0x12e167['type']||!_0x4193e2||'setTableColumnHeader'!=_0x4193e2['commandName'])return;if(_0x585153['item'])return void _0x42a7c5['stop']();if(!_0xd16be6['consumable']['consume'](_0x585153['markerRange'],_0x42a7c5['name']))return;const _0xb24f11=_0x585153['markerRange']['start']['nodeAfter'],_0x290926=_0x585153['markerRange']['end']['nodeBefore'],_0x53c6c3=_0xb24f11['parent']['parent'],{column:_0x33de40}=_0x141fbc['getCellLocation'](_0xb24f11),{column:_0xd97b77}=_0x141fbc['getCellLocation'](_0x290926);for(let _0x1708c1=_0x33de40;_0x1708c1<=_0xd97b77;_0x1708c1++){const _0x358667=_0x141fbc['createTableWalker'](_0x53c6c3,{'column':_0x1708c1,'includeAllSlots':!0x1});for(const _0x4965a8 of _0x358667){const _0x3c4278=_0x4965a8['cell'],_0xe3dc71=_0xd16be6['mapper']['toViewElement'](_0x3c4278);_0xd16be6['writer']['addClass']('ck-suggestion-marker-'+_0x3f1c13,_0xe3dc71),_0x4ad8c1&&_0xd16be6['writer']['setAttribute']('data-suggestion',_0x5bae9a,_0xe3dc71),_0xd16be6['mapper']['bindElementToMarker'](_0xe3dc71,_0x585153['markerName']),_0x2a4683&&(_0x5108f9['activeMarkers']['includes'](_0x585153['markerName'])?_0xd16be6['writer']['addClass']('ck-suggestion-marker--active',_0xe3dc71):_0xd16be6['writer']['removeClass']('ck-suggestion-marker--active',_0xe3dc71));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1e48b4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x479cf3,_0x5cf120,_0x590b0f)=>{_0x590b0f['options']['showSuggestionHighlights']&&_0x1e48b4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x479cf3,_0x5cf120,_0x590b0f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x6c7219,_0x5196e2,_0x325982)=>{const {type:_0x5f2758,id:_0x56260e}=_0x5024a3(_0x5196e2['markerName']);if(!_0x5108f9['hasSuggestion'](_0x56260e))return;const _0x1dd059=_0x5108f9['getSuggestion'](_0x56260e),_0x3a70c9=_0x1dd059['data'];if('formatBlock'!=_0x1dd059['type']||!_0x3a70c9||'setTableColumnHeader'!=_0x3a70c9['commandName'])return;const _0x59513d=_0x325982['mapper']['markerNameToElements'](_0x5196e2['markerName']);if(_0x59513d){for(const _0x1f13f8 of _0x59513d)_0x325982['writer']['removeClass']('ck-suggestion-marker-'+_0x5f2758,_0x1f13f8),_0x325982['writer']['removeClass']('ck-suggestion-marker--active',_0x1f13f8),_0x325982['writer']['removeAttribute']('data-suggestion',_0x1f13f8),_0x325982['mapper']['unbindElementFromMarkerName'](_0x1f13f8,_0x5196e2['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x570c1a=this['editor'],_0x1502dd=_0x570c1a['locale'];function _0x54a5b6(_0xc468fc){return{'type':'format','content':At(_0x1502dd,'*Format:*\x20%0',_0xc468fc)};}_0x570c1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4438d9=>{if('formatBlock'!=_0x4438d9['type'])return;const {data:_0x3bf29c}=_0x4438d9;if(_0x3bf29c){if('setTableRowHeader'==_0x3bf29c['commandName']){const _0x47885b=_0x3bf29c['commandParams'][0x0]['forceValue'];return _0x54a5b6(At(_0x1502dd,_0x47885b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3bf29c['commandName']){const _0x10803=_0x3bf29c['commandParams'][0x0]['forceValue'];return _0x54a5b6(At(_0x1502dd,_0x10803?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x542478{static get['requires'](){return[Ne];}['afterInit'](){const _0x3fbd51=this['editor'];if(!_0x3fbd51['plugins']['has']('TableEditing')||!_0x3fbd51['config']['get']('table.enableFooters'))return;const _0x3f5126=_0x3fbd51['locale'],_0x410c0b=_0x3fbd51['plugins']['get']('TrackChangesEditing');_0x410c0b['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x410c0b['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x3f5126,'FORMAT_FOOTER_ROW'));}}class we extends _0x542478{['afterInit'](){const _0x191256=this['editor'],_0x525c49=_0x191256['locale'],_0x5d94bc=_0x191256['plugins']['get']('TrackChangesEditing');function _0x42a811(_0x24a5ed){return{'type':'format','content':''+At(_0x525c49,'*Set\x20table\x20type:*\x20%0',_0x24a5ed)};}_0x191256['plugins']['has']('TableLayout')&&(_0x5d94bc['enableCommand']('insertTableLayout'),_0x5d94bc['enableDefaultAttributesIntegration']('tableType'),_0x5d94bc['descriptionFactory']['registerElementLabel'](_0x643833=>_0x643833['is']('element','table')&&'layout'===_0x643833['getAttribute']('tableType'),_0x196c25=>At(_0x525c49,'ELEMENT_LAYOUT_TABLE',_0x196c25)),_0x5d94bc['descriptionFactory']['registerDescriptionCallback'](_0x142349=>{const {data:_0x5e35ca}=_0x142349;if(_0x5e35ca&&'tableType'==_0x5e35ca['key'])switch(_0x5e35ca['newValue']){case'layout':return _0x42a811(At(_0x525c49,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x42a811(At(_0x525c49,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x2547cb=>[_0x2547cb,null]));class De extends _0x542478{static get['requires'](){return[Ne];}['afterInit'](){const _0x283fe9=this['editor'];if(!_0x283fe9['plugins']['has']('TableClipboard'))return;const _0x4d36e0=_0x283fe9['plugins']['get']('TrackChangesEditing'),_0x27cbbe=_0x283fe9['plugins']['get']('TableUtils'),_0x5742f2=_0x283fe9['plugins']['get'](Ne),_0x13607b=_0x283fe9['plugins']['get']('TableClipboard'),_0x4d10a9=_0x283fe9['plugins']['get']('TableSelection'),_0x117169=_0x283fe9['plugins']['get'](ut);_0x5742f2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x283fe9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x283fe9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3c6f01=null,_0x322f10=!0x1;_0x117169['on']('contentInsertion',(_0x561006,_0x1b0789)=>{_0x322f10='paste'===_0x1b0789['method'];}),_0x283fe9['model']['on']('insertContent',(_0x9a5f8,_0x5580a9)=>{if(!_0x322f10&&null===_0x4d10a9['getSelectedTableCells']())return;const [_0x276e83,_0x4639d9]=_0x5580a9,_0x26f793=_0x5580a9[_0x5580a9['length']-0x1];_0x26f793&&_0x26f793['forceDefaultExecution']||_0x4d36e0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x45c0ea,_0x7529d1,_0x2632a4,_0x1bfaa9,_0x38753c){if(_0x7529d1&&!_0x7529d1['is']('documentSelection'))return!0x1;const _0x2f6505=_0x38753c['getTableIfOnlyTableInContent'](_0x45c0ea,_0x2632a4);if(!_0x2f6505||!xe(_0x2f6505,void 0x0,_0x1bfaa9))return!0x1;const _0x500553=_0x1bfaa9['getSelectionAffectedTableCells'](_0x2632a4['document']['selection']);if(!_0x500553['length'])return!0x1;const _0x5288cf=_0x500553[0x0]['findAncestor']('table'),_0x96716e=_0x1bfaa9['getRowIndexes'](_0x500553),_0x168f65=_0x1bfaa9['getColumnIndexes'](_0x500553),_0x4a7d66={'startRow':_0x96716e['first'],'endRow':_0x96716e['last'],'startColumn':_0x168f65['first'],'endColumn':_0x168f65['last']};return 0x1==_0x500553['length']&&(_0x4a7d66['endRow']+=_0x1bfaa9['getRows'](_0x2f6505)-0x1,_0x4a7d66['endColumn']+=_0x1bfaa9['getColumns'](_0x2f6505)-0x1),xe(_0x5288cf,_0x4a7d66,_0x1bfaa9);}(_0x276e83,_0x4639d9,_0x283fe9['model'],_0x27cbbe,_0x13607b)&&(_0x9a5f8['stop'](),_0x3c6f01={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x283fe9['model']['change'](()=>{_0x283fe9['model']['insertContent'](_0x5580a9[0x0],_0x5580a9[0x1],_0x5580a9[0x2],{'forceDefaultExecution':!0x0});const _0x5eb526=_0x6e7e15(),{rowInsertionRanges:_0x177c4b,columnInsertionRanges:_0x1588ab,insertionRanges:_0x2e1c88,deletionRanges:_0x1afe30,cells:_0x37e21d}=_0x3c6f01;_0x177c4b['length']&&_0x4d36e0['markMultiRangeInsertion'](_0x177c4b,'tablePasteRow',{'tablePasteChainId':_0x5eb526}),_0x1588ab['length']&&_0x4d36e0['markMultiRangeInsertion'](_0x1588ab,'tablePasteColumn',{'tablePasteChainId':_0x5eb526}),_0x2e1c88['length']&&(_0x4d36e0['markMultiRangeInsertion'](_0x2e1c88,'tablePaste',{'tablePasteChainId':_0x5eb526,'skipNestingCheck':!0x0}),_0x2e1c88['forEach'](_0x4b34b4=>_0x4b34b4['detach']?.())),_0x1afe30['length']&&(_0x4d36e0['markMultiRangeDeletion'](_0x1afe30,'tablePaste',{'tablePasteChainId':_0x5eb526,'skipNestingCheck':!0x0}),_0x1afe30['forEach'](_0x51535a=>_0x51535a['detach']?.()));const _0x4140e9=_0x4d36e0['markMultiRangeBlockFormat'](_0x37e21d['map'](({element:_0x34b569})=>_0x34b569),{'formatGroupId':_0x6e7e15()},[],'tablePasteCell',{'tablePasteChainId':_0x5eb526});if(_0x4140e9){const _0x2e05b2=_0x4140e9['getMarkers'](),_0x1e7ece=[];for(const {element:_0x3c80b2,attributes:_0x370734}of _0x37e21d){if(!_0x370734)continue;const _0x3f2be4=_0x283fe9['model']['createRangeOn'](_0x3c80b2),_0x5302f5=_0x2e05b2['find'](_0x4dfee7=>_0x4dfee7['getRange']()['isEqual'](_0x3f2be4));_0x5302f5&&_0x1e7ece['push']([_0x5302f5['name'],_0x370734]);}_0x1e7ece['length']&&_0x4140e9['setAttribute']('markerAttributes',Object['fromEntries'](_0x1e7ece));}_0x3c6f01=null;}));},{'priority':_0x2d50ac['high']+0xa}),_0x117169['on']('contentInsertion',()=>{_0x322f10=!0x1;},{'priority':'lowest'}),_0x283fe9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x17512f,_0x469967)=>{const [_0xa162a8,_0x2782ea,,_0x302bb3]=_0x469967;if(!_0x3c6f01)return;_0x17512f['stop']();const _0x2a33b4=_0xa162a8['cell'],_0x2cfe0d=_0x2782ea,_0x379874=ve(_0x2a33b4),_0x4026b3=ve(_0x2cfe0d);_0x17512f['return']=_0x2a33b4;let _0x97247c=null,_0x1fea58=null;if(_0x4026b3||_0x379874){if(_0x379874&&!_0x4026b3){_0x302bb3['remove'](_0x2a33b4['getChild'](0x0));for(const _0xd6800 of Array['from'](_0x2cfe0d['getChildren']()))_0x302bb3['insert'](_0xd6800,_0x2a33b4,'end');const _0x3ddebd=_0x3c6f01['rowInsertionIndexes']['includes'](_0xa162a8['row']),_0x3a9934=_0x3c6f01['columnInsertionIndexes']['includes'](_0xa162a8['column']);_0x3ddebd||_0x3a9934||(_0x97247c=_0x5ce503['fromRange'](_0x302bb3['createRangeIn'](_0x2a33b4)));}else _0x4026b3&&!_0x379874&&(_0x1fea58=_0x302bb3['createRangeIn'](_0x2a33b4));}else{const _0x11e62f=_0x302bb3['createElement']('tableCellSuggestion'),_0x1dc0c6=_0x302bb3['createElement']('tableCellSuggestion');_0x302bb3['wrap'](_0x302bb3['createRangeIn'](_0x2a33b4),_0x1dc0c6),_0x302bb3['insert'](_0x11e62f,_0x2a33b4,0x0);for(const _0x49eeba of Array['from'](_0x2cfe0d['getChildren']()))_0x302bb3['insert'](_0x49eeba,_0x11e62f,'end');_0x97247c=_0x5ce503['fromRange'](_0x302bb3['createRangeOn'](_0x11e62f)),_0x1fea58=_0x5ce503['fromRange'](_0x302bb3['createRangeOn'](_0x1dc0c6));}const _0x384a6c=Array['from'](_0x2cfe0d['getAttributes']())['filter'](([_0xb245e2])=>Be['includes'](_0xb245e2));_0x3c6f01['cells']['push']({'element':_0x2a33b4,'attributes':_0x384a6c['length']?Object['fromEntries'](_0x384a6c):null}),_0x97247c&&_0x3c6f01['insertionRanges']['push'](_0x97247c),_0x1fea58&&_0x3c6f01['deletionRanges']['push'](_0x1fea58);},{'priority':'high'}),_0x27cbbe['on']('insertColumns',(_0x153577,_0x588e8e)=>{const [_0x26de8e,_0x2b6b1d={}]=_0x588e8e;if(!_0x3c6f01)return;const _0x4243e6=_0x2b6b1d['at']||0x0,_0x4941b8=_0x2b6b1d['columns']||0x1;_0x3c6f01['columnInsertionIndexes']=new Array(_0x4941b8)['fill'](_0x4243e6)['map']((_0x149941,_0x25a1e8)=>_0x149941+_0x25a1e8);for(const {cell:_0x2031ca}of _0x27cbbe['createTableWalker'](_0x26de8e,{'startColumn':_0x4243e6,'endColumn':_0x4243e6+_0x4941b8-0x1}))_0x3c6f01['columnInsertionRanges']['push'](_0x283fe9['model']['createRangeOn'](_0x2031ca));},{'priority':'low'}),_0x27cbbe['on']('insertRows',(_0x1e4095,_0x4fff35)=>{const [_0x49f061,_0x5d1399={}]=_0x4fff35;if(!_0x3c6f01)return;const _0x2979bc=_0x5d1399['at']||0x0,_0x19f67e=_0x5d1399['rows']||0x1;_0x3c6f01['rowInsertionIndexes']=new Array(_0x19f67e)['fill'](_0x2979bc)['map']((_0x215b17,_0x2cdcf1)=>_0x215b17+_0x2cdcf1);for(const {cell:_0x1db326}of _0x27cbbe['createTableWalker'](_0x49f061,{'startRow':_0x2979bc,'endRow':_0x2979bc+_0x19f67e-0x1}))_0x3c6f01['rowInsertionRanges']['push'](_0x283fe9['model']['createRangeOn'](_0x1db326));},{'priority':'low'}),_0x4d36e0['descriptionFactory']['registerDescriptionCallback'](_0x34a838=>{if(_0x34a838['subType']&&_0x34a838['subType']['startsWith']('tablePaste'))return _0x34a838['previous']?{}:{'type':'insertion','content':At(_0x283fe9['locale'],'*Replace\x20table\x20cells*')};});const _0x5297b1=()=>!0x1;for(const _0x29fb41 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4d36e0['_suggestionFactory']['registerCustomCallback']('insertion',_0x29fb41,'join',_0x5297b1),_0x4d36e0['_suggestionFactory']['registerCustomCallback']('deletion',_0x29fb41,'join',_0x5297b1),_0x4d36e0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x29fb41,'join',_0x5297b1);_0x4d36e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5297b1),_0x4d36e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5695f2,_0x369b4a,_0x56f53f)=>{const _0x5b0e72=_0x5695f2['map'](_0x3e88c1=>_0x3e88c1['getContainedElement']())['filter'](_0x4ee905=>_0x4ee905),_0x5ac2c9=new Map(_0x5b0e72['map'](_0x569d75=>[_0x569d75,null]));if(_0x3c6f01){for(const {element:_0x11c520,attributes:_0x446237}of _0x3c6f01['cells'])_0x446237&&_0x5ac2c9['set'](_0x11c520,_0x446237);}else{if(_0x56f53f&&_0x56f53f['markerAttributes'])for(const [_0x2eda7b,_0x422ec0]of Object['entries'](_0x56f53f['markerAttributes'])){const _0x23533d=_0x283fe9['model']['markers']['get'](_0x2eda7b),_0x319a61=_0x23533d?_0x23533d['getRange']()['getContainedElement']():null;_0x319a61&&_0x5ac2c9['set'](_0x319a61,_0x422ec0);}}_0x283fe9['model']['change'](_0x494578=>{for(const [_0x35333e,_0x5ae395]of _0x5ac2c9)_0x494578['setAttributes']({...Fe,..._0x5ae395},_0x35333e);});});const _0x103792=(_0x4cf3f6,_0x5d51ce)=>{_0x4d36e0['_suggestionFactory']['registerCustomCallback'](_0x4cf3f6,'tablePaste',_0x5d51ce,(_0x49a153,_0x576810,_0x534953)=>{_0x283fe9['model']['change'](_0x22c5fe=>{const _0x1fc533=[];for(const _0x393280 of _0x49a153){const _0x3b9977=_0x393280['start']['nodeAfter'];_0x3b9977['is']('element','tableCellSuggestion')&&_0x1fc533['push'](_0x3b9977);}_0x4d36e0['_suggestionFactory']['getSuggestionCallback'](_0x4cf3f6,null,_0x5d51ce)(_0x49a153,_0x576810,_0x534953);for(const _0x283be0 of _0x1fc533)'$graveyard'!=_0x283be0['root']['rootName']&&_0x22c5fe['unwrap'](_0x283be0);});});};_0x103792('insertion','accept'),_0x103792('insertion','discard'),_0x103792('deletion','accept'),_0x103792('deletion','discard'),_0x4d36e0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x431f24=>{const _0x9bdc40=_0x431f24['map'](_0x47398d=>_0x47398d['getContainedElement']()),_0x3fd44f=_0x9bdc40[0x0]['findAncestor']('table'),{minRow:_0x18b2c5,maxRow:_0x2dfc30}=_0x5742f2['_getCoordsForCells'](_0x9bdc40);_0x27cbbe['removeRows'](_0x3fd44f,{'at':_0x18b2c5,'rows':_0x2dfc30-_0x18b2c5+0x1});}),_0x4d36e0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x506cb8=>{const _0x34e2d5=_0x506cb8['map'](_0x4be18a=>_0x4be18a['getContainedElement']()),_0x281b5c=_0x34e2d5[0x0]['findAncestor']('table'),{minColumn:_0x4bac8f,maxColumn:_0x577247}=_0x5742f2['_getCoordsForCells'](_0x34e2d5);_0x27cbbe['removeColumns'](_0x281b5c,{'at':_0x4bac8f,'columns':_0x577247-_0x4bac8f+0x1});});const _0x1cd6d0=(_0x1214a3,_0x59e7a3)=>{if(!_0x59e7a3['subType']||!_0x59e7a3['subType']['startsWith']('tablePaste'))return;const _0x24f556=_0x59e7a3['attributes']['tablePasteChainId'],_0x542d06=_0x4d36e0['getSuggestions']()['filter'](_0xd3d0f3=>_0xd3d0f3['isInContent']&&_0xd3d0f3['attributes']&&_0xd3d0f3['attributes']['tablePasteChainId']==_0x24f556);_0x542d06['length']&&_0x59e7a3['getAllAdjacentSuggestions']()['length']!=_0x542d06['length']&&_0x542d06['reduce']((_0x2c7773,_0x457aac)=>(_0x2c7773['next']=_0x457aac,_0x457aac['previous']=_0x2c7773,_0x457aac));};function _0x3ef718(_0x31ecd6,_0x379fc8=!0x0){const {id:_0x383b96,authorId:_0x4f40aa}=_0x5024a3(_0x31ecd6['markerName']),_0x20dfd2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x520cd4=_0x4d36e0['activeMarkers']['includes'](_0x31ecd6['markerName']);return _0x520cd4&&_0x20dfd2['push']('ck-suggestion-marker--active'),{'classes':_0x20dfd2,'attributes':{'data-suggestion':_0x383b96,'data-author-id':_0x4f40aa},'priority':_0x520cd4&&_0x379fc8?0xbc2:0xbb8};}_0x4d36e0['on']('suggestionLoaded',_0x1cd6d0,{'priority':'high'}),_0x4d36e0['on']('suggestionUnloaded',_0x1cd6d0,{'priority':'high'}),_0x283fe9['model']['document']['registerPostFixer'](()=>{let _0x353eba=!0x1;const _0x2e2322=Array['from'](_0x283fe9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x385f96,data:_0x12f73d}of _0x2e2322){const {group:_0x1673cd,type:_0x751e5f,id:_0x3681f2}=_0x5024a3(_0x385f96);if('suggestion'!=_0x1673cd||'deletion'!=_0x751e5f||_0x12f73d['oldRange'])continue;if(!_0x4d36e0['hasSuggestion'](_0x3681f2))continue;const _0x9f1865=_0x4d36e0['getSuggestion'](_0x3681f2)['getRanges'](),_0x2ab9e5=_0x283fe9['plugins']['get']('Users')['me'];for(const _0x1995d8 of _0x4d36e0['getSuggestions']()){if(!_0x1995d8['isInContent']||_0x1995d8['author']!=_0x2ab9e5)continue;if('formatBlock'!=_0x1995d8['type']||'tablePasteCell'!=_0x1995d8['subType'])continue;if(_0x1995d8['getRanges']()['every'](_0x17415c=>_0x9f1865['some'](_0x1a928b=>_0x1a928b['containsRange'](_0x17415c,!0x0)))){for(const _0xcb6d05 of _0x1995d8['getAllAdjacentSuggestions']())_0xcb6d05['isInContent']&&(_0xcb6d05['discard'](),_0x353eba=!0x0);}}}return _0x353eba;}),_0x283fe9['model']['document']['registerPostFixer'](_0x191dbc=>{const _0x299113=_0x283fe9['commands']['get']('redo');if(!_0x299113||!_0x299113['_createdBatches']['has'](_0x191dbc['batch']))return!0x1;let _0x3c83a2=!0x1;const _0x29c8bd=_0x283fe9['plugins']['get']('Users')['me'],_0x24cab=_0x283fe9['model']['document']['differ']['getChanges'](),_0x6bdbb0=Array['from'](_0x283fe9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x426094,data:_0x11501d})=>{const {group:_0x1814ad,subType:_0x42f0af,authorId:_0x1e3ab1}=_0x5024a3(_0x426094);return'suggestion'==_0x1814ad&&'tablePaste'==_0x42f0af&&_0x1e3ab1==_0x29c8bd['id']&&!_0x11501d['oldRange'];});for(const _0x3d5326 of _0x24cab){if('insert'!=_0x3d5326['type']||'tableCellSuggestion'!=_0x3d5326['name']||0x1!=_0x3d5326['length'])continue;const _0x585622=_0x191dbc['createRange'](_0x3d5326['position'],_0x3d5326['position']['getShiftedBy'](0x1));if(!_0x6bdbb0['find'](({data:_0x576b7a})=>_0x576b7a['newRange']['isEqual'](_0x585622))){for(const {name:_0x3b64c3,data:_0x2539dc}of _0x6bdbb0)if(_0x585622['containsRange'](_0x2539dc['newRange'])){_0x191dbc['updateMarker'](_0x3b64c3,{'range':_0x585622}),_0x3c83a2=!0x0;break;}}}return _0x3c83a2;}),_0x283fe9['model']['document']['registerPostFixer'](_0x54b0e5=>{let _0x405f1b=!0x1;const _0x515703=_0x283fe9['plugins']['get']('Users')['me'],_0x2d4b95=_0x4d36e0['getSuggestions']()['filter'](_0x5eb55e=>_0x5eb55e['isInContent']&&_0x5eb55e['author']==_0x515703),_0x3dac25=new Set(),_0x2f1d5f=new Set();for(const _0x4f00fc of _0x2d4b95)if('tablePaste'==_0x4f00fc['subType'])for(const _0x163eb5 of _0x4f00fc['getMarkers']()){const _0x5ae428=_0x163eb5['getRange']()['getContainedElement']();if(_0x5ae428){if(_0x5ae428['is']('element','tableCellSuggestion')&&ve(_0x5ae428)){_0x4f00fc['removeMarker'](_0x163eb5['name']),_0x3dac25['add'](_0x5ae428),_0x405f1b=!0x0;const _0x56202e=_0x5ae428['nextSibling'],_0x5c0a37=_0x5ae428['previousSibling'],_0x5bb78b=_0x56202e&&_0x56202e['is']('element','tableCellSuggestion'),_0x2f8a8c=_0x5c0a37&&_0x5c0a37['is']('element','tableCellSuggestion');_0x5bb78b&&!_0x3dac25['has'](_0x56202e)&&_0x2f1d5f['add'](_0x56202e),_0x2f8a8c&&!_0x3dac25['has'](_0x5c0a37)&&_0x2f1d5f['add'](_0x5c0a37);}else _0x5ae428['is']('element','paragraph')&&_0x5ae428['isEmpty']&&(_0x4f00fc['removeMarker'](_0x163eb5['name']),_0x405f1b=!0x0);}}else{if('tablePasteCell'==_0x4f00fc['subType']){if(!_0x4f00fc['attributes']||!_0x4f00fc['attributes']['tablePasteChainId'])continue;const _0x565ee4=_0x4f00fc['attributes']['markerAttributes'];if(_0x565ee4&&Object['keys'](_0x565ee4)['length'])continue;const _0x39cf56=_0x4f00fc['attributes']['tablePasteChainId'];let _0x399028=!0x0,_0x29e4a1=!0x0;for(const _0x46c7b1 of _0x2d4b95)if(_0x46c7b1['subType']&&_0x46c7b1['subType']['startsWith']('tablePaste')){if(!_0x46c7b1['attributes']['tablePasteChainId']){_0x29e4a1=!0x1;break;}if(_0x46c7b1['id']!=_0x4f00fc['id']&&_0x46c7b1['attributes']['tablePasteChainId']==_0x39cf56){_0x399028=!0x1;break;}}_0x29e4a1&&_0x399028&&(_0x4f00fc['removeMarkers'](),_0x405f1b=!0x0);}}for(const _0x3b9a51 of _0x3dac25)_0x54b0e5['remove'](_0x3b9a51);for(const _0x8402bb of _0x2f1d5f)_0x54b0e5['unwrap'](_0x8402bb);return _0x405f1b;}),_0x283fe9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x36e2ef=>_0x3ef718(_0x36e2ef),'converterPriority':'high'}),_0x283fe9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3465ca,_0x4c2403)=>_0x4c2403['options']['showSuggestionHighlights']?_0x3ef718(_0x3465ca,!0x1):null,'converterPriority':'high'});const _0x1b2a9c=_0x283fe9['editing']['view'];this['listenTo'](_0x1b2a9c['document'],'clipboardOutput',(_0x240668,_0x4c4135)=>{const _0x28eeb5=[];for(const _0x3cb54c of _0x1b2a9c['createRangeIn'](_0x4c4135['content'])['getItems']())_0x3cb54c['is']('element','suggestion-td')&&_0x28eeb5['push'](_0x3cb54c);_0x1b2a9c['change'](_0x52db17=>{for(const _0x42ffc7 of _0x28eeb5)_0x52db17['move'](_0x52db17['createRangeIn'](_0x42ffc7),_0x52db17['createPositionBefore'](_0x42ffc7)),_0x52db17['remove'](_0x42ffc7);});});}}function ve(_0x1ed813){if(_0x1ed813['isEmpty'])return!0x0;const _0x1d9baa=_0x1ed813['getChild'](0x0);return _0x1d9baa['is']('element','paragraph')&&_0x1d9baa['isEmpty'];}function xe(_0x39f18c,_0x46f08c={},_0x1b57d2){for(const {isAnchor:_0x44c5cd,cellHeight:_0x4dcc64,cellWidth:_0x564e0d}of _0x1b57d2['createTableWalker'](_0x39f18c,{'includeAllSlots':!0x0,..._0x46f08c}))if(!_0x44c5cd||0x1!=_0x4dcc64||0x1!=_0x564e0d)return!0x1;return!0x0;}class Pe extends _0x542478{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xbc5b3e=this['editor']['plugins']['get']('TrackChangesEditing');_0xbc5b3e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xbc5b3e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xbc5b3e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbc5b3e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xbc5b3e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xbc5b3e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2080d1,_0x1da131){const _0x5e8ca7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52073b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4c95fb=_0x1da131['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x32a9e2=_0x52073b['getColumnGroupElement'](_0x4c95fb);let _0x202e07=_0x32a9e2?_0x52073b['getTableColumnsWidths'](_0x32a9e2):null,_0x241870=_0x4c95fb['getAttribute']('tableWidth')||null;const _0x1be678=_0x1da131['tableWidth']||_0x241870,_0x483cfb=_0x1da131['columnWidths']||_0x202e07,_0x5cd92f=this['editor']['plugins']['get']('Users')['me'];for(const _0x36ec44 of _0x5e8ca7['getSuggestions']()){const _0x1ec051=_0x36ec44['getContainedElement']();if('resizeTable'===_0x36ec44['subType']&&_0x1ec051===_0x4c95fb){_0x36ec44['author']!==_0x5cd92f&&_0x36ec44['discard']();const _0x51579f=_0x36ec44['data']['commandParams'];_0x241870=_0x51579f[0x0]['tableWidth'],_0x202e07=_0x51579f[0x0]['columnWidths'];break;}}_0x2080d1({'table':_0x4c95fb,'tableWidth':_0x1be678,'columnWidths':_0x483cfb}),_0x5e8ca7['markBlockFormat'](_0x4c95fb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x241870,'columnWidths':_0x202e07}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x488e12){if('formatBlock'!=_0x488e12['type']&&'formatInline'!=_0x488e12['type'])return;const {data:_0x2c8ebc}=_0x488e12;if(_0x2c8ebc&&'resizeTable'===_0x2c8ebc['formatGroupId']){const _0x38def8='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x38def8)};}}}class Ue extends _0x542478{['afterInit'](){const _0x38dede=this['editor'];_0x38dede['plugins']['has']('Template')&&_0x38dede['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x542478{['afterInit'](){const _0x173c14=this['editor'];if(!_0x173c14['commands']['get']('insertTableOfContents'))return;_0x173c14['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x6f03e5=_0x173c14['plugins']['get']('TrackChangesEditing'),_0x34a17a=_0x173c14['locale'];_0x6f03e5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3229ee=>At(_0x34a17a,'ELEMENT_TABLE_OF_CONTENTS',_0x3229ee));}}class He extends _0x542478{['afterInit'](){const _0x20f0dd=this['editor'];if(!_0x20f0dd['plugins']['has']('Title'))return;_0x20f0dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x20f0dd['locale'],'ELEMENT_TITLE')),_0x20f0dd['model']['document']['registerPostFixer'](_0x4efd9e=>{let _0xf4b105=!0x1;const _0x46e252=Array['from'](_0x20f0dd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13a279,data:_0x4ff40f}of _0x46e252){const {group:_0xb3e28a}=_0x5024a3(_0x13a279);if('suggestion'!==_0xb3e28a||!_0x4ff40f['newRange'])continue;const _0x533a43=_0x4ff40f['newRange'],_0x21cbe3=_0x533a43['end']['nodeBefore'];if(!_0x21cbe3||!_0x21cbe3['is']('element','title-content'))continue;if(!_0x533a43['start']['isTouching'](_0x533a43['end']))continue;const _0x1d819e=_0x20f0dd['model']['schema']['getNearestSelectionRange'](_0x533a43['end'],'forward');if(_0x1d819e&&_0x1d819e['isCollapsed']){const _0x2ed49a=_0x4efd9e['createRange'](_0x533a43['start'],_0x1d819e['start']);_0x2ed49a['isEqual'](_0x533a43)||(_0x4efd9e['updateMarker'](_0x13a279,{'range':_0x2ed49a}),_0xf4b105=!0x0);}_0xf4b105||(_0x4efd9e['removeMarker'](_0x13a279),_0xf4b105=!0x0);}return _0xf4b105;});}}class $e extends _0x542478{['afterInit'](){const _0x2276fa=this['editor'],_0x3c0e44=_0x2276fa['plugins']['get']('TrackChangesEditing');_0x2276fa['plugins']['has']('Uploadcare')&&(_0x3c0e44['enableCommand']('uploadcare'),_0x2276fa['plugins']['has']('UploadcareImageEdit')&&(_0x3c0e44['enableCommand']('uploadcareImageEdit'),_0x3c0e44['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3c0e44['descriptionFactory']['registerDescriptionCallback'](_0x575e1d=>{if('attribute'!=_0x575e1d['type'])return;const {data:_0x29bfee}=_0x575e1d;return _0x29bfee&&'uploadcareImageId'==_0x29bfee['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x542478{['afterInit'](){const _0x33f0e6=this['editor'],_0x77deba=_0x33f0e6['plugins']['get']('TrackChangesEditing');_0x33f0e6['plugins']['has']('UndoEditing')&&(_0x77deba['enableCommand']('undo'),_0x77deba['enableCommand']('redo'));}}class Ve extends _0x542478{static get['requires'](){return[Ne];}['afterInit'](){const _0xfe613a=this['editor'];if(!_0xfe613a['plugins']['has']('TableCaptionEditing'))return;_0xfe613a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x542478{['tableProperties'];['tableCellProperties'];constructor(_0x2672aa){super(_0x2672aa),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1642cb=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x33cdd7 of this['tableProperties'])_0x1642cb['enableCommand'](_0x33cdd7,(_0x358000,_0x57d088)=>{const _0x191266=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x33cdd7,[_0x191266],this['tableProperties'],'tableProperties',_0x358000,_0x57d088);});_0x1642cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1642cb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1642cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x358b8e,_0x53215a)=>this['handleDiscardAction'](this['tableProperties'],_0x358b8e,_0x53215a)),_0x1642cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x382f42 of this['tableCellProperties'])this['editor']['commands']['get'](_0x382f42)&&_0x1642cb['enableCommand'](_0x382f42,(_0xc3ada0,_0x3699db)=>{const _0x4a71af=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x382f42,_0x4a71af,this['tableCellProperties'],'tableCellProperties',_0xc3ada0,_0x3699db);});_0x1642cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1642cb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1642cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2bd905,_0x4c6242)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2bd905,_0x4c6242)),_0x1642cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1642cb['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x1642cb['descriptionFactory']['registerDescriptionCallback'](_0x22b0a1=>this['handleSuggestionDescription'](_0x22b0a1)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3c5fa0,_0x1de6cb,_0x3c939d,_0x25be7e,_0x6a9e36,_0x1edf52){const _0x7be1c1=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1edf52['batch'],()=>{for(const _0x322d90 of _0x1de6cb){if(this['_getSuggestion'](_0x322d90,_0x25be7e))_0x6a9e36(_0x1edf52);else{const _0x3e2533={};for(const _0x3fc18d of _0x3c939d){const _0x1bd259=_0x322d90['getAttribute'](_0x3fc18d);void 0x0!==_0x1bd259&&(_0x3e2533[_0x3fc18d]=_0x1bd259);}_0x6a9e36(_0x1edf52),_0x7be1c1['markBlockFormat'](_0x322d90,{'commandParams':[_0x3e2533]},[],_0x25be7e);}}});}['handleDiscardAction'](_0x141247,_0x15c37a,_0x1e6554){const _0x5c684b=_0x15c37a[0x0]['start']['nodeAfter'],_0x3c4243=_0x1e6554['commandParams'][0x0];this['editor']['model']['change'](_0x475079=>{for(const _0x27e65d of _0x141247)void 0x0!==_0x3c4243[_0x27e65d]?_0x475079['setAttribute'](_0x27e65d,_0x3c4243[_0x27e65d],_0x5c684b):_0x475079['removeAttribute'](_0x27e65d,_0x5c684b);});}['handleSuggestionDescription'](_0x1b9792){if(_0x1b9792['data'])switch(_0x1b9792['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1e24ac,_0x22d565){const _0x2b54d5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x30756b of _0x2b54d5['getSuggestions']({'skipNotAttached':!0x0})){const _0x51be8e=_0x30756b['getContainedElement']();if(_0x30756b['subType']===_0x22d565&&_0x51be8e===_0x1e24ac)return _0x30756b;}return null;}['_registerTablePropertiesAttributes'](){const _0x48f16f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d5906=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x590d2e of _0x4d5906){const _0x7d3925=_0x590d2e['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x48f16f['descriptionFactory']['registerAttributeLabel'](_0x590d2e,At(this['editor']['locale'],'FORMAT_'+_0x7d3925));}}}class ze extends _0x542478{['afterInit'](){const _0x28a580=this['editor'];if(!_0x28a580['plugins']['has']('LineHeight'))return;const _0x199033=_0x28a580['plugins']['get']('TrackChangesEditing'),_0x5af3d0=_0x28a580['locale'];_0x199033['enableDefaultAttributesIntegration']('lineHeight'),_0x199033['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x5af3d0,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x542478{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x5208d5,_0x69b91c,_0x46e4db,_0x6ed9b4,_0x3ad365,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2013d7){super(_0x2013d7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x246d82,_0x46de21,_0x46dbbb,_0x5c9ad3)=>{this['_model']['change'](()=>{for(const _0x1f9669 of[..._0x5c9ad3,..._0x46dbbb])this['_model']['markers']['has'](_0x1f9669)&&_0x2013d7['editing']['reconvertMarker'](_0x1f9669);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2013d7['plugins']['get'](_0x5208d5),this['_suggestionsConversion']=_0x2013d7['plugins']['get'](_0x69b91c),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2013d7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2013d7['config']['get']('trackChanges.trackFormatChanges'),_0x2013d7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2013d7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x2013d7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1760e8=this['editor'];_0x1760e8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe39467,{writer:_0x2b9e56})=>{let _0x49e29c='suggestion:'+_0xe39467['getAttribute']('suggestion-type')+':'+_0xe39467['getAttribute']('id');return _0xe39467['getAttribute']('marker-count')&&(_0x49e29c+=':'+_0xe39467['getAttribute']('marker-count')),_0x2b9e56['createElement']('$marker',{'data-name':_0x49e29c});}}),_0x1760e8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1760e8['model']['document']['registerPostFixer'](_0x216bec=>{let _0x421406=!0x1;const _0xf1f3af=Array['from'](_0x1760e8['model']['document']['differ']['getChangedMarkers']()),_0x2c92bb=new Set();for(const {name:_0x44572f,data:_0x458440}of _0xf1f3af){const {group:_0x50ec50,type:_0x36adf7,subType:_0xdb9367,id:_0x1905fb}=_0x5024a3(_0x44572f);if('suggestion'!==_0x50ec50)continue;const _0x42fabb=_0xdb9367?'suggestion:'+_0x36adf7+':'+_0xdb9367+':'+_0x1905fb:'suggestion:'+_0x36adf7+':'+_0x1905fb,_0x1f5563=_0x1760e8['model']['markers']['getMarkersGroup'](_0x42fabb),_0x589b21=_0x1760e8['model']['markers']['get'](_0x44572f),_0x342180=this['_suggestions']['get'](_0x1905fb);if(null!=_0x458440['newRange']){'formatInline'==_0x36adf7&&(_0x421406=_0x421406||Ze(_0x458440['newRange'],_0x44572f,_0x216bec,_0x1760e8['model']['schema']));const _0x46d6e2='attribute'==_0x36adf7&&this['_suggestionsConversion']['isBlockAttribute'](un(_0xdb9367)),_0x34f8ab='attribute'==_0x36adf7&&this['_suggestionsConversion']['isInlineAttribute'](un(_0xdb9367));if(_0x458440['newRange']['isCollapsed']||'$graveyard'==_0x458440['newRange']['root']['rootName']||'formatBlock'==_0x36adf7&&!tn(_0x458440['newRange'])||_0x46d6e2&&!tn(_0x458440['newRange'])||_0x34f8ab&&en(_0x458440['newRange'])||'deletion'==_0x36adf7&&en(_0x458440['newRange'])||_0x589b21&&nn(_0x589b21,_0x1f5563))_0x216bec['removeMarker'](_0x44572f),_0x421406=!0x0;else{if(!_0x342180||!_0x342180['isInContent'])continue;if(_0x458440['newRange']&&_0x458440['oldRange']&&_0x458440['newRange']['isEqual'](_0x458440['oldRange']))continue;_0x2c92bb['add'](_0x342180);}}}return _0x2c92bb['size']>0x0&&(_0x421406=!!this['_joinWithAdjacentSuggestions'](_0x2c92bb)||_0x421406),_0x421406;}),_0x1760e8['model']['document']['registerPostFixer'](_0x369d2a=>{let _0xfc31b5=!0x1;for(const _0x10ba87 of _0x1760e8['model']['document']['differ']['getChanges']())if('insert'==_0x10ba87['type'])for(const _0x1cd9e0 of this['_suggestions']['values']()){if(_0x1cd9e0['isMultiRange']||!_0x1cd9e0['isInContent'])continue;const _0x51f4d5='formatBlock'==_0x1cd9e0['type'],_0x2c5001=this['_getAttributeKey'](_0x1cd9e0),_0x28c48a=_0x2c5001&&this['_suggestionsConversion']['isBlockAttribute'](_0x2c5001);if(!_0x51f4d5&&!_0x28c48a)continue;const _0x2db6ba=_0x1cd9e0['getFirstRange']();if(_0x2db6ba['start']['parent']!=_0x2db6ba['end']['parent']&&!_0x2db6ba['end']['isAtEnd']){const _0x32b471=_0x1760e8['model']['createPositionAt'](_0x2db6ba['start']['nodeAfter'],'end'),_0x4963cf=_0x1760e8['model']['createRange'](_0x2db6ba['start'],_0x32b471);_0x369d2a['updateMarker'](_0x1cd9e0['getFirstMarker'](),{'range':_0x4963cf}),_0xfc31b5=!0x0;}}return _0xfc31b5;}),_0x1760e8['model']['document']['registerPostFixer'](_0x54a41d=>this['_processAttributeChanges'](_0x54a41d)),_0x1760e8['model']['document']['registerPostFixer'](_0x140caf=>!_0x140caf['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x140caf)),_0x1760e8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1760e8['model']['document']['on']('change:data',(_0x542175,_0x5c8587)=>{if(!_0x5c8587['isLocal']||_0x5c8587['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x95be20=_0x1760e8['model']['document']['differ']['getChanges']();if(0x0==_0x95be20['length'])return;const _0x5cf1a3=[],_0x547593=_0x95be20['filter'](_0x8f4ef2=>'attribute'==_0x8f4ef2['type']),_0x34358c=_0x95be20['filter'](_0x32301a=>'insert'==_0x32301a['type']&&'$text'!=_0x32301a['name']);for(const _0x333e22 of _0x547593)this['_suggestionsConversion']['isRegisteredAttribute'](_0x333e22['attributeKey'])&&_0x5cf1a3['push']({'key':_0x333e22['attributeKey'],'newValue':_0x333e22['attributeNewValue'],'oldValue':_0x333e22['attributeOldValue'],'range':sn(_0x333e22['range'],_0x1760e8['model'])});for(const _0xa42ba9 of _0x34358c){if('rename'!=_0xa42ba9['action']&&'refresh'!=_0xa42ba9['action'])continue;const _0x3e52d2=rn(_0xa42ba9['position']['nodeAfter'],_0x1760e8['model']),_0x444e0a=_0xa42ba9['before'];'rename'==_0xa42ba9['action']&&_0x5cf1a3['push']({'key':Ke,'newValue':_0xa42ba9['name'],'oldValue':_0x444e0a['name'],'range':_0x3e52d2});for(const [_0x228a42,_0x6493df]of _0x444e0a['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x228a42))continue;const _0x69eed1=_0xa42ba9['attributes']['get'](_0x228a42);_0x6493df!==_0x69eed1&&_0x5cf1a3['push']({'key':_0x228a42,'newValue':_0x69eed1,'oldValue':_0x6493df,'range':_0x3e52d2});}for(const [_0x14be78,_0x18d0d1]of _0xa42ba9['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x14be78)&&(_0x444e0a['attributes']['has'](_0x14be78)||_0x5cf1a3['push']({'key':_0x14be78,'newValue':_0x18d0d1,'oldValue':null,'range':_0x3e52d2}));}0x0!=_0x5cf1a3['length']&&_0x1760e8['model']['enqueueChange'](_0x5c8587,_0x3ade90=>{const _0x157a6a=_0x6e7e15();for(const {range:_0x54f916,key:_0x389ba9,oldValue:_0xb06002,newValue:_0x40bbd0}of _0x5cf1a3)this['markAttributeChange'](_0x54f916,_0x389ba9,_0xb06002,_0x40bbd0,{'groupId':_0x157a6a});this['_reduceExistingSuggestions'](_0x3ade90,_0x5cf1a3);});},{'priority':'lowest'}),_0x1760e8['model']['markers']['on']('update:suggestion',(_0x473373,_0x4b935c,_0x4365ed)=>{if(null==_0x4365ed){const {id:_0x6a1f8e}=_0x5024a3(_0x4b935c['name']),_0x2f0020=this['_suggestions']['get'](_0x6a1f8e);_0x2f0020&&_0x2f0020['addMarkerName'](_0x4b935c['name']);}}),_0x1760e8['model']['document']['on']('change:data',()=>{const _0x2a4670=Array['from'](_0x1760e8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5a2838=>'suggestion'===_0x5024a3(_0x5a2838['name'])['group']);if(0x0===_0x2a4670['length'])return;_0x2a4670['sort']((_0x44b50e,_0x172916)=>{const _0xd24627=_0x44b50e['data']['oldRange'],_0x215b29=_0x172916['data']['oldRange'];return null===_0xd24627&&null===_0x215b29?0x0:null===_0xd24627&&null!==_0x215b29?-0x1:null!==_0xd24627&&null===_0x215b29?0x1:_0xd24627['start']['isBefore'](_0x215b29['start'])?-0x1:0x1;});const _0xb0b4f4=new Set(),_0x339097=new Set();for(const {name:_0x7101e3,data:_0x54f17d}of _0x2a4670){const {id:_0xd596a3}=_0x5024a3(_0x7101e3);if(null===_0x54f17d['oldRange']){const _0x368c1e=this['_handleNewSuggestionMarker'](_0x7101e3);_0x339097['add'](_0x368c1e);}else{const _0x51b3b2=this['_suggestions']['get'](_0xd596a3);null!==_0x54f17d['newRange']||_0x51b3b2['isInContent']?(_0xb0b4f4['add'](_0x51b3b2['head']),_0x339097['add'](_0x51b3b2)):this['_removeSuggestion'](_0x51b3b2);}}_0x339097['size']>0x0&&this['_refreshSuggestionsChain'](_0x339097);for(const _0x2102a1 of _0xb0b4f4)this['fire']('suggestionChanged',_0x2102a1);}),_0x1760e8['model']['on']('applyOperation',(_0x398524,_0x3e5a75)=>{const _0x57f162=_0x3e5a75[0x0];if(!this['_suggestions']['size'])return;if(!_0x57f162['isDocumentOperation'])return;if(_0x57f162['batch']['isUndo']||!_0x57f162['batch']['isLocal'])return;let _0x4a5410,_0x53ae2e;switch(_0x57f162['type']){case'insert':_0x4a5410=_0x1760e8['model']['createPositionAt'](_0x57f162['position']),_0x53ae2e=_0x4a5410['getShiftedBy'](_0x57f162['howMany']);break;case'split':_0x4a5410=_0x1760e8['model']['createPositionAt'](_0x57f162['splitPosition']),_0x53ae2e=_0x1760e8['model']['createPositionAt'](_0x57f162['moveTargetPosition']);break;case'move':_0x4a5410=_0x1760e8['model']['createPositionAt'](_0x57f162['targetPosition']),_0x53ae2e=_0x4a5410['getShiftedBy'](_0x57f162['howMany']);break;default:return;}const _0x5c8f60=_0x1760e8['model']['createRange'](_0x4a5410,_0x53ae2e);_0x1760e8['model']['change'](()=>{for(const {suggestion:_0x33621b,meta:_0x58789d}of this['_findSuggestions'](_0x5c8f60)){if(_0x33621b['isMultiRange'])continue;if('formatInline'==_0x33621b['type'])continue;const _0x31a4ad=this['_getAttributeKey'](_0x33621b);if(_0x31a4ad&&this['_suggestionsConversion']['isBlockAttribute'](_0x31a4ad)&&'split'!=_0x57f162['type'])continue;const _0x3116e9=_0x33621b['data']&&_0x33621b['data']['multipleBlocks'];('formatBlock'!=_0x33621b['type']||'split'==_0x57f162['type']&&!_0x3116e9)&&(_0x58789d['containsRangeInObject']||'insertion'==_0x33621b['type']&&_0x58789d['isOwn']||_0x33621b['getFirstRange']()['containsRange'](_0x5c8f60)&&this['_breakSuggestionMarker'](_0x33621b,_0x4a5410,_0x53ae2e));}});},{'priority':'lowest'}),_0x1760e8['model']['on']('deleteContent',(_0x38f9df,_0x18b5ce)=>{const _0x2368fb=_0x18b5ce[0x0],_0x39ac06=_0x18b5ce[0x1];if(_0x39ac06&&_0x39ac06['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2368fb['isCollapsed'])return;const _0x422804=_0x1760e8['model']['schema'],{start:_0x3556a2,end:_0xebba10}=_0x2368fb['getFirstRange'](),_0x169b11=_0x3556a2['nodeAfter']&&_0x422804['isLimit'](_0x3556a2['nodeAfter'])?null:_0x422804['getNearestSelectionRange'](_0x3556a2,'forward'),_0xfb9b1e=_0xebba10['nodeBefore']&&_0x422804['isLimit'](_0xebba10['nodeBefore'])?null:_0x422804['getNearestSelectionRange'](_0xebba10,'backward'),_0x535d5f=_0x1760e8['model']['createRange'](_0x169b11?_0x169b11['start']:_0x3556a2,_0xfb9b1e?_0xfb9b1e['end']:_0xebba10);_0x1760e8['model']['change'](_0x573cfc=>{this['markDeletion'](_0x535d5f);const _0x543cfb=_0x1760e8['model']['schema']['getNearestSelectionRange'](_0x535d5f['start']);_0x2368fb['is']('documentSelection')?_0x573cfc['setSelection'](_0x543cfb):_0x2368fb['setTo'](_0x543cfb);}),_0x38f9df['stop']();},{'priority':_0x2d50ac['normal']+0xa}),_0x1760e8['model']['on']('insertContent',(_0x2163db,_0x4781bf)=>{const _0x183852=_0x4781bf[_0x4781bf['length']-0x1];_0x183852&&_0x183852['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1760e8['model']['change'](()=>{let _0x164715=_0x1760e8['model']['insertContent'](_0x4781bf[0x0],_0x4781bf[0x1],_0x4781bf[0x2],{'forceDefaultExecution':!0x0});if(!_0x164715)return;_0x2163db['return']=_0x164715['clone']();const _0x1b2086=_0x164715['end']['nodeBefore'],_0x322dd9=_0x1760e8['model']['schema'];_0x1b2086&&_0x322dd9['isBlock'](_0x1b2086)&&!_0x322dd9['isObject'](_0x1b2086)&&(_0x164715=_0x1760e8['model']['createRange'](_0x164715['start'],_0x1760e8['model']['createPositionAt'](_0x1b2086,'end'))),this['markInsertion'](_0x164715);}),_0x2163db['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1c5c2b=new dt(_0x1760e8,this['_suggestions']);_0x1760e8['commands']['add']('acceptSuggestion',_0x1c5c2b),this['enableCommand']('acceptSuggestion');const _0x5e44ce=new ft(_0x1760e8,this['_suggestions']);_0x1760e8['commands']['add']('discardSuggestion',_0x5e44ce),this['enableCommand']('discardSuggestion'),_0x1760e8['commands']['add']('acceptAllSuggestions',new Lt(_0x1760e8,_0x1c5c2b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1760e8['commands']['add']('discardAllSuggestions',new Lt(_0x1760e8,_0x5e44ce,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1760e8['commands']['add']('acceptSelectedSuggestions',new It(_0x1760e8,_0x1c5c2b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1760e8['commands']['add']('discardSelectedSuggestions',new It(_0x1760e8,_0x5e44ce,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1ac99c=_0x1760e8['plugins']['get'](_0x5208d5);this['listenTo'](_0x1ac99c,'addComment',(_0x1ed865,{threadId:_0x5c5923})=>{const _0x8b9bbd=this['_suggestions']['get'](_0x5c5923);_0x8b9bbd&&_0x8b9bbd['commentThread']&&0x1===_0x8b9bbd['commentThread']['length']&&this['_updateSuggestionData'](_0x5c5923,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1ac99c,'removeComment',(_0x4c8506,{threadId:_0x412467})=>{const _0x2df103=this['_suggestions']['get'](_0x412467);_0x2df103&&_0x2df103['commentThread']&&!_0x2df103['commentThread']['length']&&this['_updateSuggestionData'](_0x412467,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x508625){const _0xce9a1c=_0x31d25d([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]),_0x5dd0a7=0x3d8d0df,_0x13ff52=0x3df5427^_0x5dd0a7,_0x583ddb=window[_0x31d25d([0x44,0x61,0x74,0x65])][_0x31d25d([0x6e,0x6f,0x77])](),_0x45bbb1=_0x508625[_0x31d25d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x34dc26=new window[(_0x31d25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x424fe1=>{_0x45bbb1[_0x31d25d([0x6f,0x6e,0x63,0x65])](_0x31d25d([0x72,0x65,0x61,0x64,0x79]),_0x424fe1);}),_0x4ec71e={[_0x31d25d([0x6b,0x74,0x79])]:_0x31d25d([0x45,0x43]),[_0x31d25d([0x75,0x73,0x65])]:_0x31d25d([0x73,0x69,0x67]),[_0x31d25d([0x63,0x72,0x76])]:_0x31d25d([0x50,0x2d,0x32,0x35,0x36]),[_0x31d25d([0x78])]:_0x31d25d([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]),[_0x31d25d([0x79])]:_0x31d25d([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]),[_0x31d25d([0x61,0x6c,0x67])]:_0x31d25d([0x45,0x53,0x32,0x35,0x36])},_0x26962d=_0x45bbb1[_0x31d25d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31d25d([0x67,0x65,0x74])](_0x31d25d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ae245(){let _0x5127d6,_0x2fdf31=null,_0x5c3706=null;try{if(_0x26962d==_0x31d25d([0x47,0x50,0x4c]))return _0x31d25d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5127d6=_0x168a4b(),!_0x5127d6)return _0x31d25d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5127d6[_0x31d25d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c3706=_0x132623(_0x5127d6[_0x31d25d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5127d6[_0x31d25d([0x6a,0x74,0x69])])),await _0x2ab911()?_0x1d4d6c()?_0x410d7e()?_0x31d25d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa0ab0c()?(_0x5127d6[_0x31d25d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31d25d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fdf31=_0x3979a0(_0x31d25d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35b271()):_0x31d25d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31d25d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31d25d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x31d25d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x410d7e(){const _0x1267f6=[_0x31d25d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31d25d([0x74,0x72,0x69,0x61,0x6c])][_0x31d25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5127d6[_0x31d25d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x583ddb/0x3e8:0xe10*_0x13ff52;return _0x5127d6[_0x31d25d([0x65,0x78,0x70])]<_0x1267f6;}function _0x1d4d6c(){const _0x5667e1=_0x5127d6[_0x31d25d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5667e1)return!0x1;if(_0x5667e1[_0x31d25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31d25d([0x2a])))return!0x0;if(_0x5667e1[_0x31d25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31d25d([0x54,0x43])))return!0x0;if(_0x5667e1[_0x31d25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31d25d([0x52,0x54,0x43]))){if(_0x561282())return!0x0;if(_0x4df110()||_0x2b77ae())return!0x0;}return!0x1;}function _0xa0ab0c(){const _0x1a5ea3=_0x5127d6[_0x31d25d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a5ea3||0x0==_0x1a5ea3[_0x31d25d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ef8c1}=new URL(window[_0x31d25d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a5ea3[_0x31d25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ef8c1))return!0x0;const _0x87d65c=_0x3ef8c1[_0x31d25d([0x73,0x70,0x6c,0x69,0x74])](_0x31d25d([0x2e]));return _0x1a5ea3[_0x31d25d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59ebd3=>_0x59ebd3[_0x31d25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31d25d([0x2a])))[_0x31d25d([0x6d,0x61,0x70])](_0x39eefe=>_0x39eefe[_0x31d25d([0x73,0x70,0x6c,0x69,0x74])](_0x31d25d([0x2e])))[_0x31d25d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x150fb8=>_0x150fb8[_0x31d25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x87d65c[_0x31d25d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31d25d([0x6d,0x61,0x70])](_0x4835cc=>Array(_0x87d65c[_0x31d25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4835cc[_0x31d25d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31d25d([0x66,0x69,0x6c,0x6c])](_0x4835cc[0x0]===_0x31d25d([0x2a])?_0x31d25d([0x2a]):'')[_0x31d25d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4835cc))[_0x31d25d([0x73,0x6f,0x6d,0x65])](_0x1cff72=>_0x87d65c[_0x31d25d([0x65,0x76,0x65,0x72,0x79])]((_0x28e44a,_0x2bf6a8)=>_0x1cff72[_0x2bf6a8]===_0x28e44a||_0x1cff72[_0x2bf6a8]===_0x31d25d([0x2a])));}function _0x35b271(){return _0x2fdf31&&_0x5c3706?new window[(_0x31d25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56f1af,_0x5a25aa)=>{_0x2fdf31[_0x31d25d([0x74,0x68,0x65,0x6e])](_0x56f1af,_0x5a25aa),_0x5c3706[_0x31d25d([0x74,0x68,0x65,0x6e])](_0x4cc77b=>{_0x4cc77b!=_0x31d25d([0x56,0x61,0x6c,0x69,0x64])&&_0x56f1af(_0x4cc77b);},_0x5a25aa);}):_0x2fdf31||_0x5c3706||_0x31d25d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x132623(_0x41c1fa,_0x2fab79){return new window[(_0x31d25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x393563=>{if(_0x356d9f())return _0x393563(_0x31d25d([0x56,0x61,0x6c,0x69,0x64]));_0x2e1a80(),_0x45bbb1[_0x31d25d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31d25d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x132b1e=!0x1;const _0x5d6af9=_0x6e7e15();function _0x29f316(_0x5a5145){return!!_0x5a5145&&(typeof _0x5a5145===_0x31d25d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a5145===_0x31d25d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a5145[_0x31d25d([0x74,0x68,0x65,0x6e])]===_0x31d25d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a5145[_0x31d25d([0x63,0x61,0x74,0x63,0x68])]===_0x31d25d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc62b12(_0x10bbdd){_0x313d22(_0x10bbdd)[_0x31d25d([0x74,0x68,0x65,0x6e])](_0x24385b=>{if(!_0x24385b||_0x24385b[_0x31d25d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31d25d([0x6f,0x6b]))return _0x31d25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x59ae56(_0xf24f80(_0x5d6af9+_0x2fab79))!=_0x24385b[_0x31d25d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31d25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31d25d([0x56,0x61,0x6c,0x69,0x64]);})[_0x31d25d([0x74,0x68,0x65,0x6e])](_0x523274=>(_0x5e2a7f(),_0x523274),()=>{const _0x647650=_0x1d4a87();return null==_0x647650?(_0x5e2a7f(),_0x31d25d([0x56,0x61,0x6c,0x69,0x64])):_0x31d25d(_0x583ddb-_0x647650>(0x27d454df^_0x5dd0a7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31d25d([0x74,0x68,0x65,0x6e])](_0x393563)[_0x31d25d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x393563(_0x31d25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5be488=0x3ee3e5f^_0x5dd0a7;function _0x5e2a7f(){const _0xebe1ac=_0x31d25d([0x6c,0x6c,0x63,0x74,0x2d])+_0x59ae56(_0xf24f80(_0x41c1fa)),_0xebfc1b=_0x5e309b(_0x59ae56(window[_0x31d25d([0x4d,0x61,0x74,0x68])][_0x31d25d([0x63,0x65,0x69,0x6c])](_0x583ddb/_0x5be488)));window[_0x31d25d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31d25d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xebe1ac,_0xebfc1b);}function _0x1d4a87(){const _0x2e4341=_0x31d25d([0x6c,0x6c,0x63,0x74,0x2d])+_0x59ae56(_0xf24f80(_0x41c1fa)),_0x448318=window[_0x31d25d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31d25d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e4341);return _0x448318?window[_0x31d25d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e309b(_0x448318),0x10)*_0x5be488:null;}function _0x313d22(_0x57c9ed){return new window[(_0x31d25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5577f0,_0xcaf7fb)=>{_0x57c9ed[_0x31d25d([0x74,0x68,0x65,0x6e])](_0x5577f0,_0xcaf7fb),window[_0x31d25d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xcaf7fb,0x3d9041f^_0x5dd0a7);});}}_0x45bbb1[_0x31d25d([0x6f,0x6e])](_0x31d25d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x22f539,_0x798902)=>{if(_0x798902[0x0]!=_0x41c1fa)return _0x393563(_0x31d25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x798902[0x1]={..._0x798902[0x1],[_0x31d25d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d6af9};},{[_0x31d25d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31d25d([0x68,0x69,0x67,0x68])}),_0x45bbb1[_0x31d25d([0x6f,0x6e])](_0x31d25d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x35efce=>{_0x29f316(_0x35efce[_0x31d25d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x132b1e=!0x0,_0xc62b12(_0x35efce[_0x31d25d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31d25d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31d25d([0x6c,0x6f,0x77])}),_0x34dc26[_0x31d25d([0x74,0x68,0x65,0x6e])](()=>{_0x132b1e||_0x393563(_0x31d25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x356d9f(){return _0x45bbb1[_0x31d25d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31d25d([0x76,0x69,0x65,0x77])][_0x31d25d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31d25d([0x61,0x75,0x74,0x6f]);}function _0x2e1a80(){_0x45bbb1[_0x31d25d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31d25d([0x76,0x69,0x65,0x77])][_0x31d25d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31d25d([0x61,0x75,0x74,0x6f]);}}function _0x3979a0(_0x3c9dea){const _0x33ef77=[new window[(_0x31d25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55ab61=>setTimeout(_0x55ab61,0x3d1ee13^_0x5dd0a7)),_0x34dc26[_0x31d25d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31d25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ec2e2=>{let _0x159d30=0x0;_0x45bbb1[_0x31d25d([0x6d,0x6f,0x64,0x65,0x6c])][_0x31d25d([0x6f,0x6e])](_0x31d25d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x316177,_0x282383)=>{_0x282383[0x0][_0x31d25d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x159d30++,_0x159d30==(0x3d8d537^_0x5dd0a7)&&(_0x2ec2e2(),_0x316177[_0x31d25d([0x6f,0x66,0x66])]());});}))];return window[_0x31d25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31d25d([0x72,0x61,0x63,0x65])](_0x33ef77)[_0x31d25d([0x74,0x68,0x65,0x6e])](()=>_0x3c9dea);}async function _0x57f5a4(){await _0x34dc26,_0x45bbb1[_0x31d25d([0x6d,0x6f,0x64,0x65,0x6c])][_0x31d25d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x487af2,_0x45bbb1[_0x31d25d([0x6d,0x6f,0x64,0x65,0x6c])][_0x31d25d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x487af2,_0x45bbb1[_0x31d25d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31d25d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x561282(){return _0x921bf2(_0x31d25d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x10455c(_0x31d25d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x31d25d([0x73,0x74,0x61,0x74,0x65])]==_0x31d25d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4df110(){return _0x921bf2(_0x31d25d([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 _0x2b77ae(){return _0x921bf2(_0x31d25d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x51ac0c(_0x45f5bd){const _0x4261fe=_0x4ed397();_0x45bbb1[_0x4261fe]=_0x31d25d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45f5bd,_0x45f5bd!=_0x31d25d([0x56,0x61,0x6c,0x69,0x64])&&_0x57f5a4();}function _0x4ed397(){const _0x462721=window[_0x31d25d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31d25d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31d25d([0x6e,0x6f,0x77])]())[_0x31d25d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31d25d([0x2e]),'');let _0x545062=_0x31d25d([0x52]);for(let _0x8bba77=0x0;_0x8bba77<_0x462721[_0x31d25d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8bba77+=0x2){let _0xd4c442=window[_0x31d25d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x462721[_0x31d25d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8bba77,_0x8bba77+0x2));_0xd4c442>=_0xce9a1c[_0x31d25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xd4c442-=_0xce9a1c[_0x31d25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x545062+=_0xce9a1c[_0xd4c442];}return _0x545062;}function _0x168a4b(){const _0xa8dcec=_0x26962d[_0x31d25d([0x73,0x70,0x6c,0x69,0x74])](_0x31d25d([0x2e]));if(0x3!=_0xa8dcec[_0x31d25d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x528860(_0xa8dcec[0x1]);function _0x528860(_0x1a31fe){const _0xf20267=_0x1c6c8d(_0x1a31fe);return _0xf20267&&_0x59309b()?_0xf20267:null;function _0x59309b(){const _0x5982a5=_0xf20267[_0x31d25d([0x6a,0x74,0x69])],_0x217b03=window[_0x31d25d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5982a5[_0x31d25d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5982a5[_0x31d25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4dca8a={..._0xf20267,[_0x31d25d([0x6a,0x74,0x69])]:_0x5982a5[_0x31d25d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5982a5[_0x31d25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4dca8a[_0x31d25d([0x76,0x63])],_0xf24f80(_0x4dca8a)==_0x217b03;}}}async function _0x2ab911(){let _0x519d05=!0x0;try{const _0x3f4431=_0x26962d[_0x31d25d([0x73,0x70,0x6c,0x69,0x74])](_0x31d25d([0x2e])),[_0x41a910,_0x140281,_0x419f1a]=_0x3f4431;return _0x20324e(_0x41a910),await _0x438b33(_0x41a910,_0x140281,_0x419f1a),_0x519d05;}catch{return!0x1;}function _0x20324e(_0x117e71){const _0x1b0ddf=_0x1c6c8d(_0x117e71);_0x1b0ddf&&_0x1b0ddf[_0x31d25d([0x61,0x6c,0x67])]==_0x31d25d([0x45,0x53,0x32,0x35,0x36])||(_0x519d05=!0x1);}async function _0x438b33(_0x34ac8f,_0x4f3146,_0x32f304){const _0x170a61=window[_0x31d25d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31d25d([0x66,0x72,0x6f,0x6d])](_0x57b17e(_0x32f304),_0x2e53d5=>_0x2e53d5[_0x31d25d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5bb080=new window[(_0x31d25d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31d25d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x34ac8f+_0x31d25d([0x2e])+_0x4f3146),_0x683cc4=window[_0x31d25d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31d25d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x683cc4)return;const _0x1a9ab4=await _0x683cc4[_0x31d25d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31d25d([0x6a,0x77,0x6b]),_0x4ec71e,{[_0x31d25d([0x6e,0x61,0x6d,0x65])]:_0x31d25d([0x45,0x43,0x44,0x53,0x41]),[_0x31d25d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31d25d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31d25d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x683cc4[_0x31d25d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31d25d([0x6e,0x61,0x6d,0x65])]:_0x31d25d([0x45,0x43,0x44,0x53,0x41]),[_0x31d25d([0x68,0x61,0x73,0x68])]:{[_0x31d25d([0x6e,0x61,0x6d,0x65])]:_0x31d25d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a9ab4,_0x170a61,_0x5bb080)||(_0x519d05=!0x1);}}function _0x1c6c8d(_0x4c29a9){return _0x4c29a9[_0x31d25d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31d25d([0x65,0x79]))?JSON[_0x31d25d([0x70,0x61,0x72,0x73,0x65])](_0x57b17e(_0x4c29a9)):null;}function _0x57b17e(_0x57eebf){return window[_0x31d25d([0x61,0x74,0x6f,0x62])](_0x57eebf[_0x31d25d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31d25d([0x2b]))[_0x31d25d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31d25d([0x2f])));}function _0xf24f80(_0x3fc3cb){let _0xe72899=0x1505;function _0x3485de(_0x4b2e72){for(let _0x411c64=0x0;_0x411c64<_0x4b2e72[_0x31d25d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x411c64++){const _0x5a49b4=_0x4b2e72[_0x31d25d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x411c64);_0xe72899=(_0xe72899<<0x5)+_0xe72899+_0x5a49b4,_0xe72899&=_0xe72899;}}function _0x3daaa4(_0x10f7c0){Array[_0x31d25d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10f7c0)?_0x10f7c0[_0x31d25d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3daaa4):_0x10f7c0&&typeof _0x10f7c0==_0x31d25d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31d25d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10f7c0)[_0x31d25d([0x73,0x6f,0x72,0x74])]()[_0x31d25d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e8897,_0xe81adb])=>{_0x3485de(_0x5e8897),_0x3daaa4(_0xe81adb);}):_0x3485de(window[_0x31d25d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10f7c0));}return _0x3daaa4(_0x3fc3cb),_0xe72899>>>0x0;}function _0x59ae56(_0x3377dc){return _0x3377dc[_0x31d25d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31d25d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31d25d([0x30]));}function _0x5e309b(_0x1bb56e){return _0x1bb56e[_0x31d25d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31d25d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31d25d([0x6a,0x6f,0x69,0x6e])]('');}function _0x921bf2(_0x375cb0){return _0x45bbb1[_0x31d25d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x31d25d([0x68,0x61,0x73])](_0x375cb0);}function _0x10455c(_0x16e834){return _0x45bbb1[_0x31d25d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x31d25d([0x67,0x65,0x74])](_0x16e834);}function _0x487af2(){}function _0x31d25d(_0x1b520f){return _0x1b520f['map'](_0x4d39be=>String['fromCharCode'](_0x4d39be))['join']('');}_0x51ac0c(await _0x4ae245());}(this);}set['adapter'](_0x270d1f){if(this['_adapter'])throw new _0x5d6a90('track-changes-adapter-already-set',this);this['_adapter']=_0x270d1f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x34694c=!0x1,toJSON:_0x4795e8=!0x1}={}){const _0xb3c706=[];for(const _0x1daf3b of this['_suggestions']['values']())_0x34694c&&!_0x1daf3b['isInContent']||_0xb3c706['push'](_0x1daf3b);return _0x4795e8?_0xb3c706['map'](_0x2ec029=>_0x2ec029['toJSON']()):_0xb3c706;}['getSuggestion'](_0x42ea28){const _0x3ec6d7=this['_suggestions']['get'](_0x42ea28);if(!_0x3ec6d7)throw new _0x5d6a90('track-changes-suggestion-not-found',this);return _0x3ec6d7;}['hasSuggestion'](_0x26f4af){return this['_suggestions']['has'](_0x26f4af);}['addSuggestionData'](_0x13c9c0){const {authorId:_0xd0c426,id:_0x1cd7e2,originalSuggestionId:_0x3bacde,attributes:_0x118ef4}=_0x13c9c0,[_0x1b4506,_0x4ce211]=_0x13c9c0['type']['split'](':'),_0x2ef084=this['_suggestions']['get'](_0x1cd7e2)||this['_createSuggestion'](_0x1b4506,_0x4ce211,_0x1cd7e2,_0xd0c426,_0x118ef4,_0x3bacde);if(this['_addThreadToSuggestion'](_0x2ef084),this['_checkSuggestionCorrectness'](_0x2ef084,_0x1b4506,_0x4ce211||null,_0xd0c426),_0x2ef084['createdAt']=_0x13c9c0['createdAt'],_0x2ef084['_isDataLoaded']=!0x0,_0x118ef4&&_0x118ef4['@external']){const _0x558189=_0x118ef4['@external'],_0x55fc84=this['_getExternalAuthor'](_0x558189['authorName']);_0x2ef084['authoredAt']=_0x558189['createdAt'],_0x2ef084['author']=_0x55fc84,_0x2ef084['isExternal']=!0x0;}else _0x2ef084['authoredAt']=_0x13c9c0['createdAt'];switch(_0x13c9c0['data']&&(_0x2ef084['data']=_0x13c9c0['data']),_0x13c9c0['attributes']&&(_0x2ef084['attributes']=_0x13c9c0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2ef084['_saved']=!0x0),this['_suggestionState']['get'](_0x2ef084)){case'notReady':this['_suggestionState']['set'](_0x2ef084,'dataReady');break;case'markerReady':_0x2ef084['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2ef084])),this['_refreshSuggestionsChain'](new Set([_0x2ef084])),this['_suggestionState']['set'](_0x2ef084,'ready'),this['fire']('suggestionLoaded',_0x2ef084)):this['_suggestionState']['set'](_0x2ef084,'removed');}return _0x2ef084;}['acceptSuggestion'](_0x300341){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2de77c of _0x300341['getAllAdjacentSuggestions']())_0x2de77c['accept']();});});}['discardSuggestion'](_0x363f48){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x282988 of _0x363f48['getAllAdjacentSuggestions']())_0x282988['discard']();});});}['enableCommand'](_0x431fc0,_0x63f92f){const _0x4a3c1d=this['editor']['commands']['get'](_0x431fc0);if(!_0x4a3c1d)throw new _0x5d6a90('track-changes-command-not-found',this,{'commandName':_0x431fc0});if(this['_enabledCommands']['has'](_0x4a3c1d))throw new _0x5d6a90('track-changes-enable-command-twice',this,{'commandName':_0x431fc0});this['_enabledCommands']['add'](_0x4a3c1d),_0x63f92f&&_0x4a3c1d['on']('execute',(_0xd5c977,_0x20de1f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x20de1f['length']>0x0&&_0x20de1f[_0x20de1f['length']-0x1]&&_0x20de1f[_0x20de1f['length']-0x1]['forceDefaultExecution']?_0x20de1f['pop']():(_0xd5c977['return']=_0x63f92f((..._0x4941ce)=>_0x4a3c1d['execute'](..._0x4941ce,{'forceDefaultExecution':!0x0}),..._0x20de1f),_0xd5c977['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x44a50e){let _0x5eb8a7,_0x5d862c;const _0x80318f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5eb8a7=_0x44a50e();}catch(_0x416600){_0x5d862c=_0x416600;}return _0x80318f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5d862c&&_0x5d6a90['rethrowUnexpectedError'](_0x5d862c,this),_0x5eb8a7;}['markInsertion'](_0x225da0,_0x24374b=null,_0x1c5a3b={}){if(_0x225da0['isCollapsed'])return null;const _0x33911a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1c5a3b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2dca7c,meta:_0x29c864}of this['_findSuggestions'](_0x225da0,'insertion'))if(_0x29c864['isOwn']){if(!_0x29c864['isNextTo']){if(_0x29c864['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x2dca7c,_0x1c5a3b))continue;return _0x2dca7c;}if(cn(_0x2dca7c,_0x1c5a3b))return _0x2dca7c;this['_breakSuggestionMarker'](_0x2dca7c,_0x225da0['start'],_0x225da0['end']);break;}if(_0x24374b==_0x2dca7c['subType']&&cn(_0x2dca7c,_0x1c5a3b)){const _0x121ce3=_0x2dca7c['getFirstRange']();return _0x121ce3['start']['isEqual'](_0x225da0['end'])?this['_setSuggestionRange'](_0x2dca7c,this['_model']['createRange'](_0x225da0['start'],_0x121ce3['end'])):this['_setSuggestionRange'](_0x2dca7c,this['_model']['createRange'](_0x121ce3['start'],_0x225da0['end'])),_0x2dca7c;}}const _0x435089=_0x6e7e15(),_0x588261=_0x33911a['id'],_0xff3e2f=_0x24374b?'insertion:'+_0x24374b:'insertion',_0x1996db=this['_setSuggestionData']({'id':_0x435089,'type':_0xff3e2f,'createdAt':new Date(),'authorId':_0x588261,'attributes':_0x1c5a3b});return this['_addSuggestionMarker'](_0xff3e2f,_0x435089,_0x588261,_0x225da0),_0x1996db;}['markMultiRangeInsertion'](_0x5c3ccd,_0x1ec475='multi',_0x1d111a={}){const _0x3f0b28=this['editor']['plugins']['get']('Users')['me'],_0x1c8ff0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1ec475,'join');this['_trackingSessionId']&&(_0x1d111a['trackingSessionId']=this['_trackingSessionId']);for(const _0x224ed6 of this['getSuggestions']())if(_0x224ed6['author']['id']==_0x3f0b28['id']&&'insertion'==_0x224ed6['type']&&_0x224ed6['subType']==_0x1ec475&&cn(_0x224ed6,_0x1d111a)&&(_0x1c8ff0(_0x224ed6['getRanges'](),_0x5c3ccd)||_0x1c8ff0(_0x5c3ccd,_0x224ed6['getRanges']()))){for(const _0x1df719 of _0x5c3ccd)_0x224ed6['addRange'](_0x1df719);return _0x224ed6;}for(const {suggestion:_0x45787a,meta:_0x58bb9f}of this['_findSuggestions'](_0x5c3ccd,'insertion')){if(!_0x58bb9f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x58bb9f['containsRangeInObject'])continue;if(!cn(_0x45787a,_0x1d111a))continue;let _0x3cdcd9=!0x0;for(const _0x417c9e of _0x45787a['getRanges']())for(const _0x131bba of _0x5c3ccd)if(!_0x417c9e['containsRange'](_0x131bba)){_0x3cdcd9=!0x1;break;}if(_0x3cdcd9)return _0x45787a;}const _0x474b2f=_0x6e7e15(),_0x3e5c8a=_0x3f0b28['id'],_0x63ac21='insertion:'+_0x1ec475,_0x472a28=this['_setSuggestionData']({'id':_0x474b2f,'type':_0x63ac21,'createdAt':new Date(),'authorId':_0x3e5c8a,'attributes':_0x1d111a});for(const _0x261528 of _0x5c3ccd)this['_addSuggestionMarker'](_0x63ac21,_0x474b2f,_0x3e5c8a,_0x261528,bt['getMultiRangeId']());return _0x472a28;}['markInlineFormat'](_0x4b8602,_0x3a2115,_0x350482=null,_0x4491ca={}){if(_0x350482=_0x350482||Je(_0x3a2115),_0x4b8602['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4491ca['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5eda90=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x350482,'accept');return this['forceDefaultExecution'](()=>_0x5eda90([_0x4b8602],_0x3a2115,_0x4491ca)),null;}const _0x273abc=this['editor']['plugins']['get']('Users')['me'],_0x5451d4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2f8c15,meta:_0x20632c}of this['_findSuggestions'](_0x4b8602,'insertion'))_0x20632c['isOwn']&&!_0x20632c['isInsideObject']&&_0x5451d4['push'](..._0x2f8c15['getRanges']());}const _0x28dd08=function(_0x4b0c52,_0x495012){const _0x34fec5=[];for(const _0x19378e of _0x495012){const _0x554304=_0x4b0c52['getIntersection'](_0x19378e);_0x554304&&_0x34fec5['push'](_0x554304);}return _0x34fec5;}(_0x4b8602,_0x5451d4),_0x1bfe1a=function(_0x411d09,_0x1739d8){const _0x3e5fb8=[_0x411d09];for(const _0x5664e2 of _0x1739d8){let _0x223611=0x0;for(;_0x223611<_0x3e5fb8['length'];){const _0x30b62f=_0x3e5fb8[_0x223611]['getDifference'](_0x5664e2);_0x3e5fb8['splice'](_0x223611,0x1,..._0x30b62f),_0x223611+=_0x30b62f['length'];}}return _0x3e5fb8;}(_0x4b8602,_0x5451d4);_0x28dd08['length']&&this['_model']['change'](()=>{for(const _0x1bef2f of _0x28dd08){const _0x337291=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x350482,'accept');this['forceDefaultExecution'](()=>_0x337291([_0x1bef2f],_0x3a2115,_0x4491ca));}});for(const _0x1ebf8c of _0x1bfe1a){let _0x413b27=null,_0x1e7715=_0x1ebf8c['start'],_0x3515f8=_0x1ebf8c['end'];for(const {suggestion:_0x26c6f6,meta:_0x4abd82}of this['_findSuggestions'](_0x1ebf8c,'formatInline')){if(!_0x4abd82['isOwn'])continue;if(_0x26c6f6['subType']!=_0x350482)continue;if(!cn(_0x26c6f6,_0x4491ca))continue;const _0x47e49a=_0x26c6f6['getFirstRange']();if(_0x47e49a['containsRange'](_0x1ebf8c,!0x0))return null;_0x1e7715=_0x1e7715['isBefore'](_0x47e49a['start'])?_0x1e7715:_0x47e49a['start'],_0x3515f8=_0x3515f8['isAfter'](_0x47e49a['end'])?_0x3515f8:_0x47e49a['end'],_0x413b27?_0x47e49a['start']['isBefore'](_0x413b27['getFirstRange']()['start'])?(_0x413b27['removeMarkers'](),_0x413b27=_0x26c6f6):_0x26c6f6['removeMarkers']():_0x413b27=_0x26c6f6;}const _0x176ce7=this['_model']['createRange'](_0x1e7715,_0x3515f8);if(_0x413b27)this['_setSuggestionRange'](_0x413b27,_0x176ce7);else{const _0x437b7f=_0x6e7e15(),_0x1efbaf=_0x273abc['id'];this['_setSuggestionData']({'id':_0x437b7f,'type':'formatInline:'+_0x350482,'data':_0x3a2115,'createdAt':new Date(),'authorId':_0x1efbaf,'attributes':_0x4491ca}),this['_addSuggestionMarker']('formatInline:'+_0x350482,_0x437b7f,_0x1efbaf,_0x176ce7);}}return null;}['markBlockFormat'](_0x41b3c2,_0x1251d9,_0xfb597a=[],_0x47aeb6=null,_0x453e6a={}){_0x1251d9['formatGroupId']||(_0x1251d9['formatGroupId']=_0x1251d9['commandName']),_0x1251d9['multipleBlocks']=_0x41b3c2['is']('range'),_0x47aeb6=_0x47aeb6||Je(_0x1251d9);const _0x3d7bca=_0xfb597a['map'](_0x458650=>rn(_0x458650,this['_model'])),_0x21a431=_0x41b3c2['is']('range')?_0x41b3c2:rn(_0x41b3c2,this['_model']);if(this['_trackingSessionId']&&(_0x453e6a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3bf47b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47aeb6,'accept');return this['forceDefaultExecution'](()=>_0x3bf47b([_0x21a431],_0x1251d9,_0x453e6a)),null;}_0x3d7bca['push'](_0x21a431);let _0x592967=!0x0;for(const _0x1a7fdf of _0x3d7bca)if(!this['_rangeIsInLocalUserInsertion'](_0x1a7fdf)){_0x592967=!0x1;break;}if(_0x592967&&'always'!==this['_trackFormatChanges']){const _0x3112f1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47aeb6,'accept');return this['forceDefaultExecution'](()=>_0x3112f1([_0x21a431],_0x1251d9,_0x453e6a)),null;}let _0x446b0e=null,_0x513e09=_0x21a431['start'],_0x1090d2=_0x21a431['end'];for(const {suggestion:_0x1f4de9,meta:_0x4f3609}of this['_findSuggestions'](_0x21a431,'formatBlock')){if(!_0x4f3609['isOwn'])continue;if(_0x4f3609['isNextTo']||_0x4f3609['containsRangeInObject']||_0x4f3609['isInsideObject'])continue;if(_0x1f4de9['data']['formatGroupId']!=_0x1251d9['formatGroupId'])continue;if(!cn(_0x1f4de9,_0x453e6a))continue;const _0x2ec302=_0x1f4de9['getFirstRange']();if(_0x1f4de9['subType']==_0x47aeb6){if(_0x2ec302['containsRange'](_0x21a431,!0x0))return null;_0x513e09=_0x513e09['isBefore'](_0x2ec302['start'])?_0x513e09:_0x2ec302['start'],_0x1090d2=_0x1090d2['isAfter'](_0x2ec302['end'])?_0x1090d2:_0x2ec302['end'],_0x446b0e?_0x2ec302['start']['isBefore'](_0x446b0e['getFirstRange']()['start'])?(_0x446b0e['removeMarkers'](),_0x446b0e=_0x1f4de9):_0x1f4de9['removeMarkers']():_0x446b0e=_0x1f4de9;}else{const _0x53d030=_0x21a431['getIntersection'](_0x2ec302);this['_cutOutSuggestionMarker'](_0x1f4de9,_0x53d030);}}const _0x15a9b9=this['editor']['plugins']['get']('Users')['me'],_0x5de133=_0x6e7e15(),_0x4745fc=_0x15a9b9['id'];if(_0x446b0e)return this['_setSuggestionRange'](_0x446b0e,this['_model']['createRange'](_0x513e09,_0x1090d2)),_0x446b0e;{const _0x496f33=this['_setSuggestionData']({'id':_0x5de133,'type':'formatBlock:'+_0x47aeb6,'data':_0x1251d9,'createdAt':new Date(),'authorId':_0x4745fc,'attributes':_0x453e6a});return this['_addSuggestionMarker']('formatBlock:'+_0x47aeb6,_0x5de133,_0x4745fc,this['_model']['createRange'](_0x513e09,_0x1090d2)),_0x496f33;}}['markMultiRangeBlockFormat'](_0x5d08ca,_0x2f7355,_0x31dd9c=[],_0x2ce7c4=null,_0x53f1a9={}){_0x2f7355['formatGroupId']||(_0x2f7355['formatGroupId']=_0x2f7355['commandName']);const _0x42c078=_0x5d08ca[0x0];_0x2f7355['multipleBlocks']=_0x42c078['is']('range'),_0x2ce7c4=_0x2ce7c4||Je(_0x2f7355);const _0x5979a7=_0x31dd9c['map'](_0x252a9a=>rn(_0x252a9a,this['_model'])),_0x3f0f5f=_0x42c078['is']('range')?_0x5d08ca:_0x5d08ca['map'](_0x3c6395=>rn(_0x3c6395,this['_model']));if(this['_trackingSessionId']&&(_0x53f1a9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x363872=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ce7c4,'accept');return this['forceDefaultExecution'](()=>_0x363872(_0x3f0f5f,_0x2f7355,_0x53f1a9)),null;}_0x5979a7['push'](..._0x3f0f5f);let _0x16789e=!0x0;for(const _0x5588b2 of _0x5979a7)if(!this['_rangeIsInLocalUserInsertion'](_0x5588b2)){_0x16789e=!0x1;break;}if(_0x16789e&&'always'!==this['_trackFormatChanges']){const _0x42816e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ce7c4,'accept');return this['forceDefaultExecution'](()=>_0x42816e(_0x3f0f5f,_0x2f7355,_0x53f1a9)),null;}const _0x123ccd=this['editor']['plugins']['get']('Users')['me'];for(const _0x4e32a1 of this['getSuggestions']()){const _0x1479aa=_0x4e32a1['data'];if(_0x4e32a1['author']['id']!=_0x123ccd['id'])continue;if('formatBlock'!=_0x4e32a1['type']||_0x1479aa['formatGroupId']!=_0x2f7355['formatGroupId'])continue;if(!cn(_0x4e32a1,_0x53f1a9))continue;const _0x327cb0=_0x4e32a1['subType']==_0x2ce7c4;for(let _0x8c3761=0x0;_0x8c3761<_0x3f0f5f['length'];_0x8c3761++){const _0x22e76c=_0x3f0f5f[_0x8c3761];for(const _0x2af66e of _0x4e32a1['getMarkers']()){const _0x432d9f=_0x2af66e['getRange']();if(_0x22e76c['isEqual'](_0x432d9f)){_0x327cb0?(_0x3f0f5f['splice'](_0x8c3761,0x1),_0x8c3761--):_0x4e32a1['removeMarker'](_0x2af66e['name']);break;}}}}if(0x0==_0x3f0f5f['length'])return null;const _0x4f8398=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ce7c4,'join');for(const _0x5b7967 of this['getSuggestions']()){const _0x591aac=_0x5b7967['data'];if(_0x5b7967['author']['id']==_0x123ccd['id']&&('formatBlock'==_0x5b7967['type']&&_0x591aac['formatGroupId']==_0x2f7355['formatGroupId']&&_0x5b7967['subType']==_0x2ce7c4&&cn(_0x5b7967,_0x53f1a9)&&(_0x4f8398(_0x5b7967['getRanges'](),_0x3f0f5f)||_0x4f8398(_0x3f0f5f,_0x5b7967['getRanges']())))){for(const _0x42e2a2 of _0x3f0f5f)_0x5b7967['addRange'](_0x42e2a2);return _0x5b7967;}}const _0x2d3cea=_0x6e7e15(),_0x336334=_0x123ccd['id'],_0x313293='formatBlock:'+_0x2ce7c4,_0x359e4c=this['_setSuggestionData']({'id':_0x2d3cea,'type':_0x313293,'data':_0x2f7355,'createdAt':new Date(),'authorId':_0x336334,'attributes':_0x53f1a9});for(const _0x2f5704 of _0x3f0f5f)this['_addSuggestionMarker'](_0x313293,_0x2d3cea,_0x336334,_0x2f5704,bt['getMultiRangeId']());return _0x359e4c;}['markDeletion'](_0x48b6ea,_0x370bc8=null,_0x79cdc3={}){if(_0x48b6ea['isCollapsed'])return null;const _0xdaa888=this['editor']['plugins']['get']('Users')['me'],_0x422176=new _0x5ce503(_0x48b6ea['start'],_0x48b6ea['end']);this['_trackingSessionId']&&(_0x79cdc3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14b88c,meta:_0x4fa26a}of this['_findSuggestions'](_0x422176,'insertion'))if(_0x4fa26a['isOwn']&&!_0x4fa26a['isNextTo']){if(_0x14b88c['isMultiRange']){const _0x3ce806=_0x14b88c['getRanges']()['filter'](_0x24c184=>'$graveyard'!=_0x24c184['root']['rootName']);_0x3ce806['every'](_0x52114f=>_0x422176['containsRange'](_0x52114f,!0x0))&&_0x14b88c['discard']();if(_0x3ce806['some'](_0x336829=>_0x336829['containsRange'](_0x422176,!0x0))){const _0x24df25=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x370bc8,'accept');return this['forceDefaultExecution'](()=>_0x24df25([_0x422176],null,_0x79cdc3)),null;}}else{const _0x1b7bcd=_0x422176['getIntersection'](_0x14b88c['getFirstRange']());null!==_0x1b7bcd&&_0x14b88c['_onDiscard']([_0x1b7bcd],null,_0x79cdc3);}}if(_0x422176['detach'](),_0x422176['isCollapsed']||'$graveyard'==_0x422176['root']['rootName'])return null;let _0x2296bd=null,_0x1d73da=_0x422176['start'],_0x5f48d9=_0x422176['end'];const _0x14d96d=this['_findSuggestions'](_0x422176,'deletion');for(const {suggestion:_0x133a88,meta:_0x573282}of _0x14d96d){const _0x439d72=this['_model']['createRange'](_0x1d73da,_0x5f48d9);if(_0x573282['isOwn']&&(this['_mergeNestedSuggestions']||!_0x573282['containsRangeInObject']&&!_0x573282['isInsideObject'])){if(_0x133a88['isMultiRange']){if(!cn(_0x133a88,_0x79cdc3))continue;let _0x2eb03d=!0x0;for(const _0x55b199 of _0x133a88['getRanges']()){if(_0x55b199['containsRange'](_0x439d72,!0x0))return _0x133a88;_0x439d72['containsRange'](_0x55b199)||(_0x2eb03d=!0x1);}_0x2eb03d&&_0x133a88['discard']();}else{const _0x17c087=_0x133a88['getFirstRange']();if(_0x17c087['containsRange'](_0x439d72,!0x0))return _0x133a88;if(!cn(_0x133a88,_0x79cdc3)){_0x439d72['containsRange'](_0x17c087)?_0x133a88['removeMarkers']():_0x17c087['containsPosition'](_0x1d73da)?_0x1d73da=_0x17c087['end']:_0x17c087['containsPosition'](_0x5f48d9)&&(_0x5f48d9=_0x17c087['start']);continue;}_0x1d73da=_0x1d73da['isBefore'](_0x17c087['start'])?_0x1d73da:_0x17c087['start'],_0x5f48d9=_0x5f48d9['isAfter'](_0x17c087['end'])?_0x5f48d9:_0x17c087['end'],_0x79cdc3=Object['assign']({},_0x133a88['attributes']),_0x2296bd?_0x17c087['start']['isBefore'](_0x2296bd['getFirstRange']()['start'])?(_0x2296bd['removeMarkers'](),_0x2296bd=_0x133a88):_0x133a88['removeMarkers']():_0x2296bd=_0x133a88;}}}if(_0x2296bd)return this['_setSuggestionRange'](_0x2296bd,this['_model']['createRange'](_0x1d73da,_0x5f48d9)),_0x2296bd;{const _0x499f18=_0x6e7e15(),_0x5a1fde=this['_model']['createRange'](_0x1d73da,_0x5f48d9),_0x3edac0=_0xdaa888['id'],_0x30c4a2=_0x370bc8?'deletion:'+_0x370bc8:'deletion',_0x59bdda=this['_setSuggestionData']({'id':_0x499f18,'type':_0x30c4a2,'createdAt':new Date(),'authorId':_0x3edac0,'attributes':_0x79cdc3});return this['_addSuggestionMarker'](_0x30c4a2,_0x499f18,_0x3edac0,_0x5a1fde),_0x59bdda;}}['markMultiRangeDeletion'](_0x491540,_0x1a1eba='multi',_0x3478e9={}){const _0x3c59ec=this['editor']['plugins']['get']('Users')['me'],_0x12c1d7=_0x491540['map'](_0x461234=>new _0x5ce503(_0x461234['start'],_0x461234['end'])),_0x1a661a=new Set();this['_trackingSessionId']&&(_0x3478e9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3f5283,meta:_0x23f7d8}of this['_findSuggestions'](_0x12c1d7,'insertion'))_0x23f7d8['isOwn']&&!_0x23f7d8['isNextTo']&&_0x1a661a['add'](_0x3f5283);for(const _0x462833 of _0x1a661a)if(_0x462833['isMultiRange']){const _0x11ddcf=_0x462833['getRanges']();(!_0x462833['attributes']||!_0x462833['attributes']['skipNestingCheck'])&&(_0x11ddcf['every'](_0xf26acc=>_0x12c1d7['some'](_0x474cf0=>_0x474cf0['containsRange'](_0xf26acc,!0x0)))&&_0x462833['discard']());if(_0x12c1d7['every'](_0x337c8d=>_0x11ddcf['some'](_0x177a98=>_0x177a98['containsRange'](_0x337c8d,!0x0)))){const _0x44318b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a1eba,'accept');return this['forceDefaultExecution'](()=>_0x44318b(_0x491540,null,_0x3478e9)),null;}}else{const _0x596549=_0x462833['getFirstRange']();_0x12c1d7['some'](_0x733e4e=>_0x733e4e['containsRange'](_0x596549,!0x0))&&_0x462833['discard']();if(_0x12c1d7['every'](_0x554fa1=>_0x596549['containsRange'](_0x554fa1,!0x0))){const _0x472ea2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a1eba,'accept');return this['forceDefaultExecution'](()=>_0x472ea2(_0x12c1d7,null,_0x3478e9)),null;}}const _0x42f142=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a1eba,'join');let _0x187848=null;for(const _0x3bac95 of this['getSuggestions']())if(_0x3bac95['author']['id']==_0x3c59ec['id']&&_0x3bac95['isInContent']&&'deletion'==_0x3bac95['type']&&_0x3bac95['subType']==_0x1a1eba&&cn(_0x3bac95,_0x3478e9)&&(_0x42f142(_0x3bac95['getRanges'](),_0x12c1d7)||_0x42f142(_0x12c1d7,_0x3bac95['getRanges']()))){if(_0x187848){if(_0x3bac95['commentThread']&&_0x3bac95['commentThread']['length'])continue;for(const _0xddd11d of _0x3bac95['getRanges']())_0x187848['isIntersectingWithRange'](_0xddd11d)||_0x187848['addRange'](_0xddd11d);_0x3bac95['removeMarkers']();}else{_0x187848=_0x3bac95;for(const _0x4a65b0 of _0x12c1d7)_0x3bac95['isIntersectingWithRange'](_0x4a65b0)||_0x3bac95['addRange'](_0x4a65b0);}}if(_0x187848)return _0x187848;_0x1a661a['clear']();for(const {suggestion:_0x49802a,meta:_0x5bc4a5}of this['_findSuggestions'](_0x12c1d7,'deletion'))_0x5bc4a5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5bc4a5['containsRangeInObject']&&!_0x5bc4a5['isInsideObject'])&&cn(_0x49802a,_0x3478e9)&&_0x1a661a['add'](_0x49802a);for(const _0x1cbc07 of _0x1a661a){const _0x984b6a=_0x1cbc07['getRanges']();if(!_0x3478e9||!_0x3478e9['skipNestingCheck']){if(_0x12c1d7['every'](_0x515992=>_0x984b6a['some'](_0x3e8d2e=>_0x3e8d2e['containsRange'](_0x515992,!0x0))))return _0x1cbc07;}(!_0x1cbc07['attributes']||!_0x1cbc07['attributes']['skipNestingCheck'])&&(_0x984b6a['every'](_0x45dd73=>_0x12c1d7['some'](_0x304575=>_0x304575['containsRange'](_0x45dd73,!0x0)))&&_0x1cbc07['discard']());}const _0x240507=_0x6e7e15(),_0x5f20e7=_0x3c59ec['id'],_0x238a24='deletion:'+_0x1a1eba,_0x559e37=this['_setSuggestionData']({'id':_0x240507,'type':_0x238a24,'createdAt':new Date(),'authorId':_0x5f20e7,'attributes':_0x3478e9});for(const _0x1adc62 of _0x12c1d7)_0x1adc62['detach'](),_0x1adc62['isCollapsed']||'$graveyard'==_0x1adc62['root']['rootName']||this['_addSuggestionMarker'](_0x238a24,_0x240507,_0x5f20e7,_0x1adc62,bt['getMultiRangeId']());return _0x559e37;}['markAttributeChange'](_0x321fc2,_0x95f5fc,_0x544b88,_0xd9ca24,_0x370ce2){if(_0x321fc2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x248eb3=this['editor']['plugins']['get']('Users')['me']['id'],_0x414338=Array['from'](this['_suggestions']['values']())['filter'](_0x13ecab=>'attribute'==_0x13ecab['type']&&_0x13ecab['data']['key']==_0x95f5fc&&_0x13ecab['isIntersectingWithRange'](_0x321fc2));if(this['_trackingSessionId']&&(_0x370ce2['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4b855a=this['_findSuggestions'](_0x321fc2,'insertion')['filter'](({meta:_0x4c83ca})=>_0x4c83ca['isOwn']&&!_0x4c83ca['isInsideObject']&&!_0x4c83ca['isNextTo'])['map'](({suggestion:_0x402166})=>_0x402166);_0x414338['unshift'](..._0x4b855a);}const _0x225c56=new Map([[_0x321fc2,_0x544b88]]);for(const _0x56a314 of _0x414338){const _0x2385c7='attribute'==_0x56a314['type']?_0x56a314['data']['oldValue']:void 0x0,_0x4cfd41=_0x56a314['getFirstRange'](),_0x4fa36d=Array['from'](_0x225c56['keys']())['find'](_0x3bf9b6=>_0x3bf9b6['isIntersecting'](_0x4cfd41));if(!_0x4fa36d)continue;const _0x9bafce=_0x4fa36d['getDifference'](_0x4cfd41);this['_suggestionsConversion']['isBlockAttribute'](_0x95f5fc)&&'insertion'==_0x56a314['type']&&0x0!=_0x9bafce['length']||(_0x225c56['delete'](_0x4fa36d),_0x9bafce['forEach'](_0x5b7919=>{_0x225c56['set'](_0x5b7919,_0x544b88);}),'insertion'!=_0x56a314['type']&&_0x2385c7!=_0xd9ca24&&_0x225c56['set'](_0x4fa36d['getIntersection'](_0x4cfd41),_0x2385c7));}const _0x155aff=[];for(const [_0x1a3cf9,_0x3df83b]of _0x225c56){const _0x21c449=_0x6e7e15(),_0x187049={'key':_0x95f5fc,'oldValue':_0x3df83b,'newValue':_0xd9ca24};_0x95f5fc['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':_0x95f5fc});const _0x200908=('attribute:'+(_0x95f5fc+'|'+Je({'newValue':_0xd9ca24})))['substring'](0x0,0x3c),_0x2b090f=this['_setSuggestionData']({'id':_0x21c449,'type':_0x200908,'data':_0x187049,'createdAt':new Date(),'authorId':_0x248eb3,'attributes':_0x370ce2});_0x155aff['push'](_0x2b090f),this['_addSuggestionMarker'](_0x200908,_0x21c449,_0x248eb3,_0x1a3cf9);}return _0x155aff;}['enableDefaultAttributesIntegration'](_0x21f0c2){this['enableCommand'](_0x21f0c2,(_0x44b43a,..._0x184f2b)=>{this['recordAttributeChanges'](()=>{_0x44b43a(..._0x184f2b);});});}['startTrackingSession'](_0x165974){return this['_trackingSessionId']=void 0x0!==_0x165974?_0x165974:_0x6e7e15(),this['_trackingSessionId'];}['_getAttributeKey'](_0x49aadd){return'attribute'==_0x49aadd['type']?un(_0x49aadd['subType']):null;}['_applyOperationsAsSuggestions'](_0x5100a9){if(0x0==_0x5100a9['length'])return;const _0x4e945a=this['editor'],_0x98d44e=_0x4e945a['plugins']['get'](_0x3ad365),_0x507ddb=[];_0x4e945a['model']['change'](_0x5e7499=>{for(let _0x5dabf9=0x0;_0x5dabf9<_0x5100a9['length'];_0x5dabf9++){const _0x4d1c0c=_0x5100a9[_0x5dabf9];if(_0x4d1c0c['baseVersion']=_0x4e945a['model']['document']['version'],_0x4d1c0c['isDocumentOperation']=!0x0,_0x98d44e['isMarkedRemoveOperation'](_0x4d1c0c)){const _0xd9fba2=_0x294513(_0x4d1c0c['newRange'],_0x4e945a['model']);_0x507ddb['unshift'](_0x5ce503['fromRange'](_0xd9fba2));}else switch(_0x4d1c0c['type']){case'rename':{const _0x4e538e=_0x4d1c0c['oldName'],_0x20891a=_0x4d1c0c['newName'];if(_0x4e538e==_0x20891a)break;_0x5e7499['batch']['addOperation'](_0x4d1c0c),_0x4e945a['model']['applyOperation'](_0x4d1c0c);const _0x5b9576='$elementName',_0x299f2e=_0x4d1c0c['position'],_0x4d6184=_0x4e945a['model']['createRange'](_0x299f2e,_0x4e945a['model']['createPositionAt'](_0x299f2e['nodeAfter'],'end'));this['markAttributeChange'](_0x4d6184,_0x5b9576,_0x4e538e,_0x20891a,{'groupId':_0x6e7e15()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4a8090=_0x4d1c0c['oldValue'],_0x52582b=_0x4d1c0c['newValue'];if(_0x4a8090==_0x52582b)break;_0x5e7499['batch']['addOperation'](_0x4d1c0c),_0x4e945a['model']['applyOperation'](_0x4d1c0c);const _0x4557b0=_0x4d1c0c['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4557b0))break;const _0x262cca=_0x294513(_0x4d1c0c['range'],_0x4e945a['model']);this['markAttributeChange'](_0x262cca,_0x4557b0,_0x4a8090,_0x52582b,{'groupId':_0x6e7e15()});break;}case'insert':{_0x5e7499['batch']['addOperation'](_0x4d1c0c),_0x4e945a['model']['applyOperation'](_0x4d1c0c);if(_0x5100a9[_0x5dabf9+0x1]&&'move'==_0x5100a9[_0x5dabf9+0x1]['type'])break;const _0xbb7cea=_0x4d1c0c['position'],_0x3fc327=_0x4d1c0c['howMany'],_0x10aca3=_0x294513(_0x4e945a['model']['createRange'](_0xbb7cea,_0xbb7cea['getShiftedBy'](_0x3fc327)),_0x4e945a['model']);this['markInsertion'](_0x10aca3);break;}case'split':{_0x5e7499['batch']['addOperation'](_0x4d1c0c),_0x4e945a['model']['applyOperation'](_0x4d1c0c);const _0x37ca44=_0x4d1c0c['splitPosition'],_0x29194b=_0x4d1c0c['moveTargetPosition'];this['markInsertion'](_0x4e945a['model']['createRange'](_0x37ca44,_0x29194b));break;}case'move':case'remove':_0x5e7499['batch']['addOperation'](_0x4d1c0c),_0x4e945a['model']['applyOperation'](_0x4d1c0c);}}for(const _0x31757e of _0x507ddb)_0x31757e['detach'](),this['markDeletion'](_0x31757e);});}['_setSuggestionRange'](_0x1b3d3c,_0x373456){const _0x4e98d1=_0x1b3d3c['getFirstMarker']();this['_model']['change'](_0x18d3cf=>{_0x18d3cf['updateMarker'](_0x4e98d1,{'range':_0x373456});});}['_addThreadToSuggestion'](_0x21ccb1){const _0x5c4286=_0x21ccb1['id'],_0x264ea8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5c4286)||this['_commentsRepository']['addCommentThread']({'channelId':_0x264ea8,'threadId':_0x5c4286,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x494d8e=this['_commentsRepository']['getCommentThread'](_0x5c4286);_0x494d8e['unbind']('isRemovable'),_0x494d8e['isRemovable']=!0x1,_0x21ccb1['commentThread']=_0x494d8e;}['_checkSuggestionCorrectness'](_0x3b25e2,_0x2ac5bf,_0x2f1e18,_0x25985b){if(_0x3b25e2['type']!=_0x2ac5bf||_0x3b25e2['subType']!=_0x2f1e18||_0x3b25e2['creator']['id']!=_0x25985b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5d6a90('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x337608,_0x261c21){const _0x573a99=_0x337608['getFirstRange']();if(_0x261c21['isEqual'](_0x573a99))_0x337608['removeMarkers']();else{if(_0x573a99['containsRange'](_0x261c21)){const _0x11535b=this['_model']['createPositionAt'](_0x261c21['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x337608,this['_model']['createRange'](_0x573a99['start'],_0x11535b));const _0x4e1227=_0x6e7e15(),_0x198e4d=_0x337608['creator']['id'],_0xb2b3b9=_0x337608['type']+':'+_0x337608['subType'];this['_setSuggestionData']({'id':_0x4e1227,'type':_0xb2b3b9,'createdAt':new Date(),'authorId':_0x198e4d,'data':_0x337608['data'],'attributes':_0x337608['attributes']});const _0xa0c49a=this['_model']['createPositionAt'](_0x261c21['end']['parent'],'after'),_0x38f923=this['_model']['createRange'](_0xa0c49a,_0x573a99['end']);this['_addSuggestionMarker'](_0xb2b3b9,_0x4e1227,_0x198e4d,_0x38f923);}else{if(_0x573a99['containsPosition'](_0x261c21['start'])){const _0x2228fe=this['_model']['createPositionAt'](_0x261c21['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x337608,this['_model']['createRange'](_0x573a99['start'],_0x2228fe));}else{const _0x497d61=this['_model']['createPositionAt'](_0x261c21['end']['parent'],'after');this['_setSuggestionRange'](_0x337608,this['_model']['createRange'](_0x497d61,_0x573a99['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x201220){for(const {suggestion:_0x4cc22c,meta:_0x528796}of this['_findSuggestions'](_0x201220,'insertion')){if(!_0x528796['isOwn'])continue;const _0x2c6438=_0x4cc22c['getRanges']();for(const _0x7b0dd0 of _0x2c6438)if(!_0x201220['getDifference'](_0x7b0dd0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4f8f71){return this['editor']['plugins']['get']('Users')['getUser'](_0x4f8f71);}['_getExternalAuthor'](_0x279e12){const _0x5cbb9c=this['editor']['plugins']['get']('Users'),_0x3481bd=_0x27d616('external:'+_0x279e12),_0x519dd4=_0x5cbb9c['getUser'](_0x3481bd);return _0x519dd4||_0x5cbb9c['addUser']({'id':_0x3481bd,'name':_0x279e12});}['_createSuggestion'](_0xdc8595,_0x2ff9a8,_0x79cdbb,_0x257d9f,_0x597b08,_0x3a51be){const _0x12a862=this['_getAuthorFromId'](_0x257d9f);if(!_0x12a862)throw new _0x5d6a90('track-changes-user-not-found',this,{'authorId':_0x257d9f,'suggestionId':_0x79cdbb});const _0x3bfa25=this['_suggestionFactory']['buildSuggestion'](_0xdc8595,_0x2ff9a8,_0x79cdbb,_0x12a862,_0x597b08,_0x4d1768=>{this['_updateSuggestionData'](_0x79cdbb,{'attributes':_0x4d1768});const _0x591d7b=this['getSuggestion'](_0x79cdbb);this['_joinWithAdjacentSuggestions'](new Set([_0x591d7b])),this['_refreshSuggestionsChain'](new Set([_0x591d7b]));},_0x3a51be);return this['listenTo'](_0x3bfa25,'accept',()=>{this['_updateSuggestionData'](_0x79cdbb,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3bfa25,'discard',()=>{this['_updateSuggestionData'](_0x79cdbb,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x79cdbb,_0x3bfa25),this['_suggestionState']['set'](_0x3bfa25,'notReady'),_0x3bfa25;}['_breakSuggestionMarker'](_0x527557,_0x56fcf3,_0x526951){const _0x24c075=_0x527557['getFirstRange'](),_0xb4457c=_0x24c075['start'],_0x1d1725=_0x24c075['end'];this['_setSuggestionRange'](_0x527557,this['_model']['createRange'](_0xb4457c,_0x56fcf3));const _0x57a8e4=_0x6e7e15(),_0x51d2b9=_0x527557['creator']['id'],_0x586db9=_0x527557['type']+(_0x527557['subType']?':'+_0x527557['subType']:'');this['_setSuggestionData']({'id':_0x57a8e4,'type':_0x586db9,'createdAt':new Date(),'authorId':_0x51d2b9,'originalSuggestionId':_0x527557['_originalSuggestionId']||_0x527557['id'],'attributes':_0x527557['attributes'],'data':_0x527557['data']});const _0x2dd51e=this['_getAttributeKey'](_0x527557);('formatBlock'==_0x527557['type']||_0x2dd51e&&this['_suggestionsConversion']['isBlockAttribute'](_0x2dd51e))&&(_0x526951=this['_model']['createPositionBefore'](_0x526951['parent'])),this['_addSuggestionMarker'](_0x586db9,_0x57a8e4,_0x51d2b9,this['_model']['createRange'](_0x526951,_0x1d1725));}['_findSuggestions'](_0x60accf,_0x5aefe0=null){const _0x206eaf=[],_0x4fb590=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x60accf)||(_0x60accf=[_0x60accf]);for(const _0x2446c9 of this['getSuggestions']()){if(!_0x2446c9['isInContent'])continue;if(_0x5aefe0&&_0x2446c9['type']!=_0x5aefe0)continue;let _0x4ca472=!0x1;for(const _0x1232a9 of _0x2446c9['getRanges']()){for(const _0x292c82 of _0x60accf){const _0xe2530a=_0x292c82['start']['isEqual'](_0x1232a9['end'])||_0x292c82['end']['isEqual'](_0x1232a9['start']);if(_0xe2530a||_0x292c82['getIntersection'](_0x1232a9)){const _0x39322c=_0x292c82['containsRange'](_0x1232a9)&&qe(this['_model']['schema'],_0x1232a9['start'],_0x292c82),_0x5a08f1=_0x1232a9['containsRange'](_0x292c82)&&qe(this['_model']['schema'],_0x292c82['start'],_0x1232a9);_0x206eaf['push']({'suggestion':_0x2446c9,'meta':{'isOwn':_0x4fb590==_0x2446c9['author'],'isNextTo':_0xe2530a,'isInsideObject':_0x39322c,'containsRangeInObject':_0x5a08f1}}),_0x4ca472=!0x0;break;}}if(_0x4ca472)break;}}return _0x206eaf;}['_addSuggestionMarker'](_0x55067f,_0x282066,_0x10b03,_0x335770,_0x4b0a91){this['_model']['change'](_0x55596d=>{let _0x54bf3c='suggestion:'+_0x55067f+':'+_0x282066+':'+_0x10b03;_0x4b0a91&&(_0x54bf3c=_0x54bf3c+':'+_0x4b0a91),_0x55596d['addMarker'](_0x54bf3c,{'range':_0x335770,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3effd9){const _0x39cf97=_0x3effd9['previous'],_0x56b5a0=_0x3effd9['next'];_0x3effd9['previous']=null,_0x3effd9['next']=null,null!=_0x39cf97&&_0x39cf97['next']==_0x3effd9&&(_0x39cf97['next']=_0x56b5a0),null!=_0x56b5a0&&_0x56b5a0['previous']==_0x3effd9&&(_0x56b5a0['previous']=_0x39cf97),'ready'==this['_suggestionState']['get'](_0x3effd9)&&(this['_suggestionState']['set'](_0x3effd9,'removed'),this['fire']('suggestionUnloaded',_0x3effd9,_0x39cf97,_0x56b5a0));}['_setSuggestionData'](_0x3653c8){const _0x535845=_0x3653c8['id'],_0x241fa3=this['addSuggestionData'](_0x3653c8);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x517623=this['editor']['plugins']['get']('PendingActions'),_0x28b1c7=_0x241fa3['hasComments'],_0x340746=_0x241fa3['subType']?_0x241fa3['type']+':'+_0x241fa3['subType']:_0x241fa3['type'],_0x1ffc52=this['editor']['locale'],_0xb39fd1=_0x517623['add'](At(_0x1ffc52,'PENDING_ACTION_SUGGESTION')),_0x28b679={'id':_0x535845,'type':_0x340746,'hasComments':_0x28b1c7,'data':_0x3653c8['data']||null,'originalSuggestionId':_0x3653c8['originalSuggestionId']||null,'attributes':_0x241fa3['attributes']};this['_adapter']['addSuggestion'](_0x28b679)['then'](_0x463bb6=>{_0x241fa3['_saved']=!0x0,_0x517623['remove'](_0xb39fd1),_0x463bb6&&_0x463bb6['createdAt']&&(this['_suggestions']['get'](_0x535845)['createdAt']=_0x463bb6['createdAt']);})['catch'](_0x5141c4=>{throw _0xef7315('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x241fa3['discard']();}),_0x241fa3['stopListening'](),this['_suggestions']['delete'](_0x241fa3['id']),this['_suggestionState']['delete'](_0x241fa3),_0x5141c4;});}return _0x241fa3;}['_updateSuggestionData'](_0x16ecb6,_0x8edefd){const _0x4bbbab=this['editor']['plugins']['get']('PendingActions'),_0x1c45d9=this['getSuggestion'](_0x16ecb6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1c45d9['_saved']){const _0x3aeb03=_0x4bbbab['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x16ecb6,_0x8edefd)['then'](()=>{_0x4bbbab['remove'](_0x3aeb03);});}else _0x1c45d9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x16ecb6,_0x8edefd);});}}['_getSuggestionData'](_0x24bc00){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5d6a90('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x24bc00);}['_handleNewSuggestionMarker'](_0x56f234){const {id:_0x4c624c,type:_0x25b8cc,subType:_0xdfc3af,authorId:_0x10588f}=_0x5024a3(_0x56f234),_0x1ade2b=this['_suggestions']['get'](_0x4c624c)||this['_createSuggestion'](_0x25b8cc,_0xdfc3af,_0x4c624c,_0x10588f,{});switch(this['_checkSuggestionCorrectness'](_0x1ade2b,_0x25b8cc,_0xdfc3af,_0x10588f),this['_suggestionState']['get'](_0x1ade2b)){case'notReady':this['_getSuggestionData'](_0x4c624c)['then'](_0x29415e=>{let _0x320298=Promise['resolve']();_0x29415e['hasComments']&&(_0x320298=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4c624c})),_0x320298['then'](()=>{this['addSuggestionData'](_0x29415e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1ade2b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4c624c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1ade2b,'ready'),this['fire']('suggestionLoaded',_0x1ade2b);break;case'ready':this['fire']('suggestionChanged',_0x1ade2b);}return _0x1ade2b['addMarkerName'](_0x56f234),_0x1ade2b;}['_refreshSuggestionsChain'](_0x58bb1a){const _0x3f04c1=Array['from'](_0x58bb1a),_0x190765=_0x3f04c1['filter'](_0x186c8a=>'attribute'==_0x186c8a['type']);this['_refreshAttributeSuggestionsChain'](_0x190765);const _0x4f19d4=_0x3f04c1['filter'](_0x176c0d=>!_0x176c0d['isMultiRange']&&'attribute'!=_0x176c0d['type']),_0x498426=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x423d04=>!_0x423d04['isMultiRange']&&'attribute'!=_0x423d04['type']),_0xfc997=_0x498426['filter'](_0xa362f2=>!_0x58bb1a['has'](_0xa362f2)),_0x168d2a=new Map(_0x498426['map'](_0x2d751b=>[_0x2d751b,this['_suggestionFactory']['getSuggestionCallback'](_0x2d751b['type'],_0x2d751b['subType'],'chain')])),_0x110161=new Map(_0x498426['map'](_0x20cb99=>[_0x20cb99,_0x20cb99['getFirstRange']()])),_0xda4075=new Set(),_0xd5a5be=new Set();for(let _0x205a55=0x0;_0x205a55<_0x4f19d4['length'];_0x205a55++)_0x40ccb1(_0x4f19d4[_0x205a55],_0x4f19d4,_0x205a55+0x1);for(let _0x481145=0x0;_0x481145<_0x4f19d4['length'];_0x481145++)_0x40ccb1(_0x4f19d4[_0x481145],_0xfc997,0x0);const _0x3bec7d=new Set();for(let _0x3cb777=0x0;_0x3cb777<_0x4f19d4['length'];_0x3cb777++){const _0x14d882=_0x4f19d4[_0x3cb777];!_0xd5a5be['has'](_0x14d882)&&_0x14d882['previous']&&(_0x3bec7d['add'](_0x14d882['previous']),_0x14d882['previous']['next']===_0x14d882&&(_0x14d882['previous']['next']=null),_0x14d882['previous']=null),!_0xda4075['has'](_0x14d882)&&_0x14d882['next']&&(_0x3bec7d['add'](_0x14d882['next']),_0x14d882['next']['previous']===_0x14d882&&(_0x14d882['next']['previous']=null),_0x14d882['next']=null);}function _0x40ccb1(_0x3b56df,_0x123389,_0x272b78){for(let _0x493c76=_0x272b78;_0x493c76<_0x123389['length'];_0x493c76++){const _0x24e2e1=_0x24064e(_0x3b56df,_0x123389[_0x493c76]);_0x24e2e1&&(_0x24e2e1[0x0]['next']=_0x24e2e1[0x1],_0x24e2e1[0x1]['previous']=_0x24e2e1[0x0],_0xda4075['add'](_0x24e2e1[0x0]),_0xd5a5be['add'](_0x24e2e1[0x1]));}}function _0x24064e(_0x511d67,_0x1db68e){if(_0x511d67['author']['id']!==_0x1db68e['author']['id'])return null;const _0x35aa76=_0x168d2a['get'](_0x511d67)(_0x511d67,_0x1db68e,_0x110161['get'](_0x511d67),_0x110161['get'](_0x1db68e));if(!_0x35aa76)return null;return _0x168d2a['get'](_0x1db68e)(_0x511d67,_0x1db68e,_0x110161['get'](_0x511d67),_0x110161['get'](_0x1db68e))?_0x35aa76[0x1]['commentThread']&&_0x35aa76[0x1]['commentThread']['length']?null:_0x35aa76:null;}_0x3bec7d['size']&&this['_refreshSuggestionsChain'](_0x3bec7d);}['_refreshAttributeSuggestionsChain'](_0x57c79b){if(0x0==_0x57c79b['length'])return;const _0x2df147=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x203170=>'attribute'==_0x203170['type']&&_0x203170['_isDataLoaded']),_0x45fa11=[],_0x2ef303=new Map();for(const _0x544d44 of _0x2df147){const _0x360ed1=_0x27d616(_0x544d44['attributes']);_0x2ef303['has'](_0x360ed1)||(_0x2ef303['set'](_0x360ed1,_0x45fa11['length']),_0x45fa11['push']([]));const _0x47a419=_0x2ef303['get'](_0x360ed1);_0x45fa11[_0x47a419]['push'](_0x544d44);}!(function(){_0x45fa11['sort']((_0x5a8933,_0x39838f)=>{const _0x402cf1=_0x5a8933[0x0]['createdAt'],_0x491cd8=_0x39838f[0x0]['createdAt'];return _0x402cf1==_0x491cd8?_0x5a8933[0x0]['attributes']['groupId']<_0x39838f[0x0]['attributes']['groupId']?-0x1:0x1:_0x402cf1<_0x491cd8?-0x1:0x1;});for(const _0x522563 of _0x45fa11)_0x522563['sort']((_0xcde3c7,_0x18311)=>_0xcde3c7['id']<_0x18311['id']?-0x1:0x1);}());for(let _0x587f9a=0x0;_0x587f9a<_0x45fa11['length'];_0x587f9a++){if(0x0==_0x45fa11[_0x587f9a]['length'])continue;const _0x521386=[];for(let _0x503702=_0x587f9a+0x1;_0x503702<_0x45fa11['length'];_0x503702++)0x0!=_0x45fa11[_0x503702]['length']&&_0x385ed5(_0x45fa11[_0x587f9a],_0x45fa11[_0x503702])&&_0x521386['push'](_0x503702);for(const _0x25c182 of _0x521386)_0x45fa11[_0x587f9a]=_0x45fa11[_0x587f9a]['concat'](_0x45fa11[_0x25c182]),_0x45fa11[_0x25c182]=[];}for(const _0x123310 of _0x45fa11)for(let _0x1452ac=0x0;_0x1452ac<_0x123310['length'];_0x1452ac++){const _0x58ecc1=_0x123310[_0x1452ac+0x1]||null;_0x123310[_0x1452ac]['next']!==_0x58ecc1&&(_0x123310[_0x1452ac]['next']=_0x58ecc1);}for(const _0x15df0b of _0x45fa11)for(let _0x38ee5d=0x0;_0x38ee5d<_0x15df0b['length'];_0x38ee5d++){const _0x3cc4d9=_0x15df0b[_0x38ee5d-0x1]||null;_0x15df0b[_0x38ee5d]['previous']!==_0x3cc4d9&&(_0x15df0b[_0x38ee5d]['previous']=_0x3cc4d9);}function _0x385ed5(_0x4b5df3,_0x504d8b){if(_0x4b5df3[0x0]['attributes']['groupId']!==_0x504d8b[0x0]['attributes']['groupId']&&_0x4b5df3[0x0]['author']!==_0x504d8b[0x0]['author'])return!0x1;if(!function(_0x5db081,_0x511ac4){if(!_0x5db081['hasComments']&&!_0x511ac4['hasComments'])return!0x0;if(_0x5db081['hasComments']&&_0x511ac4['hasComments'])return!0x1;if(_0x5db081['hasComments']&&_0x511ac4['createdAt']<_0x5db081['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x511ac4['hasComments']&&_0x5db081['createdAt']<_0x511ac4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4b5df3[0x0],_0x504d8b[0x0]))return!0x1;const _0x388325=ot(_0x4b5df3[0x0]['attributes'],['groupId','trackingSessionId']),_0x185895=ot(_0x504d8b[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x388325,_0x185895))return!0x1;if(_0x4b5df3[0x0]['attributes']['groupId']==_0x504d8b[0x0]['attributes']['groupId'])return!0x0;if(_0x4b5df3[0x0]['attributes']['trackingSessionId']!==_0x504d8b[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4b5df3['every'](_0x30476c=>_0x504d8b['some'](_0x4f10f5=>_0x30476c['getFirstRange']()['isEqual'](_0x4f10f5['getFirstRange']())))&&_0x504d8b['every'](_0x434288=>_0x4b5df3['some'](_0x1a421c=>_0x434288['getFirstRange']()['isEqual'](_0x1a421c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4699c9){const _0x44dae6=Array['from'](_0x4699c9),_0x38278c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3f1c2b=_0x38278c['filter'](_0x43ab78=>!_0x4699c9['has'](_0x43ab78)),_0x2ff317=new Map(_0x44dae6['map'](_0x3ce435=>[_0x3ce435,this['_suggestionFactory']['getSuggestionCallback'](_0x3ce435['type'],_0x3ce435['subType'],'join')])),_0x2a345d=new Map(_0x38278c['map'](_0xc5ec2d=>[_0xc5ec2d,_0xc5ec2d['getRanges']()]));for(let _0xaefc8f=0x0;_0xaefc8f<_0x44dae6['length'];_0xaefc8f++){if(_0x47ddf1(this,_0x44dae6[_0xaefc8f],_0x44dae6,_0xaefc8f+0x1))return!0x0;}for(let _0x5bf195=0x0;_0x5bf195<_0x44dae6['length'];_0x5bf195++){if(_0x47ddf1(this,_0x44dae6[_0x5bf195],_0x3f1c2b,0x0))return!0x0;}return!0x1;function _0x47ddf1(_0x43d85f,_0x15565f,_0x3bb6af,_0x5f00ff){for(let _0x3e3a6c=_0x5f00ff;_0x3e3a6c<_0x3bb6af['length'];_0x3e3a6c++){const _0xd07887=_0x3bb6af[_0x3e3a6c];if(_0xd07887['type']!==_0x15565f['type']||_0xd07887['author']['id']!==_0x15565f['author']['id']||_0xd07887['subType']!==_0x15565f['subType'])continue;if(!an(_0x15565f,_0xd07887))continue;if('attribute'==_0x15565f['type']&&_0x15565f['data']['oldValue']!=_0xd07887['data']['oldValue'])continue;if('attribute'==_0x15565f['type']&&_0x43d85f['_suggestionsConversion']['isBlockAttribute'](_0x15565f['data']['key']))continue;if('formatBlock'==_0x15565f['type']){const _0x163a44=_0x43d85f['editor']['model'],_0x38cd45=_0x15565f['getContainedElement']();if(_0x38cd45&&(_0x163a44['schema']['isObject'](_0x38cd45)||_0x163a44['schema']['isLimit'](_0x38cd45)))continue;}const _0x3ee55a=_0x2ff317['get'](_0x15565f),_0x15b9d4=_0x2a345d['get'](_0x15565f),_0x1309a8=_0x2a345d['get'](_0xd07887),_0x30d534=_0x15565f['commentThread']&&_0x15565f['commentThread']['length'],_0x5dde3a=_0xd07887['commentThread']&&_0xd07887['commentThread']['length'];if(!_0x30d534&&_0x3ee55a(_0x1309a8,_0x15b9d4))return _0x43d85f['_joinSuggestions'](_0xd07887,_0x15565f),_0x2a345d['delete'](_0x15565f),!0x0;if(!_0x5dde3a&&_0x3ee55a(_0x15b9d4,_0x1309a8))return _0x43d85f['_joinSuggestions'](_0x15565f,_0xd07887),_0x2a345d['delete'](_0xd07887),!0x0;}return!0x1;}}['_joinSuggestions'](_0x564a7c,_0x4aa64b){if(_0x564a7c['isMultiRange']){for(const _0x4fa7df of _0x4aa64b['getRanges']())_0x564a7c['addRange'](_0x4fa7df);}else{const _0xe4b8f9=_0x4aa64b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x564a7c,this['_model']['createRange'](_0x564a7c['getFirstRange']()['start'],_0xe4b8f9));}_0x4aa64b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x33d356,_0x1cade1,_0x3f4e29){const _0x1eae69=_0x33d356['startsWith']('format')||_0x33d356['startsWith']('attribute')?'FORMATTING':_0x33d356['toUpperCase']();return At(this['editor']['locale'],_0x1cade1+'_'+_0x1eae69+'_SUGGESTION_ANNOUNCEMENT',_0x3f4e29);}['_initAriaMarkerChangeAnnouncements'](){const _0x231eec=this['editor'];if(!_0x231eec['ui'])return;const {ariaLiveAnnouncer:_0x480f85}=_0x231eec['ui'];_0x34c014(this['_model'],({left:_0x24d0d5,entered:_0x3fbb09})=>{for(const _0x2457a9 of _0x24d0d5){const {group:_0x4977a0,type:_0x158bb7}=_0x5024a3(_0x2457a9['name']);if('suggestion'===_0x4977a0){_0x480f85['announce'](this['_getMarkerAnnouncementText'](_0x158bb7,'LEAVE'));break;}}for(const _0x43099e of _0x3fbb09){const {group:_0x1b81e9,type:_0x59f35f}=_0x5024a3(_0x43099e['name']);if('suggestion'===_0x1b81e9){_0x480f85['announce'](this['_getMarkerAnnouncementText'](_0x59f35f,'ENTER',_0x3d636c(_0x4d82a1)));break;}}});}['_processAttributeChanges'](_0x5f27f5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x9ee8fb=this['editor'],_0x281843=_0x9ee8fb['model']['document']['differ']['getChanges']();if(0x0==_0x281843['length'])return!0x1;const _0x45a743=[],_0x258078=_0x281843['filter'](_0x1230dd=>'attribute'==_0x1230dd['type']),_0x2b52b2=_0x281843['filter'](_0x5028b7=>'insert'==_0x5028b7['type']&&'$text'!=_0x5028b7['name']),_0x1acdf3=_0x281843['filter'](_0x294c06=>'remove'==_0x294c06['type']&&'$text'!=_0x294c06['name']);for(const _0x57f36d of _0x258078)_0x45a743['push']({'key':_0x57f36d['attributeKey'],'newValue':_0x57f36d['attributeNewValue'],'oldValue':_0x57f36d['attributeOldValue'],'range':sn(_0x57f36d['range'],_0x9ee8fb['model'])});for(const _0x7676b0 of _0x2b52b2){const _0x3cb2d7=_0x1acdf3['find'](_0x38bf45=>_0x38bf45['position']['isEqual'](_0x7676b0['position']));_0x3cb2d7&&_0x45a743['push']({'key':Ke,'newValue':_0x7676b0['name'],'oldValue':_0x3cb2d7['name'],'range':_0x9ee8fb['model']['createRangeOn'](_0x7676b0['position']['nodeAfter'])});}return 0x0!=_0x45a743['length']&&this['_reduceExistingSuggestions'](_0x5f27f5,_0x45a743);}['_processAttributeSuggestions'](_0x345a39){let _0xfe5b17=!0x1;const _0x42f630=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4668ad=>_0x4668ad['data']['newRange']&&_0x4668ad['name']['startsWith']('suggestion:attribute:'));for(const _0x8c8ce1 of _0x42f630){const {subType:_0xc9a9f9,id:_0x16c91a}=_0x5024a3(_0x8c8ce1['name']),_0x203d75=_0xc9a9f9['split']('|')[0x0];for(const _0x1aabf3 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1aabf3['id']!=_0x16c91a&&'attribute'==_0x1aabf3['type']&&_0x1aabf3['data']&&_0x1aabf3['data']['key']==_0x203d75&&_0x1aabf3['getFirstRange']()['isIntersecting'](_0x8c8ce1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1aabf3,_0x8c8ce1['data']['newRange'],_0x345a39),_0xfe5b17=!0x0);}return _0xfe5b17;}['recordAttributeChanges'](_0x4a248f){this['_recordAttributeSuggestions']=!0x0,_0x4a248f();}['_reduceExistingSuggestions'](_0x1ef958,_0x74dbe1){if(0x0==_0x74dbe1['length'])return!0x1;let _0x5f0451=!0x1;for(const _0x6e8f8d of _0x74dbe1){const _0x58fea1=this['_findSuggestions'](_0x6e8f8d['range'],'attribute')['filter'](_0x2afbf5=>!_0x2afbf5['meta']['isNextTo'])['map'](_0x27c7bf=>_0x27c7bf['suggestion']),_0x68769b=_0x27d616({'newValue':_0x6e8f8d['newValue']});_0x58fea1['filter'](_0x4f4585=>{const [_0x2c6297,_0x5fe35a]=_0x4f4585['subType']['split']('|');return _0x2c6297==_0x6e8f8d['key']&&_0x5fe35a!=_0x68769b;})['forEach'](_0x311f8e=>{this['_reduceSuggestionAttributeRange'](_0x311f8e,_0x6e8f8d['range'],_0x1ef958),_0x5f0451=!0x0;});}return _0x5f0451;}['_reduceSuggestionAttributeRange'](_0x17357a,_0x15f989,_0x5c4d24){const _0x387bfa=_0x17357a['getFirstRange']()['getDifference'](_0x15f989);0x0!==_0x387bfa['length']?0x1!==_0x387bfa['length']?this['_breakSuggestionMarker'](_0x17357a,_0x15f989['start'],_0x15f989['end']):this['_setSuggestionRange'](_0x17357a,_0x387bfa[0x0]):_0x5c4d24['removeMarker'](_0x17357a['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x479a08){this['_editor']=_0x479a08,this['_model']=_0x479a08['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x26a078,_0x3f30b2,_0x5ac72d,_0xd0972a,_0x3c172a,_0x1ae58f,_0x1b8d6c){return new bt(this['_model'],{'type':_0x26a078,'subType':_0x3f30b2,'id':_0x5ac72d,'originalSuggestionId':_0x1b8d6c,'author':_0xd0972a,'creator':_0xd0972a,'attributes':_0x3c172a,'onAttributesChange':_0x1ae58f,'onAccept':(..._0x173383)=>this['getSuggestionCallback'](_0x26a078,_0x3f30b2,'accept')(..._0x173383),'onDiscard':(..._0x6ce1c8)=>this['getSuggestionCallback'](_0x26a078,_0x3f30b2,'discard')(..._0x6ce1c8)});}['registerCustomCallback'](_0x3b147e,_0x3f838f,_0x215ff4,_0x47b734){const _0x5460c1=_0x3b147e+':'+_0x3f838f+':'+_0x215ff4;this['_customCallbacks']['set'](_0x5460c1,_0x47b734);}['getSuggestionCallback'](_0x34b2a8,_0x5623a4,_0x2ba3e8){const _0x31aecd=_0x34b2a8+':'+_0x5623a4+':'+_0x2ba3e8;return this['_customCallbacks']['get'](_0x31aecd)||this['_defaultCallbacks']['get'](_0x34b2a8+':'+_0x2ba3e8);}['_registerDefaultCallbacks'](){const _0x3411e9=()=>!0x1,_0x5c5976=_0x410c85=>{_0x410c85['sort']((_0x593fdd,_0x37926b)=>_0x593fdd['start']['isBefore'](_0x37926b['start'])?0x1:-0x1),this['_model']['change'](_0x40fe8d=>{for(const _0x1e2478 of _0x410c85){let _0x283eda;_0x283eda=_0x1e2478['end']['isAtEnd']&&_0x1e2478['end']['parent']==_0x1e2478['start']['nodeAfter']?_0x40fe8d['createSelection'](_0x1e2478['start']['nodeAfter'],'on'):_0x40fe8d['createSelection'](_0x1e2478),this['_model']['deleteContent'](_0x283eda,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4979d8=(_0x24b055,_0x2bf237)=>{_0x2bf237&&this['_model']['change'](_0x4b076a=>{const {commandName:_0x387c5d,commandParams:_0x4d8b28=[]}=_0x2bf237,_0x4b4e89=_0x24b055['map'](_0x529830=>(Qe(_0x529830)&&(_0x529830=this['_model']['createRange'](_0x529830['end'])),_0x529830))['filter'](_0x424cab=>'$graveyard'!==_0x424cab['root']['rootName']);if(_0x4b4e89['length']<0x1)return;const _0x5078eb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xdad2ab=>_0x5ce503['fromRange'](_0xdad2ab));_0x4b076a['setSelection'](_0x4b4e89);for(const _0x1565e7 of this['_editor']['commands']['commands']())_0x1565e7['refresh']();_0x4d8b28['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x387c5d,..._0x4d8b28);const _0x4b68f3=_0x5078eb['filter'](_0x226926=>'$graveyard'!=_0x226926['root']['rootName']);_0x4b68f3['length']>0x0&&_0x4b076a['setSelection'](_0x4b68f3);for(const _0x3433d6 of _0x5078eb)_0x3433d6['detach']();});},_0x45a2f0=(_0x4d8c32,_0x130b47)=>0x1==_0x4d8c32['length']&&0x1==_0x130b47['length']&&_0x4d8c32[0x0]['end']['isEqual'](_0x130b47[0x0]['start']),_0x17e526=(_0x3b262b,_0x1ef566,_0x5c3fd7,_0x417c36)=>on(_0x3b262b,_0x1ef566,_0x5c3fd7,_0x417c36)?[_0x3b262b,_0x1ef566]:on(_0x1ef566,_0x3b262b,_0x417c36,_0x5c3fd7)?[_0x1ef566,_0x3b262b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3411e9),this['_defaultCallbacks']['set']('insertion:discard',_0x5c5976),this['_defaultCallbacks']['set']('insertion:join',_0x45a2f0),this['_defaultCallbacks']['set']('insertion:chain',_0x17e526),this['_defaultCallbacks']['set']('deletion:accept',_0x5c5976),this['_defaultCallbacks']['set']('deletion:discard',_0x3411e9),this['_defaultCallbacks']['set']('deletion:join',_0x45a2f0),this['_defaultCallbacks']['set']('deletion:chain',_0x17e526),this['_defaultCallbacks']['set']('formatInline:accept',_0x4979d8),this['_defaultCallbacks']['set']('formatInline:discard',_0x3411e9),this['_defaultCallbacks']['set']('formatInline:join',_0x45a2f0),this['_defaultCallbacks']['set']('formatInline:chain',_0x3411e9),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4979d8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3411e9),this['_defaultCallbacks']['set']('formatBlock:join',_0x45a2f0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3411e9),this['_defaultCallbacks']['set']('attribute:accept',_0x3411e9),this['_defaultCallbacks']['set']('attribute:discard',(_0x26fde4,_0x4172e2)=>{if(!_0x4172e2)return;const _0xf7055=this['_editor']['plugins']['get'](_0x69b91c);this['_model']['change'](_0x2c3658=>{if(_0x4172e2['key']==Ke)for(const _0x271bfb of _0x26fde4){const _0x3d1a9c=_0x271bfb['start']['nodeAfter'],_0x387f0f=_0x4172e2['oldValue'];_0x2c3658['rename'](_0x3d1a9c,_0x387f0f);}else{if(_0xf7055['isBlockAttribute'](_0x4172e2['key'])){for(const _0x19e2fe of _0x26fde4)void 0x0!==_0x4172e2['oldValue']?_0x2c3658['setAttribute'](_0x4172e2['key'],_0x4172e2['oldValue'],_0x19e2fe['start']['nodeAfter']):_0x2c3658['removeAttribute'](_0x4172e2['key'],_0x19e2fe['start']['nodeAfter']);}else{for(const _0x26cfd2 of _0x26fde4)_0x4172e2['oldValue']?_0x2c3658['setAttribute'](_0x4172e2['key'],_0x4172e2['oldValue'],_0x26cfd2):_0x2c3658['removeAttribute'](_0x4172e2['key'],_0x26cfd2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x45a2f0);}}function qe(_0xf3ecff,_0x18a48a,_0x57d20b){for(const _0x4fee95 of _0x18a48a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4fee95['root']==_0x4fee95)return!0x1;if(!_0x57d20b['containsItem'](_0x4fee95))return!0x1;if(_0xf3ecff['isObject'](_0x4fee95)||_0xf3ecff['isLimit'](_0x4fee95))return!0x0;}return!0x1;}function Qe(_0x4eea33){return _0x4eea33['end']['parent']==_0x4eea33['start']['nodeAfter']&&_0x4eea33['end']['isAtStart'];}function Ze(_0x1e2a66,_0x55177b,_0x154399,_0x4cf6f0){const _0x21964f=_0x48fbe2=>!_0x48fbe2['item']['is']('$textProxy')&&!_0x4cf6f0['isObject'](_0x48fbe2['item']),_0x2d7670=_0x1e2a66['start']['getLastMatchingPosition'](_0x21964f),_0x506141=_0x1e2a66['end']['getLastMatchingPosition'](_0x21964f,{'direction':'backward'});return(!_0x1e2a66['start']['isEqual'](_0x2d7670)||!_0x1e2a66['end']['isEqual'](_0x506141))&&(_0x2d7670['isBefore'](_0x506141)?_0x154399['updateMarker'](_0x55177b,{'range':_0x154399['createRange'](_0x2d7670,_0x506141)}):_0x154399['removeMarker'](_0x55177b),!0x0);}function Je(_0x5b38d7){return _0x27d616(_0x5b38d7);}function tn(_0x2f2390){const _0xb7fcec=_0x2f2390['start']['nodeAfter'];return _0xb7fcec&&_0xb7fcec['is']('element');}function en(_0xa37f35){return Qe(_0xa37f35)||function(_0x373a95){return _0x373a95['start']['parent']==_0x373a95['end']['nodeBefore']&&_0x373a95['start']['isAtEnd'];}(_0xa37f35);}function nn(_0x3d129d,_0xc013d4){try{const _0x216d12=_0x3d129d['getRange']();for(const _0x354f9d of _0xc013d4)if(_0x3d129d!==_0x354f9d&&_0x216d12&&_0x216d12['isIntersecting'](_0x354f9d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x3509fb,_0x3f201a){return null==_0x3509fb['end']['nodeBefore']&&_0x3509fb['end']['parent']==_0x3509fb['start']['nodeAfter']?rn(_0x3509fb['start']['nodeAfter'],_0x3f201a):_0x3509fb;}function rn(_0xe91179,_0x18eff6){const _0x27d529=_0x18eff6['schema']['isObject'](_0xe91179)||_0x18eff6['schema']['isSelectable'](_0xe91179);return _0x18eff6['createRange'](_0x18eff6['createPositionAt'](_0xe91179,'before'),_0x27d529?_0x18eff6['createPositionAfter'](_0xe91179):_0x18eff6['createPositionAt'](_0xe91179,'end'));}function on(_0x1bd588,_0x13a9bc,_0x2e204b,_0x3bdf80){return!!an(_0x1bd588,_0x13a9bc)&&_0x2e204b['end']['isEqual'](_0x3bdf80['start']);}function an(_0x29191e,_0x100176){if(!_0x29191e['_isDataLoaded']||!_0x100176['_isDataLoaded'])return!0x1;const _0x2e4cde=new Set(Object['keys'](_0x29191e['attributes'])),_0x587ef9=new Set(Object['keys'](_0x100176['attributes']));if(_0x2e4cde['delete']('groupId'),_0x587ef9['delete']('groupId'),0x0==_0x2e4cde['size']&&0x0==_0x587ef9['size'])return!0x0;if(_0x2e4cde['size']!=_0x587ef9['size'])return!0x1;const _0x26633e={..._0x29191e['attributes']},_0x3d55bc={..._0x100176['attributes']};return delete _0x26633e['groupId'],delete _0x3d55bc['groupId'],JSON['stringify'](_0x26633e)==JSON['stringify'](_0x3d55bc);}function cn(_0x4a87a1,_0x4b5fbb){const _0x3155ea=ln(_0x4a87a1['attributes']),_0x3ab2e7=ln(_0x4b5fbb);if(!_0x4a87a1['_isDataLoaded'])return!0x1;for(const _0x3d5f3f of Object['keys'](_0x3ab2e7))if(!st(_0x3155ea[_0x3d5f3f],_0x3ab2e7[_0x3d5f3f]))return!0x1;return!0x0;}function ln(_0x2f32eb){const _0x48b33c=Object['assign']({},_0x2f32eb);return delete _0x48b33c['skipNestingCheck'],delete _0x48b33c['tablePasteChainId'],_0x48b33c;}function un(_0xaeb953){return _0xaeb953['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x241079(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x33ce9c,_0x2c5178,_0x5d7384,_0x66b52a){super(),this['model']=_0x2c5178,this['view']=_0x5d7384,this['commentThreadController']=_0x66b52a,this['_editor']=_0x33ce9c,this['_acceptCommand']=_0x33ce9c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x33ce9c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3b64a7,_0x1107ac)=>_0x3b64a7||_0x1107ac),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2f683b=>_0x2f683b&&this['_editor']['model']['canEditAt'](_0x2c5178['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x400ddf=>_0x400ddf&&this['_editor']['model']['canEditAt'](_0x2c5178['getRanges']())),this['_pendingAction']=null,_0x5d7384['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5d7384,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5d7384,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5d7384,'change:isDirty',()=>{_0x5d7384['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 _0x29942e=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x29942e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x20a04b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x23e2ff,_0x508ce0,_0x38fb30,_0x2db5e6){super(_0x23e2ff),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2856fe(_0x23e2ff,At(_0x23e2ff,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x508ce0['authoredAt']),this['bind']('authoredAt')['to'](_0x508ce0),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',_0x508ce0,'authoredAt',this,'descriptionParts',(_0x148947,_0x2cc71d,_0x2a9444)=>{const _0x31ef02=_0x2a9444['map'](_0x2c52c5=>gt(_0x2c52c5['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x148947-0x1,_0x508ce0['author']['name'],_0x2cc71d?_0x2db5e6['formatDateTime'](_0x2cc71d):'',new DOMParser()['parseFromString'](_0x31ef02,'text/html')['body']['textContent']]);}),this['focusables']=new _0x21c02e(),this['focusTracker']=new _0x135dbd(),this['keystrokes']=new _0x2816b5(),this['focusCycler']=new _0x549bb7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x45b782=>_0x45b782['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x508ce0,this['_localUser']=_0x38fb30,this['_config']=_0x2db5e6,_0x2db5e6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xc2edd4(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x47d013}=this['_config'];this['commentsListView']=new _0x47d013(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',_0x352857=>_0x352857+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2cb3b8,_0xeab77)=>_0x2cb3b8||!!_0xeab77);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x15ea15}=this['_config'],_0x5e0fa1=new _0x15ea15(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1300a2=_0x5e0fa1['commentInputView'];return _0x5e0fa1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1300a2,'value',(_0x83513b,_0x439619,_0x5a8e54)=>!!_0x5a8e54||_0x83513b&&!_0x439619),_0x1300a2['on']('submit',(_0x19128b,_0x546d44)=>{this['fire']('addComment',_0x546d44),_0x1300a2['editor']['setData']('');}),_0x1300a2['on']('cancel',()=>this['focus']()),_0x1300a2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5e0fa1;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x5084c7,_0x2a133,_0x1c480d,_0x106c50){super(_0x5084c7,_0x2a133,_0x1c480d,_0x106c50),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x324563=>_0x324563&&_0x324563[0x0]?_0x324563[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x348632,_0x1cb91b)=>{let _0x4fe8fe='';for(const _0x1ea0e2 of _0x348632)_0x4fe8fe+='<p>'+gt(_0x1ea0e2['content'],_0x1ea0e2['color'])+'</p>';return _0x1cb91b?_0x4fe8fe:_0x21e49e(_0x4fe8fe,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x106c50['SuggestionView'](_0x5084c7,_0x2a133,{'formatDateTime':_0x106c50['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 _0x218c0d=this['bindTemplate'],_0x21c050=[this['suggestionView']];return this['commentsListView']&&_0x21c050['push'](this['commentsListView']),this['commentThreadInputView']&&_0x21c050['push'](this['commentThreadInputView']),_0x21c050['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x218c0d['if']('isActive','ck-suggestion-wrapper--active'),_0x218c0d['to']('type',_0x67f04a=>'ck-suggestion-'+_0x67f04a),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':_0x218c0d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x21c050};}['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 gn extends _0x20a04b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x13d37b,_0x79f17c,_0x431927){super(_0x13d37b),this['_model']=_0x79f17c,this['_config']=_0x431927,this['set']('description',''),this['bind']('authoredAt')['to'](_0x79f17c),this['acceptButton']=this['_createButton'](At(_0x13d37b,'Accept\x20suggestion'),_0x580087,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x13d37b,'Discard\x20suggestion'),_0x5ee3e5,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x42d46a(_0x13d37b,_0x79f17c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x21c02e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x135dbd(),this['keystrokes']=new _0x2816b5(),this['focusCycler']=new _0x549bb7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x360a6d=>_0x360a6d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5fb0b8=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5fb0b8['innerHTML']=this['description'],this['on']('change:description',(_0x58c9e6,_0x10c89f,_0x1fa220)=>{_0x5fb0b8['innerHTML']=_0x1fa220;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5ac390=this['bindTemplate'],_0x163f0a=[{'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':_0x5ac390['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5ac390['to']('authoredAt',_0x501ea2=>this['_config']['formatDateTime'](_0x501ea2))}]}]},{'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']&&_0x163f0a['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':_0x163f0a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xc4a7,_0x5e603c,_0x51a8ad,_0x3e7047,_0x362212){const _0x13da85=new _0x590bd0(this['locale']);return _0x13da85['set']({'label':_0xc4a7,'icon':_0x5e603c,'tooltip':!0x0,'tooltipPosition':_0x362212}),_0x13da85['extendTemplate']({'attributes':{'class':_0x51a8ad}}),_0x13da85['on']('execute',()=>{this['fire'](_0x3e7047,this['_model']['id']);}),_0x13da85;}['_setupKeyboardNavigation'](){const _0x3cb5a7=this['element'];this['keystrokes']['listenTo'](_0x3cb5a7);for(const _0x250b73 of this['focusables'])this['focusTracker']['add'](_0x250b73['element']),this['keystrokes']['listenTo'](_0x250b73['element']);this['keystrokes']['set']('enter',(_0x3bcc22,_0x44cee7)=>{_0x3cb5a7===_0x3bcc22['target']&&(this['focusCycler']['focusFirst'](),_0x44cee7());}),this['keystrokes']['set']('esc',(_0x4031b6,_0x4cfd64)=>{_0x3cb5a7!==_0x4031b6['target']&&(this['focus'](),_0x4cfd64());});}}class mn extends _0x542478{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x46e4db,_0x5208d5,_0x2511a0,_0x547235];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13c4fb){super(_0x13c4fb),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1ba0f2=this['editor']['config'];_0x1ba0f2['define']('trackChanges.SuggestionThreadView',fn),_0x1ba0f2['define']('trackChanges.SuggestionView',gn),_0x1ba0f2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1ba0f2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x347748,_0x304431){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5eae8a,_0x27a605]of this['_handleControllerBuffer']){const _0x50db91=this['_suggestionToController']['has'](_0x5eae8a);_0x50db91||_0x27a605?_0x50db91&&_0x27a605&&this['_destroyController'](_0x5eae8a):this['_initializeController'](_0x5eae8a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x547235)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x347748,_0x304431);}['init'](){const _0x520498=this['editor'],_0x115079=_0x520498['plugins']['get'](Xe),_0x5e3fbb=_0x520498['plugins']['get'](_0x2511a0),_0x2c4bc2=_0x520498['plugins']['get'](_0x547235),_0x2e5601=_0x520498['plugins']['get'](_0x5208d5);this['_addUIComponentsToFactory'](),_0x2c4bc2['addSourceCollector'](()=>{const _0x1e653b=[];for(const [_0x1ce95c,_0x32be96]of Array['from'](this['_suggestionToController'])){const _0x920209=_0x1ce95c['getAllAdjacentSuggestions'](),_0x16da1e=[];for(const _0x50d147 of _0x920209){if(!_0x50d147['isInContent'])continue;if(_0x50d147['isMultiRange']){_0x16da1e['push'](..._0x50d147['getRanges']());continue;}const _0x3f8562=_0x50d147['getFirstRange']();if(_0x16da1e['length']>0x0){const _0x3a0e0d=_0x16da1e[0x0]['getJoined'](_0x3f8562);if(_0x3a0e0d){_0x16da1e[0x0]=_0x3a0e0d;continue;}}_0x16da1e['push'](_0x3f8562);}_0x1e653b['push']([_0x32be96['view'],_0x16da1e]);}return _0x1e653b;}),this['listenTo'](_0x115079,'suggestionLoaded',(_0x493730,_0x3dc9cf)=>{this['listenTo'](_0x3dc9cf,'change:previous',(_0x4f1bed,_0x412489,_0x27eb57,_0x2dcfea)=>{_0x3dc9cf['isInContent']&&(null==_0x27eb57?(this['_updateController'](_0x2dcfea['head']),this['_handleSuggestionControllerDelayed'](_0x3dc9cf,!0x1)):(this['_updateController'](_0x27eb57['head']),null==_0x2dcfea&&this['_handleSuggestionControllerDelayed'](_0x3dc9cf,!0x0)));}),null!==_0x3dc9cf['previous']?this['_updateController'](_0x3dc9cf['head']):this['_handleSuggestionControllerDelayed'](_0x3dc9cf,!0x1);}),this['listenTo'](_0x115079,'suggestionUnloaded',(_0x4666ca,_0x39749b,_0x3cbafb)=>{this['stopListening'](_0x39749b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x39749b),this['_suggestionToController']['has'](_0x39749b)&&this['_destroyController'](_0x39749b),_0x3cbafb&&this['_updateController'](_0x3cbafb['head']);}),this['listenTo'](_0x115079,'suggestionChanged',(_0x4a3cee,_0x37ee76)=>{this['_updateController'](_0x37ee76);}),this['listenTo'](_0x5e3fbb,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2e5601,'addComment',(_0x5ec124,{threadId:_0x322f2d,isFromAdapter:_0x418cf1})=>{if(_0x418cf1||!_0x115079['hasSuggestion'](_0x322f2d))return;const _0x4e16d9=_0x115079['getSuggestion'](_0x322f2d);this['_suggestionToController']['get'](_0x4e16d9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x491e85=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x315fb4;for(const _0x1e74e0 in _0x491e85){const _0x2db717=_0x1e74e0,_0x2eb9d2=_0x491e85[_0x2db717];if('trackChangesLicenseKeyValid'==_0x2eb9d2||'trackChangesLicenseKeyInvalid'==_0x2eb9d2||'trackChangesLicenseKeyExpired'==_0x2eb9d2||'trackChangesLicenseKeyDomainLimit'==_0x2eb9d2||'trackChangesLicenseKeyNotAllowed'==_0x2eb9d2||'trackChangesLicenseKeyEvaluationLimit'==_0x2eb9d2||'trackChangesLicenseKeyUsageLimit'==_0x2eb9d2){delete _0x491e85[_0x2db717],_0x315fb4=_0x2eb9d2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x315fb4&&_0x491e85['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x315fb4&&_0x491e85['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x315fb4&&_0x491e85['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x315fb4&&_0x491e85['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x315fb4&&_0x491e85['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x315fb4&&_0x491e85['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4ff5d6){const _0x5bf132=this['_suggestionToController']['get'](_0x4ff5d6);if(!_0x5bf132)return null;return this['editor']['plugins']['get'](_0x2511a0)['getByInnerView'](_0x5bf132['view'])||null;}['getSuggestionForAnnotation'](_0x2b833e){const _0x4bb274=this['_viewToController']['get'](_0x2b833e['innerView']);return _0x4bb274?_0x4bb274['model']:null;}['_refreshActiveMarkers'](){const _0x1ad342=this['editor']['plugins']['get'](_0x2511a0),_0x3669a8=this['editor']['plugins']['get'](Xe),_0x324cf0=Array['from'](_0x1ad342['activeAnnotations'],_0x40f585=>_0x40f585['innerView'])['filter'](_0x15f45c=>this['_viewToController']['has'](_0x15f45c)),_0x4e257f=[];for(const _0x42cad1 of _0x324cf0){const _0x37c510=this['_viewToController']['get'](_0x42cad1)['model']['getAllAdjacentSuggestions']();_0x4e257f['push'](..._0x37c510['reduce']((_0x14dd14,_0x1939d4)=>[..._0x14dd14,..._0x1939d4['getMarkerNames']()],[]));}_0x3669a8['activeMarkers']=_0x4e257f;}['_addUIComponentsToFactory'](){const _0x124fd8=this['editor'],_0x4d2958=_0x124fd8['locale'],_0x259517=At(_0x4d2958,'Track\x20changes'),_0x8fad0d=new _0x3c2374([{'type':'switchbutton','model':new _0x373190({'withText':!0x0,'isToggleable':!0x0,'label':_0x259517,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x373190({'withText':!0x0,'label':At(_0x4d2958,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x373190({'withText':!0x0,'label':At(_0x4d2958,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x373190({'withText':!0x0,'label':At(_0x4d2958,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x373190({'withText':!0x0,'label':At(_0x4d2958,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x124fd8['plugins']['has']('TrackChangesPreview')&&_0x8fad0d['addMany']([{'type':'separator'},{'type':'button','model':new _0x373190({'withText':!0x0,'label':At(_0x4d2958,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x268e59 of _0x8fad0d)if(En(_0x268e59)){const _0xafc140=_0x124fd8['commands']['get'](_0x268e59['model']['commandName']);_0x268e59['model']['bind']('isOn','isEnabled')['to'](_0xafc140,'value','isEnabled');}_0x124fd8['ui']['componentFactory']['add']('trackChanges',_0x4f94f4=>this['_createToolbarButton'](_0x4f94f4,_0x8fad0d,_0x259517)),_0x124fd8['ui']['componentFactory']['add']('menuBar:trackChanges',_0x13ca1c=>this['_createMenuBarMenu'](_0x13ca1c,_0x8fad0d,_0x259517));}['_createToolbarButton'](_0x4f3f1f,_0x4fc141,_0x770f33){const _0x36aaba=_0x3e5891(_0x4f3f1f,_0x59e3fc),_0x4c07a2=this['editor']['commands']['get']('trackChanges');_0x36aaba['buttonView']['set']({'tooltip':_0x770f33,'label':_0x770f33,'icon':_0x3560f2}),_0x36aaba['buttonView']['bind']('isOn')['to'](_0x4c07a2,'value'),_0x36aaba['buttonView']['on']('execute',()=>{_0x4c07a2['execute'](),this['editor']['editing']['view']['focus']();}),_0x3cf112(_0x36aaba,_0x4fc141,{'role':'menu'});const _0x19de02=[];for(const _0x4ca16f of _0x4fc141)En(_0x4ca16f)&&_0x19de02['push'](this['editor']['commands']['get'](_0x4ca16f['model']['commandName']));const _0x44075d=_0x36aaba['buttonView'];return _0x44075d['actionView']['unbind']('isEnabled'),_0x44075d['arrowView']['unbind']('isEnabled'),_0x44075d['actionView']['bind']('isEnabled')['to'](_0x4c07a2,'isEnabled'),_0x44075d['arrowView']['bind']('isEnabled')['toMany'](_0x19de02,'isEnabled',(..._0x1db145)=>_0x1db145['some'](_0x487d96=>_0x487d96)),_0x36aaba['on']('execute',_0x161797=>{this['editor']['execute'](_0x161797['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x36aaba;}['_createMenuBarMenu'](_0x52b358,_0x4bdc55,_0x42b898){const _0x33d707=new _0x4a412d(_0x52b358),_0x14fd8c=this['editor']['commands']['get']('trackChanges');_0x33d707['buttonView']['set']({'label':_0x42b898,'icon':_0x3560f2});const _0x3e0fa3=new _0x1dbfbe(_0x52b358);for(const _0x2b44c6 of _0x4bdc55){if('separator'==_0x2b44c6['type']){_0x3e0fa3['items']['add'](new _0x5dfb7a(_0x52b358));continue;}const _0x11927d=new _0x1e700b(_0x52b358,_0x33d707),_0x30f9b3=new _0x248430(_0x52b358),_0x578857=_0x2b44c6['model'];_0x30f9b3['bind'](...Object['keys'](_0x578857))['to'](_0x578857),_0x30f9b3['delegate']('execute')['to'](_0x33d707),_0x30f9b3['on']('execute',()=>{this['editor']['execute'](_0x578857['commandName']),this['editor']['editing']['view']['focus']();}),_0x11927d['children']['add'](_0x30f9b3),_0x3e0fa3['items']['add'](_0x11927d);}return _0x33d707['bind']('isEnabled')['to'](_0x14fd8c,'isEnabled'),_0x33d707['panelView']['children']['add'](_0x3e0fa3),_0x33d707;}['_initializeController'](_0x4ab1d5){const _0x53d3a3=this['editor'],_0x317da3=_0x53d3a3['config'],_0x20e7e1=_0x53d3a3['plugins']['get'](_0x2511a0),_0x721c25=_0x53d3a3['plugins']['get'](_0x5208d5),_0x14c53f=_0x53d3a3['plugins']['get'](_0x547235),_0x2e1aa8=_0x53d3a3['plugins']['get'](_0x46e4db)['me'],_0x4c54bd=_0x317da3['get']('trackChanges')['SuggestionThreadView'],_0x141db7=_0x317da3['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x24bd88,CommentThreadInputView:_0x52661f}=_0x53d3a3['plugins']['get']('CommentsUI');let _0x490a93,_0x35afec,_0x225796;this['_annotationViews']['has'](_0x4ab1d5['id'])?(_0x35afec=this['_annotationViews']['get'](_0x4ab1d5['id']),_0x490a93=_0x35afec['mainView']):(_0x490a93=new _0x4c54bd(_0x53d3a3['locale'],_0x4ab1d5,_0x2e1aa8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x317da3['get']('comments.editorConfig'),'licenseKey':_0x317da3['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x317da3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x317da3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x317da3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xbdb5de(_0x317da3['get']('locale'),_0x53d3a3['locale']),'CommentView':_0x317da3['get']('comments')['CommentView'],'CommentsListView':_0x24bd88,'CommentThreadInputView':_0x52661f,'SuggestionView':_0x141db7}),_0x490a93['suggestionView']['acceptButton']['on']('execute',()=>{_0x53d3a3['editing']['view']['focus']();}),_0x490a93['suggestionView']['discardButton']['on']('execute',()=>{_0x53d3a3['editing']['view']['focus']();}),_0x35afec=_0x20e7e1['createAnnotationView'](this['editor']['locale'],_0x490a93),_0x35afec['bind']('isDirty')['to'](_0x490a93,'isDirty'),_0x35afec['bind']('length')['to'](_0x490a93),_0x35afec['bind']('type')['to'](_0x490a93,'type',_0x5d6039=>'suggestion-'+_0x5d6039),_0x490a93['on']('escape',()=>{_0x225796['fire']('escape');}),this['_annotationViews']['set'](_0x4ab1d5['id'],_0x35afec));const _0x1250f5=_0x721c25['createCommentThreadController'](_0x4ab1d5['commentThread'],_0x490a93),_0x41aa84=new hn(_0x53d3a3,_0x4ab1d5,_0x490a93,_0x1250f5),_0x5c37f2=_0x4ab1d5['getAllAdjacentSuggestions']()['filter'](_0x17f17a=>_0x17f17a['isInContent']);_0x490a93['descriptionParts']=_0x53d3a3['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x5c37f2),this['_suggestionToController']['set'](_0x4ab1d5,_0x41aa84),this['_viewToController']['set'](_0x490a93,_0x41aa84);const _0x1a7f25=()=>{const _0x173a3f=[],_0x15edd6=_0x4ab1d5['getAllAdjacentSuggestions']()['filter'](_0x17a8c2=>_0x17a8c2['isInContent']);for(const _0x413553 of _0x15edd6)_0x173a3f['push'](..._0x413553['getMarkers']());return _0x58e159(_0x53d3a3['editing'],_0x173a3f);};_0x225796=_0x20e7e1['createAnnotation']({'view':_0x35afec,'target':_0x1a7f25,'type':()=>'suggestion-'+_0x41aa84['view']['type'],'isVisible':!!_0x1a7f25()}),_0x721c25['_bindAnnotationToEditors'](_0x490a93,_0x225796),_0x20e7e1['add'](_0x225796),_0x14c53f['registerAnnotation'](_0x225796);}['_destroyController'](_0x13dc39){const _0x4d574c=this['editor']['plugins']['get'](_0x5208d5),_0x3f9d15=this['editor']['plugins']['get'](_0x2511a0),_0x14d7cb=this['_suggestionToController']['get'](_0x13dc39),_0x39de37=_0x14d7cb['view'],_0x343746=_0x3f9d15['getByInnerView'](_0x39de37);_0x4d574c['_unbindEditors'](_0x39de37),_0x343746&&_0x3f9d15['remove'](_0x343746),this['_suggestionToController']['delete'](_0x13dc39),this['_viewToController']['delete'](_0x39de37),_0x14d7cb['destroy']();}['_updateController'](_0x2144cf){if(!_0x2144cf['isInContent']||!this['_suggestionToController']['has'](_0x2144cf))return;const _0x5555e4=this['editor']['plugins']['get'](Xe),_0x4e783f=this['_suggestionToController']['get'](_0x2144cf),_0x3c1806=_0x2144cf['getAllAdjacentSuggestions']();_0x4e783f['view']['descriptionParts']=_0x5555e4['descriptionFactory']['getDescriptions'](_0x3c1806);}['destroy'](){for(const _0x3bb69e of this['_suggestionToController']['keys']())this['_destroyController'](_0x3bb69e);for(const _0x3d2f5e of this['_annotationViews']['values']())_0x3d2f5e['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x4eb81d){return'model'in _0x4eb81d;}class Tn extends _0x542478{static get['requires'](){return[Xe,mn,_0x3b643c];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x554dbf){this['editor']['plugins']['get'](Xe)['adapter']=_0x554dbf;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x3361ea){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x3361ea);}['getSuggestions']({skipNotAttached:_0x29389f=!0x1,toJSON:_0x33a0ff=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x29389f,'toJSON':_0x33a0ff});}['getSuggestion'](_0x23a860){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x23a860);}}const _n=['Pagination'];class pn extends _0x542478{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2ad6a3=this['editor'];if(_0x2ad6a3['config']['define']('trackChangesData.editorCreator',_0xaa1ce1=>{const _0x53ab48=_0x2ad6a3['model']['document']['getRootNames']()['reduce']((_0x3838a0,_0x213561)=>(_0x3838a0[_0x213561]='',_0x3838a0),{});return _0x2ad6a3['constructor']['create'](_0x53ab48,_0xaa1ce1);}),'function'!=typeof _0x2ad6a3['config']['get']('trackChangesData')['editorCreator'])throw new _0x5d6a90('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4b4c6b){return bn(this['editor'],!0x0,_0x4b4c6b);}['getDataWithDiscardedSuggestions'](_0x944f96){return bn(this['editor'],!0x1,_0x944f96);}}class Ln extends _0x542478{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5de473){function _0x7f35d8(_0x1437bd){return _0x1437bd['map'](_0x5c518e=>String['fromCharCode'](_0x5c518e))['join']('');}super(_0x5de473),this['result']='end',_0x5de473[_0x7f35d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7f35d8([0x76,0x69,0x65,0x77])][_0x7f35d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7f35d8([0x61,0x75,0x74,0x6f]),_0x5de473[_0x7f35d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x7f35d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7f35d8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x7f35d8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x7f35d8([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 In(_0x5ad68f){return void 0x0!==_0x5ad68f['getRootsAttributes'];}async function bn(_0x418e3a,_0x1ff8ad,_0x467ec2){const _0x56edab=_0x11f558(_0x418e3a,_n);if(_0x56edab['plugins']['push'](Xe,Ln),In(_0x418e3a)){_0x56edab['roots']=Object['create'](null);for(const _0x485e3c of _0x418e3a['model']['document']['getRootNames']())_0x56edab['roots'][_0x485e3c]={'modelAttributes':_0x418e3a['getRootAttributes'](_0x485e3c)};}const _0x5552a4=document['createDocumentFragment'](),_0x547c45=_0x418e3a['config']['get']('trackChangesData')['editorCreator'],_0x56d272=await _0x547c45(_0x56edab,()=>function(_0x186bd3){const _0x38115d=document['createElement']('div');return _0x186bd3['appendChild'](_0x38115d),_0x38115d;}(_0x5552a4));!function(_0x297e19,_0x1c435a){const _0x3f683a=_0x297e19['model']['document']['getRootNames']()['reduce']((_0x11fbcd,_0x4de6d1)=>(_0x11fbcd[_0x4de6d1]=_0x297e19['data']['get']({'rootName':_0x4de6d1}),_0x11fbcd),{}),_0x3246b0=_0x297e19['plugins']['get']('Users')['users']['map'](_0x73f261=>({'id':_0x73f261['id'],'name':_0x73f261['name']})),_0x27644d=_0x297e19['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x372537=_0x297e19['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x507d40=_0x1c435a['plugins']['get']('Users'),_0x39da76=_0x1c435a['plugins']['get']('TrackChangesEditing'),_0x39735b=_0x1c435a['plugins']['get']('CommentsRepository');for(const _0x55659c of _0x39735b['getCommentThreads']())_0x55659c['remove']();for(const _0x585645 of _0x3246b0)_0x507d40['getUser'](_0x585645['id'])||_0x507d40['addUser'](_0x585645);_0x507d40['me']||_0x507d40['useAnonymousUser']();for(const _0x40feab of _0x372537)_0x39735b['addCommentThread'](_0x40feab);for(const _0x10e090 of _0x27644d)_0x39da76['addSuggestionData'](_0x10e090);_0x1c435a['data']['set'](_0x3f683a);}(_0x418e3a,_0x56d272),_0x56d272['execute'](_0x1ff8ad?'acceptAllSuggestions':'discardAllSuggestions');const _0x19d711=In(_0x56d272)?_0x56d272['getFullData'](_0x467ec2):_0x56d272['data']['get'](_0x467ec2);return await _0x56d272['destroy'](),_0x19d711;}class An extends _0x20a04b{['options'];constructor(_0x3e9894,_0x286b02){super(_0x3e9894),this['options']=_0x286b02,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'](_0x5a3382,_0x5710cd){if(!this['element'])return;const _0x301315=[];for(const [_0x4d9d69,_0x16d187]of _0x5a3382){const _0x2764e7=document['createElement']('div');_0x2764e7['setAttribute']('data-ck-root-name',_0x4d9d69),_0x2764e7['className']=_0x16d187['classes']+'\x20ck-track-changes-preview__root-container',_0x2764e7['innerHTML']=_0x16d187['content'],_0x301315['push'](_0x2764e7);}_0x5710cd(this['element'],_0x301315),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x3f491b{constructor(_0x2e8a6a){super(_0x2e8a6a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xf25772=this['editor'],_0x351907=_0xf25772['locale'],_0x1dcce6=_0xf25772['plugins']['get']('Dialog');let _0x27bcea;const _0x2aa6c8=function(_0x3ad451){const _0x3f70f6={};if('editables'in _0x3ad451['ui']['view']){for(const [_0x1559b3,_0x3b5929]of Object['entries'](_0x3ad451['ui']['view']['editables']))_0x3f70f6[_0x1559b3]=_0x3b5929['element'];}else _0x3f70f6[_0x3ad451['model']['document']['getRootNames']()[0x0]]=_0x3ad451['ui']['view']['editable']['element'];return _0x3f70f6;}(_0xf25772),_0x3057bd=function(_0x29fa07){let _0x396635=0x0;for(const _0x179e44 of Object['values'](_0x29fa07))_0x396635=Math['max'](_0x396635,_0x179e44['getBoundingClientRect']()['width']);let _0x125628=0x0;for(const _0x4bed77 of Object['values'](_0x29fa07))_0x125628+=_0x4bed77['getBoundingClientRect']()['height'];const _0x232196=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xedbf52=Math['min'](_0x125628,_0x232196);return{'width':_0x396635,'height':_0xedbf52};}(_0x2aa6c8);_0x1dcce6['show']({'id':'finalContentPreview','title':At(_0x351907,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x351907,{'dialogRects':_0x3057bd}),'onHide':()=>{_0x27bcea['detachFromDom']();},'onShow':()=>{_0xf25772['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x399776=>{const _0x553437=this['_standarizeRootsData'](_0x399776,_0xf25772,_0x2aa6c8);_0x1dcce6['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x553437,_0xf25772['config']['get']('trackChanges.preview.renderFunction'));}),_0x27bcea=new _0x4ec794(_0x351907,[_0x1dcce6['view']]),_0x27bcea['attachToDom'](),_0x27bcea['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xf25772['once']('destroy',()=>{_0x27bcea['detachFromDom']();});const _0x5a6313=_0x1dcce6['view']['headerView']['class'];_0x1dcce6['view']['headerView']['class']=_0x5a6313?_0x5a6313+'\x20ck-reset_all':'ck-reset_all',_0x1dcce6['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1dcce6['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5288f7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x190eec=_0x5288f7['previewMode'],_0x58d2b9={};if('$labels'===_0x190eec){for(const _0x4348fe of _0x5288f7['getMergeFieldsIds']())_0x58d2b9[_0x4348fe]=_0x5288f7['getLabel'](_0x4348fe)||_0x4348fe;}else{const _0x3d57da='$defaultValues'===_0x190eec?_0x5288f7['getDefaultValues']():_0x5288f7['getDataSetValues'](_0x190eec,!0x0);for(const _0x482ac0 of Object['entries'](_0x3d57da)){const [_0x3ac260,_0x4a704d]=_0x482ac0;_0x58d2b9[_0x3ac260]=null!==_0x4a704d?_0x4a704d:_0x5288f7['getLabel'](_0x3ac260)||_0x3ac260;}}return{'mergeFieldsData':_0x58d2b9};}['_standarizeRootsData'](_0xf1070e,_0x23e7cb,_0x4a9dbc){let _0xd1c6f0;if('string'==typeof _0xf1070e){const _0x1726d1=_0x23e7cb['model']['document']['getRootNames']()[0x0];_0xd1c6f0={[_0x1726d1]:_0xf1070e};}else _0xd1c6f0=_0xf1070e;const _0x18811c=this['_fixMediaEmbeds'](_0xd1c6f0,_0x23e7cb),_0xebd1f0=function(_0x35fd61,_0xb5213){for(const [_0x1d3f2c,_0x15868e]of _0x35fd61)_0x15868e['classes']=_0xb5213[_0x1d3f2c]['classList']['value']['replace']('ck-focused','');return _0x35fd61;}(this['_sortRoots'](_0x23e7cb)['reduce']((_0x38a881,_0x4e323f)=>(_0x38a881['push']([_0x4e323f,{'content':_0x18811c[_0x4e323f],'classes':''}]),_0x38a881),[]),_0x4a9dbc);return _0xebd1f0;}['_fixMediaEmbeds'](_0x5c3c2b,_0xc541eb){if(!_0xc541eb['plugins']['has']('MediaEmbedEditing'))return _0x5c3c2b;const _0x598c0d=_0xc541eb['plugins']['get']('MediaEmbedEditing');for(const [_0x11d664,_0x1dabae]of Object['entries'](_0x5c3c2b)){const _0x3a1cb9=document['createElement']('div');_0x3a1cb9['innerHTML']=_0x1dabae,(_0x3a1cb9['querySelectorAll']('figure.media')['forEach'](_0x5036f3=>{const _0x9245e9=_0x5036f3['querySelector']('oembed');if(_0x9245e9){const _0x5cc812=_0x9245e9['getAttribute']('url');if(_0x5cc812){const _0xee1c1f=_0x598c0d['registry']['getMediaViewElement'](new et(_0xc541eb['editing']['view']['document']),_0x5cc812,{'elementName':'','renderForEditingView':!0x0}),_0x30defb=document['createElement']('div');_0x30defb['classList']['add']('ck-media__wrapper'),_0xee1c1f['render'](_0x30defb,_0xc541eb['editing']['view']['domConverter']),_0x9245e9['replaceWith'](_0x30defb);}}}),_0x5c3c2b[_0x11d664]=_0x3a1cb9['innerHTML']);}return _0x5c3c2b;}['_sortRoots'](_0x500d58){if(!function(_0x2e22b7){return void 0x0!==_0x2e22b7['getRootsAttributes'];}(_0x500d58))return _0x500d58['model']['document']['getRootNames']();const _0x580acb=[],_0x3942e5=new Map();for(const _0x217607 of _0x500d58['model']['document']['getRootNames']()){const _0x3806fd=_0x500d58['editing']['view']['getDomRoot'](_0x217607)['getClientRects']()['item'](0x0);_0x580acb['push'](_0x217607),_0x3942e5['set'](_0x217607,_0x3806fd);}return _0x580acb['sort']((_0x58be6c,_0x3c8f30)=>{const _0x2f2609=_0x3942e5['get'](_0x58be6c),_0x19d839=_0x3942e5['get'](_0x3c8f30);return _0x2f2609['y']-_0x19d839['y']||_0x2f2609['x']-_0x19d839['x'];}),_0x580acb;}}class Cn extends _0x542478{static get['requires'](){return[pn,_0x4d9abb];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x166113){super(_0x166113),_0x166113['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x166113['config']['define']('trackChanges.preview.renderFunction',(_0x214a57,_0x575c83)=>{for(const _0x5518f8 of _0x575c83)_0x214a57['appendChild'](_0x5518f8);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x5cdbec,Plugin as _0x35090c,PendingActions as _0x24aa37}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x2eae3a,Annotations as _0xebf6bb,EditorAnnotations as _0x247ffd,Comments as _0x1bac76}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x25a256,ObservableMixin as _0x13164b,uid as _0x5b022c,priorities as _0x581032,insertToPriorityArray as _0x1e9237,logWarning as _0x30e13e,getEnvKeystrokeText as _0x3a30ad,FocusTracker as _0x1fa383,KeystrokeHandler as _0x50001b,Collection as _0x3a7659}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x48a691,IconCancel as _0x16672d,IconTrackChanges as _0x47323e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3a0b9c,View as _0x15b561,ViewCollection as _0x57967f,FocusCycler as _0x31168b,UIModel as _0x4c15d6,createDropdown as _0x1ca2a3,SplitButtonView as _0xb73ea4,addListToDropdown as _0x4b1022,MenuBarMenuView as _0x53b008,MenuBarMenuListView as _0x5b9248,ListSeparatorView as _0xb56894,MenuBarMenuListItemView as _0x5df59b,MenuBarMenuListItemButtonView as _0x3fd53b,BodyCollection as _0xa8b6e0,Dialog as _0x540a6c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x4dc3a3,SuggestionsConversion as _0x495abb,Users as _0x5afd1d,DocumentCompare as _0x188216,fixElementSuggestionRange as _0x710431,hashObject as _0x550e9b,surroundingMarkersDetector as _0x4daed7,FOCUS_ANNOTATION_KEYSTROKE as _0x43e6c0,AriaDescriptionView as _0x92fd7d,setupThreadKeyboardNavigation as _0x116b50,trimHtml as _0x282f4f,UserView as _0x256fbc,LateFocusButtonView as _0x1ac658,getDateTimeFormatter as _0x3466ab,getAllMarkersDomElementsSorted as _0x1193f2,sanitizeEditorConfig as _0x50ee42}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x17629a,ModelLiveRange as _0x5817c4,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class ht extends _0x5cdbec{['_enabledCommands'];constructor(_0x26be8f,_0x5687b6){super(_0x26be8f),this['_enabledCommands']=_0x5687b6,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 _0x1f8cbf of this['editor']['commands']['commands']())_0x1f8cbf['affectsData']&&!this['_enabledCommands']['has'](_0x1f8cbf)&&_0x1f8cbf['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1c7ff3 of this['editor']['commands']['commands']())_0x1c7ff3['affectsData']&&!this['_enabledCommands']['has'](_0x1c7ff3)&&_0x1c7ff3['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x5cdbec{['_suggestions'];constructor(_0x33bef6,_0x127d72){super(_0x33bef6),this['_suggestions']=_0x127d72,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x34e517){const _0x11441f=this['_suggestions']['get'](_0x34e517);if(!_0x11441f)throw new _0x25a256('track-changes-accept-suggestion-not-found',this);const _0x446d95=_0x11441f['getRanges']();this['editor']['model']['canEditAt'](_0x446d95)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x11441f);}}class ft extends _0x5cdbec{['_suggestions'];constructor(_0x98e03c,_0x2ee0e3){super(_0x98e03c),this['_suggestions']=_0x2ee0e3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c0db1){const _0x7700ad=this['_suggestions']['get'](_0x5c0db1);if(!_0x7700ad)throw new _0x25a256('track-changes-discard-suggestion-not-found',this);const _0x5f51c6=_0x7700ad['getRanges']();this['editor']['model']['canEditAt'](_0x5f51c6)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x7700ad);}}function gt(_0x171b34,_0x268c64){let _0x30fb6a='';return _0x30fb6a+=_0x171b34['split']('*')['map']((_0x2fd1d6,_0x193e32)=>_0x193e32%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x2fd1d6)+'</span>':mt(_0x2fd1d6))['join'](''),_0x268c64&&(_0x30fb6a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x268c64['value']+'\x22\x20title=\x22'+_0x268c64['title']+'\x22></span>'),_0x30fb6a;}function mt(_0x3d4e43){const _0x13a23c=document['createElement']('span');return _0x13a23c['innerText']=_0x3d4e43,_0x13a23c['innerHTML'];}function Et(_0x5e7be8){return _0x5e7be8['sort']((_0xece526,_0x4f3170)=>'attribute'===_0xece526['type']&&'attribute'!==_0x4f3170['type']?-0x1:'attribute'!==_0xece526['type']&&'attribute'===_0x4f3170['type']?0x1:'deletion'==_0xece526['type']&&'deletion'!=_0x4f3170['type']?-0x1:'deletion'!=_0xece526['type']&&'deletion'==_0x4f3170['type']?0x1:0x0);}function Tt(_0x85e1bf,_0x2570c1){let _0x1f117a,_0x22a631=0x0;const _0x190cb2=[],_0x41d461=_0x2570c1['schema'];for(;_0x22a631<_0x85e1bf['length'];){const _0x4786ce=_0x85e1bf[_0x22a631],_0x3df393=_0x85e1bf[_0x22a631+0x1];_0x1f117a||(_0x1f117a=_0x2570c1['createPositionBefore'](_0x4786ce)),_t(_0x2570c1,_0x4786ce,_0x3df393)||(_0x190cb2['push'](_0x2570c1['createRange'](_0x1f117a,_0x41d461['isObject'](_0x4786ce)?_0x2570c1['createPositionAfter'](_0x4786ce):_0x2570c1['createPositionAt'](_0x4786ce,'end'))),_0x1f117a=null),_0x22a631++;}return _0x190cb2;}function _t(_0x2ed98c,_0x4e9b03,_0x407480){if(!_0x407480)return!0x1;const _0x5e89b5=_0x2ed98c['createPositionAfter'](_0x4e9b03),_0x5d99d4=_0x2ed98c['createPositionBefore'](_0x407480);return _0x5e89b5['isTouching'](_0x5d99d4);}function pt(_0x33691c,_0x44335a,_0x5de651){for(;_0x5de651['length'];){const _0x23a1c2=_0x5de651['splice'](0x0,0x64);_0x33691c['change'](()=>{for(const _0x4a6302 of _0x23a1c2)_0x4a6302['isInContent']&&_0x44335a['execute'](_0x4a6302['id']);});}}class Lt extends _0x5cdbec{['_command'];['_suggestions'];constructor(_0x105725,_0x536590,_0x407a0f){super(_0x105725),this['_command']=_0x536590,this['_suggestions']=_0x407a0f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x480529=Array['from'](this['_suggestions']['values']())['some'](_0x58f4fb=>_0x58f4fb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x480529;}['execute'](){const _0x353fa9=Et(Array['from'](this['_suggestions']['values']()));for(const _0x1da80a of _0x353fa9){const _0x25b4fe=_0x1da80a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25b4fe))return;}pt(this['editor']['model'],this['_command'],_0x353fa9);}}class It extends _0x5cdbec{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x459492,_0x1d54a3,_0x3556ed){super(_0x459492),this['_command']=_0x1d54a3,this['_suggestions']=_0x3556ed,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3226ec=this['editor']['model']['document']['selection'],_0x53528f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1d3406,_0x5a0a9e){const _0x18e95f=Array['from'](_0x1d3406['getRanges']()),_0xa74d96=new Set();for(const _0xa9391a of _0x5a0a9e)if(_0xa9391a['isInContent']){for(const _0x463ef9 of _0x18e95f)for(const _0x5b2f45 of _0xa9391a['getRanges']())(_0x463ef9['isIntersecting'](_0x5b2f45)||_0x1d3406['isCollapsed']&&!_0xa9391a['isMultiRange']&&_0xa9391a['next']&&_0x5b2f45['end']['isTouching'](_0x463ef9['start']))&&_0xa74d96['add'](_0xa9391a);}return _0xa74d96;}(_0x3226ec,_0x53528f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xee7062=Et(Array['from'](this['_selectedSuggestions']));for(const _0x2a43bd of _0xee7062){const _0x4a60c8=_0x2a43bd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a60c8))return;}pt(this['editor']['model'],this['_command'],_0xee7062);}}class bt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x13164b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x584def,_0xc766a9){super(),this['id']=_0xc766a9['id'],this['type']=_0xc766a9['type'],this['subType']=_0xc766a9['subType']||null,this['author']=_0xc766a9['author'],this['creator']=_0xc766a9['creator']||_0xc766a9['author'],this['isExternal']=Boolean(_0xc766a9['attributes']&&_0xc766a9['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xc766a9['originalSuggestionId']||null,this['_model']=_0x584def,this['_onAccept']=_0xc766a9['onAccept'],this['_onDiscard']=_0xc766a9['onDiscard'],this['_onAttributesChange']=_0xc766a9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xc766a9['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 _0x2ca48f=this;for(;_0x2ca48f['previous'];)_0x2ca48f=_0x2ca48f['previous'];return _0x2ca48f;}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'](_0x3e0ba8){this['_markerNames']['add'](_0x3e0ba8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x501a16=>this['_model']['markers']['get'](_0x501a16))['filter'](_0x455d56=>_0x455d56);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x263f41=>{for(const _0x3da4f0 of this['getMarkers']())_0x263f41['removeMarker'](_0x3da4f0);}),this['_markerNames']['clear']();}['removeMarker'](_0x1b4d0f){this['_model']['change'](_0x249b5a=>{_0x249b5a['removeMarker'](_0x1b4d0f);}),this['_markerNames']['delete'](_0x1b4d0f);}['addRange'](_0x3c0a5f){const _0x587669='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x587669),this['_model']['change'](_0x5c77b4=>{_0x5c77b4['addMarker'](_0x587669,{'range':_0x3c0a5f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x353499){for(const _0x5c6934 of this['getRanges']())if(_0x5c6934['isIntersecting'](_0x353499))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xd9edf8=>_0xd9edf8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x15bf5e,_0x421d71)=>[..._0x15bf5e,..._0x421d71['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x34823e=this['getRanges']();if(0x1!=_0x34823e['length'])return null;const _0x93d082=_0x34823e[0x0],_0xf07227=_0x93d082['start']['nodeAfter'],_0x37b001=_0x93d082['end']['nodeBefore'];return _0xf07227 instanceof _0x17629a?_0xf07227!=_0x37b001?null:_0xf07227: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 _0x3263db=[];let _0x52330a=this['head'];for(;_0x52330a;)_0x3263db['push'](_0x52330a),_0x52330a=_0x52330a['next'];return _0x3263db;}['setAttribute'](_0x10e5e2,_0x36797a){const _0x1892a8=nt(this['attributes']);it(_0x1892a8,_0x10e5e2,_0x36797a),st(_0x1892a8,this['attributes'])||(this['attributes']=_0x1892a8,this['_onAttributesChange'](_0x1892a8));}['removeAttribute'](_0x52f3f5){const _0x31707d=nt(this['attributes']);rt(_0x31707d,_0x52f3f5),st(_0x31707d,this['attributes'])||(this['attributes']=_0x31707d,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 _0x5b022c()['substr'](0x1,0x5);}}function At(_0x41ed91,_0x3459d8,_0x125306){const _0x45aed6=_0x41ed91['t'],t=_0x41ed91['t'];switch(_0x3459d8){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',_0x125306);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x125306);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x125306);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x125306);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x125306);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',_0x125306);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x125306);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',_0x125306);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x125306);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x125306);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x125306);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x125306);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x125306);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x125306);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x125306);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x125306);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x125306);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x125306);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x125306);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x125306);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x125306);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x125306);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x125306);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x125306);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x125306);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'},_0x125306);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x125306);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x125306);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x125306);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x125306);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x125306);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x125306);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x125306);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'},_0x125306);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x125306);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x125306);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x125306);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x125306);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x125306);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x125306);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'},_0x125306);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});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'},_0x125306);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x125306);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'},_0x125306);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x125306);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'},_0x125306);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x125306);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x125306);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x125306);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x125306);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x125306);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'},_0x125306);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x125306);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 _0x45aed6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x125306);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x45aed6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x125306);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x125306);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'},_0x125306);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'},_0x125306);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'},_0x125306);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3459d8;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5eacbc,_0x374052){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5eacbc,this['_locale']=_0x374052;}['getDescriptions'](_0x483f36){const _0x51e339=[],_0x5e4472=new Set(),_0x52a8a6=new Set();for(let _0x172449=0x0;_0x172449<_0x483f36['length'];_0x172449++){const _0x1e31c3=_0x483f36[_0x172449];if(!_0x1e31c3['isInContent'])continue;const _0x37595f=this['_handleCustomCallbackDescription'](_0x1e31c3);if(_0x37595f){if(null!=_0x1e31c3['subType']){if(_0x5e4472['has'](_0x1e31c3['subType']))continue;_0x5e4472['add'](_0x1e31c3['subType']);}_0x51e339['push'](_0x37595f);}else{if('attribute'==_0x1e31c3['type']){const _0x20fdaf=_0x1e31c3['data']['key'];if(_0x52a8a6['has'](_0x20fdaf))continue;_0x52a8a6['add'](_0x1e31c3['data']['key']),_0x20fdaf==Ke?this['_handleRenameSuggestionDescription'](_0x51e339,_0x1e31c3):this['_handleAttributeSuggestionDescription'](_0x51e339,_0x1e31c3);continue;}'insertion'!=_0x1e31c3['type']&&'deletion'!=_0x1e31c3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x51e339,_0x1e31c3,_0x483f36[_0x172449+0x1]);}}return this['_resolveDescriptionItems'](_0x51e339);}['registerDescriptionCallback'](_0x40d361){this['_customCallbacks']['push'](_0x40d361);}['registerElementLabel'](_0x2c9a1a,_0x19c268,_0x77423a=_0x581032['normal']){'function'==typeof _0x2c9a1a?_0x1e9237(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2c9a1a,'label':_0x19c268,'priority':_0x77423a}):this['_itemLabels']['set'](_0x2c9a1a,_0x19c268);}['registerAttributeLabel'](_0x54a1d8,_0x5a24b1){this['_attributeLabels']['set'](_0x54a1d8,_0x5a24b1);}['getItemLabel'](_0x2675a4,_0x4ea23a=0x1){let _0x36c0e9;for(const _0x2abedc of this['_itemLabelsCallbacks'])if(_0x2abedc['matchingCallback'](_0x2675a4)){_0x36c0e9=_0x2abedc['label'];break;}return _0x36c0e9||(_0x36c0e9=this['_itemLabels']['get'](_0x2675a4['name'])),_0x36c0e9?_0x36c0e9(_0x4ea23a):0x1!==_0x4ea23a?_0x4ea23a+'\x20'+_0x2675a4['name']+'s':''+_0x2675a4['name'];}['_addDescriptionItems'](_0x33c5b5,_0x352886){const _0x2d41ea=_0x352886['getFirstRange']()['getWalker'](),_0x63ad85='insertion'==_0x352886['type']?'add':'remove';for(const _0x403bf9 of _0x2d41ea){const _0x220338=_0x403bf9['item'],_0x98a904=_0x33c5b5[_0x33c5b5['length']-0x1];if(_0x220338['is']('$textProxy'))_0x98a904&&_0x98a904['type']['indexOf']('Container')>-0x1&&_0x33c5b5['pop'](),_0x98a904&&'text'==_0x98a904['type']?_0x98a904[_0x63ad85]+=_0x220338['data']:_0x33c5b5['push']({'type':'text','add':'add'==_0x63ad85?_0x220338['data']:'','remove':'remove'==_0x63ad85?_0x220338['data']:''});else{if(this['_schema']['isObject'](_0x220338)){const _0x205db7=_0x220338;if(_0x98a904&&_0x98a904['type']['indexOf']('Container')>-0x1&&_0x33c5b5['pop'](),'elementEnd'==_0x403bf9['type'])continue;_0x98a904&&_0x98a904['type']==_0x63ad85+'Object'&&_0x98a904['element']['name']==_0x205db7['name']?_0x98a904['quantity']++:_0x33c5b5['push']({'type':_0x63ad85+'Object','element':_0x205db7,'quantity':0x1}),_0x2d41ea['skip'](_0x4561ef=>!('elementEnd'==_0x4561ef['type']&&_0x4561ef['item']==_0x220338));}else{if(this['_schema']['checkChild'](_0x220338,'$text')||_0x220338['is']('element','softBreak')){const _0x200bac=_0x220338;if('add'==_0x63ad85&&'elementStart'==_0x403bf9['type']||'remove'==_0x63ad85&&'elementEnd'==_0x403bf9['type'])continue;if(_0x98a904&&-0x1==_0x98a904['type']['indexOf']('Container')){'text'==_0x98a904['type']&&(_0x98a904[_0x63ad85]+='\x0a');continue;}let _0x2026e4;if(_0x2026e4='add'==_0x63ad85?_0x200bac['nextSibling']&&!this['_schema']['isObject'](_0x200bac['nextSibling'])?_0x200bac['nextSibling']:null:_0x200bac['previousSibling']&&!this['_schema']['isObject'](_0x200bac['previousSibling'])?_0x200bac['previousSibling']:null,_0x200bac['isEmpty']||_0x2026e4&&_0x2026e4['isEmpty']){const _0x4fc153=_0x2026e4&&_0x2026e4['isEmpty']?_0x2026e4:_0x200bac;_0x98a904&&_0x98a904['type']==_0x63ad85+'EmptyContainer'&&_0x98a904['element']['name']==_0x4fc153['name']?_0x98a904['quantity']++:_0x33c5b5['push']({'type':_0x63ad85+'EmptyContainer','element':_0x4fc153,'quantity':0x1});}else _0x33c5b5['push']({'type':_0x63ad85+'Container','element':_0x200bac});}}}}}['_resolveDescriptionItems'](_0x2caa1c){const _0x3560f4=this['_locale'],_0x4c4fe4=[],_0x2c03b4=[],_0x55a62e=[];for(const _0x45ee0e of _0x2caa1c)switch(_0x45ee0e['type']){case'text':if(_0x45ee0e['add']=_0x45ee0e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x45ee0e['remove']=_0x45ee0e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x45ee0e['add']&&''!=_0x45ee0e['remove']){_0x4c4fe4['push']({'type':'replace','content':At(_0x3560f4,'REPLACE_TEXT',['\x22'+_0x45ee0e['remove']+'\x22','\x22'+_0x45ee0e['add']+'\x22'])});continue;}if(null!=_0x45ee0e['add']['match'](/^ +$/)){_0x4c4fe4['push']({'type':'insertion','content':At(_0x3560f4,'*Insert:*\x20%0',At(_0x3560f4,'ELEMENT_SPACE',_0x45ee0e['add']['length']))});continue;}if(null!=_0x45ee0e['remove']['match'](/^ +$/)){_0x4c4fe4['push']({'type':'deletion','content':At(_0x3560f4,'*Remove:*\x20%0',At(_0x3560f4,'ELEMENT_SPACE',_0x45ee0e['remove']['length']))});continue;}if(''!=_0x45ee0e['add']){_0x4c4fe4['push']({'type':'insertion','content':At(_0x3560f4,'*Insert:*\x20%0','\x22'+_0x45ee0e['add']+'\x22')});continue;}_0x4c4fe4['push']({'type':'deletion','content':At(_0x3560f4,'*Remove:*\x20%0','\x22'+_0x45ee0e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4c4fe4['push']({'type':'insertion','content':At(_0x3560f4,'*Insert:*\x20%0',this['getItemLabel'](_0x45ee0e['element'],_0x45ee0e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4c4fe4['push']({'type':'deletion','content':At(_0x3560f4,'*Remove:*\x20%0',this['getItemLabel'](_0x45ee0e['element'],_0x45ee0e['quantity']))});continue;case'addContainer':_0x4c4fe4['push']({'type':'insertion','content':At(_0x3560f4,'*Split:*\x20%0',this['getItemLabel'](_0x45ee0e['element'],_0x45ee0e['quantity']))});continue;case'removeContainer':_0x4c4fe4['push']({'type':'deletion','content':At(_0x3560f4,'*Merge:*\x20%0',this['getItemLabel'](_0x45ee0e['element'],_0x45ee0e['quantity']))});continue;case'addFormat':_0x2c03b4['push'](_0x45ee0e['key']);continue;case'removeFormat':_0x55a62e['push'](_0x45ee0e['key']);continue;default:_0x4c4fe4['push'](_0x45ee0e);}if(_0x2c03b4['length']){const _0x11a8b6=_0x2c03b4['map'](_0x47c4c9=>this['_attributeLabels']['has'](_0x47c4c9)?this['_attributeLabels']['get'](_0x47c4c9):_0x47c4c9)['join'](',\x20');_0x4c4fe4['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x11a8b6)});}if(_0x55a62e['length']){const _0x156a61=_0x55a62e['map'](_0x45d563=>this['_attributeLabels']['has'](_0x45d563)?this['_attributeLabels']['get'](_0x45d563):_0x45d563)['join'](',\x20');_0x4c4fe4['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x156a61)});}return _0x4c4fe4;}['_handleCustomCallbackDescription'](_0x5dc6b1){for(const _0x2ec3f2 of this['_customCallbacks']){const _0x1dfb40=_0x2ec3f2(_0x5dc6b1);if(_0x1dfb40&&'type'in _0x1dfb40)return _0x1dfb40;}}['_handleAttributeSuggestionDescription'](_0x5ad91d,_0x466f97){const _0x22afa3=_0x466f97['data'],_0x4d1f0d=void 0x0===_0x22afa3['newValue']?'removeFormat':'addFormat';_0x5ad91d['push']({'type':_0x4d1f0d,'key':_0x22afa3['key']});}['_handleRenameSuggestionDescription'](_0x310d1b,_0x40a501){_0x310d1b['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x40a501['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5cc48f,_0x5e2fe6,_0x571414){if(this['_addDescriptionItems'](_0x5cc48f,_0x5e2fe6),_0x571414&&_0x571414['getFirstRange']()&&!_0x5e2fe6['getFirstRange']()['end']['isEqual'](_0x571414['getFirstRange']()['start'])){const _0x2ba28b=_0x5cc48f[_0x5cc48f['length']-0x1],_0x2fe340='insertion'==_0x5e2fe6['type']?'add':'remove';_0x2ba28b&&'text'==_0x2ba28b['type']&&(_0x2ba28b[_0x2fe340]+='\x0a');}}}class Ct extends _0x35090c{['afterInit'](){const _0xccf217=this['editor'],_0x309b2f=_0xccf217['plugins']['get']('TrackChangesEditing');_0xccf217['commands']['get']('showAIAssistant')&&_0x309b2f['enableCommand']('showAIAssistant');}}class yt extends _0x35090c{['afterInit'](){const _0xae984c=this['editor'],_0x5a1b79=_0xae984c['plugins']['get']('TrackChangesEditing');_0xae984c['commands']['get']('toggleAi')&&_0x5a1b79['enableCommand']('toggleAi');}}class Nt extends _0x35090c{['afterInit'](){const _0x5ae8ec=this['editor'],_0x536637=_0x5ae8ec['plugins']['get']('TrackChangesEditing');_0x5ae8ec['commands']['get']('aiQuickAction')&&_0x536637['enableCommand']('aiQuickAction');}}class Rt extends _0x35090c{['afterInit'](){const _0x2b01b3=this['editor'],_0x118fbe=_0x2b01b3['locale'];if(!_0x2b01b3['plugins']['has']('AlignmentEditing'))return;const _0x3c9920=_0x2b01b3['plugins']['get']('TrackChangesEditing');_0x3c9920['enableDefaultAttributesIntegration']('alignment'),_0x3c9920['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x118fbe,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26840a=this['editor'],_0x5ea6b1=_0x26840a['locale'];_0x26840a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f2332=>{if('formatBlock'!=_0x5f2332['type'])return;const {data:_0x1ef916}=_0x5f2332;if(_0x1ef916&&'alignment'==_0x1ef916['commandName']){const _0x6effc9=_0x1ef916['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x5ea6b1,'*Format:*\x20%0',function(_0x36066d){switch(_0x36066d){case'left':return At(_0x5ea6b1,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x5ea6b1,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x5ea6b1,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x5ea6b1,'FORMAT_JUSTIFY_TEXT');}}(_0x6effc9))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x35090c{['afterInit'](){const _0x8b8b92=this['editor'],_0x23dff4=_0x8b8b92['plugins']['get']('TrackChangesEditing'),_0x2fd415=_0x8b8b92['locale'];for(const _0x48c5ed of St){if(!_0x8b8b92['plugins']['has'](_0x48c5ed))continue;const _0x4c51e7=_0x48c5ed['slice'](0x0,-0x7)['toLowerCase'](),_0x3f1e83='FORMAT_'+_0x4c51e7['toUpperCase']();_0x23dff4['enableDefaultAttributesIntegration'](_0x4c51e7),_0x23dff4['descriptionFactory']['registerAttributeLabel'](_0x4c51e7,At(_0x2fd415,_0x3f1e83));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2364dd=this['editor'],_0x404612=_0x2364dd['locale'],_0x4163f2=_0x2364dd['plugins']['get']('TrackChangesEditing');function _0x1f7767(_0xf1d898,_0x366db0){_0x4163f2['descriptionFactory']['registerDescriptionCallback'](_0x25b01b=>{if('formatInline'!=_0x25b01b['type'])return;const {data:_0x4d4518}=_0x25b01b;return _0x4d4518&&_0x4d4518['commandName']===_0xf1d898?_0x4d4518['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x404612,'*Format:*\x20%0',_0x366db0)}:{'type':'format','content':At(_0x404612,'*Remove\x20format:*\x20%0',_0x366db0)}:void 0x0;});}_0x1f7767('bold',At(_0x404612,'FORMAT_BOLD')),_0x1f7767('italic',At(_0x404612,'FORMAT_ITALIC')),_0x1f7767('underline',At(_0x404612,'FORMAT_UNDERLINE')),_0x1f7767('code',At(_0x404612,'FORMAT_CODE')),_0x1f7767('strikethrough',At(_0x404612,'FORMAT_STRIKETHROUGH')),_0x1f7767('subscript',At(_0x404612,'FORMAT_SUBSCRIPT')),_0x1f7767('superscript',At(_0x404612,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x35090c{['afterInit'](){const _0x362931=this['editor'],_0x2d9a46=_0x362931['locale'];if(!_0x362931['plugins']['has']('BlockQuoteEditing'))return;const _0x925620=_0x362931['plugins']['get']('TrackChangesEditing'),_0x162fcf=this['editor']['commands']['get']('blockQuote');_0x925620['enableCommand']('blockQuote',(_0x8ca8de,_0x5c70fc={})=>{const _0x527036=this['editor']['model']['document']['selection'],_0x280ca5=_0x5c70fc&&void 0x0!==_0x5c70fc['forceValue']?_0x5c70fc['forceValue']:!_0x162fcf['value'];let _0x49fb4f=[];if(_0x280ca5){const _0x1f6e51=Array['from'](_0x527036['getSelectedBlocks']())['filter'](_0x1c2a03=>wt(_0x1c2a03)||function(_0x5d5396,_0x3a6b11){const _0x1c4588=_0x3a6b11['checkChild'](_0x5d5396['parent'],'blockQuote'),_0x279156=_0x3a6b11['checkChild'](['$root','blockQuote'],_0x5d5396);return _0x1c4588&&_0x279156;}(_0x1c2a03,this['editor']['model']['schema']));_0x49fb4f=Tt(_0x1f6e51,_0x362931['model']);}else{const _0x1c9a9e=Array['from'](_0x527036['getSelectedBlocks']())['filter'](_0x413a18=>wt(_0x413a18));_0x49fb4f=Tt(_0x1c9a9e,_0x362931['model']);}_0x362931['model']['change'](()=>{for(const _0x5a4a98 of _0x49fb4f)_0x925620['markBlockFormat'](_0x5a4a98,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x280ca5}]});});}),_0x925620['descriptionFactory']['registerDescriptionCallback'](_0x5d0e61=>{const {data:_0x40f734}=_0x5d0e61;if(_0x40f734&&'blockQuote'==_0x40f734['commandName']){const _0x2ee9f1=At(_0x2d9a46,'ELEMENT_BLOCK_QUOTE');return _0x40f734['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x2d9a46,'*Set\x20format:*\x20%0',_0x2ee9f1)}:{'type':'format','content':At(_0x2d9a46,'*Remove\x20format:*\x20%0',_0x2ee9f1)};}});}}function wt(_0xdeefc0){return'blockQuote'==_0xdeefc0['parent']['name'];}class Bt extends _0x35090c{['afterInit'](){const _0x469c97=this['editor'],_0x2c1761=_0x469c97['locale'],_0x4799f3=_0x469c97['plugins']['get']('TrackChangesEditing');_0x469c97['plugins']['has']('BookmarkEditing')&&(_0x4799f3['enableCommand']('insertBookmark'),_0x4799f3['enableDefaultAttributesIntegration']('updateBookmark'),_0x4799f3['descriptionFactory']['registerDescriptionCallback'](_0x44dc3b=>{if('insertion'!=_0x44dc3b['type']&&'deletion'!=_0x44dc3b['type']&&'attribute'!=_0x44dc3b['type'])return;const _0x503a32=_0x44dc3b['getContainedElement']();if(null==_0x503a32)return;if(!_0x503a32['is']('element','bookmark'))return;const _0xc5d1fa=_0x503a32['getAttribute']('bookmarkId');if('insertion'==_0x44dc3b['type'])return{'type':'insertion','content':At(_0x2c1761,'*Insert:*\x20%0','\x22'+_0xc5d1fa+'\x22\x20'+At(_0x2c1761,'ELEMENT_BOOKMARK'))};if('deletion'==_0x44dc3b['type'])return{'type':'deletion','content':At(_0x2c1761,'*Remove:*\x20%0','\x22'+_0xc5d1fa+'\x22\x20'+At(_0x2c1761,'ELEMENT_BOOKMARK'))};const {data:_0x3a5c2f}=_0x44dc3b;if(!_0x3a5c2f||'bookmarkId'!=_0x3a5c2f['key'])return;return{'type':'format','content':At(_0x2c1761,'*Set\x20bookmark:*\x20%0','\x22'+_0x3a5c2f['newValue']+'\x22')};}));}}class Ft extends _0x35090c{['afterInit'](){const _0x6a0761=this['editor'];_0x6a0761['plugins']['has']('CaseChange')&&(_0x6a0761['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x6a0761['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x6a0761['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x35090c{['afterInit'](){const _0xf34fe3=this['editor'];_0xf34fe3['commands']['get']('ckbox')&&_0xf34fe3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x35090c{['afterInit'](){const _0x5d3104=this['editor'];if(!_0x5d3104['plugins']['has']('CodeBlock'))return;const _0x2b0831=_0x5d3104['plugins']['get']('TrackChangesEditing'),_0x5b6674=_0x5d3104['locale'],_0x16d065=_0x5d3104['config']['get']('codeBlock')['languages'],_0x33400e=_0x5d3104['commands']['get']('codeBlock');_0x2b0831['enableCommand']('indentCodeBlock'),_0x2b0831['enableCommand']('outdentCodeBlock'),_0x2b0831['enableCommand']('codeBlock',(_0x1a1735,_0xa6d88c={})=>{const _0x2260d8=_0x5d3104['model'],_0x53f877=_0x5d3104['model']['document']['selection'],_0x399b19=_0xa6d88c&&void 0x0!==_0xa6d88c['forceValue']?_0xa6d88c['forceValue']:!_0x33400e['value'];let _0x49f3eb;_0xa6d88c['language']||(_0xa6d88c['language']=_0x16d065[0x0]['language']),_0x49f3eb=_0x399b19?Array['from'](_0x53f877['getSelectedBlocks']())['filter'](_0x5848b1=>xt(_0x5848b1)||function(_0x1d24ea,_0x3e4598){if(_0x1d24ea['is']('rootElement')||_0x3e4598['isLimit'](_0x1d24ea))return!0x1;return _0x3e4598['checkChild'](_0x1d24ea['parent'],'codeBlock');}(_0x5848b1,_0x2260d8['schema'])):Array['from'](_0x53f877['getSelectedBlocks']())['filter'](_0x51a0e9=>xt(_0x51a0e9));const _0x8eee39=Tt(_0x49f3eb,_0x2260d8);_0x2260d8['change'](()=>{for(const _0x1b670 of _0x8eee39)_0x2b0831['markBlockFormat'](_0x1b670,{'commandName':'codeBlock','commandParams':[{..._0xa6d88c,'forceValue':_0x399b19}],'formatGroupId':'blockName'});});}),(_0x2b0831['descriptionFactory']['registerElementLabel']('codeBlock',_0x4080b7=>At(_0x5b6674,'ELEMENT_CODE_BLOCK',_0x4080b7)),_0x2b0831['descriptionFactory']['registerDescriptionCallback'](_0x1e2dab=>{if('formatBlock'!=_0x1e2dab['type'])return;const _0x565ce3=_0x5b6674['t'],{data:_0x519127}=_0x1e2dab;if(!_0x519127||'codeBlock'!=_0x519127['commandName'])return;const _0x2a0359=_0x519127['commandParams'][0x0]['language'],_0xdd149e=_0x565ce3(_0x16d065['find'](_0x3f7f1e=>_0x3f7f1e['language']===_0x2a0359)['label'])['toLowerCase']();return _0x519127['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5b6674,'*Set\x20format:*\x20%0',At(_0x5b6674,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xdd149e+')')}:{'type':'format','content':At(_0x5b6674,'*Remove\x20format:*\x20%0',At(_0x5b6674,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x174e76){return'codeBlock'==_0x174e76['name'];}class Pt extends _0x35090c{['afterInit'](){const _0x5417c1=this['editor'];if(!_0x5417c1['plugins']['has']('CommentsEditing'))return;_0x5417c1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x35090c{static get['requires'](){return[at];}['init'](){const _0x428d9a=this['editor'],_0xec2dc8=_0x428d9a['plugins']['get']('TrackChangesEditing');_0xec2dc8['enableCommand']('delete');const _0x32db49=_0x428d9a['commands']['get']('deleteForward');_0xec2dc8['enableCommand']('deleteForward',(_0x441c2a,_0x1360df={})=>{const _0x4c265d=_0x428d9a['model']['createSelection'](_0x428d9a['model']['document']['selection']);_0x4c265d['isCollapsed']&&_0x428d9a['model']['modifySelection'](_0x4c265d,{'direction':'forward','unit':_0x1360df['unit']});const _0x353626=_0x4c265d['getFirstRange'](),_0x3cb899=_0x5817c4['fromRange'](_0x353626);let _0x59e776;_0x441c2a(_0x1360df),_0x59e776='$graveyard'==_0x3cb899['root']['rootName']?_0x428d9a['model']['createRange'](_0x353626['start']):_0x428d9a['model']['createRange'](_0x3cb899['start'],_0x3cb899['end']),_0x3cb899['detach'](),_0x428d9a['model']['enqueueChange'](_0x32db49['buffer']['batch'],_0x557f7a=>{_0x32db49['buffer']['lock'](),_0x557f7a['setSelection'](_0x557f7a['createRange'](_0x59e776['end'])),_0x32db49['buffer']['unlock']();});});}}class Gt extends _0x35090c{['afterInit'](){const _0x43a375=this['editor'];if(!_0x43a375['plugins']['has']('ListEditing'))return;const _0x4efe21=_0x43a375['locale'],_0x1da0fc=_0x43a375['plugins']['get']('TrackChangesEditing'),_0x3032f1=_0x43a375['plugins']['has']('TodoListEditing'),_0x1b0f67=!!_0x43a375['config']['get']('list.multiBlock');function _0x1dcc63(_0x2dc6bd){return{'type':'format','content':''+At(_0x4efe21,'*Set\x20format:*\x20%0',_0x2dc6bd)};}function _0x4442b7(_0x53c9b5){return{'type':'format','content':''+At(_0x4efe21,'*Remove\x20format:*\x20%0',_0x53c9b5)};}_0x1da0fc['enableDefaultAttributesIntegration']('numberedList'),_0x1da0fc['enableDefaultAttributesIntegration']('bulletedList'),_0x1da0fc['enableDefaultAttributesIntegration']('customNumberedList'),_0x1da0fc['enableDefaultAttributesIntegration']('customBulletedList'),_0x1da0fc['enableDefaultAttributesIntegration']('indentList'),_0x1da0fc['enableDefaultAttributesIntegration']('outdentList'),_0x1da0fc['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1da0fc['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1b0f67&&(_0x1da0fc['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1da0fc['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3032f1&&(_0x1da0fc['enableDefaultAttributesIntegration']('todoList'),_0x1da0fc['enableDefaultAttributesIntegration']('checkTodoList'),_0x1da0fc['descriptionFactory']['registerDescriptionCallback'](_0x58a569=>{const {data:_0x4a33ba}=_0x58a569;if(_0x4a33ba&&'todoListChecked'==_0x4a33ba['key'])return{'type':'format','content':_0x4a33ba['newValue']?At(_0x4efe21,'*Check\x20item*'):At(_0x4efe21,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x15c057=>{if(_0x15c057['batch']['isUndo'])return!0x1;let _0x377405=!0x1;const _0x3aff6b=_0x1da0fc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xdbbac9=>'todoListChecked'===_0x1da0fc['_getAttributeKey'](_0xdbbac9));for(const _0xf1af37 of _0x3aff6b){'todo'!=_0xf1af37['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1da0fc['_findSuggestions'](_0xf1af37['getFirstRange'](),'attribute')['find'](_0xedf9d5=>'listType'===_0x1da0fc['_getAttributeKey'](_0xedf9d5['suggestion']))||(_0x15c057['removeMarker'](_0xf1af37['getFirstMarker']()),_0x377405=!0x0));}return _0x377405;})),_0x1da0fc['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x4efe21,'FORMAT_INDENT'));const _0x221fe8={'type':'format','content':''};_0x1da0fc['descriptionFactory']['registerDescriptionCallback'](_0x11be19=>{const {data:_0x1f81e6}=_0x11be19;if(!_0x1f81e6||'listType'!=_0x1f81e6['key'])return;let _0x493e17=_0x11be19['head'];for(;_0x493e17;){if(_0x493e17['data']&&(('listStyle'==_0x493e17['data']['key']||'listMarkerStyle'==_0x493e17['data']['key'])&&(_0x493e17['data']['newValue']&&'default'!=_0x493e17['data']['newValue']||'default'!=_0x493e17['data']['oldValue']&&!_0x1f81e6['newValue'])||!_0x1b0f67&&_0x493e17['data']['key']==Ke))return _0x221fe8;_0x493e17=_0x493e17['next'];}if(null==_0x1f81e6['newValue'])switch(_0x1f81e6['oldValue']){case'bulleted':return _0x4442b7(At(_0x4efe21,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4442b7(At(_0x4efe21,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4442b7(At(_0x4efe21,'ELEMENT_TODO_LIST'));}switch(_0x1f81e6['newValue']){case'bulleted':return _0x1dcc63(At(_0x4efe21,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1dcc63(At(_0x4efe21,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1dcc63(At(_0x4efe21,'ELEMENT_TODO_LIST'));}}),_0x1da0fc['descriptionFactory']['registerDescriptionCallback'](_0x2dfb63=>{const {data:_0x1dba5a}=_0x2dfb63;if(_0x1dba5a&&'listIndent'==_0x1dba5a['key'])return null==_0x1dba5a['newValue']||null==_0x1dba5a['oldValue']&&0x0==_0x1dba5a['newValue']?_0x221fe8:void 0x0;}),_0x1da0fc['descriptionFactory']['registerDescriptionCallback'](_0xd16e38=>{if('attribute'!=_0xd16e38['type'])return;const {data:_0x65e7fa}=_0xd16e38;if(!_0x65e7fa||'listItemId'!=_0x65e7fa['key'])return;const _0x56e6ce=Ht(_0xd16e38);return'newValue'==_0x56e6ce?{'type':'format','content':At(_0x4efe21,'*Merge:*\x20list\x20item')}:'oldValue'==_0x56e6ce?{'type':'format','content':At(_0x4efe21,'*Split:*\x20list\x20item')}:_0x221fe8;}),_0x43a375['model']['document']['registerPostFixer'](_0x26d731=>this['listItemIdFixer'](_0x26d731)),_0x43a375['model']['document']['registerPostFixer'](_0x4d5b40=>this['noTrackChangesFixer'](_0x4d5b40)),_0x43a375['model']['document']['on']('change:data',(_0x22ee0f,_0xa28523)=>{if(_0xa28523['isUndo']||!_0xa28523['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2060c7){if(_0x2060c7['batch']['isUndo']||!_0x2060c7['batch']['isLocal'])return!0x1;let _0x17a9ad=!0x1;const _0xc1008e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8ee1f9=>_0x8ee1f9['data']&&'listItemId'==_0x8ee1f9['data']['key'])['filter'](_0x22610e=>_0x22610e['data']['newValue']&&_0x22610e['data']['oldValue']);for(const _0x2b0b11 of _0xc1008e)Ht(_0x2b0b11)||(_0x2060c7['removeMarker'](_0x2b0b11['getFirstMarker']()),_0x17a9ad=!0x0);return _0x17a9ad;}['noTrackChangesFixer'](_0x3381a3){if(_0x3381a3['batch']['isUndo']||!_0x3381a3['batch']['isLocal'])return!0x1;const _0x2007c2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2007c2['trackChangesCommand']['value'])return!0x1;let _0x6c7fe6=!0x1;const _0x972e74=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1a6609=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2f3f64=>'attribute'==_0x2f3f64['type'])['filter'](_0x20318b=>_0x972e74['includes'](_0x20318b['attributeKey']));if(0x0==_0x1a6609['length'])return _0x6c7fe6;for(const _0x47d1b5 of _0x1a6609){const _0x2727a6=_0x2007c2['_findSuggestions'](_0x47d1b5['range'],'attribute')['filter'](_0x74c899=>!_0x74c899['meta']['isNextTo'])['map'](_0x2a6dc9=>_0x2a6dc9['suggestion'])['filter'](_0x274f53=>{const _0x1bef80=_0x2007c2['_getAttributeKey'](_0x274f53);return _0x972e74['includes'](_0x1bef80);});if(_0x2727a6['length']){for(const _0x3988f6 of _0x2727a6)_0x3381a3['removeMarker'](_0x3988f6['getFirstMarker']());_0x6c7fe6=!0x0;}}return _0x6c7fe6;}['assureChains'](){const _0x6af9c7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x347ad7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5c32fd;const _0x28b04b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b8d85=>{if(_0x1b8d85['data']['oldRange']||!_0x1b8d85['data']['newRange'])return null;if(!_0x1b8d85['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x51beea}=_0x4dc3a3(_0x1b8d85['name']);if(!_0x6af9c7['hasSuggestion'](_0x51beea))return null;const _0x451e9d=_0x6af9c7['getSuggestion'](_0x51beea);return _0x347ad7['includes'](_0x451e9d['data']['key']);})['map'](_0x102c01=>{const {id:_0x153d8c}=_0x4dc3a3(_0x102c01['name']),_0x4c40d7=_0x6af9c7['getSuggestion'](_0x153d8c);return _0x5c32fd=_0x4c40d7['attributes']['groupId'],_0x4c40d7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x28b04b['size'])return;const _0x6da18=_0x6af9c7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x434f02=>'attribute'==_0x434f02['type']&&_0x434f02['data']&&_0x347ad7['includes'](_0x434f02['data']['key'])&&_0x434f02['attributes']['groupId']!=_0x5c32fd)['map'](_0x880796=>({'listItem':_0x880796['getFirstRange']()['start']['nodeAfter'],'groupId':_0x880796['attributes']['groupId']})),_0x1ae6dd=new Set();for(const {groupId:_0x2930f3,listItem:_0x4d529c}of _0x6da18)_0x28b04b['has'](_0x4d529c)&&_0x1ae6dd['add'](_0x2930f3);for(const _0x5d0dd6 of _0x6af9c7['getSuggestions']())_0x1ae6dd['has'](_0x5d0dd6['attributes']['groupId'])&&_0x5d0dd6['setAttribute']('groupId',_0x5c32fd);}['_supportLegacySuggestions'](){const _0x34d73b=this['editor'],_0x5f20aa=_0x34d73b['locale'],_0xc1c279=_0x34d73b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xc1c279['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x562c65,_0x375f16){const _0x5e6460=[];for(let _0x569199 of _0x562c65)_0x569199['start']['nodeAfter']===_0x569199['end']['parent']&&(_0x569199=_0x34d73b['model']['createRange'](_0x34d73b['model']['createPositionAt'](_0x569199['start']['nodeAfter'],0x0))),_0x5e6460['push'](_0x569199);_0x34d73b['model']['change'](_0x2d45f2=>{const _0x212ed9=_0x34d73b['model']['document']['selection'],_0x587dbe=Array['from'](_0x212ed9['getRanges']())['map'](_0x59b405=>_0x5817c4['fromRange'](_0x59b405));_0x2d45f2['setSelection'](_0x5e6460),_0x34d73b['commands']['get'](_0x375f16['commandName'])['refresh'](),_0x375f16['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x34d73b['execute'](_0x375f16['commandName'],..._0x375f16['commandParams']),_0x2d45f2['setSelection'](_0x587dbe);for(const _0x2851a7 of _0x587dbe)_0x2851a7['detach']();});}),_0xc1c279['descriptionFactory']['registerElementLabel'](function(_0x5070a4){const _0x1b314d=!_0x34d73b['model']['schema']['isObject'](_0x5070a4),_0x31a102=_0x5070a4['previousSibling'],_0x16a543=_0x5070a4['nextSibling'],_0x268ee3=_0x5070a4['getAttribute']('listItemId'),_0x2b3929=!_0x31a102||_0x31a102['getAttribute']('listItemId')!==_0x268ee3,_0x4f9ca5=!_0x16a543||_0x16a543['getAttribute']('listItemId')!==_0x268ee3;return _0x1b314d&&Boolean(_0x268ee3)&&_0x2b3929&&_0x4f9ca5;},_0x1fbed2=>At(_0x5f20aa,'ELEMENT_LIST_ITEM',_0x1fbed2));}['_registerLegacyDescription'](){const _0x13e67d=this['editor'],_0x388193=_0x13e67d['locale'];function _0x2f3a24(_0x145a76){const _0x457540=_0x13e67d['commands']['get']('bulletedList')['value'],_0x201c70=_0x13e67d['commands']['get']('numberedList')['value'];return'numberedList'===_0x145a76?_0x457540:_0x201c70;}_0x13e67d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x46bace){if('formatBlock'!=_0x46bace['type'])return;const {data:_0xe3de42}=_0x46bace;if(!_0xe3de42)return;let _0x30a165,_0x51f317,_0x7758f7,_0x570b45;switch(_0xe3de42['commandName']){case'bulletedList':_0x7758f7=_0xe3de42['commandParams'][0x0]['forceValue'],_0x570b45=_0x2f3a24(_0xe3de42['commandName']),_0x30a165=_0x7758f7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x570b45&&_0x13e67d['config']['get']('list.multiBlock')||(_0x30a165='*Change\x20to:*\x20%0'),_0x51f317={'type':'format','content':At(_0x388193,_0x30a165,At(_0x388193,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x7758f7=_0xe3de42['commandParams'][0x0]['forceValue'],_0x570b45=_0x2f3a24(_0xe3de42['commandName']),_0x30a165=_0x7758f7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x570b45&&_0x13e67d['config']['get']('list.multiBlock')||(_0x30a165='*Change\x20to:*\x20%0'),_0x51f317={'type':'format','content':At(_0x388193,_0x30a165,At(_0x388193,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x30a165='*Indent:*\x20%0',_0x51f317={'type':'format','content':At(_0x388193,_0x30a165,At(_0x388193,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x30a165=function(_0x247caa){const _0x31166b=_0x247caa['getFirstRange']();let _0x5c32b0=_0x31166b['start']['nodeAfter'];for(;_0x5c32b0&&_0x31166b['containsItem'](_0x5c32b0);){if(_0x5c32b0['getAttribute']('listIndent')>0x0)return!0x1;_0x5c32b0=_0x5c32b0['nextSibling'];}return!0x0;}(_0x46bace)?At(_0x388193,'*Format:*\x20remove\x20from\x20%0',At(_0x388193,function(_0x7dc5aa){return'ELEMENT_'+_0x7dc5aa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x46bace))):At(_0x388193,'*Outdent:*\x20%0',At(_0x388193,'ELEMENT_LIST_ITEM')),_0x51f317={'type':'format','content':_0x30a165};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xe3de42['multipleBlocks']&&(_0x30a165='*Merge:*\x20%0',_0x51f317={'type':'deletion','content':At(_0x388193,_0x30a165,At(_0x388193,'ELEMENT_LIST_ITEM'))});}return _0x51f317;});}}function Ht(_0x3aba35){let _0x3b69ac=_0x3aba35['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3b69ac;){const _0x1bbf24=_0x3b69ac['getAttribute']('listItemId');if(!_0x1bbf24)return!0x1;if(_0x1bbf24==_0x3aba35['data']['newValue'])return'newValue';if(_0x1bbf24==_0x3aba35['data']['oldValue'])return'oldValue';_0x3b69ac=_0x3b69ac['previousSibling'];}return!0x1;}class $t extends _0x35090c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x378199=this['editor']['config']['get']('list.properties'),_0x129992=this['editor']['plugins']['get']('TrackChangesEditing');_0x378199['styles']&&_0x129992['enableDefaultAttributesIntegration']('listStyle'),_0x378199['reversed']&&_0x129992['enableDefaultAttributesIntegration']('listReversed'),_0x378199['startIndex']&&_0x129992['enableDefaultAttributesIntegration']('listStart');const _0x4fe135={'type':'format','content':''};_0x129992['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x156adf=this['editor']['locale'];_0x129992['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x156adf,'FORMAT_LIST_REVERSED')),_0x129992['descriptionFactory']['registerDescriptionCallback'](_0x5bed18=>{const {data:_0x5d3de2}=_0x5bed18;if(_0x5d3de2&&'listReversed'==_0x5d3de2['key'])return null==_0x5d3de2['newValue']||0x0==_0x5d3de2['newValue']&&null==_0x5d3de2['oldValue']?_0x4fe135:void 0x0;}),_0x129992['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x156adf,'FORMAT_LIST_START')),_0x129992['descriptionFactory']['registerDescriptionCallback'](_0x564f23=>{const {data:_0x1dea01}=_0x564f23;if(_0x1dea01&&'listStart'==_0x1dea01['key'])return null==_0x1dea01['newValue']||0x1==_0x1dea01['newValue']&&null==_0x1dea01['oldValue']?_0x4fe135:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5a6b73=>{if(_0x5a6b73['batch']['isUndo'])return!0x1;let _0x3bb094=!0x1;const _0x13abae=_0x129992['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d8164=>{const _0x4e66c9=_0x129992['_getAttributeKey'](_0x2d8164);return'listStart'==_0x4e66c9||'listReversed'==_0x4e66c9;});for(const _0x19a6c4 of _0x13abae){const _0x4db392=_0x19a6c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4db392||'customNumbered'==_0x4db392)continue;_0x129992['_findSuggestions'](_0x19a6c4['getFirstRange'](),'attribute')['find'](_0x3a8645=>'listType'==_0x129992['_getAttributeKey'](_0x3a8645['suggestion']))||(_0x5a6b73['removeMarker'](_0x19a6c4['getFirstMarker']()),_0x3bb094=!0x0);}return _0x3bb094;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x15b202){const _0x2c5762=this['editor']['locale'],{data:_0x2a7536}=_0x15b202,_0x355224={'type':'format','content':''};if(!_0x2a7536||'listStyle'!=_0x2a7536['key'])return;if(!_0x2a7536['oldValue'])return'default'==_0x2a7536['newValue']?_0x355224:{'type':'format','content':''+At(_0x2c5762,'*Set\x20format:*\x20%0',At(_0x2c5762,this['_getTranslationKeyForListStyle'](_0x2a7536['newValue'])))};if(!_0x2a7536['newValue']){if('default'==_0x2a7536['oldValue'])return _0x355224;let _0x37cea5=_0x15b202['head'];for(;_0x37cea5;){if(_0x37cea5['data']&&'listType'==_0x37cea5['data']['key']&&_0x37cea5['data']['newValue'])return _0x355224;_0x37cea5=_0x37cea5['next'];}return{'type':'format','content':''+At(_0x2c5762,'*Remove\x20format:*\x20%0',At(_0x2c5762,this['_getTranslationKeyForListStyle'](_0x2a7536['oldValue'])))};}if('default'!=_0x2a7536['newValue'])return{'type':'format','content':''+At(_0x2c5762,'*Set\x20format:*\x20%0',At(_0x2c5762,this['_getTranslationKeyForListStyle'](_0x2a7536['newValue'])))};let _0x49f555=_0x15b202['head'];for(;_0x49f555;){if(_0x49f555['data']&&'listType'==_0x49f555['data']['key']&&_0x49f555['data']['newValue']&&_0x49f555['data']['oldValue'])return _0x355224;_0x49f555=_0x49f555['next'];}return{'type':'format','content':At(_0x2c5762,'*Set\x20format:*\x20%0',At(_0x2c5762,'ELEMENT_'+_0x15b202['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x319c69=this['editor'],_0x14c115=_0x319c69['locale'];_0x319c69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34f775=>{if('formatBlock'!=_0x34f775['type'])return;const {data:_0x860292}=_0x34f775;if(!_0x860292)return;let _0x3072f0,_0x4bc156;switch(_0x860292['commandName']){case'listStyle':_0x3072f0='*Change\x20to:*\x20%0',_0x4bc156={'type':'format','content':At(_0x14c115,_0x3072f0,At(_0x14c115,this['_getTranslationKeyForListStyle'](_0x860292['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3072f0=_0x860292['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4bc156={'type':'format','content':At(_0x14c115,_0x3072f0)};break;case'listStart':_0x3072f0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4bc156={'type':'format','content':At(_0x14c115,_0x3072f0,_0x860292['commandParams'][0x0]['startIndex'])};}return _0x4bc156;});}['_getTranslationKeyForListStyle'](_0x430bcd){return'ELEMENT_'+function(_0x282188){if(Wt['includes'](_0x282188))return'bulleted';if(Vt['includes'](_0x282188))return'numbered';return null;}(_0x430bcd)['toUpperCase']()+'_LIST_'+_0x430bcd['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x35090c{['afterInit'](){const _0x44ac39=this['editor'];_0x44ac39['commands']['get']('emoji')&&_0x44ac39['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x35090c{static get['requires'](){return[lt];}['init'](){const _0x34e3f3=this['editor'],_0x5410cc=_0x34e3f3['plugins']['get']('TrackChangesEditing'),_0x263172=_0x34e3f3['commands']['get']('enter');_0x5410cc['enableCommand']('enter',()=>{_0x34e3f3['model']['change'](_0x3fca8d=>{const _0xb0a107=_0x34e3f3['model']['document']['selection'],_0x2feac7=_0xb0a107['getFirstPosition'](),_0x2c14f5=_0x5817c4['fromRange'](_0xb0a107['getFirstRange']());if(_0x263172['enterBlock'](_0x3fca8d)){const _0x6d3220=_0x34e3f3['model']['createPositionAt'](_0x2feac7['parent']['nextSibling'],0x0),_0x1215e9=_0x3fca8d['createRange'](_0x2feac7,_0x6d3220);_0x5410cc['markInsertion'](_0x1215e9);}else _0x3fca8d['setSelection'](_0x3fca8d['createRange'](_0x2c14f5['end']));_0x2c14f5['detach'](),_0x263172['fire']('afterExecute',{'writer':_0x3fca8d});});});}}class Kt extends _0x35090c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5d77c2=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d77c2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5d77c2['enableCommand']('findNext'),_0x5d77c2['enableCommand']('findPrevious'),_0x5d77c2['enableCommand']('replace'),_0x5d77c2['enableCommand']('replaceAll');}['handleFindCommand'](_0x4cfa48,_0x1abc1e,_0x242ccd={}){const _0x42d2b5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4cfa48(_0x1ae8ef=>{let _0x2a7d8f=('string'==typeof _0x1abc1e?_0x42d2b5['findByTextCallback'](_0x1abc1e,_0x242ccd):_0x1abc1e)(_0x1ae8ef);Array['isArray'](_0x2a7d8f)&&(_0x2a7d8f={'results':_0x2a7d8f,'searchText':'string'==typeof _0x1abc1e?_0x1abc1e:''});const _0x29fed8=_0x2a7d8f['results']['filter'](_0x320bd4=>!0x1===this['_isInDeletionRange'](_0x320bd4,_0x1ae8ef['item']));return{..._0x2a7d8f,'results':_0x29fed8};},_0x242ccd);}['_isInDeletionRange'](_0x45d9fb,_0x30174e){const _0x1579e1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30174e,_0x45d9fb['start']),this['editor']['model']['createPositionAt'](_0x30174e,_0x45d9fb['end']));for(const _0x1f961f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1579e1['getIntersection'](_0x1f961f['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x35090c{['afterInit'](){const _0x1260aa=this['editor']['locale'],_0x3dc29b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4ec8fc,commandName:_0x209e20}of Xt)this['editor']['plugins']['has'](_0x4ec8fc)&&_0x3dc29b['enableDefaultAttributesIntegration'](_0x209e20);_0x3dc29b['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x1260aa,'FORMAT_FONT_SIZE')),_0x3dc29b['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x1260aa,'FORMAT_FONT_FAMILY')),_0x3dc29b['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x1260aa,'FORMAT_FONT_COLOR')),_0x3dc29b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x1260aa,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcdb08a=this['editor'],_0x3d7529=_0xcdb08a['locale'];_0xcdb08a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14aea1=>{const _0x62123a=_0x3d7529['t'];if('formatInline'!=_0x14aea1['type'])return;const {data:_0x409bee}=_0x14aea1;if(null!=_0x409bee){if('fontSize'==_0x409bee['commandName']){const _0x348e62=_0x409bee['commandParams'][0x0]['value'];if(_0x348e62){const _0xf8094=_0x62123a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2087ea=>_0x2087ea['model']==_0x348e62)['title'])['toLowerCase']();return{'type':'format','content':At(_0x3d7529,'*Set\x20font\x20size:*\x20%0',_0xf8094)};}return{'type':'format','content':At(_0x3d7529,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x409bee['commandName']){const _0x269cd5=_0x409bee['commandParams'][0x0]['value'];return _0x269cd5?{'type':'format','content':At(_0x3d7529,'*Set\x20font\x20family:*\x20%0',_0x269cd5)}:{'type':'format','content':At(_0x3d7529,'*Reset\x20font\x20family*')};}if('fontColor'==_0x409bee['commandName']){const _0x84df62=_0x409bee['commandParams'][0x0]['value'];if(_0x84df62){const _0x3fefab=_0x3a0b9c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x319c62=>_0x319c62['model']==_0x84df62);let _0x2bba3c=_0x84df62,_0x40ef40='';return _0x3fefab&&(_0x2bba3c=_0x3fefab['label'],_0x40ef40=_0x62123a(_0x2bba3c)['toLowerCase']()),{'type':'format','content':At(_0x3d7529,'*Set\x20font\x20color:*\x20%0',_0x40ef40)['trim'](),'color':{'value':_0x84df62,'title':_0x40ef40||_0x2bba3c}};}return{'type':'format','content':At(_0x3d7529,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x409bee['commandName']){const _0x33768a=_0x409bee['commandParams'][0x0]['value'];if(_0x33768a){const _0x273336=_0x3a0b9c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x6b296c=>_0x6b296c['model']==_0x33768a);let _0x9e725f=_0x33768a,_0x5f04fc='';return _0x273336&&(_0x9e725f=_0x273336['label'],_0x5f04fc=_0x62123a(_0x9e725f)['toLowerCase']()),{'type':'format','content':At(_0x3d7529,'*Set\x20font\x20background\x20color:*\x20%0',_0x5f04fc)['trim'](),'color':{'value':_0x33768a,'title':_0x5f04fc||_0x9e725f}};}return{'type':'format','content':At(_0x3d7529,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x35090c{['afterInit'](){const {plugins:_0x566888}=this['editor'];_0x566888['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x566888['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x80a2d8,plugins:_0x1e170e,commands:_0x5b1e55}=this['editor'],_0x34fcd3=_0x1e170e['get']('TrackChangesEditing');_0x5b1e55['get']('footnotesStyle')&&_0x34fcd3['enableDefaultAttributesIntegration']('footnotesStyle'),_0x5b1e55['get']('footnotesStart')&&_0x34fcd3['enableDefaultAttributesIntegration']('footnotesStart'),_0x34fcd3['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x80a2d8,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x34fcd3['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x80a2d8,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xf8b8e6=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3c315b,commands:_0x1da5fc}=this['editor'];_0x1da5fc['get']('insertFootnote')&&_0xf8b8e6['enableCommand']('insertFootnote'),_0xf8b8e6['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1f1ea8=>At(_0x3c315b,'ELEMENT_FOOTNOTE_REF',_0x1f1ea8)),_0xf8b8e6['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0xc09619=>At(_0x3c315b,'ELEMENT_FOOTNOTE_DEFINITION',_0xc09619)),_0xf8b8e6['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3c7d26=>At(_0x3c315b,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3c7d26));}}class Qt extends _0x35090c{['afterInit'](){const _0x258d48=this['editor'],_0x2a648d=_0x258d48['plugins']['get']('TrackChangesEditing'),_0x4e0400=_0x258d48['commands']['get']('copyFormat'),_0xc15311=_0x258d48['commands']['get']('pasteFormat');_0x4e0400&&_0xc15311&&(_0x2a648d['enableDefaultAttributesIntegration']('pasteFormat'),_0x2a648d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x25f153=this['editor'],_0x2e058f=_0x25f153['locale'];_0x25f153['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3698b8=>{if('formatBlock'!=_0x3698b8['type']&&'formatInline'!=_0x3698b8['type'])return;const {data:_0x2627d4}=_0x3698b8;if(_0x2627d4&&'pasteFormat'===_0x2627d4['commandName']){const _0x5b0098=[],_0x424c39=_0x2627d4['commandParams'][0x0];for(const [_0x5a21be,_0x296d4b]of Object['entries'](_0x424c39))_0x5b0098['push'](Zt(_0x25f153,_0x5a21be,_0x296d4b));return _0x5b0098['length']?{'type':'format','content':At(_0x2e058f,'*Set\x20format\x20to:*\x20%0',_0x5b0098['join'](',\x20'))}:{'type':'format','content':At(_0x2e058f,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x105965,_0x1463f3,_0x282977){const _0x2277d8=_0x105965['locale']['t'],_0x3f9e52=_0x1463f3['split'](/(?=[A-Z])/)['join']('\x20'),_0x5e0f98=_0x2277d8(_0x3f9e52['charAt'](0x0)['toUpperCase']()+_0x3f9e52['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x282977)return _0x5e0f98;if('fontColor'===_0x1463f3||'fontBackgroundColor'===_0x1463f3){const _0x201096=_0x3a0b9c(_0x105965['config']['get']('fontColor.colors'))['find'](_0x485398=>_0x485398['model']==_0x282977);return _0x5e0f98+'\x20('+(_0x201096?_0x2277d8(_0x201096['label'])['toLowerCase']():_0x282977)+')';}if('fontSize'===_0x1463f3&&isNaN(parseFloat(_0x282977))){const _0x3cee3b=_0x105965['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x105965['config']['get']('fontSize.options'))['find'](_0x59ee83=>_0x59ee83['model']==_0x282977);return _0x5e0f98+'\x20('+(_0x3cee3b?_0x2277d8(_0x3cee3b['title'])['toLowerCase']():_0x282977)+')';}return _0x5e0f98+'\x20('+_0x282977+')';}class Jt extends _0x35090c{['_headingOptions'];['afterInit'](){const _0x3a25c3=this['editor'];if(!_0x3a25c3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3a25c3['config']['get']('heading.options');const _0xa23550=_0x3a25c3['locale'],_0x32806e=_0x3a25c3['plugins']['get']('TrackChangesEditing');_0x32806e['enableDefaultAttributesIntegration']('heading');for(const _0x1e43b0 of this['_headingOptions'])'paragraph'!=_0x1e43b0['model']&&_0x32806e['descriptionFactory']['registerElementLabel'](_0x1e43b0['model'],_0x3eadbb=>{const _0x2569c8=this['_getHeadingLevel'](_0x1e43b0['model']);return null!==_0x2569c8?_0x46aded(_0x3eadbb,_0x2569c8):_0x5ba12a(_0x3eadbb,_0x1e43b0['title']);});function _0x46aded(_0x28e4c0,_0x1cf3bd){return At(_0xa23550,'ELEMENT_HEADING',[_0x28e4c0,_0x1cf3bd]);}function _0x5ba12a(_0x360e6d,_0x14bc5e){return At(_0xa23550,'ELEMENT_HEADING_CUSTOM',[_0x360e6d,_0x14bc5e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a09ee=this['editor'],_0x39028e=_0x5a09ee['locale'];function _0x585925(_0xbf8953,_0xf77df5){return At(_0x39028e,'ELEMENT_HEADING_CUSTOM',[_0xbf8953,_0xf77df5]);}_0x5a09ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26f547=>{if('formatBlock'!=_0x26f547['type'])return;const {data:_0x370df8}=_0x26f547;if(_0x370df8&&'heading'==_0x370df8['commandName']){const _0x42778a=_0x370df8['commandParams'][0x0]['value'],_0x4c3111=this['_getHeadingLevel'](_0x42778a);if(null!==_0x4c3111)return{'type':'format','content':At(_0x39028e,'*Change\x20to:*\x20%0',(_0x3b62e5=0x1,_0x37560a=_0x4c3111,At(_0x39028e,'ELEMENT_HEADING',[_0x3b62e5,_0x37560a])))};const _0x17bafb=this['_headingOptions']['find'](_0x2f0b0a=>_0x2f0b0a['model']===_0x42778a)['title'];return{'type':'format','content':At(_0x39028e,'*Change\x20to:*\x20%0',_0x585925(0x1,_0x17bafb))};}var _0x3b62e5,_0x37560a;});}['_getHeadingLevel'](_0x3078ee){const _0x3be8d1=_0x3078ee['match'](/^heading(\d+)/);if(_0x3be8d1)return _0x3be8d1[0x1];const _0x1561d0=this['_headingOptions']?.['find'](_0x5a92c3=>_0x5a92c3['model']==_0x3078ee);if(_0x1561d0&&_0x1561d0['view']){const _0x5a6882=_0x1561d0['view'],_0x3c2931=(_0x5a6882['name']??_0x5a6882)['match'](/^h(\d+)/);if(_0x3c2931)return _0x3c2931[0x1];}return null;}}class te extends _0x35090c{['afterInit'](){const _0x22f821=this['editor'];if(!_0x22f821['plugins']['has']('HighlightEditing'))return;const _0x3f67e5=_0x22f821['plugins']['get']('TrackChangesEditing'),_0x1a9d22=_0x22f821['locale'];_0x3f67e5['enableDefaultAttributesIntegration']('highlight'),_0x3f67e5['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x1a9d22,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ded03=this['editor'],_0x28cc90=_0x4ded03['locale'];_0x4ded03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x305fea=>{if('formatInline'!=_0x305fea['type'])return;const {data:_0x6d0158}=_0x305fea;if(_0x6d0158&&'highlight'==_0x6d0158['commandName']){const _0x4e6218=_0x28cc90['t'],_0x417ede=_0x6d0158['commandParams'][0x0]['value'];if(_0x417ede){const _0x1a9162=_0x4ded03['config']['get']('highlight.options')['find'](_0x578f15=>_0x578f15['model']==_0x417ede),_0xe0f28a=_0x4e6218(_0x1a9162['title'])['toLowerCase']();return{'type':'format','content':At(_0x28cc90,'*Set\x20highlight:*\x20%0',_0xe0f28a),'color':{'value':_0x1a9162['color'],'title':_0x1a9162['title']}};}return{'type':'format','content':At(_0x28cc90,'*Remove\x20highlight*',At(_0x28cc90,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x35090c{['afterInit'](){const _0x425b3e=this['editor'];if(!_0x425b3e['plugins']['has']('HorizontalLineEditing'))return;_0x425b3e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x39a8d4=_0x425b3e['plugins']['get']('TrackChangesEditing'),_0x226b89=_0x425b3e['locale'];_0x39a8d4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x119658=>At(_0x226b89,'ELEMENT_HORIZONTAL_LINE',_0x119658));}}class ne extends _0x35090c{['afterInit'](){const _0x173d98=this['editor'];if(!_0x173d98['plugins']['has']('HtmlEmbed'))return;const _0x427a1a=_0x173d98['plugins']['get']('TrackChangesEditing'),_0x683d52=_0x173d98['locale'];_0x427a1a['descriptionFactory']['registerElementLabel']('rawHtml',_0x25ec83=>At(_0x683d52,'ELEMENT_HTML_EMBED',_0x25ec83)),_0x427a1a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x427a1a['descriptionFactory']['registerDescriptionCallback'](_0x422d04=>{if('attribute'!=_0x422d04['type'])return;const {data:_0x1c5953}=_0x422d04;if(_0x1c5953&&'value'==_0x1c5953['key']&&_0x422d04['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3b6895=At(_0x683d52,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x683d52,'*Change\x20%0\x20content*',_0x3b6895)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd07f81=this['editor'],_0x4fe038=_0xd07f81['locale'];_0xd07f81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2127bf=>{if('formatBlock'!=_0x2127bf['type'])return;const {data:_0x27e961}=_0x2127bf;if(_0x27e961&&'htmlEmbed'==_0x27e961['commandName']){const _0xb61813=At(_0x4fe038,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x4fe038,'*Change\x20%0\x20content*',_0xb61813)};}});}}class ie extends _0x35090c{['afterInit'](){const _0x2b6947=this['editor'];if(!_0x2b6947['plugins']['has']('ImageEditing'))return;const _0x8da502=_0x2b6947['plugins']['get']('TrackChangesEditing'),_0x3317ae=_0x2b6947['plugins']['get']('ImageUtils'),_0x3bcbec=_0x2b6947['locale'];_0x8da502['enableCommand']('insertImage'),_0x8da502['descriptionFactory']['registerElementLabel']('imageBlock',_0x46bde9=>At(_0x3bcbec,'ELEMENT_IMAGE',_0x46bde9)),_0x8da502['descriptionFactory']['registerElementLabel']('imageInline',_0xf73599=>At(_0x3bcbec,'ELEMENT_INLINE_IMAGE',_0xf73599)),_0x8da502['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x3bcbec,'ELEMENT_CAPTION')),_0x2b6947['plugins']['has']('ImageUploadEditing')&&_0x8da502['enableCommand']('uploadImage'),_0x2b6947['plugins']['has']('ImageBlockEditing')&&_0x2b6947['plugins']['has']('ImageInlineEditing')&&(_0x8da502['enableCommand']('imageTypeInline',(_0x543df3,_0x18ab3d)=>{const _0x2df795=_0x3317ae['getClosestSelectedImageElement'](_0x2b6947['model']['document']['selection']);_0x2b6947['model']['change'](()=>{_0x8da502['markBlockFormat'](_0x2df795,{'commandName':'imageTypeInline','commandParams':[_0x18ab3d]},[],'convertBlockImageToInline');});}),_0x8da502['enableCommand']('imageTypeBlock',(_0x2d0cf6,_0x4889c2)=>{_0x2b6947['model']['change'](_0x9c4d91=>{let _0x403ba4=_0x3317ae['getClosestSelectedImageElement'](_0x2b6947['model']['document']['selection']),_0x192a00=_0x9c4d91['createRangeOn'](_0x403ba4);const _0xc41854=tt['fromPosition'](_0x192a00['start'],'toPrevious'),_0x39754d=tt['fromPosition'](_0x192a00['end'],'toNext');_0x8da502['forceDefaultExecution'](()=>_0x2d0cf6(_0x4889c2)),_0x403ba4=_0x3317ae['getClosestSelectedImageElement'](_0x2b6947['model']['document']['selection']),_0x192a00=_0x9c4d91['createRangeOn'](_0x403ba4);const _0xc1a6fd=_0x9c4d91['createRange'](_0xc41854,_0x39754d);_0xc41854['detach'](),_0x39754d['detach'](),_0x8da502['markBlockFormat'](_0x403ba4,{'commandName':'imageTypeInline','commandParams':[_0x4889c2]},[],'convertInlineImageToBlock'),_0xc1a6fd['start']['isBefore'](_0x192a00['start'])&&_0x8da502['markInsertion'](_0x9c4d91['createRange'](_0xc1a6fd['start'],_0x192a00['start']),'convertInlineImageToBlock'),_0x192a00['end']['isBefore'](_0xc1a6fd['end'])&&_0x8da502['markInsertion'](_0x9c4d91['createRange'](_0x192a00['end'],_0xc1a6fd['end']),'convertInlineImageToBlock');});}),_0x8da502['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8da502['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8da502['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8da502['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8da502['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8da502['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x421e9d])=>{const _0x3c82dc=_0x8da502['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x132014=_0x421e9d['start'],_0x37b1c2=_0x421e9d['end'];const _0x34f684=_0x2b6947['model']['schema']['getNearestSelectionRange'](_0x132014,'backward'),_0x26451f=_0x2b6947['model']['schema']['getNearestSelectionRange'](_0x37b1c2,'forward');_0x34f684['isCollapsed']&&(_0x132014=_0x34f684['start']),_0x26451f['isCollapsed']&&(_0x37b1c2=_0x26451f['end']),_0x3c82dc([_0x2b6947['model']['createRange'](_0x132014,_0x37b1c2)]);}),_0x8da502['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa03f79),_0x8da502['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa03f79)),_0x2b6947['plugins']['has']('ImageCaptionEditing')&&(_0x8da502['enableCommand']('toggleImageCaption',(_0x5b1ac9,_0x2e9a9b)=>{const _0xb719e5=_0x2b6947['plugins']['get']('ImageCaptionUtils');let _0x1e6685=_0x3317ae['getClosestSelectedImageElement'](_0x2b6947['model']['document']['selection']),_0x2d3ac5=_0xb719e5['getCaptionFromImageModelElement'](_0x1e6685);_0x2b6947['model']['change'](()=>{if(_0x2d3ac5)return void _0x8da502['markDeletion'](_0x2b6947['model']['createRangeOn'](_0x2d3ac5));const _0xfebdcf=_0x3317ae['isBlockImage'](_0x1e6685);_0x5b1ac9(_0x2e9a9b),_0x1e6685=_0x3317ae['getClosestSelectedImageElement'](_0x2b6947['model']['document']['selection']),_0x2d3ac5=_0xb719e5['getCaptionFromImageModelElement'](_0x1e6685),_0x8da502['markInsertion'](_0x2b6947['model']['createRangeOn'](_0x2d3ac5),_0xfebdcf?null:'imageCaption');});}),_0x8da502['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa03f79));const _0x4dcf59=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4e4d91(_0x5cf5fc,_0x1cdcf3){const _0x5227ac=_0x4dcf59['findIndex'](({type:_0x33a4df,subType:_0x466c89})=>_0x5cf5fc['type']==_0x33a4df&&_0x5cf5fc['subType']==_0x466c89),_0x537e6c=_0x4dcf59['findIndex'](({type:_0x361d6b,subType:_0x3359e9})=>_0x1cdcf3['type']==_0x361d6b&&_0x1cdcf3['subType']==_0x3359e9);if(_0x5227ac<0x0||_0x537e6c<0x0)return!0x1;const _0x3570e2=_0x5cf5fc['getFirstRange'](),_0x42a5f9=_0x1cdcf3['getFirstRange']();if((0x0==_0x5227ac||0x1==_0x5227ac)&&0x2==_0x537e6c&&_0x3570e2['isIntersecting'](_0x42a5f9))return!0x0;if(0x2==_0x5227ac&&0x3==_0x537e6c){const _0x5ac1c4=_0x8da502['_findSuggestions'](_0x3570e2,'insertion')['filter'](({suggestion:_0x254363,meta:_0x5aede6})=>_0x5aede6['isOwn']&&'convertInlineImageToBlock'==_0x254363['subType']);if(_0x5ac1c4['length']>0x1&&_0x42a5f9['end']['isEqual'](_0x3570e2['start']))return!0x0;if(0x1==_0x5ac1c4['length']&&(_0x3570e2['start']['isEqual'](_0x42a5f9['end'])||_0x3570e2['end']['isEqual'](_0x42a5f9['start'])))return!0x0;}if(0x3==_0x5227ac&&0x3==_0x537e6c&&_0x3570e2['start']['isBefore'](_0x42a5f9['start'])){const _0x34d09e=_0x3570e2['end']['nodeAfter'],_0x48477f=_0x42a5f9['start']['nodeBefore'];return _0x3317ae['isBlockImage'](_0x34d09e)&&_0x34d09e===_0x48477f;}return!0x1;}function _0xa03f79(_0x5bfb50,_0x17201d){return _0x4e4d91(_0x5bfb50,_0x17201d)?[_0x5bfb50,_0x17201d]:_0x4e4d91(_0x17201d,_0x5bfb50)?[_0x17201d,_0x5bfb50]:null;}_0x2b6947['plugins']['has']('ImageResize')&&(_0x8da502['enableDefaultAttributesIntegration']('resizeImage'),_0x8da502['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x3bcbec,'FORMAT_IMAGE_SIZE'))),_0x2b6947['plugins']['has']('ImageTextAlternativeEditing')&&_0x8da502['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2b6947['plugins']['has']('PictureEditing')&&_0x8da502['descriptionFactory']['registerDescriptionCallback'](_0x52f7f4=>{if('attribute'!=_0x52f7f4['type'])return;const {data:_0xd3e7ef}=_0x52f7f4;return _0xd3e7ef&&'sources'==_0xd3e7ef['key']?{'type':'format','content':''}:void 0x0;}),_0x2b6947['plugins']['has']('ImageSizeAttributes')&&_0x8da502['descriptionFactory']['registerDescriptionCallback'](_0x4940df=>{if('attribute'!=_0x4940df['type'])return;const {data:_0x477ff8}=_0x4940df;return!_0x477ff8||'width'!=_0x477ff8['key']&&'height'!=_0x477ff8['key']?void 0x0:{'type':'format','content':''};}),_0x8da502['descriptionFactory']['registerDescriptionCallback'](_0x37f479=>{if(!!_0x4dcf59['find'](({type:_0x483ecc,subType:_0x10add8})=>_0x37f479['type']==_0x483ecc&&_0x37f479['subType']==_0x10add8))return _0x37f479['previous']?{}:void 0x0;}),_0x8da502['descriptionFactory']['registerDescriptionCallback'](_0x274066=>{if('insertion'==_0x274066['type']||'deletion'==_0x274066['type']){const _0x5b9911=_0x274066['getContainedElement']();if(_0x5b9911&&_0x5b9911['is']('element','caption'))return{'type':'insertion'==_0x274066['type']?'addObject':'removeObject','element':_0x5b9911,'quantity':0x1};}}),_0x8da502['descriptionFactory']['registerDescriptionCallback'](_0x3a5994=>'formatBlock'==_0x3a5994['type']&&'convertInlineImageToBlock'==_0x3a5994['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3a5994['type']&&'convertBlockImageToInline'==_0x3a5994['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8da502['descriptionFactory']['registerDescriptionCallback'](_0x51a271=>{if('attribute'!=_0x51a271['type'])return;const {data:_0x2d3c61}=_0x51a271;if(!_0x2d3c61||'alt'!=_0x2d3c61['key'])return;const _0x3c47b1=_0x2d3c61['newValue'];return _0x3c47b1?{'type':'format','content':At(_0x3bcbec,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3c47b1+'\x22')}:{'type':'format','content':At(_0x3bcbec,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3410cc=this['editor'],_0x29c600=_0x3410cc['locale'];_0x3410cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1371bf=>{if('formatBlock'!=_0x1371bf['type']&&'formatInline'!=_0x1371bf['type'])return;const {data:_0x538aa6}=_0x1371bf;if(_0x538aa6){if('imageTextAlternative'==_0x538aa6['commandName']){const _0x48237b=_0x538aa6['commandParams'][0x0]['newValue'];return _0x48237b?{'type':'format','content':At(_0x29c600,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48237b+'\x22')}:{'type':'format','content':At(_0x29c600,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x538aa6['commandName']){const _0x5a60c8=_0x538aa6['commandParams'][0x0]['width'];return _0x5a60c8?{'type':'format','content':At(_0x29c600,'*Set\x20image\x20width:*\x20%0',_0x5a60c8)}:{'type':'format','content':At(_0x29c600,'*Reset\x20image\x20width*')};}}});}}class se extends _0x35090c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1fe3a2=this['editor']['locale'],_0x5919a3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5919a3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5919a3['descriptionFactory']['registerDescriptionCallback'](_0x4c1cc2=>{if('attribute'!=_0x4c1cc2['type'])return;const {data:_0x5448f9}=_0x4c1cc2;return _0x5448f9&&'src'==_0x5448f9['key']?_0x5448f9['newValue']&&_0x5448f9['oldValue']?{'type':'format','content':At(_0x1fe3a2,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x34ee6f=this['editor']['plugins']['get']('TrackChangesEditing');_0x34ee6f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x34ee6f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34ee6f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x34ee6f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42eaee=this['editor'],_0x409096=_0x42eaee['locale'];_0x42eaee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x299410=>{if('formatBlock'!=_0x299410['type']&&'formatInline'!=_0x299410['type'])return;const {data:_0x15533d}=_0x299410;if(!_0x15533d||'replaceImageSource'!=_0x15533d['commandName'])return;return{'type':'format','content':At(_0x409096,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x35090c{['afterInit'](){const _0xead71e=this['editor'];if(!_0xead71e['plugins']['has']('ImageStyleEditing'))return;const _0x4057ff=_0xead71e['plugins']['get']('TrackChangesEditing'),_0x20a004=_0xead71e['plugins']['get']('ImageUtils'),_0x27069a={};_0x4057ff['enableCommand']('imageStyle',(_0x606f4,_0x1d3655)=>{const _0x5d28d5=_0xead71e['plugins']['get']('Users')['me'],_0x133350=_0xead71e['commands']['get']('imageStyle');let _0x5c33e4=_0x20a004['getClosestSelectedImageElement'](_0xead71e['model']['document']['selection']),_0x196db5=_0xead71e['model']['createRangeOn'](_0x5c33e4),_0xce4321=_0x133350['value'];if(_0xce4321==_0x1d3655['value'])return;const _0x34db3a={'commandName':'imageStyle','commandParams':[_0x1d3655],'formatGroupId':_0x5b022c()};_0xead71e['model']['change'](()=>{if(_0x4057ff['getSuggestions']()['filter'](_0xfc50a=>_0xfc50a['isInContent']&&_0x5d28d5==_0xfc50a['author']&&('formatBlock'==_0xfc50a['type']||'formatInline'==_0xfc50a['type'])&&('imageStylePreApply'==_0xfc50a['subType']||'imageStylePostApply'==_0xfc50a['subType'])&&_0xfc50a['getFirstRange']()['isEqual'](_0x196db5))['forEach'](_0x1861b5=>_0x4057ff['discardSuggestion'](_0x1861b5['head'])),_0x5c33e4=_0x20a004['getClosestSelectedImageElement'](_0xead71e['model']['document']['selection']),_0x196db5=_0xead71e['model']['createRangeOn'](_0x5c33e4),_0x133350['refresh'](),_0xead71e['commands']['get']('imageTypeInline')['refresh'](),_0xead71e['commands']['get']('imageTypeBlock')['refresh'](),_0xce4321=_0x133350['value'],_0xce4321!=_0x1d3655['value'])return _0x20a004['isInlineImage'](_0x5c33e4)&&_0x133350['shouldConvertImageType'](_0x1d3655['value'],_0x5c33e4)?(_0x606f4({..._0x1d3655,'setImageSizes':!0x1}),_0x5c33e4=_0x20a004['getClosestSelectedImageElement'](_0xead71e['model']['document']['selection']),void _0x4057ff['markBlockFormat'](_0x5c33e4,{..._0x34db3a,'commandReversedParams':[{'value':_0xce4321||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x20a004['isBlockImage'](_0x5c33e4)?_0x4057ff['markBlockFormat'](_0x5c33e4,_0x34db3a,[],'imageStylePostApply'):_0x4057ff['markInlineFormat'](_0x196db5,_0x34db3a,'imageStylePostApply'));});});for(const _0x4c2e93 of _0xead71e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x27069a[_0x4c2e93['name']]=_0x4c2e93['title']['toLowerCase']();_0x4057ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4057ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4057ff['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4057ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xb52a80])=>{_0x20a004['setImageNaturalSizeAttributes'](_0xb52a80['getContainedElement']());}),_0x4057ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x12505c,_0xeab9cd)=>{_0x4057ff['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x12505c,{'commandName':_0xeab9cd['commandName'],'commandParams':_0xeab9cd['commandReversedParams']});}),_0x4057ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5e922c,_0x54f9aa){if(_0x460acc(_0x5e922c,_0x54f9aa))return[_0x5e922c,_0x54f9aa];if(_0x460acc(_0x54f9aa,_0x5e922c))return[_0x54f9aa,_0x5e922c];return null;});const _0x1ef304=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x460acc(_0x6f945,_0x347a87){const _0x4b2a1b=_0x1ef304['findIndex'](({type:_0x436ae0,subType:_0xb9050a})=>_0x6f945['type']==_0x436ae0&&_0x6f945['subType']==_0xb9050a),_0x2694fe=_0x1ef304['findIndex'](({type:_0x55769b,subType:_0x952c7f})=>_0x347a87['type']==_0x55769b&&_0x347a87['subType']==_0x952c7f);if(_0x4b2a1b<0x0||_0x2694fe<0x0)return!0x1;const _0x30cfa3=_0x6f945['getFirstRange'](),_0x182129=_0x347a87['getFirstRange']();if((0x0==_0x4b2a1b||0x1==_0x4b2a1b)&&0x2==_0x2694fe&&_0x30cfa3['isIntersecting'](_0x182129))return!0x0;if(0x2==_0x4b2a1b&&0x3==_0x2694fe){const _0x3ef0e8=_0x4057ff['_findSuggestions'](_0x30cfa3,'insertion')['filter'](({suggestion:_0x2c4fdb,meta:_0x12f6dd})=>_0x12f6dd['isOwn']&&'convertInlineImageToBlock'==_0x2c4fdb['subType']);if(_0x3ef0e8['length']>0x1&&_0x182129['end']['isEqual'](_0x30cfa3['start']))return!0x0;if(0x1==_0x3ef0e8['length']&&(_0x30cfa3['start']['isEqual'](_0x182129['end'])||_0x30cfa3['end']['isEqual'](_0x182129['start'])))return!0x0;}if(0x3==_0x4b2a1b&&0x3==_0x2694fe&&_0x30cfa3['start']['isBefore'](_0x182129['start'])){const _0xf1bc54=_0x30cfa3['end']['nodeAfter'],_0x3ae048=_0x182129['start']['nodeBefore'];return _0x20a004['isBlockImage'](_0xf1bc54)&&_0xf1bc54===_0x3ae048;}return!0x1;}_0xead71e['model']['document']['registerPostFixer'](()=>{let _0x174322=!0x1;const _0x65f549=Array['from'](_0xead71e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39d5d2,data:_0xfe69c3}of _0x65f549){const {group:_0x64e727,type:_0x263f77,subType:_0x27b1bc,id:_0x3c1dc9}=_0x4dc3a3(_0x39d5d2);if('suggestion'==_0x64e727&&_0x4057ff['hasSuggestion'](_0x3c1dc9)){if('formatBlock'==_0x263f77&&('imageStylePreApply'==_0x27b1bc||'imageStylePostApply'==_0x27b1bc)){const _0x4b5ee0=_0x4057ff['getSuggestion'](_0x3c1dc9);if(_0xfe69c3['newRange']){const _0x325913=_0x4b5ee0['getFirstRange']()['getContainedElement']();if(_0x20a004['isBlockImage'](_0x325913))continue;_0x4057ff['discardSuggestion'](_0x4b5ee0),_0x174322=!0x0;}}if('insertion'==_0x263f77&&'imageCaption'==_0x27b1bc&&!_0xfe69c3['newRange']){const _0xcdfc6a=_0x4057ff['getSuggestion'](_0x3c1dc9);_0xcdfc6a['next']&&_0xcdfc6a['next']['isInContent']&&(_0x4057ff['discardSuggestion'](_0xcdfc6a['next']),_0x174322=!0x0);}}}return _0x174322;}),this['_registerLegacyDescription'](_0x27069a);}['_registerLegacyDescription'](_0xc1ad5f){const _0x28bbf9=this['editor'],_0x22d110=_0x28bbf9['locale'];_0x28bbf9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e74e5=>{if('formatBlock'!=_0x1e74e5['type']&&'formatInline'!=_0x1e74e5['type'])return;const {data:_0x183393}=_0x1e74e5;if(!_0x183393||'imageStyle'!=_0x183393['commandName'])return;const _0xe6b608=_0x183393['commandParams'][0x0]['value'];return _0x4c3821('side'===_0xe6b608?At(_0x22d110,'FORMAT_SIDE_IMAGE'):_0xc1ad5f[_0xe6b608]||_0xe6b608);function _0x4c3821(_0x5be3bb){return{'type':'format','content':At(_0x22d110,'*Format:*\x20%0',_0x5be3bb)};}});}}class oe extends _0x35090c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xa38f9b){super(_0xa38f9b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2a8393=this['editor'],_0x195f11=_0x2a8393['commands']['get']('importWord'),_0x275dcb=_0x2a8393['commands']['get']('trackChanges');_0x195f11&&(_0x195f11['on']('execute',(_0x54f4cc,[,_0x21a8dc])=>{this['_trackChangesValueDuringImport']=_0x275dcb['value'],_0x21a8dc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x195f11,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x195f11,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x275dcb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2a8393['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x61ca0b,_0x2c5c47){const {suggestions:_0x1e85bb}=_0x2c5c47,_0xca1f6f=this['editor']['commands']['get']('trackChanges'),_0x121c37=_0xca1f6f['value'];this['_trackChangesValueDuringImport']!==_0x121c37&&(_0xca1f6f['execute'](),this['_trackChangesExecuted']=!0x0),_0x1e85bb&&_0x1e85bb['forEach'](({id:_0x37e2d8,type:_0x420bf6,author:_0x59f4ef,created_at:_0xde584c})=>{const _0x453ae1={'id':_0x37e2d8,'type':_0x420bf6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x59f4ef,'createdAt':_0xde584c?new Date(_0xde584c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x453ae1);});}}class ae extends _0x35090c{['afterInit'](){const _0x403932=this['editor'],_0x26348c=_0x403932['plugins']['get']('TrackChangesEditing');if(_0x403932['plugins']['has']('IndentEditing')&&(_0x26348c['enableCommand']('indent'),_0x26348c['enableCommand']('outdent')),_0x403932['plugins']['has']('IndentBlock')){for(const _0x58ef18 of['indentBlock','outdentBlock'])_0x26348c['enableDefaultAttributesIntegration'](_0x58ef18);if(_0x403932['plugins']['has']('ListEditing')){for(const _0x4d5221 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x26348c['enableDefaultAttributesIntegration'](_0x4d5221);}}const _0x2fcd0f=_0x403932['locale'];_0x26348c['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x2fcd0f,'FORMAT_INDENT')),_0x26348c['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x2fcd0f,'FORMAT_INDENT')),_0x26348c['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x2fcd0f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x537485=this['editor'],_0x2693a7=_0x537485['locale'],_0x45fdf9=_0x537485['plugins']['get']('TrackChangesEditing');_0x45fdf9['descriptionFactory']['registerDescriptionCallback'](_0x43dc6d=>{if('formatBlock'!=_0x43dc6d['type'])return;const {data:_0x2c8064}=_0x43dc6d;if(!_0x2c8064)return;if('indentBlock'!=_0x2c8064['commandName']&&'outdentBlock'!=_0x2c8064['commandName'])return;const _0x5c3a86=_0x43dc6d['getItems']()[0x0],_0x712de9=_0x45fdf9['descriptionFactory']['getItemLabel'](_0x5c3a86);return'indentBlock'==_0x2c8064['commandName']?{'type':'format','content':At(_0x2693a7,'*Indent:*\x20%0',_0x712de9)}:'outdentBlock'==_0x2c8064['commandName']?{'type':'format','content':At(_0x2693a7,'*Outdent:*\x20%0',_0x712de9)}:void 0x0;});}}class ce extends _0x35090c{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x35090c{['afterInit'](){const _0x40d0cb=this['editor'];if(!_0x40d0cb['plugins']['has']('LinkEditing'))return;const _0x467f8a=_0x40d0cb['plugins']['get']('TrackChangesEditing'),_0x465ca0=_0x40d0cb['commands']['get']('link');_0x467f8a['enableDefaultAttributesIntegration']('link'),_0x467f8a['enableDefaultAttributesIntegration']('unlink');for(const _0x5de084 of _0x465ca0['manualDecorators'])_0x467f8a['descriptionFactory']['registerAttributeLabel'](_0x5de084['id'],'link\x20('+_0x5de084['label']['toLowerCase']()+')');_0x467f8a['descriptionFactory']['registerDescriptionCallback'](_0x1f5615=>{if('attribute'!=_0x1f5615['type'])return;const {data:_0xf4e9f8}=_0x1f5615;if(!_0xf4e9f8||'linkHref'!=_0xf4e9f8['key'])return;const _0x5cfd9a=_0xf4e9f8['newValue'],_0x492b24=_0x40d0cb['locale'];return{'type':'format','content':null==_0x5cfd9a?At(_0x492b24,'*Remove\x20link*'):At(_0x492b24,'*Set\x20link:*\x20%0','\x22'+_0x5cfd9a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d05cd=this['editor'],_0x3b267c=_0x5d05cd['locale'];_0x5d05cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55c331=>{if('formatInline'!=_0x55c331['type'])return;const {data:_0x224ee2}=_0x55c331;if(_0x224ee2){if('link'==_0x224ee2['commandName']){const _0x1d6c9a=_0x224ee2['commandParams'][0x0];return{'type':'format','content':At(_0x3b267c,'*Set\x20link:*\x20%0','\x22'+_0x1d6c9a+'\x22')};}return'unlink'==_0x224ee2['commandName']?{'type':'format','content':At(_0x3b267c,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x35090c{['afterInit'](){const _0x20ac12=this['editor'],_0x1898a=_0x20ac12['locale'];if(!_0x20ac12['plugins']['has']('LegacyListEditing'))return;const _0x364805=_0x20ac12['plugins']['get']('TrackChangesEditing'),_0x40b7fc=_0x20ac12['plugins']['has']('LegacyTodoListEditing');function _0x5dae24(_0x42191a){return()=>{const _0x59d6c5=_0x20ac12['model']['document']['selection'],_0x5b484a=_0x20ac12['commands']['get'](_0x42191a);if(_0x5b484a['value'])return void _0x20ac12['execute']('paragraph',{});const _0x2be702=_0x42191a['slice'](0x0,-0x4),_0x2f1217=function(_0x384a10,_0x13d68f,_0x5e2438){let _0x1cc75b=Array['from'](_0x384a10)['filter'](_0x870b6=>function(_0x597efc,_0x5baf6f){return _0x5baf6f['checkChild'](_0x597efc['parent'],'listItem')&&!_0x5baf6f['isObject'](_0x597efc);}(_0x870b6,_0x5e2438));_0x1cc75b=_0x1cc75b['filter'](_0x3c2e1f=>!_0x3c2e1f['is']('element','listItem')||_0x3c2e1f['getAttribute']('listType')!=_0x13d68f);const _0x1be390=new Set();for(const _0x2e64cd of _0x1cc75b)_0x2e64cd['is']('element','listItem')?_0x1be390['add'](he(_0x2e64cd)):_0x1be390['add'](_0x2e64cd);return Array['from'](_0x1be390);}(_0x59d6c5['getSelectedBlocks'](),_0x2be702,_0x20ac12['model']['schema']);_0x20ac12['model']['change'](()=>{for(const _0x3152b1 of _0x2f1217)_0x364805['markBlockFormat'](_0x3152b1,{'commandName':_0x42191a,'commandParams':[{'forceValue':!_0x5b484a['value']}],'formatGroupId':'blockName'},de(_0x3152b1));});};}function _0x152650(_0x4fda06){return()=>{const _0xa7aff0=function(_0x5c6f1e){let _0x5520cb=Array['from'](_0x5c6f1e);const _0x43f734=_0x5520cb['findIndex'](_0x539d41=>'listItem'!=_0x539d41['name']);return _0x43f734>-0x1&&(_0x5520cb=_0x5520cb['slice'](0x0,_0x43f734)),_0x5520cb;}(_0x20ac12['model']['document']['selection']['getSelectedBlocks']()),_0x5342a8=_0x20ac12['model']['createRange'](_0x20ac12['model']['createPositionAt'](_0xa7aff0[0x0],'before'),_0x20ac12['model']['createPositionAt'](_0xa7aff0[_0xa7aff0['length']-0x1],'end'));_0x20ac12['model']['change'](()=>{_0x364805['markBlockFormat'](_0x5342a8,{'commandName':_0x4fda06,'commandParams':[],'formatGroupId':'listIndent'},function(_0x16f60d){const _0x324156=new Set();for(const _0x33317f of _0x16f60d){let _0x3e6a46=_0x33317f['nextSibling'];for(;_0x3e6a46&&_0x3e6a46['getAttribute']('listIndent')>_0x33317f['getAttribute']('listIndent');)_0x324156['add'](_0x3e6a46),_0x3e6a46=_0x3e6a46['nextSibling'];}return Array['from'](_0x324156);}(_0xa7aff0));});};}_0x364805['enableCommand']('numberedList',_0x5dae24('numberedList')),_0x364805['enableCommand']('bulletedList',_0x5dae24('bulletedList')),_0x40b7fc&&_0x364805['enableCommand']('todoList',_0x5dae24('todoList')),_0x364805['enableCommand']('indentList',_0x152650('indentList')),_0x364805['enableCommand']('outdentList',_0x152650('outdentList')),_0x40b7fc&&_0x364805['enableCommand']('checkTodoList',()=>{const _0x47a564=_0x20ac12['commands']['get']('checkTodoList'),_0xbf845a=Array['from'](_0x47a564['_selectedElements']);_0xbf845a['filter'](_0x43cc44=>_0x43cc44['getAttribute']('todoListChecked')!=_0x47a564['value']),_0x20ac12['model']['change'](()=>{for(const _0x44cd3d of _0xbf845a)_0x364805['markBlockFormat'](_0x44cd3d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x47a564['value']}]});});}),_0x364805['descriptionFactory']['registerElementLabel']('listItem',_0x1d54ac=>At(_0x1898a,'ELEMENT_LIST_ITEM',_0x1d54ac)),_0x364805['descriptionFactory']['registerDescriptionCallback'](_0x1c8b94=>{if('formatBlock'!=_0x1c8b94['type']&&'formatInline'!=_0x1c8b94['type'])return;const {data:_0x14220a}=_0x1c8b94;if(_0x14220a){if('numberedList'==_0x14220a['commandName']||'bulletedList'==_0x14220a['commandName']||'todoList'==_0x14220a['commandName'])switch(_0x14220a['commandName']['replace']('List','')){case'bulleted':return _0x5c18ca(At(_0x1898a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c18ca(At(_0x1898a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c18ca(At(_0x1898a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x14220a['commandName'])return{'type':'format','content':At(_0x1898a,'*Indent:*\x20%0',At(_0x1898a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x14220a['commandName'])return{'type':'format','content':At(_0x1898a,'*Outdent:*\x20%0',At(_0x1898a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x14220a['commandName'])return _0x14220a['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1898a,'*Check\x20item*')}:{'type':'format','content':At(_0x1898a,'*Uncheck\x20item*')};}function _0x5c18ca(_0x90752){return{'type':'format','content':At(_0x1898a,'*Change\x20to:*\x20%0',_0x90752)};}});}}function he(_0x2ac333){const _0x4f42c8=_0x2ac333['getAttribute']('listIndent');if(0x0==_0x4f42c8)return _0x2ac333;let _0x3e417a=_0x2ac333;for(;_0x2ac333['previousSibling']&&_0x2ac333['previousSibling']['is']('element','listItem');){const _0x2258ee=_0x2ac333['previousSibling']['getAttribute']('listIndent');if(_0x2258ee==_0x4f42c8)_0x3e417a=_0x2ac333['previousSibling'];else{if(_0x2258ee<_0x4f42c8)break;}_0x2ac333=_0x2ac333['previousSibling'];}return _0x3e417a;}function de(_0xb86052){const _0x438ff6=[];if(_0xb86052['is']('element','listItem')&&_0xb86052['getAttribute']('listIndent')>0x0){let _0x44e792=_0xb86052['nextSibling'];for(;_0x44e792&&'listItem'==_0x44e792['name']&&_0x44e792['getAttribute']('listIndent')==_0xb86052['getAttribute']('listIndent');)_0x438ff6['push'](_0x44e792),_0x44e792=_0x44e792['nextSibling'];}return _0x438ff6;}class fe extends _0x35090c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x52061c=this['editor']['config']['get']('list.properties'),_0x2d4ef3=this['editor']['plugins']['get']('TrackChangesEditing');_0x52061c['styles']&&_0x2d4ef3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x52061c['reversed']&&_0x2d4ef3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x52061c['startIndex']&&_0x2d4ef3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2d4ef3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4a8738,_0x2eb780={}){const _0x4c082d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x779a37=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4c082d['markMultiRangeBlockFormat'](_0x779a37,{'commandName':'listStyle','commandParams':[{'type':_0x2eb780['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1251e7,_0x17b360={}){const _0x1e289f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f7785=this['_getSuggestionBlocks'](_0x5f2d72=>_0x5f2d72['is']('element','listItem')&&'numbered'===_0x5f2d72['getAttribute']('listType'));if(_0x3f7785['length']<0x1)return;const _0x4ac1c5=_0x3f7785['map'](_0x4db8c1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4db8c1,'before'),this['editor']['model']['createPositionAt'](_0x4db8c1,0x0)));this['editor']['model']['change'](()=>{_0x1e289f['markMultiRangeBlockFormat'](_0x4ac1c5,{'commandName':'listReversed','commandParams':[{'reversed':_0x17b360['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x59b30c,_0x11e930={}){const _0x45157c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x256ac5=this['_getSuggestionBlocks'](_0x4135a7=>_0x4135a7['is']('element','listItem')&&'numbered'===_0x4135a7['getAttribute']('listType'));if(_0x256ac5['length']<0x1)return;const _0x4bcb99=_0x256ac5['map'](_0x53f149=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53f149,'before'),this['editor']['model']['createPositionAt'](_0x53f149,0x0)));this['editor']['model']['change'](()=>{_0x45157c['markMultiRangeBlockFormat'](_0x4bcb99,{'commandName':'listStart','commandParams':[{'startIndex':_0x11e930['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1ad18d){if('formatBlock'!=_0x1ad18d['type']&&'formatInline'!=_0x1ad18d['type'])return;const _0x29b19e=this['editor']['locale'],{data:_0x4e94a0}=_0x1ad18d;if(!_0x4e94a0)return;let _0x4b0ee4,_0x102fe4;switch(_0x4e94a0['commandName']){case'listStyle':_0x4b0ee4='*Change\x20to:*\x20%0',_0x102fe4={'type':'format','content':At(_0x29b19e,_0x4b0ee4,At(_0x29b19e,this['_getTranslationKeyForListStyle'](_0x4e94a0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4b0ee4=_0x4e94a0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x102fe4={'type':'format','content':At(_0x29b19e,_0x4b0ee4)};break;case'listStart':_0x4b0ee4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x102fe4={'type':'format','content':At(_0x29b19e,_0x4b0ee4,_0x4e94a0['commandParams'][0x0]['startIndex'])};}return _0x102fe4;}['_getSuggestionBlocksForListStyle'](){const _0x174bf6=this['editor']['plugins']['get']('LegacyListUtils');let _0x2ac72d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2ac72d[0x0]?.['is']('element','listItem')&&_0x2ac72d['unshift'](..._0x174bf6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2ac72d[_0x2ac72d['length']-0x1]?.['is']('element','listItem')&&_0x2ac72d['push'](..._0x174bf6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2ac72d=[...new Set(_0x2ac72d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2ac72d=_0x2ac72d['filter'](_0x3a4ff1=>_0x3a4ff1['is']('element','listItem'))),_0x2ac72d;}['_getSuggestionBlocks'](_0x441bf8){const _0x14f1d0=this['editor']['plugins']['get']('LegacyListUtils');let _0x33d1b2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x441bf8)['map'](_0x5da4c4=>{const _0x19590f=this['editor']['model']['createPositionAt'](_0x5da4c4,0x0);return[..._0x14f1d0['getSiblingNodes'](_0x19590f,'backward'),..._0x14f1d0['getSiblingNodes'](_0x19590f,'forward')];})['flat']();return _0x33d1b2=[...new Set(_0x33d1b2)],_0x33d1b2;}['_getTranslationKeyForListStyle'](_0x21af3e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x21af3e)||'default')['toUpperCase']()+'_LIST_'+_0x21af3e['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x35090c{['afterInit'](){const _0x3ef1d3=this['editor'];if(!_0x3ef1d3['plugins']['has']('MediaEmbedEditing'))return;const _0x32fb27=_0x3ef1d3['plugins']['get']('TrackChangesEditing'),_0x62a177=_0x3ef1d3['locale'];_0x32fb27['enableCommand']('mediaEmbed'),_0x32fb27['descriptionFactory']['registerElementLabel']('media',_0x1fc0fa=>At(_0x62a177,'ELEMENT_MEDIA',_0x1fc0fa));}}class me extends _0x35090c{['afterInit'](){const _0x49a386=this['editor'];_0x49a386['plugins']['has']('MentionEditing')&&_0x49a386['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x35090c{['afterInit'](){const _0x32bd87=this['editor'];if(!_0x32bd87['plugins']['has']('MergeFieldsEditing'))return;const _0x24a518=_0x32bd87['plugins']['get']('TrackChangesEditing'),_0x31fd62=_0x32bd87['locale'];_0x24a518['enableCommand']('insertMergeField'),_0x24a518['enableCommand']('insertMergeFieldBlock'),_0x24a518['enableCommand']('insertMergeFieldImage'),_0x24a518['descriptionFactory']['registerElementLabel']('mergeField',_0x55c07d=>At(_0x31fd62,'ELEMENT_MERGE_FIELD',_0x55c07d)),_0x24a518['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x375623=>At(_0x31fd62,'ELEMENT_MERGE_FIELD',_0x375623)),_0x24a518['descriptionFactory']['registerDescriptionCallback'](_0x317555=>{if('insertion'!=_0x317555['type']&&'deletion'!=_0x317555['type'])return;const _0x99f1e9=_0x317555['getContainedElement']();if(null==_0x99f1e9)return;const _0x2edb62=_0x32bd87['plugins']['get']('MergeFieldsEditing');let _0x1933b6;switch(_0x2edb62['getMergeFieldType'](_0x99f1e9)){case null:return;case'image':{const _0x454398=_0x2edb62['unwrapAffixes'](_0x99f1e9['getAttribute']('src'));_0x1933b6=_0x2edb62['getLabel'](_0x454398)||_0x454398;break;}default:{const _0x55f323=_0x99f1e9['getAttribute']('id');_0x1933b6=_0x2edb62['getLabel'](_0x55f323)||_0x55f323;break;}}return'insertion'==_0x317555['type']?{'type':'insertion','content':At(_0x31fd62,'*Insert:*\x20%0','\x22'+_0x1933b6+'\x22\x20'+At(_0x31fd62,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x31fd62,'*Remove:*\x20%0','\x22'+_0x1933b6+'\x22\x20'+At(_0x31fd62,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x35090c{['afterInit'](){const _0x16ccc5=this['editor'],_0x56016b=_0x16ccc5['plugins']['get']('TrackChangesEditing');_0x16ccc5['plugins']['has']('MultiLevelList')&&(_0x56016b['enableDefaultAttributesIntegration']('multiLevelList'),_0x56016b['descriptionFactory']['registerDescriptionCallback'](_0x5c9914=>this['handleDescriptions'](_0x5c9914)));}['handleDescriptions'](_0x3b5ce8){const _0x1752ce=this['editor']['locale'],{data:_0x4df0f5}=_0x3b5ce8,_0x610edb={'type':'format','content':''};if(_0x4df0f5&&'listMarkerStyle'==_0x4df0f5['key']){if(!_0x4df0f5['oldValue'])return{'type':'format','content':At(_0x1752ce,'*Set\x20format:*\x20%0',At(_0x1752ce,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4df0f5['newValue']+')'};if(!_0x4df0f5['newValue']){let _0x5b0641=_0x3b5ce8['head'];for(;_0x5b0641;){if(_0x5b0641['data']&&'listType'==_0x5b0641['data']['key']&&_0x5b0641['data']['newValue'])return _0x610edb;_0x5b0641=_0x5b0641['next'];}return{'type':'format','content':At(_0x1752ce,'*Remove\x20format:*\x20%0',At(_0x1752ce,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4df0f5['oldValue']+')'};}}}}class _e extends _0x35090c{['afterInit'](){const _0x2be774=this['editor'];if(!_0x2be774['plugins']['has']('PageBreakEditing'))return;_0x2be774['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2207b3=_0x2be774['plugins']['get']('TrackChangesEditing'),_0x46cd0a=_0x2be774['locale'];_0x2207b3['descriptionFactory']['registerElementLabel']('pageBreak',_0x1e5b53=>At(_0x46cd0a,'ELEMENT_PAGE_BREAK',_0x1e5b53));}}class pe extends _0x35090c{['afterInit'](){const _0x103558=this['editor'];if(!_0x103558['plugins']['has']('Paragraph'))return;const _0x5c810a=_0x103558['locale'],_0x19e659=_0x103558['plugins']['get']('TrackChangesEditing');_0x19e659['descriptionFactory']['registerElementLabel']('paragraph',_0x37dbdb=>At(_0x5c810a,'ELEMENT_PARAGRAPH',_0x37dbdb)),_0x19e659['enableDefaultAttributesIntegration']('paragraph'),_0x19e659['enableCommand']('insertParagraph');const _0x4ae943=_0x19e659['descriptionFactory'];_0x4ae943['registerDescriptionCallback'](_0x58c002=>{if('insertion'!==_0x58c002['type'])return;const {start:_0x4d6a21,end:_0x2332c5}=_0x58c002['getFirstRange']();if(!_0x4d6a21['isTouching'](_0x2332c5)||!_0x4d6a21['nodeAfter'])return;const _0x193c22=_0x103558['model']['schema'],_0x63dbee=_0x4d6a21['nodeAfter'];return _0x193c22['isBlock'](_0x63dbee)&&!_0x193c22['isLimit'](_0x63dbee)&&_0x193c22['checkChild'](_0x63dbee,'$text')?{'type':'insertion','content':At(_0x5c810a,'*Insert:*\x20%0',_0x4ae943['getItemLabel'](_0x63dbee,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1533cf=this['editor'],_0x240038=_0x1533cf['locale'];_0x1533cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a4772=>{if('formatBlock'!=_0x5a4772['type'])return;const {data:_0x3b2c52}=_0x5a4772;return _0x3b2c52&&'paragraph'==_0x3b2c52['commandName']?{'type':'format','content':At(_0x240038,'*Change\x20to:*\x20%0',At(_0x240038,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x35090c{['afterInit'](){const _0x53fe78=this['editor'];_0x53fe78['commands']['get']('replaceSource')&&_0x53fe78['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x35090c{['afterInit'](){const _0x378f5d=this['editor'];if(!_0x378f5d['plugins']['has']('RemoveFormatEditing'))return;_0x378f5d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15de6c=this['editor'];_0x15de6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a7cb1=>{if('formatBlock'!=_0x3a7cb1['type']&&'formatInline'!=_0x3a7cb1['type'])return;const {data:_0x493d1c}=_0x3a7cb1;return _0x493d1c&&'removeFormat'==_0x493d1c['commandName']?{'type':'format','content':At(_0x15de6c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x35090c{['afterInit'](){const _0x1bdc04=this['editor'];if(!_0x1bdc04['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xba394e=_0x1bdc04['plugins']['get']('TrackChangesEditing');_0xba394e['enableCommand']('goToPreviousRestrictedEditingException'),_0xba394e['enableCommand']('goToNextRestrictedEditingException');const _0x4a7b27=_0x1bdc04['plugins']['get']('RestrictedEditingModeEditing');_0x4a7b27['enableCommand']('trackChanges'),_0x4a7b27['enableCommand']('acceptSuggestion'),_0x4a7b27['enableCommand']('discardSuggestion'),_0x4a7b27['enableCommand']('acceptAllSuggestions'),_0x4a7b27['enableCommand']('discardAllSuggestions'),_0x4a7b27['enableCommand']('acceptSelectedSuggestions'),_0x4a7b27['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x35090c{['afterInit'](){const _0x4a3337=this['editor'];if(!_0x4a3337['plugins']['has']('ShiftEnter'))return;const _0xd5688a=_0x4a3337['plugins']['get']('TrackChangesEditing');_0xd5688a['enableCommand']('shiftEnter'),_0xd5688a['descriptionFactory']['registerElementLabel']('softBreak',_0xc64930=>At(_0x4a3337['locale'],'ELEMENT_LINE_BREAK',_0xc64930));}}function ke(_0x305c45,_0x34c0bc,_0x4ae8ff){const _0x11803e=[];for(const _0x77b587 of _0x34c0bc['getItems']())_0x77b587['hasAttribute'](_0x305c45)&&_0x11803e['push'](_0x4ae8ff['createRangeOn'](_0x77b587));return _0x11803e;}class Ce extends _0x35090c{['afterInit'](){const _0x4d78f0=this['editor'],_0x203797=_0x4d78f0['plugins']['get']('TrackChangesEditing');_0x4d78f0['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x203797['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x37c715=this['editor'],_0x132a52=_0x37c715['model'],_0x1899c1=_0x37c715['locale'],_0x19028c=_0x37c715['plugins']['get']('TrackChangesEditing'),_0x593dec='restrictedEditingException',_0x23fa1f=_0x37c715['commands']['get'](_0x593dec);_0x19028c['enableCommand'](_0x593dec,(_0x494a7a,_0x2af4d6={})=>{const _0x1c0019=_0x132a52['document']['selection'];if(_0x1c0019['isCollapsed'])return void _0x494a7a(_0x2af4d6);const _0x54fa89=void 0x0!==_0x2af4d6['forceValue']?_0x2af4d6['forceValue']:!_0x23fa1f['value'];_0x132a52['change'](()=>{const _0x197faf=Array['from'](_0x1c0019['getRanges']());for(const _0x447cca of _0x197faf){const _0x585388=_0x54fa89?[_0x447cca]:ke(_0x593dec,_0x447cca,_0x132a52);for(const _0x432781 of _0x585388)_0x19028c['markInlineFormat'](_0x432781,{'commandName':_0x593dec,'commandParams':[{'forceValue':_0x54fa89}]});}});}),_0x19028c['descriptionFactory']['registerDescriptionCallback'](_0x224dac=>{if('formatBlock'!=_0x224dac['type']&&'formatInline'!=_0x224dac['type'])return;const {data:_0x245fbf}=_0x224dac;return _0x245fbf&&_0x245fbf['commandName']==_0x593dec?_0x245fbf['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1899c1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x1899c1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x56b7b3=this['editor'],_0x199839=_0x56b7b3['locale'],_0x2f78d4=_0x56b7b3['plugins']['get']('TrackChangesEditing'),_0x1ade12='restrictedEditingExceptionBlock',_0x2df18e=this['editor']['commands']['get'](_0x1ade12);_0x2f78d4['enableCommand'](_0x1ade12,(_0xc3925a,_0xe6b71f={})=>{const _0x36e1c2=this['editor']['model']['document']['selection'],_0x4434d3=_0xe6b71f&&void 0x0!==_0xe6b71f['forceValue']?_0xe6b71f['forceValue']:!_0x2df18e['value'];let _0x1ee8ef=[];if(_0x4434d3){const _0x520459=Array['from'](_0x36e1c2['getSelectedBlocks']())['filter'](_0x1f6a0b=>function(_0x1e7d01){return!!_0x1e7d01['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1f6a0b)||function(_0x2e4f84,_0x2fcad5){const _0x34c7c9=_0x2fcad5['createContext'](_0x2e4f84['parent']);if(!_0x2fcad5['checkChild'](_0x34c7c9,'restrictedEditingException'))return!0x1;if(!_0x2fcad5['checkChild'](_0x34c7c9['push']('restrictedEditingException'),_0x2e4f84))return!0x1;return!0x0;}(_0x1f6a0b,this['editor']['model']['schema']));_0x1ee8ef=Tt(_0x520459,_0x56b7b3['model']);}else{const _0x3161e7=Array['from'](_0x36e1c2['getSelectedBlocks']())['map'](_0x4db61d=>function(_0x431a11){let _0x4b8961=_0x431a11;for(;_0x4b8961['parent'];){if('restrictedEditingException'==_0x4b8961['parent']['name'])return _0x4b8961;_0x4b8961=_0x4b8961['parent'];}return null;}(_0x4db61d))['filter'](_0x1172a5=>!!_0x1172a5);_0x1ee8ef=Tt(_0x3161e7,_0x56b7b3['model']);}_0x56b7b3['model']['change'](()=>{for(const _0x27f2be of _0x1ee8ef)_0x2f78d4['markBlockFormat'](_0x27f2be,{'commandName':_0x1ade12,'commandParams':[{'forceValue':_0x4434d3}]});});}),_0x2f78d4['descriptionFactory']['registerDescriptionCallback'](_0x37c465=>{const {data:_0x1adcb7}=_0x37c465;if(_0x1adcb7&&_0x1adcb7['commandName']==_0x1ade12)return _0x1adcb7['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x199839,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x199839,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x35090c{['afterInit'](){const _0x1d5883=this['editor'];if(!_0x1d5883['plugins']['has']('Style')||!_0x1d5883['plugins']['has']('DataSchema'))return;const _0x50c465=_0x1d5883['plugins']['get']('TrackChangesEditing'),_0x2c6d17=_0x1d5883['locale'],_0x1d1e8d=_0x1d5883['config']['get']('style')||{},_0x3d5a99=_0x1d5883['plugins']['get']('GeneralHtmlSupport'),_0x3a1375=_0x1d5883['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1d5883['plugins']['get']('DataSchema'),_0x1d1e8d['definitions']);_0x50c465['enableDefaultAttributesIntegration']('style');const _0x713feb=new Set();for(const _0x20afed of _0x3a1375['block']){const _0xe2bea4=_0x3d5a99['getGhsAttributeNameForElement'](_0x20afed['element']);_0x713feb['add'](_0xe2bea4);}const _0x25c944=new Set();for(const _0xad68b7 of _0x3a1375['inline']){const _0x3410b9=_0x3d5a99['getGhsAttributeNameForElement'](_0xad68b7['element']);_0x25c944['add'](_0x3410b9);for(const _0x16ce4b of _0xad68b7['ghsAttributes'])_0x25c944['add'](_0x16ce4b);}for(const _0x8322ca of _0x713feb)_0x50c465['descriptionFactory']['registerAttributeLabel'](_0x8322ca,At(_0x2c6d17,'FORMAT_STYLE'));for(const _0x564530 of _0x25c944)_0x50c465['descriptionFactory']['registerAttributeLabel'](_0x564530,At(_0x2c6d17,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x243d12=this['editor'],_0x1bdb20=_0x243d12['locale'];_0x243d12['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15a68b=>{if('formatBlock'!=_0x15a68b['type']&&'formatInline'!=_0x15a68b['type'])return;const {data:_0x1512fc}=_0x15a68b;return _0x1512fc&&'style'===_0x1512fc['commandName']?_0x1512fc['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1bdb20,'*Set\x20format:*\x20%0',_0x1512fc['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x1bdb20,'*Remove\x20format:*\x20%0',_0x1512fc['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x35090c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xf37e79){super(_0xf37e79),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xa24db9=this['editor'],_0x49ada1=_0xa24db9['model']['document']['selection'];if(!_0xa24db9['plugins']['has']('TableEditing'))return;const _0x38fd60=_0xa24db9['locale'],_0x276ea6=_0xa24db9['plugins']['get']('TrackChangesEditing'),_0xaad5ec=_0xa24db9['plugins']['get']('TableUtils');_0x276ea6['descriptionFactory']['registerElementLabel']('table',_0x4c1d42=>At(_0x38fd60,'ELEMENT_TABLE',_0x4c1d42)),this['_setupColumnsRowsFixing'](),_0x276ea6['enableCommand']('insertTable'),_0x276ea6['enableCommand']('selectTableRow'),_0x276ea6['enableCommand']('selectTableColumn');for(const _0x15de8f of['insertTableRowAbove','insertTableRowBelow']){const _0x40bda4=_0xa24db9['commands']['get'](_0x15de8f);_0x276ea6['enableCommand'](_0x15de8f,_0x490d45=>{_0xa24db9['model']['change'](_0x1c4031=>{_0x490d45();const _0x127672='above'===_0x40bda4['order'],_0x5a654d=_0xaad5ec['getSelectionAffectedTableCells'](_0x49ada1),_0x28f86f=_0xaad5ec['getRowIndexes'](_0x5a654d),_0x41e9a5=_0x127672?_0x28f86f['first']-0x1:_0x28f86f['last']+0x1,_0x25c71b=_0x5a654d[0x0]['findAncestor']('table'),_0x1df8f5=_0xaad5ec['createTableWalker'](_0x25c71b,{'startRow':_0x41e9a5,'endRow':_0x41e9a5}),_0x171759=Array['from'](_0x1df8f5)['map'](_0x3d35ce=>_0x1c4031['createRangeOn'](_0x3d35ce['cell']));_0x276ea6['markMultiRangeInsertion'](_0x171759,'tableRow');});});}for(const _0x8b4578 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5f25d6=_0xa24db9['commands']['get'](_0x8b4578);_0x276ea6['enableCommand'](_0x8b4578,_0x59ea5a=>{_0xa24db9['model']['change'](_0x116490=>{_0x59ea5a();const _0x54d8d7='left'===_0x5f25d6['order'],_0x165594=_0xaad5ec['getSelectionAffectedTableCells'](_0x49ada1),_0x2ce39c=_0xaad5ec['getColumnIndexes'](_0x165594),_0x69e9bd=_0x54d8d7?_0x2ce39c['first']-0x1:_0x2ce39c['last']+0x1,_0x3faa04=_0x165594[0x0]['findAncestor']('table'),_0x2e758e=_0xaad5ec['createTableWalker'](_0x3faa04,{'startRow':0x0,'column':_0x69e9bd,'includeAllSlots':!0x1}),_0x2c926b=Array['from'](_0x2e758e)['map'](_0x3a9112=>_0x116490['createRangeOn'](_0x3a9112['cell']));_0x276ea6['markMultiRangeInsertion'](_0x2c926b,'tableColumn');});});}for(const _0x42de9e of['removeTableRow','removeTableColumn']){const _0x331071=_0x42de9e['substr'](0xb),_0x1bcba2=_0x331071['toLowerCase'](),_0x5b7d27=_0x1bcba2['substr'](0x0,0x3)+'span',_0x47c3d9='table'+_0x331071,_0xcc60e6='min'+_0x331071,_0x4d1abe='max'+_0x331071;_0x276ea6['enableCommand'](_0x42de9e,()=>{_0xa24db9['model']['change'](_0x38ba5d=>{const _0x42878d=_0xaad5ec['getSelectionAffectedTableCells'](_0x49ada1),_0x1e2b9f=_0x42878d[0x0]['findAncestor']('table');let _0x305f82;if('removeTableRow'==_0x42de9e){const _0x2a6de5=_0xaad5ec['getRowIndexes'](_0x42878d);_0x305f82={'startRow':_0x2a6de5['first'],'endRow':_0x2a6de5['last'],'includeAllSlots':!0x0};}else{const _0x57b3ea=_0xaad5ec['getColumnIndexes'](_0x42878d);_0x305f82={'startColumn':_0x57b3ea['first'],'endColumn':_0x57b3ea['last'],'includeAllSlots':!0x0};}const _0x4524e2=_0xaad5ec['createTableWalker'](_0x1e2b9f,_0x305f82),_0x49f7cb=Array['from'](_0x4524e2)['map'](({cell:_0x5dc417})=>_0x5dc417),_0x29ab7c=Re(_0x49f7cb['filter'](_0xcf1018=>_0xcf1018['hasAttribute'](_0x5b7d27))),_0x1223a4=Re(_0x49f7cb['filter'](_0x420c40=>!_0x420c40['hasAttribute'](_0x5b7d27)))['map'](_0x42ed80=>_0x38ba5d['createRangeOn'](_0x42ed80)),_0x57a3f1=_0x276ea6['markMultiRangeDeletion'](_0x1223a4,_0x47c3d9);if(_0x57a3f1&&('tableRow'==_0x57a3f1['subType']||'tableColumn'==_0x57a3f1['subType'])){const _0x571a15=this['_getSuggestionCoords'](_0x57a3f1);for(const _0x4b7c5b of _0x29ab7c){const _0xf6a5f0=_0x38ba5d['createRangeOn'](_0x4b7c5b),_0x9a1102=_0xaad5ec['getCellLocation'](_0x4b7c5b),_0x4825a7=_0x4b7c5b['getAttribute'](_0x5b7d27)-0x1,_0x50c598=_0x571a15[_0xcc60e6],_0x517a5d=_0x571a15[_0x4d1abe];_0x50c598<=_0x9a1102[_0x1bcba2]&&_0x9a1102[_0x1bcba2]+_0x4825a7<=_0x517a5d&&_0x57a3f1['addRange'](_0xf6a5f0);}}});});}function _0x5e84ce(_0x31993f){const _0x3511f8=Array['from'](_0x49ada1['getRanges']())['map'](_0x2cb842=>_0x5817c4['fromRange'](_0x2cb842));_0xa24db9['model']['change'](_0x168efe=>{const _0x2d4ff7=_0x168efe['batch'];_0x31993f=_0x31993f['filter'](_0x2a37aa=>'$graveyard'!=_0x2a37aa['root']['rootName']),_0x168efe['setSelection'](_0x31993f),_0xa24db9['commands']['get']('removeTableRow')['refresh'](),_0xa24db9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xa24db9['model']['enqueueChange'](()=>{_0xa24db9['model']['enqueueChange'](_0x2d4ff7,_0x20a58a=>{const _0x2c2e56=_0x3511f8['filter'](_0xdaec8a=>'$graveyard'!=_0xdaec8a['root']['rootName']);_0x2c2e56['length']>0x0&&_0x20a58a['setSelection'](_0x2c2e56);for(const _0x3db2c9 of _0x3511f8)_0x3db2c9['detach']();});});});}function _0x4ca8a4(_0x479fe9){_0xa24db9['model']['change'](_0x5f4eae=>{const _0x1c7bdc=Array['from'](_0x49ada1['getRanges']())['map'](_0x5019ba=>_0x5817c4['fromRange'](_0x5019ba)),_0x6e3f69=[];for(const _0x2ae2ee of _0x479fe9)for(const _0x793b35 of _0x2ae2ee['getItems']({'shallow':!0x0}))_0x6e3f69['push'](_0x793b35);for(const _0x28c705 of _0x6e3f69)'$graveyard'!=_0x28c705['root']['rootName']&&(_0x5f4eae['setSelection'](_0x5f4eae['createPositionAt'](_0x28c705,0x0)),_0xa24db9['commands']['get']('removeTableColumn')['refresh'](),_0xa24db9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5e5eba=_0x1c7bdc['filter'](_0x2c69f3=>'$graveyard'!=_0x2c69f3['root']['rootName']);_0x5e5eba['length']>0x0&&_0x5f4eae['setSelection'](_0x5e5eba);for(const _0x365234 of _0x1c7bdc)_0x365234['detach']();});}function _0x238fa4(_0x2e3cfe,_0x2fa515){return _0x2fa515['every'](_0x43c77c=>_0x2e3cfe['some'](_0x19d66b=>_0x19d66b['end']['isEqual'](_0x43c77c['start'])||_0x43c77c['end']['isEqual'](_0x19d66b['start'])));}function _0x1e0f38(_0x13ebc8,_0x5a9dcb){return!_0x13ebc8['some'](_0x3d9453=>_0x5a9dcb['some'](_0x18d5e1=>_0x3d9453['isIntersecting'](_0x18d5e1)))&&_0x13ebc8['some'](_0xd1a667=>_0x5a9dcb['some'](_0x3d77d5=>_0xd1a667['end']['isTouching'](_0x3d77d5['start'])));}_0x276ea6['descriptionFactory']['registerDescriptionCallback'](_0x4a3fed=>{if('insertion'!=_0x4a3fed['type']&&'deletion'!=_0x4a3fed['type'])return;const _0x122575=_0x4a3fed['getContainedElement']();if(null!=_0x122575&&_0x122575['is']('element','table')){if('insertion'==_0x4a3fed['type']){const _0x2f7150=_0x4a3fed['getItems']()['filter'](_0x5c098c=>_0x5c098c['is']('$textProxy'))['map'](_0x4b8240=>_0x4b8240['data']);if(_0x2f7150['length'])return{'type':'insertion','content':At(_0x38fd60,'*Insert:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2f7150['join']('\x20')+'\x22'))};}if('deletion'==_0x4a3fed['type']){const _0x36b868=_0x4a3fed['getItems']()['filter'](_0x537758=>_0x537758['is']('$textProxy'))['map'](_0x329298=>_0x329298['data']);if(_0x36b868['length'])return{'type':'deletion','content':At(_0x38fd60,'*Remove:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36b868['join']('\x20')+'\x22'))};}}}),_0x276ea6['descriptionFactory']['registerDescriptionCallback'](_0x4cfb4a=>{if('tableRow'==_0x4cfb4a['subType']){const _0x51b591=_0x4cfb4a['getItems']()['filter'](_0x3104fe=>_0x3104fe['is']('$textProxy'))['map'](_0x2b7b48=>_0x2b7b48['data']),_0x31b4ce=this['_getSuggestionCoords'](_0x4cfb4a),_0x105012=_0x31b4ce['maxRow']-_0x31b4ce['minRow']+0x1;if('insertion'==_0x4cfb4a['type'])return _0x51b591['length']?{'type':'insertion','content':At(_0x38fd60,'*Insert:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x105012,'\x22'+_0x51b591['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x38fd60,'*Insert:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_ROW',_0x105012))};if('deletion'==_0x4cfb4a['type'])return _0x51b591['length']?{'type':'deletion','content':At(_0x38fd60,'*Remove:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x105012,'\x22'+_0x51b591['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x38fd60,'*Remove:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_ROW',_0x105012))};}if('tableColumn'==_0x4cfb4a['subType']){const _0x2a7486=_0x4cfb4a['getItems']()['filter'](_0x303233=>_0x303233['is']('$textProxy'))['map'](_0x21b8f4=>_0x21b8f4['data']),_0x2ff7a6=this['_getSuggestionCoords'](_0x4cfb4a),_0x1a225b=_0x2ff7a6['maxColumn']-_0x2ff7a6['minColumn']+0x1;if('insertion'==_0x4cfb4a['type'])return _0x2a7486['length']?{'type':'insertion','content':At(_0x38fd60,'*Insert:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a225b,'\x22'+_0x2a7486['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x38fd60,'*Insert:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_COLUMN',_0x1a225b))};if('deletion'==_0x4cfb4a['type'])return _0x2a7486['length']?{'type':'deletion','content':At(_0x38fd60,'*Remove:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a225b,'\x22'+_0x2a7486['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x38fd60,'*Remove:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_COLUMN',_0x1a225b))};}}),_0x276ea6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5e84ce),_0x276ea6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5e84ce),_0x276ea6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4ca8a4),_0x276ea6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4ca8a4),_0x276ea6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x238fa4),_0x276ea6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x238fa4),_0x276ea6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1e0f38),_0x276ea6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1e0f38);}['_acceptFormatSuggestionCallbackFactory'](){const _0x37dc31=this['editor'],_0x2f49c0=_0x37dc31['model']['document']['selection'];return(_0x5e148e,_0x206dd7)=>{_0x37dc31['model']['change'](_0x1980d2=>{const {commandName:_0x2870ad,commandParams:_0x1cce61}=_0x206dd7;let _0x59cce6=_0x5e148e[0x0]['end']['nodeBefore'];_0x1cce61&&_0x1cce61[0x0]&&!0x1===_0x1cce61[0x0]['forceValue']&&(_0x59cce6=_0x5e148e[0x0]['start']['nodeAfter']);const _0x12cbe1=_0x1980d2['createRangeIn'](_0x59cce6);if('$graveyard'==_0x12cbe1['root']['rootName'])return;const _0x494bec=Array['from'](_0x2f49c0['getRanges']())['map'](_0x5f2d6b=>_0x5817c4['fromRange'](_0x5f2d6b));_0x1980d2['setSelection'](_0x12cbe1),_0x37dc31['commands']['get'](_0x2870ad)['refresh'](),_0x1cce61['push']({'forceDefaultExecution':!0x0}),_0x37dc31['execute'](_0x2870ad,..._0x1cce61);const _0x15d7d9=_0x494bec['filter'](_0x17ed84=>'$graveyard'!=_0x17ed84['root']['rootName']);_0x15d7d9['length']>0x0&&_0x1980d2['setSelection'](_0x15d7d9);for(const _0x2f06cc of _0x494bec)_0x2f06cc['detach']();});};}['_getCoordsForCells'](_0x7112e5){const _0x2d3a0b=this['editor']['plugins']['get']('TableUtils');let _0x4371f4=Number['MAX_SAFE_INTEGER'],_0x1e17d0=Number['MIN_SAFE_INTEGER'],_0x439e15=Number['MAX_SAFE_INTEGER'],_0x125373=Number['MIN_SAFE_INTEGER'];for(const _0xa41f66 of _0x7112e5){if('$graveyard'==_0xa41f66['root']['rootName'])continue;const {row:_0x28e518,column:_0x18c0f9}=_0x2d3a0b['getCellLocation'](_0xa41f66),_0x12017f=_0xa41f66['hasAttribute']('rowspan')?_0xa41f66['getAttribute']('rowspan')-0x1:0x0,_0x343600=_0xa41f66['hasAttribute']('colspan')?_0xa41f66['getAttribute']('colspan')-0x1:0x0;_0x4371f4=_0x28e518<_0x4371f4?_0x28e518:_0x4371f4,_0x1e17d0=_0x28e518+_0x12017f>_0x1e17d0?_0x28e518+_0x12017f:_0x1e17d0,_0x439e15=_0x18c0f9<_0x439e15?_0x18c0f9:_0x439e15,_0x125373=_0x18c0f9+_0x343600>_0x125373?_0x18c0f9+_0x343600:_0x125373;}return{'minRow':_0x4371f4,'maxRow':_0x1e17d0,'minColumn':_0x439e15,'maxColumn':_0x125373};}['_setupColumnsRowsFixing'](){const _0x34f0e0=this['editor'],_0x2fc544=_0x34f0e0['plugins']['get']('TrackChangesEditing'),_0x563778=_0x34f0e0['plugins']['get']('TableUtils');_0x34f0e0['model']['document']['on']('change:data',()=>{const _0x2c2d79=Array['from'](_0x34f0e0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28bf55,data:_0x1fa0ed}of _0x2c2d79){const {group:_0x2c7d20,id:_0x24c371,subType:_0x22c13f}=_0x4dc3a3(_0x28bf55);if('suggestion'!=_0x2c7d20)continue;if(null!=_0x1fa0ed['oldRange'])continue;const _0x4df739=_0x2fc544['getSuggestion'](_0x24c371);this['_tablePostFixingSubtypes']['includes'](_0x22c13f)&&this['_tableSuggestions']['add'](_0x4df739);}},{'priority':'low'});const _0x4977b6=(_0x48650d,_0x4098f1)=>{let _0x4d8150=!0x1;const _0x5834ef=_0x4098f1['createRangeOn'](_0x48650d),_0x308645=_0x48650d['findAncestor']('table'),_0x4f37d8=_0x563778['getCellLocation'](_0x48650d);for(const _0x59edd9 of this['_tableSuggestions']){const _0x27156a=_0x59edd9['subType'],_0x38c341=_0x27156a['startsWith']('tablePaste'),_0x3ee16d=_0x27156a['substr'](_0x38c341?0xa:0x5),_0x462280=_0x3ee16d['toLowerCase'](),_0x5cdb9e=_0x462280['substr'](0x0,0x3)+'span',_0x315ac4='min'+_0x3ee16d,_0xf85e10='max'+_0x3ee16d;if(!_0x59edd9['isInContent'])continue;if(_0x308645!=_0x59edd9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x59edd9['isIntersectingWithRange'](_0x5834ef))continue;const _0x3dae6b=_0x48650d['hasAttribute'](_0x5cdb9e)?_0x48650d['getAttribute'](_0x5cdb9e)-0x1:0x0,_0x3c721c=this['_getSuggestionCoords'](_0x59edd9),_0x407239=_0x3c721c[_0x315ac4],_0x3b3eec=_0x3c721c[_0xf85e10];_0x407239<=_0x4f37d8[_0x462280]&&_0x4f37d8[_0x462280]+_0x3dae6b<=_0x3b3eec&&(_0x59edd9['addRange'](_0x5834ef),_0x4d8150=!0x0);}return _0x4d8150;};_0x34f0e0['model']['document']['registerPostFixer'](_0x301286=>{let _0x28f9a6=!0x1;for(const _0x157d3a of _0x34f0e0['model']['document']['differ']['getChanges']())if('insert'==_0x157d3a['type']){if('tableRow'==_0x157d3a['name']){for(const _0x322863 of _0x157d3a['position']['nodeAfter']['getChildren']())_0x28f9a6=_0x28f9a6||_0x4977b6(_0x322863,_0x301286);}else'tableCell'==_0x157d3a['name']&&(_0x28f9a6=_0x28f9a6||_0x4977b6(_0x157d3a['position']['nodeAfter'],_0x301286));}return _0x28f9a6;});}['_getSuggestionCoords'](_0x51f4e5){return this['_getCoordsForCells'](_0x51f4e5['getRanges']()['map'](_0xcd475e=>_0xcd475e['start']['nodeAfter']));}}function Re(_0xa6ad09){return Array['from'](new Set(_0xa6ad09)['values']());}class Se extends _0x35090c{static get['requires'](){return[Ne];}['afterInit'](){const _0x31396c=this['editor'],_0x440be9=_0x31396c['model']['document']['selection'],_0x71bcec=_0x31396c['locale'];if(!_0x31396c['plugins']['has']('TableEditing'))return;const _0x2ff2f1=_0x31396c['plugins']['get']('TrackChangesEditing'),_0x4c3f2d=_0x31396c['plugins']['get']('TableUtils'),_0x4c7e3d=_0x31396c['plugins']['get'](Ne);_0x4c7e3d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2ff2f1['enableCommand']('mergeTableCells',()=>{const _0x3a0930=_0x4c3f2d['getSelectionAffectedTableCells'](_0x31396c['model']['document']['selection']);_0x31396c['model']['change'](()=>{_0x2ff2f1['markMultiRangeBlockFormat'](_0x3a0930,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x31396c['commands']['get']('mergeTableCells')['on']('execute',(_0x49ab9d,_0xe640e0)=>{_0x31396c['commands']['get']('trackChanges')['value']&&(_0xe640e0['length']>0x0&&_0xe640e0[_0xe640e0['length']-0x1]&&_0xe640e0[_0xe640e0['length']-0x1]['forceDefaultExecution']||_0x2ff2f1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x49ab9d['stop']());},{'priority':'highest'});for(const _0x5b8ff9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x128ce6=_0x31396c['commands']['get'](_0x5b8ff9);_0x2ff2f1['enableCommand'](_0x5b8ff9,()=>{const _0x1fba3a=_0x31396c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x42fe0d=>_0x42fe0d['is']('element','tableCell')),_0x596d17=_0x128ce6['value'];_0x31396c['model']['change'](()=>{_0x2ff2f1['markMultiRangeBlockFormat']([_0x1fba3a,_0x596d17],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5af2df of['splitTableCellVertically','splitTableCellHorizontally']){const _0x275562=_0x31396c['commands']['get'](_0x5af2df);_0x2ff2f1['enableCommand'](_0x5af2df,()=>{const _0x1644fb=_0x4c3f2d['getSelectionAffectedTableCells'](_0x31396c['model']['document']['selection'])[0x0],_0x31a97b=_0x1644fb['findAncestor']('table'),{column:_0x4e2571,row:_0x1909b3}=_0x4c3f2d['getCellLocation'](_0x1644fb);let _0x1abd54=[];if('horizontally'==_0x275562['direction']){const _0x4a27bc=_0x4c3f2d['createTableWalker'](_0x31a97b,{'startRow':_0x1909b3,'endRow':_0x1909b3,'includeAllSlots':!0x0});_0x1abd54=Array['from'](_0x4a27bc)['map'](_0x1063fc=>_0x1063fc['cell']);}else{const _0x456510=_0x4c3f2d['createTableWalker'](_0x31a97b,{'column':_0x4e2571,'includeAllSlots':!0x0});_0x1abd54=Array['from'](_0x456510)['map'](_0x3f33cd=>_0x3f33cd['cell']);}_0x31396c['model']['change'](_0x5aa3fe=>{_0x2ff2f1['markBlockFormat'](_0x5aa3fe['createRangeOn'](_0x1644fb),{'commandName':_0x5af2df,'commandParams':[]},_0x1abd54,_0x5af2df);});});}_0x2ff2f1['descriptionFactory']['registerDescriptionCallback'](_0x3d9626=>{if('formatBlock'!=_0x3d9626['type']&&'formatInline'!=_0x3d9626['type'])return;const {data:_0x4de460}=_0x3d9626;return _0x4de460&&'mergeTableCells'==_0x4de460['commandName']?{'type':'format','content':At(_0x71bcec,'*Merge\x20cells*')}:void 0x0;}),_0x2ff2f1['descriptionFactory']['registerDescriptionCallback'](_0x19689b=>{if('formatBlock'!=_0x19689b['type']&&'formatInline'!=_0x19689b['type'])return;const {data:_0x2711f0}=_0x19689b;return _0x2711f0?'splitTableCellVertically'==_0x2711f0['commandName']?{'type':'format','content':At(_0x71bcec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2711f0['commandName']?{'type':'format','content':At(_0x71bcec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4713d6=_0x4c7e3d['_acceptFormatSuggestionCallbackFactory']();for(const _0x45222f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2ff2f1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45222f,'accept',_0x4713d6);for(const _0x2fc2fa of['splitTableCellVertically','splitTableCellHorizontally'])_0x2ff2f1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fc2fa,'accept',_0x4713d6);_0x2ff2f1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2f3ed7=>{_0x31396c['model']['change'](_0x1bc7da=>{const _0xc11003=Array['from'](_0x440be9['getRanges']())['map'](_0x5a3436=>_0x5817c4['fromRange'](_0x5a3436));_0x1bc7da['setSelection'](_0x2f3ed7),_0x31396c['commands']['get']('mergeTableCells')['refresh'](),_0x31396c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x50333f=_0xc11003['filter'](_0x41be0a=>'$graveyard'!=_0x41be0a['root']['rootName']);_0x50333f['length']>0x0&&_0x1bc7da['setSelection'](_0x50333f);for(const _0x13bce7 of _0xc11003)_0x13bce7['detach']();});});for(const _0x24c85f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x57d37c=_0x31396c['commands']['get'](_0x24c85f);_0x57d37c['on']('set:isEnabled',(_0x49d548,_0x3c6394,_0xb7877)=>{if(_0xb7877){const _0x3f836c=_0x31396c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x537c0a=>_0x537c0a['is']('element','tableCell'));this['_areMergableCells'](_0x57d37c['value'],_0x3f836c)||(_0x49d548['return']=!0x1,_0x49d548['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1c3369=this['editor']['commands']['get']('mergeTableCells'),_0x4221a0=this['editor']['plugins']['get']('TableUtils');if(!_0x1c3369['isEnabled'])return!0x1;const _0x24073f=_0x4221a0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5752bd of _0x24073f)for(const _0x3e3929 of _0x24073f)if(_0x5752bd!=_0x3e3929&&!this['_areMergableCells'](_0x5752bd,_0x3e3929))return!0x1;return!0x0;}['_areMergableCells'](_0xd6ea5b,_0x56157d){const _0x22bb69=this['editor']['plugins']['get']('TrackChangesEditing'),_0x247bca=this['editor']['model']['createRangeOn'](_0xd6ea5b),_0x1b7370=this['editor']['model']['createRangeOn'](_0x56157d),_0x1e412c=new Set(),_0x43c5e6=new Set();for(const _0x447b01 of _0x22bb69['getSuggestions']())if(('insertion'==_0x447b01['type']||'deletion'==_0x447b01['type']||'mergeTableCells'==_0x447b01['subType'])&&_0x447b01['isInContent']){for(const _0x19c83b of _0x447b01['getRanges']())_0x19c83b['containsRange'](_0x247bca,!0x0)&&_0x1e412c['add'](_0x447b01['type']+':'+_0x447b01['author']['id']),_0x19c83b['containsRange'](_0x1b7370,!0x0)&&_0x43c5e6['add'](_0x447b01['type']+':'+_0x447b01['author']['id']);}if(_0x1e412c['size']!=_0x43c5e6['size'])return!0x1;for(const _0x20d038 of _0x1e412c)if(!_0x43c5e6['has'](_0x20d038))return!0x1;return!0x0;}}class Me extends _0x35090c{static get['requires'](){return[Ne];}['afterInit'](){const _0x73de7d=this['editor'];if(!_0x73de7d['plugins']['has']('TableEditing'))return;const _0x38eb40=_0x73de7d['locale'],_0x5b8fe=_0x73de7d['plugins']['get']('TrackChangesEditing');_0x5b8fe['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5b8fe['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5b8fe['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x38eb40,'FORMAT_HEADER_ROW')),_0x5b8fe['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x38eb40,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x148828=this['editor']['plugins']['get']('TrackChangesEditing'),_0x223cbc=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x148828['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x223cbc),_0x148828['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x223cbc),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x41ffb3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e0ef9=this['editor']['plugins']['get']('TableUtils');function _0x1b3d9a({showActiveMarker:_0x141864=!0x0,setDataAttribute:_0x1e4164=!0x0}={}){return(_0x6ea2c3,_0x12e04b,_0x16bfb6)=>{const {type:_0x531941,id:_0x223d5a}=_0x4dc3a3(_0x12e04b['markerName']);if(!_0x41ffb3['hasSuggestion'](_0x223d5a))return;const _0x21ac0e=_0x41ffb3['getSuggestion'](_0x223d5a),_0x13640c=_0x21ac0e['data'];if('formatBlock'!=_0x21ac0e['type']||!_0x13640c||'setTableColumnHeader'!=_0x13640c['commandName'])return;if(_0x12e04b['item'])return void _0x6ea2c3['stop']();if(!_0x16bfb6['consumable']['consume'](_0x12e04b['markerRange'],_0x6ea2c3['name']))return;const _0x5353bc=_0x12e04b['markerRange']['start']['nodeAfter'],_0x321be6=_0x12e04b['markerRange']['end']['nodeBefore'],_0x5e5524=_0x5353bc['parent']['parent'],{column:_0x1a5f80}=_0x1e0ef9['getCellLocation'](_0x5353bc),{column:_0x4a056d}=_0x1e0ef9['getCellLocation'](_0x321be6);for(let _0x2cc0de=_0x1a5f80;_0x2cc0de<=_0x4a056d;_0x2cc0de++){const _0xd400a5=_0x1e0ef9['createTableWalker'](_0x5e5524,{'column':_0x2cc0de,'includeAllSlots':!0x1});for(const _0x51c535 of _0xd400a5){const _0x288579=_0x51c535['cell'],_0x2a8fee=_0x16bfb6['mapper']['toViewElement'](_0x288579);_0x16bfb6['writer']['addClass']('ck-suggestion-marker-'+_0x531941,_0x2a8fee),_0x1e4164&&_0x16bfb6['writer']['setAttribute']('data-suggestion',_0x223d5a,_0x2a8fee),_0x16bfb6['mapper']['bindElementToMarker'](_0x2a8fee,_0x12e04b['markerName']),_0x141864&&(_0x41ffb3['activeMarkers']['includes'](_0x12e04b['markerName'])?_0x16bfb6['writer']['addClass']('ck-suggestion-marker--active',_0x2a8fee):_0x16bfb6['writer']['removeClass']('ck-suggestion-marker--active',_0x2a8fee));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1b3d9a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47217b,_0x41bbfd,_0x27b8d8)=>{_0x27b8d8['options']['showSuggestionHighlights']&&_0x1b3d9a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x47217b,_0x41bbfd,_0x27b8d8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x34bdf5,_0x4dc769,_0x12674d)=>{const {type:_0x331218,id:_0x5527b7}=_0x4dc3a3(_0x4dc769['markerName']);if(!_0x41ffb3['hasSuggestion'](_0x5527b7))return;const _0x31a15d=_0x41ffb3['getSuggestion'](_0x5527b7),_0x3f67e2=_0x31a15d['data'];if('formatBlock'!=_0x31a15d['type']||!_0x3f67e2||'setTableColumnHeader'!=_0x3f67e2['commandName'])return;const _0x7365f2=_0x12674d['mapper']['markerNameToElements'](_0x4dc769['markerName']);if(_0x7365f2){for(const _0x207d46 of _0x7365f2)_0x12674d['writer']['removeClass']('ck-suggestion-marker-'+_0x331218,_0x207d46),_0x12674d['writer']['removeClass']('ck-suggestion-marker--active',_0x207d46),_0x12674d['writer']['removeAttribute']('data-suggestion',_0x207d46),_0x12674d['mapper']['unbindElementFromMarkerName'](_0x207d46,_0x4dc769['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x1140f4=this['editor'],_0x1df175=_0x1140f4['locale'];function _0x2aa3cd(_0x465ac9){return{'type':'format','content':At(_0x1df175,'*Format:*\x20%0',_0x465ac9)};}_0x1140f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d7889=>{if('formatBlock'!=_0x1d7889['type'])return;const {data:_0x46385f}=_0x1d7889;if(_0x46385f){if('setTableRowHeader'==_0x46385f['commandName']){const _0x411cb8=_0x46385f['commandParams'][0x0]['forceValue'];return _0x2aa3cd(At(_0x1df175,_0x411cb8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x46385f['commandName']){const _0x4ab930=_0x46385f['commandParams'][0x0]['forceValue'];return _0x2aa3cd(At(_0x1df175,_0x4ab930?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x35090c{static get['requires'](){return[Ne];}['afterInit'](){const _0x3dd7ca=this['editor'];if(!_0x3dd7ca['plugins']['has']('TableEditing')||!_0x3dd7ca['config']['get']('table.enableFooters'))return;const _0x189a77=_0x3dd7ca['locale'],_0x1ed143=_0x3dd7ca['plugins']['get']('TrackChangesEditing');_0x1ed143['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x1ed143['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x189a77,'FORMAT_FOOTER_ROW'));}}class we extends _0x35090c{['afterInit'](){const _0x118ec0=this['editor'],_0x441752=_0x118ec0['locale'],_0x74a10d=_0x118ec0['plugins']['get']('TrackChangesEditing');function _0x11d658(_0x4171a5){return{'type':'format','content':''+At(_0x441752,'*Set\x20table\x20type:*\x20%0',_0x4171a5)};}_0x118ec0['plugins']['has']('TableLayout')&&(_0x74a10d['enableCommand']('insertTableLayout'),_0x74a10d['enableDefaultAttributesIntegration']('tableType'),_0x74a10d['descriptionFactory']['registerElementLabel'](_0x35a89b=>_0x35a89b['is']('element','table')&&'layout'===_0x35a89b['getAttribute']('tableType'),_0x241a33=>At(_0x441752,'ELEMENT_LAYOUT_TABLE',_0x241a33)),_0x74a10d['descriptionFactory']['registerDescriptionCallback'](_0x7ed990=>{const {data:_0x41d726}=_0x7ed990;if(_0x41d726&&'tableType'==_0x41d726['key'])switch(_0x41d726['newValue']){case'layout':return _0x11d658(At(_0x441752,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x11d658(At(_0x441752,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x34e04a=>[_0x34e04a,null]));class De extends _0x35090c{static get['requires'](){return[Ne];}['afterInit'](){const _0x6a30a3=this['editor'];if(!_0x6a30a3['plugins']['has']('TableClipboard'))return;const _0x384754=_0x6a30a3['plugins']['get']('TrackChangesEditing'),_0x296a8a=_0x6a30a3['plugins']['get']('TableUtils'),_0x504e41=_0x6a30a3['plugins']['get'](Ne),_0x3f1d96=_0x6a30a3['plugins']['get']('TableClipboard'),_0x1295e4=_0x6a30a3['plugins']['get']('TableSelection'),_0x544cf5=_0x6a30a3['plugins']['get'](ut);_0x504e41['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x6a30a3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x6a30a3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x294806=null,_0x3d93e9=!0x1;_0x544cf5['on']('contentInsertion',(_0x43549d,_0x2316e2)=>{_0x3d93e9='paste'===_0x2316e2['method'];}),_0x6a30a3['model']['on']('insertContent',(_0x514254,_0x58fa27)=>{if(!_0x3d93e9&&null===_0x1295e4['getSelectedTableCells']())return;const [_0xb40365,_0x1a2379]=_0x58fa27,_0x155150=_0x58fa27[_0x58fa27['length']-0x1];_0x155150&&_0x155150['forceDefaultExecution']||_0x384754['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x64d8a1,_0x4e675b,_0x217f2c,_0x10d155,_0x1f6936){if(_0x4e675b&&!_0x4e675b['is']('documentSelection'))return!0x1;const _0x314956=_0x1f6936['getTableIfOnlyTableInContent'](_0x64d8a1,_0x217f2c);if(!_0x314956||!xe(_0x314956,void 0x0,_0x10d155))return!0x1;const _0x11ec7c=_0x10d155['getSelectionAffectedTableCells'](_0x217f2c['document']['selection']);if(!_0x11ec7c['length'])return!0x1;const _0x1db1cc=_0x11ec7c[0x0]['findAncestor']('table'),_0x4a13c3=_0x10d155['getRowIndexes'](_0x11ec7c),_0x34a789=_0x10d155['getColumnIndexes'](_0x11ec7c),_0x5534d4={'startRow':_0x4a13c3['first'],'endRow':_0x4a13c3['last'],'startColumn':_0x34a789['first'],'endColumn':_0x34a789['last']};return 0x1==_0x11ec7c['length']&&(_0x5534d4['endRow']+=_0x10d155['getRows'](_0x314956)-0x1,_0x5534d4['endColumn']+=_0x10d155['getColumns'](_0x314956)-0x1),xe(_0x1db1cc,_0x5534d4,_0x10d155);}(_0xb40365,_0x1a2379,_0x6a30a3['model'],_0x296a8a,_0x3f1d96)&&(_0x514254['stop'](),_0x294806={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x6a30a3['model']['change'](()=>{_0x6a30a3['model']['insertContent'](_0x58fa27[0x0],_0x58fa27[0x1],_0x58fa27[0x2],{'forceDefaultExecution':!0x0});const _0x13d54e=_0x5b022c(),{rowInsertionRanges:_0x12658f,columnInsertionRanges:_0x4fae9c,insertionRanges:_0x56ca20,deletionRanges:_0x181372,cells:_0x4ffbbf}=_0x294806;_0x12658f['length']&&_0x384754['markMultiRangeInsertion'](_0x12658f,'tablePasteRow',{'tablePasteChainId':_0x13d54e}),_0x4fae9c['length']&&_0x384754['markMultiRangeInsertion'](_0x4fae9c,'tablePasteColumn',{'tablePasteChainId':_0x13d54e}),_0x56ca20['length']&&(_0x384754['markMultiRangeInsertion'](_0x56ca20,'tablePaste',{'tablePasteChainId':_0x13d54e,'skipNestingCheck':!0x0}),_0x56ca20['forEach'](_0x176b68=>_0x176b68['detach']?.())),_0x181372['length']&&(_0x384754['markMultiRangeDeletion'](_0x181372,'tablePaste',{'tablePasteChainId':_0x13d54e,'skipNestingCheck':!0x0}),_0x181372['forEach'](_0x2ef575=>_0x2ef575['detach']?.()));const _0x1f037c=_0x384754['markMultiRangeBlockFormat'](_0x4ffbbf['map'](({element:_0xb5d1a3})=>_0xb5d1a3),{'formatGroupId':_0x5b022c()},[],'tablePasteCell',{'tablePasteChainId':_0x13d54e});if(_0x1f037c){const _0x37f9db=_0x1f037c['getMarkers'](),_0x1349bd=[];for(const {element:_0x5ac987,attributes:_0x51ddd0}of _0x4ffbbf){if(!_0x51ddd0)continue;const _0x2410a4=_0x6a30a3['model']['createRangeOn'](_0x5ac987),_0x2952cb=_0x37f9db['find'](_0x32a6ed=>_0x32a6ed['getRange']()['isEqual'](_0x2410a4));_0x2952cb&&_0x1349bd['push']([_0x2952cb['name'],_0x51ddd0]);}_0x1349bd['length']&&_0x1f037c['setAttribute']('markerAttributes',Object['fromEntries'](_0x1349bd));}_0x294806=null;}));},{'priority':_0x581032['high']+0xa}),_0x544cf5['on']('contentInsertion',()=>{_0x3d93e9=!0x1;},{'priority':'lowest'}),_0x6a30a3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3f011a,_0x5af484)=>{const [_0x5380d9,_0x839681,,_0x3ce425]=_0x5af484;if(!_0x294806)return;_0x3f011a['stop']();const _0x209f84=_0x5380d9['cell'],_0x1dad07=_0x839681,_0x437adc=ve(_0x209f84),_0x5017d8=ve(_0x1dad07);_0x3f011a['return']=_0x209f84;let _0x556958=null,_0x5371e0=null;if(_0x5017d8||_0x437adc){if(_0x437adc&&!_0x5017d8){_0x3ce425['remove'](_0x209f84['getChild'](0x0));for(const _0x20bc6c of Array['from'](_0x1dad07['getChildren']()))_0x3ce425['insert'](_0x20bc6c,_0x209f84,'end');const _0x1fdad3=_0x294806['rowInsertionIndexes']['includes'](_0x5380d9['row']),_0x2bfa43=_0x294806['columnInsertionIndexes']['includes'](_0x5380d9['column']);_0x1fdad3||_0x2bfa43||(_0x556958=_0x5817c4['fromRange'](_0x3ce425['createRangeIn'](_0x209f84)));}else _0x5017d8&&!_0x437adc&&(_0x5371e0=_0x3ce425['createRangeIn'](_0x209f84));}else{const _0x7fd1=_0x3ce425['createElement']('tableCellSuggestion'),_0x5c3c6c=_0x3ce425['createElement']('tableCellSuggestion');_0x3ce425['wrap'](_0x3ce425['createRangeIn'](_0x209f84),_0x5c3c6c),_0x3ce425['insert'](_0x7fd1,_0x209f84,0x0);for(const _0x1b0e74 of Array['from'](_0x1dad07['getChildren']()))_0x3ce425['insert'](_0x1b0e74,_0x7fd1,'end');_0x556958=_0x5817c4['fromRange'](_0x3ce425['createRangeOn'](_0x7fd1)),_0x5371e0=_0x5817c4['fromRange'](_0x3ce425['createRangeOn'](_0x5c3c6c));}const _0x31d3ab=Array['from'](_0x1dad07['getAttributes']())['filter'](([_0x41097d])=>Be['includes'](_0x41097d));_0x294806['cells']['push']({'element':_0x209f84,'attributes':_0x31d3ab['length']?Object['fromEntries'](_0x31d3ab):null}),_0x556958&&_0x294806['insertionRanges']['push'](_0x556958),_0x5371e0&&_0x294806['deletionRanges']['push'](_0x5371e0);},{'priority':'high'}),_0x296a8a['on']('insertColumns',(_0x33fa53,_0x5cf71d)=>{const [_0x306af9,_0x1fca8f={}]=_0x5cf71d;if(!_0x294806)return;const _0x399cde=_0x1fca8f['at']||0x0,_0x4b8697=_0x1fca8f['columns']||0x1;_0x294806['columnInsertionIndexes']=new Array(_0x4b8697)['fill'](_0x399cde)['map']((_0x26dc59,_0x31dad3)=>_0x26dc59+_0x31dad3);for(const {cell:_0xf78267}of _0x296a8a['createTableWalker'](_0x306af9,{'startColumn':_0x399cde,'endColumn':_0x399cde+_0x4b8697-0x1}))_0x294806['columnInsertionRanges']['push'](_0x6a30a3['model']['createRangeOn'](_0xf78267));},{'priority':'low'}),_0x296a8a['on']('insertRows',(_0x138ad0,_0x142cca)=>{const [_0x205cd6,_0x3c8fd8={}]=_0x142cca;if(!_0x294806)return;const _0x25529c=_0x3c8fd8['at']||0x0,_0x52dda9=_0x3c8fd8['rows']||0x1;_0x294806['rowInsertionIndexes']=new Array(_0x52dda9)['fill'](_0x25529c)['map']((_0x4e374c,_0x15d3c1)=>_0x4e374c+_0x15d3c1);for(const {cell:_0x45ee07}of _0x296a8a['createTableWalker'](_0x205cd6,{'startRow':_0x25529c,'endRow':_0x25529c+_0x52dda9-0x1}))_0x294806['rowInsertionRanges']['push'](_0x6a30a3['model']['createRangeOn'](_0x45ee07));},{'priority':'low'}),_0x384754['descriptionFactory']['registerDescriptionCallback'](_0x13554f=>{if(_0x13554f['subType']&&_0x13554f['subType']['startsWith']('tablePaste'))return _0x13554f['previous']?{}:{'type':'insertion','content':At(_0x6a30a3['locale'],'*Replace\x20table\x20cells*')};});const _0x53c6f3=()=>!0x1;for(const _0x3958f2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x384754['_suggestionFactory']['registerCustomCallback']('insertion',_0x3958f2,'join',_0x53c6f3),_0x384754['_suggestionFactory']['registerCustomCallback']('deletion',_0x3958f2,'join',_0x53c6f3),_0x384754['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3958f2,'join',_0x53c6f3);_0x384754['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x53c6f3),_0x384754['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x48f861,_0x934b10,_0x23bdae)=>{const _0xaf52e6=_0x48f861['map'](_0x1a74f5=>_0x1a74f5['getContainedElement']())['filter'](_0x5e2654=>_0x5e2654),_0x50717f=new Map(_0xaf52e6['map'](_0x5dccd3=>[_0x5dccd3,null]));if(_0x294806){for(const {element:_0x2e2d73,attributes:_0x89d1f8}of _0x294806['cells'])_0x89d1f8&&_0x50717f['set'](_0x2e2d73,_0x89d1f8);}else{if(_0x23bdae&&_0x23bdae['markerAttributes'])for(const [_0x250721,_0x40cb68]of Object['entries'](_0x23bdae['markerAttributes'])){const _0x136546=_0x6a30a3['model']['markers']['get'](_0x250721),_0x466943=_0x136546?_0x136546['getRange']()['getContainedElement']():null;_0x466943&&_0x50717f['set'](_0x466943,_0x40cb68);}}_0x6a30a3['model']['change'](_0x141631=>{for(const [_0x4a8b43,_0x40ca46]of _0x50717f)_0x141631['setAttributes']({...Fe,..._0x40ca46},_0x4a8b43);});});const _0x275a6e=(_0x902902,_0x4a7b86)=>{_0x384754['_suggestionFactory']['registerCustomCallback'](_0x902902,'tablePaste',_0x4a7b86,(_0x4d43ba,_0x33370d,_0x3bb409)=>{_0x6a30a3['model']['change'](_0x527345=>{const _0x4a9265=[];for(const _0x315c02 of _0x4d43ba){const _0x2b879e=_0x315c02['start']['nodeAfter'];_0x2b879e['is']('element','tableCellSuggestion')&&_0x4a9265['push'](_0x2b879e);}_0x384754['_suggestionFactory']['getSuggestionCallback'](_0x902902,null,_0x4a7b86)(_0x4d43ba,_0x33370d,_0x3bb409);for(const _0x486cf7 of _0x4a9265)'$graveyard'!=_0x486cf7['root']['rootName']&&_0x527345['unwrap'](_0x486cf7);});});};_0x275a6e('insertion','accept'),_0x275a6e('insertion','discard'),_0x275a6e('deletion','accept'),_0x275a6e('deletion','discard'),_0x384754['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x169800=>{const _0x3f2415=_0x169800['map'](_0x48b65d=>_0x48b65d['getContainedElement']()),_0x4a298e=_0x3f2415[0x0]['findAncestor']('table'),{minRow:_0x256833,maxRow:_0x8b5c27}=_0x504e41['_getCoordsForCells'](_0x3f2415);_0x296a8a['removeRows'](_0x4a298e,{'at':_0x256833,'rows':_0x8b5c27-_0x256833+0x1});}),_0x384754['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5ac990=>{const _0x4ed4df=_0x5ac990['map'](_0x297065=>_0x297065['getContainedElement']()),_0x495c18=_0x4ed4df[0x0]['findAncestor']('table'),{minColumn:_0xc8a13f,maxColumn:_0x538026}=_0x504e41['_getCoordsForCells'](_0x4ed4df);_0x296a8a['removeColumns'](_0x495c18,{'at':_0xc8a13f,'columns':_0x538026-_0xc8a13f+0x1});});const _0xfbfa24=(_0x2c39b7,_0x2b5943)=>{if(!_0x2b5943['subType']||!_0x2b5943['subType']['startsWith']('tablePaste'))return;const _0x32b6f2=_0x2b5943['attributes']['tablePasteChainId'],_0x65234c=_0x384754['getSuggestions']()['filter'](_0x122dcc=>_0x122dcc['isInContent']&&_0x122dcc['attributes']&&_0x122dcc['attributes']['tablePasteChainId']==_0x32b6f2);_0x65234c['length']&&_0x2b5943['getAllAdjacentSuggestions']()['length']!=_0x65234c['length']&&_0x65234c['reduce']((_0x436b7e,_0x234231)=>(_0x436b7e['next']=_0x234231,_0x234231['previous']=_0x436b7e,_0x234231));};function _0x1212e3(_0x4204e6,_0x1a9e14=!0x0){const {id:_0x33c9f9,authorId:_0x37c16f}=_0x4dc3a3(_0x4204e6['markerName']),_0x2d32d3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xbf82bd=_0x384754['activeMarkers']['includes'](_0x4204e6['markerName']);return _0xbf82bd&&_0x2d32d3['push']('ck-suggestion-marker--active'),{'classes':_0x2d32d3,'attributes':{'data-suggestion':_0x33c9f9,'data-author-id':_0x37c16f},'priority':_0xbf82bd&&_0x1a9e14?0xbc2:0xbb8};}_0x384754['on']('suggestionLoaded',_0xfbfa24,{'priority':'high'}),_0x384754['on']('suggestionUnloaded',_0xfbfa24,{'priority':'high'}),_0x6a30a3['model']['document']['registerPostFixer'](()=>{let _0x147005=!0x1;const _0x174dfe=Array['from'](_0x6a30a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48f8cf,data:_0x37b2e0}of _0x174dfe){const {group:_0x558ac2,type:_0x1a6f1f,id:_0x38b6c9}=_0x4dc3a3(_0x48f8cf);if('suggestion'!=_0x558ac2||'deletion'!=_0x1a6f1f||_0x37b2e0['oldRange'])continue;if(!_0x384754['hasSuggestion'](_0x38b6c9))continue;const _0x5724ef=_0x384754['getSuggestion'](_0x38b6c9)['getRanges'](),_0x77664c=_0x6a30a3['plugins']['get']('Users')['me'];for(const _0x1ae498 of _0x384754['getSuggestions']()){if(!_0x1ae498['isInContent']||_0x1ae498['author']!=_0x77664c)continue;if('formatBlock'!=_0x1ae498['type']||'tablePasteCell'!=_0x1ae498['subType'])continue;if(_0x1ae498['getRanges']()['every'](_0x3f8e94=>_0x5724ef['some'](_0x1b5247=>_0x1b5247['containsRange'](_0x3f8e94,!0x0)))){for(const _0x4ea4e0 of _0x1ae498['getAllAdjacentSuggestions']())_0x4ea4e0['isInContent']&&(_0x4ea4e0['discard'](),_0x147005=!0x0);}}}return _0x147005;}),_0x6a30a3['model']['document']['registerPostFixer'](_0x375235=>{const _0x4717b3=_0x6a30a3['commands']['get']('redo');if(!_0x4717b3||!_0x4717b3['_createdBatches']['has'](_0x375235['batch']))return!0x1;let _0x469300=!0x1;const _0x3fb428=_0x6a30a3['plugins']['get']('Users')['me'],_0x52e5c4=_0x6a30a3['model']['document']['differ']['getChanges'](),_0x4dace7=Array['from'](_0x6a30a3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x50100e,data:_0x10e16f})=>{const {group:_0x1c5539,subType:_0x4dade7,authorId:_0x2d7734}=_0x4dc3a3(_0x50100e);return'suggestion'==_0x1c5539&&'tablePaste'==_0x4dade7&&_0x2d7734==_0x3fb428['id']&&!_0x10e16f['oldRange'];});for(const _0x584d87 of _0x52e5c4){if('insert'!=_0x584d87['type']||'tableCellSuggestion'!=_0x584d87['name']||0x1!=_0x584d87['length'])continue;const _0x3ce2ad=_0x375235['createRange'](_0x584d87['position'],_0x584d87['position']['getShiftedBy'](0x1));if(!_0x4dace7['find'](({data:_0x2d81e4})=>_0x2d81e4['newRange']['isEqual'](_0x3ce2ad))){for(const {name:_0x73e624,data:_0x204ee5}of _0x4dace7)if(_0x3ce2ad['containsRange'](_0x204ee5['newRange'])){_0x375235['updateMarker'](_0x73e624,{'range':_0x3ce2ad}),_0x469300=!0x0;break;}}}return _0x469300;}),_0x6a30a3['model']['document']['registerPostFixer'](_0x297236=>{let _0x1a0901=!0x1;const _0x4c4b76=_0x6a30a3['plugins']['get']('Users')['me'],_0x488d80=_0x384754['getSuggestions']()['filter'](_0x365fd4=>_0x365fd4['isInContent']&&_0x365fd4['author']==_0x4c4b76),_0x556b3d=new Set(),_0x42ba17=new Set();for(const _0x5a57ca of _0x488d80)if('tablePaste'==_0x5a57ca['subType'])for(const _0xb3fb5d of _0x5a57ca['getMarkers']()){const _0x2c8897=_0xb3fb5d['getRange']()['getContainedElement']();if(_0x2c8897){if(_0x2c8897['is']('element','tableCellSuggestion')&&ve(_0x2c8897)){_0x5a57ca['removeMarker'](_0xb3fb5d['name']),_0x556b3d['add'](_0x2c8897),_0x1a0901=!0x0;const _0x161520=_0x2c8897['nextSibling'],_0x597ea6=_0x2c8897['previousSibling'],_0x1e678d=_0x161520&&_0x161520['is']('element','tableCellSuggestion'),_0x4c3b03=_0x597ea6&&_0x597ea6['is']('element','tableCellSuggestion');_0x1e678d&&!_0x556b3d['has'](_0x161520)&&_0x42ba17['add'](_0x161520),_0x4c3b03&&!_0x556b3d['has'](_0x597ea6)&&_0x42ba17['add'](_0x597ea6);}else _0x2c8897['is']('element','paragraph')&&_0x2c8897['isEmpty']&&(_0x5a57ca['removeMarker'](_0xb3fb5d['name']),_0x1a0901=!0x0);}}else{if('tablePasteCell'==_0x5a57ca['subType']){if(!_0x5a57ca['attributes']||!_0x5a57ca['attributes']['tablePasteChainId'])continue;const _0x4ca395=_0x5a57ca['attributes']['markerAttributes'];if(_0x4ca395&&Object['keys'](_0x4ca395)['length'])continue;const _0xcb38cc=_0x5a57ca['attributes']['tablePasteChainId'];let _0x391251=!0x0,_0x594cd9=!0x0;for(const _0xcb9e47 of _0x488d80)if(_0xcb9e47['subType']&&_0xcb9e47['subType']['startsWith']('tablePaste')){if(!_0xcb9e47['attributes']['tablePasteChainId']){_0x594cd9=!0x1;break;}if(_0xcb9e47['id']!=_0x5a57ca['id']&&_0xcb9e47['attributes']['tablePasteChainId']==_0xcb38cc){_0x391251=!0x1;break;}}_0x594cd9&&_0x391251&&(_0x5a57ca['removeMarkers'](),_0x1a0901=!0x0);}}for(const _0x20d5ae of _0x556b3d)_0x297236['remove'](_0x20d5ae);for(const _0x78d53a of _0x42ba17)_0x297236['unwrap'](_0x78d53a);return _0x1a0901;}),_0x6a30a3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x279a49=>_0x1212e3(_0x279a49),'converterPriority':'high'}),_0x6a30a3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x101bbf,_0x555c1e)=>_0x555c1e['options']['showSuggestionHighlights']?_0x1212e3(_0x101bbf,!0x1):null,'converterPriority':'high'});const _0x18f984=_0x6a30a3['editing']['view'];this['listenTo'](_0x18f984['document'],'clipboardOutput',(_0xd1f830,_0x1b8380)=>{const _0x759fb3=[];for(const _0x343ea3 of _0x18f984['createRangeIn'](_0x1b8380['content'])['getItems']())_0x343ea3['is']('element','suggestion-td')&&_0x759fb3['push'](_0x343ea3);_0x18f984['change'](_0x2c497c=>{for(const _0x10a208 of _0x759fb3)_0x2c497c['move'](_0x2c497c['createRangeIn'](_0x10a208),_0x2c497c['createPositionBefore'](_0x10a208)),_0x2c497c['remove'](_0x10a208);});});}}function ve(_0x3f45fb){if(_0x3f45fb['isEmpty'])return!0x0;const _0x42ecae=_0x3f45fb['getChild'](0x0);return _0x42ecae['is']('element','paragraph')&&_0x42ecae['isEmpty'];}function xe(_0x43dc3c,_0x2eea85={},_0x1b9fee){for(const {isAnchor:_0x1b257e,cellHeight:_0x1a77d6,cellWidth:_0x30b362}of _0x1b9fee['createTableWalker'](_0x43dc3c,{'includeAllSlots':!0x0,..._0x2eea85}))if(!_0x1b257e||0x1!=_0x1a77d6||0x1!=_0x30b362)return!0x1;return!0x0;}class Pe extends _0x35090c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2090fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x2090fb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2090fb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2090fb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2090fb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2090fb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2090fb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3b6004,_0x3f091e){const _0x1f610c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ee8c7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xb6ed8d=_0x3f091e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x35c4a5=_0x3ee8c7['getColumnGroupElement'](_0xb6ed8d);let _0x4b6f3f=_0x35c4a5?_0x3ee8c7['getTableColumnsWidths'](_0x35c4a5):null,_0x58c665=_0xb6ed8d['getAttribute']('tableWidth')||null;const _0xbfefe6=_0x3f091e['tableWidth']||_0x58c665,_0x59cbd9=_0x3f091e['columnWidths']||_0x4b6f3f,_0x5d4313=this['editor']['plugins']['get']('Users')['me'];for(const _0x549990 of _0x1f610c['getSuggestions']()){const _0x2aad92=_0x549990['getContainedElement']();if('resizeTable'===_0x549990['subType']&&_0x2aad92===_0xb6ed8d){_0x549990['author']!==_0x5d4313&&_0x549990['discard']();const _0xb68ec3=_0x549990['data']['commandParams'];_0x58c665=_0xb68ec3[0x0]['tableWidth'],_0x4b6f3f=_0xb68ec3[0x0]['columnWidths'];break;}}_0x3b6004({'table':_0xb6ed8d,'tableWidth':_0xbfefe6,'columnWidths':_0x59cbd9}),_0x1f610c['markBlockFormat'](_0xb6ed8d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x58c665,'columnWidths':_0x4b6f3f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x26b99f){if('formatBlock'!=_0x26b99f['type']&&'formatInline'!=_0x26b99f['type'])return;const {data:_0x48ccb3}=_0x26b99f;if(_0x48ccb3&&'resizeTable'===_0x48ccb3['formatGroupId']){const _0x4136d8='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x4136d8)};}}}class Ue extends _0x35090c{['afterInit'](){const _0x5cfe91=this['editor'];_0x5cfe91['plugins']['has']('Template')&&_0x5cfe91['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x35090c{['afterInit'](){const _0x45960d=this['editor'];if(!_0x45960d['commands']['get']('insertTableOfContents'))return;_0x45960d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3d38a9=_0x45960d['plugins']['get']('TrackChangesEditing'),_0x4737f3=_0x45960d['locale'];_0x3d38a9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x419c95=>At(_0x4737f3,'ELEMENT_TABLE_OF_CONTENTS',_0x419c95));}}class He extends _0x35090c{['afterInit'](){const _0x4c7fb9=this['editor'];if(!_0x4c7fb9['plugins']['has']('Title'))return;_0x4c7fb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x4c7fb9['locale'],'ELEMENT_TITLE')),_0x4c7fb9['model']['document']['registerPostFixer'](_0x3d1e9e=>{let _0x59bfdc=!0x1;const _0x387b31=Array['from'](_0x4c7fb9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bc375,data:_0x22f9b2}of _0x387b31){const {group:_0x2e7a06}=_0x4dc3a3(_0x1bc375);if('suggestion'!==_0x2e7a06||!_0x22f9b2['newRange'])continue;const _0x5934c8=_0x22f9b2['newRange'],_0x5a32dc=_0x5934c8['end']['nodeBefore'];if(!_0x5a32dc||!_0x5a32dc['is']('element','title-content'))continue;if(!_0x5934c8['start']['isTouching'](_0x5934c8['end']))continue;const _0x39e3cb=_0x4c7fb9['model']['schema']['getNearestSelectionRange'](_0x5934c8['end'],'forward');if(_0x39e3cb&&_0x39e3cb['isCollapsed']){const _0x485bc2=_0x3d1e9e['createRange'](_0x5934c8['start'],_0x39e3cb['start']);_0x485bc2['isEqual'](_0x5934c8)||(_0x3d1e9e['updateMarker'](_0x1bc375,{'range':_0x485bc2}),_0x59bfdc=!0x0);}_0x59bfdc||(_0x3d1e9e['removeMarker'](_0x1bc375),_0x59bfdc=!0x0);}return _0x59bfdc;});}}class $e extends _0x35090c{['afterInit'](){const _0x588188=this['editor'],_0x49d892=_0x588188['plugins']['get']('TrackChangesEditing');_0x588188['plugins']['has']('Uploadcare')&&(_0x49d892['enableCommand']('uploadcare'),_0x588188['plugins']['has']('UploadcareImageEdit')&&(_0x49d892['enableCommand']('uploadcareImageEdit'),_0x49d892['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x49d892['descriptionFactory']['registerDescriptionCallback'](_0x15486e=>{if('attribute'!=_0x15486e['type'])return;const {data:_0x310ef6}=_0x15486e;return _0x310ef6&&'uploadcareImageId'==_0x310ef6['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x35090c{['afterInit'](){const _0x43d40b=this['editor'],_0x1b3ef3=_0x43d40b['plugins']['get']('TrackChangesEditing');_0x43d40b['plugins']['has']('UndoEditing')&&(_0x1b3ef3['enableCommand']('undo'),_0x1b3ef3['enableCommand']('redo'));}}class Ve extends _0x35090c{static get['requires'](){return[Ne];}['afterInit'](){const _0x225911=this['editor'];if(!_0x225911['plugins']['has']('TableCaptionEditing'))return;_0x225911['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x35090c{['tableProperties'];['tableCellProperties'];constructor(_0x5a4751){super(_0x5a4751),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x399123=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1d0995 of this['tableProperties'])_0x399123['enableCommand'](_0x1d0995,(_0x5b794e,_0x5240df)=>{const _0x2da26d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1d0995,[_0x2da26d],this['tableProperties'],'tableProperties',_0x5b794e,_0x5240df);});_0x399123['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x399123['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x399123['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x6bddfa,_0x281b0a)=>this['handleDiscardAction'](this['tableProperties'],_0x6bddfa,_0x281b0a)),_0x399123['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x29c301 of this['tableCellProperties'])this['editor']['commands']['get'](_0x29c301)&&_0x399123['enableCommand'](_0x29c301,(_0x4a20fe,_0x25a6ac)=>{const _0x31e52d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x29c301,_0x31e52d,this['tableCellProperties'],'tableCellProperties',_0x4a20fe,_0x25a6ac);});_0x399123['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x399123['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x399123['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2f9bd6,_0x373fd7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2f9bd6,_0x373fd7)),_0x399123['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x399123['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x399123['descriptionFactory']['registerDescriptionCallback'](_0x250f66=>this['handleSuggestionDescription'](_0x250f66)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5b09cb,_0x82bf4e,_0x46f5d5,_0x3e6c54,_0x215032,_0x8b971c){const _0x1c636c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x8b971c['batch'],()=>{for(const _0x2bf55c of _0x82bf4e){if(this['_getSuggestion'](_0x2bf55c,_0x3e6c54))_0x215032(_0x8b971c);else{const _0x45d111={};for(const _0x259e6b of _0x46f5d5){const _0x4471ae=_0x2bf55c['getAttribute'](_0x259e6b);void 0x0!==_0x4471ae&&(_0x45d111[_0x259e6b]=_0x4471ae);}_0x215032(_0x8b971c),_0x1c636c['markBlockFormat'](_0x2bf55c,{'commandParams':[_0x45d111]},[],_0x3e6c54);}}});}['handleDiscardAction'](_0x19046c,_0x969a72,_0x55c418){const _0x5eee31=_0x969a72[0x0]['start']['nodeAfter'],_0x28af89=_0x55c418['commandParams'][0x0];this['editor']['model']['change'](_0x8958a5=>{for(const _0x30db25 of _0x19046c)void 0x0!==_0x28af89[_0x30db25]?_0x8958a5['setAttribute'](_0x30db25,_0x28af89[_0x30db25],_0x5eee31):_0x8958a5['removeAttribute'](_0x30db25,_0x5eee31);});}['handleSuggestionDescription'](_0xc8a779){if(_0xc8a779['data'])switch(_0xc8a779['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2bfcee,_0xd985e9){const _0x4baf09=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4ed210 of _0x4baf09['getSuggestions']({'skipNotAttached':!0x0})){const _0x450af9=_0x4ed210['getContainedElement']();if(_0x4ed210['subType']===_0xd985e9&&_0x450af9===_0x2bfcee)return _0x4ed210;}return null;}['_registerTablePropertiesAttributes'](){const _0xe0ae7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ab9cc=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x20f38a of _0x1ab9cc){const _0x139a22=_0x20f38a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xe0ae7['descriptionFactory']['registerAttributeLabel'](_0x20f38a,At(this['editor']['locale'],'FORMAT_'+_0x139a22));}}}class ze extends _0x35090c{['afterInit'](){const _0xa5aa0c=this['editor'];if(!_0xa5aa0c['plugins']['has']('LineHeight'))return;const _0x16b5a9=_0xa5aa0c['plugins']['get']('TrackChangesEditing'),_0xdc7669=_0xa5aa0c['locale'];_0x16b5a9['enableDefaultAttributesIntegration']('lineHeight'),_0x16b5a9['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0xdc7669,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x35090c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x2eae3a,_0x495abb,_0x5afd1d,_0x24aa37,_0x188216,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10f97b){super(_0x10f97b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xac9ce9,_0x1ff33c,_0x7bc7f,_0x16cb44)=>{this['_model']['change'](()=>{for(const _0x4d964c of[..._0x16cb44,..._0x7bc7f])this['_model']['markers']['has'](_0x4d964c)&&_0x10f97b['editing']['reconvertMarker'](_0x4d964c);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x10f97b['plugins']['get'](_0x2eae3a),this['_suggestionsConversion']=_0x10f97b['plugins']['get'](_0x495abb),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x10f97b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x10f97b['config']['get']('trackChanges.trackFormatChanges'),_0x10f97b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x10f97b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x10f97b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x538830=this['editor'];_0x538830['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2b39c7,{writer:_0x411f6d})=>{let _0x30a2fe='suggestion:'+_0x2b39c7['getAttribute']('suggestion-type')+':'+_0x2b39c7['getAttribute']('id');return _0x2b39c7['getAttribute']('marker-count')&&(_0x30a2fe+=':'+_0x2b39c7['getAttribute']('marker-count')),_0x411f6d['createElement']('$marker',{'data-name':_0x30a2fe});}}),_0x538830['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x538830['model']['document']['registerPostFixer'](_0xa03365=>{let _0x3aedfc=!0x1;const _0x3501cf=Array['from'](_0x538830['model']['document']['differ']['getChangedMarkers']()),_0xc6e8fe=new Set();for(const {name:_0x18a4b6,data:_0x519c35}of _0x3501cf){const {group:_0x245947,type:_0x3ec323,subType:_0x20c5fc,id:_0x2a8768}=_0x4dc3a3(_0x18a4b6);if('suggestion'!==_0x245947)continue;const _0x2791d3=_0x20c5fc?'suggestion:'+_0x3ec323+':'+_0x20c5fc+':'+_0x2a8768:'suggestion:'+_0x3ec323+':'+_0x2a8768,_0x43fd90=_0x538830['model']['markers']['getMarkersGroup'](_0x2791d3),_0x347dac=_0x538830['model']['markers']['get'](_0x18a4b6),_0x2ddcc9=this['_suggestions']['get'](_0x2a8768);if(null!=_0x519c35['newRange']){'formatInline'==_0x3ec323&&(_0x3aedfc=_0x3aedfc||Ze(_0x519c35['newRange'],_0x18a4b6,_0xa03365,_0x538830['model']['schema']));const _0x2d38f5='attribute'==_0x3ec323&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x20c5fc)),_0x12a188='attribute'==_0x3ec323&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x20c5fc));if(_0x519c35['newRange']['isCollapsed']||'$graveyard'==_0x519c35['newRange']['root']['rootName']||'formatBlock'==_0x3ec323&&!tn(_0x519c35['newRange'])||_0x2d38f5&&!tn(_0x519c35['newRange'])||_0x12a188&&en(_0x519c35['newRange'])||'deletion'==_0x3ec323&&en(_0x519c35['newRange'])||_0x347dac&&nn(_0x347dac,_0x43fd90))_0xa03365['removeMarker'](_0x18a4b6),_0x3aedfc=!0x0;else{if(!_0x2ddcc9||!_0x2ddcc9['isInContent'])continue;if(_0x519c35['newRange']&&_0x519c35['oldRange']&&_0x519c35['newRange']['isEqual'](_0x519c35['oldRange']))continue;_0xc6e8fe['add'](_0x2ddcc9);}}}return _0xc6e8fe['size']>0x0&&(_0x3aedfc=!!this['_joinWithAdjacentSuggestions'](_0xc6e8fe)||_0x3aedfc),_0x3aedfc;}),_0x538830['model']['document']['registerPostFixer'](_0x513d7d=>{let _0x5613ee=!0x1;for(const _0x20fc93 of _0x538830['model']['document']['differ']['getChanges']())if('insert'==_0x20fc93['type'])for(const _0x37cf96 of this['_suggestions']['values']()){if(_0x37cf96['isMultiRange']||!_0x37cf96['isInContent'])continue;const _0x4f3213='formatBlock'==_0x37cf96['type'],_0x36eacd=this['_getAttributeKey'](_0x37cf96),_0x2126ec=_0x36eacd&&this['_suggestionsConversion']['isBlockAttribute'](_0x36eacd);if(!_0x4f3213&&!_0x2126ec)continue;const _0x16cca6=_0x37cf96['getFirstRange']();if(_0x16cca6['start']['parent']!=_0x16cca6['end']['parent']&&!_0x16cca6['end']['isAtEnd']){const _0x59f614=_0x538830['model']['createPositionAt'](_0x16cca6['start']['nodeAfter'],'end'),_0x54a376=_0x538830['model']['createRange'](_0x16cca6['start'],_0x59f614);_0x513d7d['updateMarker'](_0x37cf96['getFirstMarker'](),{'range':_0x54a376}),_0x5613ee=!0x0;}}return _0x5613ee;}),_0x538830['model']['document']['registerPostFixer'](_0x27c19d=>this['_processAttributeChanges'](_0x27c19d)),_0x538830['model']['document']['registerPostFixer'](_0x4566c2=>!_0x4566c2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4566c2)),_0x538830['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x538830['model']['document']['on']('change:data',(_0x4aaaf6,_0x2a2da0)=>{if(!_0x2a2da0['isLocal']||_0x2a2da0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x183799=_0x538830['model']['document']['differ']['getChanges']();if(0x0==_0x183799['length'])return;const _0x502cad=[],_0x391f2d=_0x183799['filter'](_0x38c66c=>'attribute'==_0x38c66c['type']),_0x5c0b01=_0x183799['filter'](_0x3f2108=>'insert'==_0x3f2108['type']&&'$text'!=_0x3f2108['name']);for(const _0x50e60c of _0x391f2d)this['_suggestionsConversion']['isRegisteredAttribute'](_0x50e60c['attributeKey'])&&_0x502cad['push']({'key':_0x50e60c['attributeKey'],'newValue':_0x50e60c['attributeNewValue'],'oldValue':_0x50e60c['attributeOldValue'],'range':sn(_0x50e60c['range'],_0x538830['model'])});for(const _0x2d712e of _0x5c0b01){if('rename'!=_0x2d712e['action']&&'refresh'!=_0x2d712e['action'])continue;const _0x57ef7f=rn(_0x2d712e['position']['nodeAfter'],_0x538830['model']),_0x5376f2=_0x2d712e['before'];'rename'==_0x2d712e['action']&&_0x502cad['push']({'key':Ke,'newValue':_0x2d712e['name'],'oldValue':_0x5376f2['name'],'range':_0x57ef7f});for(const [_0x45e56d,_0x4fc956]of _0x5376f2['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x45e56d))continue;const _0x471c2b=_0x2d712e['attributes']['get'](_0x45e56d);_0x4fc956!==_0x471c2b&&_0x502cad['push']({'key':_0x45e56d,'newValue':_0x471c2b,'oldValue':_0x4fc956,'range':_0x57ef7f});}for(const [_0x382bbd,_0x4e1323]of _0x2d712e['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x382bbd)&&(_0x5376f2['attributes']['has'](_0x382bbd)||_0x502cad['push']({'key':_0x382bbd,'newValue':_0x4e1323,'oldValue':null,'range':_0x57ef7f}));}0x0!=_0x502cad['length']&&_0x538830['model']['enqueueChange'](_0x2a2da0,_0x230e31=>{const _0x399652=_0x5b022c();for(const {range:_0x3ac5d1,key:_0x139683,oldValue:_0x490cac,newValue:_0x4ac07d}of _0x502cad)this['markAttributeChange'](_0x3ac5d1,_0x139683,_0x490cac,_0x4ac07d,{'groupId':_0x399652});this['_reduceExistingSuggestions'](_0x230e31,_0x502cad);});},{'priority':'lowest'}),_0x538830['model']['markers']['on']('update:suggestion',(_0x682439,_0x556920,_0x3e5aa7)=>{if(null==_0x3e5aa7){const {id:_0x29168b}=_0x4dc3a3(_0x556920['name']),_0x564dbb=this['_suggestions']['get'](_0x29168b);_0x564dbb&&_0x564dbb['addMarkerName'](_0x556920['name']);}}),_0x538830['model']['document']['on']('change:data',()=>{const _0x5669fb=Array['from'](_0x538830['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5686a4=>'suggestion'===_0x4dc3a3(_0x5686a4['name'])['group']);if(0x0===_0x5669fb['length'])return;_0x5669fb['sort']((_0xcf7477,_0x3d45da)=>{const _0xadd7d6=_0xcf7477['data']['oldRange'],_0x3ccff9=_0x3d45da['data']['oldRange'];return null===_0xadd7d6&&null===_0x3ccff9?0x0:null===_0xadd7d6&&null!==_0x3ccff9?-0x1:null!==_0xadd7d6&&null===_0x3ccff9?0x1:_0xadd7d6['start']['isBefore'](_0x3ccff9['start'])?-0x1:0x1;});const _0x1a27b0=new Set(),_0x1f81fb=new Set();for(const {name:_0x3cbd0d,data:_0x485601}of _0x5669fb){const {id:_0x2905b5}=_0x4dc3a3(_0x3cbd0d);if(null===_0x485601['oldRange']){const _0xade496=this['_handleNewSuggestionMarker'](_0x3cbd0d);_0x1f81fb['add'](_0xade496);}else{const _0x52afbe=this['_suggestions']['get'](_0x2905b5);null!==_0x485601['newRange']||_0x52afbe['isInContent']?(_0x1a27b0['add'](_0x52afbe['head']),_0x1f81fb['add'](_0x52afbe)):this['_removeSuggestion'](_0x52afbe);}}_0x1f81fb['size']>0x0&&this['_refreshSuggestionsChain'](_0x1f81fb);for(const _0x2f26f9 of _0x1a27b0)this['fire']('suggestionChanged',_0x2f26f9);}),_0x538830['model']['on']('applyOperation',(_0x5594f9,_0x2cb96d)=>{const _0x10b20f=_0x2cb96d[0x0];if(!this['_suggestions']['size'])return;if(!_0x10b20f['isDocumentOperation'])return;if(_0x10b20f['batch']['isUndo']||!_0x10b20f['batch']['isLocal'])return;let _0x4e9052,_0x292972;switch(_0x10b20f['type']){case'insert':_0x4e9052=_0x538830['model']['createPositionAt'](_0x10b20f['position']),_0x292972=_0x4e9052['getShiftedBy'](_0x10b20f['howMany']);break;case'split':_0x4e9052=_0x538830['model']['createPositionAt'](_0x10b20f['splitPosition']),_0x292972=_0x538830['model']['createPositionAt'](_0x10b20f['moveTargetPosition']);break;case'move':_0x4e9052=_0x538830['model']['createPositionAt'](_0x10b20f['targetPosition']),_0x292972=_0x4e9052['getShiftedBy'](_0x10b20f['howMany']);break;default:return;}const _0x37b357=_0x538830['model']['createRange'](_0x4e9052,_0x292972);_0x538830['model']['change'](()=>{for(const {suggestion:_0x47ef51,meta:_0x36d4dc}of this['_findSuggestions'](_0x37b357)){if(_0x47ef51['isMultiRange'])continue;if('formatInline'==_0x47ef51['type'])continue;const _0x49efb2=this['_getAttributeKey'](_0x47ef51);if(_0x49efb2&&this['_suggestionsConversion']['isBlockAttribute'](_0x49efb2)&&'split'!=_0x10b20f['type'])continue;const _0x2ae299=_0x47ef51['data']&&_0x47ef51['data']['multipleBlocks'];('formatBlock'!=_0x47ef51['type']||'split'==_0x10b20f['type']&&!_0x2ae299)&&(_0x36d4dc['containsRangeInObject']||'insertion'==_0x47ef51['type']&&_0x36d4dc['isOwn']||_0x47ef51['getFirstRange']()['containsRange'](_0x37b357)&&this['_breakSuggestionMarker'](_0x47ef51,_0x4e9052,_0x292972));}});},{'priority':'lowest'}),_0x538830['model']['on']('deleteContent',(_0x58d618,_0x3f50fe)=>{const _0x5d4ff5=_0x3f50fe[0x0],_0x52da41=_0x3f50fe[0x1];if(_0x52da41&&_0x52da41['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5d4ff5['isCollapsed'])return;const _0x8e5396=_0x538830['model']['schema'],{start:_0x2239fd,end:_0x36c1a0}=_0x5d4ff5['getFirstRange'](),_0x5217c2=_0x2239fd['nodeAfter']&&_0x8e5396['isLimit'](_0x2239fd['nodeAfter'])?null:_0x8e5396['getNearestSelectionRange'](_0x2239fd,'forward'),_0x217137=_0x36c1a0['nodeBefore']&&_0x8e5396['isLimit'](_0x36c1a0['nodeBefore'])?null:_0x8e5396['getNearestSelectionRange'](_0x36c1a0,'backward'),_0x1121a4=_0x538830['model']['createRange'](_0x5217c2?_0x5217c2['start']:_0x2239fd,_0x217137?_0x217137['end']:_0x36c1a0);_0x538830['model']['change'](_0xbedd89=>{this['markDeletion'](_0x1121a4);const _0xf67ea6=_0x538830['model']['schema']['getNearestSelectionRange'](_0x1121a4['start']);_0x5d4ff5['is']('documentSelection')?_0xbedd89['setSelection'](_0xf67ea6):_0x5d4ff5['setTo'](_0xf67ea6);}),_0x58d618['stop']();},{'priority':_0x581032['normal']+0xa}),_0x538830['model']['on']('insertContent',(_0xa26cf9,_0x5f0e12)=>{const _0x5816a9=_0x5f0e12[_0x5f0e12['length']-0x1];_0x5816a9&&_0x5816a9['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x538830['model']['change'](()=>{let _0xaaafe5=_0x538830['model']['insertContent'](_0x5f0e12[0x0],_0x5f0e12[0x1],_0x5f0e12[0x2],{'forceDefaultExecution':!0x0});if(!_0xaaafe5)return;_0xa26cf9['return']=_0xaaafe5['clone']();const _0x4abed2=_0xaaafe5['end']['nodeBefore'],_0x85bf16=_0x538830['model']['schema'];_0x4abed2&&_0x85bf16['isBlock'](_0x4abed2)&&!_0x85bf16['isObject'](_0x4abed2)&&(_0xaaafe5=_0x538830['model']['createRange'](_0xaaafe5['start'],_0x538830['model']['createPositionAt'](_0x4abed2,'end'))),this['markInsertion'](_0xaaafe5);}),_0xa26cf9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3b8e69=new dt(_0x538830,this['_suggestions']);_0x538830['commands']['add']('acceptSuggestion',_0x3b8e69),this['enableCommand']('acceptSuggestion');const _0x13a3f2=new ft(_0x538830,this['_suggestions']);_0x538830['commands']['add']('discardSuggestion',_0x13a3f2),this['enableCommand']('discardSuggestion'),_0x538830['commands']['add']('acceptAllSuggestions',new Lt(_0x538830,_0x3b8e69,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x538830['commands']['add']('discardAllSuggestions',new Lt(_0x538830,_0x13a3f2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x538830['commands']['add']('acceptSelectedSuggestions',new It(_0x538830,_0x3b8e69,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x538830['commands']['add']('discardSelectedSuggestions',new It(_0x538830,_0x13a3f2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2447f4=_0x538830['plugins']['get'](_0x2eae3a);this['listenTo'](_0x2447f4,'addComment',(_0x2cd90b,{threadId:_0x16b1df})=>{const _0x37cd08=this['_suggestions']['get'](_0x16b1df);_0x37cd08&&_0x37cd08['commentThread']&&0x1===_0x37cd08['commentThread']['length']&&this['_updateSuggestionData'](_0x16b1df,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2447f4,'removeComment',(_0x18436d,{threadId:_0x26235f})=>{const _0x5df966=this['_suggestions']['get'](_0x26235f);_0x5df966&&_0x5df966['commentThread']&&!_0x5df966['commentThread']['length']&&this['_updateSuggestionData'](_0x26235f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x53bd76){const _0x244b67=_0x213f98([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]),_0x4e0cee=0x3d8d0df,_0x21517b=0x3df55cf^_0x4e0cee,_0x51ce47=window[_0x213f98([0x44,0x61,0x74,0x65])][_0x213f98([0x6e,0x6f,0x77])](),_0x316416=_0x53bd76[_0x213f98([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x29cb8d=new window[(_0x213f98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55cc7c=>{_0x316416[_0x213f98([0x6f,0x6e,0x63,0x65])](_0x213f98([0x72,0x65,0x61,0x64,0x79]),_0x55cc7c);}),_0x3aa49f={[_0x213f98([0x6b,0x74,0x79])]:_0x213f98([0x45,0x43]),[_0x213f98([0x75,0x73,0x65])]:_0x213f98([0x73,0x69,0x67]),[_0x213f98([0x63,0x72,0x76])]:_0x213f98([0x50,0x2d,0x32,0x35,0x36]),[_0x213f98([0x78])]:_0x213f98([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]),[_0x213f98([0x79])]:_0x213f98([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]),[_0x213f98([0x61,0x6c,0x67])]:_0x213f98([0x45,0x53,0x32,0x35,0x36])},_0x2ffeb4=_0x316416[_0x213f98([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x213f98([0x67,0x65,0x74])](_0x213f98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c8651(){let _0x428808,_0x3e480e=null,_0x4f9289=null;try{if(_0x2ffeb4==_0x213f98([0x47,0x50,0x4c]))return _0x213f98([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x428808=_0x712f06(),!_0x428808)return _0x213f98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x428808[_0x213f98([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f9289=_0x42d5ae(_0x428808[_0x213f98([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x428808[_0x213f98([0x6a,0x74,0x69])])),await _0x2a6548()?_0x275db3()?_0x39c37c()?_0x213f98([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c9d15()?(_0x428808[_0x213f98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x213f98([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e480e=_0x59b2d4(_0x213f98([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b9a39()):_0x213f98([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x213f98([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x213f98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x213f98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39c37c(){const _0x404bf5=[_0x213f98([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x213f98([0x74,0x72,0x69,0x61,0x6c])][_0x213f98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x428808[_0x213f98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51ce47/0x3e8:0xe10*_0x21517b;return _0x428808[_0x213f98([0x65,0x78,0x70])]<_0x404bf5;}function _0x275db3(){const _0x5046a3=_0x428808[_0x213f98([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5046a3)return!0x1;if(_0x5046a3[_0x213f98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213f98([0x2a])))return!0x0;if(_0x5046a3[_0x213f98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213f98([0x54,0x43])))return!0x0;if(_0x5046a3[_0x213f98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213f98([0x52,0x54,0x43]))){if(_0x98d89f())return!0x0;if(_0x114b48()||_0x302ba9())return!0x0;}return!0x1;}function _0x5c9d15(){const _0x7b6c4b=_0x428808[_0x213f98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7b6c4b||0x0==_0x7b6c4b[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x202b29}=new URL(window[_0x213f98([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7b6c4b[_0x213f98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x202b29))return!0x0;const _0x588da9=_0x202b29[_0x213f98([0x73,0x70,0x6c,0x69,0x74])](_0x213f98([0x2e]));return _0x7b6c4b[_0x213f98([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x42a903=>_0x42a903[_0x213f98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213f98([0x2a])))[_0x213f98([0x6d,0x61,0x70])](_0x4a2a42=>_0x4a2a42[_0x213f98([0x73,0x70,0x6c,0x69,0x74])](_0x213f98([0x2e])))[_0x213f98([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x589111=>_0x589111[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x588da9[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x213f98([0x6d,0x61,0x70])](_0x365046=>Array(_0x588da9[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x365046[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x213f98([0x66,0x69,0x6c,0x6c])](_0x365046[0x0]===_0x213f98([0x2a])?_0x213f98([0x2a]):'')[_0x213f98([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x365046))[_0x213f98([0x73,0x6f,0x6d,0x65])](_0x45dffc=>_0x588da9[_0x213f98([0x65,0x76,0x65,0x72,0x79])]((_0x141b2c,_0x271287)=>_0x45dffc[_0x271287]===_0x141b2c||_0x45dffc[_0x271287]===_0x213f98([0x2a])));}function _0x1b9a39(){return _0x3e480e&&_0x4f9289?new window[(_0x213f98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a1854,_0x4d0415)=>{_0x3e480e[_0x213f98([0x74,0x68,0x65,0x6e])](_0x4a1854,_0x4d0415),_0x4f9289[_0x213f98([0x74,0x68,0x65,0x6e])](_0x20db4b=>{_0x20db4b!=_0x213f98([0x56,0x61,0x6c,0x69,0x64])&&_0x4a1854(_0x20db4b);},_0x4d0415);}):_0x3e480e||_0x4f9289||_0x213f98([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42d5ae(_0x363323,_0x485c91){return new window[(_0x213f98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12af8b=>{if(_0x5bff4e())return _0x12af8b(_0x213f98([0x56,0x61,0x6c,0x69,0x64]));_0xb2a2a7(),_0x316416[_0x213f98([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x213f98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b7dee=!0x1;const _0x43cc4f=_0x5b022c();function _0x2022b1(_0x2cb0aa){return!!_0x2cb0aa&&(typeof _0x2cb0aa===_0x213f98([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2cb0aa===_0x213f98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2cb0aa[_0x213f98([0x74,0x68,0x65,0x6e])]===_0x213f98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2cb0aa[_0x213f98([0x63,0x61,0x74,0x63,0x68])]===_0x213f98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x388ba6(_0x28c090){_0x182d88(_0x28c090)[_0x213f98([0x74,0x68,0x65,0x6e])](_0x2ed966=>{if(!_0x2ed966||_0x2ed966[_0x213f98([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x213f98([0x6f,0x6b]))return _0x213f98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x106f9b(_0x1ff5f8(_0x43cc4f+_0x485c91))!=_0x2ed966[_0x213f98([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x213f98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x213f98([0x56,0x61,0x6c,0x69,0x64]);})[_0x213f98([0x74,0x68,0x65,0x6e])](_0x4ebbbf=>(_0x3401a1(),_0x4ebbbf),()=>{const _0x2599c8=_0x1435ca();return null==_0x2599c8?(_0x3401a1(),_0x213f98([0x56,0x61,0x6c,0x69,0x64])):_0x213f98(_0x51ce47-_0x2599c8>(0x27d454df^_0x4e0cee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x213f98([0x74,0x68,0x65,0x6e])](_0x12af8b)[_0x213f98([0x63,0x61,0x74,0x63,0x68])](()=>{_0x12af8b(_0x213f98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13ca6f=0x3ee3e5f^_0x4e0cee;function _0x3401a1(){const _0x2dded2=_0x213f98([0x6c,0x6c,0x63,0x74,0x2d])+_0x106f9b(_0x1ff5f8(_0x363323)),_0xf44b60=_0x476ac9(_0x106f9b(window[_0x213f98([0x4d,0x61,0x74,0x68])][_0x213f98([0x63,0x65,0x69,0x6c])](_0x51ce47/_0x13ca6f)));window[_0x213f98([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x213f98([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dded2,_0xf44b60);}function _0x1435ca(){const _0x5c67b1=_0x213f98([0x6c,0x6c,0x63,0x74,0x2d])+_0x106f9b(_0x1ff5f8(_0x363323)),_0x88f737=window[_0x213f98([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x213f98([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c67b1);return _0x88f737?window[_0x213f98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x476ac9(_0x88f737),0x10)*_0x13ca6f:null;}function _0x182d88(_0x448f91){return new window[(_0x213f98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x377700,_0x18d569)=>{_0x448f91[_0x213f98([0x74,0x68,0x65,0x6e])](_0x377700,_0x18d569),window[_0x213f98([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18d569,0x3d9041f^_0x4e0cee);});}}_0x316416[_0x213f98([0x6f,0x6e])](_0x213f98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d5fd1,_0x4430cb)=>{if(_0x4430cb[0x0]!=_0x363323)return _0x12af8b(_0x213f98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4430cb[0x1]={..._0x4430cb[0x1],[_0x213f98([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43cc4f};},{[_0x213f98([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x213f98([0x68,0x69,0x67,0x68])}),_0x316416[_0x213f98([0x6f,0x6e])](_0x213f98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3cb0cd=>{_0x2022b1(_0x3cb0cd[_0x213f98([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b7dee=!0x0,_0x388ba6(_0x3cb0cd[_0x213f98([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x213f98([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x213f98([0x6c,0x6f,0x77])}),_0x29cb8d[_0x213f98([0x74,0x68,0x65,0x6e])](()=>{_0x4b7dee||_0x12af8b(_0x213f98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5bff4e(){return _0x316416[_0x213f98([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x213f98([0x76,0x69,0x65,0x77])][_0x213f98([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x213f98([0x61,0x75,0x74,0x6f]);}function _0xb2a2a7(){_0x316416[_0x213f98([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x213f98([0x76,0x69,0x65,0x77])][_0x213f98([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x213f98([0x61,0x75,0x74,0x6f]);}}function _0x59b2d4(_0x2cd3c0){const _0x3b9b14=[new window[(_0x213f98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f6bd3=>setTimeout(_0x2f6bd3,0x3d1ee13^_0x4e0cee)),_0x29cb8d[_0x213f98([0x74,0x68,0x65,0x6e])](()=>new window[(_0x213f98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24822b=>{let _0xe646e5=0x0;_0x316416[_0x213f98([0x6d,0x6f,0x64,0x65,0x6c])][_0x213f98([0x6f,0x6e])](_0x213f98([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x471615,_0x2b4112)=>{_0x2b4112[0x0][_0x213f98([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe646e5++,_0xe646e5==(0x3d8d537^_0x4e0cee)&&(_0x24822b(),_0x471615[_0x213f98([0x6f,0x66,0x66])]());});}))];return window[_0x213f98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x213f98([0x72,0x61,0x63,0x65])](_0x3b9b14)[_0x213f98([0x74,0x68,0x65,0x6e])](()=>_0x2cd3c0);}async function _0x451e0f(){await _0x29cb8d,_0x316416[_0x213f98([0x6d,0x6f,0x64,0x65,0x6c])][_0x213f98([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf41899,_0x316416[_0x213f98([0x6d,0x6f,0x64,0x65,0x6c])][_0x213f98([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf41899,_0x316416[_0x213f98([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x213f98([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x98d89f(){return _0x3b5a5a(_0x213f98([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x573396(_0x213f98([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x213f98([0x73,0x74,0x61,0x74,0x65])]==_0x213f98([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x114b48(){return _0x3b5a5a(_0x213f98([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 _0x302ba9(){return _0x3b5a5a(_0x213f98([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x22b238(_0x5a7938){const _0x783e78=_0x1eb6c6();_0x316416[_0x783e78]=_0x213f98([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5a7938,_0x5a7938!=_0x213f98([0x56,0x61,0x6c,0x69,0x64])&&_0x451e0f();}function _0x1eb6c6(){const _0x1c8e06=window[_0x213f98([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x213f98([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x213f98([0x6e,0x6f,0x77])]())[_0x213f98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x213f98([0x2e]),'');let _0x1e313c=_0x213f98([0x52]);for(let _0x2e2d13=0x0;_0x2e2d13<_0x1c8e06[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e2d13+=0x2){let _0x5093d5=window[_0x213f98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c8e06[_0x213f98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e2d13,_0x2e2d13+0x2));_0x5093d5>=_0x244b67[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5093d5-=_0x244b67[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e313c+=_0x244b67[_0x5093d5];}return _0x1e313c;}function _0x712f06(){const _0x13bfdf=_0x2ffeb4[_0x213f98([0x73,0x70,0x6c,0x69,0x74])](_0x213f98([0x2e]));if(0x3!=_0x13bfdf[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x568876(_0x13bfdf[0x1]);function _0x568876(_0x5c7b3b){const _0x58ff5e=_0x46a5cf(_0x5c7b3b);return _0x58ff5e&&_0x113415()?_0x58ff5e:null;function _0x113415(){const _0x3a797f=_0x58ff5e[_0x213f98([0x6a,0x74,0x69])],_0x5bfe6=window[_0x213f98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a797f[_0x213f98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a797f[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20afe3={..._0x58ff5e,[_0x213f98([0x6a,0x74,0x69])]:_0x3a797f[_0x213f98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a797f[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20afe3[_0x213f98([0x76,0x63])],_0x1ff5f8(_0x20afe3)==_0x5bfe6;}}}async function _0x2a6548(){let _0xf6e43f=!0x0;try{const _0xd1eded=_0x2ffeb4[_0x213f98([0x73,0x70,0x6c,0x69,0x74])](_0x213f98([0x2e])),[_0x2ee24f,_0x38d69f,_0x5769ab]=_0xd1eded;return _0x27e00a(_0x2ee24f),await _0x47f897(_0x2ee24f,_0x38d69f,_0x5769ab),_0xf6e43f;}catch{return!0x1;}function _0x27e00a(_0xa8a055){const _0x1ad4b6=_0x46a5cf(_0xa8a055);_0x1ad4b6&&_0x1ad4b6[_0x213f98([0x61,0x6c,0x67])]==_0x213f98([0x45,0x53,0x32,0x35,0x36])||(_0xf6e43f=!0x1);}async function _0x47f897(_0x4eca2d,_0x3f77a1,_0x43757e){const _0xc9ca80=window[_0x213f98([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x213f98([0x66,0x72,0x6f,0x6d])](_0x596945(_0x43757e),_0x3c17de=>_0x3c17de[_0x213f98([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3403f9=new window[(_0x213f98([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x213f98([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4eca2d+_0x213f98([0x2e])+_0x3f77a1),_0xf3c21e=window[_0x213f98([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x213f98([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xf3c21e)return;const _0xaca971=await _0xf3c21e[_0x213f98([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x213f98([0x6a,0x77,0x6b]),_0x3aa49f,{[_0x213f98([0x6e,0x61,0x6d,0x65])]:_0x213f98([0x45,0x43,0x44,0x53,0x41]),[_0x213f98([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x213f98([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x213f98([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xf3c21e[_0x213f98([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x213f98([0x6e,0x61,0x6d,0x65])]:_0x213f98([0x45,0x43,0x44,0x53,0x41]),[_0x213f98([0x68,0x61,0x73,0x68])]:{[_0x213f98([0x6e,0x61,0x6d,0x65])]:_0x213f98([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xaca971,_0xc9ca80,_0x3403f9)||(_0xf6e43f=!0x1);}}function _0x46a5cf(_0x2eb076){return _0x2eb076[_0x213f98([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x213f98([0x65,0x79]))?JSON[_0x213f98([0x70,0x61,0x72,0x73,0x65])](_0x596945(_0x2eb076)):null;}function _0x596945(_0x3373a2){return window[_0x213f98([0x61,0x74,0x6f,0x62])](_0x3373a2[_0x213f98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x213f98([0x2b]))[_0x213f98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x213f98([0x2f])));}function _0x1ff5f8(_0x4599b4){let _0x256622=0x1505;function _0x5ca06e(_0x762019){for(let _0x2c2caf=0x0;_0x2c2caf<_0x762019[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c2caf++){const _0x166569=_0x762019[_0x213f98([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c2caf);_0x256622=(_0x256622<<0x5)+_0x256622+_0x166569,_0x256622&=_0x256622;}}function _0x59a9ce(_0xc305db){Array[_0x213f98([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc305db)?_0xc305db[_0x213f98([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59a9ce):_0xc305db&&typeof _0xc305db==_0x213f98([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x213f98([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc305db)[_0x213f98([0x73,0x6f,0x72,0x74])]()[_0x213f98([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d6e4b,_0x68d3ec])=>{_0x5ca06e(_0x4d6e4b),_0x59a9ce(_0x68d3ec);}):_0x5ca06e(window[_0x213f98([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc305db));}return _0x59a9ce(_0x4599b4),_0x256622>>>0x0;}function _0x106f9b(_0x28242d){return _0x28242d[_0x213f98([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x213f98([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x213f98([0x30]));}function _0x476ac9(_0x2182b9){return _0x2182b9[_0x213f98([0x73,0x70,0x6c,0x69,0x74])]('')[_0x213f98([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x213f98([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b5a5a(_0x58ce9f){return _0x316416[_0x213f98([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x213f98([0x68,0x61,0x73])](_0x58ce9f);}function _0x573396(_0xab651a){return _0x316416[_0x213f98([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x213f98([0x67,0x65,0x74])](_0xab651a);}function _0xf41899(){}function _0x213f98(_0x151b9f){return _0x151b9f['map'](_0x267e86=>String['fromCharCode'](_0x267e86))['join']('');}_0x22b238(await _0x3c8651());}(this);}set['adapter'](_0x39c8db){if(this['_adapter'])throw new _0x25a256('track-changes-adapter-already-set',this);this['_adapter']=_0x39c8db;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4b4730=!0x1,toJSON:_0xb5bc4d=!0x1}={}){const _0x2b21f4=[];for(const _0x441297 of this['_suggestions']['values']())_0x4b4730&&!_0x441297['isInContent']||_0x2b21f4['push'](_0x441297);return _0xb5bc4d?_0x2b21f4['map'](_0x269d35=>_0x269d35['toJSON']()):_0x2b21f4;}['getSuggestion'](_0x20d50b){const _0x482e6e=this['_suggestions']['get'](_0x20d50b);if(!_0x482e6e)throw new _0x25a256('track-changes-suggestion-not-found',this);return _0x482e6e;}['hasSuggestion'](_0x488e87){return this['_suggestions']['has'](_0x488e87);}['addSuggestionData'](_0x4a5301){const {authorId:_0x5c6599,id:_0x1ef7cb,originalSuggestionId:_0x25cea7,attributes:_0x38601e}=_0x4a5301,[_0x49334a,_0x212086]=_0x4a5301['type']['split'](':'),_0xf1efdf=this['_suggestions']['get'](_0x1ef7cb)||this['_createSuggestion'](_0x49334a,_0x212086,_0x1ef7cb,_0x5c6599,_0x38601e,_0x25cea7);if(this['_addThreadToSuggestion'](_0xf1efdf),this['_checkSuggestionCorrectness'](_0xf1efdf,_0x49334a,_0x212086||null,_0x5c6599),_0xf1efdf['createdAt']=_0x4a5301['createdAt'],_0xf1efdf['_isDataLoaded']=!0x0,_0x38601e&&_0x38601e['@external']){const _0x5ce649=_0x38601e['@external'],_0x52d64b=this['_getExternalAuthor'](_0x5ce649['authorName']);_0xf1efdf['authoredAt']=_0x5ce649['createdAt'],_0xf1efdf['author']=_0x52d64b,_0xf1efdf['isExternal']=!0x0;}else _0xf1efdf['authoredAt']=_0x4a5301['createdAt'];switch(_0x4a5301['data']&&(_0xf1efdf['data']=_0x4a5301['data']),_0x4a5301['attributes']&&(_0xf1efdf['attributes']=_0x4a5301['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xf1efdf['_saved']=!0x0),this['_suggestionState']['get'](_0xf1efdf)){case'notReady':this['_suggestionState']['set'](_0xf1efdf,'dataReady');break;case'markerReady':_0xf1efdf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xf1efdf])),this['_refreshSuggestionsChain'](new Set([_0xf1efdf])),this['_suggestionState']['set'](_0xf1efdf,'ready'),this['fire']('suggestionLoaded',_0xf1efdf)):this['_suggestionState']['set'](_0xf1efdf,'removed');}return _0xf1efdf;}['acceptSuggestion'](_0x4e7f77){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x163139 of _0x4e7f77['getAllAdjacentSuggestions']())_0x163139['accept']();});});}['discardSuggestion'](_0x241e6a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x36ccf8 of _0x241e6a['getAllAdjacentSuggestions']())_0x36ccf8['discard']();});});}['enableCommand'](_0x9e8bd0,_0x6108dc){const _0x1ed6b4=this['editor']['commands']['get'](_0x9e8bd0);if(!_0x1ed6b4)throw new _0x25a256('track-changes-command-not-found',this,{'commandName':_0x9e8bd0});if(this['_enabledCommands']['has'](_0x1ed6b4))throw new _0x25a256('track-changes-enable-command-twice',this,{'commandName':_0x9e8bd0});this['_enabledCommands']['add'](_0x1ed6b4),_0x6108dc&&_0x1ed6b4['on']('execute',(_0x6b7a3d,_0x30dea2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x30dea2['length']>0x0&&_0x30dea2[_0x30dea2['length']-0x1]&&_0x30dea2[_0x30dea2['length']-0x1]['forceDefaultExecution']?_0x30dea2['pop']():(_0x6b7a3d['return']=_0x6108dc((..._0x27a45b)=>_0x1ed6b4['execute'](..._0x27a45b,{'forceDefaultExecution':!0x0}),..._0x30dea2),_0x6b7a3d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x58c8c5){let _0x345565,_0x349acb;const _0x354d48=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x345565=_0x58c8c5();}catch(_0x438fff){_0x349acb=_0x438fff;}return _0x354d48||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x349acb&&_0x25a256['rethrowUnexpectedError'](_0x349acb,this),_0x345565;}['markInsertion'](_0x4db01c,_0x2a870c=null,_0x401e31={}){if(_0x4db01c['isCollapsed'])return null;const _0x44d03c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x401e31['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5be4e9,meta:_0x108759}of this['_findSuggestions'](_0x4db01c,'insertion'))if(_0x108759['isOwn']){if(!_0x108759['isNextTo']){if(_0x108759['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x5be4e9,_0x401e31))continue;return _0x5be4e9;}if(cn(_0x5be4e9,_0x401e31))return _0x5be4e9;this['_breakSuggestionMarker'](_0x5be4e9,_0x4db01c['start'],_0x4db01c['end']);break;}if(_0x2a870c==_0x5be4e9['subType']&&cn(_0x5be4e9,_0x401e31)){const _0x44ff13=_0x5be4e9['getFirstRange']();return _0x44ff13['start']['isEqual'](_0x4db01c['end'])?this['_setSuggestionRange'](_0x5be4e9,this['_model']['createRange'](_0x4db01c['start'],_0x44ff13['end'])):this['_setSuggestionRange'](_0x5be4e9,this['_model']['createRange'](_0x44ff13['start'],_0x4db01c['end'])),_0x5be4e9;}}const _0xcf11c7=_0x5b022c(),_0xd8009d=_0x44d03c['id'],_0x58c2f1=_0x2a870c?'insertion:'+_0x2a870c:'insertion',_0xefbccc=this['_setSuggestionData']({'id':_0xcf11c7,'type':_0x58c2f1,'createdAt':new Date(),'authorId':_0xd8009d,'attributes':_0x401e31});return this['_addSuggestionMarker'](_0x58c2f1,_0xcf11c7,_0xd8009d,_0x4db01c),_0xefbccc;}['markMultiRangeInsertion'](_0x46262a,_0x5728ed='multi',_0xc07286={}){const _0x3d78ae=this['editor']['plugins']['get']('Users')['me'],_0x2f896b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5728ed,'join');this['_trackingSessionId']&&(_0xc07286['trackingSessionId']=this['_trackingSessionId']);for(const _0x470811 of this['getSuggestions']())if(_0x470811['author']['id']==_0x3d78ae['id']&&'insertion'==_0x470811['type']&&_0x470811['subType']==_0x5728ed&&cn(_0x470811,_0xc07286)&&(_0x2f896b(_0x470811['getRanges'](),_0x46262a)||_0x2f896b(_0x46262a,_0x470811['getRanges']()))){for(const _0x5243c5 of _0x46262a)_0x470811['addRange'](_0x5243c5);return _0x470811;}for(const {suggestion:_0x2b18bd,meta:_0x37430b}of this['_findSuggestions'](_0x46262a,'insertion')){if(!_0x37430b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x37430b['containsRangeInObject'])continue;if(!cn(_0x2b18bd,_0xc07286))continue;let _0x5b6592=!0x0;for(const _0x42dc63 of _0x2b18bd['getRanges']())for(const _0xbd9c11 of _0x46262a)if(!_0x42dc63['containsRange'](_0xbd9c11)){_0x5b6592=!0x1;break;}if(_0x5b6592)return _0x2b18bd;}const _0x70b53f=_0x5b022c(),_0x310a7f=_0x3d78ae['id'],_0x3ef0dd='insertion:'+_0x5728ed,_0x4a745f=this['_setSuggestionData']({'id':_0x70b53f,'type':_0x3ef0dd,'createdAt':new Date(),'authorId':_0x310a7f,'attributes':_0xc07286});for(const _0x1868b1 of _0x46262a)this['_addSuggestionMarker'](_0x3ef0dd,_0x70b53f,_0x310a7f,_0x1868b1,bt['getMultiRangeId']());return _0x4a745f;}['markInlineFormat'](_0x27c3cf,_0x1bcc3d,_0x53b9c9=null,_0x240f03={}){if(_0x53b9c9=_0x53b9c9||Je(_0x1bcc3d),_0x27c3cf['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x240f03['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x40b6e1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53b9c9,'accept');return this['forceDefaultExecution'](()=>_0x40b6e1([_0x27c3cf],_0x1bcc3d,_0x240f03)),null;}const _0x16201f=this['editor']['plugins']['get']('Users')['me'],_0x178f0a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4ea107,meta:_0x17cc8e}of this['_findSuggestions'](_0x27c3cf,'insertion'))_0x17cc8e['isOwn']&&!_0x17cc8e['isInsideObject']&&_0x178f0a['push'](..._0x4ea107['getRanges']());}const _0x40b6bf=function(_0x1a3bcf,_0x3a5b7b){const _0x58f3d6=[];for(const _0x436bbc of _0x3a5b7b){const _0x542b85=_0x1a3bcf['getIntersection'](_0x436bbc);_0x542b85&&_0x58f3d6['push'](_0x542b85);}return _0x58f3d6;}(_0x27c3cf,_0x178f0a),_0x4e1e74=function(_0x81375a,_0x1e1a1c){const _0x2cec11=[_0x81375a];for(const _0x1c651b of _0x1e1a1c){let _0x382c34=0x0;for(;_0x382c34<_0x2cec11['length'];){const _0x2040ec=_0x2cec11[_0x382c34]['getDifference'](_0x1c651b);_0x2cec11['splice'](_0x382c34,0x1,..._0x2040ec),_0x382c34+=_0x2040ec['length'];}}return _0x2cec11;}(_0x27c3cf,_0x178f0a);_0x40b6bf['length']&&this['_model']['change'](()=>{for(const _0xd99aa1 of _0x40b6bf){const _0x5b530f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53b9c9,'accept');this['forceDefaultExecution'](()=>_0x5b530f([_0xd99aa1],_0x1bcc3d,_0x240f03));}});for(const _0x2f95e2 of _0x4e1e74){let _0x13d895=null,_0x1b2913=_0x2f95e2['start'],_0x387818=_0x2f95e2['end'];for(const {suggestion:_0x3e4424,meta:_0x1cfed1}of this['_findSuggestions'](_0x2f95e2,'formatInline')){if(!_0x1cfed1['isOwn'])continue;if(_0x3e4424['subType']!=_0x53b9c9)continue;if(!cn(_0x3e4424,_0x240f03))continue;const _0x102e65=_0x3e4424['getFirstRange']();if(_0x102e65['containsRange'](_0x2f95e2,!0x0))return null;_0x1b2913=_0x1b2913['isBefore'](_0x102e65['start'])?_0x1b2913:_0x102e65['start'],_0x387818=_0x387818['isAfter'](_0x102e65['end'])?_0x387818:_0x102e65['end'],_0x13d895?_0x102e65['start']['isBefore'](_0x13d895['getFirstRange']()['start'])?(_0x13d895['removeMarkers'](),_0x13d895=_0x3e4424):_0x3e4424['removeMarkers']():_0x13d895=_0x3e4424;}const _0x492801=this['_model']['createRange'](_0x1b2913,_0x387818);if(_0x13d895)this['_setSuggestionRange'](_0x13d895,_0x492801);else{const _0x13c622=_0x5b022c(),_0x11ed49=_0x16201f['id'];this['_setSuggestionData']({'id':_0x13c622,'type':'formatInline:'+_0x53b9c9,'data':_0x1bcc3d,'createdAt':new Date(),'authorId':_0x11ed49,'attributes':_0x240f03}),this['_addSuggestionMarker']('formatInline:'+_0x53b9c9,_0x13c622,_0x11ed49,_0x492801);}}return null;}['markBlockFormat'](_0x31341b,_0x30afb7,_0x40de66=[],_0x152779=null,_0x37c3e3={}){_0x30afb7['formatGroupId']||(_0x30afb7['formatGroupId']=_0x30afb7['commandName']),_0x30afb7['multipleBlocks']=_0x31341b['is']('range'),_0x152779=_0x152779||Je(_0x30afb7);const _0x2bf0e1=_0x40de66['map'](_0x8ef399=>rn(_0x8ef399,this['_model'])),_0x1a3b54=_0x31341b['is']('range')?_0x31341b:rn(_0x31341b,this['_model']);if(this['_trackingSessionId']&&(_0x37c3e3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3470f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x152779,'accept');return this['forceDefaultExecution'](()=>_0x3470f7([_0x1a3b54],_0x30afb7,_0x37c3e3)),null;}_0x2bf0e1['push'](_0x1a3b54);let _0x4ec6e0=!0x0;for(const _0x172ad8 of _0x2bf0e1)if(!this['_rangeIsInLocalUserInsertion'](_0x172ad8)){_0x4ec6e0=!0x1;break;}if(_0x4ec6e0&&'always'!==this['_trackFormatChanges']){const _0x1b0d7d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x152779,'accept');return this['forceDefaultExecution'](()=>_0x1b0d7d([_0x1a3b54],_0x30afb7,_0x37c3e3)),null;}let _0x2a07f9=null,_0x4f60c0=_0x1a3b54['start'],_0x54e20d=_0x1a3b54['end'];for(const {suggestion:_0x5a5b54,meta:_0x4ed322}of this['_findSuggestions'](_0x1a3b54,'formatBlock')){if(!_0x4ed322['isOwn'])continue;if(_0x4ed322['isNextTo']||_0x4ed322['containsRangeInObject']||_0x4ed322['isInsideObject'])continue;if(_0x5a5b54['data']['formatGroupId']!=_0x30afb7['formatGroupId'])continue;if(!cn(_0x5a5b54,_0x37c3e3))continue;const _0x567453=_0x5a5b54['getFirstRange']();if(_0x5a5b54['subType']==_0x152779){if(_0x567453['containsRange'](_0x1a3b54,!0x0))return null;_0x4f60c0=_0x4f60c0['isBefore'](_0x567453['start'])?_0x4f60c0:_0x567453['start'],_0x54e20d=_0x54e20d['isAfter'](_0x567453['end'])?_0x54e20d:_0x567453['end'],_0x2a07f9?_0x567453['start']['isBefore'](_0x2a07f9['getFirstRange']()['start'])?(_0x2a07f9['removeMarkers'](),_0x2a07f9=_0x5a5b54):_0x5a5b54['removeMarkers']():_0x2a07f9=_0x5a5b54;}else{const _0x8256bb=_0x1a3b54['getIntersection'](_0x567453);this['_cutOutSuggestionMarker'](_0x5a5b54,_0x8256bb);}}const _0x4481e6=this['editor']['plugins']['get']('Users')['me'],_0x2b71d3=_0x5b022c(),_0x38f60f=_0x4481e6['id'];if(_0x2a07f9)return this['_setSuggestionRange'](_0x2a07f9,this['_model']['createRange'](_0x4f60c0,_0x54e20d)),_0x2a07f9;{const _0x51c461=this['_setSuggestionData']({'id':_0x2b71d3,'type':'formatBlock:'+_0x152779,'data':_0x30afb7,'createdAt':new Date(),'authorId':_0x38f60f,'attributes':_0x37c3e3});return this['_addSuggestionMarker']('formatBlock:'+_0x152779,_0x2b71d3,_0x38f60f,this['_model']['createRange'](_0x4f60c0,_0x54e20d)),_0x51c461;}}['markMultiRangeBlockFormat'](_0x308137,_0x430028,_0x3129aa=[],_0x520c73=null,_0x522a25={}){_0x430028['formatGroupId']||(_0x430028['formatGroupId']=_0x430028['commandName']);const _0x4ff446=_0x308137[0x0];_0x430028['multipleBlocks']=_0x4ff446['is']('range'),_0x520c73=_0x520c73||Je(_0x430028);const _0x526053=_0x3129aa['map'](_0xe1861e=>rn(_0xe1861e,this['_model'])),_0x4dfcda=_0x4ff446['is']('range')?_0x308137:_0x308137['map'](_0x17a64d=>rn(_0x17a64d,this['_model']));if(this['_trackingSessionId']&&(_0x522a25['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2a6230=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x520c73,'accept');return this['forceDefaultExecution'](()=>_0x2a6230(_0x4dfcda,_0x430028,_0x522a25)),null;}_0x526053['push'](..._0x4dfcda);let _0x4fca43=!0x0;for(const _0x514528 of _0x526053)if(!this['_rangeIsInLocalUserInsertion'](_0x514528)){_0x4fca43=!0x1;break;}if(_0x4fca43&&'always'!==this['_trackFormatChanges']){const _0x34b189=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x520c73,'accept');return this['forceDefaultExecution'](()=>_0x34b189(_0x4dfcda,_0x430028,_0x522a25)),null;}const _0x3d8b3c=this['editor']['plugins']['get']('Users')['me'];for(const _0x3937e9 of this['getSuggestions']()){const _0x294c9f=_0x3937e9['data'];if(_0x3937e9['author']['id']!=_0x3d8b3c['id'])continue;if('formatBlock'!=_0x3937e9['type']||_0x294c9f['formatGroupId']!=_0x430028['formatGroupId'])continue;if(!cn(_0x3937e9,_0x522a25))continue;const _0x2203d8=_0x3937e9['subType']==_0x520c73;for(let _0x2b9049=0x0;_0x2b9049<_0x4dfcda['length'];_0x2b9049++){const _0x7422fc=_0x4dfcda[_0x2b9049];for(const _0x27929d of _0x3937e9['getMarkers']()){const _0x46112e=_0x27929d['getRange']();if(_0x7422fc['isEqual'](_0x46112e)){_0x2203d8?(_0x4dfcda['splice'](_0x2b9049,0x1),_0x2b9049--):_0x3937e9['removeMarker'](_0x27929d['name']);break;}}}}if(0x0==_0x4dfcda['length'])return null;const _0x3b1ed5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x520c73,'join');for(const _0x130232 of this['getSuggestions']()){const _0x15e141=_0x130232['data'];if(_0x130232['author']['id']==_0x3d8b3c['id']&&('formatBlock'==_0x130232['type']&&_0x15e141['formatGroupId']==_0x430028['formatGroupId']&&_0x130232['subType']==_0x520c73&&cn(_0x130232,_0x522a25)&&(_0x3b1ed5(_0x130232['getRanges'](),_0x4dfcda)||_0x3b1ed5(_0x4dfcda,_0x130232['getRanges']())))){for(const _0x244dd9 of _0x4dfcda)_0x130232['addRange'](_0x244dd9);return _0x130232;}}const _0x531ab6=_0x5b022c(),_0x45a4fb=_0x3d8b3c['id'],_0x178618='formatBlock:'+_0x520c73,_0x5e9c6f=this['_setSuggestionData']({'id':_0x531ab6,'type':_0x178618,'data':_0x430028,'createdAt':new Date(),'authorId':_0x45a4fb,'attributes':_0x522a25});for(const _0xeb6e15 of _0x4dfcda)this['_addSuggestionMarker'](_0x178618,_0x531ab6,_0x45a4fb,_0xeb6e15,bt['getMultiRangeId']());return _0x5e9c6f;}['markDeletion'](_0x3bd45d,_0xaadd7e=null,_0x3fdece={}){if(_0x3bd45d['isCollapsed'])return null;const _0x62a23d=this['editor']['plugins']['get']('Users')['me'],_0xf0da3a=new _0x5817c4(_0x3bd45d['start'],_0x3bd45d['end']);this['_trackingSessionId']&&(_0x3fdece['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2d196b,meta:_0x5850f1}of this['_findSuggestions'](_0xf0da3a,'insertion'))if(_0x5850f1['isOwn']&&!_0x5850f1['isNextTo']){if(_0x2d196b['isMultiRange']){const _0x363d8c=_0x2d196b['getRanges']()['filter'](_0x5adbce=>'$graveyard'!=_0x5adbce['root']['rootName']);_0x363d8c['every'](_0xfafc12=>_0xf0da3a['containsRange'](_0xfafc12,!0x0))&&_0x2d196b['discard']();if(_0x363d8c['some'](_0xe64947=>_0xe64947['containsRange'](_0xf0da3a,!0x0))){const _0x25a249=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xaadd7e,'accept');return this['forceDefaultExecution'](()=>_0x25a249([_0xf0da3a],null,_0x3fdece)),null;}}else{const _0x4f714b=_0xf0da3a['getIntersection'](_0x2d196b['getFirstRange']());null!==_0x4f714b&&_0x2d196b['_onDiscard']([_0x4f714b],null,_0x3fdece);}}if(_0xf0da3a['detach'](),_0xf0da3a['isCollapsed']||'$graveyard'==_0xf0da3a['root']['rootName'])return null;let _0x189566=null,_0x446c5e=_0xf0da3a['start'],_0x232315=_0xf0da3a['end'];const _0x14ad71=this['_findSuggestions'](_0xf0da3a,'deletion');for(const {suggestion:_0x1d0543,meta:_0x44ee05}of _0x14ad71){const _0x1abf81=this['_model']['createRange'](_0x446c5e,_0x232315);if(_0x44ee05['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44ee05['containsRangeInObject']&&!_0x44ee05['isInsideObject'])){if(_0x1d0543['isMultiRange']){if(!cn(_0x1d0543,_0x3fdece))continue;let _0x534b10=!0x0;for(const _0x414fb0 of _0x1d0543['getRanges']()){if(_0x414fb0['containsRange'](_0x1abf81,!0x0))return _0x1d0543;_0x1abf81['containsRange'](_0x414fb0)||(_0x534b10=!0x1);}_0x534b10&&_0x1d0543['discard']();}else{const _0xb53472=_0x1d0543['getFirstRange']();if(_0xb53472['containsRange'](_0x1abf81,!0x0))return _0x1d0543;if(!cn(_0x1d0543,_0x3fdece)){_0x1abf81['containsRange'](_0xb53472)?_0x1d0543['removeMarkers']():_0xb53472['containsPosition'](_0x446c5e)?_0x446c5e=_0xb53472['end']:_0xb53472['containsPosition'](_0x232315)&&(_0x232315=_0xb53472['start']);continue;}_0x446c5e=_0x446c5e['isBefore'](_0xb53472['start'])?_0x446c5e:_0xb53472['start'],_0x232315=_0x232315['isAfter'](_0xb53472['end'])?_0x232315:_0xb53472['end'],_0x3fdece=Object['assign']({},_0x1d0543['attributes']),_0x189566?_0xb53472['start']['isBefore'](_0x189566['getFirstRange']()['start'])?(_0x189566['removeMarkers'](),_0x189566=_0x1d0543):_0x1d0543['removeMarkers']():_0x189566=_0x1d0543;}}}if(_0x189566)return this['_setSuggestionRange'](_0x189566,this['_model']['createRange'](_0x446c5e,_0x232315)),_0x189566;{const _0x159db8=_0x5b022c(),_0x1221dc=this['_model']['createRange'](_0x446c5e,_0x232315),_0x2be5ab=_0x62a23d['id'],_0x327af6=_0xaadd7e?'deletion:'+_0xaadd7e:'deletion',_0x14eff7=this['_setSuggestionData']({'id':_0x159db8,'type':_0x327af6,'createdAt':new Date(),'authorId':_0x2be5ab,'attributes':_0x3fdece});return this['_addSuggestionMarker'](_0x327af6,_0x159db8,_0x2be5ab,_0x1221dc),_0x14eff7;}}['markMultiRangeDeletion'](_0x1c6675,_0x4457a='multi',_0x1fc451={}){const _0x314e3c=this['editor']['plugins']['get']('Users')['me'],_0xd5360a=_0x1c6675['map'](_0x4ec4ac=>new _0x5817c4(_0x4ec4ac['start'],_0x4ec4ac['end'])),_0x3fc047=new Set();this['_trackingSessionId']&&(_0x1fc451['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14bc06,meta:_0x145572}of this['_findSuggestions'](_0xd5360a,'insertion'))_0x145572['isOwn']&&!_0x145572['isNextTo']&&_0x3fc047['add'](_0x14bc06);for(const _0x298cee of _0x3fc047)if(_0x298cee['isMultiRange']){const _0x15724a=_0x298cee['getRanges']();(!_0x298cee['attributes']||!_0x298cee['attributes']['skipNestingCheck'])&&(_0x15724a['every'](_0x5ab9c0=>_0xd5360a['some'](_0x2d9048=>_0x2d9048['containsRange'](_0x5ab9c0,!0x0)))&&_0x298cee['discard']());if(_0xd5360a['every'](_0x2dcfaa=>_0x15724a['some'](_0x4106c6=>_0x4106c6['containsRange'](_0x2dcfaa,!0x0)))){const _0x261c46=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4457a,'accept');return this['forceDefaultExecution'](()=>_0x261c46(_0x1c6675,null,_0x1fc451)),null;}}else{const _0x5f0710=_0x298cee['getFirstRange']();_0xd5360a['some'](_0x43bc93=>_0x43bc93['containsRange'](_0x5f0710,!0x0))&&_0x298cee['discard']();if(_0xd5360a['every'](_0x484fec=>_0x5f0710['containsRange'](_0x484fec,!0x0))){const _0x217091=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4457a,'accept');return this['forceDefaultExecution'](()=>_0x217091(_0xd5360a,null,_0x1fc451)),null;}}const _0x2fdf35=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4457a,'join');let _0x398eb1=null;for(const _0x551e02 of this['getSuggestions']())if(_0x551e02['author']['id']==_0x314e3c['id']&&_0x551e02['isInContent']&&'deletion'==_0x551e02['type']&&_0x551e02['subType']==_0x4457a&&cn(_0x551e02,_0x1fc451)&&(_0x2fdf35(_0x551e02['getRanges'](),_0xd5360a)||_0x2fdf35(_0xd5360a,_0x551e02['getRanges']()))){if(_0x398eb1){if(_0x551e02['commentThread']&&_0x551e02['commentThread']['length'])continue;for(const _0x5b5554 of _0x551e02['getRanges']())_0x398eb1['isIntersectingWithRange'](_0x5b5554)||_0x398eb1['addRange'](_0x5b5554);_0x551e02['removeMarkers']();}else{_0x398eb1=_0x551e02;for(const _0x2dc023 of _0xd5360a)_0x551e02['isIntersectingWithRange'](_0x2dc023)||_0x551e02['addRange'](_0x2dc023);}}if(_0x398eb1)return _0x398eb1;_0x3fc047['clear']();for(const {suggestion:_0x3ae281,meta:_0x91b621}of this['_findSuggestions'](_0xd5360a,'deletion'))_0x91b621['isOwn']&&(this['_mergeNestedSuggestions']||!_0x91b621['containsRangeInObject']&&!_0x91b621['isInsideObject'])&&cn(_0x3ae281,_0x1fc451)&&_0x3fc047['add'](_0x3ae281);for(const _0xf83c4f of _0x3fc047){const _0x382fde=_0xf83c4f['getRanges']();if(!_0x1fc451||!_0x1fc451['skipNestingCheck']){if(_0xd5360a['every'](_0x25ecf9=>_0x382fde['some'](_0xb3abe8=>_0xb3abe8['containsRange'](_0x25ecf9,!0x0))))return _0xf83c4f;}(!_0xf83c4f['attributes']||!_0xf83c4f['attributes']['skipNestingCheck'])&&(_0x382fde['every'](_0x281d01=>_0xd5360a['some'](_0x17d926=>_0x17d926['containsRange'](_0x281d01,!0x0)))&&_0xf83c4f['discard']());}const _0x395b68=_0x5b022c(),_0x591ab3=_0x314e3c['id'],_0x1d0713='deletion:'+_0x4457a,_0x4b0154=this['_setSuggestionData']({'id':_0x395b68,'type':_0x1d0713,'createdAt':new Date(),'authorId':_0x591ab3,'attributes':_0x1fc451});for(const _0x22ed8c of _0xd5360a)_0x22ed8c['detach'](),_0x22ed8c['isCollapsed']||'$graveyard'==_0x22ed8c['root']['rootName']||this['_addSuggestionMarker'](_0x1d0713,_0x395b68,_0x591ab3,_0x22ed8c,bt['getMultiRangeId']());return _0x4b0154;}['markAttributeChange'](_0x5cb94d,_0x26c975,_0x4a9db7,_0x1a1571,_0x5e2e03){if(_0x5cb94d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x8e9d9d=this['editor']['plugins']['get']('Users')['me']['id'],_0x178b89=Array['from'](this['_suggestions']['values']())['filter'](_0x34f13d=>'attribute'==_0x34f13d['type']&&_0x34f13d['data']['key']==_0x26c975&&_0x34f13d['isIntersectingWithRange'](_0x5cb94d));if(this['_trackingSessionId']&&(_0x5e2e03['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4784b3=this['_findSuggestions'](_0x5cb94d,'insertion')['filter'](({meta:_0x1ffb60})=>_0x1ffb60['isOwn']&&!_0x1ffb60['isInsideObject']&&!_0x1ffb60['isNextTo'])['map'](({suggestion:_0x3afcc9})=>_0x3afcc9);_0x178b89['unshift'](..._0x4784b3);}const _0x1cba87=new Map([[_0x5cb94d,_0x4a9db7]]);for(const _0x346233 of _0x178b89){const _0x538e19='attribute'==_0x346233['type']?_0x346233['data']['oldValue']:void 0x0,_0x364960=_0x346233['getFirstRange'](),_0x566561=Array['from'](_0x1cba87['keys']())['find'](_0x126115=>_0x126115['isIntersecting'](_0x364960));if(!_0x566561)continue;const _0x5be531=_0x566561['getDifference'](_0x364960);this['_suggestionsConversion']['isBlockAttribute'](_0x26c975)&&'insertion'==_0x346233['type']&&0x0!=_0x5be531['length']||(_0x1cba87['delete'](_0x566561),_0x5be531['forEach'](_0x4a86de=>{_0x1cba87['set'](_0x4a86de,_0x4a9db7);}),'insertion'!=_0x346233['type']&&_0x538e19!=_0x1a1571&&_0x1cba87['set'](_0x566561['getIntersection'](_0x364960),_0x538e19));}const _0x4717eb=[];for(const [_0x1f8e52,_0x196172]of _0x1cba87){const _0x58b8df=_0x5b022c(),_0x5cbd0f={'key':_0x26c975,'oldValue':_0x196172,'newValue':_0x1a1571};_0x26c975['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':_0x26c975});const _0x3d524a=('attribute:'+(_0x26c975+'|'+Je({'newValue':_0x1a1571})))['substring'](0x0,0x3c),_0x509179=this['_setSuggestionData']({'id':_0x58b8df,'type':_0x3d524a,'data':_0x5cbd0f,'createdAt':new Date(),'authorId':_0x8e9d9d,'attributes':_0x5e2e03});_0x4717eb['push'](_0x509179),this['_addSuggestionMarker'](_0x3d524a,_0x58b8df,_0x8e9d9d,_0x1f8e52);}return _0x4717eb;}['enableDefaultAttributesIntegration'](_0x53d338){this['enableCommand'](_0x53d338,(_0x1c7ae2,..._0x46d660)=>{this['recordAttributeChanges'](()=>{_0x1c7ae2(..._0x46d660);});});}['startTrackingSession'](_0x24746e){return this['_trackingSessionId']=void 0x0!==_0x24746e?_0x24746e:_0x5b022c(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4f216c){return'attribute'==_0x4f216c['type']?un(_0x4f216c['subType']):null;}['_applyOperationsAsSuggestions'](_0x381549){if(0x0==_0x381549['length'])return;const _0x5bbfdb=this['editor'],_0x152305=_0x5bbfdb['plugins']['get'](_0x188216),_0xabfa5=[];_0x5bbfdb['model']['change'](_0x4b31b7=>{for(let _0x2fa06a=0x0;_0x2fa06a<_0x381549['length'];_0x2fa06a++){const _0x2c4232=_0x381549[_0x2fa06a];if(_0x2c4232['baseVersion']=_0x5bbfdb['model']['document']['version'],_0x2c4232['isDocumentOperation']=!0x0,_0x152305['isMarkedRemoveOperation'](_0x2c4232)){const _0xc99140=_0x710431(_0x2c4232['newRange'],_0x5bbfdb['model']);_0xabfa5['unshift'](_0x5817c4['fromRange'](_0xc99140));}else switch(_0x2c4232['type']){case'rename':{const _0x124da9=_0x2c4232['oldName'],_0x4dcfb0=_0x2c4232['newName'];if(_0x124da9==_0x4dcfb0)break;_0x4b31b7['batch']['addOperation'](_0x2c4232),_0x5bbfdb['model']['applyOperation'](_0x2c4232);const _0x40c6c6='$elementName',_0x240212=_0x2c4232['position'],_0x1fdecd=_0x5bbfdb['model']['createRange'](_0x240212,_0x5bbfdb['model']['createPositionAt'](_0x240212['nodeAfter'],'end'));this['markAttributeChange'](_0x1fdecd,_0x40c6c6,_0x124da9,_0x4dcfb0,{'groupId':_0x5b022c()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4d5e27=_0x2c4232['oldValue'],_0x4db7e9=_0x2c4232['newValue'];if(_0x4d5e27==_0x4db7e9)break;_0x4b31b7['batch']['addOperation'](_0x2c4232),_0x5bbfdb['model']['applyOperation'](_0x2c4232);const _0x814d75=_0x2c4232['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x814d75))break;const _0x5a7b72=_0x710431(_0x2c4232['range'],_0x5bbfdb['model']);this['markAttributeChange'](_0x5a7b72,_0x814d75,_0x4d5e27,_0x4db7e9,{'groupId':_0x5b022c()});break;}case'insert':{_0x4b31b7['batch']['addOperation'](_0x2c4232),_0x5bbfdb['model']['applyOperation'](_0x2c4232);if(_0x381549[_0x2fa06a+0x1]&&'move'==_0x381549[_0x2fa06a+0x1]['type'])break;const _0x274ddf=_0x2c4232['position'],_0x3e772b=_0x2c4232['howMany'],_0x4e9613=_0x710431(_0x5bbfdb['model']['createRange'](_0x274ddf,_0x274ddf['getShiftedBy'](_0x3e772b)),_0x5bbfdb['model']);this['markInsertion'](_0x4e9613);break;}case'split':{_0x4b31b7['batch']['addOperation'](_0x2c4232),_0x5bbfdb['model']['applyOperation'](_0x2c4232);const _0x4dc7f6=_0x2c4232['splitPosition'],_0x10ad48=_0x2c4232['moveTargetPosition'];this['markInsertion'](_0x5bbfdb['model']['createRange'](_0x4dc7f6,_0x10ad48));break;}case'move':case'remove':_0x4b31b7['batch']['addOperation'](_0x2c4232),_0x5bbfdb['model']['applyOperation'](_0x2c4232);}}for(const _0x22d106 of _0xabfa5)_0x22d106['detach'](),this['markDeletion'](_0x22d106);});}['_setSuggestionRange'](_0x59e0a7,_0xac47d8){const _0xa77f33=_0x59e0a7['getFirstMarker']();this['_model']['change'](_0x2a9d8d=>{_0x2a9d8d['updateMarker'](_0xa77f33,{'range':_0xac47d8});});}['_addThreadToSuggestion'](_0x2916e5){const _0xd3d67a=_0x2916e5['id'],_0x463eba=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xd3d67a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x463eba,'threadId':_0xd3d67a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1e0143=this['_commentsRepository']['getCommentThread'](_0xd3d67a);_0x1e0143['unbind']('isRemovable'),_0x1e0143['isRemovable']=!0x1,_0x2916e5['commentThread']=_0x1e0143;}['_checkSuggestionCorrectness'](_0x2531f0,_0x4d8049,_0x32c841,_0x162f42){if(_0x2531f0['type']!=_0x4d8049||_0x2531f0['subType']!=_0x32c841||_0x2531f0['creator']['id']!=_0x162f42)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x25a256('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xb7eb9a,_0x5699f6){const _0xd98e3e=_0xb7eb9a['getFirstRange']();if(_0x5699f6['isEqual'](_0xd98e3e))_0xb7eb9a['removeMarkers']();else{if(_0xd98e3e['containsRange'](_0x5699f6)){const _0x2341b0=this['_model']['createPositionAt'](_0x5699f6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xb7eb9a,this['_model']['createRange'](_0xd98e3e['start'],_0x2341b0));const _0x29fc30=_0x5b022c(),_0x2654b7=_0xb7eb9a['creator']['id'],_0x33ec73=_0xb7eb9a['type']+':'+_0xb7eb9a['subType'];this['_setSuggestionData']({'id':_0x29fc30,'type':_0x33ec73,'createdAt':new Date(),'authorId':_0x2654b7,'data':_0xb7eb9a['data'],'attributes':_0xb7eb9a['attributes']});const _0x19f963=this['_model']['createPositionAt'](_0x5699f6['end']['parent'],'after'),_0x253571=this['_model']['createRange'](_0x19f963,_0xd98e3e['end']);this['_addSuggestionMarker'](_0x33ec73,_0x29fc30,_0x2654b7,_0x253571);}else{if(_0xd98e3e['containsPosition'](_0x5699f6['start'])){const _0x243e0b=this['_model']['createPositionAt'](_0x5699f6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xb7eb9a,this['_model']['createRange'](_0xd98e3e['start'],_0x243e0b));}else{const _0x10bbce=this['_model']['createPositionAt'](_0x5699f6['end']['parent'],'after');this['_setSuggestionRange'](_0xb7eb9a,this['_model']['createRange'](_0x10bbce,_0xd98e3e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xaf5bcd){for(const {suggestion:_0x458e5f,meta:_0x53e016}of this['_findSuggestions'](_0xaf5bcd,'insertion')){if(!_0x53e016['isOwn'])continue;const _0x32200c=_0x458e5f['getRanges']();for(const _0x3da6fa of _0x32200c)if(!_0xaf5bcd['getDifference'](_0x3da6fa)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x36afba){return this['editor']['plugins']['get']('Users')['getUser'](_0x36afba);}['_getExternalAuthor'](_0x4a8e11){const _0x5574c6=this['editor']['plugins']['get']('Users'),_0x28fd1d=_0x550e9b('external:'+_0x4a8e11),_0x2a99b0=_0x5574c6['getUser'](_0x28fd1d);return _0x2a99b0||_0x5574c6['addUser']({'id':_0x28fd1d,'name':_0x4a8e11});}['_createSuggestion'](_0x268c74,_0x2ebe35,_0x5b318b,_0x1de338,_0x28ef34,_0x5a0358){const _0x40504a=this['_getAuthorFromId'](_0x1de338);if(!_0x40504a)throw new _0x25a256('track-changes-user-not-found',this,{'authorId':_0x1de338,'suggestionId':_0x5b318b});const _0x12ce5f=this['_suggestionFactory']['buildSuggestion'](_0x268c74,_0x2ebe35,_0x5b318b,_0x40504a,_0x28ef34,_0x36b689=>{this['_updateSuggestionData'](_0x5b318b,{'attributes':_0x36b689});const _0x1daea2=this['getSuggestion'](_0x5b318b);this['_joinWithAdjacentSuggestions'](new Set([_0x1daea2])),this['_refreshSuggestionsChain'](new Set([_0x1daea2]));},_0x5a0358);return this['listenTo'](_0x12ce5f,'accept',()=>{this['_updateSuggestionData'](_0x5b318b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x12ce5f,'discard',()=>{this['_updateSuggestionData'](_0x5b318b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b318b,_0x12ce5f),this['_suggestionState']['set'](_0x12ce5f,'notReady'),_0x12ce5f;}['_breakSuggestionMarker'](_0x6a4dd,_0x459a7e,_0x31cc77){const _0x529800=_0x6a4dd['getFirstRange'](),_0x2a7598=_0x529800['start'],_0x5a43d6=_0x529800['end'];this['_setSuggestionRange'](_0x6a4dd,this['_model']['createRange'](_0x2a7598,_0x459a7e));const _0x1c2e0d=_0x5b022c(),_0x40c185=_0x6a4dd['creator']['id'],_0x15c0f5=_0x6a4dd['type']+(_0x6a4dd['subType']?':'+_0x6a4dd['subType']:'');this['_setSuggestionData']({'id':_0x1c2e0d,'type':_0x15c0f5,'createdAt':new Date(),'authorId':_0x40c185,'originalSuggestionId':_0x6a4dd['_originalSuggestionId']||_0x6a4dd['id'],'attributes':_0x6a4dd['attributes'],'data':_0x6a4dd['data']});const _0xc47c95=this['_getAttributeKey'](_0x6a4dd);('formatBlock'==_0x6a4dd['type']||_0xc47c95&&this['_suggestionsConversion']['isBlockAttribute'](_0xc47c95))&&(_0x31cc77=this['_model']['createPositionBefore'](_0x31cc77['parent'])),this['_addSuggestionMarker'](_0x15c0f5,_0x1c2e0d,_0x40c185,this['_model']['createRange'](_0x31cc77,_0x5a43d6));}['_findSuggestions'](_0x382f77,_0x3572ed=null){const _0x534357=[],_0x5ae0e7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x382f77)||(_0x382f77=[_0x382f77]);for(const _0x3941c9 of this['getSuggestions']()){if(!_0x3941c9['isInContent'])continue;if(_0x3572ed&&_0x3941c9['type']!=_0x3572ed)continue;let _0x442489=!0x1;for(const _0x271210 of _0x3941c9['getRanges']()){for(const _0x39b7ae of _0x382f77){const _0x24d594=_0x39b7ae['start']['isEqual'](_0x271210['end'])||_0x39b7ae['end']['isEqual'](_0x271210['start']);if(_0x24d594||_0x39b7ae['getIntersection'](_0x271210)){const _0x2c9a00=_0x39b7ae['containsRange'](_0x271210)&&qe(this['_model']['schema'],_0x271210['start'],_0x39b7ae),_0x26ead4=_0x271210['containsRange'](_0x39b7ae)&&qe(this['_model']['schema'],_0x39b7ae['start'],_0x271210);_0x534357['push']({'suggestion':_0x3941c9,'meta':{'isOwn':_0x5ae0e7==_0x3941c9['author'],'isNextTo':_0x24d594,'isInsideObject':_0x2c9a00,'containsRangeInObject':_0x26ead4}}),_0x442489=!0x0;break;}}if(_0x442489)break;}}return _0x534357;}['_addSuggestionMarker'](_0x5c1ad1,_0xb5f360,_0x15f5c9,_0x3ffa2a,_0x51e041){this['_model']['change'](_0x5da951=>{let _0x41e827='suggestion:'+_0x5c1ad1+':'+_0xb5f360+':'+_0x15f5c9;_0x51e041&&(_0x41e827=_0x41e827+':'+_0x51e041),_0x5da951['addMarker'](_0x41e827,{'range':_0x3ffa2a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xaee796){const _0x28de5f=_0xaee796['previous'],_0x4f06e7=_0xaee796['next'];_0xaee796['previous']=null,_0xaee796['next']=null,null!=_0x28de5f&&_0x28de5f['next']==_0xaee796&&(_0x28de5f['next']=_0x4f06e7),null!=_0x4f06e7&&_0x4f06e7['previous']==_0xaee796&&(_0x4f06e7['previous']=_0x28de5f),'ready'==this['_suggestionState']['get'](_0xaee796)&&(this['_suggestionState']['set'](_0xaee796,'removed'),this['fire']('suggestionUnloaded',_0xaee796,_0x28de5f,_0x4f06e7));}['_setSuggestionData'](_0x35428c){const _0x5b351e=_0x35428c['id'],_0x24654b=this['addSuggestionData'](_0x35428c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x143eaa=this['editor']['plugins']['get']('PendingActions'),_0x5463ff=_0x24654b['hasComments'],_0x3620ba=_0x24654b['subType']?_0x24654b['type']+':'+_0x24654b['subType']:_0x24654b['type'],_0x9c61df=this['editor']['locale'],_0xde21f9=_0x143eaa['add'](At(_0x9c61df,'PENDING_ACTION_SUGGESTION')),_0x2949d9={'id':_0x5b351e,'type':_0x3620ba,'hasComments':_0x5463ff,'data':_0x35428c['data']||null,'originalSuggestionId':_0x35428c['originalSuggestionId']||null,'attributes':_0x24654b['attributes']};this['_adapter']['addSuggestion'](_0x2949d9)['then'](_0x29e8f7=>{_0x24654b['_saved']=!0x0,_0x143eaa['remove'](_0xde21f9),_0x29e8f7&&_0x29e8f7['createdAt']&&(this['_suggestions']['get'](_0x5b351e)['createdAt']=_0x29e8f7['createdAt']);})['catch'](_0x1e1401=>{throw _0x30e13e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x24654b['discard']();}),_0x24654b['stopListening'](),this['_suggestions']['delete'](_0x24654b['id']),this['_suggestionState']['delete'](_0x24654b),_0x1e1401;});}return _0x24654b;}['_updateSuggestionData'](_0x4037e2,_0x3b9d46){const _0x2a2858=this['editor']['plugins']['get']('PendingActions'),_0x3dda19=this['getSuggestion'](_0x4037e2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3dda19['_saved']){const _0xc7aa07=_0x2a2858['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4037e2,_0x3b9d46)['then'](()=>{_0x2a2858['remove'](_0xc7aa07);});}else _0x3dda19['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4037e2,_0x3b9d46);});}}['_getSuggestionData'](_0x2e2613){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x25a256('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2e2613);}['_handleNewSuggestionMarker'](_0x3e902b){const {id:_0x352d1b,type:_0x372073,subType:_0x1718af,authorId:_0x547d65}=_0x4dc3a3(_0x3e902b),_0x519ea6=this['_suggestions']['get'](_0x352d1b)||this['_createSuggestion'](_0x372073,_0x1718af,_0x352d1b,_0x547d65,{});switch(this['_checkSuggestionCorrectness'](_0x519ea6,_0x372073,_0x1718af,_0x547d65),this['_suggestionState']['get'](_0x519ea6)){case'notReady':this['_getSuggestionData'](_0x352d1b)['then'](_0x5c2461=>{let _0x1db10f=Promise['resolve']();_0x5c2461['hasComments']&&(_0x1db10f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x352d1b})),_0x1db10f['then'](()=>{this['addSuggestionData'](_0x5c2461)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x519ea6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x352d1b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x519ea6,'ready'),this['fire']('suggestionLoaded',_0x519ea6);break;case'ready':this['fire']('suggestionChanged',_0x519ea6);}return _0x519ea6['addMarkerName'](_0x3e902b),_0x519ea6;}['_refreshSuggestionsChain'](_0xb84422){const _0x3407ad=Array['from'](_0xb84422),_0x2481ee=_0x3407ad['filter'](_0x15e8db=>'attribute'==_0x15e8db['type']);this['_refreshAttributeSuggestionsChain'](_0x2481ee);const _0x3b2cd6=_0x3407ad['filter'](_0x4a58f5=>!_0x4a58f5['isMultiRange']&&'attribute'!=_0x4a58f5['type']),_0x423ad2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40c3bc=>!_0x40c3bc['isMultiRange']&&'attribute'!=_0x40c3bc['type']),_0x2dc71d=_0x423ad2['filter'](_0x488d40=>!_0xb84422['has'](_0x488d40)),_0x3a20d2=new Map(_0x423ad2['map'](_0x35f9ed=>[_0x35f9ed,this['_suggestionFactory']['getSuggestionCallback'](_0x35f9ed['type'],_0x35f9ed['subType'],'chain')])),_0x3009d5=new Map(_0x423ad2['map'](_0x460a53=>[_0x460a53,_0x460a53['getFirstRange']()])),_0x43e755=new Set(),_0x3af192=new Set();for(let _0x226770=0x0;_0x226770<_0x3b2cd6['length'];_0x226770++)_0x25154d(_0x3b2cd6[_0x226770],_0x3b2cd6,_0x226770+0x1);for(let _0x1237f7=0x0;_0x1237f7<_0x3b2cd6['length'];_0x1237f7++)_0x25154d(_0x3b2cd6[_0x1237f7],_0x2dc71d,0x0);const _0x577a23=new Set();for(let _0x2bf8aa=0x0;_0x2bf8aa<_0x3b2cd6['length'];_0x2bf8aa++){const _0x567ad3=_0x3b2cd6[_0x2bf8aa];!_0x3af192['has'](_0x567ad3)&&_0x567ad3['previous']&&(_0x577a23['add'](_0x567ad3['previous']),_0x567ad3['previous']['next']===_0x567ad3&&(_0x567ad3['previous']['next']=null),_0x567ad3['previous']=null),!_0x43e755['has'](_0x567ad3)&&_0x567ad3['next']&&(_0x577a23['add'](_0x567ad3['next']),_0x567ad3['next']['previous']===_0x567ad3&&(_0x567ad3['next']['previous']=null),_0x567ad3['next']=null);}function _0x25154d(_0x121807,_0x3fef76,_0x5406e0){for(let _0x4a7de8=_0x5406e0;_0x4a7de8<_0x3fef76['length'];_0x4a7de8++){const _0x2a1a3f=_0x4df269(_0x121807,_0x3fef76[_0x4a7de8]);_0x2a1a3f&&(_0x2a1a3f[0x0]['next']=_0x2a1a3f[0x1],_0x2a1a3f[0x1]['previous']=_0x2a1a3f[0x0],_0x43e755['add'](_0x2a1a3f[0x0]),_0x3af192['add'](_0x2a1a3f[0x1]));}}function _0x4df269(_0x4ba139,_0x17a117){if(_0x4ba139['author']['id']!==_0x17a117['author']['id'])return null;const _0x3cc8b9=_0x3a20d2['get'](_0x4ba139)(_0x4ba139,_0x17a117,_0x3009d5['get'](_0x4ba139),_0x3009d5['get'](_0x17a117));if(!_0x3cc8b9)return null;return _0x3a20d2['get'](_0x17a117)(_0x4ba139,_0x17a117,_0x3009d5['get'](_0x4ba139),_0x3009d5['get'](_0x17a117))?_0x3cc8b9[0x1]['commentThread']&&_0x3cc8b9[0x1]['commentThread']['length']?null:_0x3cc8b9:null;}_0x577a23['size']&&this['_refreshSuggestionsChain'](_0x577a23);}['_refreshAttributeSuggestionsChain'](_0x2e5de3){if(0x0==_0x2e5de3['length'])return;const _0x1c4f85=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31d3c0=>'attribute'==_0x31d3c0['type']&&_0x31d3c0['_isDataLoaded']),_0x38d924=[],_0x33d297=new Map();for(const _0x3e9450 of _0x1c4f85){const _0x560876=_0x550e9b(_0x3e9450['attributes']);_0x33d297['has'](_0x560876)||(_0x33d297['set'](_0x560876,_0x38d924['length']),_0x38d924['push']([]));const _0x7eaffa=_0x33d297['get'](_0x560876);_0x38d924[_0x7eaffa]['push'](_0x3e9450);}!(function(){_0x38d924['sort']((_0x4643b3,_0x2b79a1)=>{const _0x3b64a9=_0x4643b3[0x0]['createdAt'],_0x4963be=_0x2b79a1[0x0]['createdAt'];return _0x3b64a9==_0x4963be?_0x4643b3[0x0]['attributes']['groupId']<_0x2b79a1[0x0]['attributes']['groupId']?-0x1:0x1:_0x3b64a9<_0x4963be?-0x1:0x1;});for(const _0x544c78 of _0x38d924)_0x544c78['sort']((_0xfba49d,_0x412b58)=>_0xfba49d['id']<_0x412b58['id']?-0x1:0x1);}());for(let _0x28d621=0x0;_0x28d621<_0x38d924['length'];_0x28d621++){if(0x0==_0x38d924[_0x28d621]['length'])continue;const _0x38d8b8=[];for(let _0x299194=_0x28d621+0x1;_0x299194<_0x38d924['length'];_0x299194++)0x0!=_0x38d924[_0x299194]['length']&&_0x35921f(_0x38d924[_0x28d621],_0x38d924[_0x299194])&&_0x38d8b8['push'](_0x299194);for(const _0x13c8c2 of _0x38d8b8)_0x38d924[_0x28d621]=_0x38d924[_0x28d621]['concat'](_0x38d924[_0x13c8c2]),_0x38d924[_0x13c8c2]=[];}for(const _0x461542 of _0x38d924)for(let _0x3813a7=0x0;_0x3813a7<_0x461542['length'];_0x3813a7++){const _0x2bdb16=_0x461542[_0x3813a7+0x1]||null;_0x461542[_0x3813a7]['next']!==_0x2bdb16&&(_0x461542[_0x3813a7]['next']=_0x2bdb16);}for(const _0x108ebf of _0x38d924)for(let _0x5ab510=0x0;_0x5ab510<_0x108ebf['length'];_0x5ab510++){const _0x13180b=_0x108ebf[_0x5ab510-0x1]||null;_0x108ebf[_0x5ab510]['previous']!==_0x13180b&&(_0x108ebf[_0x5ab510]['previous']=_0x13180b);}function _0x35921f(_0x4d6e2a,_0x5c70b5){if(_0x4d6e2a[0x0]['attributes']['groupId']!==_0x5c70b5[0x0]['attributes']['groupId']&&_0x4d6e2a[0x0]['author']!==_0x5c70b5[0x0]['author'])return!0x1;if(!function(_0x2a0765,_0x54e9ec){if(!_0x2a0765['hasComments']&&!_0x54e9ec['hasComments'])return!0x0;if(_0x2a0765['hasComments']&&_0x54e9ec['hasComments'])return!0x1;if(_0x2a0765['hasComments']&&_0x54e9ec['createdAt']<_0x2a0765['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x54e9ec['hasComments']&&_0x2a0765['createdAt']<_0x54e9ec['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4d6e2a[0x0],_0x5c70b5[0x0]))return!0x1;const _0x3e7682=ot(_0x4d6e2a[0x0]['attributes'],['groupId','trackingSessionId']),_0x8527a3=ot(_0x5c70b5[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x3e7682,_0x8527a3))return!0x1;if(_0x4d6e2a[0x0]['attributes']['groupId']==_0x5c70b5[0x0]['attributes']['groupId'])return!0x0;if(_0x4d6e2a[0x0]['attributes']['trackingSessionId']!==_0x5c70b5[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4d6e2a['every'](_0x180229=>_0x5c70b5['some'](_0x3cda74=>_0x180229['getFirstRange']()['isEqual'](_0x3cda74['getFirstRange']())))&&_0x5c70b5['every'](_0x14eccd=>_0x4d6e2a['some'](_0x1c00c4=>_0x14eccd['getFirstRange']()['isEqual'](_0x1c00c4['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xdd764e){const _0x349fc0=Array['from'](_0xdd764e),_0x4de859=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5c829d=_0x4de859['filter'](_0x49b664=>!_0xdd764e['has'](_0x49b664)),_0x58a821=new Map(_0x349fc0['map'](_0x2f14b1=>[_0x2f14b1,this['_suggestionFactory']['getSuggestionCallback'](_0x2f14b1['type'],_0x2f14b1['subType'],'join')])),_0x1d023f=new Map(_0x4de859['map'](_0x349239=>[_0x349239,_0x349239['getRanges']()]));for(let _0x4d1c0a=0x0;_0x4d1c0a<_0x349fc0['length'];_0x4d1c0a++){if(_0x4986cc(this,_0x349fc0[_0x4d1c0a],_0x349fc0,_0x4d1c0a+0x1))return!0x0;}for(let _0x84c0e1=0x0;_0x84c0e1<_0x349fc0['length'];_0x84c0e1++){if(_0x4986cc(this,_0x349fc0[_0x84c0e1],_0x5c829d,0x0))return!0x0;}return!0x1;function _0x4986cc(_0x37673a,_0x276e6d,_0x1c35cf,_0x1e1615){for(let _0x4004d9=_0x1e1615;_0x4004d9<_0x1c35cf['length'];_0x4004d9++){const _0x39ecf8=_0x1c35cf[_0x4004d9];if(_0x39ecf8['type']!==_0x276e6d['type']||_0x39ecf8['author']['id']!==_0x276e6d['author']['id']||_0x39ecf8['subType']!==_0x276e6d['subType'])continue;if(!an(_0x276e6d,_0x39ecf8))continue;if('attribute'==_0x276e6d['type']&&_0x276e6d['data']['oldValue']!=_0x39ecf8['data']['oldValue'])continue;if('attribute'==_0x276e6d['type']&&_0x37673a['_suggestionsConversion']['isBlockAttribute'](_0x276e6d['data']['key']))continue;if('formatBlock'==_0x276e6d['type']){const _0x533063=_0x37673a['editor']['model'],_0x4c09ad=_0x276e6d['getContainedElement']();if(_0x4c09ad&&(_0x533063['schema']['isObject'](_0x4c09ad)||_0x533063['schema']['isLimit'](_0x4c09ad)))continue;}const _0x113fbd=_0x58a821['get'](_0x276e6d),_0x1ec472=_0x1d023f['get'](_0x276e6d),_0x5d17d4=_0x1d023f['get'](_0x39ecf8),_0x385fbb=_0x276e6d['commentThread']&&_0x276e6d['commentThread']['length'],_0xe6ed8=_0x39ecf8['commentThread']&&_0x39ecf8['commentThread']['length'];if(!_0x385fbb&&_0x113fbd(_0x5d17d4,_0x1ec472))return _0x37673a['_joinSuggestions'](_0x39ecf8,_0x276e6d),_0x1d023f['delete'](_0x276e6d),!0x0;if(!_0xe6ed8&&_0x113fbd(_0x1ec472,_0x5d17d4))return _0x37673a['_joinSuggestions'](_0x276e6d,_0x39ecf8),_0x1d023f['delete'](_0x39ecf8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5623b3,_0x39bbc5){if(_0x5623b3['isMultiRange']){for(const _0x3aa7e7 of _0x39bbc5['getRanges']())_0x5623b3['addRange'](_0x3aa7e7);}else{const _0x3ad37e=_0x39bbc5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5623b3,this['_model']['createRange'](_0x5623b3['getFirstRange']()['start'],_0x3ad37e));}_0x39bbc5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x47382a,_0x2a525b,_0x2dc8b7){const _0x5449d9=_0x47382a['startsWith']('format')||_0x47382a['startsWith']('attribute')?'FORMATTING':_0x47382a['toUpperCase']();return At(this['editor']['locale'],_0x2a525b+'_'+_0x5449d9+'_SUGGESTION_ANNOUNCEMENT',_0x2dc8b7);}['_initAriaMarkerChangeAnnouncements'](){const _0x194492=this['editor'];if(!_0x194492['ui'])return;const {ariaLiveAnnouncer:_0x513b80}=_0x194492['ui'];_0x4daed7(this['_model'],({left:_0x18732f,entered:_0x210437})=>{for(const _0x5db26c of _0x18732f){const {group:_0x23e9ed,type:_0x145558}=_0x4dc3a3(_0x5db26c['name']);if('suggestion'===_0x23e9ed){_0x513b80['announce'](this['_getMarkerAnnouncementText'](_0x145558,'LEAVE'));break;}}for(const _0x13ed05 of _0x210437){const {group:_0x130d41,type:_0x508323}=_0x4dc3a3(_0x13ed05['name']);if('suggestion'===_0x130d41){_0x513b80['announce'](this['_getMarkerAnnouncementText'](_0x508323,'ENTER',_0x3a30ad(_0x43e6c0)));break;}}});}['_processAttributeChanges'](_0x40ad78){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd07a5a=this['editor'],_0x10064c=_0xd07a5a['model']['document']['differ']['getChanges']();if(0x0==_0x10064c['length'])return!0x1;const _0x39bc8f=[],_0x466831=_0x10064c['filter'](_0x43e620=>'attribute'==_0x43e620['type']),_0x59d174=_0x10064c['filter'](_0x7dfd30=>'insert'==_0x7dfd30['type']&&'$text'!=_0x7dfd30['name']),_0x1c536d=_0x10064c['filter'](_0x36e112=>'remove'==_0x36e112['type']&&'$text'!=_0x36e112['name']);for(const _0x1d8aff of _0x466831)_0x39bc8f['push']({'key':_0x1d8aff['attributeKey'],'newValue':_0x1d8aff['attributeNewValue'],'oldValue':_0x1d8aff['attributeOldValue'],'range':sn(_0x1d8aff['range'],_0xd07a5a['model'])});for(const _0x5e62e4 of _0x59d174){const _0x133122=_0x1c536d['find'](_0x26f96c=>_0x26f96c['position']['isEqual'](_0x5e62e4['position']));_0x133122&&_0x39bc8f['push']({'key':Ke,'newValue':_0x5e62e4['name'],'oldValue':_0x133122['name'],'range':_0xd07a5a['model']['createRangeOn'](_0x5e62e4['position']['nodeAfter'])});}return 0x0!=_0x39bc8f['length']&&this['_reduceExistingSuggestions'](_0x40ad78,_0x39bc8f);}['_processAttributeSuggestions'](_0x999b3a){let _0x2799ef=!0x1;const _0x4dccb8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x20e716=>_0x20e716['data']['newRange']&&_0x20e716['name']['startsWith']('suggestion:attribute:'));for(const _0x2e3933 of _0x4dccb8){const {subType:_0x46a674,id:_0x44d38b}=_0x4dc3a3(_0x2e3933['name']),_0x10bc10=_0x46a674['split']('|')[0x0];for(const _0x27c47b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x27c47b['id']!=_0x44d38b&&'attribute'==_0x27c47b['type']&&_0x27c47b['data']&&_0x27c47b['data']['key']==_0x10bc10&&_0x27c47b['getFirstRange']()['isIntersecting'](_0x2e3933['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x27c47b,_0x2e3933['data']['newRange'],_0x999b3a),_0x2799ef=!0x0);}return _0x2799ef;}['recordAttributeChanges'](_0x568ff3){this['_recordAttributeSuggestions']=!0x0,_0x568ff3();}['_reduceExistingSuggestions'](_0x5228f5,_0x1bbf3a){if(0x0==_0x1bbf3a['length'])return!0x1;let _0x413ded=!0x1;for(const _0x430eed of _0x1bbf3a){const _0x22fccd=this['_findSuggestions'](_0x430eed['range'],'attribute')['filter'](_0x2f1fe2=>!_0x2f1fe2['meta']['isNextTo'])['map'](_0x4b12ff=>_0x4b12ff['suggestion']),_0x950139=_0x550e9b({'newValue':_0x430eed['newValue']});_0x22fccd['filter'](_0x125a41=>{const [_0x1074b7,_0x4544d5]=_0x125a41['subType']['split']('|');return _0x1074b7==_0x430eed['key']&&_0x4544d5!=_0x950139;})['forEach'](_0x51f6f1=>{this['_reduceSuggestionAttributeRange'](_0x51f6f1,_0x430eed['range'],_0x5228f5),_0x413ded=!0x0;});}return _0x413ded;}['_reduceSuggestionAttributeRange'](_0x5f2ca2,_0xef110e,_0xc041fb){const _0x227dfc=_0x5f2ca2['getFirstRange']()['getDifference'](_0xef110e);0x0!==_0x227dfc['length']?0x1!==_0x227dfc['length']?this['_breakSuggestionMarker'](_0x5f2ca2,_0xef110e['start'],_0xef110e['end']):this['_setSuggestionRange'](_0x5f2ca2,_0x227dfc[0x0]):_0xc041fb['removeMarker'](_0x5f2ca2['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x185415){this['_editor']=_0x185415,this['_model']=_0x185415['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x118bc0,_0x5723af,_0xcc4b3a,_0x5d3e0a,_0x3279ff,_0x444cc2,_0x361c59){return new bt(this['_model'],{'type':_0x118bc0,'subType':_0x5723af,'id':_0xcc4b3a,'originalSuggestionId':_0x361c59,'author':_0x5d3e0a,'creator':_0x5d3e0a,'attributes':_0x3279ff,'onAttributesChange':_0x444cc2,'onAccept':(..._0x1d5846)=>this['getSuggestionCallback'](_0x118bc0,_0x5723af,'accept')(..._0x1d5846),'onDiscard':(..._0x417bbf)=>this['getSuggestionCallback'](_0x118bc0,_0x5723af,'discard')(..._0x417bbf)});}['registerCustomCallback'](_0x1273e9,_0x5cb750,_0x119760,_0x5094ad){const _0x5ce984=_0x1273e9+':'+_0x5cb750+':'+_0x119760;this['_customCallbacks']['set'](_0x5ce984,_0x5094ad);}['getSuggestionCallback'](_0x5a6b30,_0xd0a0d3,_0x4b1c83){const _0x2db86f=_0x5a6b30+':'+_0xd0a0d3+':'+_0x4b1c83;return this['_customCallbacks']['get'](_0x2db86f)||this['_defaultCallbacks']['get'](_0x5a6b30+':'+_0x4b1c83);}['_registerDefaultCallbacks'](){const _0xe260e8=()=>!0x1,_0x1a16da=_0x4de91f=>{_0x4de91f['sort']((_0x1c308b,_0x40cc17)=>_0x1c308b['start']['isBefore'](_0x40cc17['start'])?0x1:-0x1),this['_model']['change'](_0x424bd1=>{for(const _0xc1ba83 of _0x4de91f){let _0x38a06a;_0x38a06a=_0xc1ba83['end']['isAtEnd']&&_0xc1ba83['end']['parent']==_0xc1ba83['start']['nodeAfter']?_0x424bd1['createSelection'](_0xc1ba83['start']['nodeAfter'],'on'):_0x424bd1['createSelection'](_0xc1ba83),this['_model']['deleteContent'](_0x38a06a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x429b0f=(_0x1514c9,_0x2c60d7)=>{_0x2c60d7&&this['_model']['change'](_0xf8e240=>{const {commandName:_0x4342b8,commandParams:_0x21db12=[]}=_0x2c60d7,_0x27d979=_0x1514c9['map'](_0x20c979=>(Qe(_0x20c979)&&(_0x20c979=this['_model']['createRange'](_0x20c979['end'])),_0x20c979))['filter'](_0x3c6d73=>'$graveyard'!==_0x3c6d73['root']['rootName']);if(_0x27d979['length']<0x1)return;const _0x5ed777=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1e2f00=>_0x5817c4['fromRange'](_0x1e2f00));_0xf8e240['setSelection'](_0x27d979);for(const _0x16ecd1 of this['_editor']['commands']['commands']())_0x16ecd1['refresh']();_0x21db12['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4342b8,..._0x21db12);const _0x9385ff=_0x5ed777['filter'](_0x3fe53a=>'$graveyard'!=_0x3fe53a['root']['rootName']);_0x9385ff['length']>0x0&&_0xf8e240['setSelection'](_0x9385ff);for(const _0x2bfb93 of _0x5ed777)_0x2bfb93['detach']();});},_0x1d6a25=(_0x41535b,_0x187157)=>0x1==_0x41535b['length']&&0x1==_0x187157['length']&&_0x41535b[0x0]['end']['isEqual'](_0x187157[0x0]['start']),_0x3c0e69=(_0x5e0c3a,_0x189855,_0x3e6c94,_0x332756)=>on(_0x5e0c3a,_0x189855,_0x3e6c94,_0x332756)?[_0x5e0c3a,_0x189855]:on(_0x189855,_0x5e0c3a,_0x332756,_0x3e6c94)?[_0x189855,_0x5e0c3a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xe260e8),this['_defaultCallbacks']['set']('insertion:discard',_0x1a16da),this['_defaultCallbacks']['set']('insertion:join',_0x1d6a25),this['_defaultCallbacks']['set']('insertion:chain',_0x3c0e69),this['_defaultCallbacks']['set']('deletion:accept',_0x1a16da),this['_defaultCallbacks']['set']('deletion:discard',_0xe260e8),this['_defaultCallbacks']['set']('deletion:join',_0x1d6a25),this['_defaultCallbacks']['set']('deletion:chain',_0x3c0e69),this['_defaultCallbacks']['set']('formatInline:accept',_0x429b0f),this['_defaultCallbacks']['set']('formatInline:discard',_0xe260e8),this['_defaultCallbacks']['set']('formatInline:join',_0x1d6a25),this['_defaultCallbacks']['set']('formatInline:chain',_0xe260e8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x429b0f),this['_defaultCallbacks']['set']('formatBlock:discard',_0xe260e8),this['_defaultCallbacks']['set']('formatBlock:join',_0x1d6a25),this['_defaultCallbacks']['set']('formatBlock:chain',_0xe260e8),this['_defaultCallbacks']['set']('attribute:accept',_0xe260e8),this['_defaultCallbacks']['set']('attribute:discard',(_0x1ac68d,_0x420cd9)=>{if(!_0x420cd9)return;const _0xdf2660=this['_editor']['plugins']['get'](_0x495abb);this['_model']['change'](_0x4cb680=>{if(_0x420cd9['key']==Ke)for(const _0x43224f of _0x1ac68d){const _0x551dcf=_0x43224f['start']['nodeAfter'],_0x309ef0=_0x420cd9['oldValue'];_0x4cb680['rename'](_0x551dcf,_0x309ef0);}else{if(_0xdf2660['isBlockAttribute'](_0x420cd9['key'])){for(const _0x598c82 of _0x1ac68d)void 0x0!==_0x420cd9['oldValue']?_0x4cb680['setAttribute'](_0x420cd9['key'],_0x420cd9['oldValue'],_0x598c82['start']['nodeAfter']):_0x4cb680['removeAttribute'](_0x420cd9['key'],_0x598c82['start']['nodeAfter']);}else{for(const _0xc789d4 of _0x1ac68d)_0x420cd9['oldValue']?_0x4cb680['setAttribute'](_0x420cd9['key'],_0x420cd9['oldValue'],_0xc789d4):_0x4cb680['removeAttribute'](_0x420cd9['key'],_0xc789d4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1d6a25);}}function qe(_0x5530c6,_0x3096dd,_0x46cb6e){for(const _0x3ca612 of _0x3096dd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3ca612['root']==_0x3ca612)return!0x1;if(!_0x46cb6e['containsItem'](_0x3ca612))return!0x1;if(_0x5530c6['isObject'](_0x3ca612)||_0x5530c6['isLimit'](_0x3ca612))return!0x0;}return!0x1;}function Qe(_0x116e93){return _0x116e93['end']['parent']==_0x116e93['start']['nodeAfter']&&_0x116e93['end']['isAtStart'];}function Ze(_0x4f6f79,_0x53129c,_0x5bd7d0,_0xf51066){const _0x5cd3bc=_0x56f28d=>!_0x56f28d['item']['is']('$textProxy')&&!_0xf51066['isObject'](_0x56f28d['item']),_0x426add=_0x4f6f79['start']['getLastMatchingPosition'](_0x5cd3bc),_0x3c8f92=_0x4f6f79['end']['getLastMatchingPosition'](_0x5cd3bc,{'direction':'backward'});return(!_0x4f6f79['start']['isEqual'](_0x426add)||!_0x4f6f79['end']['isEqual'](_0x3c8f92))&&(_0x426add['isBefore'](_0x3c8f92)?_0x5bd7d0['updateMarker'](_0x53129c,{'range':_0x5bd7d0['createRange'](_0x426add,_0x3c8f92)}):_0x5bd7d0['removeMarker'](_0x53129c),!0x0);}function Je(_0x260ced){return _0x550e9b(_0x260ced);}function tn(_0x308c6b){const _0x528444=_0x308c6b['start']['nodeAfter'];return _0x528444&&_0x528444['is']('element');}function en(_0x2fda8b){return Qe(_0x2fda8b)||function(_0x932c62){return _0x932c62['start']['parent']==_0x932c62['end']['nodeBefore']&&_0x932c62['start']['isAtEnd'];}(_0x2fda8b);}function nn(_0x4968d6,_0x1470d6){try{const _0x3fecbd=_0x4968d6['getRange']();for(const _0xc898af of _0x1470d6)if(_0x4968d6!==_0xc898af&&_0x3fecbd&&_0x3fecbd['isIntersecting'](_0xc898af['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x5b3735,_0x2faa25){return null==_0x5b3735['end']['nodeBefore']&&_0x5b3735['end']['parent']==_0x5b3735['start']['nodeAfter']?rn(_0x5b3735['start']['nodeAfter'],_0x2faa25):_0x5b3735;}function rn(_0x119682,_0x629eae){const _0x4cc504=_0x629eae['schema']['isObject'](_0x119682)||_0x629eae['schema']['isSelectable'](_0x119682);return _0x629eae['createRange'](_0x629eae['createPositionAt'](_0x119682,'before'),_0x4cc504?_0x629eae['createPositionAfter'](_0x119682):_0x629eae['createPositionAt'](_0x119682,'end'));}function on(_0x48f886,_0x305811,_0x2fd1a6,_0x37f36e){return!!an(_0x48f886,_0x305811)&&_0x2fd1a6['end']['isEqual'](_0x37f36e['start']);}function an(_0x1e5ba8,_0xac4f74){if(!_0x1e5ba8['_isDataLoaded']||!_0xac4f74['_isDataLoaded'])return!0x1;const _0x31f298=new Set(Object['keys'](_0x1e5ba8['attributes'])),_0x42c8b7=new Set(Object['keys'](_0xac4f74['attributes']));if(_0x31f298['delete']('groupId'),_0x42c8b7['delete']('groupId'),0x0==_0x31f298['size']&&0x0==_0x42c8b7['size'])return!0x0;if(_0x31f298['size']!=_0x42c8b7['size'])return!0x1;const _0x14ad73={..._0x1e5ba8['attributes']},_0x1c9742={..._0xac4f74['attributes']};return delete _0x14ad73['groupId'],delete _0x1c9742['groupId'],JSON['stringify'](_0x14ad73)==JSON['stringify'](_0x1c9742);}function cn(_0x3aac63,_0x400bcd){const _0x157333=ln(_0x3aac63['attributes']),_0x207827=ln(_0x400bcd);if(!_0x3aac63['_isDataLoaded'])return!0x1;for(const _0x1a9adc of Object['keys'](_0x207827))if(!st(_0x157333[_0x1a9adc],_0x207827[_0x1a9adc]))return!0x1;return!0x0;}function ln(_0x5e6184){const _0x2e56d2=Object['assign']({},_0x5e6184);return delete _0x2e56d2['skipNestingCheck'],delete _0x2e56d2['tablePasteChainId'],_0x2e56d2;}function un(_0x4d3dfe){return _0x4d3dfe['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x13164b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x14eda2,_0x1c7fbd,_0x8a34f1,_0x5b5d8b){super(),this['model']=_0x1c7fbd,this['view']=_0x8a34f1,this['commentThreadController']=_0x5b5d8b,this['_editor']=_0x14eda2,this['_acceptCommand']=_0x14eda2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x14eda2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x44f694,_0x41bd71)=>_0x44f694||_0x41bd71),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4f8e08=>_0x4f8e08&&this['_editor']['model']['canEditAt'](_0x1c7fbd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2bd32f=>_0x2bd32f&&this['_editor']['model']['canEditAt'](_0x1c7fbd['getRanges']())),this['_pendingAction']=null,_0x8a34f1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x8a34f1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x8a34f1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x8a34f1,'change:isDirty',()=>{_0x8a34f1['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 _0x5e4bf4=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5e4bf4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x15b561{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x23ad6c,_0x3dc6bc,_0x579768,_0x55b396){super(_0x23ad6c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x92fd7d(_0x23ad6c,At(_0x23ad6c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3dc6bc['authoredAt']),this['bind']('authoredAt')['to'](_0x3dc6bc),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',_0x3dc6bc,'authoredAt',this,'descriptionParts',(_0x158ee6,_0x324dc0,_0x3c2955)=>{const _0x907f91=_0x3c2955['map'](_0xbfdb40=>gt(_0xbfdb40['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x158ee6-0x1,_0x3dc6bc['author']['name'],_0x324dc0?_0x55b396['formatDateTime'](_0x324dc0):'',new DOMParser()['parseFromString'](_0x907f91,'text/html')['body']['textContent']]);}),this['focusables']=new _0x57967f(),this['focusTracker']=new _0x1fa383(),this['keystrokes']=new _0x50001b(),this['focusCycler']=new _0x31168b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2cdbb9=>_0x2cdbb9['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3dc6bc,this['_localUser']=_0x579768,this['_config']=_0x55b396,_0x55b396['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x116b50(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x575bc1}=this['_config'];this['commentsListView']=new _0x575bc1(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',_0x1bd990=>_0x1bd990+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x413683,_0x218174)=>_0x413683||!!_0x218174);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x8d950f}=this['_config'],_0x4ba6e3=new _0x8d950f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x168bde=_0x4ba6e3['commentInputView'];return _0x4ba6e3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x168bde,'value',(_0x295794,_0x3b4328,_0x464e00)=>!!_0x464e00||_0x295794&&!_0x3b4328),_0x168bde['on']('submit',(_0x562480,_0x4a769d)=>{this['fire']('addComment',_0x4a769d),_0x168bde['editor']['setData']('');}),_0x168bde['on']('cancel',()=>this['focus']()),_0x168bde['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4ba6e3;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x166b3a,_0x14fcbc,_0x5ea010,_0x2c57a9){super(_0x166b3a,_0x14fcbc,_0x5ea010,_0x2c57a9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb6d07f=>_0xb6d07f&&_0xb6d07f[0x0]?_0xb6d07f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x511018,_0x177d0c)=>{let _0x133ccd='';for(const _0xbdf11e of _0x511018)_0x133ccd+='<p>'+gt(_0xbdf11e['content'],_0xbdf11e['color'])+'</p>';return _0x177d0c?_0x133ccd:_0x282f4f(_0x133ccd,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2c57a9['SuggestionView'](_0x166b3a,_0x14fcbc,{'formatDateTime':_0x2c57a9['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 _0x34aec1=this['bindTemplate'],_0x1bb182=[this['suggestionView']];return this['commentsListView']&&_0x1bb182['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1bb182['push'](this['commentThreadInputView']),_0x1bb182['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x34aec1['if']('isActive','ck-suggestion-wrapper--active'),_0x34aec1['to']('type',_0x135eec=>'ck-suggestion-'+_0x135eec),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':_0x34aec1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1bb182};}['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 gn extends _0x15b561{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x134f4d,_0xb66556,_0x47bcde){super(_0x134f4d),this['_model']=_0xb66556,this['_config']=_0x47bcde,this['set']('description',''),this['bind']('authoredAt')['to'](_0xb66556),this['acceptButton']=this['_createButton'](At(_0x134f4d,'Accept\x20suggestion'),_0x48a691,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x134f4d,'Discard\x20suggestion'),_0x16672d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x256fbc(_0x134f4d,_0xb66556['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x57967f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1fa383(),this['keystrokes']=new _0x50001b(),this['focusCycler']=new _0x31168b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x167c1e=>_0x167c1e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x441995=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x441995['innerHTML']=this['description'],this['on']('change:description',(_0x232d73,_0x2b91af,_0x17315f)=>{_0x441995['innerHTML']=_0x17315f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x8f3c8=this['bindTemplate'],_0x391156=[{'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':_0x8f3c8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x8f3c8['to']('authoredAt',_0x3aafd1=>this['_config']['formatDateTime'](_0x3aafd1))}]}]},{'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']&&_0x391156['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':_0x391156}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3d7159,_0x52fda9,_0x224343,_0x330099,_0x27b47b){const _0x3dc2b0=new _0x1ac658(this['locale']);return _0x3dc2b0['set']({'label':_0x3d7159,'icon':_0x52fda9,'tooltip':!0x0,'tooltipPosition':_0x27b47b}),_0x3dc2b0['extendTemplate']({'attributes':{'class':_0x224343}}),_0x3dc2b0['on']('execute',()=>{this['fire'](_0x330099,this['_model']['id']);}),_0x3dc2b0;}['_setupKeyboardNavigation'](){const _0x6ccabb=this['element'];this['keystrokes']['listenTo'](_0x6ccabb);for(const _0x376c72 of this['focusables'])this['focusTracker']['add'](_0x376c72['element']),this['keystrokes']['listenTo'](_0x376c72['element']);this['keystrokes']['set']('enter',(_0x2de601,_0x545f2c)=>{_0x6ccabb===_0x2de601['target']&&(this['focusCycler']['focusFirst'](),_0x545f2c());}),this['keystrokes']['set']('esc',(_0x508b35,_0x26912c)=>{_0x6ccabb!==_0x508b35['target']&&(this['focus'](),_0x26912c());});}}class mn extends _0x35090c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x5afd1d,_0x2eae3a,_0xebf6bb,_0x247ffd];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ce84f){super(_0x5ce84f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xfd6554=this['editor']['config'];_0xfd6554['define']('trackChanges.SuggestionThreadView',fn),_0xfd6554['define']('trackChanges.SuggestionView',gn),_0xfd6554['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xfd6554['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x341489,_0x49ea4b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xa08885,_0xb6d354]of this['_handleControllerBuffer']){const _0x5fbc87=this['_suggestionToController']['has'](_0xa08885);_0x5fbc87||_0xb6d354?_0x5fbc87&&_0xb6d354&&this['_destroyController'](_0xa08885):this['_initializeController'](_0xa08885);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x247ffd)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x341489,_0x49ea4b);}['init'](){const _0x422247=this['editor'],_0x247c95=_0x422247['plugins']['get'](Xe),_0x52315b=_0x422247['plugins']['get'](_0xebf6bb),_0x385553=_0x422247['plugins']['get'](_0x247ffd),_0x395e8c=_0x422247['plugins']['get'](_0x2eae3a);this['_addUIComponentsToFactory'](),_0x385553['addSourceCollector'](()=>{const _0x43899b=[];for(const [_0x40d757,_0x12f435]of Array['from'](this['_suggestionToController'])){const _0x1d4e79=_0x40d757['getAllAdjacentSuggestions'](),_0x5cc9c7=[];for(const _0x1901be of _0x1d4e79){if(!_0x1901be['isInContent'])continue;if(_0x1901be['isMultiRange']){_0x5cc9c7['push'](..._0x1901be['getRanges']());continue;}const _0x1a07e7=_0x1901be['getFirstRange']();if(_0x5cc9c7['length']>0x0){const _0x36fd61=_0x5cc9c7[0x0]['getJoined'](_0x1a07e7);if(_0x36fd61){_0x5cc9c7[0x0]=_0x36fd61;continue;}}_0x5cc9c7['push'](_0x1a07e7);}_0x43899b['push']([_0x12f435['view'],_0x5cc9c7]);}return _0x43899b;}),this['listenTo'](_0x247c95,'suggestionLoaded',(_0x131de9,_0x497372)=>{this['listenTo'](_0x497372,'change:previous',(_0x4cac5f,_0x4da6f6,_0x43b2f4,_0x5abee2)=>{_0x497372['isInContent']&&(null==_0x43b2f4?(this['_updateController'](_0x5abee2['head']),this['_handleSuggestionControllerDelayed'](_0x497372,!0x1)):(this['_updateController'](_0x43b2f4['head']),null==_0x5abee2&&this['_handleSuggestionControllerDelayed'](_0x497372,!0x0)));}),null!==_0x497372['previous']?this['_updateController'](_0x497372['head']):this['_handleSuggestionControllerDelayed'](_0x497372,!0x1);}),this['listenTo'](_0x247c95,'suggestionUnloaded',(_0x21eb09,_0x37d866,_0x418234)=>{this['stopListening'](_0x37d866,'change:previous'),this['_handleControllerBuffer']['delete'](_0x37d866),this['_suggestionToController']['has'](_0x37d866)&&this['_destroyController'](_0x37d866),_0x418234&&this['_updateController'](_0x418234['head']);}),this['listenTo'](_0x247c95,'suggestionChanged',(_0x414225,_0x548286)=>{this['_updateController'](_0x548286);}),this['listenTo'](_0x52315b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x395e8c,'addComment',(_0x4ef90b,{threadId:_0x44011d,isFromAdapter:_0x3f1ba5})=>{if(_0x3f1ba5||!_0x247c95['hasSuggestion'](_0x44011d))return;const _0x330965=_0x247c95['getSuggestion'](_0x44011d);this['_suggestionToController']['get'](_0x330965)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd95ee4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2dbc80;for(const _0x283f49 in _0xd95ee4){const _0x2f5702=_0x283f49,_0x31e6a0=_0xd95ee4[_0x2f5702];if('trackChangesLicenseKeyValid'==_0x31e6a0||'trackChangesLicenseKeyInvalid'==_0x31e6a0||'trackChangesLicenseKeyExpired'==_0x31e6a0||'trackChangesLicenseKeyDomainLimit'==_0x31e6a0||'trackChangesLicenseKeyNotAllowed'==_0x31e6a0||'trackChangesLicenseKeyEvaluationLimit'==_0x31e6a0||'trackChangesLicenseKeyUsageLimit'==_0x31e6a0){delete _0xd95ee4[_0x2f5702],_0x2dbc80=_0x31e6a0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2dbc80&&_0xd95ee4['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2dbc80&&_0xd95ee4['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2dbc80&&_0xd95ee4['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2dbc80&&_0xd95ee4['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2dbc80&&_0xd95ee4['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2dbc80&&_0xd95ee4['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x431c43){const _0x56af63=this['_suggestionToController']['get'](_0x431c43);if(!_0x56af63)return null;return this['editor']['plugins']['get'](_0xebf6bb)['getByInnerView'](_0x56af63['view'])||null;}['getSuggestionForAnnotation'](_0x16c7ec){const _0x518410=this['_viewToController']['get'](_0x16c7ec['innerView']);return _0x518410?_0x518410['model']:null;}['_refreshActiveMarkers'](){const _0x12b27c=this['editor']['plugins']['get'](_0xebf6bb),_0x27f2c3=this['editor']['plugins']['get'](Xe),_0x2894f8=Array['from'](_0x12b27c['activeAnnotations'],_0x94d5a2=>_0x94d5a2['innerView'])['filter'](_0x251f44=>this['_viewToController']['has'](_0x251f44)),_0x5bca18=[];for(const _0x841411 of _0x2894f8){const _0x47e251=this['_viewToController']['get'](_0x841411)['model']['getAllAdjacentSuggestions']();_0x5bca18['push'](..._0x47e251['reduce']((_0x43f594,_0xb1b61e)=>[..._0x43f594,..._0xb1b61e['getMarkerNames']()],[]));}_0x27f2c3['activeMarkers']=_0x5bca18;}['_addUIComponentsToFactory'](){const _0x5ee272=this['editor'],_0x2683f6=_0x5ee272['locale'],_0x457f36=At(_0x2683f6,'Track\x20changes'),_0x7ee6fb=new _0x3a7659([{'type':'switchbutton','model':new _0x4c15d6({'withText':!0x0,'isToggleable':!0x0,'label':_0x457f36,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4c15d6({'withText':!0x0,'label':At(_0x2683f6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c15d6({'withText':!0x0,'label':At(_0x2683f6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c15d6({'withText':!0x0,'label':At(_0x2683f6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c15d6({'withText':!0x0,'label':At(_0x2683f6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5ee272['plugins']['has']('TrackChangesPreview')&&_0x7ee6fb['addMany']([{'type':'separator'},{'type':'button','model':new _0x4c15d6({'withText':!0x0,'label':At(_0x2683f6,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x406048 of _0x7ee6fb)if(En(_0x406048)){const _0x52b463=_0x5ee272['commands']['get'](_0x406048['model']['commandName']);_0x406048['model']['bind']('isOn','isEnabled')['to'](_0x52b463,'value','isEnabled');}_0x5ee272['ui']['componentFactory']['add']('trackChanges',_0x5197d0=>this['_createToolbarButton'](_0x5197d0,_0x7ee6fb,_0x457f36)),_0x5ee272['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5c5e6c=>this['_createMenuBarMenu'](_0x5c5e6c,_0x7ee6fb,_0x457f36));}['_createToolbarButton'](_0x157993,_0x19cd00,_0xa0646d){const _0x718f59=_0x1ca2a3(_0x157993,_0xb73ea4),_0xf28eab=this['editor']['commands']['get']('trackChanges');_0x718f59['buttonView']['set']({'tooltip':_0xa0646d,'label':_0xa0646d,'icon':_0x47323e}),_0x718f59['buttonView']['bind']('isOn')['to'](_0xf28eab,'value'),_0x718f59['buttonView']['on']('execute',()=>{_0xf28eab['execute'](),this['editor']['editing']['view']['focus']();}),_0x4b1022(_0x718f59,_0x19cd00,{'role':'menu'});const _0x408d78=[];for(const _0x2ea952 of _0x19cd00)En(_0x2ea952)&&_0x408d78['push'](this['editor']['commands']['get'](_0x2ea952['model']['commandName']));const _0x3cbf38=_0x718f59['buttonView'];return _0x3cbf38['actionView']['unbind']('isEnabled'),_0x3cbf38['arrowView']['unbind']('isEnabled'),_0x3cbf38['actionView']['bind']('isEnabled')['to'](_0xf28eab,'isEnabled'),_0x3cbf38['arrowView']['bind']('isEnabled')['toMany'](_0x408d78,'isEnabled',(..._0x2334a0)=>_0x2334a0['some'](_0x256d61=>_0x256d61)),_0x718f59['on']('execute',_0x44e149=>{this['editor']['execute'](_0x44e149['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x718f59;}['_createMenuBarMenu'](_0x4d6317,_0x923036,_0x31f6d2){const _0x5114ed=new _0x53b008(_0x4d6317),_0x395c84=this['editor']['commands']['get']('trackChanges');_0x5114ed['buttonView']['set']({'label':_0x31f6d2,'icon':_0x47323e});const _0x3c2962=new _0x5b9248(_0x4d6317);for(const _0x1afacb of _0x923036){if('separator'==_0x1afacb['type']){_0x3c2962['items']['add'](new _0xb56894(_0x4d6317));continue;}const _0x439f1e=new _0x5df59b(_0x4d6317,_0x5114ed),_0x59c990=new _0x3fd53b(_0x4d6317),_0xc61761=_0x1afacb['model'];_0x59c990['bind'](...Object['keys'](_0xc61761))['to'](_0xc61761),_0x59c990['delegate']('execute')['to'](_0x5114ed),_0x59c990['on']('execute',()=>{this['editor']['execute'](_0xc61761['commandName']),this['editor']['editing']['view']['focus']();}),_0x439f1e['children']['add'](_0x59c990),_0x3c2962['items']['add'](_0x439f1e);}return _0x5114ed['bind']('isEnabled')['to'](_0x395c84,'isEnabled'),_0x5114ed['panelView']['children']['add'](_0x3c2962),_0x5114ed;}['_initializeController'](_0x492d8a){const _0x332b1b=this['editor'],_0x47af02=_0x332b1b['config'],_0x5ca02c=_0x332b1b['plugins']['get'](_0xebf6bb),_0x32398f=_0x332b1b['plugins']['get'](_0x2eae3a),_0x45ad5e=_0x332b1b['plugins']['get'](_0x247ffd),_0x5e03fd=_0x332b1b['plugins']['get'](_0x5afd1d)['me'],_0x54268c=_0x47af02['get']('trackChanges')['SuggestionThreadView'],_0x1d4fab=_0x47af02['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1b0b10,CommentThreadInputView:_0x5f06ce}=_0x332b1b['plugins']['get']('CommentsUI');let _0x227a05,_0x1bce57,_0x41cb7f;this['_annotationViews']['has'](_0x492d8a['id'])?(_0x1bce57=this['_annotationViews']['get'](_0x492d8a['id']),_0x227a05=_0x1bce57['mainView']):(_0x227a05=new _0x54268c(_0x332b1b['locale'],_0x492d8a,_0x5e03fd,{'disableComments':this['_disableComments'],'editorConfig':{..._0x47af02['get']('comments.editorConfig'),'licenseKey':_0x47af02['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x47af02['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x47af02['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x47af02['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3466ab(_0x47af02['get']('locale'),_0x332b1b['locale']),'CommentView':_0x47af02['get']('comments')['CommentView'],'CommentsListView':_0x1b0b10,'CommentThreadInputView':_0x5f06ce,'SuggestionView':_0x1d4fab}),_0x227a05['suggestionView']['acceptButton']['on']('execute',()=>{_0x332b1b['editing']['view']['focus']();}),_0x227a05['suggestionView']['discardButton']['on']('execute',()=>{_0x332b1b['editing']['view']['focus']();}),_0x1bce57=_0x5ca02c['createAnnotationView'](this['editor']['locale'],_0x227a05),_0x1bce57['bind']('isDirty')['to'](_0x227a05,'isDirty'),_0x1bce57['bind']('length')['to'](_0x227a05),_0x1bce57['bind']('type')['to'](_0x227a05,'type',_0x3464e0=>'suggestion-'+_0x3464e0),_0x227a05['on']('escape',()=>{_0x41cb7f['fire']('escape');}),this['_annotationViews']['set'](_0x492d8a['id'],_0x1bce57));const _0x5ee832=_0x32398f['createCommentThreadController'](_0x492d8a['commentThread'],_0x227a05),_0x2eec36=new hn(_0x332b1b,_0x492d8a,_0x227a05,_0x5ee832),_0xd598da=_0x492d8a['getAllAdjacentSuggestions']()['filter'](_0x25b24b=>_0x25b24b['isInContent']);_0x227a05['descriptionParts']=_0x332b1b['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0xd598da),this['_suggestionToController']['set'](_0x492d8a,_0x2eec36),this['_viewToController']['set'](_0x227a05,_0x2eec36);const _0x2bd0cd=()=>{const _0x40d782=[],_0x2809ac=_0x492d8a['getAllAdjacentSuggestions']()['filter'](_0xef5161=>_0xef5161['isInContent']);for(const _0x14ee45 of _0x2809ac)_0x40d782['push'](..._0x14ee45['getMarkers']());return _0x1193f2(_0x332b1b['editing'],_0x40d782);};_0x41cb7f=_0x5ca02c['createAnnotation']({'view':_0x1bce57,'target':_0x2bd0cd,'type':()=>'suggestion-'+_0x2eec36['view']['type'],'isVisible':!!_0x2bd0cd()}),_0x32398f['_bindAnnotationToEditors'](_0x227a05,_0x41cb7f),_0x5ca02c['add'](_0x41cb7f),_0x45ad5e['registerAnnotation'](_0x41cb7f);}['_destroyController'](_0x39c796){const _0x1ae1ab=this['editor']['plugins']['get'](_0x2eae3a),_0x269384=this['editor']['plugins']['get'](_0xebf6bb),_0x22096a=this['_suggestionToController']['get'](_0x39c796),_0x2c8369=_0x22096a['view'],_0x4ec89d=_0x269384['getByInnerView'](_0x2c8369);_0x1ae1ab['_unbindEditors'](_0x2c8369),_0x4ec89d&&_0x269384['remove'](_0x4ec89d),this['_suggestionToController']['delete'](_0x39c796),this['_viewToController']['delete'](_0x2c8369),_0x22096a['destroy']();}['_updateController'](_0x1d2714){if(!_0x1d2714['isInContent']||!this['_suggestionToController']['has'](_0x1d2714))return;const _0xd2d935=this['editor']['plugins']['get'](Xe),_0x531dbc=this['_suggestionToController']['get'](_0x1d2714),_0x4abe2c=_0x1d2714['getAllAdjacentSuggestions']();_0x531dbc['view']['descriptionParts']=_0xd2d935['descriptionFactory']['getDescriptions'](_0x4abe2c);}['destroy'](){for(const _0x537642 of this['_suggestionToController']['keys']())this['_destroyController'](_0x537642);for(const _0x3090d7 of this['_annotationViews']['values']())_0x3090d7['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x2f92c0){return'model'in _0x2f92c0;}class Tn extends _0x35090c{static get['requires'](){return[Xe,mn,_0x1bac76];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1b35c2){this['editor']['plugins']['get'](Xe)['adapter']=_0x1b35c2;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x3b8a64){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x3b8a64);}['getSuggestions']({skipNotAttached:_0x4ad498=!0x1,toJSON:_0x3ad44d=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x4ad498,'toJSON':_0x3ad44d});}['getSuggestion'](_0x4ed428){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x4ed428);}}const _n=['Pagination'];class pn extends _0x35090c{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x595569=this['editor'];if(_0x595569['config']['define']('trackChangesData.editorCreator',_0x151316=>{const _0x3d78f4=_0x595569['model']['document']['getRootNames']()['reduce']((_0x4bf1da,_0x188330)=>(_0x4bf1da[_0x188330]='',_0x4bf1da),{});return _0x595569['constructor']['create'](_0x3d78f4,_0x151316);}),'function'!=typeof _0x595569['config']['get']('trackChangesData')['editorCreator'])throw new _0x25a256('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x23f9ac){return bn(this['editor'],!0x0,_0x23f9ac);}['getDataWithDiscardedSuggestions'](_0x2c3dbe){return bn(this['editor'],!0x1,_0x2c3dbe);}}class Ln extends _0x35090c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34c8c0){function _0x20e3c2(_0x5d65d6){return _0x5d65d6['map'](_0x27c034=>String['fromCharCode'](_0x27c034))['join']('');}super(_0x34c8c0),this['result']='end',_0x34c8c0[_0x20e3c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20e3c2([0x76,0x69,0x65,0x77])][_0x20e3c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20e3c2([0x61,0x75,0x74,0x6f]),_0x34c8c0[_0x20e3c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20e3c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20e3c2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20e3c2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20e3c2([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 In(_0x58f074){return void 0x0!==_0x58f074['getRootsAttributes'];}async function bn(_0x47d52c,_0x2e4be9,_0x199f7f){const _0xf04e1f=_0x50ee42(_0x47d52c,_n);if(_0xf04e1f['plugins']['push'](Xe,Ln),In(_0x47d52c)){_0xf04e1f['roots']=Object['create'](null);for(const _0x187767 of _0x47d52c['model']['document']['getRootNames']())_0xf04e1f['roots'][_0x187767]={'modelAttributes':_0x47d52c['getRootAttributes'](_0x187767)};}const _0x24021a=document['createDocumentFragment'](),_0x40449c=_0x47d52c['config']['get']('trackChangesData')['editorCreator'],_0x4184e2=await _0x40449c(_0xf04e1f,()=>function(_0x410568){const _0x38dba6=document['createElement']('div');return _0x410568['appendChild'](_0x38dba6),_0x38dba6;}(_0x24021a));!function(_0x2d72a5,_0x526669){const _0xd7a2c9=_0x2d72a5['model']['document']['getRootNames']()['reduce']((_0x477c50,_0x452e64)=>(_0x477c50[_0x452e64]=_0x2d72a5['data']['get']({'rootName':_0x452e64}),_0x477c50),{}),_0x1e4c27=_0x2d72a5['plugins']['get']('Users')['users']['map'](_0x30dd48=>({'id':_0x30dd48['id'],'name':_0x30dd48['name']})),_0x578552=_0x2d72a5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x291b3a=_0x2d72a5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19e3a0=_0x526669['plugins']['get']('Users'),_0x28e351=_0x526669['plugins']['get']('TrackChangesEditing'),_0x3d6b89=_0x526669['plugins']['get']('CommentsRepository');for(const _0x519191 of _0x3d6b89['getCommentThreads']())_0x519191['remove']();for(const _0x47c860 of _0x1e4c27)_0x19e3a0['getUser'](_0x47c860['id'])||_0x19e3a0['addUser'](_0x47c860);_0x19e3a0['me']||_0x19e3a0['useAnonymousUser']();for(const _0x596184 of _0x291b3a)_0x3d6b89['addCommentThread'](_0x596184);for(const _0x20ca58 of _0x578552)_0x28e351['addSuggestionData'](_0x20ca58);_0x526669['data']['set'](_0xd7a2c9);}(_0x47d52c,_0x4184e2),_0x4184e2['execute'](_0x2e4be9?'acceptAllSuggestions':'discardAllSuggestions');const _0x1a5994=In(_0x4184e2)?_0x4184e2['getFullData'](_0x199f7f):_0x4184e2['data']['get'](_0x199f7f);return await _0x4184e2['destroy'](),_0x1a5994;}class An extends _0x15b561{['options'];constructor(_0xc2f4b0,_0x579791){super(_0xc2f4b0),this['options']=_0x579791,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'](_0x52c5ca,_0x17b0e3){if(!this['element'])return;const _0x127f49=[];for(const [_0x583ecf,_0x4fd836]of _0x52c5ca){const _0x2b2a9e=document['createElement']('div');_0x2b2a9e['setAttribute']('data-ck-root-name',_0x583ecf),_0x2b2a9e['className']=_0x4fd836['classes']+'\x20ck-track-changes-preview__root-container',_0x2b2a9e['innerHTML']=_0x4fd836['content'],_0x127f49['push'](_0x2b2a9e);}_0x17b0e3(this['element'],_0x127f49),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x5cdbec{constructor(_0x15927d){super(_0x15927d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1de76c=this['editor'],_0x17e186=_0x1de76c['locale'],_0x5d149e=_0x1de76c['plugins']['get']('Dialog');let _0x192ad5;const _0x41286b=function(_0x1b9833){const _0x5c4991={};if('editables'in _0x1b9833['ui']['view']){for(const [_0x1138ef,_0x5b2d82]of Object['entries'](_0x1b9833['ui']['view']['editables']))_0x5c4991[_0x1138ef]=_0x5b2d82['element'];}else _0x5c4991[_0x1b9833['model']['document']['getRootNames']()[0x0]]=_0x1b9833['ui']['view']['editable']['element'];return _0x5c4991;}(_0x1de76c),_0x207ab2=function(_0x4440f4){let _0x420c92=0x0;for(const _0x17bcc3 of Object['values'](_0x4440f4))_0x420c92=Math['max'](_0x420c92,_0x17bcc3['getBoundingClientRect']()['width']);let _0x395cf5=0x0;for(const _0x22f53f of Object['values'](_0x4440f4))_0x395cf5+=_0x22f53f['getBoundingClientRect']()['height'];const _0x4eb494=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1cb10f=Math['min'](_0x395cf5,_0x4eb494);return{'width':_0x420c92,'height':_0x1cb10f};}(_0x41286b);_0x5d149e['show']({'id':'finalContentPreview','title':At(_0x17e186,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x17e186,{'dialogRects':_0x207ab2}),'onHide':()=>{_0x192ad5['detachFromDom']();},'onShow':()=>{_0x1de76c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2f728b=>{const _0x43f588=this['_standarizeRootsData'](_0x2f728b,_0x1de76c,_0x41286b);_0x5d149e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x43f588,_0x1de76c['config']['get']('trackChanges.preview.renderFunction'));}),_0x192ad5=new _0xa8b6e0(_0x17e186,[_0x5d149e['view']]),_0x192ad5['attachToDom'](),_0x192ad5['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1de76c['once']('destroy',()=>{_0x192ad5['detachFromDom']();});const _0x420e27=_0x5d149e['view']['headerView']['class'];_0x5d149e['view']['headerView']['class']=_0x420e27?_0x420e27+'\x20ck-reset_all':'ck-reset_all',_0x5d149e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5d149e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x66607f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2d5788=_0x66607f['previewMode'],_0x54d9ba={};if('$labels'===_0x2d5788){for(const _0x242d8d of _0x66607f['getMergeFieldsIds']())_0x54d9ba[_0x242d8d]=_0x66607f['getLabel'](_0x242d8d)||_0x242d8d;}else{const _0x2cbac5='$defaultValues'===_0x2d5788?_0x66607f['getDefaultValues']():_0x66607f['getDataSetValues'](_0x2d5788,!0x0);for(const _0x52b639 of Object['entries'](_0x2cbac5)){const [_0x133be7,_0x4485f1]=_0x52b639;_0x54d9ba[_0x133be7]=null!==_0x4485f1?_0x4485f1:_0x66607f['getLabel'](_0x133be7)||_0x133be7;}}return{'mergeFieldsData':_0x54d9ba};}['_standarizeRootsData'](_0x152961,_0x401284,_0x1bc36f){let _0x351f82;if('string'==typeof _0x152961){const _0xeafa9d=_0x401284['model']['document']['getRootNames']()[0x0];_0x351f82={[_0xeafa9d]:_0x152961};}else _0x351f82=_0x152961;const _0x1ca0f8=this['_fixMediaEmbeds'](_0x351f82,_0x401284),_0x8adfa1=function(_0x307b83,_0x5919cf){for(const [_0x21f83c,_0x459708]of _0x307b83)_0x459708['classes']=_0x5919cf[_0x21f83c]['classList']['value']['replace']('ck-focused','');return _0x307b83;}(this['_sortRoots'](_0x401284)['reduce']((_0x668bdb,_0x4d149f)=>(_0x668bdb['push']([_0x4d149f,{'content':_0x1ca0f8[_0x4d149f],'classes':''}]),_0x668bdb),[]),_0x1bc36f);return _0x8adfa1;}['_fixMediaEmbeds'](_0x54c0db,_0x2b227b){if(!_0x2b227b['plugins']['has']('MediaEmbedEditing'))return _0x54c0db;const _0x593149=_0x2b227b['plugins']['get']('MediaEmbedEditing');for(const [_0xa0034c,_0x3ba8be]of Object['entries'](_0x54c0db)){const _0x1f0610=document['createElement']('div');_0x1f0610['innerHTML']=_0x3ba8be,(_0x1f0610['querySelectorAll']('figure.media')['forEach'](_0x378a09=>{const _0x5ee1e0=_0x378a09['querySelector']('oembed');if(_0x5ee1e0){const _0x16b262=_0x5ee1e0['getAttribute']('url');if(_0x16b262){const _0x5360eb=_0x593149['registry']['getMediaViewElement'](new et(_0x2b227b['editing']['view']['document']),_0x16b262,{'elementName':'','renderForEditingView':!0x0}),_0x14d080=document['createElement']('div');_0x14d080['classList']['add']('ck-media__wrapper'),_0x5360eb['render'](_0x14d080,_0x2b227b['editing']['view']['domConverter']),_0x5ee1e0['replaceWith'](_0x14d080);}}}),_0x54c0db[_0xa0034c]=_0x1f0610['innerHTML']);}return _0x54c0db;}['_sortRoots'](_0x3167c7){if(!function(_0x31e816){return void 0x0!==_0x31e816['getRootsAttributes'];}(_0x3167c7))return _0x3167c7['model']['document']['getRootNames']();const _0xb686f7=[],_0x59ff93=new Map();for(const _0x186019 of _0x3167c7['model']['document']['getRootNames']()){const _0x3f7f71=_0x3167c7['editing']['view']['getDomRoot'](_0x186019)['getClientRects']()['item'](0x0);_0xb686f7['push'](_0x186019),_0x59ff93['set'](_0x186019,_0x3f7f71);}return _0xb686f7['sort']((_0x22e33e,_0x5b3191)=>{const _0x1f5d30=_0x59ff93['get'](_0x22e33e),_0x33da48=_0x59ff93['get'](_0x5b3191);return _0x1f5d30['y']-_0x33da48['y']||_0x1f5d30['x']-_0x33da48['x'];}),_0xb686f7;}}class Cn extends _0x35090c{static get['requires'](){return[pn,_0x540a6c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb2d310){super(_0xb2d310),_0xb2d310['commands']['add']('previewFinalContent',new kn(this['editor'])),_0xb2d310['config']['define']('trackChanges.preview.renderFunction',(_0xfdd5b4,_0x21786)=>{for(const _0x57e0f1 of _0x21786)_0xfdd5b4['appendChild'](_0x57e0f1);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};
|