@ckeditor/ckeditor5-track-changes 43.2.0-alpha.2 → 43.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +10 -10
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x1ca92d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x71b965,_0x72a87f){super(),this['id']=_0x72a87f['id'],this['type']=_0x72a87f['type'],this['subType']=_0x72a87f['subType']||null,this['author']=_0x72a87f['author'],this['creator']=_0x72a87f['creator']||_0x72a87f['author'],this['isExternal']=Boolean(_0x72a87f['attributes']&&_0x72a87f['attributes']['@external']),this['data']=null,this['_model']=_0x71b965,this['_onAccept']=_0x72a87f['onAccept'],this['_onDiscard']=_0x72a87f['onDiscard'],this['_onAttributesChange']=_0x72a87f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x72a87f['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 _0xaa51ad=this;for(;_0xaa51ad['previous'];)_0xaa51ad=_0xaa51ad['previous'];return _0xaa51ad;}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'](_0x40f225){this['_markerNames']['add'](_0x40f225);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x211b4f=>this['_model']['markers']['get'](_0x211b4f))['filter'](_0x545405=>_0x545405);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2f914c=>{for(const _0x1bfce6 of this['getMarkers']())_0x2f914c['removeMarker'](_0x1bfce6);}),this['_markerNames']['clear']();}['removeMarker'](_0x3ae5ca){this['_model']['change'](_0x145958=>{_0x145958['removeMarker'](_0x3ae5ca);}),this['_markerNames']['delete'](_0x3ae5ca);}['addRange'](_0x579033){const _0x4cd47b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4cd47b),this['_model']['change'](_0x5660b1=>{_0x5660b1['addMarker'](_0x4cd47b,{'range':_0x579033,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x380769){for(const _0x574021 of this['getRanges']())if(_0x574021['isIntersecting'](_0x380769))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xb934f3=>_0xb934f3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2fac57,_0x2878a6)=>[..._0x2fac57,..._0x2878a6['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x314569=this['getRanges']();if(0x1!=_0x314569['length'])return null;const _0x234ffa=_0x314569[0x0],_0x193d98=_0x234ffa['start']['nodeAfter'],_0x1ff95f=_0x234ffa['end']['nodeBefore'];return _0x193d98 instanceof _0x15e4c1?_0x193d98!=_0x1ff95f?null:_0x193d98: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 _0x4c3537=[];let _0x5a149d=this['head'];for(;_0x5a149d;)_0x4c3537['push'](_0x5a149d),_0x5a149d=_0x5a149d['next'];return _0x4c3537;}['setAttribute'](_0x2d4635,_0x324d21){const _0x5c9877=_0x15bc28(this['attributes']);_0x75b7dd(_0x5c9877,_0x2d4635,_0x324d21),_0x11af30(_0x5c9877,this['attributes'])||(this['attributes']=_0x5c9877,this['_onAttributesChange'](_0x5c9877));}['removeAttribute'](_0x42b55f){const _0x3bf159=_0x15bc28(this['attributes']);_0x47beff(_0x3bf159,_0x42b55f),_0x11af30(_0x3bf159,this['attributes'])||(this['attributes']=_0x3bf159,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 _0x546e08()['substr'](0x1,0x5);}}function o(_0x24a8e5,_0x3858c7,_0x23cd92){const t=_0x24a8e5['t'];switch(_0x3858c7){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x23cd92);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x23cd92);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x23cd92);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x23cd92);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x23cd92);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',_0x23cd92);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x23cd92);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x23cd92);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x23cd92);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x23cd92);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x23cd92);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x23cd92);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x23cd92);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x23cd92);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x23cd92);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x23cd92);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x23cd92);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x23cd92);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x23cd92);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x23cd92);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x23cd92);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x23cd92);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x23cd92);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'},_0x23cd92);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x23cd92);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x23cd92);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x23cd92);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x23cd92);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x23cd92);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x23cd92);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x23cd92);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x23cd92);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x23cd92);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x23cd92);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'},_0x23cd92);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x23cd92);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x23cd92);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x23cd92);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'},_0x23cd92);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x23cd92);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x23cd92);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x23cd92);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'},_0x23cd92);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'},_0x23cd92);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'},_0x23cd92);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3858c7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1279db,_0x2ad7cb){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1279db,this['_locale']=_0x2ad7cb;}['getDescriptions'](_0xdd88b9){const _0x151792=[],_0x304f18=new Set(),_0x43fb86=new Set();for(let _0x53aa6b=0x0;_0x53aa6b<_0xdd88b9['length'];_0x53aa6b++){const _0x540429=_0xdd88b9[_0x53aa6b];if(!_0x540429['isInContent'])continue;const _0x42a73e=this['_handleCustomCallbackDescription'](_0x540429);if(_0x42a73e){if(null!=_0x540429['subType']){if(_0x304f18['has'](_0x540429['subType']))continue;_0x304f18['add'](_0x540429['subType']);}_0x151792['push'](_0x42a73e);}else{if('attribute'!=_0x540429['type'])'insertion'!=_0x540429['type']&&'deletion'!=_0x540429['type']||this['_handleInsertRemoveSuggestionDescription'](_0x151792,_0x540429,_0xdd88b9[_0x53aa6b+0x1]);else{const _0x450465=_0x540429['data']['key'];if(_0x43fb86['has'](_0x450465))continue;_0x43fb86['add'](_0x540429['data']['key']),_0x450465==m?this['_handleRenameSuggestionDescription'](_0x151792,_0x540429):this['_handleAttributeSuggestionDescription'](_0x151792,_0x540429);}}}return this['_resolveDescriptionItems'](_0x151792);}['registerDescriptionCallback'](_0x1a5803){this['_customCallbacks']['push'](_0x1a5803);}['registerElementLabel'](_0x46df27,_0x3bfe99,_0x304c61=_0x44834d['normal']){'function'==typeof _0x46df27?_0x188a5a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x46df27,'label':_0x3bfe99,'priority':_0x304c61}):this['_itemLabels']['set'](_0x46df27,_0x3bfe99);}['registerAttributeLabel'](_0x531620,_0x484ddb){this['_attributeLabels']['set'](_0x531620,_0x484ddb);}['getItemLabel'](_0x40638b,_0xa9fc6a=0x1){let _0x47b007;for(const _0x31137b of this['_itemLabelsCallbacks'])if(_0x31137b['matchingCallback'](_0x40638b)){_0x47b007=_0x31137b['label'];break;}return _0x47b007||(_0x47b007=this['_itemLabels']['get'](_0x40638b['name'])),_0x47b007?_0x47b007(_0xa9fc6a):0x1!==_0xa9fc6a?_0xa9fc6a+'\x20'+_0x40638b['name']+'s':''+_0x40638b['name'];}['_addDescriptionItems'](_0x59df06,_0x1e98c9){const _0x4185ad=_0x1e98c9['getFirstRange']()['getWalker'](),_0x3a10e6='insertion'==_0x1e98c9['type']?'add':'remove';for(const _0x2467c2 of _0x4185ad){const _0x5ee7ce=_0x2467c2['item'],_0x2a8ce5=_0x59df06[_0x59df06['length']-0x1];if(_0x5ee7ce['is']('$textProxy'))_0x2a8ce5&&_0x2a8ce5['type']['indexOf']('Container')>-0x1&&_0x59df06['pop'](),_0x2a8ce5&&'text'==_0x2a8ce5['type']?_0x2a8ce5[_0x3a10e6]+=_0x5ee7ce['data']:_0x59df06['push']({'type':'text','add':'add'==_0x3a10e6?_0x5ee7ce['data']:'','remove':'remove'==_0x3a10e6?_0x5ee7ce['data']:''});else{if(this['_schema']['isObject'](_0x5ee7ce)){const _0x16af4c=_0x5ee7ce;if(_0x2a8ce5&&_0x2a8ce5['type']['indexOf']('Container')>-0x1&&_0x59df06['pop'](),'elementEnd'==_0x2467c2['type'])continue;_0x2a8ce5&&_0x2a8ce5['type']==_0x3a10e6+'Object'&&_0x2a8ce5['element']['name']==_0x16af4c['name']?_0x2a8ce5['quantity']++:_0x59df06['push']({'type':_0x3a10e6+'Object','element':_0x16af4c,'quantity':0x1}),_0x4185ad['skip'](_0x309b50=>!('elementEnd'==_0x309b50['type']&&_0x309b50['item']==_0x5ee7ce));}else{if(this['_schema']['checkChild'](_0x5ee7ce,'$text')||_0x5ee7ce['is']('element','softBreak')){const _0x4a82e5=_0x5ee7ce;if('add'==_0x3a10e6&&'elementStart'==_0x2467c2['type']||'remove'==_0x3a10e6&&'elementEnd'==_0x2467c2['type'])continue;if(_0x2a8ce5&&-0x1==_0x2a8ce5['type']['indexOf']('Container')){'text'==_0x2a8ce5['type']&&(_0x2a8ce5[_0x3a10e6]+='\x0a');continue;}let _0x5d363f;if(_0x5d363f='add'==_0x3a10e6?_0x4a82e5['nextSibling']&&!this['_schema']['isObject'](_0x4a82e5['nextSibling'])?_0x4a82e5['nextSibling']:null:_0x4a82e5['previousSibling']&&!this['_schema']['isObject'](_0x4a82e5['previousSibling'])?_0x4a82e5['previousSibling']:null,_0x4a82e5['isEmpty']||_0x5d363f&&_0x5d363f['isEmpty']){const _0x33cf9a=_0x5d363f&&_0x5d363f['isEmpty']?_0x5d363f:_0x4a82e5;_0x2a8ce5&&_0x2a8ce5['type']==_0x3a10e6+'EmptyContainer'&&_0x2a8ce5['element']['name']==_0x33cf9a['name']?_0x2a8ce5['quantity']++:_0x59df06['push']({'type':_0x3a10e6+'EmptyContainer','element':_0x33cf9a,'quantity':0x1});}else _0x59df06['push']({'type':_0x3a10e6+'Container','element':_0x4a82e5});}}}}}['_resolveDescriptionItems'](_0x2f3744){const _0x113d17=this['_locale'],_0x48d606=[],_0x1cf903=[],_0xe839=[];for(const _0x17b5f5 of _0x2f3744)switch(_0x17b5f5['type']){case'text':if(_0x17b5f5['add']=_0x17b5f5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17b5f5['remove']=_0x17b5f5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17b5f5['add']&&''!=_0x17b5f5['remove']){_0x48d606['push']({'type':'replace','content':o(_0x113d17,'REPLACE_TEXT',['\x22'+_0x17b5f5['remove']+'\x22','\x22'+_0x17b5f5['add']+'\x22'])});continue;}if(null!=_0x17b5f5['add']['match'](/^ +$/)){_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Insert:*\x20%0',o(_0x113d17,'ELEMENT_SPACE',_0x17b5f5['add']['length']))});continue;}if(null!=_0x17b5f5['remove']['match'](/^ +$/)){_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Remove:*\x20%0',o(_0x113d17,'ELEMENT_SPACE',_0x17b5f5['remove']['length']))});continue;}if(''!=_0x17b5f5['add']){_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Insert:*\x20%0','\x22'+_0x17b5f5['add']+'\x22')});continue;}_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Remove:*\x20%0','\x22'+_0x17b5f5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Insert:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Remove:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'addContainer':_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Split:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'removeContainer':_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Merge:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'addFormat':_0x1cf903['push'](_0x17b5f5['key']);continue;case'removeFormat':_0xe839['push'](_0x17b5f5['key']);continue;default:_0x48d606['push'](_0x17b5f5);}if(_0x1cf903['length']){const _0x1f3bf4=_0x1cf903['map'](_0x43d59f=>this['_attributeLabels']['has'](_0x43d59f)?this['_attributeLabels']['get'](_0x43d59f):_0x43d59f)['join'](',\x20');_0x48d606['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1f3bf4)});}if(_0xe839['length']){const _0x4e9c36=_0xe839['map'](_0x40110a=>this['_attributeLabels']['has'](_0x40110a)?this['_attributeLabels']['get'](_0x40110a):_0x40110a)['join'](',\x20');_0x48d606['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4e9c36)});}return _0x48d606;}['_handleCustomCallbackDescription'](_0x2a2d95){for(const _0x1e4527 of this['_customCallbacks']){const _0x2fb77c=_0x1e4527(_0x2a2d95);if(_0x2fb77c&&'type'in _0x2fb77c)return _0x2fb77c;}}['_handleAttributeSuggestionDescription'](_0x3a9b3f,_0x4b6656){const _0x515333=_0x4b6656['data'],_0x56f218=void 0x0===_0x515333['newValue']?'removeFormat':'addFormat';_0x3a9b3f['push']({'type':_0x56f218,'key':_0x515333['key']});}['_handleRenameSuggestionDescription'](_0x3ed151,_0xd9ac6a){_0x3ed151['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xd9ac6a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x36ad53,_0x52d379,_0x11937f){if(this['_addDescriptionItems'](_0x36ad53,_0x52d379),_0x11937f&&_0x11937f['getFirstRange']()&&!_0x52d379['getFirstRange']()['end']['isEqual'](_0x11937f['getFirstRange']()['start'])){const _0x4cb727=_0x36ad53[_0x36ad53['length']-0x1],_0x2e306f='insertion'==_0x52d379['type']?'add':'remove';_0x4cb727&&'text'==_0x4cb727['type']&&(_0x4cb727[_0x2e306f]+='\x0a');}}}class V extends _0x58a0bc{['afterInit'](){const _0xd79203=this['editor'],_0x345393=_0xd79203['plugins']['get']('TrackChangesEditing');_0xd79203['commands']['get']('showAIAssistant')&&_0x345393['enableCommand']('showAIAssistant');}}class U extends _0x58a0bc{['afterInit'](){const _0x9190c7=this['editor'],_0x375159=_0x9190c7['locale'];if(!_0x9190c7['plugins']['has']('AlignmentEditing'))return;const _0x5d054f=_0x9190c7['plugins']['get']('TrackChangesEditing');_0x5d054f['enableDefaultAttributesIntegration']('alignment'),_0x5d054f['registerBlockAttribute']('alignment'),_0x5d054f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x375159,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f0ef5=this['editor'],_0x45b0=_0x1f0ef5['locale'];_0x1f0ef5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x350549=>{if('formatBlock'!=_0x350549['type'])return;const {data:_0x3bff25}=_0x350549;if(_0x3bff25&&'alignment'==_0x3bff25['commandName']){const _0x1d2fdd=_0x3bff25['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x45b0,'*Format:*\x20%0',function(_0x16464a){switch(_0x16464a){case'left':return o(_0x45b0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x45b0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x45b0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x45b0,'FORMAT_JUSTIFY_TEXT');}}(_0x1d2fdd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x58a0bc{['afterInit'](){const _0x378933=this['editor'],_0x520339=_0x378933['plugins']['get']('TrackChangesEditing'),_0x42c18a=_0x378933['locale'];for(const _0xe3a9a of ti){if(!_0x378933['plugins']['has'](_0xe3a9a))continue;const _0x4c8403=_0xe3a9a['slice'](0x0,-0x7)['toLowerCase'](),_0x385e88='FORMAT_'+_0x4c8403['toUpperCase']();_0x520339['enableDefaultAttributesIntegration'](_0x4c8403),_0x520339['registerInlineAttribute'](_0x4c8403),_0x520339['descriptionFactory']['registerAttributeLabel'](_0x4c8403,o(_0x42c18a,_0x385e88));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4372cc=this['editor'],_0x4f7661=_0x4372cc['locale'],_0x17fc04=_0x4372cc['plugins']['get']('TrackChangesEditing');function _0x1caca7(_0x32be58,_0x1ea323){_0x17fc04['descriptionFactory']['registerDescriptionCallback'](_0x5e1fde=>{if('formatInline'!=_0x5e1fde['type'])return;const {data:_0x2f34f7}=_0x5e1fde;return _0x2f34f7&&_0x2f34f7['commandName']===_0x32be58?_0x2f34f7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f7661,'*Format:*\x20%0',_0x1ea323)}:{'type':'format','content':o(_0x4f7661,'*Remove\x20format:*\x20%0',_0x1ea323)}:void 0x0;});}_0x1caca7('bold',o(_0x4f7661,'FORMAT_BOLD')),_0x1caca7('italic',o(_0x4f7661,'FORMAT_ITALIC')),_0x1caca7('underline',o(_0x4f7661,'FORMAT_UNDERLINE')),_0x1caca7('code',o(_0x4f7661,'FORMAT_CODE')),_0x1caca7('strikethrough',o(_0x4f7661,'FORMAT_STRIKETHROUGH')),_0x1caca7('subscript',o(_0x4f7661,'FORMAT_SUBSCRIPT')),_0x1caca7('superscript',o(_0x4f7661,'FORMAT_SUPERSCRIPT'));}}class F extends _0x58a0bc{['afterInit'](){const _0x4a6d5f=this['editor'],_0x5f4053=_0x4a6d5f['locale'];if(!_0x4a6d5f['plugins']['has']('BlockQuoteEditing'))return;const _0x35fed7=_0x4a6d5f['plugins']['get']('TrackChangesEditing'),_0x59062f=this['editor']['commands']['get']('blockQuote');_0x35fed7['enableCommand']('blockQuote',(_0x2956a7,_0x427a32={})=>{const _0x52db7d=this['editor']['model']['document']['selection'],_0x14a35b=_0x427a32&&void 0x0!==_0x427a32['forceValue']?_0x427a32['forceValue']:!_0x59062f['value'];let _0x4144f3=[];if(_0x14a35b){const _0x2e35c7=Array['from'](_0x52db7d['getSelectedBlocks']())['filter'](_0x29e544=>oo(_0x29e544)||function(_0x17bf17,_0x15a128){const _0x63b312=_0x15a128['checkChild'](_0x17bf17['parent'],'blockQuote'),_0x430262=_0x15a128['checkChild'](['$root','blockQuote'],_0x17bf17);return _0x63b312&&_0x430262;}(_0x29e544,this['editor']['model']['schema']));_0x4144f3=to(_0x2e35c7,_0x4a6d5f['model']);}else{const _0x4a3480=Array['from'](_0x52db7d['getSelectedBlocks']())['filter'](_0x195323=>oo(_0x195323));_0x4144f3=to(_0x4a3480,_0x4a6d5f['model']);}_0x4a6d5f['model']['change'](()=>{for(const _0x4de5f5 of _0x4144f3)_0x35fed7['markBlockFormat'](_0x4de5f5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x14a35b}]});});}),_0x35fed7['descriptionFactory']['registerDescriptionCallback'](_0x25fe1f=>{const {data:_0xdf65fb}=_0x25fe1f;if(_0xdf65fb&&'blockQuote'==_0xdf65fb['commandName']){const _0x2f7335=o(_0x5f4053,'ELEMENT_BLOCK_QUOTE');return _0xdf65fb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5f4053,'*Set\x20format:*\x20%0',_0x2f7335)}:{'type':'format','content':o(_0x5f4053,'*Remove\x20format:*\x20%0',_0x2f7335)};}});}}function oo(_0x26c9be){return'blockQuote'==_0x26c9be['parent']['name'];}class L extends _0x58a0bc{['afterInit'](){const _0x12eb81=this['editor'];_0x12eb81['plugins']['has']('CaseChange')&&(_0x12eb81['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x12eb81['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x12eb81['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x58a0bc{['afterInit'](){const _0x3760cc=this['editor'];_0x3760cc['commands']['get']('ckbox')&&_0x3760cc['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x58a0bc{['afterInit'](){const _0x42fa55=this['editor'];if(!_0x42fa55['plugins']['has']('CodeBlock'))return;const _0x4ead98=_0x42fa55['plugins']['get']('TrackChangesEditing'),_0x1c7df4=_0x42fa55['locale'],_0x4723c6=_0x42fa55['config']['get']('codeBlock')['languages'],_0x397923=_0x42fa55['commands']['get']('codeBlock');_0x4ead98['enableCommand']('indentCodeBlock'),_0x4ead98['enableCommand']('outdentCodeBlock'),_0x4ead98['enableCommand']('codeBlock',(_0x33bf1a,_0x3e92d1={})=>{const _0x4f654a=_0x42fa55['model'],_0x597344=_0x42fa55['model']['document']['selection'],_0x209480=_0x3e92d1&&void 0x0!==_0x3e92d1['forceValue']?_0x3e92d1['forceValue']:!_0x397923['value'];let _0x1d9bc2;_0x3e92d1['language']||(_0x3e92d1['language']=_0x4723c6[0x0]['language']),_0x1d9bc2=_0x209480?Array['from'](_0x597344['getSelectedBlocks']())['filter'](_0x165f2c=>eo(_0x165f2c)||function(_0x753208,_0x16ae15){if(_0x753208['is']('rootElement')||_0x16ae15['isLimit'](_0x753208))return!0x1;return _0x16ae15['checkChild'](_0x753208['parent'],'codeBlock');}(_0x165f2c,_0x4f654a['schema'])):Array['from'](_0x597344['getSelectedBlocks']())['filter'](_0x277cc0=>eo(_0x277cc0));const _0x51f6e7=to(_0x1d9bc2,_0x4f654a);_0x4f654a['change'](()=>{for(const _0x277e82 of _0x51f6e7)_0x4ead98['markBlockFormat'](_0x277e82,{'commandName':'codeBlock','commandParams':[{..._0x3e92d1,'forceValue':_0x209480}],'formatGroupId':'blockName'});});}),(_0x4ead98['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d81a7=>o(_0x1c7df4,'ELEMENT_CODE_BLOCK',_0x3d81a7)),_0x4ead98['descriptionFactory']['registerDescriptionCallback'](_0x375b33=>{if('formatBlock'!=_0x375b33['type'])return;const _0x43dc96=_0x1c7df4['t'],{data:_0x150a63}=_0x375b33;if(!_0x150a63||'codeBlock'!=_0x150a63['commandName'])return;const _0x33f7af=_0x150a63['commandParams'][0x0]['language'],_0x46e22c=_0x43dc96(_0x4723c6['find'](_0x3695d8=>_0x3695d8['language']===_0x33f7af)['label'])['toLowerCase']();return _0x150a63['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c7df4,'*Set\x20format:*\x20%0',o(_0x1c7df4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x46e22c+')')}:{'type':'format','content':o(_0x1c7df4,'*Remove\x20format:*\x20%0',o(_0x1c7df4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4fc702){return'codeBlock'==_0x4fc702['name'];}class q extends _0x58a0bc{['afterInit'](){const _0x745fb0=this['editor'];if(!_0x745fb0['plugins']['has']('CommentsEditing'))return;_0x745fb0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x55d811,_0xce3274,_0x176aca){const _0x3061d1=[];for(const _0x172b3c of _0xce3274['getItems']())_0x172b3c['hasAttribute'](_0x55d811)&&_0x3061d1['push'](_0x176aca['createRangeOn'](_0x172b3c));return _0x3061d1;}function _e(_0x13812b,_0x4b32b8,{showActiveMarker:_0x5e0e93=!0x0}={}){const _0x251455=_0x13812b['plugins']['get']('TrackChangesEditing');return(_0x485aea,_0x383596,_0x5b0918)=>{if(!_0x5b0918['consumable']['test'](_0x383596['markerRange'],_0x485aea['name']))return;const _0x582e5a=_0x383596['markerRange']['getWalker'](),_0x24bf9e=_0x383596['markerRange']['start'],_0x5b31c1=_0x13812b['model']['schema'];let _0x3c65d5=null,_0x45970c=null,_0x4e0b3b=!0x1,_0x51747b=!0x1;for(const _0x459942 of _0x582e5a){const _0x21f7d7=_0x459942['item'];_0x4e0b3b=_0x4e0b3b||_0x5b31c1['isContent'](_0x21f7d7);const _0x3db6ad=_0x5b0918['mapper']['toViewElement'](_0x21f7d7);if(_0x3db6ad&&_0x3db6ad['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x459942['type']&&(_0x5b31c1['isBlock'](_0x21f7d7)&&!_0x5b31c1['isLimit'](_0x21f7d7)&&(_0x21f7d7['nextSibling']||_0x24bf9e['isAtEnd']?_0x3c65d5&&_0x3c65d5['parent']==_0x21f7d7||(_0x3c65d5=_0x21f7d7,_0x166791(_0x459942['previousPosition']),_0x51747b=!0x0):_0x45970c=_0x45970c||_0x459942['previousPosition']));}function _0x166791(_0xb5d08a){const {authorId:_0x49cf5c}=_0x251455['_splitMarkerName'](_0x383596['markerName']),_0x231066=_0x5b0918['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b32b8,'data-author-id':_0x49cf5c}),_0x4a7bb5=_0x5b0918['mapper']['toViewPosition'](_0xb5d08a);_0x5e0e93&&_0x251455['activeMarkers']['includes'](_0x383596['markerName'])&&_0x5b0918['writer']['addClass']('ck-suggestion-marker--active',_0x231066),_0x5b0918['writer']['insert'](_0x4a7bb5,_0x231066),_0x5b0918['mapper']['bindElementToMarker'](_0x231066,_0x383596['markerName']);}_0x4e0b3b||_0x51747b||!_0x45970c||_0x166791(_0x45970c);};}class z extends _0x58a0bc{static get['requires'](){return[_0x45edbc];}['init'](){const _0x52a80f=this['editor'],_0x4b0b88=_0x52a80f['plugins']['get']('TrackChangesEditing');_0x4b0b88['enableCommand']('delete');const _0x36ae8d=_0x52a80f['commands']['get']('deleteForward');_0x4b0b88['enableCommand']('deleteForward',(_0x1a5908,_0x9d55f6={})=>{const _0x48de2b=_0x52a80f['model']['createSelection'](_0x52a80f['model']['document']['selection']);_0x48de2b['isCollapsed']&&_0x52a80f['model']['modifySelection'](_0x48de2b,{'direction':'forward','unit':_0x9d55f6['unit']});const _0x5a5535=_0x48de2b['getFirstRange'](),_0x4475f3=_0x1ac7bd['fromRange'](_0x5a5535);let _0x3fb167;_0x1a5908(_0x9d55f6),_0x3fb167='$graveyard'==_0x4475f3['root']['rootName']?_0x52a80f['model']['createRange'](_0x5a5535['start']):_0x52a80f['model']['createRange'](_0x4475f3['start'],_0x4475f3['end']),_0x4475f3['detach'](),_0x52a80f['model']['enqueueChange'](_0x36ae8d['buffer']['batch'],_0x1dda4f=>{_0x36ae8d['buffer']['lock'](),_0x1dda4f['setSelection'](_0x1dda4f['createRange'](_0x3fb167['end'])),_0x36ae8d['buffer']['unlock']();});}),_0x52a80f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x52a80f,'merge'),{'priority':'high'}),_0x52a80f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x546d5e,_0x3d7dd8,_0x33a2fd)=>{_0x33a2fd['options']['showSuggestionHighlights']&&_e(_0x52a80f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x546d5e,_0x3d7dd8,_0x33a2fd);},{'priority':'high'}),_0x52a80f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1237e6,_0x29594a,_0x4c3ff0)=>{const _0x919f0a=_0x4c3ff0['mapper']['markerNameToElements'](_0x29594a['markerName']);if(_0x919f0a){for(const _0x5aa409 of _0x919f0a)_0x5aa409['is']('uiElement')&&(_0x4c3ff0['mapper']['unbindElementFromMarkerName'](_0x5aa409,_0x29594a['markerName']),_0x4c3ff0['writer']['remove'](_0x5aa409));}},{'priority':'high'});}}class K extends _0x58a0bc{['afterInit'](){const _0x4ffa3a=this['editor'];if(!_0x4ffa3a['plugins']['has']('ListEditing'))return;const _0xd4ca3e=_0x4ffa3a['locale'],_0x1c28a7=_0x4ffa3a['plugins']['get']('TrackChangesEditing'),_0x4dbd49=_0x4ffa3a['plugins']['has']('TodoListEditing'),_0x5d5b78=!!_0x4ffa3a['config']['get']('list.multiBlock');function _0xfc5e40(_0x7eede1){return{'type':'format','content':''+o(_0xd4ca3e,'*Set\x20format:*\x20%0',_0x7eede1)};}function _0x7afb95(_0x52dba6){return{'type':'format','content':''+o(_0xd4ca3e,'*Remove\x20format:*\x20%0',_0x52dba6)};}_0x1c28a7['enableDefaultAttributesIntegration']('numberedList'),_0x1c28a7['enableDefaultAttributesIntegration']('bulletedList'),_0x1c28a7['enableDefaultAttributesIntegration']('customNumberedList'),_0x1c28a7['enableDefaultAttributesIntegration']('customBulletedList'),_0x1c28a7['enableDefaultAttributesIntegration']('indentList'),_0x1c28a7['enableDefaultAttributesIntegration']('outdentList'),_0x1c28a7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1c28a7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1c28a7['registerBlockAttribute']('listItemId'),_0x1c28a7['registerBlockAttribute']('listType'),_0x1c28a7['registerBlockAttribute']('listIndent'),_0x5d5b78&&(_0x1c28a7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1c28a7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4dbd49&&(_0x1c28a7['enableDefaultAttributesIntegration']('todoList'),_0x1c28a7['enableDefaultAttributesIntegration']('checkTodoList'),_0x1c28a7['registerBlockAttribute']('todoListChecked'),_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x305348=>{const {data:_0x2faf2f}=_0x305348;if(_0x2faf2f&&'todoListChecked'==_0x2faf2f['key'])return{'type':'format','content':_0x2faf2f['newValue']?o(_0xd4ca3e,'*Check\x20item*'):o(_0xd4ca3e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x24a979=>{if(_0x24a979['batch']['isUndo'])return!0x1;let _0x898d42=!0x1;const _0x44803a=_0x1c28a7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f6e1c=>'todoListChecked'===_0x1c28a7['_getAttributeKey'](_0x4f6e1c));for(const _0x4283c9 of _0x44803a){'todo'!=_0x4283c9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1c28a7['_findSuggestions'](_0x4283c9['getFirstRange'](),'attribute')['find'](_0x242260=>'listType'===_0x1c28a7['_getAttributeKey'](_0x242260['suggestion']))||(_0x24a979['removeMarker'](_0x4283c9['getFirstMarker']()),_0x898d42=!0x0));}return _0x898d42;})),_0x1c28a7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xd4ca3e,'FORMAT_INDENT'));const _0x4fe24f={'type':'format','content':''};_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x2ec71e=>{const {data:_0x17fb25}=_0x2ec71e;if(!_0x17fb25||'listType'!=_0x17fb25['key'])return;let _0x445e61=_0x2ec71e['head'];for(;_0x445e61;){if(_0x445e61['data']&&(('listStyle'==_0x445e61['data']['key']||'listMarkerStyle'==_0x445e61['data']['key'])&&(_0x445e61['data']['newValue']&&'default'!=_0x445e61['data']['newValue']||'default'!=_0x445e61['data']['oldValue']&&!_0x17fb25['newValue'])||!_0x5d5b78&&_0x445e61['data']['key']==m))return _0x4fe24f;_0x445e61=_0x445e61['next'];}if(null==_0x17fb25['newValue'])switch(_0x17fb25['oldValue']){case'bulleted':return _0x7afb95(o(_0xd4ca3e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x7afb95(o(_0xd4ca3e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x7afb95(o(_0xd4ca3e,'ELEMENT_TODO_LIST'));}switch(_0x17fb25['newValue']){case'bulleted':return _0xfc5e40(o(_0xd4ca3e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xfc5e40(o(_0xd4ca3e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xfc5e40(o(_0xd4ca3e,'ELEMENT_TODO_LIST'));}}),_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x384b47=>{const {data:_0x2c3032}=_0x384b47;if(_0x2c3032&&'listIndent'==_0x2c3032['key'])return null==_0x2c3032['newValue']||null==_0x2c3032['oldValue']&&0x0==_0x2c3032['newValue']?_0x4fe24f:void 0x0;}),_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x73d2ea=>{if('attribute'!=_0x73d2ea['type'])return;const {data:_0x7756c9}=_0x73d2ea;if(!_0x7756c9||'listItemId'!=_0x7756c9['key'])return;const _0x1c79bd=Ee(_0x73d2ea);return'newValue'==_0x1c79bd?{'type':'format','content':o(_0xd4ca3e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1c79bd?{'type':'format','content':o(_0xd4ca3e,'*Split:*\x20list\x20item')}:_0x4fe24f;}),_0x4ffa3a['model']['document']['registerPostFixer'](_0xbd9645=>this['listItemIdFixer'](_0xbd9645)),_0x4ffa3a['model']['document']['registerPostFixer'](_0x15513a=>this['noTrackChangesFixer'](_0x15513a)),_0x4ffa3a['model']['document']['on']('change:data',(_0x486ad3,_0x544831)=>{if(_0x544831['isUndo']||!_0x544831['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3caf58){if(_0x3caf58['batch']['isUndo']||!_0x3caf58['batch']['isLocal'])return!0x1;let _0x4eeeab=!0x1;const _0x2ce525=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e23dc=>_0x2e23dc['data']&&'listItemId'==_0x2e23dc['data']['key'])['filter'](_0x16c6a3=>_0x16c6a3['data']['newValue']&&_0x16c6a3['data']['oldValue']);for(const _0x752c59 of _0x2ce525)Ee(_0x752c59)||(_0x3caf58['removeMarker'](_0x752c59['getFirstMarker']()),_0x4eeeab=!0x0);return _0x4eeeab;}['noTrackChangesFixer'](_0x26a5b0){if(_0x26a5b0['batch']['isUndo']||!_0x26a5b0['batch']['isLocal'])return!0x1;const _0x38ff30=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x38ff30['trackChangesCommand']['value'])return!0x1;let _0x433a4b=!0x1;const _0x46db94=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3af897=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x10df70=>'attribute'==_0x10df70['type'])['filter'](_0x383734=>_0x46db94['includes'](_0x383734['attributeKey']));if(0x0==_0x3af897['length'])return _0x433a4b;for(const _0x419b59 of _0x3af897){const _0x224a7b=_0x38ff30['_findSuggestions'](_0x419b59['range'],'attribute')['filter'](_0x28b3aa=>!_0x28b3aa['meta']['isNextTo'])['map'](_0x48ea7b=>_0x48ea7b['suggestion'])['filter'](_0x114d80=>{const _0xe5b75c=_0x38ff30['_getAttributeKey'](_0x114d80);return _0x46db94['includes'](_0xe5b75c);});if(_0x224a7b['length']){for(const _0x1b8654 of _0x224a7b)_0x26a5b0['removeMarker'](_0x1b8654['getFirstMarker']());_0x433a4b=!0x0;}}return _0x433a4b;}['assureChains'](){const _0x5489b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa09ce8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x6615e3;const _0x31cf79=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x45d6cd=>{if(_0x45d6cd['data']['oldRange']||!_0x45d6cd['data']['newRange'])return null;if(!_0x45d6cd['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1917a8}=_0x5489b9['_splitMarkerName'](_0x45d6cd['name']);if(!_0x5489b9['hasSuggestion'](_0x1917a8))return null;const _0x182ee5=_0x5489b9['getSuggestion'](_0x1917a8);return _0xa09ce8['includes'](_0x182ee5['data']['key']);})['map'](_0x5169d8=>{const {id:_0x33d994}=_0x5489b9['_splitMarkerName'](_0x5169d8['name']),_0x17be25=_0x5489b9['getSuggestion'](_0x33d994);return _0x6615e3=_0x17be25['attributes']['groupId'],_0x17be25['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x31cf79['size'])return;const _0x471be3=_0x5489b9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x254897=>'attribute'==_0x254897['type']&&_0x254897['data']&&_0xa09ce8['includes'](_0x254897['data']['key'])&&_0x254897['attributes']['groupId']!=_0x6615e3)['map'](_0x1e3cae=>({'listItem':_0x1e3cae['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1e3cae['attributes']['groupId']})),_0x59ee3f=new Set();for(const {groupId:_0x45c348,listItem:_0x3ef5fa}of _0x471be3)_0x31cf79['has'](_0x3ef5fa)&&_0x59ee3f['add'](_0x45c348);for(const _0x402444 of _0x5489b9['getSuggestions']())_0x59ee3f['has'](_0x402444['attributes']['groupId'])&&_0x402444['setAttribute']('groupId',_0x6615e3);}['_supportLegacySuggestions'](){const _0x3d4a3c=this['editor'],_0x2edfab=_0x3d4a3c['locale'],_0x33af0f=_0x3d4a3c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x33af0f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x377117,_0xcbf6e5){const _0x47dab9=[];for(let _0x1aef17 of _0x377117)_0x1aef17['start']['nodeAfter']===_0x1aef17['end']['parent']&&(_0x1aef17=_0x3d4a3c['model']['createRange'](_0x3d4a3c['model']['createPositionAt'](_0x1aef17['start']['nodeAfter'],0x0))),_0x47dab9['push'](_0x1aef17);_0x3d4a3c['model']['change'](_0x37d0ff=>{const _0x4ee64c=_0x3d4a3c['model']['document']['selection'],_0x23369d=Array['from'](_0x4ee64c['getRanges']())['map'](_0x3139dc=>_0x1ac7bd['fromRange'](_0x3139dc));_0x37d0ff['setSelection'](_0x47dab9),_0x3d4a3c['commands']['get'](_0xcbf6e5['commandName'])['refresh'](),_0xcbf6e5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3d4a3c['execute'](_0xcbf6e5['commandName'],..._0xcbf6e5['commandParams']),_0x37d0ff['setSelection'](_0x23369d);for(const _0x4fecb5 of _0x23369d)_0x4fecb5['detach']();});}),_0x33af0f['descriptionFactory']['registerElementLabel'](function(_0x22360e){const _0x3f641d=!_0x3d4a3c['model']['schema']['isObject'](_0x22360e),_0x433e77=_0x22360e['previousSibling'],_0x117c48=_0x22360e['nextSibling'],_0x14ac0b=_0x22360e['getAttribute']('listItemId'),_0x5aa4a8=!_0x433e77||_0x433e77['getAttribute']('listItemId')!==_0x14ac0b,_0x27021a=!_0x117c48||_0x117c48['getAttribute']('listItemId')!==_0x14ac0b;return _0x3f641d&&Boolean(_0x14ac0b)&&_0x5aa4a8&&_0x27021a;},_0x59e561=>o(_0x2edfab,'ELEMENT_LIST_ITEM',_0x59e561));}['_registerLegacyDescription'](){const _0x447122=this['editor'],_0x56309c=_0x447122['locale'];function _0xf64ae1(_0x1f6b28){const _0x5bfb55=_0x447122['commands']['get']('bulletedList')['value'],_0x466d1e=_0x447122['commands']['get']('numberedList')['value'];return'numberedList'===_0x1f6b28?_0x5bfb55:_0x466d1e;}_0x447122['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3977cd){if('formatBlock'!=_0x3977cd['type'])return;const {data:_0x5a9a7d}=_0x3977cd;if(!_0x5a9a7d)return;let _0x4999d3,_0x408efe,_0x48ce04,_0x2a1cb2;switch(_0x5a9a7d['commandName']){case'bulletedList':_0x48ce04=_0x5a9a7d['commandParams'][0x0]['forceValue'],_0x2a1cb2=_0xf64ae1(_0x5a9a7d['commandName']),_0x4999d3=_0x48ce04?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a1cb2&&_0x447122['config']['get']('list.multiBlock')||(_0x4999d3='*Change\x20to:*\x20%0'),_0x408efe={'type':'format','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x48ce04=_0x5a9a7d['commandParams'][0x0]['forceValue'],_0x2a1cb2=_0xf64ae1(_0x5a9a7d['commandName']),_0x4999d3=_0x48ce04?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a1cb2&&_0x447122['config']['get']('list.multiBlock')||(_0x4999d3='*Change\x20to:*\x20%0'),_0x408efe={'type':'format','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4999d3='*Indent:*\x20%0',_0x408efe={'type':'format','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4999d3=function(_0x5a04e3){const _0x5364f6=_0x5a04e3['getFirstRange']();let _0x393e80=_0x5364f6['start']['nodeAfter'];for(;_0x393e80&&_0x5364f6['containsItem'](_0x393e80);){if(_0x393e80['getAttribute']('listIndent')>0x0)return!0x1;_0x393e80=_0x393e80['nextSibling'];}return!0x0;}(_0x3977cd)?o(_0x56309c,'*Format:*\x20remove\x20from\x20%0',o(_0x56309c,function(_0x3e2fc3){return'ELEMENT_'+_0x3e2fc3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3977cd))):o(_0x56309c,'*Outdent:*\x20%0',o(_0x56309c,'ELEMENT_LIST_ITEM')),_0x408efe={'type':'format','content':_0x4999d3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5a9a7d['multipleBlocks']&&(_0x4999d3='*Merge:*\x20%0',_0x408efe={'type':'deletion','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_LIST_ITEM'))});}return _0x408efe;});}}function Ee(_0x3a507e){let _0x38b7b3=_0x3a507e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x38b7b3;){const _0x26d8a7=_0x38b7b3['getAttribute']('listItemId');if(!_0x26d8a7)return!0x1;if(_0x26d8a7==_0x3a507e['data']['newValue'])return'newValue';if(_0x26d8a7==_0x3a507e['data']['oldValue'])return'oldValue';_0x38b7b3=_0x38b7b3['previousSibling'];}return!0x1;}class pe extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4c8bbc=this['editor']['config']['get']('list.properties'),_0x54733e=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c8bbc['styles']&&(_0x54733e['enableDefaultAttributesIntegration']('listStyle'),_0x54733e['registerBlockAttribute']('listStyle')),_0x4c8bbc['reversed']&&(_0x54733e['enableDefaultAttributesIntegration']('listReversed'),_0x54733e['registerBlockAttribute']('listReversed')),_0x4c8bbc['startIndex']&&(_0x54733e['enableDefaultAttributesIntegration']('listStart'),_0x54733e['registerBlockAttribute']('listStart'));const _0x2dfafa={'type':'format','content':''};_0x54733e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x15daf5=this['editor']['locale'];_0x54733e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x15daf5,'FORMAT_LIST_REVERSED')),_0x54733e['descriptionFactory']['registerDescriptionCallback'](_0x1d7d97=>{const {data:_0x52247f}=_0x1d7d97;if(_0x52247f&&'listReversed'==_0x52247f['key'])return null==_0x52247f['newValue']||0x0==_0x52247f['newValue']&&null==_0x52247f['oldValue']?_0x2dfafa:void 0x0;}),_0x54733e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x15daf5,'FORMAT_LIST_START')),_0x54733e['descriptionFactory']['registerDescriptionCallback'](_0x43ba27=>{const {data:_0x530963}=_0x43ba27;if(_0x530963&&'listStart'==_0x530963['key'])return null==_0x530963['newValue']||0x1==_0x530963['newValue']&&null==_0x530963['oldValue']?_0x2dfafa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x465877=>{if(_0x465877['batch']['isUndo'])return!0x1;let _0x502a3c=!0x1;const _0x25b495=_0x54733e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x427f07=>{const _0x1628f1=_0x54733e['_getAttributeKey'](_0x427f07);return'listStart'==_0x1628f1||'listReversed'==_0x1628f1;});for(const _0x45afd6 of _0x25b495){const _0x29e525=_0x45afd6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x29e525||'customNumbered'==_0x29e525)continue;_0x54733e['_findSuggestions'](_0x45afd6['getFirstRange'](),'attribute')['find'](_0x25d33b=>'listType'==_0x54733e['_getAttributeKey'](_0x25d33b['suggestion']))||(_0x465877['removeMarker'](_0x45afd6['getFirstMarker']()),_0x502a3c=!0x0);}return _0x502a3c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x360fb8){const _0xd55629=this['editor']['locale'],{data:_0x5904e8}=_0x360fb8,_0x2b5a43={'type':'format','content':''};if(!_0x5904e8||'listStyle'!=_0x5904e8['key'])return;if(!_0x5904e8['oldValue'])return'default'==_0x5904e8['newValue']?_0x2b5a43:{'type':'format','content':''+o(_0xd55629,'*Set\x20format:*\x20%0',o(_0xd55629,this['_getTranslationKeyForListStyle'](_0x5904e8['newValue'])))};if(!_0x5904e8['newValue']){if('default'==_0x5904e8['oldValue'])return _0x2b5a43;let _0x384245=_0x360fb8['head'];for(;_0x384245;){if(_0x384245['data']&&'listType'==_0x384245['data']['key']&&_0x384245['data']['newValue'])return _0x2b5a43;_0x384245=_0x384245['next'];}return{'type':'format','content':''+o(_0xd55629,'*Remove\x20format:*\x20%0',o(_0xd55629,this['_getTranslationKeyForListStyle'](_0x5904e8['oldValue'])))};}if('default'!=_0x5904e8['newValue'])return{'type':'format','content':''+o(_0xd55629,'*Set\x20format:*\x20%0',o(_0xd55629,this['_getTranslationKeyForListStyle'](_0x5904e8['newValue'])))};let _0x1c88ff=_0x360fb8['head'];for(;_0x1c88ff;){if(_0x1c88ff['data']&&'listType'==_0x1c88ff['data']['key']&&_0x1c88ff['data']['newValue']&&_0x1c88ff['data']['oldValue'])return _0x2b5a43;_0x1c88ff=_0x1c88ff['next'];}return{'type':'format','content':o(_0xd55629,'*Set\x20format:*\x20%0',o(_0xd55629,'ELEMENT_'+_0x360fb8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x48b694=this['editor'],_0x5dfca2=_0x48b694['locale'];_0x48b694['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x130c08=>{if('formatBlock'!=_0x130c08['type'])return;const {data:_0x5c0de5}=_0x130c08;if(!_0x5c0de5)return;let _0x43a72b,_0x17628a;switch(_0x5c0de5['commandName']){case'listStyle':_0x43a72b='*Change\x20to:*\x20%0',_0x17628a={'type':'format','content':o(_0x5dfca2,_0x43a72b,o(_0x5dfca2,this['_getTranslationKeyForListStyle'](_0x5c0de5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x43a72b=_0x5c0de5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x17628a={'type':'format','content':o(_0x5dfca2,_0x43a72b)};break;case'listStart':_0x43a72b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x17628a={'type':'format','content':o(_0x5dfca2,_0x43a72b,_0x5c0de5['commandParams'][0x0]['startIndex'])};}return _0x17628a;});}['_getTranslationKeyForListStyle'](_0x300cbc){return'ELEMENT_'+function(_0x2d8ec6){if(ye['includes'](_0x2d8ec6))return'bulleted';if(Se['includes'](_0x2d8ec6))return'numbered';return null;}(_0x300cbc)['toUpperCase']()+'_LIST_'+_0x300cbc['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x58a0bc{static get['requires'](){return[_0x4d33f4];}['init'](){const _0x4864bc=this['editor'],_0x3b963a=_0x4864bc['plugins']['get']('TrackChangesEditing'),_0x86c816=_0x4864bc['commands']['get']('enter');_0x3b963a['enableCommand']('enter',()=>{_0x4864bc['model']['change'](_0xfd5390=>{const _0x5f5d5f=_0x4864bc['model']['document']['selection'],_0x16de63=_0x5f5d5f['getFirstPosition'](),_0x450883=_0x1ac7bd['fromRange'](_0x5f5d5f['getFirstRange']());if(_0x86c816['enterBlock'](_0xfd5390)){const _0x158232=_0x4864bc['model']['createPositionAt'](_0x16de63['parent']['nextSibling'],0x0),_0x1bd0fc=_0xfd5390['createRange'](_0x16de63,_0x158232);_0x3b963a['markInsertion'](_0x1bd0fc);}else _0xfd5390['setSelection'](_0xfd5390['createRange'](_0x450883['end']));_0x450883['detach'](),_0x86c816['fire']('afterExecute',{'writer':_0xfd5390});});}),_0x4864bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4864bc,'split'),{'priority':'high'}),_0x4864bc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5c1a1e,_0x2d682d,_0x506b5a)=>{const _0x44b669=_0x506b5a['mapper']['markerNameToElements'](_0x2d682d['markerName']);if(_0x44b669){for(const _0x16fce9 of _0x44b669)_0x16fce9['hasClass']('ck-suggestion-marker-split')&&(_0x506b5a['mapper']['unbindElementFromMarkerName'](_0x16fce9,_0x2d682d['markerName']),_0x506b5a['writer']['remove'](_0x16fce9));}},{'priority':'high'}),_0x4864bc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x35aa2a,_0x10cb34,_0x43720c)=>{_0x43720c['options']['showSuggestionHighlights']&&_e(_0x4864bc,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x35aa2a,_0x10cb34,_0x43720c);},{'priority':'high'});}}class X extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x348305=this['editor']['plugins']['get']('TrackChangesEditing');_0x348305['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x348305['enableCommand']('findNext'),_0x348305['enableCommand']('findPrevious'),_0x348305['enableCommand']('replace'),_0x348305['enableCommand']('replaceAll');}['handleFindCommand'](_0x646684,_0xb35d3a,_0x2eeb6b={}){const _0x58b54d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x646684(_0x414d22=>{let _0x5dab04=('string'==typeof _0xb35d3a?_0x58b54d['findByTextCallback'](_0xb35d3a,_0x2eeb6b):_0xb35d3a)(_0x414d22);Array['isArray'](_0x5dab04)&&(_0x5dab04={'results':_0x5dab04,'searchText':'string'==typeof _0xb35d3a?_0xb35d3a:''});const _0x4ec505=_0x5dab04['results']['filter'](_0x175ff7=>!0x1===this['_isInDeletionRange'](_0x175ff7,_0x414d22['item']));return{..._0x5dab04,'results':_0x4ec505};},_0x2eeb6b);}['_isInDeletionRange'](_0x2c3386,_0x11fb6b){const _0xfb3774=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11fb6b,_0x2c3386['start']),this['editor']['model']['createPositionAt'](_0x11fb6b,_0x2c3386['end']));for(const _0x4db150 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xfb3774['getIntersection'](_0x4db150['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x58a0bc{['afterInit'](){const _0x168185=this['editor']['locale'],_0xbaa744=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16bcb1,commandName:_0x2b7243}of ro)this['editor']['plugins']['has'](_0x16bcb1)&&(_0xbaa744['enableDefaultAttributesIntegration'](_0x2b7243),_0xbaa744['registerInlineAttribute'](_0x2b7243));_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x168185,'FORMAT_FONT_SIZE')),_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x168185,'FORMAT_FONT_FAMILY')),_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x168185,'FORMAT_FONT_COLOR')),_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x168185,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18aaf4=this['editor'],_0x553679=_0x18aaf4['locale'];_0x18aaf4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bcd59=>{const _0x1d6d42=_0x553679['t'];if('formatInline'!=_0x3bcd59['type'])return;const {data:_0x1d890b}=_0x3bcd59;if(null!=_0x1d890b){if('fontSize'==_0x1d890b['commandName']){const _0x48f6bb=_0x1d890b['commandParams'][0x0]['value'];if(_0x48f6bb){const _0x521caa=_0x1d6d42(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xe6c120=>_0xe6c120['model']==_0x48f6bb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x553679,'*Set\x20font\x20size:*\x20%0',_0x521caa)};}return{'type':'format','content':o(_0x553679,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1d890b['commandName']){const _0x403955=_0x1d890b['commandParams'][0x0]['value'];return _0x403955?{'type':'format','content':o(_0x553679,'*Set\x20font\x20family:*\x20%0',_0x403955)}:{'type':'format','content':o(_0x553679,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1d890b['commandName']){const _0x91bfcd=_0x1d890b['commandParams'][0x0]['value'];if(_0x91bfcd){const _0x4b0585=_0x2f7d63(this['editor']['config']['get']('fontColor.colors'))['find'](_0x216c0c=>_0x216c0c['model']==_0x91bfcd);let _0xe7f8cb=_0x91bfcd,_0x1fed99='';return _0x4b0585&&(_0xe7f8cb=_0x4b0585['label'],_0x1fed99=_0x1d6d42(_0xe7f8cb)['toLowerCase']()),{'type':'format','content':o(_0x553679,'*Set\x20font\x20color:*\x20%0',_0x1fed99)['trim'](),'color':{'value':_0x91bfcd,'title':_0x1fed99||_0xe7f8cb}};}return{'type':'format','content':o(_0x553679,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1d890b['commandName']){const _0x11ef99=_0x1d890b['commandParams'][0x0]['value'];if(_0x11ef99){const _0x545304=_0x2f7d63(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x18e07f=>_0x18e07f['model']==_0x11ef99);let _0x2ffbcd=_0x11ef99,_0x15f6eb='';return _0x545304&&(_0x2ffbcd=_0x545304['label'],_0x15f6eb=_0x1d6d42(_0x2ffbcd)['toLowerCase']()),{'type':'format','content':o(_0x553679,'*Set\x20font\x20background\x20color:*\x20%0',_0x15f6eb)['trim'](),'color':{'value':_0x11ef99,'title':_0x15f6eb||_0x2ffbcd}};}return{'type':'format','content':o(_0x553679,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x58a0bc{['afterInit'](){const _0xe7fe86=this['editor'],_0x1e0e9d=_0xe7fe86['plugins']['get']('TrackChangesEditing'),_0x4a92bf=_0xe7fe86['commands']['get']('copyFormat'),_0x3adece=_0xe7fe86['commands']['get']('pasteFormat');_0x4a92bf&&_0x3adece&&(_0x1e0e9d['enableDefaultAttributesIntegration']('pasteFormat'),_0x1e0e9d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x269320=this['editor'],_0x29606f=_0x269320['locale'];_0x269320['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x538f43=>{if('formatBlock'!=_0x538f43['type']&&'formatInline'!=_0x538f43['type'])return;const {data:_0x5ae346}=_0x538f43;if(_0x5ae346&&'pasteFormat'===_0x5ae346['commandName']){const _0x29caed=[],_0x5df0c0=_0x5ae346['commandParams'][0x0];for(const [_0x284da6,_0x2689fb]of Object['entries'](_0x5df0c0))_0x29caed['push'](so(_0x269320,_0x284da6,_0x2689fb));return _0x29caed['length']?{'type':'format','content':o(_0x29606f,'*Set\x20format\x20to:*\x20%0',_0x29caed['join'](',\x20'))}:{'type':'format','content':o(_0x29606f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x59889a,_0x32412c,_0x269df5){const _0x4cdf06=_0x59889a['locale']['t'],_0x3b8e54=_0x32412c['split'](/(?=[A-Z])/)['join']('\x20'),_0x23d0ee=_0x4cdf06(_0x3b8e54['charAt'](0x0)['toUpperCase']()+_0x3b8e54['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x269df5)return _0x23d0ee;if('fontColor'===_0x32412c||'fontBackgroundColor'===_0x32412c){const _0x2c2ce3=_0x2f7d63(_0x59889a['config']['get']('fontColor.colors'))['find'](_0x355b9c=>_0x355b9c['model']==_0x269df5);return _0x23d0ee+'\x20('+(_0x2c2ce3?_0x4cdf06(_0x2c2ce3['label'])['toLowerCase']():_0x269df5)+')';}if('fontSize'===_0x32412c&&isNaN(parseFloat(_0x269df5))){const _0x5f5b11=_0x59889a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59889a['config']['get']('fontSize.options'))['find'](_0x495ccc=>_0x495ccc['model']==_0x269df5);return _0x23d0ee+'\x20('+(_0x5f5b11?_0x4cdf06(_0x5f5b11['title'])['toLowerCase']():_0x269df5)+')';}return _0x23d0ee+'\x20('+_0x269df5+')';}class tt extends _0x58a0bc{['_headingOptions'];['afterInit'](){const _0x31e1e4=this['editor'];if(!_0x31e1e4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x31e1e4['config']['get']('heading.options');const _0x2812f4=_0x31e1e4['locale'],_0x74b517=_0x31e1e4['plugins']['get']('TrackChangesEditing');_0x74b517['enableDefaultAttributesIntegration']('heading');for(const _0x145bb9 of this['_headingOptions'])'paragraph'!=_0x145bb9['model']&&_0x74b517['descriptionFactory']['registerElementLabel'](_0x145bb9['model'],_0x45ceb0=>{const _0x52778b=this['_getHeadingLevel'](_0x145bb9['model']);return null!==_0x52778b?_0x13ada8(_0x45ceb0,_0x52778b):_0xc03af3(_0x45ceb0,_0x145bb9['title']);});function _0x13ada8(_0x5dd479,_0x3bbacc){return o(_0x2812f4,'ELEMENT_HEADING',[_0x5dd479,_0x3bbacc]);}function _0xc03af3(_0x1cafb5,_0x507f20){return o(_0x2812f4,'ELEMENT_HEADING_CUSTOM',[_0x1cafb5,_0x507f20]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36406f=this['editor'],_0x5142a3=_0x36406f['locale'];function _0x5255b7(_0x3d03af,_0x1219ec){return o(_0x5142a3,'ELEMENT_HEADING_CUSTOM',[_0x3d03af,_0x1219ec]);}_0x36406f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa8af41=>{if('formatBlock'!=_0xa8af41['type'])return;const {data:_0x561d88}=_0xa8af41;if(_0x561d88&&'heading'==_0x561d88['commandName']){const _0x4fcf6d=_0x561d88['commandParams'][0x0]['value'],_0x56e2cb=this['_getHeadingLevel'](_0x4fcf6d);if(null!==_0x56e2cb)return{'type':'format','content':o(_0x5142a3,'*Change\x20to:*\x20%0',(_0x6818ca=0x1,_0x16ba9d=_0x56e2cb,o(_0x5142a3,'ELEMENT_HEADING',[_0x6818ca,_0x16ba9d])))};const _0x121bbc=this['_headingOptions']['find'](_0x4df3af=>_0x4df3af['model']===_0x4fcf6d)['title'];return{'type':'format','content':o(_0x5142a3,'*Change\x20to:*\x20%0',_0x5255b7(0x1,_0x121bbc))};}var _0x6818ca,_0x16ba9d;});}['_getHeadingLevel'](_0x2ebf45){const _0x4ab606=_0x2ebf45['match'](/^heading(\d+)/);if(_0x4ab606)return _0x4ab606[0x1];const _0x16501e=this['_headingOptions']?.['find'](_0x3661c6=>_0x3661c6['model']==_0x2ebf45);if(_0x16501e&&_0x16501e['view']){const _0xdc5d7d=_0x16501e['view'],_0x5d6db5=(_0xdc5d7d['name']??_0xdc5d7d)['match'](/^h(\d+)/);if(_0x5d6db5)return _0x5d6db5[0x1];}return null;}}class et extends _0x58a0bc{['afterInit'](){const _0x4daeb3=this['editor'];if(!_0x4daeb3['plugins']['has']('HighlightEditing'))return;const _0x23ce56=_0x4daeb3['plugins']['get']('TrackChangesEditing'),_0x5542cd=_0x4daeb3['locale'];_0x23ce56['enableDefaultAttributesIntegration']('highlight'),_0x23ce56['registerInlineAttribute']('highlight'),_0x23ce56['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5542cd,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3670e4=this['editor'],_0x499564=_0x3670e4['locale'];_0x3670e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x525c4f=>{if('formatInline'!=_0x525c4f['type'])return;const {data:_0x238e23}=_0x525c4f;if(_0x238e23&&'highlight'==_0x238e23['commandName']){const _0x5624af=_0x499564['t'],_0x4dfe3e=_0x238e23['commandParams'][0x0]['value'];if(_0x4dfe3e){const _0x400a2a=_0x3670e4['config']['get']('highlight.options')['find'](_0x465198=>_0x465198['model']==_0x4dfe3e),_0x41819a=_0x5624af(_0x400a2a['title'])['toLowerCase']();return{'type':'format','content':o(_0x499564,'*Set\x20highlight:*\x20%0',_0x41819a),'color':{'value':_0x400a2a['color'],'title':_0x400a2a['title']}};}return{'type':'format','content':o(_0x499564,'*Remove\x20highlight*',o(_0x499564,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x58a0bc{['afterInit'](){const _0x333570=this['editor'];if(!_0x333570['plugins']['has']('HorizontalLineEditing'))return;_0x333570['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2d083d=_0x333570['plugins']['get']('TrackChangesEditing'),_0x4d670a=_0x333570['locale'];_0x2d083d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x550365=>o(_0x4d670a,'ELEMENT_HORIZONTAL_LINE',_0x550365)),_0x333570['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2563a7,{writer:_0x4a5d0c,options:_0x58f088})=>{if(!_0x58f088['showSuggestionHighlights'])return null;const _0x5c48d8=_0x4a5d0c['createContainerElement']('div'),_0x580899=_0x4a5d0c['createEmptyElement']('hr');return _0x4a5d0c['addClass']('ck-horizontal-line',_0x5c48d8),_0x4a5d0c['insert'](_0x4a5d0c['createPositionAt'](_0x5c48d8,0x0),_0x580899),_0x5c48d8;},'converterPriority':'high'});}}class st extends _0x58a0bc{['afterInit'](){const _0x3d94c5=this['editor'];if(!_0x3d94c5['plugins']['has']('HtmlEmbed'))return;const _0x50be0f=_0x3d94c5['plugins']['get']('TrackChangesEditing'),_0x39fa3e=_0x3d94c5['locale'];_0x50be0f['descriptionFactory']['registerElementLabel']('rawHtml',_0x15317c=>o(_0x39fa3e,'ELEMENT_HTML_EMBED',_0x15317c)),_0x50be0f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x50be0f['registerBlockAttribute']('value'),_0x50be0f['descriptionFactory']['registerDescriptionCallback'](_0x17079c=>{if('attribute'!=_0x17079c['type'])return;const {data:_0x43fcc4}=_0x17079c;if(_0x43fcc4&&'value'==_0x43fcc4['key']&&_0x17079c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x18bd57=o(_0x39fa3e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x39fa3e,'*Change\x20%0\x20content*',_0x18bd57)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3031e2=this['editor'],_0x462be7=_0x3031e2['locale'];_0x3031e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34a727=>{if('formatBlock'!=_0x34a727['type'])return;const {data:_0x32d909}=_0x34a727;if(_0x32d909&&'htmlEmbed'==_0x32d909['commandName']){const _0x3aa3f0=o(_0x462be7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x462be7,'*Change\x20%0\x20content*',_0x3aa3f0)};}});}}class nt extends _0x58a0bc{['afterInit'](){const _0xd55b62=this['editor'];if(!_0xd55b62['plugins']['has']('ImageEditing'))return;const _0x3e7d79=_0xd55b62['plugins']['get']('TrackChangesEditing'),_0x53961f=_0xd55b62['plugins']['get']('ImageUtils'),_0x236b99=_0xd55b62['locale'];_0x3e7d79['enableCommand']('insertImage'),_0x3e7d79['descriptionFactory']['registerElementLabel']('imageBlock',_0x542940=>o(_0x236b99,'ELEMENT_IMAGE',_0x542940)),_0x3e7d79['descriptionFactory']['registerElementLabel']('imageInline',_0x346142=>o(_0x236b99,'ELEMENT_INLINE_IMAGE',_0x346142)),_0x3e7d79['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x236b99,'ELEMENT_CAPTION')),_0xd55b62['plugins']['has']('ImageUploadEditing')&&_0x3e7d79['enableCommand']('uploadImage'),_0xd55b62['plugins']['has']('ImageBlockEditing')&&_0xd55b62['plugins']['has']('ImageInlineEditing')&&(_0x3e7d79['enableCommand']('imageTypeInline',(_0x383915,_0x237365)=>{const _0x31c52c=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']);_0xd55b62['model']['change'](()=>{_0x3e7d79['markBlockFormat'](_0x31c52c,{'commandName':'imageTypeInline','commandParams':[_0x237365]},[],'convertBlockImageToInline');});}),_0x3e7d79['enableCommand']('imageTypeBlock',(_0x1e000a,_0x445b24)=>{_0xd55b62['model']['change'](_0x3d97fd=>{let _0x17befb=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x56796e=_0x3d97fd['createRangeOn'](_0x17befb);const _0x47de15=_0x3a1667['fromPosition'](_0x56796e['start'],'toPrevious'),_0x10e0f1=_0x3a1667['fromPosition'](_0x56796e['end'],'toNext');_0x3e7d79['forceDefaultExecution'](()=>_0x1e000a(_0x445b24)),_0x17befb=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x56796e=_0x3d97fd['createRangeOn'](_0x17befb);const _0x52d098=_0x3d97fd['createRange'](_0x47de15,_0x10e0f1);_0x47de15['detach'](),_0x10e0f1['detach'](),_0x3e7d79['markBlockFormat'](_0x17befb,{'commandName':'imageTypeInline','commandParams':[_0x445b24]},[],'convertInlineImageToBlock'),_0x52d098['start']['isBefore'](_0x56796e['start'])&&_0x3e7d79['markInsertion'](_0x3d97fd['createRange'](_0x52d098['start'],_0x56796e['start']),'convertInlineImageToBlock'),_0x56796e['end']['isBefore'](_0x52d098['end'])&&_0x3e7d79['markInsertion'](_0x3d97fd['createRange'](_0x56796e['end'],_0x52d098['end']),'convertInlineImageToBlock');});}),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3e7d79['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3938ad])=>{const _0x391cfd=_0x3e7d79['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x54c389=_0x3938ad['start'],_0xfb69db=_0x3938ad['end'];const _0x50ed7f=_0xd55b62['model']['schema']['getNearestSelectionRange'](_0x54c389,'backward'),_0x4c8644=_0xd55b62['model']['schema']['getNearestSelectionRange'](_0xfb69db,'forward');_0x50ed7f['isCollapsed']&&(_0x54c389=_0x50ed7f['start']),_0x4c8644['isCollapsed']&&(_0xfb69db=_0x4c8644['end']),_0x391cfd([_0xd55b62['model']['createRange'](_0x54c389,_0xfb69db)]);}),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x781ec3),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x781ec3)),_0xd55b62['plugins']['has']('ImageCaptionEditing')&&(_0x3e7d79['enableCommand']('toggleImageCaption',(_0x267f31,_0x48bfb4)=>{const _0x500750=_0xd55b62['plugins']['get']('ImageCaptionUtils');let _0x335cd0=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x2b14c5=_0x500750['getCaptionFromImageModelElement'](_0x335cd0);_0xd55b62['model']['change'](()=>{if(_0x2b14c5)return void _0x3e7d79['markDeletion'](_0xd55b62['model']['createRangeOn'](_0x2b14c5));const _0x4d64ce=_0x53961f['isBlockImage'](_0x335cd0);_0x267f31(_0x48bfb4),_0x335cd0=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x2b14c5=_0x500750['getCaptionFromImageModelElement'](_0x335cd0),_0x3e7d79['markInsertion'](_0xd55b62['model']['createRangeOn'](_0x2b14c5),_0x4d64ce?null:'imageCaption');});}),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x781ec3));const _0xa0e3ea=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2fc53f(_0xfbd7c0,_0x1a4961){const _0x25eb54=_0xa0e3ea['findIndex'](({type:_0x126624,subType:_0xd88d87})=>_0xfbd7c0['type']==_0x126624&&_0xfbd7c0['subType']==_0xd88d87),_0x266271=_0xa0e3ea['findIndex'](({type:_0x2fe0b6,subType:_0x55954e})=>_0x1a4961['type']==_0x2fe0b6&&_0x1a4961['subType']==_0x55954e);if(_0x25eb54<0x0||_0x266271<0x0)return!0x1;const _0x59db56=_0xfbd7c0['getFirstRange'](),_0x4c670a=_0x1a4961['getFirstRange']();if((0x0==_0x25eb54||0x1==_0x25eb54)&&0x2==_0x266271&&_0x59db56['isIntersecting'](_0x4c670a))return!0x0;if(0x2==_0x25eb54&&0x3==_0x266271){const _0x2b9b48=_0x3e7d79['_findSuggestions'](_0x59db56,'insertion')['filter'](({suggestion:_0x4151ce,meta:_0x1c18c4})=>_0x1c18c4['isOwn']&&'convertInlineImageToBlock'==_0x4151ce['subType']);if(_0x2b9b48['length']>0x1&&_0x4c670a['end']['isEqual'](_0x59db56['start']))return!0x0;if(0x1==_0x2b9b48['length']&&(_0x59db56['start']['isEqual'](_0x4c670a['end'])||_0x59db56['end']['isEqual'](_0x4c670a['start'])))return!0x0;}if(0x3==_0x25eb54&&0x3==_0x266271&&_0x59db56['start']['isBefore'](_0x4c670a['start'])){const _0x4ffd6c=_0x59db56['end']['nodeAfter'],_0x22b90a=_0x4c670a['start']['nodeBefore'];return _0x53961f['isBlockImage'](_0x4ffd6c)&&_0x4ffd6c===_0x22b90a;}return!0x1;}function _0x781ec3(_0x5eea4d,_0x53a1a5){return _0x2fc53f(_0x5eea4d,_0x53a1a5)?[_0x5eea4d,_0x53a1a5]:_0x2fc53f(_0x53a1a5,_0x5eea4d)?[_0x53a1a5,_0x5eea4d]:null;}_0xd55b62['plugins']['has']('ImageResize')&&(_0x3e7d79['enableDefaultAttributesIntegration']('resizeImage'),_0x3e7d79['registerBlockAttribute']('resizedWidth'),_0x3e7d79['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x236b99,'FORMAT_IMAGE_SIZE'))),_0xd55b62['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3e7d79['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3e7d79['registerBlockAttribute']('alt')),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x36e51c=>{if(!!_0xa0e3ea['find'](({type:_0x6191ac,subType:_0x2161ba})=>_0x36e51c['type']==_0x6191ac&&_0x36e51c['subType']==_0x2161ba))return _0x36e51c['previous']?{}:void 0x0;}),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x233ff5=>{if('insertion'==_0x233ff5['type']||'deletion'==_0x233ff5['type']){const _0x35c4b6=_0x233ff5['getContainedElement']();if(_0x35c4b6&&_0x35c4b6['is']('element','caption'))return{'type':'insertion'==_0x233ff5['type']?'addObject':'removeObject','element':_0x35c4b6,'quantity':0x1};}}),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x3c60e0=>'formatBlock'==_0x3c60e0['type']&&'convertInlineImageToBlock'==_0x3c60e0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3c60e0['type']&&'convertBlockImageToInline'==_0x3c60e0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x57d405=>{if('attribute'!=_0x57d405['type'])return;const {data:_0x22484f}=_0x57d405;if(!_0x22484f||'alt'!=_0x22484f['key'])return;const _0x3324f8=_0x22484f['newValue'];return _0x3324f8?{'type':'format','content':o(_0x236b99,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3324f8+'\x22')}:{'type':'format','content':o(_0x236b99,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x521549=this['editor'],_0x21bec5=_0x521549['locale'];_0x521549['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a075b=>{if('formatBlock'!=_0x2a075b['type']&&'formatInline'!=_0x2a075b['type'])return;const {data:_0x3ddf6b}=_0x2a075b;if(_0x3ddf6b){if('imageTextAlternative'==_0x3ddf6b['commandName']){const _0x61a815=_0x3ddf6b['commandParams'][0x0]['newValue'];return _0x61a815?{'type':'format','content':o(_0x21bec5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x61a815+'\x22')}:{'type':'format','content':o(_0x21bec5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3ddf6b['commandName']){const _0x3365ab=_0x3ddf6b['commandParams'][0x0]['width'];return _0x3365ab?{'type':'format','content':o(_0x21bec5,'*Set\x20image\x20width:*\x20%0',_0x3365ab)}:{'type':'format','content':o(_0x21bec5,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x334a0f=this['editor']['locale'],_0x553a07=this['editor']['plugins']['get']('TrackChangesEditing');_0x553a07['enableDefaultAttributesIntegration']('replaceImageSource'),_0x553a07['registerBlockAttribute']('src'),_0x553a07['descriptionFactory']['registerDescriptionCallback'](_0x11ad29=>{if('attribute'!=_0x11ad29['type'])return;const {data:_0xade7d6}=_0x11ad29;return _0xade7d6&&'src'==_0xade7d6['key']?_0xade7d6['newValue']&&_0xade7d6['oldValue']?{'type':'format','content':o(_0x334a0f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x813352=this['editor']['plugins']['get']('TrackChangesEditing');_0x813352['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x813352['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x813352['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x813352['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xac94bd=this['editor'],_0x16c28b=_0xac94bd['locale'];_0xac94bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dff68=>{if('formatBlock'!=_0x3dff68['type']&&'formatInline'!=_0x3dff68['type'])return;const {data:_0x51e6cf}=_0x3dff68;if(!_0x51e6cf||'replaceImageSource'!=_0x51e6cf['commandName'])return;return{'type':'format','content':o(_0x16c28b,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x58a0bc{['afterInit'](){const _0x1746f7=this['editor'];if(!_0x1746f7['plugins']['has']('ImageStyleEditing'))return;const _0xfe5a7f=_0x1746f7['plugins']['get']('TrackChangesEditing'),_0x5a0edc=_0x1746f7['plugins']['get']('ImageUtils'),_0x110f41={};_0xfe5a7f['enableCommand']('imageStyle',(_0x238baa,_0x4afe7e)=>{const _0x26bc1d=_0x1746f7['plugins']['get']('Users')['me'],_0x1a3fb2=_0x1746f7['commands']['get']('imageStyle');let _0x4835fb=_0x5a0edc['getClosestSelectedImageElement'](_0x1746f7['model']['document']['selection']),_0x478ae3=_0x1746f7['model']['createRangeOn'](_0x4835fb),_0x530000=_0x1a3fb2['value'];if(_0x530000==_0x4afe7e['value'])return;const _0x6594c5={'commandName':'imageStyle','commandParams':[_0x4afe7e],'formatGroupId':_0x546e08()};_0x1746f7['model']['change'](()=>{if(_0xfe5a7f['getSuggestions']()['filter'](_0x27664a=>_0x27664a['isInContent']&&_0x26bc1d==_0x27664a['author']&&('formatBlock'==_0x27664a['type']||'formatInline'==_0x27664a['type'])&&('imageStylePreApply'==_0x27664a['subType']||'imageStylePostApply'==_0x27664a['subType'])&&_0x27664a['getFirstRange']()['isEqual'](_0x478ae3))['forEach'](_0x1fb40e=>_0xfe5a7f['discardSuggestion'](_0x1fb40e['head'])),_0x4835fb=_0x5a0edc['getClosestSelectedImageElement'](_0x1746f7['model']['document']['selection']),_0x478ae3=_0x1746f7['model']['createRangeOn'](_0x4835fb),_0x1a3fb2['refresh'](),_0x1746f7['commands']['get']('imageTypeInline')['refresh'](),_0x1746f7['commands']['get']('imageTypeBlock')['refresh'](),_0x530000=_0x1a3fb2['value'],_0x530000!=_0x4afe7e['value'])return _0x5a0edc['isInlineImage'](_0x4835fb)&&_0x1a3fb2['shouldConvertImageType'](_0x4afe7e['value'],_0x4835fb)?(_0x238baa({..._0x4afe7e,'setImageSizes':!0x1}),_0x4835fb=_0x5a0edc['getClosestSelectedImageElement'](_0x1746f7['model']['document']['selection']),void _0xfe5a7f['markBlockFormat'](_0x4835fb,{..._0x6594c5,'commandReversedParams':[{'value':_0x530000||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5a0edc['isBlockImage'](_0x4835fb)?_0xfe5a7f['markBlockFormat'](_0x4835fb,_0x6594c5,[],'imageStylePostApply'):_0xfe5a7f['markInlineFormat'](_0x478ae3,_0x6594c5,'imageStylePostApply'));});});for(const _0x1556aa of _0x1746f7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x110f41[_0x1556aa['name']]=_0x1556aa['title']['toLowerCase']();_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5236e1])=>{_0x5a0edc['setImageNaturalSizeAttributes'](_0x5236e1['getContainedElement']());}),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xaebc9,_0x521093)=>{_0xfe5a7f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xaebc9,{'commandName':_0x521093['commandName'],'commandParams':_0x521093['commandReversedParams']});}),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x386d19,_0x2fd5c7){if(_0x329237(_0x386d19,_0x2fd5c7))return[_0x386d19,_0x2fd5c7];if(_0x329237(_0x2fd5c7,_0x386d19))return[_0x2fd5c7,_0x386d19];return null;});const _0xe952e4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x329237(_0x484297,_0x50491d){const _0xb6f312=_0xe952e4['findIndex'](({type:_0x866077,subType:_0x21868a})=>_0x484297['type']==_0x866077&&_0x484297['subType']==_0x21868a),_0x4298fb=_0xe952e4['findIndex'](({type:_0x1eb9a8,subType:_0x1c1903})=>_0x50491d['type']==_0x1eb9a8&&_0x50491d['subType']==_0x1c1903);if(_0xb6f312<0x0||_0x4298fb<0x0)return!0x1;const _0x3b85af=_0x484297['getFirstRange'](),_0x585e80=_0x50491d['getFirstRange']();if((0x0==_0xb6f312||0x1==_0xb6f312)&&0x2==_0x4298fb&&_0x3b85af['isIntersecting'](_0x585e80))return!0x0;if(0x2==_0xb6f312&&0x3==_0x4298fb){const _0x15e7e8=_0xfe5a7f['_findSuggestions'](_0x3b85af,'insertion')['filter'](({suggestion:_0xd4e47a,meta:_0x40bb77})=>_0x40bb77['isOwn']&&'convertInlineImageToBlock'==_0xd4e47a['subType']);if(_0x15e7e8['length']>0x1&&_0x585e80['end']['isEqual'](_0x3b85af['start']))return!0x0;if(0x1==_0x15e7e8['length']&&(_0x3b85af['start']['isEqual'](_0x585e80['end'])||_0x3b85af['end']['isEqual'](_0x585e80['start'])))return!0x0;}if(0x3==_0xb6f312&&0x3==_0x4298fb&&_0x3b85af['start']['isBefore'](_0x585e80['start'])){const _0xe04d5c=_0x3b85af['end']['nodeAfter'],_0x44adf2=_0x585e80['start']['nodeBefore'];return _0x5a0edc['isBlockImage'](_0xe04d5c)&&_0xe04d5c===_0x44adf2;}return!0x1;}_0x1746f7['model']['document']['registerPostFixer'](()=>{let _0x146cc5=!0x1;const _0x58d727=Array['from'](_0x1746f7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x285171,data:_0x50e345}of _0x58d727){const {group:_0x1a3f81,type:_0x13b3ad,subType:_0x505cef,id:_0x23c4c1}=_0xfe5a7f['_splitMarkerName'](_0x285171);if('suggestion'==_0x1a3f81&&_0xfe5a7f['hasSuggestion'](_0x23c4c1)){if('formatBlock'==_0x13b3ad&&('imageStylePreApply'==_0x505cef||'imageStylePostApply'==_0x505cef)){const _0x1cc085=_0xfe5a7f['getSuggestion'](_0x23c4c1);if(_0x50e345['newRange']){const _0x30783a=_0x1cc085['getFirstRange']()['getContainedElement']();if(_0x5a0edc['isBlockImage'](_0x30783a))continue;_0xfe5a7f['discardSuggestion'](_0x1cc085),_0x146cc5=!0x0;}}if('insertion'==_0x13b3ad&&'imageCaption'==_0x505cef&&!_0x50e345['newRange']){const _0x3b1ea8=_0xfe5a7f['getSuggestion'](_0x23c4c1);_0x3b1ea8['next']&&_0x3b1ea8['next']['isInContent']&&(_0xfe5a7f['discardSuggestion'](_0x3b1ea8['next']),_0x146cc5=!0x0);}}}return _0x146cc5;}),this['_registerLegacyDescription'](_0x110f41);}['_registerLegacyDescription'](_0x9258c9){const _0x1e5dc3=this['editor'],_0x53d4b7=_0x1e5dc3['locale'];_0x1e5dc3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a0a66=>{if('formatBlock'!=_0x2a0a66['type']&&'formatInline'!=_0x2a0a66['type'])return;const {data:_0x4fe6c4}=_0x2a0a66;if(!_0x4fe6c4||'imageStyle'!=_0x4fe6c4['commandName'])return;const _0x2ac869=_0x4fe6c4['commandParams'][0x0]['value'];return _0x58845a('side'===_0x2ac869?o(_0x53d4b7,'FORMAT_SIDE_IMAGE'):_0x9258c9[_0x2ac869]||_0x2ac869);function _0x58845a(_0x5b9723){return{'type':'format','content':o(_0x53d4b7,'*Format:*\x20%0',_0x5b9723)};}});}}class at extends _0x58a0bc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x8a27fb){super(_0x8a27fb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x58f5f1=this['editor'],_0x5a4233=_0x58f5f1['commands']['get']('importWord'),_0x429a4d=_0x58f5f1['commands']['get']('trackChanges');_0x5a4233&&(_0x5a4233['on']('execute',(_0x17bf5a,[,_0x2212be])=>{this['_trackChangesValueDuringImport']=_0x429a4d['value'],_0x2212be['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5a4233,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5a4233,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x429a4d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x58f5f1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xef55cc,_0x199406){const {suggestions:_0x468e6e}=_0x199406,_0x5b3394=this['editor']['commands']['get']('trackChanges'),_0x3a4ded=_0x5b3394['value'];this['_trackChangesValueDuringImport']!==_0x3a4ded&&(_0x5b3394['execute'](),this['_trackChangesExecuted']=!0x0),_0x468e6e&&_0x468e6e['forEach'](({id:_0x2f765c,type:_0x26aebc,author:_0x12ba1c,created_at:_0x4ad53e})=>{const _0x501aa8={'id':_0x2f765c,'type':_0x26aebc,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x12ba1c,'createdAt':_0x4ad53e?new Date(_0x4ad53e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x501aa8);});}}class ct extends _0x58a0bc{['afterInit'](){const _0xb17b20=this['editor'],_0x338316=_0xb17b20['plugins']['get']('TrackChangesEditing');if(_0xb17b20['plugins']['has']('IndentEditing')&&(_0x338316['enableCommand']('indent'),_0x338316['enableCommand']('outdent')),_0xb17b20['plugins']['has']('IndentBlock')){for(const _0x2b7b07 of['indentBlock','outdentBlock'])_0x338316['enableDefaultAttributesIntegration'](_0x2b7b07);}const _0x34ff7b=_0xb17b20['locale'];_0x338316['registerBlockAttribute']('blockIndent'),_0x338316['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x34ff7b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5647fc=this['editor'],_0x11bcec=_0x5647fc['locale'],_0x28e3f5=_0x5647fc['plugins']['get']('TrackChangesEditing');_0x28e3f5['descriptionFactory']['registerDescriptionCallback'](_0x34c79a=>{if('formatBlock'!=_0x34c79a['type'])return;const {data:_0x59537f}=_0x34c79a;if(!_0x59537f)return;if('indentBlock'!=_0x59537f['commandName']&&'outdentBlock'!=_0x59537f['commandName'])return;const _0x184176=_0x34c79a['getItems']()[0x0],_0x77fe51=_0x28e3f5['descriptionFactory']['getItemLabel'](_0x184176);return'indentBlock'==_0x59537f['commandName']?{'type':'format','content':o(_0x11bcec,'*Indent:*\x20%0',_0x77fe51)}:'outdentBlock'==_0x59537f['commandName']?{'type':'format','content':o(_0x11bcec,'*Outdent:*\x20%0',_0x77fe51)}:void 0x0;});}}class ut extends _0x58a0bc{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x58a0bc{['afterInit'](){const _0x12de99=this['editor'];if(!_0x12de99['plugins']['has']('LinkEditing'))return;const _0x329297=_0x12de99['plugins']['get']('TrackChangesEditing'),_0x4386e6=_0x12de99['commands']['get']('link');_0x329297['enableDefaultAttributesIntegration']('link'),_0x329297['enableDefaultAttributesIntegration']('unlink'),_0x329297['registerInlineAttribute']('linkHref');for(const _0x51e350 of _0x4386e6['manualDecorators'])_0x329297['registerInlineAttribute'](_0x51e350['id']),_0x329297['descriptionFactory']['registerAttributeLabel'](_0x51e350['id'],'link\x20('+_0x51e350['label']['toLowerCase']()+')');_0x329297['descriptionFactory']['registerDescriptionCallback'](_0x3b1f61=>{if('attribute'!=_0x3b1f61['type'])return;const {data:_0x209a63}=_0x3b1f61;if(!_0x209a63||'linkHref'!=_0x209a63['key'])return;const _0x4a5be3=_0x209a63['newValue'],_0x5c8b83=_0x12de99['locale'];return{'type':'format','content':null==_0x4a5be3?o(_0x5c8b83,'*Remove\x20link*'):o(_0x5c8b83,'*Set\x20link:*\x20%0','\x22'+_0x4a5be3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19694a=this['editor'],_0x2c5fdd=_0x19694a['locale'];_0x19694a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38f168=>{if('formatInline'!=_0x38f168['type'])return;const {data:_0x123d4b}=_0x38f168;if(_0x123d4b){if('link'==_0x123d4b['commandName']){const _0xcb2c80=_0x123d4b['commandParams'][0x0];return{'type':'format','content':o(_0x2c5fdd,'*Set\x20link:*\x20%0','\x22'+_0xcb2c80+'\x22')};}return'unlink'==_0x123d4b['commandName']?{'type':'format','content':o(_0x2c5fdd,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x58a0bc{['afterInit'](){const _0xc0ea6a=this['editor'],_0xf4601d=_0xc0ea6a['locale'];if(!_0xc0ea6a['plugins']['has']('LegacyListEditing'))return;const _0x542059=_0xc0ea6a['plugins']['get']('TrackChangesEditing'),_0x6a8c71=_0xc0ea6a['plugins']['has']('LegacyTodoListEditing');function _0x19c954(_0x3c9f7f){return()=>{const _0x30a7fd=_0xc0ea6a['model']['document']['selection'],_0x5d5907=_0xc0ea6a['commands']['get'](_0x3c9f7f);if(_0x5d5907['value'])return void _0xc0ea6a['execute']('paragraph',{});const _0x2f6cbd=_0x3c9f7f['slice'](0x0,-0x4),_0x421656=function(_0x58a2fc,_0x90ae6d,_0x515ff2){let _0x3c9c83=Array['from'](_0x58a2fc)['filter'](_0x4a313e=>function(_0x2a1036,_0x51322f){return _0x51322f['checkChild'](_0x2a1036['parent'],'listItem')&&!_0x51322f['isObject'](_0x2a1036);}(_0x4a313e,_0x515ff2));_0x3c9c83=_0x3c9c83['filter'](_0x10e1d6=>!_0x10e1d6['is']('element','listItem')||_0x10e1d6['getAttribute']('listType')!=_0x90ae6d);const _0x24f132=new Set();for(const _0x414a73 of _0x3c9c83)_0x414a73['is']('element','listItem')?_0x24f132['add'](fe(_0x414a73)):_0x24f132['add'](_0x414a73);return Array['from'](_0x24f132);}(_0x30a7fd['getSelectedBlocks'](),_0x2f6cbd,_0xc0ea6a['model']['schema']);_0xc0ea6a['model']['change'](()=>{for(const _0x578ac5 of _0x421656)_0x542059['markBlockFormat'](_0x578ac5,{'commandName':_0x3c9f7f,'commandParams':[{'forceValue':!_0x5d5907['value']}],'formatGroupId':'blockName'},ue(_0x578ac5));});};}function _0x49ed59(_0x5cbe86){return()=>{const _0x3c7a59=function(_0x506ee2){let _0x3e0257=Array['from'](_0x506ee2);const _0x4f2910=_0x3e0257['findIndex'](_0x2a9ec3=>'listItem'!=_0x2a9ec3['name']);return _0x4f2910>-0x1&&(_0x3e0257=_0x3e0257['slice'](0x0,_0x4f2910)),_0x3e0257;}(_0xc0ea6a['model']['document']['selection']['getSelectedBlocks']()),_0x49751d=_0xc0ea6a['model']['createRange'](_0xc0ea6a['model']['createPositionAt'](_0x3c7a59[0x0],'before'),_0xc0ea6a['model']['createPositionAt'](_0x3c7a59[_0x3c7a59['length']-0x1],'end'));_0xc0ea6a['model']['change'](()=>{_0x542059['markBlockFormat'](_0x49751d,{'commandName':_0x5cbe86,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3aacf4){const _0x196d58=new Set();for(const _0x5f0864 of _0x3aacf4){let _0x1f17c4=_0x5f0864['nextSibling'];for(;_0x1f17c4&&_0x1f17c4['getAttribute']('listIndent')>_0x5f0864['getAttribute']('listIndent');)_0x196d58['add'](_0x1f17c4),_0x1f17c4=_0x1f17c4['nextSibling'];}return Array['from'](_0x196d58);}(_0x3c7a59));});};}_0x542059['enableCommand']('numberedList',_0x19c954('numberedList')),_0x542059['enableCommand']('bulletedList',_0x19c954('bulletedList')),_0x6a8c71&&_0x542059['enableCommand']('todoList',_0x19c954('todoList')),_0x542059['enableCommand']('indentList',_0x49ed59('indentList')),_0x542059['enableCommand']('outdentList',_0x49ed59('outdentList')),_0x6a8c71&&_0x542059['enableCommand']('checkTodoList',()=>{const _0x5476b1=_0xc0ea6a['commands']['get']('checkTodoList'),_0x513d53=Array['from'](_0x5476b1['_selectedElements']);_0x513d53['filter'](_0x15c059=>_0x15c059['getAttribute']('todoListChecked')!=_0x5476b1['value']),_0xc0ea6a['model']['change'](()=>{for(const _0x1097f0 of _0x513d53)_0x542059['markBlockFormat'](_0x1097f0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5476b1['value']}]});});}),_0x542059['descriptionFactory']['registerElementLabel']('listItem',_0x5b33b4=>o(_0xf4601d,'ELEMENT_LIST_ITEM',_0x5b33b4)),_0x542059['descriptionFactory']['registerDescriptionCallback'](_0x34d17e=>{if('formatBlock'!=_0x34d17e['type']&&'formatInline'!=_0x34d17e['type'])return;const {data:_0x5a02ee}=_0x34d17e;if(_0x5a02ee){if('numberedList'==_0x5a02ee['commandName']||'bulletedList'==_0x5a02ee['commandName']||'todoList'==_0x5a02ee['commandName'])switch(_0x5a02ee['commandName']['replace']('List','')){case'bulleted':return _0x32256d(o(_0xf4601d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x32256d(o(_0xf4601d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x32256d(o(_0xf4601d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5a02ee['commandName'])return{'type':'format','content':o(_0xf4601d,'*Indent:*\x20%0',o(_0xf4601d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5a02ee['commandName'])return{'type':'format','content':o(_0xf4601d,'*Outdent:*\x20%0',o(_0xf4601d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5a02ee['commandName'])return _0x5a02ee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf4601d,'*Check\x20item*')}:{'type':'format','content':o(_0xf4601d,'*Uncheck\x20item*')};}function _0x32256d(_0xa4fa3a){return{'type':'format','content':o(_0xf4601d,'*Change\x20to:*\x20%0',_0xa4fa3a)};}});}}function fe(_0x378d83){const _0x154495=_0x378d83['getAttribute']('listIndent');if(0x0==_0x154495)return _0x378d83;let _0x4e82ef=_0x378d83;for(;_0x378d83['previousSibling']&&_0x378d83['previousSibling']['is']('element','listItem');){const _0x5b6f40=_0x378d83['previousSibling']['getAttribute']('listIndent');if(_0x5b6f40==_0x154495)_0x4e82ef=_0x378d83['previousSibling'];else{if(_0x5b6f40<_0x154495)break;}_0x378d83=_0x378d83['previousSibling'];}return _0x4e82ef;}function ue(_0x2949b1){const _0x398314=[];if(_0x2949b1['is']('element','listItem')&&_0x2949b1['getAttribute']('listIndent')>0x0){let _0x1a84f1=_0x2949b1['nextSibling'];for(;_0x1a84f1&&'listItem'==_0x1a84f1['name']&&_0x1a84f1['getAttribute']('listIndent')==_0x2949b1['getAttribute']('listIndent');)_0x398314['push'](_0x1a84f1),_0x1a84f1=_0x1a84f1['nextSibling'];}return _0x398314;}class W extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1c6da2=this['editor']['config']['get']('list.properties'),_0x504b88=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c6da2['styles']&&_0x504b88['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1c6da2['reversed']&&_0x504b88['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1c6da2['startIndex']&&_0x504b88['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x504b88['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x402adf,_0xfd8ba0={}){const _0x3ae3ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x247b29=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3ae3ba['markMultiRangeBlockFormat'](_0x247b29,{'commandName':'listStyle','commandParams':[{'type':_0xfd8ba0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x261f59,_0x2f0906={}){const _0x40fd29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x376bde=this['_getSuggestionBlocks'](_0x151575=>_0x151575['is']('element','listItem')&&'numbered'===_0x151575['getAttribute']('listType'));if(_0x376bde['length']<0x1)return;const _0x3aba83=_0x376bde['map'](_0x59f48b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59f48b,'before'),this['editor']['model']['createPositionAt'](_0x59f48b,0x0)));this['editor']['model']['change'](()=>{_0x40fd29['markMultiRangeBlockFormat'](_0x3aba83,{'commandName':'listReversed','commandParams':[{'reversed':_0x2f0906['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x35fda2,_0x45e31e={}){const _0x3652a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17a1fa=this['_getSuggestionBlocks'](_0x2954f4=>_0x2954f4['is']('element','listItem')&&'numbered'===_0x2954f4['getAttribute']('listType'));if(_0x17a1fa['length']<0x1)return;const _0x4f0e4c=_0x17a1fa['map'](_0x5abe85=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5abe85,'before'),this['editor']['model']['createPositionAt'](_0x5abe85,0x0)));this['editor']['model']['change'](()=>{_0x3652a5['markMultiRangeBlockFormat'](_0x4f0e4c,{'commandName':'listStart','commandParams':[{'startIndex':_0x45e31e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xbbc23f){if('formatBlock'!=_0xbbc23f['type']&&'formatInline'!=_0xbbc23f['type'])return;const _0x25c0b1=this['editor']['locale'],{data:_0x23bcc0}=_0xbbc23f;if(!_0x23bcc0)return;let _0x488053,_0x2e7b2e;switch(_0x23bcc0['commandName']){case'listStyle':_0x488053='*Change\x20to:*\x20%0',_0x2e7b2e={'type':'format','content':o(_0x25c0b1,_0x488053,o(_0x25c0b1,this['_getTranslationKeyForListStyle'](_0x23bcc0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x488053=_0x23bcc0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e7b2e={'type':'format','content':o(_0x25c0b1,_0x488053)};break;case'listStart':_0x488053='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e7b2e={'type':'format','content':o(_0x25c0b1,_0x488053,_0x23bcc0['commandParams'][0x0]['startIndex'])};}return _0x2e7b2e;}['_getSuggestionBlocksForListStyle'](){const _0x1da697=this['editor']['plugins']['get']('LegacyListUtils');let _0x31a409=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x31a409[0x0]?.['is']('element','listItem')&&_0x31a409['unshift'](..._0x1da697['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x31a409[_0x31a409['length']-0x1]?.['is']('element','listItem')&&_0x31a409['push'](..._0x1da697['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x31a409=[...new Set(_0x31a409)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x31a409=_0x31a409['filter'](_0x1fb1f4=>_0x1fb1f4['is']('element','listItem'))),_0x31a409;}['_getSuggestionBlocks'](_0x219b16){const _0x1c4750=this['editor']['plugins']['get']('LegacyListUtils');let _0x5f2c49=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x219b16)['map'](_0x77a183=>{const _0x4f06b0=this['editor']['model']['createPositionAt'](_0x77a183,0x0);return[..._0x1c4750['getSiblingNodes'](_0x4f06b0,'backward'),..._0x1c4750['getSiblingNodes'](_0x4f06b0,'forward')];})['flat']();return _0x5f2c49=[...new Set(_0x5f2c49)],_0x5f2c49;}['_getTranslationKeyForListStyle'](_0x5773de){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5773de)||'default')['toUpperCase']()+'_LIST_'+_0x5773de['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x58a0bc{['afterInit'](){const _0x401716=this['editor'];if(!_0x401716['plugins']['has']('MediaEmbedEditing'))return;const _0xaf250a=_0x401716['plugins']['get']('TrackChangesEditing'),_0xcb7402=_0x401716['locale'];_0xaf250a['enableCommand']('mediaEmbed'),_0xaf250a['descriptionFactory']['registerElementLabel']('media',_0x2deb6b=>o(_0xcb7402,'ELEMENT_MEDIA',_0x2deb6b)),_0x401716['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x14bf00,{writer:_0x43725c,options:_0x32fba9})=>{if(_0x32fba9['showSuggestionHighlights'])return _0x43725c['createEmptyElement']('div');},'converterPriority':'high'}),_0x401716['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3bd1d7,_0x308a70,_0xe54e39)=>{_0xe54e39['options']['showSuggestionHighlights']&&_0x3bd1d7['stop']();},{'priority':'high'});}}class mt extends _0x58a0bc{['afterInit'](){const _0x27bb8a=this['editor'];_0x27bb8a['plugins']['has']('MentionEditing')&&_0x27bb8a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x58a0bc{['afterInit'](){const _0x591d4a=this['editor'];if(!_0x591d4a['plugins']['has']('MergeFieldsEditing'))return;_0x591d4a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x591d4a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x26ef07=_0x591d4a['plugins']['get']('TrackChangesEditing'),_0x133461=_0x591d4a['locale'];_0x26ef07['descriptionFactory']['registerElementLabel']('mergeField',_0x24b161=>o(_0x133461,'ELEMENT_MERGE_FIELD',_0x24b161)),_0x26ef07['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x29301a=>o(_0x133461,'ELEMENT_MERGE_FIELD',_0x29301a)),_0x26ef07['descriptionFactory']['registerDescriptionCallback'](_0x39ea15=>{if('insertion'!=_0x39ea15['type']&&'deletion'!=_0x39ea15['type'])return;const _0x31040b=_0x39ea15['getContainedElement']();if(null==_0x31040b)return;if(!_0x31040b['is']('element','mergeField')&&!_0x31040b['is']('element','mergeFieldBlock'))return;const _0x35c289=_0x591d4a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x31040b['getAttribute']('id'));return'insertion'==_0x39ea15['type']?{'type':'insertion','content':o(_0x133461,'*Insert:*\x20%0','\x22'+_0x35c289+'\x22\x20'+o(_0x133461,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x133461,'*Remove:*\x20%0','\x22'+_0x35c289+'\x22\x20'+o(_0x133461,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x58a0bc{['afterInit'](){const _0x336ffa=this['editor'],_0x187544=_0x336ffa['plugins']['get']('TrackChangesEditing');_0x336ffa['plugins']['has']('MultiLevelList')&&(_0x187544['enableDefaultAttributesIntegration']('multiLevelList'),_0x187544['registerBlockAttribute']('listMarkerStyle'),_0x187544['descriptionFactory']['registerDescriptionCallback'](_0x232d2f=>this['handleDescriptions'](_0x232d2f)));}['handleDescriptions'](_0x585620){const _0x15642c=this['editor']['locale'],{data:_0x3fa22d}=_0x585620,_0x2dd72f={'type':'format','content':''};if(_0x3fa22d&&'listMarkerStyle'==_0x3fa22d['key']){if(!_0x3fa22d['oldValue'])return{'type':'format','content':o(_0x15642c,'*Set\x20format:*\x20%0',o(_0x15642c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fa22d['newValue']+')'};if(!_0x3fa22d['newValue']){let _0x1ffb89=_0x585620['head'];for(;_0x1ffb89;){if(_0x1ffb89['data']&&'listType'==_0x1ffb89['data']['key']&&_0x1ffb89['data']['newValue'])return _0x2dd72f;_0x1ffb89=_0x1ffb89['next'];}return{'type':'format','content':o(_0x15642c,'*Remove\x20format:*\x20%0',o(_0x15642c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fa22d['oldValue']+')'};}}}}class kt extends _0x58a0bc{['afterInit'](){const _0x27e9b1=this['editor'];if(!_0x27e9b1['plugins']['has']('PageBreakEditing'))return;_0x27e9b1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d1b81=_0x27e9b1['plugins']['get']('TrackChangesEditing'),_0xe40d53=_0x27e9b1['locale'];_0x3d1b81['descriptionFactory']['registerElementLabel']('pageBreak',_0x389a66=>o(_0xe40d53,'ELEMENT_PAGE_BREAK',_0x389a66));}}class bt extends _0x58a0bc{['afterInit'](){const _0x4f7be5=this['editor'];if(!_0x4f7be5['plugins']['has']('Paragraph'))return;const _0x11dd5f=_0x4f7be5['locale'],_0x78f442=_0x4f7be5['plugins']['get']('TrackChangesEditing');_0x78f442['descriptionFactory']['registerElementLabel']('paragraph',_0xfadafe=>o(_0x11dd5f,'ELEMENT_PARAGRAPH',_0xfadafe)),_0x78f442['enableDefaultAttributesIntegration']('paragraph'),_0x78f442['enableCommand']('insertParagraph'),_0x4f7be5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4f7be5),{'priority':'highest'}),_0x4f7be5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x32837e,_0x27fe37,_0x4c4d7a)=>{_0x4c4d7a['options']['showSuggestionHighlights']&&nr(_0x4f7be5,{'showActiveMarker':!0x1})(_0x32837e,_0x27fe37,_0x4c4d7a);},{'priority':'highest'});const _0x3874d3=_0x78f442['descriptionFactory'];_0x3874d3['registerDescriptionCallback'](_0x5ef6b2=>{if('insertion'!==_0x5ef6b2['type'])return;const {start:_0x495531,end:_0x4e4207}=_0x5ef6b2['getFirstRange']();if(!_0x495531['isTouching'](_0x4e4207)||!_0x495531['nodeAfter'])return;const _0x38a40e=_0x4f7be5['model']['schema'],_0x1a08cf=_0x495531['nodeAfter'];return _0x38a40e['isBlock'](_0x1a08cf)&&!_0x38a40e['isLimit'](_0x1a08cf)&&_0x38a40e['checkChild'](_0x1a08cf,'$text')?{'type':'insertion','content':o(_0x11dd5f,'*Insert:*\x20%0',_0x3874d3['getItemLabel'](_0x1a08cf,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a218c=this['editor'],_0xd4905d=_0x3a218c['locale'];_0x3a218c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x338a0d=>{if('formatBlock'!=_0x338a0d['type'])return;const {data:_0x4f0597}=_0x338a0d;return _0x4f0597&&'paragraph'==_0x4f0597['commandName']?{'type':'format','content':o(_0xd4905d,'*Change\x20to:*\x20%0',o(_0xd4905d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x220457,{showActiveMarker:_0x27d0df=!0x0}={}){return(_0x152b7d,_0x2a72bc,_0x5e447a)=>{const _0x3dd61f=_0x220457['plugins']['get']('TrackChangesEditing'),_0x297762=_0x2a72bc['markerRange']['start'],_0x348922=_0x2a72bc['markerRange']['end'],_0x503f2d=_0x220457['model']['schema'];if(!_0x297762['isTouching'](_0x348922)||!_0x297762['nodeAfter'])return;const _0x1e00c5=_0x297762['nodeAfter'];if(_0x503f2d['isBlock'](_0x1e00c5)&&!_0x503f2d['isLimit'](_0x1e00c5)&&_0x503f2d['checkChild'](_0x1e00c5,'$text')){if(!_0x5e447a['consumable']['consume'](_0x2a72bc['markerRange'],_0x152b7d['name']))return;const {authorId:_0x410898}=_0x3dd61f['_splitMarkerName'](_0x2a72bc['markerName']),_0x38eebe=_0x5e447a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x410898}),_0x3922b6=_0x5e447a['mapper']['toViewPosition'](_0x348922);_0x27d0df&&_0x3dd61f['activeMarkers']['includes'](_0x2a72bc['markerName'])&&_0x5e447a['writer']['addClass']('ck-suggestion-marker--active',_0x38eebe),_0x5e447a['writer']['insert'](_0x3922b6,_0x38eebe),_0x5e447a['mapper']['bindElementToMarker'](_0x38eebe,_0x2a72bc['markerName']);}};}class wt extends _0x58a0bc{['afterInit'](){const _0x5679fd=this['editor'];if(!_0x5679fd['plugins']['has']('RemoveFormatEditing'))return;_0x5679fd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x102cb6=this['editor'];_0x102cb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37f9e7=>{if('formatBlock'!=_0x37f9e7['type']&&'formatInline'!=_0x37f9e7['type'])return;const {data:_0x54c107}=_0x37f9e7;return _0x54c107&&'removeFormat'==_0x54c107['commandName']?{'type':'format','content':o(_0x102cb6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x58a0bc{['afterInit'](){const _0x4dfa63=this['editor'];if(!_0x4dfa63['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1b53f2=_0x4dfa63['plugins']['get']('TrackChangesEditing');_0x1b53f2['enableCommand']('goToPreviousRestrictedEditingException'),_0x1b53f2['enableCommand']('goToNextRestrictedEditingException');const _0x535ef6=_0x4dfa63['plugins']['get']('RestrictedEditingModeEditing');_0x535ef6['enableCommand']('trackChanges'),_0x535ef6['enableCommand']('acceptSuggestion'),_0x535ef6['enableCommand']('discardSuggestion'),_0x535ef6['enableCommand']('acceptAllSuggestions'),_0x535ef6['enableCommand']('discardAllSuggestions'),_0x535ef6['enableCommand']('acceptSelectedSuggestions'),_0x535ef6['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x58a0bc{static get['requires'](){return[_0x210491];}['init'](){const _0x104ba5=this['editor'],_0x1f9260=_0x104ba5['plugins']['get']('TrackChangesEditing');_0x1f9260['enableCommand']('shiftEnter'),_0x104ba5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x104ba5),{'priority':'high'}),_0x104ba5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x104ba5),{'priority':'high'}),_0x104ba5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x326650,_0x118f2c,_0xe29e32)=>{_0xe29e32['options']['showSuggestionHighlights']&&ge(_0x104ba5,{'showActiveMarker':!0x1})(_0x326650,_0x118f2c,_0xe29e32);}),_0x1f9260['descriptionFactory']['registerElementLabel']('softBreak',_0x4e40d9=>o(_0x104ba5['locale'],'ELEMENT_LINE_BREAK',_0x4e40d9));}}function ge(_0xefd499,{showActiveMarker:_0x3e76ce=!0x0}={}){return(_0x555419,_0x349435,_0x57afc8)=>{const _0x3e42bd=_0xefd499['plugins']['get']('TrackChangesEditing');if(!_0x57afc8['consumable']['test'](_0x349435['markerRange'],_0x555419['name']))return;const _0x2857c3=_0xefd499['model'];for(const _0x95df84 of _0x349435['markerRange']['getItems']()){if(!_0x95df84['is']('element','softBreak'))continue;const _0x2d1bf2='deletion'==_0x349435['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x49496b}=_0x3e42bd['_splitMarkerName'](_0x349435['markerName']),_0x343605=_0x57afc8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d1bf2,'data-author-id':_0x49496b}),_0x4bf886=_0x57afc8['mapper']['toViewPosition'](_0x2857c3['createPositionBefore'](_0x95df84));_0x3e76ce&&_0x3e42bd['activeMarkers']['includes'](_0x349435['markerName'])&&_0x57afc8['writer']['addClass']('ck-suggestion-marker--active',_0x343605),_0x57afc8['writer']['insert'](_0x4bf886,_0x343605),_0x57afc8['mapper']['bindElementToMarker'](_0x343605,_0x349435['markerName']);}};}class St extends _0x58a0bc{['afterInit'](){const _0x1e633c=this['editor'],_0x4d3569=_0x1e633c['model'],_0x5c610b=_0x1e633c['locale'];if(!_0x1e633c['plugins']['has']('StandardEditingModeEditing'))return;const _0x16b5c4=_0x1e633c['plugins']['get']('TrackChangesEditing'),_0xa126c3='restrictedEditingException',_0x406f93=_0x1e633c['commands']['get'](_0xa126c3);_0x16b5c4['enableCommand'](_0xa126c3,(_0x167d48,_0x37df7b={})=>{const _0xed20b5=_0x4d3569['document']['selection'];if(_0xed20b5['isCollapsed'])return void _0x167d48(_0x37df7b);const _0x1eedb2=void 0x0!==_0x37df7b['forceValue']?_0x37df7b['forceValue']:!_0x406f93['value'];_0x4d3569['change'](()=>{const _0x290d63=Array['from'](_0xed20b5['getRanges']());for(const _0x4912dc of _0x290d63){const _0x55c293=_0x1eedb2?[_0x4912dc]:io(_0xa126c3,_0x4912dc,_0x4d3569);for(const _0x282262 of _0x55c293)_0x16b5c4['markInlineFormat'](_0x282262,{'commandName':_0xa126c3,'commandParams':[{'forceValue':_0x1eedb2}]});}});}),_0x16b5c4['descriptionFactory']['registerDescriptionCallback'](_0x51affe=>{if('formatBlock'!=_0x51affe['type']&&'formatInline'!=_0x51affe['type'])return;const {data:_0x41da8f}=_0x51affe;return _0x41da8f&&_0x41da8f['commandName']==_0xa126c3?_0x41da8f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c610b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5c610b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x58a0bc{['afterInit'](){const _0x3d8908=this['editor'];if(!_0x3d8908['plugins']['has']('Style')||!_0x3d8908['plugins']['has']('DataSchema'))return;const _0x53c4e3=_0x3d8908['plugins']['get']('TrackChangesEditing'),_0x597606=_0x3d8908['locale'],_0x46731d=_0x3d8908['config']['get']('style')||{},_0x356bd6=_0x3d8908['plugins']['get']('GeneralHtmlSupport'),_0xa3bd6b=_0x3d8908['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3d8908['plugins']['get']('DataSchema'),_0x46731d['definitions']);_0x53c4e3['enableDefaultAttributesIntegration']('style');const _0x119c5b=new Set();for(const _0x4f1c50 of _0xa3bd6b['block']){const _0x46bb72=_0x356bd6['getGhsAttributeNameForElement'](_0x4f1c50['element']);_0x119c5b['add'](_0x46bb72);}const _0x8e9147=new Set();for(const _0x87b8ee of _0xa3bd6b['inline']){const _0x306e93=_0x356bd6['getGhsAttributeNameForElement'](_0x87b8ee['element']);_0x8e9147['add'](_0x306e93);for(const _0x3dffa3 of _0x87b8ee['ghsAttributes'])_0x8e9147['add'](_0x3dffa3);}for(const _0x2c66d9 of _0x119c5b)_0x53c4e3['registerBlockAttribute'](_0x2c66d9),_0x53c4e3['descriptionFactory']['registerAttributeLabel'](_0x2c66d9,o(_0x597606,'FORMAT_STYLE'));for(const _0x2213c8 of _0x8e9147)_0x53c4e3['registerInlineAttribute'](_0x2213c8),_0x53c4e3['descriptionFactory']['registerAttributeLabel'](_0x2213c8,o(_0x597606,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dc0fc=this['editor'],_0x2cc712=_0x1dc0fc['locale'];_0x1dc0fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178141=>{if('formatBlock'!=_0x178141['type']&&'formatInline'!=_0x178141['type'])return;const {data:_0x28d05d}=_0x178141;return _0x28d05d&&'style'===_0x28d05d['commandName']?_0x28d05d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2cc712,'*Set\x20format:*\x20%0',_0x28d05d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2cc712,'*Remove\x20format:*\x20%0',_0x28d05d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x58a0bc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ed687){super(_0x1ed687),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x44ee26=this['editor'],_0x592ded=_0x44ee26['model']['document']['selection'];if(!_0x44ee26['plugins']['has']('TableEditing'))return;const _0x4e66ca=_0x44ee26['locale'],_0x15439c=_0x44ee26['plugins']['get']('TrackChangesEditing'),_0x45dec2=_0x44ee26['plugins']['get']('TableUtils');_0x15439c['descriptionFactory']['registerElementLabel']('table',_0x1f199d=>o(_0x4e66ca,'ELEMENT_TABLE',_0x1f199d)),this['_setupColumnsRowsFixing'](),_0x15439c['enableCommand']('insertTable'),_0x15439c['enableCommand']('selectTableRow'),_0x15439c['enableCommand']('selectTableColumn');for(const _0x261a2b of['insertTableRowAbove','insertTableRowBelow']){const _0x46b58f=_0x44ee26['commands']['get'](_0x261a2b);_0x15439c['enableCommand'](_0x261a2b,_0x59929e=>{_0x44ee26['model']['change'](_0x113ee4=>{_0x59929e();const _0x33f987='above'===_0x46b58f['order'],_0x50459d=_0x45dec2['getSelectionAffectedTableCells'](_0x592ded),_0x52f093=_0x45dec2['getRowIndexes'](_0x50459d),_0x4c9d63=_0x33f987?_0x52f093['first']-0x1:_0x52f093['last']+0x1,_0x5f51a2=_0x50459d[0x0]['findAncestor']('table'),_0x3d1eb3=_0x45dec2['createTableWalker'](_0x5f51a2,{'startRow':_0x4c9d63,'endRow':_0x4c9d63}),_0x4f0a0f=Array['from'](_0x3d1eb3)['map'](_0x1e2709=>_0x113ee4['createRangeOn'](_0x1e2709['cell']));_0x15439c['markMultiRangeInsertion'](_0x4f0a0f,'tableRow');});});}for(const _0x455d76 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2a0aa8=_0x44ee26['commands']['get'](_0x455d76);_0x15439c['enableCommand'](_0x455d76,_0x3f2e5c=>{_0x44ee26['model']['change'](_0x4bf33b=>{_0x3f2e5c();const _0x502c06='left'===_0x2a0aa8['order'],_0x34db84=_0x45dec2['getSelectionAffectedTableCells'](_0x592ded),_0x10971b=_0x45dec2['getColumnIndexes'](_0x34db84),_0x72f355=_0x502c06?_0x10971b['first']-0x1:_0x10971b['last']+0x1,_0x2ba8cc=_0x34db84[0x0]['findAncestor']('table'),_0x137de1=_0x45dec2['createTableWalker'](_0x2ba8cc,{'startRow':0x0,'column':_0x72f355,'includeAllSlots':!0x1}),_0x4bb676=Array['from'](_0x137de1)['map'](_0x46ff0b=>_0x4bf33b['createRangeOn'](_0x46ff0b['cell']));_0x15439c['markMultiRangeInsertion'](_0x4bb676,'tableColumn');});});}for(const _0x39d104 of['removeTableRow','removeTableColumn']){const _0x171449=_0x39d104['substr'](0xb),_0x3af4f7=_0x171449['toLowerCase'](),_0x239697=_0x3af4f7['substr'](0x0,0x3)+'span',_0x2daf89='table'+_0x171449,_0x598aa0='min'+_0x171449,_0x3e14cd='max'+_0x171449;_0x15439c['enableCommand'](_0x39d104,()=>{_0x44ee26['model']['change'](_0x13b246=>{const _0x27e50a=_0x45dec2['getSelectionAffectedTableCells'](_0x592ded),_0x124360=_0x27e50a[0x0]['findAncestor']('table');let _0x335c22;if('removeTableRow'==_0x39d104){const _0x5f3e6f=_0x45dec2['getRowIndexes'](_0x27e50a);_0x335c22={'startRow':_0x5f3e6f['first'],'endRow':_0x5f3e6f['last'],'includeAllSlots':!0x0};}else{const _0x4ff554=_0x45dec2['getColumnIndexes'](_0x27e50a);_0x335c22={'startColumn':_0x4ff554['first'],'endColumn':_0x4ff554['last'],'includeAllSlots':!0x0};}const _0x1945e2=_0x45dec2['createTableWalker'](_0x124360,_0x335c22),_0x1fd7fa=Array['from'](_0x1945e2)['map'](({cell:_0x190831})=>_0x190831),_0xcd0fd1=be(_0x1fd7fa['filter'](_0x27b200=>_0x27b200['hasAttribute'](_0x239697))),_0x24bab3=be(_0x1fd7fa['filter'](_0xd18afd=>!_0xd18afd['hasAttribute'](_0x239697)))['map'](_0x3a0a2c=>_0x13b246['createRangeOn'](_0x3a0a2c)),_0xedc187=_0x15439c['markMultiRangeDeletion'](_0x24bab3,_0x2daf89);if(_0xedc187&&('tableRow'==_0xedc187['subType']||'tableColumn'==_0xedc187['subType'])){const _0x2c7c60=this['_getSuggestionCoords'](_0xedc187);for(const _0x23959c of _0xcd0fd1){const _0x402548=_0x13b246['createRangeOn'](_0x23959c),_0x4e2349=_0x45dec2['getCellLocation'](_0x23959c),_0x12839a=_0x23959c['getAttribute'](_0x239697)-0x1,_0x153939=_0x2c7c60[_0x598aa0],_0x457fd2=_0x2c7c60[_0x3e14cd];_0x153939<=_0x4e2349[_0x3af4f7]&&_0x4e2349[_0x3af4f7]+_0x12839a<=_0x457fd2&&_0xedc187['addRange'](_0x402548);}}});});}function _0x3c9945(_0x2919ec){const _0x381f14=Array['from'](_0x592ded['getRanges']())['map'](_0x57f544=>_0x1ac7bd['fromRange'](_0x57f544));_0x44ee26['model']['change'](_0x1b9cb4=>{const _0x4ebe0e=_0x1b9cb4['batch'];_0x2919ec=_0x2919ec['filter'](_0x538577=>'$graveyard'!=_0x538577['root']['rootName']),_0x1b9cb4['setSelection'](_0x2919ec),_0x44ee26['commands']['get']('removeTableRow')['refresh'](),_0x44ee26['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x44ee26['model']['enqueueChange'](()=>{_0x44ee26['model']['enqueueChange'](_0x4ebe0e,_0xa006df=>{const _0x5411a8=_0x381f14['filter'](_0x3a8f2c=>'$graveyard'!=_0x3a8f2c['root']['rootName']);_0x5411a8['length']>0x0&&_0xa006df['setSelection'](_0x5411a8);for(const _0x5d5851 of _0x381f14)_0x5d5851['detach']();});});});}function _0x1c0b7c(_0x3a1a47){_0x44ee26['model']['change'](_0xbc2cb=>{const _0x22e1ab=Array['from'](_0x592ded['getRanges']())['map'](_0xcf48fe=>_0x1ac7bd['fromRange'](_0xcf48fe)),_0x4fdc89=[];for(const _0x35c3c0 of _0x3a1a47)for(const _0x29ce41 of _0x35c3c0['getItems']({'shallow':!0x0}))_0x4fdc89['push'](_0x29ce41);for(const _0x5ee79d of _0x4fdc89)'$graveyard'!=_0x5ee79d['root']['rootName']&&(_0xbc2cb['setSelection'](_0xbc2cb['createPositionAt'](_0x5ee79d,0x0)),_0x44ee26['commands']['get']('removeTableColumn')['refresh'](),_0x44ee26['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x486aa7=_0x22e1ab['filter'](_0x446abf=>'$graveyard'!=_0x446abf['root']['rootName']);_0x486aa7['length']>0x0&&_0xbc2cb['setSelection'](_0x486aa7);for(const _0x50d32b of _0x22e1ab)_0x50d32b['detach']();});}function _0x50cbcf(_0x4881da,_0x16bf97){return _0x16bf97['every'](_0x2d1555=>_0x4881da['some'](_0x10e9a5=>_0x10e9a5['end']['isEqual'](_0x2d1555['start'])||_0x2d1555['end']['isEqual'](_0x10e9a5['start'])));}function _0x41d1ea(_0x286dab,_0x45fc15){return!_0x286dab['some'](_0x2de629=>_0x45fc15['some'](_0x337774=>_0x2de629['isIntersecting'](_0x337774)))&&_0x286dab['some'](_0x2fc23d=>_0x45fc15['some'](_0x2dc993=>_0x2fc23d['end']['isTouching'](_0x2dc993['start'])));}_0x44ee26['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ad933,_0x53e061,_0x54c6af)=>{if(!_0x54c6af['options']['showSuggestionHighlights'])return;const _0x169a44=_0x53e061['item'];if(!_0x169a44)return;const _0x1b10f9=_0x54c6af['mapper']['toViewElement'](_0x169a44);function _0x4588c7(_0x487231){return Array['isArray'](_0x487231)?_0x487231:[_0x487231];}_0x1b10f9&&'tableCell'===_0x169a44['name']&&_0x325294(_0x1b10f9,_0x54c6af['writer'],(_0x3242a1,_0x22fc59,_0x5c9de8)=>_0x5c9de8['addClass'](_0x4588c7(_0x22fc59['classes']),_0x3242a1),(_0x509e9d,_0x519eb4,_0x3b5eb8)=>_0x3b5eb8['removeClass'](_0x4588c7(_0x519eb4['classes']),_0x509e9d));},{'priority':'highest'}),_0x15439c['descriptionFactory']['registerDescriptionCallback'](_0x532caf=>{if('insertion'!=_0x532caf['type']&&'deletion'!=_0x532caf['type'])return;const _0x2c9c54=_0x532caf['getContainedElement']();if(null!=_0x2c9c54&&_0x2c9c54['is']('element','table')){if('insertion'==_0x532caf['type']){const _0x40d909=_0x532caf['getItems']()['filter'](_0x1d329f=>_0x1d329f['is']('$textProxy'))['map'](_0x26ed78=>_0x26ed78['data']);if(_0x40d909['length'])return{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40d909['join']('\x20')+'\x22'))};}if('deletion'==_0x532caf['type']){const _0x44a191=_0x532caf['getItems']()['filter'](_0x27d004=>_0x27d004['is']('$textProxy'))['map'](_0x3985fc=>_0x3985fc['data']);if(_0x44a191['length'])return{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x44a191['join']('\x20')+'\x22'))};}}}),_0x15439c['descriptionFactory']['registerDescriptionCallback'](_0x48779d=>{if('tableRow'==_0x48779d['subType']){const _0x296216=_0x48779d['getItems']()['filter'](_0x271c18=>_0x271c18['is']('$textProxy'))['map'](_0x57a56c=>_0x57a56c['data']),_0x5be800=this['_getSuggestionCoords'](_0x48779d),_0x44fa92=_0x5be800['maxRow']-_0x5be800['minRow']+0x1;if('insertion'==_0x48779d['type'])return _0x296216['length']?{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44fa92,'\x22'+_0x296216['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW',_0x44fa92))};if('deletion'==_0x48779d['type'])return _0x296216['length']?{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44fa92,'\x22'+_0x296216['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW',_0x44fa92))};}if('tableColumn'==_0x48779d['subType']){const _0x4ea6da=_0x48779d['getItems']()['filter'](_0x20cc08=>_0x20cc08['is']('$textProxy'))['map'](_0x5a832e=>_0x5a832e['data']),_0x4a9a3f=this['_getSuggestionCoords'](_0x48779d),_0x1e4381=_0x4a9a3f['maxColumn']-_0x4a9a3f['minColumn']+0x1;if('insertion'==_0x48779d['type'])return _0x4ea6da['length']?{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e4381,'\x22'+_0x4ea6da['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN',_0x1e4381))};if('deletion'==_0x48779d['type'])return _0x4ea6da['length']?{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e4381,'\x22'+_0x4ea6da['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN',_0x1e4381))};}}),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3c9945),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3c9945),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1c0b7c),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1c0b7c),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x50cbcf),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x50cbcf),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x41d1ea),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x41d1ea);}['_acceptFormatSuggestionCallbackFactory'](){const _0x24f8ab=this['editor'],_0x2e333a=_0x24f8ab['model']['document']['selection'];return(_0x1b7bb1,_0x54d87a)=>{_0x24f8ab['model']['change'](_0x5d1ee3=>{const {commandName:_0x5f0477,commandParams:_0x21b91f}=_0x54d87a;let _0x631518=_0x1b7bb1[0x0]['end']['nodeBefore'];_0x21b91f&&_0x21b91f[0x0]&&!0x1===_0x21b91f[0x0]['forceValue']&&(_0x631518=_0x1b7bb1[0x0]['start']['nodeAfter']);const _0x239bf4=_0x5d1ee3['createRangeIn'](_0x631518);if('$graveyard'==_0x239bf4['root']['rootName'])return;const _0x4fb99d=Array['from'](_0x2e333a['getRanges']())['map'](_0x4cbcc3=>_0x1ac7bd['fromRange'](_0x4cbcc3));_0x5d1ee3['setSelection'](_0x239bf4),_0x24f8ab['commands']['get'](_0x5f0477)['refresh'](),_0x21b91f['push']({'forceDefaultExecution':!0x0}),_0x24f8ab['execute'](_0x5f0477,..._0x21b91f);const _0x38d8c6=_0x4fb99d['filter'](_0x1e569c=>'$graveyard'!=_0x1e569c['root']['rootName']);_0x38d8c6['length']>0x0&&_0x5d1ee3['setSelection'](_0x38d8c6);for(const _0x1ab956 of _0x4fb99d)_0x1ab956['detach']();});};}['_getCoordsForCells'](_0x38e806){const _0x50d4dd=this['editor']['plugins']['get']('TableUtils');let _0x4f18b5=Number['MAX_SAFE_INTEGER'],_0x11cbda=Number['MIN_SAFE_INTEGER'],_0x147402=Number['MAX_SAFE_INTEGER'],_0x10cdd8=Number['MIN_SAFE_INTEGER'];for(const _0x55e04d of _0x38e806){if('$graveyard'==_0x55e04d['root']['rootName'])continue;const {row:_0x445b32,column:_0x4e7027}=_0x50d4dd['getCellLocation'](_0x55e04d),_0x2bb864=_0x55e04d['hasAttribute']('rowspan')?_0x55e04d['getAttribute']('rowspan')-0x1:0x0,_0x1423b4=_0x55e04d['hasAttribute']('colspan')?_0x55e04d['getAttribute']('colspan')-0x1:0x0;_0x4f18b5=_0x445b32<_0x4f18b5?_0x445b32:_0x4f18b5,_0x11cbda=_0x445b32+_0x2bb864>_0x11cbda?_0x445b32+_0x2bb864:_0x11cbda,_0x147402=_0x4e7027<_0x147402?_0x4e7027:_0x147402,_0x10cdd8=_0x4e7027+_0x1423b4>_0x10cdd8?_0x4e7027+_0x1423b4:_0x10cdd8;}return{'minRow':_0x4f18b5,'maxRow':_0x11cbda,'minColumn':_0x147402,'maxColumn':_0x10cdd8};}['_setupColumnsRowsFixing'](){const _0xffbf2e=this['editor'],_0x31adfe=_0xffbf2e['plugins']['get']('TrackChangesEditing'),_0xdb8e01=_0xffbf2e['plugins']['get']('TableUtils');_0xffbf2e['model']['document']['on']('change:data',()=>{const _0xc4e56c=Array['from'](_0xffbf2e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3fc6e0,data:_0x444b0e}of _0xc4e56c){const {group:_0x456630,id:_0x205174,subType:_0x7774d1}=_0x31adfe['_splitMarkerName'](_0x3fc6e0);if('suggestion'!=_0x456630)continue;if(null!=_0x444b0e['oldRange'])continue;const _0x2323fb=_0x31adfe['getSuggestion'](_0x205174);this['_tablePostFixingSubtypes']['includes'](_0x7774d1)&&this['_tableSuggestions']['add'](_0x2323fb);}},{'priority':'low'});const _0x47725a=(_0x2916d7,_0x308710)=>{let _0x5d0cf7=!0x1;const _0x54deae=_0x308710['createRangeOn'](_0x2916d7),_0x5c37bf=_0x2916d7['findAncestor']('table'),_0x3d19aa=_0xdb8e01['getCellLocation'](_0x2916d7);for(const _0x47d20c of this['_tableSuggestions']){const _0x469cc4=_0x47d20c['subType'],_0x562764=_0x469cc4['startsWith']('tablePaste'),_0x22691c=_0x469cc4['substr'](_0x562764?0xa:0x5),_0x75b909=_0x22691c['toLowerCase'](),_0x387338=_0x75b909['substr'](0x0,0x3)+'span',_0x562c47='min'+_0x22691c,_0x5c1bee='max'+_0x22691c;if(!_0x47d20c['isInContent'])continue;if(_0x5c37bf!=_0x47d20c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x47d20c['isIntersectingWithRange'](_0x54deae))continue;const _0x3e1c9f=_0x2916d7['hasAttribute'](_0x387338)?_0x2916d7['getAttribute'](_0x387338)-0x1:0x0,_0x1702c4=this['_getSuggestionCoords'](_0x47d20c),_0x5b43db=_0x1702c4[_0x562c47],_0x122fb0=_0x1702c4[_0x5c1bee];_0x5b43db<=_0x3d19aa[_0x75b909]&&_0x3d19aa[_0x75b909]+_0x3e1c9f<=_0x122fb0&&(_0x47d20c['addRange'](_0x54deae),_0x5d0cf7=!0x0);}return _0x5d0cf7;};_0xffbf2e['model']['document']['registerPostFixer'](_0x2d0086=>{let _0x5323c2=!0x1;for(const _0x35e850 of _0xffbf2e['model']['document']['differ']['getChanges']())if('insert'==_0x35e850['type']){if('tableRow'==_0x35e850['name']){for(const _0x269eaa of _0x35e850['position']['nodeAfter']['getChildren']())_0x5323c2=_0x5323c2||_0x47725a(_0x269eaa,_0x2d0086);}else'tableCell'==_0x35e850['name']&&(_0x5323c2=_0x5323c2||_0x47725a(_0x35e850['position']['nodeAfter'],_0x2d0086));}return _0x5323c2;});}['_getSuggestionCoords'](_0x1ea51f){return this['_getCoordsForCells'](_0x1ea51f['getRanges']()['map'](_0x8c1241=>_0x8c1241['start']['nodeAfter']));}}function be(_0x4f65a3){return Array['from'](new Set(_0x4f65a3)['values']());}class vt extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x4a29d0=this['editor'],_0x5aa2=_0x4a29d0['model']['document']['selection'],_0x1911af=_0x4a29d0['locale'];if(!_0x4a29d0['plugins']['has']('TableEditing'))return;const _0x3e4ae7=_0x4a29d0['plugins']['get']('TrackChangesEditing'),_0x5422bb=_0x4a29d0['plugins']['get']('TableUtils'),_0x4b18be=_0x4a29d0['plugins']['get'](It);_0x4b18be['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3e4ae7['enableCommand']('mergeTableCells',()=>{const _0x121a62=_0x5422bb['getSelectionAffectedTableCells'](_0x4a29d0['model']['document']['selection']);_0x4a29d0['model']['change'](()=>{_0x3e4ae7['markMultiRangeBlockFormat'](_0x121a62,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4a29d0['commands']['get']('mergeTableCells')['on']('execute',(_0x5c77ae,_0x335b8c)=>{_0x4a29d0['commands']['get']('trackChanges')['value']&&(_0x335b8c['length']>0x0&&_0x335b8c[_0x335b8c['length']-0x1]&&_0x335b8c[_0x335b8c['length']-0x1]['forceDefaultExecution']||_0x3e4ae7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5c77ae['stop']());},{'priority':'highest'});for(const _0x12d5e0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2317c1=_0x4a29d0['commands']['get'](_0x12d5e0);_0x3e4ae7['enableCommand'](_0x12d5e0,()=>{const _0x4efb6b=_0x4a29d0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x33aec6=>_0x33aec6['is']('element','tableCell')),_0x12d56d=_0x2317c1['value'];_0x4a29d0['model']['change'](()=>{_0x3e4ae7['markMultiRangeBlockFormat']([_0x4efb6b,_0x12d56d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4d1db4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x54aa26=_0x4a29d0['commands']['get'](_0x4d1db4);_0x3e4ae7['enableCommand'](_0x4d1db4,()=>{const _0x21a27b=_0x5422bb['getSelectionAffectedTableCells'](_0x4a29d0['model']['document']['selection'])[0x0],_0x2ee604=_0x21a27b['findAncestor']('table'),{column:_0x567048,row:_0x2da829}=_0x5422bb['getCellLocation'](_0x21a27b);let _0xdb2ff=[];if('horizontally'==_0x54aa26['direction']){const _0x22ce65=_0x5422bb['createTableWalker'](_0x2ee604,{'startRow':_0x2da829,'endRow':_0x2da829,'includeAllSlots':!0x0});_0xdb2ff=Array['from'](_0x22ce65)['map'](_0x149efb=>_0x149efb['cell']);}else{const _0x55e8e2=_0x5422bb['createTableWalker'](_0x2ee604,{'column':_0x567048,'includeAllSlots':!0x0});_0xdb2ff=Array['from'](_0x55e8e2)['map'](_0xd5e3d1=>_0xd5e3d1['cell']);}_0x4a29d0['model']['change'](_0x2134d4=>{_0x3e4ae7['markBlockFormat'](_0x2134d4['createRangeOn'](_0x21a27b),{'commandName':_0x4d1db4,'commandParams':[]},_0xdb2ff,_0x4d1db4);});});}_0x3e4ae7['descriptionFactory']['registerDescriptionCallback'](_0xc9f9ef=>{if('formatBlock'!=_0xc9f9ef['type']&&'formatInline'!=_0xc9f9ef['type'])return;const {data:_0x346b70}=_0xc9f9ef;return _0x346b70&&'mergeTableCells'==_0x346b70['commandName']?{'type':'format','content':o(_0x1911af,'*Merge\x20cells*')}:void 0x0;}),_0x3e4ae7['descriptionFactory']['registerDescriptionCallback'](_0x4914b6=>{if('formatBlock'!=_0x4914b6['type']&&'formatInline'!=_0x4914b6['type'])return;const {data:_0x1afe72}=_0x4914b6;return _0x1afe72?'splitTableCellVertically'==_0x1afe72['commandName']?{'type':'format','content':o(_0x1911af,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1afe72['commandName']?{'type':'format','content':o(_0x1911af,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x49f124=_0x4b18be['_acceptFormatSuggestionCallbackFactory']();for(const _0x48bda4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3e4ae7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48bda4,'accept',_0x49f124);for(const _0x5c2cae of['splitTableCellVertically','splitTableCellHorizontally'])_0x3e4ae7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c2cae,'accept',_0x49f124);_0x3e4ae7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2140c1=>{_0x4a29d0['model']['change'](_0x4664f3=>{const _0x11b62e=Array['from'](_0x5aa2['getRanges']())['map'](_0x174188=>_0x1ac7bd['fromRange'](_0x174188));_0x4664f3['setSelection'](_0x2140c1),_0x4a29d0['commands']['get']('mergeTableCells')['refresh'](),_0x4a29d0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x23fc11=_0x11b62e['filter'](_0x3d7919=>'$graveyard'!=_0x3d7919['root']['rootName']);_0x23fc11['length']>0x0&&_0x4664f3['setSelection'](_0x23fc11);for(const _0x3d8a5a of _0x11b62e)_0x3d8a5a['detach']();});});for(const _0x3c3f68 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xa5df0c=_0x4a29d0['commands']['get'](_0x3c3f68);_0xa5df0c['on']('set:isEnabled',(_0x2f9cca,_0x891bd8,_0x164d41)=>{if(_0x164d41){const _0x285f38=_0x4a29d0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x555875=>_0x555875['is']('element','tableCell'));this['_areMergableCells'](_0xa5df0c['value'],_0x285f38)||(_0x2f9cca['return']=!0x1,_0x2f9cca['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1f9423=this['editor']['commands']['get']('mergeTableCells'),_0x4e71b2=this['editor']['plugins']['get']('TableUtils');if(!_0x1f9423['isEnabled'])return!0x1;const _0x30577f=_0x4e71b2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3787fc of _0x30577f)for(const _0x5c4dc3 of _0x30577f)if(_0x3787fc!=_0x5c4dc3&&!this['_areMergableCells'](_0x3787fc,_0x5c4dc3))return!0x1;return!0x0;}['_areMergableCells'](_0x4f510e,_0x554b29){const _0x2472f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa58560=this['editor']['model']['createRangeOn'](_0x4f510e),_0x3fc5f4=this['editor']['model']['createRangeOn'](_0x554b29),_0x1945c1=new Set(),_0x2977a8=new Set();for(const _0x6c6a60 of _0x2472f0['getSuggestions']())if(('insertion'==_0x6c6a60['type']||'deletion'==_0x6c6a60['type']||'mergeTableCells'==_0x6c6a60['subType'])&&_0x6c6a60['isInContent']){for(const _0x41c2db of _0x6c6a60['getRanges']())_0x41c2db['containsRange'](_0xa58560,!0x0)&&_0x1945c1['add'](_0x6c6a60['type']+':'+_0x6c6a60['author']['id']),_0x41c2db['containsRange'](_0x3fc5f4,!0x0)&&_0x2977a8['add'](_0x6c6a60['type']+':'+_0x6c6a60['author']['id']);}if(_0x1945c1['size']!=_0x2977a8['size'])return!0x1;for(const _0x34018d of _0x1945c1)if(!_0x2977a8['has'](_0x34018d))return!0x1;return!0x0;}}class Ct extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x28bdea=this['editor'];if(!_0x28bdea['plugins']['has']('TableEditing'))return;const _0x25da88=_0x28bdea['locale'],_0x332617=_0x28bdea['plugins']['get']('TrackChangesEditing');_0x332617['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x332617['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x332617['registerBlockAttribute']('headingRows'),_0x332617['registerBlockAttribute']('headingColumns'),_0x332617['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x25da88,'FORMAT_HEADER_ROW')),_0x332617['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x25da88,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2d78b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32106d=this['editor']['plugins']['get']('TableUtils'),_0x300377=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x4bb37c({showActiveMarker:_0x446c83=!0x0,setDataAttribute:_0x55e4e7=!0x0}={}){return(_0x20f5c6,_0x355bf5,_0x23d665)=>{const {type:_0x4e6ceb,id:_0x5574fe}=_0x2d78b7['_splitMarkerName'](_0x355bf5['markerName']),_0x19d5a0=_0x2d78b7['getSuggestion'](_0x5574fe),_0x4458e8=_0x19d5a0['data'];if('formatBlock'!=_0x19d5a0['type']||!_0x4458e8||'setTableColumnHeader'!=_0x4458e8['commandName'])return;if(_0x355bf5['item'])return void _0x20f5c6['stop']();if(!_0x23d665['consumable']['consume'](_0x355bf5['markerRange'],_0x20f5c6['name']))return;const _0x2ababf=_0x355bf5['markerRange']['start']['nodeAfter'],_0x568e3e=_0x355bf5['markerRange']['end']['nodeBefore'],_0x194997=_0x2ababf['parent']['parent'],{column:_0x107125}=_0x32106d['getCellLocation'](_0x2ababf),{column:_0x5f0289}=_0x32106d['getCellLocation'](_0x568e3e);for(let _0x2cef86=_0x107125;_0x2cef86<=_0x5f0289;_0x2cef86++){const _0x1c64b1=_0x32106d['createTableWalker'](_0x194997,{'column':_0x2cef86,'includeAllSlots':!0x1});for(const _0x257c8a of _0x1c64b1){const _0x29fe6c=_0x257c8a['cell'],_0x5180ba=_0x23d665['mapper']['toViewElement'](_0x29fe6c);_0x23d665['writer']['addClass']('ck-suggestion-marker-'+_0x4e6ceb,_0x5180ba),_0x55e4e7&&_0x23d665['writer']['setAttribute']('data-suggestion',_0x5574fe,_0x5180ba),_0x23d665['mapper']['bindElementToMarker'](_0x5180ba,_0x355bf5['markerName']),_0x446c83&&(_0x2d78b7['activeMarkers']['includes'](_0x355bf5['markerName'])?_0x23d665['writer']['addClass']('ck-suggestion-marker--active',_0x5180ba):_0x23d665['writer']['removeClass']('ck-suggestion-marker--active',_0x5180ba));}}};}_0x2d78b7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x300377),_0x2d78b7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x300377),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4bb37c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3cd98f,_0x546154,_0x146b4e)=>{_0x146b4e['options']['showSuggestionHighlights']&&_0x4bb37c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3cd98f,_0x546154,_0x146b4e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4cc152,_0x262188,_0x485661)=>{const {type:_0x37790e,id:_0x4ba1e6}=_0x2d78b7['_splitMarkerName'](_0x262188['markerName']),_0x13c487=_0x2d78b7['getSuggestion'](_0x4ba1e6),_0x3d6526=_0x13c487['data'];if('formatBlock'!=_0x13c487['type']||!_0x3d6526||'setTableColumnHeader'!=_0x3d6526['commandName'])return;const _0x202de7=_0x485661['mapper']['markerNameToElements'](_0x262188['markerName']);if(_0x202de7){for(const _0x506ce2 of _0x202de7)_0x485661['writer']['removeClass']('ck-suggestion-marker-'+_0x37790e,_0x506ce2),_0x485661['writer']['removeClass']('ck-suggestion-marker--active',_0x506ce2),_0x485661['writer']['removeAttribute']('data-suggestion',_0x506ce2),_0x485661['mapper']['unbindElementFromMarkerName'](_0x506ce2,_0x262188['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d43e3=this['editor'],_0x1467db=_0x3d43e3['locale'];function _0x15a434(_0x15c5e5){return{'type':'format','content':o(_0x1467db,'*Format:*\x20%0',_0x15c5e5)};}_0x3d43e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20ecfe=>{if('formatBlock'!=_0x20ecfe['type'])return;const {data:_0x33c6f9}=_0x20ecfe;if(_0x33c6f9){if('setTableRowHeader'==_0x33c6f9['commandName']){const _0x3c8c70=_0x33c6f9['commandParams'][0x0]['forceValue'];return _0x15a434(o(_0x1467db,_0x3c8c70?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x33c6f9['commandName']){const _0x244f75=_0x33c6f9['commandParams'][0x0]['forceValue'];return _0x15a434(o(_0x1467db,_0x244f75?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x283c19=>[_0x283c19,null]));class _t extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x5177a3=this['editor'];if(!_0x5177a3['plugins']['has']('TableClipboard'))return;const _0x2c9b06=_0x5177a3['plugins']['get']('TrackChangesEditing'),_0x40a8a0=_0x5177a3['plugins']['get']('TableUtils'),_0x2f727f=_0x5177a3['plugins']['get'](It),_0x1918b5=_0x5177a3['plugins']['get']('TableClipboard');_0x2f727f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5177a3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5177a3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xdf71b=null;_0x5177a3['model']['on']('insertContent',(_0x2cb8d4,_0x3c1fbf)=>{const [_0x9c755a,_0x4dff8f]=_0x3c1fbf,_0x419ecc=_0x3c1fbf[_0x3c1fbf['length']-0x1];_0x419ecc&&_0x419ecc['forceDefaultExecution']||_0x2c9b06['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x203740,_0x1388d8,_0x2890e3,_0x436aee,_0x59e6f0){if(_0x1388d8&&!_0x1388d8['is']('documentSelection'))return!0x1;const _0x8620ba=_0x59e6f0['getTableIfOnlyTableInContent'](_0x203740,_0x2890e3);if(!_0x8620ba||!Re(_0x8620ba,void 0x0,_0x436aee))return!0x1;const _0x258be7=_0x436aee['getSelectionAffectedTableCells'](_0x2890e3['document']['selection']);if(!_0x258be7['length'])return!0x1;const _0x53e1f5=_0x258be7[0x0]['findAncestor']('table'),_0xcfee03=_0x436aee['getRowIndexes'](_0x258be7),_0x15d3a6=_0x436aee['getColumnIndexes'](_0x258be7),_0x1f91e6={'startRow':_0xcfee03['first'],'endRow':_0xcfee03['last'],'startColumn':_0x15d3a6['first'],'endColumn':_0x15d3a6['last']};return 0x1==_0x258be7['length']&&(_0x1f91e6['endRow']+=_0x436aee['getRows'](_0x8620ba)-0x1,_0x1f91e6['endColumn']+=_0x436aee['getColumns'](_0x8620ba)-0x1),Re(_0x53e1f5,_0x1f91e6,_0x436aee);}(_0x9c755a,_0x4dff8f,_0x5177a3['model'],_0x40a8a0,_0x1918b5)&&(_0x2cb8d4['stop'](),_0xdf71b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5177a3['model']['change'](()=>{_0x5177a3['model']['insertContent'](_0x3c1fbf[0x0],_0x3c1fbf[0x1],_0x3c1fbf[0x2],{'forceDefaultExecution':!0x0});const _0x444564=_0x546e08(),{rowInsertionRanges:_0x26a401,columnInsertionRanges:_0x45bd42,insertionRanges:_0x45a47a,deletionRanges:_0xea8e3b,cells:_0xe19a0e}=_0xdf71b;_0x26a401['length']&&_0x2c9b06['markMultiRangeInsertion'](_0x26a401,'tablePasteRow',{'tablePasteChainId':_0x444564}),_0x45bd42['length']&&_0x2c9b06['markMultiRangeInsertion'](_0x45bd42,'tablePasteColumn',{'tablePasteChainId':_0x444564}),_0x45a47a['length']&&(_0x2c9b06['markMultiRangeInsertion'](_0x45a47a,'tablePaste',{'tablePasteChainId':_0x444564,'skipNestingCheck':!0x0}),_0x45a47a['forEach'](_0x408e56=>_0x408e56['detach']?.())),_0xea8e3b['length']&&(_0x2c9b06['markMultiRangeDeletion'](_0xea8e3b,'tablePaste',{'tablePasteChainId':_0x444564,'skipNestingCheck':!0x0}),_0xea8e3b['forEach'](_0x450968=>_0x450968['detach']?.()));const _0x43e7ca=_0x2c9b06['markMultiRangeBlockFormat'](_0xe19a0e['map'](({element:_0x5e9255})=>_0x5e9255),{'formatGroupId':_0x546e08()},[],'tablePasteCell',{'tablePasteChainId':_0x444564});if(_0x43e7ca){const _0x4287c5=_0x43e7ca['getMarkers'](),_0x1d1608=[];for(const {element:_0x6eb79f,attributes:_0x45dc2d}of _0xe19a0e){if(!_0x45dc2d)continue;const _0x271b67=_0x5177a3['model']['createRangeOn'](_0x6eb79f),_0x21e462=_0x4287c5['find'](_0x5935da=>_0x5935da['getRange']()['isEqual'](_0x271b67));_0x21e462&&_0x1d1608['push']([_0x21e462['name'],_0x45dc2d]);}_0x1d1608['length']&&_0x43e7ca['setAttribute']('markerAttributes',Object['fromEntries'](_0x1d1608));}_0xdf71b=null;}));},{'priority':_0x44834d['high']+0xa}),_0x5177a3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3839ff,_0x2945b7)=>{const [_0x4842cb,_0x1579f7,,_0x230db5]=_0x2945b7;if(!_0xdf71b)return;_0x3839ff['stop']();const _0x19d060=_0x4842cb['cell'],_0x1220d6=_0x1579f7,_0x128646=ke(_0x19d060),_0x3dbac7=ke(_0x1220d6);_0x3839ff['return']=_0x19d060;let _0x21fd64=null,_0x9918a3=null;if(_0x3dbac7||_0x128646){if(_0x128646&&!_0x3dbac7){_0x230db5['remove'](_0x19d060['getChild'](0x0));for(const _0x1f2c5d of Array['from'](_0x1220d6['getChildren']()))_0x230db5['insert'](_0x1f2c5d,_0x19d060,'end');const _0x27a7d8=_0xdf71b['rowInsertionIndexes']['includes'](_0x4842cb['row']),_0x4b3230=_0xdf71b['columnInsertionIndexes']['includes'](_0x4842cb['column']);_0x27a7d8||_0x4b3230||(_0x21fd64=_0x1ac7bd['fromRange'](_0x230db5['createRangeIn'](_0x19d060)));}else _0x3dbac7&&!_0x128646&&(_0x9918a3=_0x230db5['createRangeIn'](_0x19d060));}else{const _0x2e7bc0=_0x230db5['createElement']('tableCellSuggestion'),_0x255af1=_0x230db5['createElement']('tableCellSuggestion');_0x230db5['wrap'](_0x230db5['createRangeIn'](_0x19d060),_0x255af1),_0x230db5['insert'](_0x2e7bc0,_0x19d060,0x0);for(const _0x891dbe of Array['from'](_0x1220d6['getChildren']()))_0x230db5['insert'](_0x891dbe,_0x2e7bc0,'end');_0x21fd64=_0x1ac7bd['fromRange'](_0x230db5['createRangeOn'](_0x2e7bc0)),_0x9918a3=_0x1ac7bd['fromRange'](_0x230db5['createRangeOn'](_0x255af1));}const _0xa9112=Array['from'](_0x1220d6['getAttributes']())['filter'](([_0x463244])=>Pe['includes'](_0x463244));_0xdf71b['cells']['push']({'element':_0x19d060,'attributes':_0xa9112['length']?Object['fromEntries'](_0xa9112):null}),_0x21fd64&&_0xdf71b['insertionRanges']['push'](_0x21fd64),_0x9918a3&&_0xdf71b['deletionRanges']['push'](_0x9918a3);},{'priority':'high'}),_0x40a8a0['on']('insertColumns',(_0xc8553c,_0x556edb)=>{const [_0x1ed29e,_0x2c521f={}]=_0x556edb;if(!_0xdf71b)return;const _0x1ab445=_0x2c521f['at']||0x0,_0xf1045a=_0x2c521f['columns']||0x1;_0xdf71b['columnInsertionIndexes']=new Array(_0xf1045a)['fill'](_0x1ab445)['map']((_0x9babea,_0x1bd780)=>_0x9babea+_0x1bd780);for(const {cell:_0x19e36e}of _0x40a8a0['createTableWalker'](_0x1ed29e,{'startColumn':_0x1ab445,'endColumn':_0x1ab445+_0xf1045a-0x1}))_0xdf71b['columnInsertionRanges']['push'](_0x5177a3['model']['createRangeOn'](_0x19e36e));},{'priority':'low'}),_0x40a8a0['on']('insertRows',(_0x201497,_0xb9ec95)=>{const [_0x1aeac8,_0x21a4ac={}]=_0xb9ec95;if(!_0xdf71b)return;const _0x8b8094=_0x21a4ac['at']||0x0,_0x106899=_0x21a4ac['rows']||0x1;_0xdf71b['rowInsertionIndexes']=new Array(_0x106899)['fill'](_0x8b8094)['map']((_0x294a73,_0x48ec6c)=>_0x294a73+_0x48ec6c);for(const {cell:_0x1915f7}of _0x40a8a0['createTableWalker'](_0x1aeac8,{'startRow':_0x8b8094,'endRow':_0x8b8094+_0x106899-0x1}))_0xdf71b['rowInsertionRanges']['push'](_0x5177a3['model']['createRangeOn'](_0x1915f7));},{'priority':'low'}),_0x2c9b06['descriptionFactory']['registerDescriptionCallback'](_0xb4f3ff=>{if(_0xb4f3ff['subType']&&_0xb4f3ff['subType']['startsWith']('tablePaste'))return _0xb4f3ff['previous']?{}:{'type':'insertion','content':o(_0x5177a3['locale'],'*Replace\x20table\x20cells*')};});const _0x43b7cb=()=>!0x1;for(const _0x3d5e7d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2c9b06['_suggestionFactory']['registerCustomCallback']('insertion',_0x3d5e7d,'join',_0x43b7cb),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('deletion',_0x3d5e7d,'join',_0x43b7cb),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d5e7d,'join',_0x43b7cb);_0x2c9b06['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x43b7cb),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc72f4e,_0x1f7697,_0xd6ffc6)=>{const _0x234759=_0xc72f4e['map'](_0x386af5=>_0x386af5['getContainedElement']())['filter'](_0x3915cb=>_0x3915cb),_0x17c386=new Map(_0x234759['map'](_0x3a9433=>[_0x3a9433,null]));if(_0xdf71b){for(const {element:_0x1bef52,attributes:_0x5a3d2b}of _0xdf71b['cells'])_0x5a3d2b&&_0x17c386['set'](_0x1bef52,_0x5a3d2b);}else{if(_0xd6ffc6&&_0xd6ffc6['markerAttributes'])for(const [_0x387ae8,_0xbde9f8]of Object['entries'](_0xd6ffc6['markerAttributes'])){const _0x4d5f72=_0x5177a3['model']['markers']['get'](_0x387ae8),_0x4ab436=_0x4d5f72?_0x4d5f72['getRange']()['getContainedElement']():null;_0x4ab436&&_0x17c386['set'](_0x4ab436,_0xbde9f8);}}_0x5177a3['model']['change'](_0x5acd33=>{for(const [_0x1f6868,_0x33d098]of _0x17c386)_0x5acd33['setAttributes']({...we,..._0x33d098},_0x1f6868);});});const _0x3e0ea9=(_0x239f37,_0x21686a)=>{_0x2c9b06['_suggestionFactory']['registerCustomCallback'](_0x239f37,'tablePaste',_0x21686a,(_0x4648ea,_0x3a7cb4,_0x1f415c)=>{_0x5177a3['model']['change'](_0x566716=>{const _0x1b8628=[];for(const _0x49fcc5 of _0x4648ea){const _0x55e5d1=_0x49fcc5['start']['nodeAfter'];_0x55e5d1['is']('element','tableCellSuggestion')&&_0x1b8628['push'](_0x55e5d1);}_0x2c9b06['_suggestionFactory']['getSuggestionCallback'](_0x239f37,null,_0x21686a)(_0x4648ea,_0x3a7cb4,_0x1f415c);for(const _0x4132ca of _0x1b8628)'$graveyard'!=_0x4132ca['root']['rootName']&&_0x566716['unwrap'](_0x4132ca);});});};_0x3e0ea9('insertion','accept'),_0x3e0ea9('insertion','discard'),_0x3e0ea9('deletion','accept'),_0x3e0ea9('deletion','discard'),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x277fc5=>{const _0x106f37=_0x277fc5['map'](_0x53f199=>_0x53f199['getContainedElement']()),_0x1478f3=_0x106f37[0x0]['findAncestor']('table'),{minRow:_0x3bf7a1,maxRow:_0x1c0c25}=_0x2f727f['_getCoordsForCells'](_0x106f37);_0x40a8a0['removeRows'](_0x1478f3,{'at':_0x3bf7a1,'rows':_0x1c0c25-_0x3bf7a1+0x1});}),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x8fdff0=>{const _0x308288=_0x8fdff0['map'](_0x14d71f=>_0x14d71f['getContainedElement']()),_0x4777b6=_0x308288[0x0]['findAncestor']('table'),{minColumn:_0x44ab2e,maxColumn:_0x3aa2cf}=_0x2f727f['_getCoordsForCells'](_0x308288);_0x40a8a0['removeColumns'](_0x4777b6,{'at':_0x44ab2e,'columns':_0x3aa2cf-_0x44ab2e+0x1});});const _0x1f8a36=(_0x573b27,_0x18f5f8)=>{if(!_0x18f5f8['subType']||!_0x18f5f8['subType']['startsWith']('tablePaste'))return;const _0x40e6d8=_0x18f5f8['attributes']['tablePasteChainId'],_0x2116d6=_0x2c9b06['getSuggestions']()['filter'](_0x5c5971=>_0x5c5971['isInContent']&&_0x5c5971['attributes']&&_0x5c5971['attributes']['tablePasteChainId']==_0x40e6d8);_0x2116d6['length']&&_0x18f5f8['getAllAdjacentSuggestions']()['length']!=_0x2116d6['length']&&_0x2116d6['reduce']((_0x48f581,_0x24c739)=>(_0x48f581['next']=_0x24c739,_0x24c739['previous']=_0x48f581,_0x24c739));};function _0x486b39(_0x2290e2,_0x329979=!0x0){const {id:_0x4c60ba,authorId:_0x20f199}=_0x2c9b06['_splitMarkerName'](_0x2290e2['markerName']),_0x4ebbca=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3c5597=_0x2c9b06['activeMarkers']['includes'](_0x2290e2['markerName']);return _0x3c5597&&_0x4ebbca['push']('ck-suggestion-marker--active'),{'classes':_0x4ebbca,'attributes':{'data-suggestion':_0x4c60ba,'data-author-id':_0x20f199},'priority':_0x3c5597&&_0x329979?0xbc2:0xbb8};}_0x2c9b06['on']('suggestionLoaded',_0x1f8a36,{'priority':'high'}),_0x2c9b06['on']('suggestionUnloaded',_0x1f8a36,{'priority':'high'}),_0x5177a3['model']['document']['registerPostFixer'](()=>{let _0x36595a=!0x1;const _0x576338=Array['from'](_0x5177a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x561583,data:_0x2340ae}of _0x576338){const {group:_0xf4cba2,type:_0x18d563,id:_0xfa8c3a}=_0x2c9b06['_splitMarkerName'](_0x561583);if('suggestion'!=_0xf4cba2||'deletion'!=_0x18d563||_0x2340ae['oldRange'])continue;if(!_0x2c9b06['hasSuggestion'](_0xfa8c3a))continue;const _0x1625b9=_0x2c9b06['getSuggestion'](_0xfa8c3a)['getRanges'](),_0x193722=_0x5177a3['plugins']['get']('Users')['me'];for(const _0x1af384 of _0x2c9b06['getSuggestions']()){if(!_0x1af384['isInContent']||_0x1af384['author']!=_0x193722)continue;if('formatBlock'!=_0x1af384['type']||'tablePasteCell'!=_0x1af384['subType'])continue;if(_0x1af384['getRanges']()['every'](_0xd43d0c=>_0x1625b9['some'](_0x900348=>_0x900348['containsRange'](_0xd43d0c,!0x0)))){for(const _0x39e5e0 of _0x1af384['getAllAdjacentSuggestions']())_0x39e5e0['isInContent']&&(_0x39e5e0['discard'](),_0x36595a=!0x0);}}}return _0x36595a;}),_0x5177a3['model']['document']['registerPostFixer'](_0x45ab04=>{const _0x3ce2e4=_0x5177a3['commands']['get']('redo');if(!_0x3ce2e4||!_0x3ce2e4['_createdBatches']['has'](_0x45ab04['batch']))return!0x1;let _0x37dfe0=!0x1;const _0x5e8c99=_0x5177a3['plugins']['get']('Users')['me'],_0x22cf0c=_0x5177a3['model']['document']['differ']['getChanges'](),_0x458421=Array['from'](_0x5177a3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2df796,data:_0x135119})=>{const {group:_0x5730d1,subType:_0x3fb31b,authorId:_0x128b84}=_0x2c9b06['_splitMarkerName'](_0x2df796);return'suggestion'==_0x5730d1&&'tablePaste'==_0x3fb31b&&_0x128b84==_0x5e8c99['id']&&!_0x135119['oldRange'];});for(const _0x5bc6ec of _0x22cf0c){if('insert'!=_0x5bc6ec['type']||'tableCellSuggestion'!=_0x5bc6ec['name']||0x1!=_0x5bc6ec['length'])continue;const _0x59fe56=_0x45ab04['createRange'](_0x5bc6ec['position'],_0x5bc6ec['position']['getShiftedBy'](0x1));if(!_0x458421['find'](({data:_0x38574f})=>_0x38574f['newRange']['isEqual'](_0x59fe56))){for(const {name:_0x489bb4,data:_0x51c289}of _0x458421)if(_0x59fe56['containsRange'](_0x51c289['newRange'])){_0x45ab04['updateMarker'](_0x489bb4,{'range':_0x59fe56}),_0x37dfe0=!0x0;break;}}}return _0x37dfe0;}),_0x5177a3['model']['document']['registerPostFixer'](_0x40438c=>{let _0x222717=!0x1;const _0x271642=_0x5177a3['plugins']['get']('Users')['me'],_0xa7792a=_0x2c9b06['getSuggestions']()['filter'](_0x2adf9c=>_0x2adf9c['isInContent']&&_0x2adf9c['author']==_0x271642),_0x318ed2=new Set(),_0x502e8f=new Set();for(const _0x298d6c of _0xa7792a)if('tablePaste'==_0x298d6c['subType'])for(const _0x4a5005 of _0x298d6c['getMarkers']()){const _0x208f33=_0x4a5005['getRange']()['getContainedElement']();if(_0x208f33){if(_0x208f33['is']('element','tableCellSuggestion')&&ke(_0x208f33)){_0x298d6c['removeMarker'](_0x4a5005['name']),_0x318ed2['add'](_0x208f33),_0x222717=!0x0;const _0x504ae4=_0x208f33['nextSibling'],_0x3814c0=_0x208f33['previousSibling'],_0x17d477=_0x504ae4&&_0x504ae4['is']('element','tableCellSuggestion'),_0x4e41d6=_0x3814c0&&_0x3814c0['is']('element','tableCellSuggestion');_0x17d477&&!_0x318ed2['has'](_0x504ae4)&&_0x502e8f['add'](_0x504ae4),_0x4e41d6&&!_0x318ed2['has'](_0x3814c0)&&_0x502e8f['add'](_0x3814c0);}else _0x208f33['is']('element','paragraph')&&_0x208f33['isEmpty']&&(_0x298d6c['removeMarker'](_0x4a5005['name']),_0x222717=!0x0);}}else{if('tablePasteCell'==_0x298d6c['subType']){if(!_0x298d6c['attributes']||!_0x298d6c['attributes']['tablePasteChainId'])continue;const _0x29c6fd=_0x298d6c['attributes']['markerAttributes'];if(_0x29c6fd&&Object['keys'](_0x29c6fd)['length'])continue;const _0x5e6aed=_0x298d6c['attributes']['tablePasteChainId'];let _0x4557bf=!0x0,_0x1c5a6b=!0x0;for(const _0x57a2b5 of _0xa7792a)if(_0x57a2b5['subType']&&_0x57a2b5['subType']['startsWith']('tablePaste')){if(!_0x57a2b5['attributes']['tablePasteChainId']){_0x1c5a6b=!0x1;break;}if(_0x57a2b5['id']!=_0x298d6c['id']&&_0x57a2b5['attributes']['tablePasteChainId']==_0x5e6aed){_0x4557bf=!0x1;break;}}_0x1c5a6b&&_0x4557bf&&(_0x298d6c['removeMarkers'](),_0x222717=!0x0);}}for(const _0x162913 of _0x318ed2)_0x40438c['remove'](_0x162913);for(const _0x188695 of _0x502e8f)_0x40438c['unwrap'](_0x188695);return _0x222717;}),_0x5177a3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xd482ac=>_0x486b39(_0xd482ac),'converterPriority':'high'}),_0x5177a3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x625917,_0x529a5b)=>_0x529a5b['options']['showSuggestionHighlights']?_0x486b39(_0x625917,!0x1):null,'converterPriority':'high'});const _0x2b364e=_0x5177a3['editing']['view'];this['listenTo'](_0x2b364e['document'],'clipboardOutput',(_0x2bbca9,_0x4dc075)=>{const _0x4e3540=[];for(const _0x176089 of _0x2b364e['createRangeIn'](_0x4dc075['content'])['getItems']())_0x176089['is']('element','suggestion-td')&&_0x4e3540['push'](_0x176089);_0x2b364e['change'](_0x5bc843=>{for(const _0x55f2f5 of _0x4e3540)_0x5bc843['move'](_0x5bc843['createRangeIn'](_0x55f2f5),_0x5bc843['createPositionBefore'](_0x55f2f5)),_0x5bc843['remove'](_0x55f2f5);});});}}function ke(_0x5eb66f){if(_0x5eb66f['isEmpty'])return!0x0;const _0xf30be9=_0x5eb66f['getChild'](0x0);return _0xf30be9['is']('element','paragraph')&&_0xf30be9['isEmpty'];}function Re(_0x334d49,_0x502c77={},_0x6010de){for(const {isAnchor:_0x56fe6e,cellHeight:_0x456ccd,cellWidth:_0x37a77a}of _0x6010de['createTableWalker'](_0x334d49,{'includeAllSlots':!0x0,..._0x502c77}))if(!_0x56fe6e||0x1!=_0x456ccd||0x1!=_0x37a77a)return!0x1;return!0x0;}class Nt extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x32891a=this['editor']['plugins']['get']('TrackChangesEditing');_0x32891a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x32891a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x32891a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32891a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x32891a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x32891a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x11336b,_0x2f4eb3){const _0x31111a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4be552=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x472576=_0x2f4eb3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x28298a=_0x4be552['getColumnGroupElement'](_0x472576);let _0x118485=_0x28298a?_0x4be552['getTableColumnsWidths'](_0x28298a):null,_0x11eb0c=_0x472576['getAttribute']('tableWidth')||null;const _0x1c12f6=_0x2f4eb3['tableWidth']||_0x11eb0c,_0x501d2a=_0x2f4eb3['columnWidths']||_0x118485,_0x43db7b=this['editor']['plugins']['get']('Users')['me'];for(const _0xa7d48 of _0x31111a['getSuggestions']()){const _0x17f6a7=_0xa7d48['getContainedElement']();if('resizeTable'===_0xa7d48['subType']&&_0x17f6a7===_0x472576){_0xa7d48['author']!==_0x43db7b&&_0xa7d48['discard']();const _0xb1c952=_0xa7d48['data']['commandParams'];_0x11eb0c=_0xb1c952[0x0]['tableWidth'],_0x118485=_0xb1c952[0x0]['columnWidths'];break;}}_0x11336b({'table':_0x472576,'tableWidth':_0x1c12f6,'columnWidths':_0x501d2a}),_0x31111a['markBlockFormat'](_0x472576,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x11eb0c,'columnWidths':_0x118485}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x327f5a){if('formatBlock'!=_0x327f5a['type']&&'formatInline'!=_0x327f5a['type'])return;const {data:_0x98e8f5}=_0x327f5a;if(_0x98e8f5&&'resizeTable'===_0x98e8f5['formatGroupId']){const _0x47805b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x47805b)};}}}class Dt extends _0x58a0bc{['afterInit'](){const _0x1172ce=this['editor'];_0x1172ce['plugins']['has']('Template')&&_0x1172ce['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x58a0bc{['afterInit'](){const _0x32f262=this['editor'];if(!_0x32f262['commands']['get']('insertTableOfContents'))return;_0x32f262['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xa01781=_0x32f262['plugins']['get']('TrackChangesEditing'),_0xb0808f=_0x32f262['locale'];_0xa01781['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2723b2=>o(_0xb0808f,'ELEMENT_TABLE_OF_CONTENTS',_0x2723b2));}}class $t extends _0x58a0bc{['afterInit'](){const _0x132a6e=this['editor'];if(!_0x132a6e['plugins']['has']('Title'))return;const _0x210539=_0x132a6e['plugins']['get']('TrackChangesEditing');_0x210539['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x132a6e['locale'],'ELEMENT_TITLE')),_0x132a6e['model']['document']['registerPostFixer'](_0x500998=>{let _0x300cb6=!0x1;const _0x281a4a=Array['from'](_0x132a6e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x59a7ed,data:_0x5e45f9}of _0x281a4a){const {group:_0x15aeb3}=_0x210539['_splitMarkerName'](_0x59a7ed);if('suggestion'!==_0x15aeb3||!_0x5e45f9['newRange'])continue;const _0x4e1e4d=_0x5e45f9['newRange'],_0x4772f1=_0x4e1e4d['end']['nodeBefore'];if(!_0x4772f1||!_0x4772f1['is']('element','title-content'))continue;if(!_0x4e1e4d['start']['isTouching'](_0x4e1e4d['end']))continue;const _0x3b4bbd=_0x132a6e['model']['schema']['getNearestSelectionRange'](_0x4e1e4d['end'],'forward');if(_0x3b4bbd&&_0x3b4bbd['isCollapsed']){const _0x59e97c=_0x500998['createRange'](_0x4e1e4d['start'],_0x3b4bbd['start']);_0x59e97c['isEqual'](_0x4e1e4d)||(_0x500998['updateMarker'](_0x59a7ed,{'range':_0x59e97c}),_0x300cb6=!0x0);}_0x300cb6||(_0x500998['removeMarker'](_0x59a7ed),_0x300cb6=!0x0);}return _0x300cb6;});}}class Bt extends _0x58a0bc{['afterInit'](){const _0x2d86ef=this['editor'],_0x243457=_0x2d86ef['plugins']['get']('TrackChangesEditing');_0x2d86ef['plugins']['has']('UndoEditing')&&(_0x243457['enableCommand']('undo'),_0x243457['enableCommand']('redo'));}}class xt extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x4df322=this['editor'];if(!_0x4df322['plugins']['has']('TableCaptionEditing'))return;_0x4df322['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x58a0bc{['tableProperties'];['tableCellProperties'];constructor(_0x453a0c){super(_0x453a0c),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0xb14700=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xb4b3d7 of this['tableProperties'])_0xb14700['enableCommand'](_0xb4b3d7,(_0x159ee7,_0x9b88a5)=>{const _0x267052=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xb4b3d7,[_0x267052],this['tableProperties'],'tableProperties',_0x159ee7,_0x9b88a5);});_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xb14700['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x21f576,_0x2585be)=>this['handleDiscardAction'](this['tableProperties'],_0x21f576,_0x2585be)),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x16a07e of this['tableCellProperties'])_0xb14700['enableCommand'](_0x16a07e,(_0x25b0f3,_0x865cc2)=>{const _0x3ec2f3=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x16a07e,_0x3ec2f3,this['tableCellProperties'],'tableCellProperties',_0x25b0f3,_0x865cc2);});_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xb14700['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4fea0c,_0x477894)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4fea0c,_0x477894)),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xb14700['descriptionFactory']['registerDescriptionCallback'](_0x3ede64=>this['handleSuggestionDescription'](_0x3ede64));}['_handlePropertyChange'](_0x3399e7,_0x306bc9,_0x3fa48a,_0x47a287,_0x388260,_0x35b27f){const _0x3a5cfd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x35b27f['batch'],()=>{for(const _0x223e81 of _0x306bc9){if(this['_getSuggestion'](_0x223e81,_0x47a287))_0x388260(_0x35b27f);else{const _0x2e5b6b={};for(const _0x23b202 of _0x3fa48a){const _0x4c5719=_0x223e81['getAttribute'](_0x23b202);void 0x0!==_0x4c5719&&(_0x2e5b6b[_0x23b202]=_0x4c5719);}_0x388260(_0x35b27f),_0x3a5cfd['markBlockFormat'](_0x223e81,{'commandParams':[_0x2e5b6b]},[],_0x47a287);}}});}['handleDiscardAction'](_0x23dbef,_0xda3e71,_0x25b416){const _0x23078a=_0xda3e71[0x0]['start']['nodeAfter'],_0x53a0b7=_0x25b416['commandParams'][0x0];this['editor']['model']['change'](_0x37c55d=>{for(const _0x5ed35a of _0x23dbef)void 0x0!==_0x53a0b7[_0x5ed35a]?_0x37c55d['setAttribute'](_0x5ed35a,_0x53a0b7[_0x5ed35a],_0x23078a):_0x37c55d['removeAttribute'](_0x5ed35a,_0x23078a);});}['handleSuggestionDescription'](_0x23f491){if(_0x23f491['data'])switch(_0x23f491['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3afb01,_0x45d2d9){const _0x42966b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x228c99 of _0x42966b['getSuggestions']({'skipNotAttached':!0x0})){const _0x3fd677=_0x228c99['getContainedElement']();if(_0x228c99['subType']===_0x45d2d9&&_0x3fd677===_0x3afb01)return _0x228c99;}return null;}}const m='$elementName';class p extends _0x58a0bc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5983d1,_0xb7ca76,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1c0e3f){function _0x2e5a14(_0x22efd1){return _0x22efd1['map'](_0x485c83=>String['fromCharCode'](_0x485c83))['join']('');}super(_0x1c0e3f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3ba390,_0x363fb4,_0x5f02c6,_0x3ef873)=>{this['_model']['change'](()=>{for(const _0x241d80 of[..._0x3ef873,..._0x5f02c6])this['_model']['markers']['has'](_0x241d80)&&_0x1c0e3f['editing']['reconvertMarker'](_0x241d80);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1c0e3f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x1c0e3f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1c0e3f['config']['get']('trackChanges.trackFormatChanges'),_0x1c0e3f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1c0e3f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1c0e3f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2e5a14([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2e5a14([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x34]);}['init'](){const _0x93664=this['editor'],_0x3db84a=(_0x4f3e1a,_0x453be4)=>{if('attribute'!=_0x4f3e1a)return'ck-suggestion-marker-'+_0x4f3e1a;const _0x4ac2a0=_0x453be4['split']('|')[0x0];return this['_isBlockAttribute'](_0x4ac2a0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x93664['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4788ad=>{const {id:_0x19900c,authorId:_0x239e78,type:_0xea588b,subType:_0x2530ca}=this['_splitMarkerName'](_0x4788ad['markerName']),_0x395842=['ck-suggestion-marker',_0x3db84a(_0xea588b,_0x2530ca)];let _0x1e9147=0xbb8;return this['activeMarkers']['includes'](_0x4788ad['markerName'])&&(_0x395842['push']('ck-suggestion-marker--active'),_0x1e9147=0xbc2),'deletion'==_0xea588b&&(_0x1e9147+=0x5),{'classes':_0x395842,'attributes':{'data-suggestion':_0x19900c,'data-author-id':_0x239e78},'priority':_0x1e9147};}}),_0x93664['conversion']['for']('dataDowncast')['add'](_0x3e09d2=>{_0x3e09d2['on']('addMarker:suggestion',(_0x35a362,_0x2e40e1,_0x9f1765)=>{if(!_0x9f1765['options']['showSuggestionHighlights'])return;const _0xea57ce=_0x2e40e1['item'];if(!_0xea57ce)return;const _0x587315=_0x9f1765['mapper']['toViewElement'](_0xea57ce);_0x93664['model']['schema']['isObject'](_0xea57ce)&&_0x587315&&!_0x587315['getCustomProperty']('widget')&&_0x587315['is']('containerElement')&&_0x3601d(_0x587315,_0x9f1765['writer']);},{'priority':'high'});}),_0x93664['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xc4bba7,_0x91ae9c)=>{if(!_0x91ae9c['options']['showSuggestionHighlights'])return null;const {type:_0x9d4f3b,subType:_0x493231}=this['_splitMarkerName'](_0xc4bba7['markerName']);return{'classes':['ck-suggestion-marker',_0x3db84a(_0x9d4f3b,_0x493231)],'priority':0xbb8};}});const _0x2995ee=({showActiveMarkers:_0x203d99=!0x0,isAttributeSuggestion:_0x1ef91a=!0x1}={})=>(_0x5d0b3c,_0x22d411,_0x5e1479)=>{if(!_0x22d411['item'])return;const {id:_0x359fce,authorId:_0x3c11e7}=this['_splitMarkerName'](_0x22d411['markerName']);if(_0x1ef91a){const _0x368ff1=this['_suggestions']['get'](_0x359fce),_0x31e441=this['_getAttributeKey'](_0x368ff1);if(!this['_isBlockAttribute'](_0x31e441))return;}if(_0x22d411['item']['is']('selection'))return void _0x5e1479['consumable']['consume'](_0x22d411['item'],_0x5d0b3c['name']);const _0x25635f=_0x5e1479['mapper']['toViewElement'](_0x22d411['item']);if(_0x22d411['item']['is']('element')&&_0x93664['model']['schema']['isBlock'](_0x22d411['item'])&&!_0x25635f['getCustomProperty']('addHighlight')){_0x5e1479['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x25635f),_0x5e1479['writer']['setAttribute']('data-suggestion',_0x359fce,_0x25635f),_0x5e1479['writer']['setAttribute']('data-author-id',_0x3c11e7,_0x25635f),_0x5e1479['mapper']['bindElementToMarker'](_0x25635f,_0x22d411['markerName']),_0x203d99&&(this['activeMarkers']['includes'](_0x22d411['markerName'])?_0x5e1479['writer']['addClass']('ck-suggestion-marker--active',_0x25635f):_0x5e1479['writer']['removeClass']('ck-suggestion-marker--active',_0x25635f));for(const _0x5aa396 of _0x93664['model']['createRangeIn'](_0x22d411['item'])['getItems']())_0x5e1479['consumable']['consume'](_0x5aa396,_0x5d0b3c['name']);_0x5e1479['consumable']['consume'](_0x22d411['item'],_0x5d0b3c['name']);}};_0x93664['conversion']['for']('dataDowncast')['add'](_0x476b23=>{_0x476b23['on']('addMarker:suggestion:formatBlock',(_0x2354b0,_0x30218c,_0x35f648)=>{_0x35f648['options']['showSuggestionHighlights']&&_0x2995ee({'showActiveMarkers':!0x1})(_0x2354b0,_0x30218c,_0x35f648);},{'priority':'highest'});}),_0x93664['conversion']['for']('dataDowncast')['add'](_0x3989cf=>{_0x3989cf['on']('addMarker:suggestion:attribute',(_0x4481a4,_0x5b92d7,_0x64838d)=>{_0x64838d['options']['showSuggestionHighlights']&&_0x2995ee({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4481a4,_0x5b92d7,_0x64838d);},{'priority':'highest'});}),_0x93664['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x412ed5,_0x556b09)=>_0x556b09['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x412ed5['substr'](0xb)}}),_0x93664['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x316caa,{writer:_0x190ea6})=>{let _0x512da6='suggestion:'+_0x316caa['getAttribute']('suggestion-type')+':'+_0x316caa['getAttribute']('id');return _0x316caa['getAttribute']('marker-count')&&(_0x512da6+=':'+_0x316caa['getAttribute']('marker-count')),_0x190ea6['createElement']('$marker',{'data-name':_0x512da6});}}),_0x93664['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x93664['conversion']['for']('editingDowncast')['add'](_0x30aa84=>{_0x30aa84['on']('addMarker:suggestion:formatBlock',_0x2995ee(),{'priority':'high'});}),_0x93664['conversion']['for']('editingDowncast')['add'](_0x3b006c=>{_0x3b006c['on']('addMarker:suggestion:attribute',_0x2995ee({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x93664['conversion']['for']('editingDowncast')['add'](_0xc12469=>{_0xc12469['on']('removeMarker:suggestion:formatBlock',(_0x57b61d,_0x40916f,_0x2eb805)=>{const _0x2168d1=_0x2eb805['mapper']['markerNameToElements'](_0x40916f['markerName']);if(_0x2168d1){for(const _0x4d8ef2 of _0x2168d1)_0x4d8ef2['getCustomProperty']('addHighlight')||(_0x2eb805['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4d8ef2),_0x2eb805['writer']['removeAttribute']('data-suggestion',_0x4d8ef2),_0x2eb805['writer']['removeAttribute']('data-author-id',_0x4d8ef2),_0x2eb805['mapper']['unbindElementFromMarkerName'](_0x4d8ef2,_0x40916f['markerName']));}},{'priority':'high'});}),_0x93664['conversion']['for']('editingDowncast')['add'](_0x36e674=>{_0x36e674['on']('removeMarker:suggestion:attribute',(_0x2483ab,_0x49f8a6,_0x3886f5)=>{const _0x13f01d=_0x3886f5['mapper']['markerNameToElements'](_0x49f8a6['markerName']);if(!_0x13f01d)return;const {id:_0x25726f}=this['_splitMarkerName'](_0x49f8a6['markerName']),_0x48a27d=this['_suggestions']['get'](_0x25726f),_0x458e3a=this['_getAttributeKey'](_0x48a27d);if(this['_isBlockAttribute'](_0x458e3a)){for(const _0x40e6cb of _0x13f01d)_0x40e6cb['getCustomProperty']('addHighlight')||(_0x3886f5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x40e6cb),_0x3886f5['writer']['removeAttribute']('data-suggestion',_0x40e6cb),_0x3886f5['writer']['removeAttribute']('data-author-id',_0x40e6cb),_0x3886f5['mapper']['unbindElementFromMarkerName'](_0x40e6cb,_0x49f8a6['markerName']));}},{'priority':'high'});}),_0x93664['model']['document']['registerPostFixer'](_0x497b79=>{let _0x5ecbbc=!0x1;const _0x38d59d=Array['from'](_0x93664['model']['document']['differ']['getChangedMarkers']()),_0x1c3916=new Set();for(const {name:_0x1b718e,data:_0x22813e}of _0x38d59d){const {group:_0x3c158b,type:_0x21c3cb,subType:_0xbbed5e,id:_0x530dca}=this['_splitMarkerName'](_0x1b718e);if('suggestion'!==_0x3c158b)continue;const _0x552941=this['_suggestions']['get'](_0x530dca);if(null!=_0x22813e['newRange']){'formatInline'==_0x21c3cb&&(_0x5ecbbc=_0x5ecbbc||Ut(_0x22813e['newRange'],_0x1b718e,_0x497b79,_0x93664['model']['schema']));const _0x29f6bd='attribute'==_0x21c3cb&&this['_isBlockAttribute'](_0xbbed5e['split']('|')[0x0]);if(_0x22813e['newRange']['isCollapsed']||'$graveyard'==_0x22813e['newRange']['root']['rootName']||'formatBlock'==_0x21c3cb&&!Ft(_0x22813e['newRange'])||_0x29f6bd&&!Ft(_0x22813e['newRange'])||'deletion'==_0x21c3cb&&!(!Vt(_0x4e7cda=_0x22813e['newRange'])&&!function(_0x26cad6){return _0x26cad6['start']['parent']==_0x26cad6['end']['nodeBefore']&&_0x26cad6['start']['isAtEnd'];}(_0x4e7cda)))_0x497b79['removeMarker'](_0x1b718e),_0x5ecbbc=!0x0;else{if(!_0x552941||!_0x552941['isInContent'])continue;if(_0x22813e['newRange']&&_0x22813e['oldRange']&&_0x22813e['newRange']['isEqual'](_0x22813e['oldRange']))continue;_0x1c3916['add'](_0x552941);}}}var _0x4e7cda;return _0x1c3916['size']>0x0&&(_0x5ecbbc=!!this['_joinWithAdjacentSuggestions'](_0x1c3916)||_0x5ecbbc),_0x5ecbbc;}),_0x93664['model']['document']['registerPostFixer'](_0x37cd95=>{let _0x46c042=!0x1;for(const _0x9de49b of _0x93664['model']['document']['differ']['getChanges']())if('insert'==_0x9de49b['type'])for(const _0x24bfca of this['_suggestions']['values']()){if(_0x24bfca['isMultiRange']||!_0x24bfca['isInContent'])continue;const _0x44d3b8='formatBlock'==_0x24bfca['type'],_0x312629=this['_getAttributeKey'](_0x24bfca),_0x47a433=_0x312629&&this['_isBlockAttribute'](_0x312629);if(!_0x44d3b8&&!_0x47a433)continue;const _0x5545a5=_0x24bfca['getFirstRange']();if(_0x5545a5['start']['parent']!=_0x5545a5['end']['parent']&&!_0x5545a5['end']['isAtEnd']){const _0x3c412f=_0x93664['model']['createPositionAt'](_0x5545a5['start']['nodeAfter'],'end'),_0x1e3b62=_0x93664['model']['createRange'](_0x5545a5['start'],_0x3c412f);_0x37cd95['updateMarker'](_0x24bfca['getFirstMarker'](),{'range':_0x1e3b62}),_0x46c042=!0x0;}}return _0x46c042;}),_0x93664['model']['document']['registerPostFixer'](_0x21ce4d=>this['_processAttributeChanges'](_0x21ce4d)),_0x93664['model']['document']['registerPostFixer'](_0x3958b3=>!_0x3958b3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3958b3)),_0x93664['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x93664['model']['document']['on']('change:data',(_0x85198a,_0xb5c8d1)=>{if(!_0xb5c8d1['isLocal']||_0xb5c8d1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4b72ec=_0x93664['model']['document']['differ']['getChanges']();if(0x0==_0x4b72ec['length'])return;const _0x24992a=[],_0x995e81=_0x4b72ec['filter'](_0x4a9407=>'attribute'==_0x4a9407['type']),_0x577055=_0x4b72ec['filter'](_0x5d6625=>'insert'==_0x5d6625['type']&&'$text'!=_0x5d6625['name']);for(const _0x1099e5 of _0x995e81)this['_isRegisteredAttribute'](_0x1099e5['attributeKey'])&&_0x24992a['push']({'key':_0x1099e5['attributeKey'],'newValue':_0x1099e5['attributeNewValue'],'oldValue':_0x1099e5['attributeOldValue'],'range':Pt(_0x1099e5['range'],_0x93664['model'])});for(const _0x9471dd of _0x577055){if('rename'!=_0x9471dd['action']&&'refresh'!=_0x9471dd['action'])continue;const _0x33f204=Lt(_0x9471dd['position']['nodeAfter'],_0x93664['model']),_0x32bc93=_0x9471dd['before'];'rename'==_0x9471dd['action']&&_0x24992a['push']({'key':m,'newValue':_0x9471dd['name'],'oldValue':_0x32bc93['name'],'range':_0x33f204});for(const [_0x39385f,_0x5f5b4c]of _0x32bc93['attributes']){if(!this['_isRegisteredAttribute'](_0x39385f))continue;const _0x1e383c=_0x9471dd['attributes']['get'](_0x39385f);_0x5f5b4c!==_0x1e383c&&_0x24992a['push']({'key':_0x39385f,'newValue':_0x1e383c,'oldValue':_0x5f5b4c,'range':_0x33f204});}for(const [_0x282b60,_0x17fb21]of _0x9471dd['attributes'])this['_isRegisteredAttribute'](_0x282b60)&&(_0x32bc93['attributes']['has'](_0x282b60)||_0x24992a['push']({'key':_0x282b60,'newValue':_0x17fb21,'oldValue':null,'range':_0x33f204}));}0x0!=_0x24992a['length']&&_0x93664['model']['enqueueChange'](_0xb5c8d1,_0x5d5e6f=>{const _0x3e8361=_0x546e08();for(const {range:_0x742c00,key:_0x49edf2,oldValue:_0x23cf55,newValue:_0x46e9a1}of _0x24992a)this['markAttributeChange'](_0x742c00,_0x49edf2,_0x23cf55,_0x46e9a1,{'groupId':_0x3e8361});this['_reduceExistingSuggestions'](_0x5d5e6f,_0x24992a);});},{'priority':'lowest'}),_0x93664['model']['markers']['on']('update:suggestion',(_0x13e70e,_0x57fd7b,_0x1c60b8)=>{if(null==_0x1c60b8){const {id:_0x1e9268}=this['_splitMarkerName'](_0x57fd7b['name']),_0x4753c9=this['_suggestions']['get'](_0x1e9268);_0x4753c9&&_0x4753c9['addMarkerName'](_0x57fd7b['name']);}}),_0x93664['model']['document']['on']('change:data',()=>{const _0x2a5862=Array['from'](_0x93664['model']['document']['differ']['getChangedMarkers']())['filter'](_0x414cd7=>'suggestion'===this['_splitMarkerName'](_0x414cd7['name'])['group']);if(0x0===_0x2a5862['length'])return;_0x2a5862['sort']((_0x27c88c,_0x264d43)=>{const _0x2e8dcc=_0x27c88c['data']['oldRange'],_0x1f8079=_0x264d43['data']['oldRange'];return null===_0x2e8dcc&&null===_0x1f8079?0x0:null===_0x2e8dcc&&null!==_0x1f8079?-0x1:null!==_0x2e8dcc&&null===_0x1f8079?0x1:_0x2e8dcc['start']['isBefore'](_0x1f8079['start'])?-0x1:0x1;});const _0xb2b4ab=new Set(),_0x5b827b=new Set();for(const {name:_0x14616f,data:_0x8db754}of _0x2a5862){const {id:_0x30a971}=this['_splitMarkerName'](_0x14616f);if(null===_0x8db754['oldRange']){const _0x3cd933=this['_handleNewSuggestionMarker'](_0x14616f);_0x5b827b['add'](_0x3cd933);}else{const _0x5bfc41=this['_suggestions']['get'](_0x30a971);null!==_0x8db754['newRange']||_0x5bfc41['isInContent']?(_0xb2b4ab['add'](_0x5bfc41['head']),_0x5b827b['add'](_0x5bfc41)):this['_removeSuggestion'](_0x5bfc41);}}_0x5b827b['size']>0x0&&this['_refreshSuggestionsChain'](_0x5b827b);for(const _0x192a81 of _0xb2b4ab)this['fire']('suggestionChanged',_0x192a81);}),_0x93664['model']['on']('applyOperation',(_0x564e65,_0xb6ae6f)=>{const _0xe66e0a=_0xb6ae6f[0x0];if(!this['_suggestions']['size'])return;if(!_0xe66e0a['isDocumentOperation'])return;if(_0xe66e0a['batch']['isUndo']||!_0xe66e0a['batch']['isLocal'])return;let _0x4a2ae0,_0xc8b8e;switch(_0xe66e0a['type']){case'insert':_0x4a2ae0=_0x93664['model']['createPositionAt'](_0xe66e0a['position']),_0xc8b8e=_0x4a2ae0['getShiftedBy'](_0xe66e0a['howMany']);break;case'split':_0x4a2ae0=_0x93664['model']['createPositionAt'](_0xe66e0a['splitPosition']),_0xc8b8e=_0x93664['model']['createPositionAt'](_0xe66e0a['moveTargetPosition']);break;case'move':_0x4a2ae0=_0x93664['model']['createPositionAt'](_0xe66e0a['targetPosition']),_0xc8b8e=_0x4a2ae0['getShiftedBy'](_0xe66e0a['howMany']);break;default:return;}const _0xce8363=_0x93664['model']['createRange'](_0x4a2ae0,_0xc8b8e);_0x93664['model']['change'](()=>{for(const {suggestion:_0x57864b,meta:_0x8d1b83}of this['_findSuggestions'](_0xce8363)){if(_0x57864b['isMultiRange'])continue;if('formatInline'==_0x57864b['type'])continue;const _0x5963f8=this['_getAttributeKey'](_0x57864b);if(_0x5963f8&&this['_isBlockAttribute'](_0x5963f8)&&'split'!=_0xe66e0a['type'])continue;const _0x5b9568=_0x57864b['data']&&_0x57864b['data']['multipleBlocks'];('formatBlock'!=_0x57864b['type']||'split'==_0xe66e0a['type']&&!_0x5b9568)&&(_0x8d1b83['containsRangeInObject']||'insertion'==_0x57864b['type']&&_0x8d1b83['isOwn']||_0x57864b['getFirstRange']()['containsRange'](_0xce8363)&&this['_breakSuggestionMarker'](_0x57864b,_0x4a2ae0,_0xc8b8e));}});},{'priority':'lowest'}),_0x93664['model']['on']('deleteContent',(_0x379058,_0x2c9c98)=>{const _0x118c46=_0x2c9c98[0x0],_0x294d8a=_0x2c9c98[0x1];if(_0x294d8a&&_0x294d8a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x118c46['isCollapsed'])return;const _0x5caae4=_0x93664['model']['schema'],{start:_0x18907c,end:_0x1cd0d7}=_0x118c46['getFirstRange'](),_0x5ab9ac=_0x18907c['nodeAfter']&&_0x5caae4['isLimit'](_0x18907c['nodeAfter'])?null:_0x5caae4['getNearestSelectionRange'](_0x18907c,'forward'),_0x547714=_0x1cd0d7['nodeBefore']&&_0x5caae4['isLimit'](_0x1cd0d7['nodeBefore'])?null:_0x5caae4['getNearestSelectionRange'](_0x1cd0d7,'backward'),_0x41612a=_0x93664['model']['createRange'](_0x5ab9ac?_0x5ab9ac['start']:_0x18907c,_0x547714?_0x547714['end']:_0x1cd0d7);_0x93664['model']['change'](_0x28e186=>{this['markDeletion'](_0x41612a);const _0x2b0846=_0x93664['model']['schema']['getNearestSelectionRange'](_0x41612a['start']);_0x118c46['is']('documentSelection')?_0x28e186['setSelection'](_0x2b0846):_0x118c46['setTo'](_0x2b0846);}),_0x379058['stop']();},{'priority':_0x44834d['normal']+0xa}),_0x93664['model']['on']('insertContent',(_0x18c3e0,_0x3fa0c1)=>{const _0x35876f=_0x3fa0c1[_0x3fa0c1['length']-0x1];_0x35876f&&_0x35876f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x93664['model']['change'](()=>{let _0x213623=_0x93664['model']['insertContent'](_0x3fa0c1[0x0],_0x3fa0c1[0x1],_0x3fa0c1[0x2],{'forceDefaultExecution':!0x0});if(!_0x213623)return;_0x18c3e0['return']=_0x213623['clone']();const _0xc31289=_0x213623['end']['nodeBefore'],_0x32af26=_0x93664['model']['schema'];_0xc31289&&_0x32af26['isBlock'](_0xc31289)&&!_0x32af26['isObject'](_0xc31289)&&(_0x213623=_0x93664['model']['createRange'](_0x213623['start'],_0x93664['model']['createPositionAt'](_0xc31289,'end'))),this['markInsertion'](_0x213623);}),_0x18c3e0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x6af541=new x(_0x93664,this['_suggestions']);_0x93664['commands']['add']('acceptSuggestion',_0x6af541),this['enableCommand']('acceptSuggestion');const _0x33d084=new R(_0x93664,this['_suggestions']);_0x93664['commands']['add']('discardSuggestion',_0x33d084),this['enableCommand']('discardSuggestion'),_0x93664['commands']['add']('acceptAllSuggestions',new E(_0x93664,_0x6af541,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x93664['commands']['add']('discardAllSuggestions',new E(_0x93664,_0x33d084,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x93664['commands']['add']('acceptSelectedSuggestions',new O(_0x93664,_0x6af541,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x93664['commands']['add']('discardSelectedSuggestions',new O(_0x93664,_0x33d084,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x16f29c=_0x93664['plugins']['get']('CommentsRepository');this['listenTo'](_0x16f29c,'addComment',(_0x2c4abc,{threadId:_0xd92d3b})=>{const _0x22805d=this['_suggestions']['get'](_0xd92d3b);_0x22805d&&_0x22805d['commentThread']&&0x1===_0x22805d['commentThread']['length']&&this['_updateSuggestionData'](_0xd92d3b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x16f29c,'removeComment',(_0x18cdf6,{threadId:_0x2e58ce})=>{const _0x423742=this['_suggestions']['get'](_0x2e58ce);_0x423742&&_0x423742['commentThread']&&!_0x423742['commentThread']['length']&&this['_updateSuggestionData'](_0x2e58ce,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x17283d){if(this['_adapter'])throw new _0x4ee7fd('track-changes-adapter-already-set',this);this['_adapter']=_0x17283d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x19db39=!0x1,toJSON:_0x311f39=!0x1}={}){const _0x42a1f2=[];for(const _0xb91945 of this['_suggestions']['values']())_0x19db39&&!_0xb91945['isInContent']||_0x42a1f2['push'](_0xb91945);return _0x311f39?_0x42a1f2['map'](_0x2df00b=>_0x2df00b['toJSON']()):_0x42a1f2;}['getSuggestion'](_0xb62e9e){const _0xfea7=this['_suggestions']['get'](_0xb62e9e);if(!_0xfea7)throw new _0x4ee7fd('track-changes-suggestion-not-found',this);return _0xfea7;}['hasSuggestion'](_0x31d852){return this['_suggestions']['has'](_0x31d852);}['addSuggestionData'](_0x306566){const {authorId:_0x182852,id:_0x275324,attributes:_0x43f843}=_0x306566,[_0xc1ee51,_0x199ebd]=_0x306566['type']['split'](':'),_0x1b5dd6=this['_suggestions']['get'](_0x275324)||this['_createSuggestion'](_0xc1ee51,_0x199ebd,_0x275324,_0x182852,_0x43f843);if(this['_addThreadToSuggestion'](_0x1b5dd6),this['_checkSuggestionCorrectness'](_0x1b5dd6,_0xc1ee51,_0x199ebd||null,_0x182852),_0x1b5dd6['createdAt']=_0x306566['createdAt'],_0x1b5dd6['_isDataLoaded']=!0x0,_0x43f843&&_0x43f843['@external']){const _0x589b8c=_0x43f843['@external'],_0x152754=this['_getExternalAuthor'](_0x589b8c['authorName']);_0x1b5dd6['authoredAt']=_0x589b8c['createdAt'],_0x1b5dd6['author']=_0x152754,_0x1b5dd6['isExternal']=!0x0;}else _0x1b5dd6['authoredAt']=_0x306566['createdAt'];switch(_0x306566['data']&&(_0x1b5dd6['data']=_0x306566['data']),_0x306566['attributes']&&(_0x1b5dd6['attributes']=_0x306566['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1b5dd6['_saved']=!0x0),this['_suggestionState']['get'](_0x1b5dd6)){case'notReady':this['_suggestionState']['set'](_0x1b5dd6,'dataReady');break;case'markerReady':_0x1b5dd6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1b5dd6])),this['_refreshSuggestionsChain'](new Set([_0x1b5dd6])),this['_suggestionState']['set'](_0x1b5dd6,'ready'),this['fire']('suggestionLoaded',_0x1b5dd6)):this['_suggestionState']['set'](_0x1b5dd6,'removed');}return _0x1b5dd6;}['acceptSuggestion'](_0xe06385){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a6bc8 of _0xe06385['getAllAdjacentSuggestions']())_0x4a6bc8['accept']();});});}['discardSuggestion'](_0x595b71){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x58d3e1 of _0x595b71['getAllAdjacentSuggestions']())_0x58d3e1['discard']();});});}['enableCommand'](_0x3f5658,_0x12281e){const _0x3175a5=this['editor']['commands']['get'](_0x3f5658);if(!_0x3175a5)throw new _0x4ee7fd('track-changes-command-not-found',this,{'commandName':_0x3f5658});if(this['_enabledCommands']['has'](_0x3175a5))throw new _0x4ee7fd('track-changes-enable-command-twice',this,{'commandName':_0x3f5658});this['_enabledCommands']['add'](_0x3175a5),_0x12281e&&_0x3175a5['on']('execute',(_0x588dc1,_0x36e9c3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x36e9c3['length']>0x0&&_0x36e9c3[_0x36e9c3['length']-0x1]&&_0x36e9c3[_0x36e9c3['length']-0x1]['forceDefaultExecution']?_0x36e9c3['pop']():(_0x588dc1['return']=_0x12281e((..._0x340436)=>_0x3175a5['execute'](..._0x340436,{'forceDefaultExecution':!0x0}),..._0x36e9c3),_0x588dc1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xf82e4d){let _0x36f956,_0x139d0b;const _0x55a5ed=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x36f956=_0xf82e4d();}catch(_0x34b062){_0x139d0b=_0x34b062;}return _0x55a5ed||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x139d0b&&_0x4ee7fd['rethrowUnexpectedError'](_0x139d0b,this),_0x36f956;}['markInsertion'](_0x2c1981,_0x23dc30=null,_0x1df190={}){if(_0x2c1981['isCollapsed'])return null;const _0x454729=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5ebcac,meta:_0x248753}of this['_findSuggestions'](_0x2c1981,'insertion'))if(_0x248753['isOwn']){if(!_0x248753['isNextTo']){if(_0x248753['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x5ebcac,_0x1df190))continue;return _0x5ebcac;}if(qt(_0x5ebcac,_0x1df190))return _0x5ebcac;this['_breakSuggestionMarker'](_0x5ebcac,_0x2c1981['start'],_0x2c1981['end']);break;}if(_0x23dc30==_0x5ebcac['subType']&&qt(_0x5ebcac,_0x1df190)){const _0x1ec9c3=_0x5ebcac['getFirstRange']();return _0x1ec9c3['start']['isEqual'](_0x2c1981['end'])?this['_setSuggestionRange'](_0x5ebcac,this['_model']['createRange'](_0x2c1981['start'],_0x1ec9c3['end'])):this['_setSuggestionRange'](_0x5ebcac,this['_model']['createRange'](_0x1ec9c3['start'],_0x2c1981['end'])),_0x5ebcac;}}const _0x47d15a=_0x546e08(),_0x5588bb=_0x454729['id'],_0x1d72f5=_0x23dc30?'insertion:'+_0x23dc30:'insertion',_0x1bb88c=this['_setSuggestionData']({'id':_0x47d15a,'type':_0x1d72f5,'createdAt':new Date(),'authorId':_0x5588bb,'attributes':_0x1df190});return this['_addSuggestionMarker'](_0x1d72f5,_0x47d15a,_0x5588bb,_0x2c1981),_0x1bb88c;}['markMultiRangeInsertion'](_0x39ca88,_0x737dcc='multi',_0x557f70={}){const _0x15663a=this['editor']['plugins']['get']('Users')['me'],_0x3113fe=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x737dcc,'join');for(const _0x2f2938 of this['getSuggestions']())if(_0x2f2938['author']['id']==_0x15663a['id']&&'insertion'==_0x2f2938['type']&&_0x2f2938['subType']==_0x737dcc&&qt(_0x2f2938,_0x557f70)&&(_0x3113fe(_0x2f2938['getRanges'](),_0x39ca88)||_0x3113fe(_0x39ca88,_0x2f2938['getRanges']()))){for(const _0x566623 of _0x39ca88)_0x2f2938['addRange'](_0x566623);return _0x2f2938;}for(const {suggestion:_0x4245e3,meta:_0x4e5747}of this['_findSuggestions'](_0x39ca88,'insertion')){if(!_0x4e5747['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4e5747['containsRangeInObject'])continue;if(!qt(_0x4245e3,_0x557f70))continue;let _0x19b687=!0x0;for(const _0x4da519 of _0x4245e3['getRanges']())for(const _0x4d4ca9 of _0x39ca88)if(!_0x4da519['containsRange'](_0x4d4ca9)){_0x19b687=!0x1;break;}if(_0x19b687)return _0x4245e3;}const _0x39057c=_0x546e08(),_0x2eda31=_0x15663a['id'],_0xe6a58c='insertion:'+_0x737dcc,_0x45b71c=this['_setSuggestionData']({'id':_0x39057c,'type':_0xe6a58c,'createdAt':new Date(),'authorId':_0x2eda31,'attributes':_0x557f70});for(const _0x21a965 of _0x39ca88)this['_addSuggestionMarker'](_0xe6a58c,_0x39057c,_0x2eda31,_0x21a965,u['getMultiRangeId']());return _0x45b71c;}['markInlineFormat'](_0x10b66c,_0x4f8483,_0x2f484d=null,_0x1d9fb6={}){if(_0x2f484d=_0x2f484d||Gt(_0x4f8483),_0x10b66c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xd504c9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f484d,'accept');return this['forceDefaultExecution'](()=>_0xd504c9([_0x10b66c],_0x4f8483,_0x1d9fb6)),null;}const _0x24ed79=this['editor']['plugins']['get']('Users')['me'],_0x4f69f0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3feb11,meta:_0x298e78}of this['_findSuggestions'](_0x10b66c,'insertion'))_0x298e78['isOwn']&&!_0x298e78['isInsideObject']&&_0x4f69f0['push'](..._0x3feb11['getRanges']());}const _0xb98759=function(_0x235b45,_0x2eb81f){const _0x59db38=[];for(const _0x354b07 of _0x2eb81f){const _0x1db97a=_0x235b45['getIntersection'](_0x354b07);_0x1db97a&&_0x59db38['push'](_0x1db97a);}return _0x59db38;}(_0x10b66c,_0x4f69f0),_0x58ad74=function(_0x12992a,_0x302223){const _0x410bf6=[_0x12992a];for(const _0x3c89c0 of _0x302223){let _0x897208=0x0;for(;_0x897208<_0x410bf6['length'];){const _0x3d07e4=_0x410bf6[_0x897208]['getDifference'](_0x3c89c0);_0x410bf6['splice'](_0x897208,0x1,..._0x3d07e4),_0x897208+=_0x3d07e4['length'];}}return _0x410bf6;}(_0x10b66c,_0x4f69f0);_0xb98759['length']&&this['_model']['change'](()=>{for(const _0xc83220 of _0xb98759){const _0x2aa2f2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f484d,'accept');this['forceDefaultExecution'](()=>_0x2aa2f2([_0xc83220],_0x4f8483,_0x1d9fb6));}});for(const _0x550e9e of _0x58ad74){let _0x4620bd=null,_0x51d2e3=_0x550e9e['start'],_0x52624b=_0x550e9e['end'];for(const {suggestion:_0x47cfaf,meta:_0x368210}of this['_findSuggestions'](_0x550e9e,'formatInline')){if(!_0x368210['isOwn'])continue;if(_0x47cfaf['subType']!=_0x2f484d)continue;if(!qt(_0x47cfaf,_0x1d9fb6))continue;const _0x143c95=_0x47cfaf['getFirstRange']();if(_0x143c95['containsRange'](_0x550e9e,!0x0))return null;_0x51d2e3=_0x51d2e3['isBefore'](_0x143c95['start'])?_0x51d2e3:_0x143c95['start'],_0x52624b=_0x52624b['isAfter'](_0x143c95['end'])?_0x52624b:_0x143c95['end'],_0x4620bd?_0x143c95['start']['isBefore'](_0x4620bd['getFirstRange']()['start'])?(_0x4620bd['removeMarkers'](),_0x4620bd=_0x47cfaf):_0x47cfaf['removeMarkers']():_0x4620bd=_0x47cfaf;}const _0x2a74d7=this['_model']['createRange'](_0x51d2e3,_0x52624b);if(_0x4620bd)this['_setSuggestionRange'](_0x4620bd,_0x2a74d7);else{const _0x142c4b=_0x546e08(),_0x152000=_0x24ed79['id'];this['_setSuggestionData']({'id':_0x142c4b,'type':'formatInline:'+_0x2f484d,'data':_0x4f8483,'createdAt':new Date(),'authorId':_0x152000,'attributes':_0x1d9fb6}),this['_addSuggestionMarker']('formatInline:'+_0x2f484d,_0x142c4b,_0x152000,_0x2a74d7);}}return null;}['markBlockFormat'](_0x4e72b0,_0x4b06be,_0x52dd55=[],_0x4dc31f=null,_0x21423b={}){_0x4b06be['formatGroupId']||(_0x4b06be['formatGroupId']=_0x4b06be['commandName']),_0x4b06be['multipleBlocks']=_0x4e72b0['is']('range'),_0x4dc31f=_0x4dc31f||Gt(_0x4b06be);const _0x1443f8=_0x52dd55['map'](_0x974bad=>Lt(_0x974bad,this['_model'])),_0x5a2491=_0x4e72b0['is']('range')?_0x4e72b0:Lt(_0x4e72b0,this['_model']);if('never'===this['_trackFormatChanges']){const _0x501cd7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4dc31f,'accept');return this['forceDefaultExecution'](()=>_0x501cd7([_0x5a2491],_0x4b06be,_0x21423b)),null;}_0x1443f8['push'](_0x5a2491);let _0x28aafe=!0x0;for(const _0x1b6950 of _0x1443f8)if(!this['_rangeIsInLocalUserInsertion'](_0x1b6950)){_0x28aafe=!0x1;break;}if(_0x28aafe&&'always'!==this['_trackFormatChanges']){const _0x5808bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4dc31f,'accept');return this['forceDefaultExecution'](()=>_0x5808bf([_0x5a2491],_0x4b06be,_0x21423b)),null;}let _0x1599ac=null,_0x1a61b8=_0x5a2491['start'],_0x297904=_0x5a2491['end'];for(const {suggestion:_0x4a2412,meta:_0x2645c1}of this['_findSuggestions'](_0x5a2491,'formatBlock')){if(!_0x2645c1['isOwn'])continue;if(_0x2645c1['isNextTo']||_0x2645c1['containsRangeInObject']||_0x2645c1['isInsideObject'])continue;if(_0x4a2412['data']['formatGroupId']!=_0x4b06be['formatGroupId'])continue;if(!qt(_0x4a2412,_0x21423b))continue;const _0x833f69=_0x4a2412['getFirstRange']();if(_0x4a2412['subType']==_0x4dc31f){if(_0x833f69['containsRange'](_0x5a2491,!0x0))return null;_0x1a61b8=_0x1a61b8['isBefore'](_0x833f69['start'])?_0x1a61b8:_0x833f69['start'],_0x297904=_0x297904['isAfter'](_0x833f69['end'])?_0x297904:_0x833f69['end'],_0x1599ac?_0x833f69['start']['isBefore'](_0x1599ac['getFirstRange']()['start'])?(_0x1599ac['removeMarkers'](),_0x1599ac=_0x4a2412):_0x4a2412['removeMarkers']():_0x1599ac=_0x4a2412;}else{const _0x4494b5=_0x5a2491['getIntersection'](_0x833f69);this['_cutOutSuggestionMarker'](_0x4a2412,_0x4494b5);}}const _0x123022=this['editor']['plugins']['get']('Users')['me'],_0x4f5be5=_0x546e08(),_0x25eba5=_0x123022['id'];if(_0x1599ac)return this['_setSuggestionRange'](_0x1599ac,this['_model']['createRange'](_0x1a61b8,_0x297904)),_0x1599ac;{const _0xcaafcf=this['_setSuggestionData']({'id':_0x4f5be5,'type':'formatBlock:'+_0x4dc31f,'data':_0x4b06be,'createdAt':new Date(),'authorId':_0x25eba5,'attributes':_0x21423b});return this['_addSuggestionMarker']('formatBlock:'+_0x4dc31f,_0x4f5be5,_0x25eba5,this['_model']['createRange'](_0x1a61b8,_0x297904)),_0xcaafcf;}}['markMultiRangeBlockFormat'](_0x4575a4,_0x501210,_0x3fd6ee=[],_0x798e43=null,_0x37d50b={}){_0x501210['formatGroupId']||(_0x501210['formatGroupId']=_0x501210['commandName']);const _0x48c239=_0x4575a4[0x0];_0x501210['multipleBlocks']=_0x48c239['is']('range'),_0x798e43=_0x798e43||Gt(_0x501210);const _0x2ae3bd=_0x3fd6ee['map'](_0x704829=>Lt(_0x704829,this['_model'])),_0x117d33=_0x48c239['is']('range')?_0x4575a4:_0x4575a4['map'](_0x18a58e=>Lt(_0x18a58e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3deaba=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x798e43,'accept');return this['forceDefaultExecution'](()=>_0x3deaba(_0x117d33,_0x501210,_0x37d50b)),null;}_0x2ae3bd['push'](..._0x117d33);let _0x73ca5c=!0x0;for(const _0x3c86c4 of _0x2ae3bd)if(!this['_rangeIsInLocalUserInsertion'](_0x3c86c4)){_0x73ca5c=!0x1;break;}if(_0x73ca5c&&'always'!==this['_trackFormatChanges']){const _0x98ed85=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x798e43,'accept');return this['forceDefaultExecution'](()=>_0x98ed85(_0x117d33,_0x501210,_0x37d50b)),null;}const _0x59800e=this['editor']['plugins']['get']('Users')['me'];for(const _0x46b5bb of this['getSuggestions']()){if(_0x46b5bb['author']['id']!=_0x59800e['id'])continue;if('formatBlock'!=_0x46b5bb['type']||_0x46b5bb['data']['formatGroupId']!=_0x501210['formatGroupId'])continue;if(!qt(_0x46b5bb,_0x37d50b))continue;const _0x4458ff=_0x46b5bb['subType']==_0x798e43;for(let _0x1db6dc=0x0;_0x1db6dc<_0x117d33['length'];_0x1db6dc++){const _0x1a02ff=_0x117d33[_0x1db6dc];for(const _0xe0aaad of _0x46b5bb['getMarkers']()){const _0x2c84d0=_0xe0aaad['getRange']();if(_0x1a02ff['isEqual'](_0x2c84d0)){_0x4458ff?(_0x117d33['splice'](_0x1db6dc,0x1),_0x1db6dc--):_0x46b5bb['removeMarker'](_0xe0aaad['name']);break;}}}}if(0x0==_0x117d33['length'])return null;const _0x319fb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x798e43,'join');for(const _0x925261 of this['getSuggestions']())if(_0x925261['author']['id']==_0x59800e['id']&&'formatBlock'==_0x925261['type']&&_0x925261['data']['formatGroupId']==_0x501210['formatGroupId']&&_0x925261['subType']==_0x798e43&&qt(_0x925261,_0x37d50b)&&(_0x319fb6(_0x925261['getRanges'](),_0x117d33)||_0x319fb6(_0x117d33,_0x925261['getRanges']()))){for(const _0x366eb9 of _0x117d33)_0x925261['addRange'](_0x366eb9);return _0x925261;}const _0x2b941c=_0x546e08(),_0x46e2af=_0x59800e['id'],_0x20a7ad='formatBlock:'+_0x798e43,_0x19fcae=this['_setSuggestionData']({'id':_0x2b941c,'type':_0x20a7ad,'data':_0x501210,'createdAt':new Date(),'authorId':_0x46e2af,'attributes':_0x37d50b});for(const _0x464c04 of _0x117d33)this['_addSuggestionMarker'](_0x20a7ad,_0x2b941c,_0x46e2af,_0x464c04,u['getMultiRangeId']());return _0x19fcae;}['markDeletion'](_0x1c6977,_0x495281=null,_0x11c6dc={}){if(_0x1c6977['isCollapsed'])return null;const _0x140be4=this['editor']['plugins']['get']('Users')['me'],_0x266e8b=new _0x1ac7bd(_0x1c6977['start'],_0x1c6977['end']);for(const {suggestion:_0x4abef9,meta:_0x451c8a}of this['_findSuggestions'](_0x266e8b,'insertion'))if(_0x451c8a['isOwn']&&!_0x451c8a['isNextTo']){if(_0x4abef9['isMultiRange']){const _0x54c1c7=_0x4abef9['getRanges']()['filter'](_0x11000c=>'$graveyard'!=_0x11000c['root']['rootName']);_0x54c1c7['every'](_0x1d59c8=>_0x266e8b['containsRange'](_0x1d59c8,!0x0))&&_0x4abef9['discard']();if(_0x54c1c7['some'](_0x3a0b91=>_0x3a0b91['containsRange'](_0x266e8b,!0x0))){const _0x58ecee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x495281,'accept');return this['forceDefaultExecution'](()=>_0x58ecee([_0x266e8b],null,_0x11c6dc)),null;}}else{const _0x13c93c=_0x266e8b['getIntersection'](_0x4abef9['getFirstRange']());null!==_0x13c93c&&_0x4abef9['_onDiscard']([_0x13c93c],null,_0x11c6dc);}}if(_0x266e8b['detach'](),_0x266e8b['isCollapsed']||'$graveyard'==_0x266e8b['root']['rootName'])return null;let _0xcd8a58=null,_0x49df57=_0x266e8b['start'],_0x4550fa=_0x266e8b['end'];const _0x5b94cb=this['_findSuggestions'](_0x266e8b,'deletion');for(const {suggestion:_0x2e0be3,meta:_0x2f891d}of _0x5b94cb){const _0x1ed36=this['_model']['createRange'](_0x49df57,_0x4550fa);if(_0x2f891d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2f891d['containsRangeInObject']&&!_0x2f891d['isInsideObject'])){if(_0x2e0be3['isMultiRange']){if(!qt(_0x2e0be3,_0x11c6dc))continue;let _0x347eb0=!0x0;for(const _0x368e7f of _0x2e0be3['getRanges']()){if(_0x368e7f['containsRange'](_0x1ed36,!0x0))return _0x2e0be3;_0x1ed36['containsRange'](_0x368e7f)||(_0x347eb0=!0x1);}_0x347eb0&&_0x2e0be3['discard']();}else{const _0x2859a7=_0x2e0be3['getFirstRange']();if(_0x2859a7['containsRange'](_0x1ed36,!0x0))return _0x2e0be3;if(!qt(_0x2e0be3,_0x11c6dc)){_0x1ed36['containsRange'](_0x2859a7)?_0x2e0be3['removeMarkers']():_0x2859a7['containsPosition'](_0x49df57)?_0x49df57=_0x2859a7['end']:_0x2859a7['containsPosition'](_0x4550fa)&&(_0x4550fa=_0x2859a7['start']);continue;}_0x49df57=_0x49df57['isBefore'](_0x2859a7['start'])?_0x49df57:_0x2859a7['start'],_0x4550fa=_0x4550fa['isAfter'](_0x2859a7['end'])?_0x4550fa:_0x2859a7['end'],_0x11c6dc=Object['assign']({},_0x2e0be3['attributes']),_0xcd8a58?_0x2859a7['start']['isBefore'](_0xcd8a58['getFirstRange']()['start'])?(_0xcd8a58['removeMarkers'](),_0xcd8a58=_0x2e0be3):_0x2e0be3['removeMarkers']():_0xcd8a58=_0x2e0be3;}}}if(_0xcd8a58)return this['_setSuggestionRange'](_0xcd8a58,this['_model']['createRange'](_0x49df57,_0x4550fa)),_0xcd8a58;{const _0x244435=_0x546e08(),_0x4217b9=this['_model']['createRange'](_0x49df57,_0x4550fa),_0x28679c=_0x140be4['id'],_0x339112=_0x495281?'deletion:'+_0x495281:'deletion',_0xb31888=this['_setSuggestionData']({'id':_0x244435,'type':_0x339112,'createdAt':new Date(),'authorId':_0x28679c,'attributes':_0x11c6dc});return this['_addSuggestionMarker'](_0x339112,_0x244435,_0x28679c,_0x4217b9),_0xb31888;}}['markMultiRangeDeletion'](_0x4e654e,_0xefd25b='multi',_0x22929e={}){const _0x3d5972=this['editor']['plugins']['get']('Users')['me'],_0x22a87f=_0x4e654e['map'](_0x368b9e=>new _0x1ac7bd(_0x368b9e['start'],_0x368b9e['end'])),_0x36a922=new Set();for(const {suggestion:_0x5b3be8,meta:_0x5a9978}of this['_findSuggestions'](_0x22a87f,'insertion'))_0x5a9978['isOwn']&&!_0x5a9978['isNextTo']&&_0x36a922['add'](_0x5b3be8);for(const _0x26eeab of _0x36a922)if(_0x26eeab['isMultiRange']){const _0xeae78c=_0x26eeab['getRanges']();(!_0x26eeab['attributes']||!_0x26eeab['attributes']['skipNestingCheck'])&&(_0xeae78c['every'](_0x412075=>_0x22a87f['some'](_0x126443=>_0x126443['containsRange'](_0x412075,!0x0)))&&_0x26eeab['discard']());if(_0x22a87f['every'](_0x28604d=>_0xeae78c['some'](_0x15505f=>_0x15505f['containsRange'](_0x28604d,!0x0)))){const _0x17e5ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xefd25b,'accept');return this['forceDefaultExecution'](()=>_0x17e5ba(_0x4e654e,null,_0x22929e)),null;}}else{const _0x106ea=_0x26eeab['getFirstRange']();_0x22a87f['some'](_0x3f0858=>_0x3f0858['containsRange'](_0x106ea,!0x0))&&_0x26eeab['discard']();if(_0x22a87f['every'](_0xb29a78=>_0x106ea['containsRange'](_0xb29a78,!0x0))){const _0xda8f66=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xefd25b,'accept');return this['forceDefaultExecution'](()=>_0xda8f66(_0x22a87f,null,_0x22929e)),null;}}const _0x26d8dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xefd25b,'join');let _0xce5ce=null;for(const _0x180dc8 of this['getSuggestions']())if(_0x180dc8['author']['id']==_0x3d5972['id']&&_0x180dc8['isInContent']&&'deletion'==_0x180dc8['type']&&_0x180dc8['subType']==_0xefd25b&&qt(_0x180dc8,_0x22929e)&&(_0x26d8dd(_0x180dc8['getRanges'](),_0x22a87f)||_0x26d8dd(_0x22a87f,_0x180dc8['getRanges']()))){if(_0xce5ce){if(_0x180dc8['commentThread']&&_0x180dc8['commentThread']['length'])continue;for(const _0x84761b of _0x180dc8['getRanges']())_0xce5ce['isIntersectingWithRange'](_0x84761b)||_0xce5ce['addRange'](_0x84761b);_0x180dc8['removeMarkers']();}else{_0xce5ce=_0x180dc8;for(const _0x3e8bc7 of _0x22a87f)_0x180dc8['isIntersectingWithRange'](_0x3e8bc7)||_0x180dc8['addRange'](_0x3e8bc7);}}if(_0xce5ce)return _0xce5ce;_0x36a922['clear']();for(const {suggestion:_0x4260cd,meta:_0x543011}of this['_findSuggestions'](_0x22a87f,'deletion'))_0x543011['isOwn']&&(this['_mergeNestedSuggestions']||!_0x543011['containsRangeInObject']&&!_0x543011['isInsideObject'])&&qt(_0x4260cd,_0x22929e)&&_0x36a922['add'](_0x4260cd);for(const _0x6aab5e of _0x36a922){const _0x19901a=_0x6aab5e['getRanges']();if(!_0x22929e||!_0x22929e['skipNestingCheck']){if(_0x22a87f['every'](_0x54788c=>_0x19901a['some'](_0x4a0e2d=>_0x4a0e2d['containsRange'](_0x54788c,!0x0))))return _0x6aab5e;}(!_0x6aab5e['attributes']||!_0x6aab5e['attributes']['skipNestingCheck'])&&(_0x19901a['every'](_0xb4ee10=>_0x22a87f['some'](_0x10e06d=>_0x10e06d['containsRange'](_0xb4ee10,!0x0)))&&_0x6aab5e['discard']());}const _0x27af77=_0x546e08(),_0x52041c=_0x3d5972['id'],_0x53c37b='deletion:'+_0xefd25b,_0x47b3c1=this['_setSuggestionData']({'id':_0x27af77,'type':_0x53c37b,'createdAt':new Date(),'authorId':_0x52041c,'attributes':_0x22929e});for(const _0x246460 of _0x22a87f)_0x246460['detach'](),_0x246460['isCollapsed']||'$graveyard'==_0x246460['root']['rootName']||this['_addSuggestionMarker'](_0x53c37b,_0x27af77,_0x52041c,_0x246460,u['getMultiRangeId']());return _0x47b3c1;}['markAttributeChange'](_0x1aae48,_0x98c35a,_0x768b46,_0x27a9fd,_0xfc4a7){if(_0x1aae48['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1749ac=this['editor']['plugins']['get']('Users')['me']['id'],_0x3b4c74=Array['from'](this['_suggestions']['values']())['filter'](_0x32a31f=>'attribute'==_0x32a31f['type']&&_0x32a31f['data']['key']==_0x98c35a&&_0x32a31f['isIntersectingWithRange'](_0x1aae48));if('default'===this['_trackFormatChanges']){const _0xfd4aac=this['_findSuggestions'](_0x1aae48,'insertion')['filter'](({meta:_0x4689a5})=>_0x4689a5['isOwn']&&!_0x4689a5['isInsideObject']&&!_0x4689a5['isNextTo'])['map'](({suggestion:_0x35b7bb})=>_0x35b7bb);_0x3b4c74['unshift'](..._0xfd4aac);}const _0x308827=new Map([[_0x1aae48,_0x768b46]]);for(const _0x4c5bad of _0x3b4c74){const _0x1c1b8d='attribute'==_0x4c5bad['type']?_0x4c5bad['data']['oldValue']:void 0x0,_0x568940=_0x4c5bad['getFirstRange'](),_0x2f9560=Array['from'](_0x308827['keys']())['find'](_0x12f8b8=>_0x12f8b8['isIntersecting'](_0x568940));if(!_0x2f9560)continue;const _0x12f5f1=_0x2f9560['getDifference'](_0x568940);this['_isBlockAttribute'](_0x98c35a)&&'insertion'==_0x4c5bad['type']&&0x0!=_0x12f5f1['length']||(_0x308827['delete'](_0x2f9560),_0x12f5f1['forEach'](_0x2edd14=>{_0x308827['set'](_0x2edd14,_0x768b46);}),'insertion'!=_0x4c5bad['type']&&_0x1c1b8d!=_0x27a9fd&&_0x308827['set'](_0x2f9560['getIntersection'](_0x568940),_0x1c1b8d));}const _0x235354=[];for(const [_0x532f96,_0xd42de9]of _0x308827){const _0x59205c=_0x546e08(),_0x2535d3={'key':_0x98c35a,'oldValue':_0xd42de9,'newValue':_0x27a9fd};_0x98c35a['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':_0x98c35a});const _0x3e0c83=('attribute:'+(_0x98c35a+'|'+Gt({'newValue':_0x27a9fd})))['substring'](0x0,0x3c),_0x459061=this['_setSuggestionData']({'id':_0x59205c,'type':_0x3e0c83,'data':_0x2535d3,'createdAt':new Date(),'authorId':_0x1749ac,'attributes':_0xfc4a7});_0x235354['push'](_0x459061),this['_addSuggestionMarker'](_0x3e0c83,_0x59205c,_0x1749ac,_0x532f96);}return _0x235354;}['enableDefaultAttributesIntegration'](_0x46bfdb){this['enableCommand'](_0x46bfdb,(_0x110403,..._0x1fbdb9)=>{this['_recordAttributeChanges'](()=>{_0x110403(..._0x1fbdb9);});});}['registerBlockAttribute'](_0x143935){this['_blockAttributeKeys']['add'](_0x143935);}['registerInlineAttribute'](_0x55a84e){this['_inlineAttributeKeys']['add'](_0x55a84e);}['_getAttributeKey'](_0x2739f7){return'attribute'==_0x2739f7['type']?_0x2739f7['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x57fb27,_0x4fb7f6){const _0x2c7fda=_0x57fb27['getFirstMarker']();this['_model']['change'](_0x4ff37d=>{_0x4ff37d['updateMarker'](_0x2c7fda,{'range':_0x4fb7f6});});}['_addThreadToSuggestion'](_0x34db6c){const _0x3d9072=_0x34db6c['id'],_0x40057d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3d9072)||this['_commentsRepository']['addCommentThread']({'channelId':_0x40057d,'threadId':_0x3d9072,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2dde39=this['_commentsRepository']['getCommentThread'](_0x3d9072);_0x2dde39['unbind']('isRemovable'),_0x2dde39['isRemovable']=!0x1,_0x34db6c['commentThread']=_0x2dde39;}['_checkSuggestionCorrectness'](_0x2d8d98,_0x31932d,_0x4ea82a,_0x16824a){if(_0x2d8d98['type']!=_0x31932d||_0x2d8d98['subType']!=_0x4ea82a||_0x2d8d98['creator']['id']!=_0x16824a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4ee7fd('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1e11c7,_0x5a8500){const _0x47dfaf=_0x1e11c7['getFirstRange']();if(_0x5a8500['isEqual'](_0x47dfaf))_0x1e11c7['removeMarkers']();else{if(_0x47dfaf['containsRange'](_0x5a8500)){const _0x436408=this['_model']['createPositionAt'](_0x5a8500['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1e11c7,this['_model']['createRange'](_0x47dfaf['start'],_0x436408));const _0x19ba49=_0x546e08(),_0x2d510f=_0x1e11c7['creator']['id'],_0xb9c08e=_0x1e11c7['type']+':'+_0x1e11c7['subType'];this['_setSuggestionData']({'id':_0x19ba49,'type':_0xb9c08e,'createdAt':new Date(),'authorId':_0x2d510f,'data':_0x1e11c7['data'],'attributes':_0x1e11c7['attributes']});const _0x2bd2d4=this['_model']['createPositionAt'](_0x5a8500['end']['parent'],'after'),_0x177e48=this['_model']['createRange'](_0x2bd2d4,_0x47dfaf['end']);this['_addSuggestionMarker'](_0xb9c08e,_0x19ba49,_0x2d510f,_0x177e48);}else{if(_0x47dfaf['containsPosition'](_0x5a8500['start'])){const _0x5c5369=this['_model']['createPositionAt'](_0x5a8500['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1e11c7,this['_model']['createRange'](_0x47dfaf['start'],_0x5c5369));}else{const _0x267053=this['_model']['createPositionAt'](_0x5a8500['end']['parent'],'after');this['_setSuggestionRange'](_0x1e11c7,this['_model']['createRange'](_0x267053,_0x47dfaf['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xe99f07){for(const {suggestion:_0x5ac2d9,meta:_0x272be0}of this['_findSuggestions'](_0xe99f07,'insertion')){if(!_0x272be0['isOwn'])continue;const _0x127897=_0x5ac2d9['getRanges']();for(const _0x1d605c of _0x127897)if(!_0xe99f07['getDifference'](_0x1d605c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x35c70b){const _0x26a055=this['editor']['plugins']['get']('Users')['getUser'](_0x35c70b);if(!_0x26a055)throw new _0x4ee7fd('track-changes-user-not-found',this);return _0x26a055;}['_getExternalAuthor'](_0x284101){const _0x2894e8=this['editor']['plugins']['get']('Users'),_0x244a7b=_0x4bbe82('external:'+_0x284101),_0xeb8cc1=_0x2894e8['getUser'](_0x244a7b);return _0xeb8cc1||_0x2894e8['addUser']({'id':_0x244a7b,'name':_0x284101});}['_createSuggestion'](_0x5bb76c,_0x4b38a8,_0x5865ee,_0x5281a9,_0x14b928){const _0x1fdb5a=this['_getAuthorFromId'](_0x5281a9),_0x195a2d=this['_suggestionFactory']['buildSuggestion'](_0x5bb76c,_0x4b38a8,_0x5865ee,_0x1fdb5a,_0x14b928,_0x58f347=>{this['_updateSuggestionData'](_0x5865ee,{'attributes':_0x58f347});const _0x72018c=this['getSuggestion'](_0x5865ee);this['_joinWithAdjacentSuggestions'](new Set([_0x72018c])),this['_refreshSuggestionsChain'](new Set([_0x72018c]));});return this['listenTo'](_0x195a2d,'accept',()=>{this['_updateSuggestionData'](_0x5865ee,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x195a2d,'discard',()=>{this['_updateSuggestionData'](_0x5865ee,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5865ee,_0x195a2d),this['_suggestionState']['set'](_0x195a2d,'notReady'),_0x195a2d;}['_splitMarkerName'](_0x57a3a6){const _0xfe81e1=_0x57a3a6['split'](':');return{'group':_0xfe81e1[0x0],'type':_0xfe81e1[0x1],'subType':_0xfe81e1['length']>=0x5?_0xfe81e1[0x2]:null,'id':_0xfe81e1['length']<0x5?_0xfe81e1[0x2]:_0xfe81e1[0x3],'authorId':_0xfe81e1['length']<0x5?_0xfe81e1[0x3]:_0xfe81e1[0x4],'markerCount':0x6==_0xfe81e1['length']?_0xfe81e1[0x5]:null};}['_breakSuggestionMarker'](_0x36a94c,_0x1ae112,_0x1ed9a7){const _0x366f2b=_0x36a94c['getFirstRange'](),_0x1c6ec6=_0x366f2b['start'],_0x46adcb=_0x366f2b['end'];this['_setSuggestionRange'](_0x36a94c,this['_model']['createRange'](_0x1c6ec6,_0x1ae112));const _0x275cbd=_0x546e08(),_0x38cb25=_0x36a94c['creator']['id'],_0x36e1ba=_0x36a94c['type']+(_0x36a94c['subType']?':'+_0x36a94c['subType']:'');this['_setSuggestionData']({'id':_0x275cbd,'type':_0x36e1ba,'createdAt':new Date(),'authorId':_0x38cb25,'originalSuggestionId':_0x36a94c['id'],'attributes':_0x36a94c['attributes'],'data':_0x36a94c['data']});const _0x2ea4a2=this['_getAttributeKey'](_0x36a94c);('formatBlock'==_0x36a94c['type']||_0x2ea4a2&&this['_isBlockAttribute'](_0x2ea4a2))&&(_0x1ed9a7=this['_model']['createPositionBefore'](_0x1ed9a7['parent'])),this['_addSuggestionMarker'](_0x36e1ba,_0x275cbd,_0x38cb25,this['_model']['createRange'](_0x1ed9a7,_0x46adcb));}['_findSuggestions'](_0x51c3a9,_0x2aad3f=null){const _0x3ad251=[],_0x11a52b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x51c3a9)||(_0x51c3a9=[_0x51c3a9]);for(const _0xfc0cfc of this['getSuggestions']()){if(!_0xfc0cfc['isInContent'])continue;if(_0x2aad3f&&_0xfc0cfc['type']!=_0x2aad3f)continue;let _0x5dbeec=!0x1;for(const _0x19d1f of _0xfc0cfc['getRanges']()){for(const _0x56d6f5 of _0x51c3a9){const _0x39c848=_0x56d6f5['start']['isEqual'](_0x19d1f['end'])||_0x56d6f5['end']['isEqual'](_0x19d1f['start']);if(_0x39c848||_0x56d6f5['getIntersection'](_0x19d1f)){const _0x487e1f=_0x56d6f5['containsRange'](_0x19d1f)&&Ot(this['_model']['schema'],_0x19d1f['start'],_0x56d6f5),_0x2cd468=_0x19d1f['containsRange'](_0x56d6f5)&&Ot(this['_model']['schema'],_0x56d6f5['start'],_0x19d1f);_0x3ad251['push']({'suggestion':_0xfc0cfc,'meta':{'isOwn':_0x11a52b==_0xfc0cfc['author'],'isNextTo':_0x39c848,'isInsideObject':_0x487e1f,'containsRangeInObject':_0x2cd468}}),_0x5dbeec=!0x0;break;}}if(_0x5dbeec)break;}}return _0x3ad251;}['_addSuggestionMarker'](_0x5531ad,_0x1a9264,_0x2d5d40,_0x3b2934,_0x5da893){this['_model']['change'](_0xa41882=>{let _0x4440cc='suggestion:'+_0x5531ad+':'+_0x1a9264+':'+_0x2d5d40;_0x5da893&&(_0x4440cc=_0x4440cc+':'+_0x5da893),_0xa41882['addMarker'](_0x4440cc,{'range':_0x3b2934,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x197975){const _0x541cf9=_0x197975['previous'],_0x5a1795=_0x197975['next'];_0x197975['previous']=null,_0x197975['next']=null,null!=_0x541cf9&&_0x541cf9['next']==_0x197975&&(_0x541cf9['next']=_0x5a1795),null!=_0x5a1795&&_0x5a1795['previous']==_0x197975&&(_0x5a1795['previous']=_0x541cf9),'ready'==this['_suggestionState']['get'](_0x197975)&&(this['_suggestionState']['set'](_0x197975,'removed'),this['fire']('suggestionUnloaded',_0x197975,_0x541cf9,_0x5a1795));}['_setSuggestionData'](_0x3c3337){const _0x7bd63b=_0x3c3337['id'],_0x2cdd2c=this['addSuggestionData'](_0x3c3337);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x465c53=this['editor']['plugins']['get']('PendingActions'),_0x2a3402=_0x2cdd2c['hasComments'],_0x2faff0=_0x2cdd2c['subType']?_0x2cdd2c['type']+':'+_0x2cdd2c['subType']:_0x2cdd2c['type'],_0x20cf87=this['editor']['locale'],_0x47b5e3=_0x465c53['add'](o(_0x20cf87,'PENDING_ACTION_SUGGESTION')),_0x548ddd={'id':_0x7bd63b,'type':_0x2faff0,'hasComments':_0x2a3402,'data':_0x3c3337['data']||null,'originalSuggestionId':_0x3c3337['originalSuggestionId']||null,'attributes':_0x2cdd2c['attributes']};this['_adapter']['addSuggestion'](_0x548ddd)['then'](_0x36ea1e=>{_0x2cdd2c['_saved']=!0x0,_0x465c53['remove'](_0x47b5e3),_0x36ea1e&&_0x36ea1e['createdAt']&&(this['_suggestions']['get'](_0x7bd63b)['createdAt']=_0x36ea1e['createdAt']);})['catch'](_0x559f01=>{throw _0x4639c6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2cdd2c['discard']();}),_0x2cdd2c['stopListening'](),this['_suggestions']['delete'](_0x2cdd2c['id']),this['_suggestionState']['delete'](_0x2cdd2c),_0x559f01;});}return _0x2cdd2c;}['_isBlockAttribute'](_0x566485){return this['_blockAttributeKeys']['has'](_0x566485);}['_updateSuggestionData'](_0x429122,_0x47a31f){const _0x1a2c73=this['editor']['plugins']['get']('PendingActions'),_0x582eb0=this['getSuggestion'](_0x429122);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x582eb0['_saved']){const _0x2da2ea=_0x1a2c73['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x429122,_0x47a31f)['then'](()=>{_0x1a2c73['remove'](_0x2da2ea);});}else _0x582eb0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x429122,_0x47a31f);});}}['_getSuggestionData'](_0x3e76ea){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4ee7fd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3e76ea);}['_handleNewSuggestionMarker'](_0x4de0be){const {id:_0x364501,type:_0x135c24,subType:_0xabe19b,authorId:_0x4fd53d}=this['_splitMarkerName'](_0x4de0be),_0x51231e=this['_suggestions']['get'](_0x364501)||this['_createSuggestion'](_0x135c24,_0xabe19b,_0x364501,_0x4fd53d,{});switch(this['_checkSuggestionCorrectness'](_0x51231e,_0x135c24,_0xabe19b,_0x4fd53d),this['_suggestionState']['get'](_0x51231e)){case'notReady':this['_getSuggestionData'](_0x364501)['then'](_0x3ba1e2=>{let _0x24b8c7=Promise['resolve']();_0x3ba1e2['hasComments']&&(_0x24b8c7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x364501})),_0x24b8c7['then'](()=>{this['addSuggestionData'](_0x3ba1e2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x51231e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x364501,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x51231e,'ready'),this['fire']('suggestionLoaded',_0x51231e);break;case'ready':this['fire']('suggestionChanged',_0x51231e);}return _0x51231e['addMarkerName'](_0x4de0be),_0x51231e;}['_refreshSuggestionsChain'](_0x213d27){const _0x11065e=Array['from'](_0x213d27),_0x1e78f1=_0x11065e['filter'](_0x587407=>'attribute'==_0x587407['type']);this['_refreshAttributeSuggestionsChain'](_0x1e78f1);const _0x5d1c1d=_0x11065e['filter'](_0x276ca4=>!_0x276ca4['isMultiRange']&&'attribute'!=_0x276ca4['type']),_0x3b0354=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc2bfb5=>!_0xc2bfb5['isMultiRange']&&'attribute'!=_0xc2bfb5['type']),_0x3855f8=_0x3b0354['filter'](_0x205adb=>!_0x213d27['has'](_0x205adb)),_0x530c52=new Map(_0x3b0354['map'](_0x4ecf25=>[_0x4ecf25,this['_suggestionFactory']['getSuggestionCallback'](_0x4ecf25['type'],_0x4ecf25['subType'],'chain')])),_0xc3c749=new Map(_0x3b0354['map'](_0x3dda7f=>[_0x3dda7f,_0x3dda7f['getFirstRange']()])),_0x1bf7cd=new Set(),_0x45e27b=new Set();for(let _0x2addb2=0x0;_0x2addb2<_0x5d1c1d['length'];_0x2addb2++)_0x91b33d(_0x5d1c1d[_0x2addb2],_0x5d1c1d,_0x2addb2+0x1);for(let _0x31fc5a=0x0;_0x31fc5a<_0x5d1c1d['length'];_0x31fc5a++)_0x91b33d(_0x5d1c1d[_0x31fc5a],_0x3855f8,0x0);const _0x55b994=new Set();for(let _0x5560cf=0x0;_0x5560cf<_0x5d1c1d['length'];_0x5560cf++){const _0x304f73=_0x5d1c1d[_0x5560cf];!_0x45e27b['has'](_0x304f73)&&_0x304f73['previous']&&(_0x55b994['add'](_0x304f73['previous']),_0x304f73['previous']['next']===_0x304f73&&(_0x304f73['previous']['next']=null),_0x304f73['previous']=null),!_0x1bf7cd['has'](_0x304f73)&&_0x304f73['next']&&(_0x55b994['add'](_0x304f73['next']),_0x304f73['next']['previous']===_0x304f73&&(_0x304f73['next']['previous']=null),_0x304f73['next']=null);}function _0x91b33d(_0x26a3ad,_0x5d7b14,_0x49437d){for(let _0x47f9d9=_0x49437d;_0x47f9d9<_0x5d7b14['length'];_0x47f9d9++){const _0x3ea18e=_0x2b6ccb(_0x26a3ad,_0x5d7b14[_0x47f9d9]);_0x3ea18e&&(_0x3ea18e[0x0]['next']=_0x3ea18e[0x1],_0x3ea18e[0x1]['previous']=_0x3ea18e[0x0],_0x1bf7cd['add'](_0x3ea18e[0x0]),_0x45e27b['add'](_0x3ea18e[0x1]));}}function _0x2b6ccb(_0x3ac6fb,_0x4eec77){if(_0x3ac6fb['author']['id']!==_0x4eec77['author']['id'])return null;const _0x56a0e0=_0x530c52['get'](_0x3ac6fb)(_0x3ac6fb,_0x4eec77,_0xc3c749['get'](_0x3ac6fb),_0xc3c749['get'](_0x4eec77));if(!_0x56a0e0)return null;return _0x530c52['get'](_0x4eec77)(_0x3ac6fb,_0x4eec77,_0xc3c749['get'](_0x3ac6fb),_0xc3c749['get'](_0x4eec77))?_0x56a0e0[0x1]['commentThread']&&_0x56a0e0[0x1]['commentThread']['length']?null:_0x56a0e0:null;}_0x55b994['size']&&this['_refreshSuggestionsChain'](_0x55b994);}['_refreshAttributeSuggestionsChain'](_0x1e07ce){if(0x0==_0x1e07ce['length'])return;const _0x243297=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45e8d5=>'attribute'==_0x45e8d5['type']&&_0x45e8d5['_isDataLoaded']),_0x4a985c=[],_0x44cfb7=new Map();for(const _0x53e889 of _0x243297){const _0x16d887=_0x4bbe82(_0x53e889['attributes']);_0x44cfb7['has'](_0x16d887)||(_0x44cfb7['set'](_0x16d887,_0x4a985c['length']),_0x4a985c['push']([]));const _0x5cb38c=_0x44cfb7['get'](_0x16d887);_0x4a985c[_0x5cb38c]['push'](_0x53e889);}!(function(){_0x4a985c['sort']((_0x175656,_0xd43869)=>{const _0x543a07=_0x175656[0x0]['createdAt'],_0x118df5=_0xd43869[0x0]['createdAt'];return _0x543a07==_0x118df5?_0x175656[0x0]['attributes']['groupId']<_0xd43869[0x0]['attributes']['groupId']?-0x1:0x1:_0x543a07<_0x118df5?-0x1:0x1;});for(const _0x1f445a of _0x4a985c)_0x1f445a['sort']((_0x50bf98,_0x20120e)=>_0x50bf98['id']<_0x20120e['id']?-0x1:0x1);}());for(let _0x227226=0x0;_0x227226<_0x4a985c['length'];_0x227226++){if(0x0==_0x4a985c[_0x227226]['length'])continue;const _0x942332=[];for(let _0x27673f=_0x227226+0x1;_0x27673f<_0x4a985c['length'];_0x27673f++)0x0!=_0x4a985c[_0x27673f]['length']&&_0x151123(_0x4a985c[_0x227226],_0x4a985c[_0x27673f])&&_0x942332['push'](_0x27673f);for(const _0x3e31ab of _0x942332)_0x4a985c[_0x227226]=_0x4a985c[_0x227226]['concat'](_0x4a985c[_0x3e31ab]),_0x4a985c[_0x3e31ab]=[];}for(const _0x188d13 of _0x4a985c)for(let _0xf83b=0x0;_0xf83b<_0x188d13['length'];_0xf83b++){const _0x1f7a62=_0x188d13[_0xf83b+0x1]||null;_0x188d13[_0xf83b]['next']!==_0x1f7a62&&(_0x188d13[_0xf83b]['next']=_0x1f7a62);}for(const _0x4fbe09 of _0x4a985c)for(let _0x4fa6df=0x0;_0x4fa6df<_0x4fbe09['length'];_0x4fa6df++){const _0xffbc5=_0x4fbe09[_0x4fa6df-0x1]||null;_0x4fbe09[_0x4fa6df]['previous']!==_0xffbc5&&(_0x4fbe09[_0x4fa6df]['previous']=_0xffbc5);}function _0x151123(_0x2160b7,_0x5bedd7){if(_0x2160b7[0x0]['attributes']['groupId']!==_0x5bedd7[0x0]['attributes']['groupId']&&_0x2160b7[0x0]['author']!==_0x5bedd7[0x0]['author'])return!0x1;if(!function(_0x188900,_0xe783c6){if(!_0x188900['hasComments']&&!_0xe783c6['hasComments'])return!0x0;if(_0x188900['hasComments']&&_0xe783c6['hasComments'])return!0x1;if(_0x188900['hasComments']&&_0xe783c6['createdAt']<_0x188900['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe783c6['hasComments']&&_0x188900['createdAt']<_0xe783c6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2160b7[0x0],_0x5bedd7[0x0]))return!0x1;const _0x444f0e=Tt(_0x2160b7[0x0]['attributes'],'groupId'),_0x31cbfe=Tt(_0x5bedd7[0x0]['attributes'],'groupId');if(!_0x11af30(_0x444f0e,_0x31cbfe))return!0x1;return!!_0x2160b7['every'](_0xb5c1c6=>_0x5bedd7['some'](_0x180aa9=>_0xb5c1c6['getFirstRange']()['isEqual'](_0x180aa9['getFirstRange']())))&&_0x5bedd7['every'](_0x21c423=>_0x2160b7['some'](_0x14524b=>_0x21c423['getFirstRange']()['isEqual'](_0x14524b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x42af53){const _0x1be0e7=Array['from'](_0x42af53),_0x43968b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5535c2=_0x43968b['filter'](_0x1dde22=>!_0x42af53['has'](_0x1dde22)),_0x54e3d7=new Map(_0x1be0e7['map'](_0x5078f6=>[_0x5078f6,this['_suggestionFactory']['getSuggestionCallback'](_0x5078f6['type'],_0x5078f6['subType'],'join')])),_0xf371ff=new Map(_0x43968b['map'](_0x4d1d13=>[_0x4d1d13,_0x4d1d13['getRanges']()]));for(let _0x39ee57=0x0;_0x39ee57<_0x1be0e7['length'];_0x39ee57++){if(_0x2914d6(this,_0x1be0e7[_0x39ee57],_0x1be0e7,_0x39ee57+0x1))return!0x0;}for(let _0x28ccdd=0x0;_0x28ccdd<_0x1be0e7['length'];_0x28ccdd++){if(_0x2914d6(this,_0x1be0e7[_0x28ccdd],_0x5535c2,0x0))return!0x0;}return!0x1;function _0x2914d6(_0x4b9b35,_0x33f7a3,_0x13a770,_0x875bbe){for(let _0x2bca5d=_0x875bbe;_0x2bca5d<_0x13a770['length'];_0x2bca5d++){const _0x46902a=_0x13a770[_0x2bca5d];if(_0x46902a['type']!==_0x33f7a3['type']||_0x46902a['author']['id']!==_0x33f7a3['author']['id']||_0x46902a['subType']!==_0x33f7a3['subType'])continue;if(!Jt(_0x33f7a3,_0x46902a))continue;if('attribute'==_0x33f7a3['type']&&_0x33f7a3['data']['oldValue']!=_0x46902a['data']['oldValue'])continue;if('attribute'==_0x33f7a3['type']&&_0x4b9b35['_isBlockAttribute'](_0x33f7a3['data']['key']))continue;if('formatBlock'==_0x33f7a3['type']){const _0x43aa6a=_0x4b9b35['editor']['model'],_0x5e424a=_0x33f7a3['getContainedElement']();if(_0x5e424a&&(_0x43aa6a['schema']['isObject'](_0x5e424a)||_0x43aa6a['schema']['isLimit'](_0x5e424a)))continue;}const _0x4d2261=_0x54e3d7['get'](_0x33f7a3),_0x84905d=_0xf371ff['get'](_0x33f7a3),_0x95ed52=_0xf371ff['get'](_0x46902a),_0x4e5e93=_0x33f7a3['commentThread']&&_0x33f7a3['commentThread']['length'],_0x25ba30=_0x46902a['commentThread']&&_0x46902a['commentThread']['length'];if(!_0x4e5e93&&_0x4d2261(_0x95ed52,_0x84905d))return _0x4b9b35['_joinSuggestions'](_0x46902a,_0x33f7a3),_0xf371ff['delete'](_0x33f7a3),!0x0;if(!_0x25ba30&&_0x4d2261(_0x84905d,_0x95ed52))return _0x4b9b35['_joinSuggestions'](_0x33f7a3,_0x46902a),_0xf371ff['delete'](_0x46902a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x46bc8b,_0xbaebe){if(_0x46bc8b['isMultiRange']){for(const _0x198216 of _0xbaebe['getRanges']())_0x46bc8b['addRange'](_0x198216);}else{const _0x2a85d0=_0xbaebe['getFirstRange']()['end'];this['_setSuggestionRange'](_0x46bc8b,this['_model']['createRange'](_0x46bc8b['getFirstRange']()['start'],_0x2a85d0));}_0xbaebe['removeMarkers']();}['_getMarkerAnnouncementText'](_0x327275,_0x325515,_0x8a40d5){const _0x61f472=_0x327275['startsWith']('format')||_0x327275['startsWith']('attribute')?'FORMATTING':_0x327275['toUpperCase']();return o(this['editor']['locale'],_0x325515+'_'+_0x61f472+'_SUGGESTION_ANNOUNCEMENT',_0x8a40d5);}['_initAriaMarkerChangeAnnouncements'](){const _0x19c706=this['editor'];if(!_0x19c706['ui'])return;const {ariaLiveAnnouncer:_0x4fa14e}=_0x19c706['ui'];_0x4f11ef(this['_model'],({left:_0x1c5ede,entered:_0x5b6380})=>{for(const _0x319506 of _0x1c5ede){const {group:_0x346dd8,type:_0x2419bf}=this['_splitMarkerName'](_0x319506['name']);if('suggestion'===_0x346dd8){_0x4fa14e['announce'](this['_getMarkerAnnouncementText'](_0x2419bf,'LEAVE'));break;}}for(const _0x16477e of _0x5b6380){const {group:_0x4b2885,type:_0x416860}=this['_splitMarkerName'](_0x16477e['name']);if('suggestion'===_0x4b2885){_0x4fa14e['announce'](this['_getMarkerAnnouncementText'](_0x416860,'ENTER',_0x1ca498(_0x2e5bcc)));break;}}});}['_processAttributeChanges'](_0x228f2b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4d92cb=this['editor'],_0x4a6082=_0x4d92cb['model']['document']['differ']['getChanges']();if(0x0==_0x4a6082['length'])return!0x1;const _0x521628=[],_0x9591ad=_0x4a6082['filter'](_0x2849bd=>'attribute'==_0x2849bd['type']),_0x48afd6=_0x4a6082['filter'](_0x43b9a4=>'insert'==_0x43b9a4['type']&&'$text'!=_0x43b9a4['name']),_0x502225=_0x4a6082['filter'](_0x316847=>'remove'==_0x316847['type']&&'$text'!=_0x316847['name']);for(const _0x74117f of _0x9591ad)_0x521628['push']({'key':_0x74117f['attributeKey'],'newValue':_0x74117f['attributeNewValue'],'oldValue':_0x74117f['attributeOldValue'],'range':Pt(_0x74117f['range'],_0x4d92cb['model'])});for(const _0x3edccd of _0x48afd6){const _0x7a4278=_0x502225['find'](_0x2b6dfb=>_0x2b6dfb['position']['isEqual'](_0x3edccd['position']));_0x7a4278&&_0x521628['push']({'key':m,'newValue':_0x3edccd['name'],'oldValue':_0x7a4278['name'],'range':_0x4d92cb['model']['createRangeOn'](_0x3edccd['position']['nodeAfter'])});}return 0x0!=_0x521628['length']&&this['_reduceExistingSuggestions'](_0x228f2b,_0x521628);}['_processAttributeSuggestions'](_0xf8243){let _0xb09222=!0x1;const _0x2503a2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x252a29=>_0x252a29['data']['newRange']&&_0x252a29['name']['startsWith']('suggestion:attribute:'));for(const _0x1e6958 of _0x2503a2){const {subType:_0x4bc2b3,id:_0x212a5a}=this['_splitMarkerName'](_0x1e6958['name']),_0x5a67ce=_0x4bc2b3['split']('|')[0x0];for(const _0x5935af of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5935af['id']!=_0x212a5a&&'attribute'==_0x5935af['type']&&_0x5935af['data']&&_0x5935af['data']['key']==_0x5a67ce&&_0x5935af['getFirstRange']()['isIntersecting'](_0x1e6958['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5935af,_0x1e6958['data']['newRange'],_0xf8243),_0xb09222=!0x0);}return _0xb09222;}['_recordAttributeChanges'](_0xaa83fa){this['_recordAttributeSuggestions']=!0x0,_0xaa83fa();}['_isRegisteredAttribute'](_0x167be6){const _0x135cb3=this['_isBlockAttribute'](_0x167be6),_0xfc61ad=this['_inlineAttributeKeys']['has'](_0x167be6);return _0x135cb3||_0xfc61ad;}['_reduceExistingSuggestions'](_0x5297b6,_0x47a5e1){if(0x0==_0x47a5e1['length'])return!0x1;let _0x513ce1=!0x1;for(const _0x238ef0 of _0x47a5e1){const _0x25fea8=this['_findSuggestions'](_0x238ef0['range'],'attribute')['filter'](_0x1e0926=>!_0x1e0926['meta']['isNextTo'])['map'](_0x14ba5c=>_0x14ba5c['suggestion']),_0x3e820c=_0x4bbe82({'newValue':_0x238ef0['newValue']});_0x25fea8['filter'](_0x3796be=>{const [_0x3ea1e9,_0x48dc25]=_0x3796be['subType']['split']('|');return _0x3ea1e9==_0x238ef0['key']&&_0x48dc25!=_0x3e820c;})['forEach'](_0x599435=>{this['_reduceSuggestionAttributeRange'](_0x599435,_0x238ef0['range'],_0x5297b6),_0x513ce1=!0x0;});}return _0x513ce1;}['_reduceSuggestionAttributeRange'](_0x323f4b,_0x527b07,_0x49fc63){const _0x57cb70=_0x323f4b['getFirstRange']()['getDifference'](_0x527b07);0x0!==_0x57cb70['length']?0x1!==_0x57cb70['length']?this['_breakSuggestionMarker'](_0x323f4b,_0x527b07['start'],_0x527b07['end']):this['_setSuggestionRange'](_0x323f4b,_0x57cb70[0x0]):_0x49fc63['removeMarker'](_0x323f4b['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4ba9f8){this['_editor']=_0x4ba9f8,this['_model']=_0x4ba9f8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2298a8,_0x274a6b,_0x41a6a1,_0x38081a,_0xaa0d4d,_0x46b9c4){return new u(this['_model'],{'type':_0x2298a8,'subType':_0x274a6b,'id':_0x41a6a1,'author':_0x38081a,'creator':_0x38081a,'attributes':_0xaa0d4d,'onAttributesChange':_0x46b9c4,'onAccept':(..._0x526a07)=>this['getSuggestionCallback'](_0x2298a8,_0x274a6b,'accept')(..._0x526a07),'onDiscard':(..._0x57431c)=>this['getSuggestionCallback'](_0x2298a8,_0x274a6b,'discard')(..._0x57431c)});}['registerCustomCallback'](_0x4e548f,_0x4905d2,_0x344f49,_0x3d9930){const _0xb16781=_0x4e548f+':'+_0x4905d2+':'+_0x344f49;this['_customCallbacks']['set'](_0xb16781,_0x3d9930);}['getSuggestionCallback'](_0x334e17,_0x28a020,_0xa9b4b5){const _0x1a99d8=_0x334e17+':'+_0x28a020+':'+_0xa9b4b5;return this['_customCallbacks']['get'](_0x1a99d8)||this['_defaultCallbacks']['get'](_0x334e17+':'+_0xa9b4b5);}['_registerDefaultCallbacks'](){const _0x58a252=()=>!0x1,_0x2a8cbf=_0x1b0a3a=>{_0x1b0a3a['sort']((_0x5da7d6,_0x5949d2)=>_0x5da7d6['start']['isBefore'](_0x5949d2['start'])?0x1:-0x1),this['_model']['change'](_0x2c0f31=>{for(const _0xa208fa of _0x1b0a3a){let _0xd93cd7;_0xd93cd7=_0xa208fa['end']['isAtEnd']&&_0xa208fa['end']['parent']==_0xa208fa['start']['nodeAfter']?_0x2c0f31['createSelection'](_0xa208fa['start']['nodeAfter'],'on'):_0x2c0f31['createSelection'](_0xa208fa),this['_model']['deleteContent'](_0xd93cd7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x259b43=(_0x253da2,_0x399221)=>{_0x399221&&this['_model']['change'](_0x444f8b=>{const {commandName:_0x1474c2,commandParams:_0x351fda=[]}=_0x399221,_0x14979b=_0x253da2['map'](_0x18d2e4=>(Vt(_0x18d2e4)&&(_0x18d2e4=this['_model']['createRange'](_0x18d2e4['end'])),_0x18d2e4))['filter'](_0x5b8694=>'$graveyard'!==_0x5b8694['root']['rootName']);if(_0x14979b['length']<0x1)return;const _0x27d2fb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x49ce25=>_0x1ac7bd['fromRange'](_0x49ce25));_0x444f8b['setSelection'](_0x14979b);for(const _0x3a6ab4 of this['_editor']['commands']['commands']())_0x3a6ab4['refresh']();_0x351fda['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1474c2,..._0x351fda);const _0x492598=_0x27d2fb['filter'](_0x246636=>'$graveyard'!=_0x246636['root']['rootName']);_0x492598['length']>0x0&&_0x444f8b['setSelection'](_0x492598);for(const _0x4e9e7a of _0x27d2fb)_0x4e9e7a['detach']();});},_0x27be88=(_0x26f64d,_0x4700fd)=>0x1==_0x26f64d['length']&&0x1==_0x4700fd['length']&&_0x26f64d[0x0]['end']['isEqual'](_0x4700fd[0x0]['start']),_0x24d5a0=(_0x2bf9fc,_0x24b0d4,_0x267ed8,_0xf073d)=>Ht(_0x2bf9fc,_0x24b0d4,_0x267ed8,_0xf073d,this['_model'])?[_0x2bf9fc,_0x24b0d4]:Ht(_0x24b0d4,_0x2bf9fc,_0xf073d,_0x267ed8,this['_model'])?[_0x24b0d4,_0x2bf9fc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x58a252),this['_defaultCallbacks']['set']('insertion:discard',_0x2a8cbf),this['_defaultCallbacks']['set']('insertion:join',_0x27be88),this['_defaultCallbacks']['set']('insertion:chain',_0x24d5a0),this['_defaultCallbacks']['set']('deletion:accept',_0x2a8cbf),this['_defaultCallbacks']['set']('deletion:discard',_0x58a252),this['_defaultCallbacks']['set']('deletion:join',_0x27be88),this['_defaultCallbacks']['set']('deletion:chain',_0x24d5a0),this['_defaultCallbacks']['set']('formatInline:accept',_0x259b43),this['_defaultCallbacks']['set']('formatInline:discard',_0x58a252),this['_defaultCallbacks']['set']('formatInline:join',_0x27be88),this['_defaultCallbacks']['set']('formatInline:chain',_0x58a252),this['_defaultCallbacks']['set']('formatBlock:accept',_0x259b43),this['_defaultCallbacks']['set']('formatBlock:discard',_0x58a252),this['_defaultCallbacks']['set']('formatBlock:join',_0x27be88),this['_defaultCallbacks']['set']('formatBlock:chain',_0x58a252),this['_defaultCallbacks']['set']('attribute:accept',_0x58a252),this['_defaultCallbacks']['set']('attribute:discard',(_0x5d1266,_0x1ce3e7)=>{if(!_0x1ce3e7)return;const _0x3ab4fb=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xd39420=>{if(_0x1ce3e7['key']==m)for(const _0x546d0c of _0x5d1266){const _0x1931d3=_0x546d0c['start']['nodeAfter'],_0x1c44fa=_0x1ce3e7['oldValue'];_0xd39420['rename'](_0x1931d3,_0x1c44fa);}else{if(_0x3ab4fb['_isBlockAttribute'](_0x1ce3e7['key'])){for(const _0x1ea7ab of _0x5d1266)void 0x0!==_0x1ce3e7['oldValue']?_0xd39420['setAttribute'](_0x1ce3e7['key'],_0x1ce3e7['oldValue'],_0x1ea7ab['start']['nodeAfter']):_0xd39420['removeAttribute'](_0x1ce3e7['key'],_0x1ea7ab['start']['nodeAfter']);}else{for(const _0x35052b of _0x5d1266)_0x1ce3e7['oldValue']?_0xd39420['setAttribute'](_0x1ce3e7['key'],_0x1ce3e7['oldValue'],_0x35052b):_0xd39420['removeAttribute'](_0x1ce3e7['key'],_0x35052b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x27be88);}}function Ot(_0x504e7c,_0x4a3c76,_0xa61175){for(const _0x4410da of _0x4a3c76['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4410da['root']==_0x4410da)return!0x1;if(!_0xa61175['containsItem'](_0x4410da))return!0x1;if(_0x504e7c['isObject'](_0x4410da)||_0x504e7c['isLimit'](_0x4410da))return!0x0;}return!0x1;}function Vt(_0x273687){return _0x273687['end']['parent']==_0x273687['start']['nodeAfter']&&_0x273687['end']['isAtStart'];}function Ut(_0x32e960,_0x525055,_0x4ddfba,_0x388a26){const _0x59a53a=_0x18bef3=>!_0x18bef3['item']['is']('$textProxy')&&!_0x388a26['isObject'](_0x18bef3['item']),_0x1e95c2=_0x32e960['start']['getLastMatchingPosition'](_0x59a53a),_0x45e81b=_0x32e960['end']['getLastMatchingPosition'](_0x59a53a,{'direction':'backward'});return(!_0x32e960['start']['isEqual'](_0x1e95c2)||!_0x32e960['end']['isEqual'](_0x45e81b))&&(_0x1e95c2['isBefore'](_0x45e81b)?_0x4ddfba['updateMarker'](_0x525055,{'range':_0x4ddfba['createRange'](_0x1e95c2,_0x45e81b)}):_0x4ddfba['removeMarker'](_0x525055),!0x0);}function Gt(_0x3adaf2){return _0x4bbe82(_0x3adaf2);}function Ft(_0x4a3101){const _0x4a7f62=_0x4a3101['start']['nodeAfter'];return _0x4a7f62&&_0x4a7f62['is']('element');}function Pt(_0x3deef7,_0x438bb1){return null==_0x3deef7['end']['nodeBefore']&&_0x3deef7['end']['parent']==_0x3deef7['start']['nodeAfter']?Lt(_0x3deef7['start']['nodeAfter'],_0x438bb1):_0x3deef7;}function Lt(_0x5f4645,_0x4b4b33){const _0xe9c9a=_0x4b4b33['schema']['isObject'](_0x5f4645)||_0x4b4b33['schema']['isSelectable'](_0x5f4645);return _0x4b4b33['createRange'](_0x4b4b33['createPositionAt'](_0x5f4645,'before'),_0xe9c9a?_0x4b4b33['createPositionAfter'](_0x5f4645):_0x4b4b33['createPositionAt'](_0x5f4645,'end'));}function Ht(_0x55508e,_0x430175,_0x104a13,_0x2d9b18,_0xfed64e){if(_0x55508e['next'])return!0x1;if(!Jt(_0x55508e,_0x430175))return!0x1;if(_0x104a13['end']['isEqual'](_0x2d9b18['start']))return!0x0;if(_0x55508e['type']!=_0x430175['type'])return!0x1;if(!_0x104a13['end']['isTouching'](_0x2d9b18['start']))return!0x1;const _0x3a2ca3=_0xfed64e['createRange'](_0x104a13['end'],_0x2d9b18['start'])['getWalker']();for(const _0xe2e11a of _0x3a2ca3)if(['elementStart','elementEnd']['includes'](_0xe2e11a['type'])&&_0xfed64e['schema']['isLimit'](_0xe2e11a['item']))return!0x1;return!0x0;}function Jt(_0x252f35,_0xb79ac0){if(!_0x252f35['_isDataLoaded']||!_0xb79ac0['_isDataLoaded'])return!0x1;const _0x48a509=new Set(Object['keys'](_0x252f35['attributes'])),_0x55809a=new Set(Object['keys'](_0xb79ac0['attributes']));if(_0x48a509['delete']('groupId'),_0x55809a['delete']('groupId'),0x0==_0x48a509['size']&&0x0==_0x55809a['size'])return!0x0;if(_0x48a509['size']!=_0x55809a['size'])return!0x1;const _0x169f38={..._0x252f35['attributes']},_0x87a57f={..._0xb79ac0['attributes']};return delete _0x169f38['groupId'],delete _0x87a57f['groupId'],JSON['stringify'](_0x169f38)==JSON['stringify'](_0x87a57f);}function qt(_0x5f135b,_0x56c339){const _0x4402e0=zt(_0x5f135b['attributes']),_0x19d001=zt(_0x56c339);if(!_0x5f135b['_isDataLoaded'])return!0x1;for(const _0x3143e4 of Object['keys'](_0x19d001))if(!_0x11af30(_0x4402e0[_0x3143e4],_0x19d001[_0x3143e4]))return!0x1;return!0x0;}function zt(_0x67a1d5){const _0x4a4d28=Object['assign']({},_0x67a1d5);return delete _0x4a4d28['skipNestingCheck'],delete _0x4a4d28['tablePasteChainId'],_0x4a4d28;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1ca92d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x106a7e,_0x35078e,_0x48cce7,_0xdfcf59){super(),this['model']=_0x35078e,this['view']=_0x48cce7,this['commentThreadController']=_0xdfcf59,this['_editor']=_0x106a7e,this['_acceptCommand']=_0x106a7e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x106a7e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x277c80,_0x20958a)=>_0x277c80||_0x20958a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x11400f=>_0x11400f&&this['_editor']['model']['canEditAt'](_0x35078e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xd09068=>_0xd09068&&this['_editor']['model']['canEditAt'](_0x35078e['getRanges']())),this['_pendingAction']=null,_0x48cce7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x48cce7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x48cce7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x48cce7,'change:isDirty',()=>{_0x48cce7['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 _0x231a46=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x231a46);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0xa93036{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1dd139,_0x54d8c9,_0x43e0be,_0x3a0907){super(_0x1dd139),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2f9985(_0x1dd139,o(_0x1dd139,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x54d8c9['authoredAt']),this['bind']('authoredAt')['to'](_0x54d8c9),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',_0x54d8c9,'authoredAt',this,'descriptionParts',(_0x26480c,_0x4cfe9a,_0x551289)=>{const _0x48130d=_0x551289['map'](_0x1dec1f=>ls(_0x1dec1f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x26480c-0x1,_0x54d8c9['author']['name'],_0x4cfe9a?_0x3a0907['formatDateTime'](_0x4cfe9a):'',new DOMParser()['parseFromString'](_0x48130d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3a64bc(),this['focusTracker']=new _0x5423cf(),this['keystrokes']=new _0x4ec4fb(),this['focusCycler']=new _0x261d2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2c460b=>_0x2c460b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x54d8c9,this['_localUser']=_0x43e0be,this['_config']=_0x3a0907,_0x3a0907['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3e3d09(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x338ebc}=this['_config'];this['commentsListView']=new _0x338ebc(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',_0x3833ef=>_0x3833ef+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4e2d61,_0x34ad54)=>_0x4e2d61||!!_0x34ad54);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xaf9fe1}=this['_config'],_0x549fc1=new _0xaf9fe1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x13a2d9=_0x549fc1['commentInputView'];return _0x549fc1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x13a2d9,'value',(_0x98d1f8,_0x5e92e3,_0x2f6eaa)=>!!_0x2f6eaa||_0x98d1f8&&!_0x5e92e3),_0x13a2d9['on']('submit',(_0x554d31,_0x32da81)=>{this['fire']('addComment',_0x32da81),_0x13a2d9['editor']['setData']('');}),_0x13a2d9['on']('cancel',()=>this['focus']()),_0x13a2d9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x549fc1;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x267ca9,_0x132fef,_0x49972a,_0x33181d){super(_0x267ca9,_0x132fef,_0x49972a,_0x33181d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5abdc1=>_0x5abdc1&&_0x5abdc1[0x0]?_0x5abdc1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x45de27,_0x3c623e)=>{let _0x1d0f90='';for(const _0x1a022c of _0x45de27)_0x1d0f90+='<p>'+ls(_0x1a022c['content'],_0x1a022c['color'])+'</p>';return _0x3c623e?_0x1d0f90:_0x260589(_0x1d0f90,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x33181d['SuggestionView'](_0x267ca9,_0x132fef,{'formatDateTime':_0x33181d['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 _0x1f6955=this['bindTemplate'],_0x4c72ff=[this['suggestionView']];return this['commentsListView']&&_0x4c72ff['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4c72ff['push'](this['commentThreadInputView']),_0x4c72ff['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1f6955['if']('isActive','ck-suggestion-wrapper--active'),_0x1f6955['to']('type',_0x34eef8=>'ck-suggestion-'+_0x34eef8),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':_0x1f6955['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4c72ff};}['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 ce extends _0xa93036{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xa65ddc,_0x50f623,_0x381185){super(_0xa65ddc),this['_model']=_0x50f623,this['_config']=_0x381185,this['set']('description',''),this['bind']('authoredAt')['to'](_0x50f623),this['acceptButton']=this['_createButton'](o(_0xa65ddc,'Accept\x20suggestion'),_0x1d5681['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xa65ddc,'Discard\x20suggestion'),_0x1d5681['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xd53404(_0xa65ddc,_0x50f623['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3a64bc([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5423cf(),this['keystrokes']=new _0x4ec4fb(),this['focusCycler']=new _0x261d2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4f71f3=>_0x4f71f3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x50b55b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x50b55b['innerHTML']=this['description'],this['on']('change:description',(_0x297ec5,_0x2de049,_0x2c849c)=>{_0x50b55b['innerHTML']=_0x2c849c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5224f0=this['bindTemplate'],_0x342cad=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x5224f0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5224f0['to']('authoredAt',_0x4461cb=>this['_config']['formatDateTime'](_0x4461cb))}]}]},{'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']&&_0x342cad['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':_0x342cad}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2ff8ad,_0x1fbd88,_0x193c53,_0x524e45,_0x589e59){const _0x216c06=new _0x55410d(this['locale']);return _0x216c06['set']({'label':_0x2ff8ad,'icon':_0x1fbd88,'tooltip':!0x0,'tooltipPosition':_0x589e59}),_0x216c06['extendTemplate']({'attributes':{'class':_0x193c53}}),_0x216c06['on']('execute',()=>{this['fire'](_0x524e45,this['_model']['id']);}),_0x216c06;}['_setupKeyboardNavigation'](){const _0x26f0ae=this['element'];this['keystrokes']['listenTo'](_0x26f0ae);for(const _0x4fd66c of this['focusables'])this['focusTracker']['add'](_0x4fd66c['element']),this['keystrokes']['listenTo'](_0x4fd66c['element']);this['keystrokes']['set']('enter',(_0x8ab4ec,_0x45521c)=>{_0x26f0ae===_0x8ab4ec['target']&&(this['focusCycler']['focusFirst'](),_0x45521c());}),this['keystrokes']['set']('esc',(_0x5169f4,_0x164b99)=>{_0x26f0ae!==_0x5169f4['target']&&(this['focus'](),_0x164b99());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x58a0bc{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5983d1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1bb86d){super(_0x1bb86d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x15a466=this['editor']['config'];_0x15a466['define']('trackChanges.SuggestionThreadView',re),_0x15a466['define']('trackChanges.SuggestionView',ce),_0x15a466['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x15a466['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x187673,_0x480658){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xe83021,_0x4d3c34]of this['_handleControllerBuffer']){const _0x271995=this['_suggestionToController']['has'](_0xe83021);_0x271995||_0x4d3c34?_0x271995&&_0x4d3c34&&this['_destroyController'](_0xe83021):this['_initializeController'](_0xe83021);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x187673,_0x480658);}['init'](){const _0x5e12f7=this['editor'],_0x2d7d5f=_0x5e12f7['plugins']['get']('TrackChangesEditing'),_0x42509f=_0x5e12f7['plugins']['get']('Annotations'),_0x3f419e=_0x5e12f7['plugins']['get']('EditorAnnotations'),_0x35af6d=_0x5e12f7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3f419e['addSourceCollector'](()=>{const _0x22d4a2=[];for(const [_0x2631d8,_0x1fa5bb]of Array['from'](this['_suggestionToController'])){const _0xa941a2=_0x2631d8['getAllAdjacentSuggestions'](),_0x441b71=[];for(const _0x4644b9 of _0xa941a2){if(!_0x4644b9['isInContent'])continue;if(_0x4644b9['isMultiRange']){_0x441b71['push'](..._0x4644b9['getRanges']());continue;}const _0x54517c=_0x4644b9['getFirstRange']();if(_0x441b71['length']>0x0){const _0x24bbfa=_0x441b71[0x0]['getJoined'](_0x54517c);if(_0x24bbfa){_0x441b71[0x0]=_0x24bbfa;continue;}}_0x441b71['push'](_0x54517c);}_0x22d4a2['push']([_0x1fa5bb['view'],_0x441b71]);}return _0x22d4a2;}),this['listenTo'](_0x2d7d5f,'suggestionLoaded',(_0x44a26a,_0x2d0151)=>{this['listenTo'](_0x2d0151,'change:previous',(_0x227f7d,_0x1d0cc4,_0x159bb7,_0x29b9af)=>{_0x2d0151['isInContent']&&(null==_0x159bb7?(this['_updateController'](_0x29b9af['head']),this['_handleSuggestionControllerDelayed'](_0x2d0151,!0x1)):(this['_updateController'](_0x159bb7['head']),null==_0x29b9af&&this['_handleSuggestionControllerDelayed'](_0x2d0151,!0x0)));}),null!==_0x2d0151['previous']?this['_updateController'](_0x2d0151['head']):this['_handleSuggestionControllerDelayed'](_0x2d0151,!0x1);}),this['listenTo'](_0x2d7d5f,'suggestionUnloaded',(_0x2f208f,_0x395203,_0x386cab)=>{this['stopListening'](_0x395203,'change:previous'),this['_handleControllerBuffer']['delete'](_0x395203),this['_suggestionToController']['has'](_0x395203)&&this['_destroyController'](_0x395203),_0x386cab&&this['_updateController'](_0x386cab['head']);}),this['listenTo'](_0x2d7d5f,'suggestionChanged',(_0x308139,_0x915d95)=>{this['_updateController'](_0x915d95);}),this['listenTo'](_0x42509f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x35af6d,'addComment',(_0x361713,{threadId:_0x17d410,isFromAdapter:_0x2551b1})=>{if(_0x2551b1||!_0x2d7d5f['hasSuggestion'](_0x17d410))return;const _0x3089d8=_0x2d7d5f['getSuggestion'](_0x17d410);this['_suggestionToController']['get'](_0x3089d8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x40d064=this['editor']['plugins']['get']('Annotations'),_0x231616=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c903f=Array['from'](_0x40d064['activeAnnotations'],_0x167d4b=>_0x167d4b['innerView'])['filter'](_0x5123cb=>this['_viewToController']['has'](_0x5123cb)),_0xc51385=[];for(const _0x435c1c of _0x1c903f){const _0x1552c8=this['_viewToController']['get'](_0x435c1c)['model']['getAllAdjacentSuggestions']();_0xc51385['push'](..._0x1552c8['reduce']((_0x18f3f,_0x39719c)=>[..._0x18f3f,..._0x39719c['getMarkerNames']()],[]));}_0x231616['activeMarkers']=_0xc51385;}['_addUIComponentsToFactory'](){const _0x5bd407=this['editor'],_0x413514=_0x5bd407['locale'],_0x2582fb=o(_0x413514,'Track\x20changes'),_0x2b9063=new Wt([{'type':'switchbutton','model':new _0x590c00({'withText':!0x0,'isToggleable':!0x0,'label':_0x2582fb,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x551a0a of _0x2b9063)if(me(_0x551a0a)){const _0xe3359d=_0x5bd407['commands']['get'](_0x551a0a['model']['commandName']);_0x551a0a['model']['bind']('isOn','isEnabled')['to'](_0xe3359d,'value','isEnabled');}_0x5bd407['ui']['componentFactory']['add']('trackChanges',_0x2e83d6=>this['_createToolbarButton'](_0x2e83d6,_0x2b9063,_0x2582fb)),_0x5bd407['ui']['componentFactory']['add']('menuBar:trackChanges',_0x503e6d=>this['_createMenuBarMenu'](_0x503e6d,_0x2b9063,_0x2582fb));}['_createToolbarButton'](_0x130431,_0x583121,_0x243eac){const _0x55b241=Qt(_0x130431,_0x530bd8),_0x8ceea3=this['editor']['commands']['get']('trackChanges');_0x55b241['buttonView']['set']({'tooltip':_0x243eac,'label':_0x243eac,'icon':he}),_0x55b241['buttonView']['bind']('isOn')['to'](_0x8ceea3,'value'),_0x55b241['buttonView']['on']('execute',()=>{_0x8ceea3['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x55b241,_0x583121,{'role':'menu'});const _0x124d61=[];for(const _0x16df26 of _0x583121)me(_0x16df26)&&_0x124d61['push'](this['editor']['commands']['get'](_0x16df26['model']['commandName']));const _0x11e5ff=_0x55b241['buttonView'];return _0x11e5ff['actionView']['unbind']('isEnabled'),_0x11e5ff['arrowView']['unbind']('isEnabled'),_0x11e5ff['actionView']['bind']('isEnabled')['to'](_0x8ceea3,'isEnabled'),_0x11e5ff['arrowView']['bind']('isEnabled')['toMany'](_0x124d61,'isEnabled',(..._0x294fee)=>_0x294fee['some'](_0x176f5a=>_0x176f5a)),_0x55b241['on']('execute',_0x527e5f=>{this['editor']['execute'](_0x527e5f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x55b241;}['_createMenuBarMenu'](_0x276bb4,_0x2805c9,_0x380515){const _0x364773=new Yt(_0x276bb4),_0x8c6740=this['editor']['commands']['get']('trackChanges');_0x364773['buttonView']['set']({'label':_0x380515,'icon':he});const _0x532a18=new Zt(_0x276bb4);for(const _0x44c153 of _0x2805c9){if('separator'==_0x44c153['type']){_0x532a18['items']['add'](new Xt(_0x276bb4));continue;}const _0x593b12=new te(_0x276bb4,_0x364773),_0x57b4b4=new _0x397c51(_0x276bb4),_0x15beb8=_0x44c153['model'];_0x57b4b4['bind'](...Object['keys'](_0x15beb8))['to'](_0x15beb8),_0x57b4b4['delegate']('execute')['to'](_0x364773),_0x57b4b4['on']('execute',()=>{this['editor']['execute'](_0x15beb8['commandName']),this['editor']['editing']['view']['focus']();}),_0x593b12['children']['add'](_0x57b4b4),_0x532a18['items']['add'](_0x593b12);}return _0x364773['bind']('isEnabled')['to'](_0x8c6740,'isEnabled'),_0x364773['panelView']['children']['add'](_0x532a18),_0x364773;}['_initializeController'](_0x17bc29){const _0x5be430=this['editor'],_0x2b7a12=_0x5be430['config'],_0x2457a1=_0x5be430['plugins']['get']('Annotations'),_0x2c7d98=_0x5be430['plugins']['get']('CommentsRepository'),_0x4107c5=_0x5be430['plugins']['get']('EditorAnnotations'),_0x4d8123=_0x5be430['plugins']['get'](_0x5983d1)['me'],_0x5e8302=_0x2b7a12['get']('trackChanges')['SuggestionThreadView'],_0x22d68e=_0x2b7a12['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3a215b,CommentThreadInputView:_0x472c0e}=_0x5be430['plugins']['get']('CommentsUI');let _0x3bd8eb,_0x34231f,_0x2add01;this['_annotationViews']['has'](_0x17bc29['id'])?(_0x34231f=this['_annotationViews']['get'](_0x17bc29['id']),_0x3bd8eb=_0x34231f['mainView']):(_0x3bd8eb=new _0x5e8302(_0x5be430['locale'],_0x17bc29,_0x4d8123,{'disableComments':this['_disableComments'],'editorConfig':_0x2b7a12['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2b7a12['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2b7a12['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2b7a12['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2fcf1(_0x2b7a12['get']('locale')),'CommentView':_0x2b7a12['get']('comments')['CommentView'],'CommentsListView':_0x3a215b,'CommentThreadInputView':_0x472c0e,'SuggestionView':_0x22d68e}),_0x3bd8eb['suggestionView']['acceptButton']['on']('execute',()=>{_0x5be430['editing']['view']['focus']();}),_0x3bd8eb['suggestionView']['discardButton']['on']('execute',()=>{_0x5be430['editing']['view']['focus']();}),_0x34231f=_0x2457a1['createAnnotationView'](this['editor']['locale'],_0x3bd8eb),_0x34231f['bind']('isDirty')['to'](_0x3bd8eb,'isDirty'),_0x34231f['bind']('length')['to'](_0x3bd8eb),_0x34231f['bind']('type')['to'](_0x3bd8eb,'type',_0x14851a=>'suggestion-'+_0x14851a),_0x3bd8eb['on']('escape',()=>{_0x2add01['fire']('escape');}),this['_annotationViews']['set'](_0x17bc29['id'],_0x34231f));const _0x106093=_0x2c7d98['createCommentThreadController'](_0x17bc29['commentThread'],_0x3bd8eb),_0x2cfc57=new ae(_0x5be430,_0x17bc29,_0x3bd8eb,_0x106093),_0x2201f2=_0x17bc29['getAllAdjacentSuggestions']()['filter'](_0x99e336=>_0x99e336['isInContent']);_0x3bd8eb['descriptionParts']=_0x5be430['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2201f2),this['_suggestionToController']['set'](_0x17bc29,_0x2cfc57),this['_viewToController']['set'](_0x3bd8eb,_0x2cfc57),_0x2add01=_0x2457a1['createAnnotation']({'view':_0x34231f,'target':()=>{const _0x55502c=[],_0x543ea1=_0x17bc29['getAllAdjacentSuggestions']()['filter'](_0x4ba5c9=>_0x4ba5c9['isInContent']);for(const _0x12867f of _0x543ea1)_0x55502c['push'](..._0x12867f['getMarkers']());return _0x4d4b32(_0x5be430['editing'],_0x55502c);},'type':()=>'suggestion-'+_0x2cfc57['view']['type']}),_0x2c7d98['_bindAnnotationToEditors'](_0x3bd8eb,_0x2add01),_0x2457a1['add'](_0x2add01),_0x4107c5['registerAnnotation'](_0x2add01);}['_destroyController'](_0x308ddd){const _0x79d3a5=this['editor']['plugins']['get']('CommentsRepository'),_0x4baaf8=this['editor']['plugins']['get']('Annotations'),_0x38b52d=this['_suggestionToController']['get'](_0x308ddd),_0x3e862a=_0x38b52d['view'],_0x37f47f=_0x4baaf8['getByInnerView'](_0x3e862a);_0x79d3a5['_unbindEditors'](_0x3e862a),_0x37f47f&&_0x4baaf8['remove'](_0x37f47f),this['_suggestionToController']['delete'](_0x308ddd),this['_viewToController']['delete'](_0x3e862a),_0x38b52d['destroy']();}['_updateController'](_0x5ddcc0){if(!_0x5ddcc0['isInContent']||!this['_suggestionToController']['has'](_0x5ddcc0))return;const _0x19ab56=this['editor']['plugins']['get']('TrackChangesEditing'),_0x387fb7=this['_suggestionToController']['get'](_0x5ddcc0),_0x2a3e35=_0x5ddcc0['getAllAdjacentSuggestions']();_0x387fb7['view']['descriptionParts']=_0x19ab56['descriptionFactory']['getDescriptions'](_0x2a3e35);}['destroy'](){for(const _0xb72456 of this['_suggestionToController']['keys']())this['_destroyController'](_0xb72456);for(const _0x55004a of this['_annotationViews']['values']())_0x55004a['mainView']['destroy']();super['destroy']();}}function me(_0x38c5e){return'model'in _0x38c5e;}class k extends _0x58a0bc{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x44dcd0){this['editor']['plugins']['get'](p)['adapter']=_0x44dcd0;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x11c8b5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x11c8b5);}['getSuggestions']({skipNotAttached:_0x195b40=!0x1,toJSON:_0x20c296=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x195b40,'toJSON':_0x20c296});}['getSuggestion'](_0x53ce69){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x53ce69);}}const T=['Pagination'];class P extends _0x58a0bc{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4f2eef=this['editor'];if(_0x4f2eef['config']['define']('trackChangesData.editorCreator',_0x2e1ac0=>{const _0xc399ee=_0x4f2eef['model']['document']['getRootNames']()['reduce']((_0x240d01,_0x47aa6f)=>(_0x240d01[_0x47aa6f]='',_0x240d01),{});return _0x4f2eef['constructor']['create'](_0xc399ee,_0x2e1ac0);}),'function'!=typeof _0x4f2eef['config']['get']('trackChangesData')['editorCreator'])throw new _0x4ee7fd('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2ba9df){return N(this['editor'],!0x0,_0x2ba9df);}['getDataWithDiscardedSuggestions'](_0x475904){return N(this['editor'],!0x1,_0x475904);}}class D extends _0x58a0bc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x106abe){super(_0x106abe),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x15f1f4){return void 0x0!==_0x15f1f4['getRootsAttributes'];}async function N(_0x47f191,_0x9b6ab2,_0x22eea0){const _0x1172e5=_0x4f17fa(_0x47f191,T);_0x1172e5['plugins']['push'](p,D),_0x1172e5['rootsAttributes']=v(_0x47f191)?_0x47f191['getRootsAttributes']():void 0x0;const _0x4a5e9a=document['createDocumentFragment'](),_0x1fe845=_0x47f191['config']['get']('trackChangesData')['editorCreator'],_0x57e437=await _0x1fe845(_0x1172e5,()=>function(_0x36b25f){const _0x1af75b=document['createElement']('div');return _0x36b25f['appendChild'](_0x1af75b),_0x1af75b;}(_0x4a5e9a));!function(_0x20cf04,_0x31b7ef){const _0x1a73e5=_0x20cf04['model']['document']['getRootNames']()['reduce']((_0x235535,_0x1196f1)=>(_0x235535[_0x1196f1]=_0x20cf04['data']['get']({'rootName':_0x1196f1}),_0x235535),{}),_0x1ddb3c=_0x20cf04['plugins']['get']('Users')['users']['map'](_0x47d2eb=>({'id':_0x47d2eb['id'],'name':_0x47d2eb['name']})),_0x3ce849=_0x20cf04['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1bba73=_0x20cf04['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x341cae=_0x31b7ef['plugins']['get']('Users'),_0x43597e=_0x31b7ef['plugins']['get']('TrackChangesEditing'),_0xcde51b=_0x31b7ef['plugins']['get']('CommentsRepository');for(const _0x472209 of _0xcde51b['getCommentThreads']())_0x472209['remove']();for(const _0x442b27 of _0x1ddb3c)_0x341cae['getUser'](_0x442b27['id'])||_0x341cae['addUser'](_0x442b27);_0x341cae['me']||_0x341cae['useAnonymousUser']();for(const _0x5b9436 of _0x1bba73)_0xcde51b['addCommentThread'](_0x5b9436);for(const _0xba5e3c of _0x3ce849)_0x43597e['addSuggestionData'](_0xba5e3c);_0x31b7ef['data']['set'](_0x1a73e5);}(_0x47f191,_0x57e437),_0x57e437['execute'](_0x9b6ab2?'acceptAllSuggestions':'discardAllSuggestions');const _0x3a873f=v(_0x57e437)?_0x57e437['getFullData'](_0x22eea0):_0x57e437['data']['get'](_0x22eea0);return await _0x57e437['destroy'](),_0x3a873f;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x5a19c7,PendingActions as _0x36e86d,icons as _0x75a81b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4a7393,ObservableMixin as _0x609870,uid as _0x429a07,insertToPriorityArray as _0x4abfdb,priorities as _0x1f1c0f,logWarning as _0x8063a7,getEnvKeystrokeText as _0xbae308,FocusTracker as _0x552d29,KeystrokeHandler as _0x15e3b6,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x435004,View as _0x30ef7e,ViewCollection as _0x2df4da,FocusCycler as _0x21f6d5,ViewModel as _0x230214,createDropdown as Qt,SplitButtonView as _0x16eac9,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x35f9d2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x39c210,hashObject as _0x5c5065,surroundingMarkersDetector as _0x22115e,FOCUS_ANNOTATION_KEYSTROKE as _0x3c78cd,AriaDescriptionView as _0x2f032d,setupThreadKeyboardNavigation as _0x13ef58,trimHtml as _0xaf0486,UserView as _0x320796,LateFocusButtonView as _0x252f49,getDateTimeFormatter as _0x618079,getAllMarkersDomElementsSorted as _0x112ab5,sanitizeEditorConfig as _0x19a12e}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x12815f,LiveRange as _0x31c9bf,LivePosition as _0x3d9d30}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x12a762,toWidget as _0x365e95}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3492b7,set as _0x206d28,isEqual as _0x2dfb64,unset as _0x4543a7,omit as Tt}from'lodash-es';import{Delete as _0x5eeca8,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x47888e,ShiftEnter as _0x8df071}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x22fa00,_0xa864fe){super(_0x22fa00),this['_enabledCommands']=_0xa864fe,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 _0x33d561 of this['editor']['commands']['commands']())_0x33d561['affectsData']&&!this['_enabledCommands']['has'](_0x33d561)&&_0x33d561['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x14b5c9 of this['editor']['commands']['commands']())_0x14b5c9['affectsData']&&!this['_enabledCommands']['has'](_0x14b5c9)&&_0x14b5c9['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x7ca546,_0x559df4){super(_0x7ca546),this['_suggestions']=_0x559df4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4091f6){const _0x160f51=this['_suggestions']['get'](_0x4091f6);if(!_0x160f51)throw new _0x4a7393('track-changes-accept-suggestion-not-found',this);const _0x2f252b=_0x160f51['getRanges']();this['editor']['model']['canEditAt'](_0x2f252b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x160f51);}}class R extends ts{['_suggestions'];constructor(_0x4d1e1a,_0x5a8fe4){super(_0x4d1e1a),this['_suggestions']=_0x5a8fe4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x9cbe63){const _0x5483e8=this['_suggestions']['get'](_0x9cbe63);if(!_0x5483e8)throw new _0x4a7393('track-changes-discard-suggestion-not-found',this);const _0x38dd16=_0x5483e8['getRanges']();this['editor']['model']['canEditAt'](_0x38dd16)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5483e8);}}function ls(_0x509b7b,_0x4e1413){let _0x526a48='';return _0x526a48+=_0x509b7b['split']('*')['map']((_0x50a075,_0x3bb2aa)=>_0x3bb2aa%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x50a075)+'</span>':nn(_0x50a075))['join'](''),_0x4e1413&&(_0x526a48+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4e1413['value']+'\x22\x20title=\x22'+_0x4e1413['title']+'\x22></span>'),_0x526a48;}function nn(_0x225354){const _0x4feb72=document['createElement']('span');return _0x4feb72['innerText']=_0x225354,_0x4feb72['innerHTML'];}function ss(_0x160108){return _0x160108['sort']((_0x19c9e2,_0x2f75b7)=>'deletion'==_0x19c9e2['type']&&'deletion'!=_0x2f75b7['type']?-0x1:'deletion'!=_0x19c9e2['type']&&'deletion'==_0x2f75b7['type']?0x1:0x0);}function to(_0x25a06a,_0x46d9b7){let _0x1d3cc7,_0xce2c48=0x0;const _0xdbd314=[],_0x343759=_0x46d9b7['schema'];for(;_0xce2c48<_0x25a06a['length'];){const _0x1e5844=_0x25a06a[_0xce2c48],_0x4ffbca=_0x25a06a[_0xce2c48+0x1];_0x1d3cc7||(_0x1d3cc7=_0x46d9b7['createPositionBefore'](_0x1e5844)),on(_0x46d9b7,_0x1e5844,_0x4ffbca)||(_0xdbd314['push'](_0x46d9b7['createRange'](_0x1d3cc7,_0x343759['isObject'](_0x1e5844)?_0x46d9b7['createPositionAfter'](_0x1e5844):_0x46d9b7['createPositionAt'](_0x1e5844,'end'))),_0x1d3cc7=null),_0xce2c48++;}return _0xdbd314;}function on(_0x48cb06,_0x3e2c4a,_0x20d346){if(!_0x20d346)return!0x1;const _0x212f20=_0x48cb06['createPositionAfter'](_0x3e2c4a),_0x4bf4d1=_0x48cb06['createPositionBefore'](_0x20d346);return _0x212f20['isTouching'](_0x4bf4d1);}function rs(_0x2b4c4d,_0x4bbc4e,_0x13b8e7){for(;_0x13b8e7['length'];){const _0xf53a17=_0x13b8e7['splice'](0x0,0x64);_0x2b4c4d['change'](()=>{for(const _0xd428d0 of _0xf53a17)_0xd428d0['isInContent']&&_0x4bbc4e['execute'](_0xd428d0['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x26e27a,_0x55dbe2,_0x1ccfb5){super(_0x26e27a),this['_command']=_0x55dbe2,this['_suggestions']=_0x1ccfb5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2884bd=Array['from'](this['_suggestions']['values']())['some'](_0x2a185c=>_0x2a185c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2884bd;}['execute'](){const _0x4ca279=ss(Array['from'](this['_suggestions']['values']()));for(const _0xd44c70 of _0x4ca279){const _0xf07c36=_0xd44c70['getRanges']();if(!this['editor']['model']['canEditAt'](_0xf07c36))return;}rs(this['editor']['model'],this['_command'],_0x4ca279);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xe6f872,_0x485978,_0x521ca3){super(_0xe6f872),this['_command']=_0x485978,this['_suggestions']=_0x521ca3,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xcc4c9e=this['editor']['model']['document']['selection'],_0x375352=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4d8dac,_0x159c6b){const _0x5b1f1b=Array['from'](_0x4d8dac['getRanges']()),_0x4fee0f=new Set();for(const _0x5db062 of _0x159c6b)if(_0x5db062['isInContent']){for(const _0x510255 of _0x5b1f1b)for(const _0x2a78c9 of _0x5db062['getRanges']())(_0x510255['isIntersecting'](_0x2a78c9)||_0x4d8dac['isCollapsed']&&!_0x5db062['isMultiRange']&&_0x5db062['next']&&_0x2a78c9['end']['isTouching'](_0x510255['start']))&&_0x4fee0f['add'](_0x5db062);}return _0x4fee0f;}(_0xcc4c9e,_0x375352),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x55f7bb=ss(Array['from'](this['_selectedSuggestions']));for(const _0x25ed3b of _0x55f7bb){const _0x526381=_0x25ed3b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x526381))return;}rs(this['editor']['model'],this['_command'],_0x55f7bb);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x609870(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4f5bc1,_0x420020){super(),this['id']=_0x420020['id'],this['type']=_0x420020['type'],this['subType']=_0x420020['subType']||null,this['author']=_0x420020['author'],this['creator']=_0x420020['creator']||_0x420020['author'],this['isExternal']=Boolean(_0x420020['attributes']&&_0x420020['attributes']['@external']),this['data']=null,this['_model']=_0x4f5bc1,this['_onAccept']=_0x420020['onAccept'],this['_onDiscard']=_0x420020['onDiscard'],this['_onAttributesChange']=_0x420020['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x420020['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 _0x5d6b85=this;for(;_0x5d6b85['previous'];)_0x5d6b85=_0x5d6b85['previous'];return _0x5d6b85;}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'](_0x21d55d){this['_markerNames']['add'](_0x21d55d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x519e78=>this['_model']['markers']['get'](_0x519e78))['filter'](_0x98744b=>_0x98744b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3ec672=>{for(const _0x4154e0 of this['getMarkers']())_0x3ec672['removeMarker'](_0x4154e0);}),this['_markerNames']['clear']();}['removeMarker'](_0x5a22ad){this['_model']['change'](_0xa91362=>{_0xa91362['removeMarker'](_0x5a22ad);}),this['_markerNames']['delete'](_0x5a22ad);}['addRange'](_0x5cedeb){const _0x1633ec='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1633ec),this['_model']['change'](_0x2fce88=>{_0x2fce88['addMarker'](_0x1633ec,{'range':_0x5cedeb,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x543b6c){for(const _0x46e3a4 of this['getRanges']())if(_0x46e3a4['isIntersecting'](_0x543b6c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1908cb=>_0x1908cb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xe1dd6a,_0x1b0b0e)=>[..._0xe1dd6a,..._0x1b0b0e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4c1ca0=this['getRanges']();if(0x1!=_0x4c1ca0['length'])return null;const _0x505254=_0x4c1ca0[0x0],_0x3e4618=_0x505254['start']['nodeAfter'],_0x3b126c=_0x505254['end']['nodeBefore'];return _0x3e4618 instanceof _0x12815f?_0x3e4618!=_0x3b126c?null:_0x3e4618: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 _0x3137c2=[];let _0x1d1dbe=this['head'];for(;_0x1d1dbe;)_0x3137c2['push'](_0x1d1dbe),_0x1d1dbe=_0x1d1dbe['next'];return _0x3137c2;}['setAttribute'](_0x38cf21,_0x2d0233){const _0x533313=_0x3492b7(this['attributes']);_0x206d28(_0x533313,_0x38cf21,_0x2d0233),_0x2dfb64(_0x533313,this['attributes'])||(this['attributes']=_0x533313,this['_onAttributesChange'](_0x533313));}['removeAttribute'](_0xc044fc){const _0xfe9575=_0x3492b7(this['attributes']);_0x4543a7(_0xfe9575,_0xc044fc),_0x2dfb64(_0xfe9575,this['attributes'])||(this['attributes']=_0xfe9575,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 _0x429a07()['substr'](0x1,0x5);}}function o(_0x1e00f9,_0x214bd5,_0x3a13c5){const t=_0x1e00f9['t'];switch(_0x214bd5){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x3a13c5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3a13c5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3a13c5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3a13c5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3a13c5);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',_0x3a13c5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3a13c5);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3a13c5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3a13c5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3a13c5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3a13c5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3a13c5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3a13c5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3a13c5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3a13c5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3a13c5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3a13c5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3a13c5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3a13c5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3a13c5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3a13c5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3a13c5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3a13c5);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'},_0x3a13c5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3a13c5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3a13c5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3a13c5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3a13c5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3a13c5);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'},_0x3a13c5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3a13c5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3a13c5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3a13c5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3a13c5);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x3a13c5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3a13c5);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'},_0x3a13c5);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x3a13c5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3a13c5);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'},_0x3a13c5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3a13c5);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'},_0x3a13c5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3a13c5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3a13c5);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'},_0x3a13c5);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3a13c5);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3a13c5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3a13c5);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'},_0x3a13c5);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'},_0x3a13c5);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'},_0x3a13c5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x214bd5;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2f79f6,_0x3ae1c9){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2f79f6,this['_locale']=_0x3ae1c9;}['getDescriptions'](_0x34c214){const _0x2cff44=[],_0x1f5079=new Set(),_0x295710=new Set();for(let _0x1c3518=0x0;_0x1c3518<_0x34c214['length'];_0x1c3518++){const _0x5d34d=_0x34c214[_0x1c3518];if(!_0x5d34d['isInContent'])continue;const _0x203fb4=this['_handleCustomCallbackDescription'](_0x5d34d);if(_0x203fb4){if(null!=_0x5d34d['subType']){if(_0x1f5079['has'](_0x5d34d['subType']))continue;_0x1f5079['add'](_0x5d34d['subType']);}_0x2cff44['push'](_0x203fb4);}else{if('attribute'!=_0x5d34d['type'])'insertion'!=_0x5d34d['type']&&'deletion'!=_0x5d34d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2cff44,_0x5d34d,_0x34c214[_0x1c3518+0x1]);else{const _0x55c52a=_0x5d34d['data']['key'];if(_0x295710['has'](_0x55c52a))continue;_0x295710['add'](_0x5d34d['data']['key']),_0x55c52a==m?this['_handleRenameSuggestionDescription'](_0x2cff44,_0x5d34d):this['_handleAttributeSuggestionDescription'](_0x2cff44,_0x5d34d);}}}return this['_resolveDescriptionItems'](_0x2cff44);}['registerDescriptionCallback'](_0x357c55){this['_customCallbacks']['push'](_0x357c55);}['registerElementLabel'](_0xa7665e,_0x2e9809,_0x47a697=_0x1f1c0f['normal']){'function'==typeof _0xa7665e?_0x4abfdb(this['_itemLabelsCallbacks'],{'matchingCallback':_0xa7665e,'label':_0x2e9809,'priority':_0x47a697}):this['_itemLabels']['set'](_0xa7665e,_0x2e9809);}['registerAttributeLabel'](_0x545f0a,_0x53ecc9){this['_attributeLabels']['set'](_0x545f0a,_0x53ecc9);}['getItemLabel'](_0x4be777,_0x41b083=0x1){let _0x5db4f7;for(const _0x3334ee of this['_itemLabelsCallbacks'])if(_0x3334ee['matchingCallback'](_0x4be777)){_0x5db4f7=_0x3334ee['label'];break;}return _0x5db4f7||(_0x5db4f7=this['_itemLabels']['get'](_0x4be777['name'])),_0x5db4f7?_0x5db4f7(_0x41b083):0x1!==_0x41b083?_0x41b083+'\x20'+_0x4be777['name']+'s':''+_0x4be777['name'];}['_addDescriptionItems'](_0x375ca5,_0x1b0473){const _0x1ff808=_0x1b0473['getFirstRange']()['getWalker'](),_0x58e6bb='insertion'==_0x1b0473['type']?'add':'remove';for(const _0x133677 of _0x1ff808){const _0x11ef09=_0x133677['item'],_0xe94def=_0x375ca5[_0x375ca5['length']-0x1];if(_0x11ef09['is']('$textProxy'))_0xe94def&&_0xe94def['type']['indexOf']('Container')>-0x1&&_0x375ca5['pop'](),_0xe94def&&'text'==_0xe94def['type']?_0xe94def[_0x58e6bb]+=_0x11ef09['data']:_0x375ca5['push']({'type':'text','add':'add'==_0x58e6bb?_0x11ef09['data']:'','remove':'remove'==_0x58e6bb?_0x11ef09['data']:''});else{if(this['_schema']['isObject'](_0x11ef09)){const _0x16c8f8=_0x11ef09;if(_0xe94def&&_0xe94def['type']['indexOf']('Container')>-0x1&&_0x375ca5['pop'](),'elementEnd'==_0x133677['type'])continue;_0xe94def&&_0xe94def['type']==_0x58e6bb+'Object'&&_0xe94def['element']['name']==_0x16c8f8['name']?_0xe94def['quantity']++:_0x375ca5['push']({'type':_0x58e6bb+'Object','element':_0x16c8f8,'quantity':0x1}),_0x1ff808['skip'](_0x11b52c=>!('elementEnd'==_0x11b52c['type']&&_0x11b52c['item']==_0x11ef09));}else{if(this['_schema']['checkChild'](_0x11ef09,'$text')||_0x11ef09['is']('element','softBreak')){const _0x5dfc6f=_0x11ef09;if('add'==_0x58e6bb&&'elementStart'==_0x133677['type']||'remove'==_0x58e6bb&&'elementEnd'==_0x133677['type'])continue;if(_0xe94def&&-0x1==_0xe94def['type']['indexOf']('Container')){'text'==_0xe94def['type']&&(_0xe94def[_0x58e6bb]+='\x0a');continue;}let _0x1662f3;if(_0x1662f3='add'==_0x58e6bb?_0x5dfc6f['nextSibling']&&!this['_schema']['isObject'](_0x5dfc6f['nextSibling'])?_0x5dfc6f['nextSibling']:null:_0x5dfc6f['previousSibling']&&!this['_schema']['isObject'](_0x5dfc6f['previousSibling'])?_0x5dfc6f['previousSibling']:null,_0x5dfc6f['isEmpty']||_0x1662f3&&_0x1662f3['isEmpty']){const _0x1fb6b7=_0x1662f3&&_0x1662f3['isEmpty']?_0x1662f3:_0x5dfc6f;_0xe94def&&_0xe94def['type']==_0x58e6bb+'EmptyContainer'&&_0xe94def['element']['name']==_0x1fb6b7['name']?_0xe94def['quantity']++:_0x375ca5['push']({'type':_0x58e6bb+'EmptyContainer','element':_0x1fb6b7,'quantity':0x1});}else _0x375ca5['push']({'type':_0x58e6bb+'Container','element':_0x5dfc6f});}}}}}['_resolveDescriptionItems'](_0x1a43f8){const _0x5dd921=this['_locale'],_0x364c9b=[],_0x515d3f=[],_0x960ae2=[];for(const _0x4d634b of _0x1a43f8)switch(_0x4d634b['type']){case'text':if(_0x4d634b['add']=_0x4d634b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4d634b['remove']=_0x4d634b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4d634b['add']&&''!=_0x4d634b['remove']){_0x364c9b['push']({'type':'replace','content':o(_0x5dd921,'REPLACE_TEXT',['\x22'+_0x4d634b['remove']+'\x22','\x22'+_0x4d634b['add']+'\x22'])});continue;}if(null!=_0x4d634b['add']['match'](/^ +$/)){_0x364c9b['push']({'type':'insertion','content':o(_0x5dd921,'*Insert:*\x20%0',o(_0x5dd921,'ELEMENT_SPACE',_0x4d634b['add']['length']))});continue;}if(null!=_0x4d634b['remove']['match'](/^ +$/)){_0x364c9b['push']({'type':'deletion','content':o(_0x5dd921,'*Remove:*\x20%0',o(_0x5dd921,'ELEMENT_SPACE',_0x4d634b['remove']['length']))});continue;}if(''!=_0x4d634b['add']){_0x364c9b['push']({'type':'insertion','content':o(_0x5dd921,'*Insert:*\x20%0','\x22'+_0x4d634b['add']+'\x22')});continue;}_0x364c9b['push']({'type':'deletion','content':o(_0x5dd921,'*Remove:*\x20%0','\x22'+_0x4d634b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x364c9b['push']({'type':'insertion','content':o(_0x5dd921,'*Insert:*\x20%0',this['getItemLabel'](_0x4d634b['element'],_0x4d634b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x364c9b['push']({'type':'deletion','content':o(_0x5dd921,'*Remove:*\x20%0',this['getItemLabel'](_0x4d634b['element'],_0x4d634b['quantity']))});continue;case'addContainer':_0x364c9b['push']({'type':'insertion','content':o(_0x5dd921,'*Split:*\x20%0',this['getItemLabel'](_0x4d634b['element'],_0x4d634b['quantity']))});continue;case'removeContainer':_0x364c9b['push']({'type':'deletion','content':o(_0x5dd921,'*Merge:*\x20%0',this['getItemLabel'](_0x4d634b['element'],_0x4d634b['quantity']))});continue;case'addFormat':_0x515d3f['push'](_0x4d634b['key']);continue;case'removeFormat':_0x960ae2['push'](_0x4d634b['key']);continue;default:_0x364c9b['push'](_0x4d634b);}if(_0x515d3f['length']){const _0x5832bf=_0x515d3f['map'](_0x13a19f=>this['_attributeLabels']['has'](_0x13a19f)?this['_attributeLabels']['get'](_0x13a19f):_0x13a19f)['join'](',\x20');_0x364c9b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5832bf)});}if(_0x960ae2['length']){const _0x19509f=_0x960ae2['map'](_0x5810cd=>this['_attributeLabels']['has'](_0x5810cd)?this['_attributeLabels']['get'](_0x5810cd):_0x5810cd)['join'](',\x20');_0x364c9b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x19509f)});}return _0x364c9b;}['_handleCustomCallbackDescription'](_0x95263c){for(const _0x33f316 of this['_customCallbacks']){const _0x3a6380=_0x33f316(_0x95263c);if(_0x3a6380&&'type'in _0x3a6380)return _0x3a6380;}}['_handleAttributeSuggestionDescription'](_0x3899c9,_0x1a74e0){const _0x85eaba=_0x1a74e0['data'],_0x2cff52=void 0x0===_0x85eaba['newValue']?'removeFormat':'addFormat';_0x3899c9['push']({'type':_0x2cff52,'key':_0x85eaba['key']});}['_handleRenameSuggestionDescription'](_0x2faedb,_0x1423f8){_0x2faedb['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1423f8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x49404b,_0x29f99e,_0x268e11){if(this['_addDescriptionItems'](_0x49404b,_0x29f99e),_0x268e11&&_0x268e11['getFirstRange']()&&!_0x29f99e['getFirstRange']()['end']['isEqual'](_0x268e11['getFirstRange']()['start'])){const _0x3d80f3=_0x49404b[_0x49404b['length']-0x1],_0xe44e4f='insertion'==_0x29f99e['type']?'add':'remove';_0x3d80f3&&'text'==_0x3d80f3['type']&&(_0x3d80f3[_0xe44e4f]+='\x0a');}}}class V extends _0x5a19c7{['afterInit'](){const _0x3befdf=this['editor'],_0x2d186f=_0x3befdf['plugins']['get']('TrackChangesEditing');_0x3befdf['commands']['get']('showAIAssistant')&&_0x2d186f['enableCommand']('showAIAssistant');}}class U extends _0x5a19c7{['afterInit'](){const _0x265258=this['editor'],_0x4c53aa=_0x265258['locale'];if(!_0x265258['plugins']['has']('AlignmentEditing'))return;const _0x132228=_0x265258['plugins']['get']('TrackChangesEditing');_0x132228['enableDefaultAttributesIntegration']('alignment'),_0x132228['registerBlockAttribute']('alignment'),_0x132228['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4c53aa,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32007b=this['editor'],_0xb0547f=_0x32007b['locale'];_0x32007b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51aa71=>{if('formatBlock'!=_0x51aa71['type'])return;const {data:_0x4c388a}=_0x51aa71;if(_0x4c388a&&'alignment'==_0x4c388a['commandName']){const _0x1c26dd=_0x4c388a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xb0547f,'*Format:*\x20%0',function(_0x2ec5bb){switch(_0x2ec5bb){case'left':return o(_0xb0547f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xb0547f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xb0547f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xb0547f,'FORMAT_JUSTIFY_TEXT');}}(_0x1c26dd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5a19c7{['afterInit'](){const _0x5f269a=this['editor'],_0x3db919=_0x5f269a['plugins']['get']('TrackChangesEditing'),_0x4b0a3b=_0x5f269a['locale'];for(const _0x17066f of ti){if(!_0x5f269a['plugins']['has'](_0x17066f))continue;const _0x2177ac=_0x17066f['slice'](0x0,-0x7)['toLowerCase'](),_0x3d3808='FORMAT_'+_0x2177ac['toUpperCase']();_0x3db919['enableDefaultAttributesIntegration'](_0x2177ac),_0x3db919['registerInlineAttribute'](_0x2177ac),_0x3db919['descriptionFactory']['registerAttributeLabel'](_0x2177ac,o(_0x4b0a3b,_0x3d3808));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x278d28=this['editor'],_0xb70dfd=_0x278d28['locale'],_0x1a846a=_0x278d28['plugins']['get']('TrackChangesEditing');function _0x1e60fa(_0x1c7b26,_0x15a151){_0x1a846a['descriptionFactory']['registerDescriptionCallback'](_0x408506=>{if('formatInline'!=_0x408506['type'])return;const {data:_0x383903}=_0x408506;return _0x383903&&_0x383903['commandName']===_0x1c7b26?_0x383903['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb70dfd,'*Format:*\x20%0',_0x15a151)}:{'type':'format','content':o(_0xb70dfd,'*Remove\x20format:*\x20%0',_0x15a151)}:void 0x0;});}_0x1e60fa('bold',o(_0xb70dfd,'FORMAT_BOLD')),_0x1e60fa('italic',o(_0xb70dfd,'FORMAT_ITALIC')),_0x1e60fa('underline',o(_0xb70dfd,'FORMAT_UNDERLINE')),_0x1e60fa('code',o(_0xb70dfd,'FORMAT_CODE')),_0x1e60fa('strikethrough',o(_0xb70dfd,'FORMAT_STRIKETHROUGH')),_0x1e60fa('subscript',o(_0xb70dfd,'FORMAT_SUBSCRIPT')),_0x1e60fa('superscript',o(_0xb70dfd,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5a19c7{['afterInit'](){const _0x35f382=this['editor'],_0x3bd45f=_0x35f382['locale'];if(!_0x35f382['plugins']['has']('BlockQuoteEditing'))return;const _0x167d2b=_0x35f382['plugins']['get']('TrackChangesEditing'),_0x5a25e2=this['editor']['commands']['get']('blockQuote');_0x167d2b['enableCommand']('blockQuote',(_0x1bee2d,_0x457d87={})=>{const _0x46a09d=this['editor']['model']['document']['selection'],_0x58e3c3=_0x457d87&&void 0x0!==_0x457d87['forceValue']?_0x457d87['forceValue']:!_0x5a25e2['value'];let _0x4e21d3=[];if(_0x58e3c3){const _0x2ff365=Array['from'](_0x46a09d['getSelectedBlocks']())['filter'](_0xfbae93=>oo(_0xfbae93)||function(_0x5f2487,_0x51edb1){const _0x5c7e95=_0x51edb1['checkChild'](_0x5f2487['parent'],'blockQuote'),_0x396683=_0x51edb1['checkChild'](['$root','blockQuote'],_0x5f2487);return _0x5c7e95&&_0x396683;}(_0xfbae93,this['editor']['model']['schema']));_0x4e21d3=to(_0x2ff365,_0x35f382['model']);}else{const _0x582e04=Array['from'](_0x46a09d['getSelectedBlocks']())['filter'](_0xd2078b=>oo(_0xd2078b));_0x4e21d3=to(_0x582e04,_0x35f382['model']);}_0x35f382['model']['change'](()=>{for(const _0x4a3785 of _0x4e21d3)_0x167d2b['markBlockFormat'](_0x4a3785,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x58e3c3}]});});}),_0x167d2b['descriptionFactory']['registerDescriptionCallback'](_0x365ef7=>{const {data:_0x936024}=_0x365ef7;if(_0x936024&&'blockQuote'==_0x936024['commandName']){const _0x13fad5=o(_0x3bd45f,'ELEMENT_BLOCK_QUOTE');return _0x936024['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bd45f,'*Set\x20format:*\x20%0',_0x13fad5)}:{'type':'format','content':o(_0x3bd45f,'*Remove\x20format:*\x20%0',_0x13fad5)};}});}}function oo(_0x4af96e){return'blockQuote'==_0x4af96e['parent']['name'];}class L extends _0x5a19c7{['afterInit'](){const _0x1a658a=this['editor'];_0x1a658a['plugins']['has']('CaseChange')&&(_0x1a658a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1a658a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1a658a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5a19c7{['afterInit'](){const _0x5e354a=this['editor'];_0x5e354a['commands']['get']('ckbox')&&_0x5e354a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x5a19c7{['afterInit'](){const _0x513a0f=this['editor'];if(!_0x513a0f['plugins']['has']('CodeBlock'))return;const _0x13e6d0=_0x513a0f['plugins']['get']('TrackChangesEditing'),_0x2fedef=_0x513a0f['locale'],_0x52fc37=_0x513a0f['config']['get']('codeBlock')['languages'],_0x40fcc6=_0x513a0f['commands']['get']('codeBlock');_0x13e6d0['enableCommand']('indentCodeBlock'),_0x13e6d0['enableCommand']('outdentCodeBlock'),_0x13e6d0['enableCommand']('codeBlock',(_0x5d277a,_0x441be9={})=>{const _0x5d47f5=_0x513a0f['model'],_0x20bbaa=_0x513a0f['model']['document']['selection'],_0x40048b=_0x441be9&&void 0x0!==_0x441be9['forceValue']?_0x441be9['forceValue']:!_0x40fcc6['value'];let _0x49d916;_0x441be9['language']||(_0x441be9['language']=_0x52fc37[0x0]['language']),_0x49d916=_0x40048b?Array['from'](_0x20bbaa['getSelectedBlocks']())['filter'](_0x4f11ea=>eo(_0x4f11ea)||function(_0x52a235,_0xfeaac5){if(_0x52a235['is']('rootElement')||_0xfeaac5['isLimit'](_0x52a235))return!0x1;return _0xfeaac5['checkChild'](_0x52a235['parent'],'codeBlock');}(_0x4f11ea,_0x5d47f5['schema'])):Array['from'](_0x20bbaa['getSelectedBlocks']())['filter'](_0x342ab9=>eo(_0x342ab9));const _0x680fbf=to(_0x49d916,_0x5d47f5);_0x5d47f5['change'](()=>{for(const _0x3b77fe of _0x680fbf)_0x13e6d0['markBlockFormat'](_0x3b77fe,{'commandName':'codeBlock','commandParams':[{..._0x441be9,'forceValue':_0x40048b}],'formatGroupId':'blockName'});});}),(_0x13e6d0['descriptionFactory']['registerElementLabel']('codeBlock',_0x4e35b8=>o(_0x2fedef,'ELEMENT_CODE_BLOCK',_0x4e35b8)),_0x13e6d0['descriptionFactory']['registerDescriptionCallback'](_0x1f967d=>{if('formatBlock'!=_0x1f967d['type'])return;const _0x3685e5=_0x2fedef['t'],{data:_0x42c5ba}=_0x1f967d;if(!_0x42c5ba||'codeBlock'!=_0x42c5ba['commandName'])return;const _0x344ac6=_0x42c5ba['commandParams'][0x0]['language'],_0x155ad1=_0x3685e5(_0x52fc37['find'](_0x3e8924=>_0x3e8924['language']===_0x344ac6)['label'])['toLowerCase']();return _0x42c5ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fedef,'*Set\x20format:*\x20%0',o(_0x2fedef,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x155ad1+')')}:{'type':'format','content':o(_0x2fedef,'*Remove\x20format:*\x20%0',o(_0x2fedef,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3f1757){return'codeBlock'==_0x3f1757['name'];}class q extends _0x5a19c7{['afterInit'](){const _0x2ce387=this['editor'];if(!_0x2ce387['plugins']['has']('CommentsEditing'))return;_0x2ce387['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4399f6,_0x5e8c28,_0x1601a1){const _0x437a28=[];for(const _0x1b99ab of _0x5e8c28['getItems']())_0x1b99ab['hasAttribute'](_0x4399f6)&&_0x437a28['push'](_0x1601a1['createRangeOn'](_0x1b99ab));return _0x437a28;}function _e(_0x3973b9,_0x2ca51e,{showActiveMarker:_0x35d6da=!0x0}={}){const _0x40c53d=_0x3973b9['plugins']['get']('TrackChangesEditing');return(_0x3235ee,_0xe46659,_0x23bbdf)=>{if(!_0x23bbdf['consumable']['test'](_0xe46659['markerRange'],_0x3235ee['name']))return;const _0x5ba82f=_0xe46659['markerRange']['getWalker'](),_0x2a156b=_0xe46659['markerRange']['start'],_0x33678d=_0x3973b9['model']['schema'];let _0x322015=null,_0x3a982b=null,_0x233429=!0x1,_0x24c384=!0x1;for(const _0x3acce5 of _0x5ba82f){const _0x581569=_0x3acce5['item'];_0x233429=_0x233429||_0x33678d['isContent'](_0x581569);const _0x580129=_0x23bbdf['mapper']['toViewElement'](_0x581569);if(_0x580129&&_0x580129['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3acce5['type']&&(_0x33678d['isBlock'](_0x581569)&&!_0x33678d['isLimit'](_0x581569)&&(_0x581569['nextSibling']||_0x2a156b['isAtEnd']?_0x322015&&_0x322015['parent']==_0x581569||(_0x322015=_0x581569,_0x5c50b2(_0x3acce5['previousPosition']),_0x24c384=!0x0):_0x3a982b=_0x3a982b||_0x3acce5['previousPosition']));}function _0x5c50b2(_0x908236){const {authorId:_0x7489d5}=_0x40c53d['_splitMarkerName'](_0xe46659['markerName']),_0x4d6b8d=_0x23bbdf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2ca51e,'data-author-id':_0x7489d5}),_0x3187f0=_0x23bbdf['mapper']['toViewPosition'](_0x908236);_0x35d6da&&_0x40c53d['activeMarkers']['includes'](_0xe46659['markerName'])&&_0x23bbdf['writer']['addClass']('ck-suggestion-marker--active',_0x4d6b8d),_0x23bbdf['writer']['insert'](_0x3187f0,_0x4d6b8d),_0x23bbdf['mapper']['bindElementToMarker'](_0x4d6b8d,_0xe46659['markerName']);}_0x233429||_0x24c384||!_0x3a982b||_0x5c50b2(_0x3a982b);};}class z extends _0x5a19c7{static get['requires'](){return[_0x5eeca8];}['init'](){const _0x15bc7d=this['editor'],_0x149f44=_0x15bc7d['plugins']['get']('TrackChangesEditing');_0x149f44['enableCommand']('delete');const _0x304df6=_0x15bc7d['commands']['get']('deleteForward');_0x149f44['enableCommand']('deleteForward',(_0x5b965d,_0x45b56a={})=>{const _0x7f787b=_0x15bc7d['model']['createSelection'](_0x15bc7d['model']['document']['selection']);_0x7f787b['isCollapsed']&&_0x15bc7d['model']['modifySelection'](_0x7f787b,{'direction':'forward','unit':_0x45b56a['unit']});const _0x1b21cf=_0x7f787b['getFirstRange'](),_0x20da4d=_0x31c9bf['fromRange'](_0x1b21cf);let _0x5b3768;_0x5b965d(_0x45b56a),_0x5b3768='$graveyard'==_0x20da4d['root']['rootName']?_0x15bc7d['model']['createRange'](_0x1b21cf['start']):_0x15bc7d['model']['createRange'](_0x20da4d['start'],_0x20da4d['end']),_0x20da4d['detach'](),_0x15bc7d['model']['enqueueChange'](_0x304df6['buffer']['batch'],_0x818f39=>{_0x304df6['buffer']['lock'](),_0x818f39['setSelection'](_0x818f39['createRange'](_0x5b3768['end'])),_0x304df6['buffer']['unlock']();});}),_0x15bc7d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x15bc7d,'merge'),{'priority':'high'}),_0x15bc7d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x199e4b,_0x2d185f,_0x22e763)=>{_0x22e763['options']['showSuggestionHighlights']&&_e(_0x15bc7d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x199e4b,_0x2d185f,_0x22e763);},{'priority':'high'}),_0x15bc7d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1af16b,_0x1fa80c,_0x571639)=>{const _0x5d546b=_0x571639['mapper']['markerNameToElements'](_0x1fa80c['markerName']);if(_0x5d546b){for(const _0x237e97 of _0x5d546b)_0x237e97['is']('uiElement')&&(_0x571639['mapper']['unbindElementFromMarkerName'](_0x237e97,_0x1fa80c['markerName']),_0x571639['writer']['remove'](_0x237e97));}},{'priority':'high'});}}class K extends _0x5a19c7{['afterInit'](){const _0x29e119=this['editor'];if(!_0x29e119['plugins']['has']('ListEditing'))return;const _0xa47efb=_0x29e119['locale'],_0x56e85d=_0x29e119['plugins']['get']('TrackChangesEditing'),_0x9b36b4=_0x29e119['plugins']['has']('TodoListEditing'),_0x58b0f2=!!_0x29e119['config']['get']('list.multiBlock');function _0x165d76(_0x36f8ab){return{'type':'format','content':''+o(_0xa47efb,'*Set\x20format:*\x20%0',_0x36f8ab)};}function _0x2ad59f(_0x3e05ce){return{'type':'format','content':''+o(_0xa47efb,'*Remove\x20format:*\x20%0',_0x3e05ce)};}_0x56e85d['enableDefaultAttributesIntegration']('numberedList'),_0x56e85d['enableDefaultAttributesIntegration']('bulletedList'),_0x56e85d['enableDefaultAttributesIntegration']('customNumberedList'),_0x56e85d['enableDefaultAttributesIntegration']('customBulletedList'),_0x56e85d['enableDefaultAttributesIntegration']('indentList'),_0x56e85d['enableDefaultAttributesIntegration']('outdentList'),_0x56e85d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x56e85d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x56e85d['registerBlockAttribute']('listItemId'),_0x56e85d['registerBlockAttribute']('listType'),_0x56e85d['registerBlockAttribute']('listIndent'),_0x58b0f2&&(_0x56e85d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x56e85d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x9b36b4&&(_0x56e85d['enableDefaultAttributesIntegration']('todoList'),_0x56e85d['enableDefaultAttributesIntegration']('checkTodoList'),_0x56e85d['registerBlockAttribute']('todoListChecked'),_0x56e85d['descriptionFactory']['registerDescriptionCallback'](_0x828cdd=>{const {data:_0xb14de7}=_0x828cdd;if(_0xb14de7&&'todoListChecked'==_0xb14de7['key'])return{'type':'format','content':_0xb14de7['newValue']?o(_0xa47efb,'*Check\x20item*'):o(_0xa47efb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x32916f=>{if(_0x32916f['batch']['isUndo'])return!0x1;let _0x5bf241=!0x1;const _0x2d3613=_0x56e85d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x486986=>'todoListChecked'===_0x56e85d['_getAttributeKey'](_0x486986));for(const _0x29be7d of _0x2d3613){'todo'!=_0x29be7d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x56e85d['_findSuggestions'](_0x29be7d['getFirstRange'](),'attribute')['find'](_0xf1abc5=>'listType'===_0x56e85d['_getAttributeKey'](_0xf1abc5['suggestion']))||(_0x32916f['removeMarker'](_0x29be7d['getFirstMarker']()),_0x5bf241=!0x0));}return _0x5bf241;})),_0x56e85d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xa47efb,'FORMAT_INDENT'));const _0x3ca732={'type':'format','content':''};_0x56e85d['descriptionFactory']['registerDescriptionCallback'](_0x5b212c=>{const {data:_0x51323c}=_0x5b212c;if(!_0x51323c||'listType'!=_0x51323c['key'])return;let _0xcecc26=_0x5b212c['head'];for(;_0xcecc26;){if(_0xcecc26['data']&&(('listStyle'==_0xcecc26['data']['key']||'listMarkerStyle'==_0xcecc26['data']['key'])&&(_0xcecc26['data']['newValue']&&'default'!=_0xcecc26['data']['newValue']||'default'!=_0xcecc26['data']['oldValue']&&!_0x51323c['newValue'])||!_0x58b0f2&&_0xcecc26['data']['key']==m))return _0x3ca732;_0xcecc26=_0xcecc26['next'];}if(null==_0x51323c['newValue'])switch(_0x51323c['oldValue']){case'bulleted':return _0x2ad59f(o(_0xa47efb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ad59f(o(_0xa47efb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ad59f(o(_0xa47efb,'ELEMENT_TODO_LIST'));}switch(_0x51323c['newValue']){case'bulleted':return _0x165d76(o(_0xa47efb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x165d76(o(_0xa47efb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x165d76(o(_0xa47efb,'ELEMENT_TODO_LIST'));}}),_0x56e85d['descriptionFactory']['registerDescriptionCallback'](_0x4f51c9=>{const {data:_0x7eb124}=_0x4f51c9;if(_0x7eb124&&'listIndent'==_0x7eb124['key'])return null==_0x7eb124['newValue']||null==_0x7eb124['oldValue']&&0x0==_0x7eb124['newValue']?_0x3ca732:void 0x0;}),_0x56e85d['descriptionFactory']['registerDescriptionCallback'](_0x135588=>{if('attribute'!=_0x135588['type'])return;const {data:_0x58a3c0}=_0x135588;if(!_0x58a3c0||'listItemId'!=_0x58a3c0['key'])return;const _0x5ba160=Ee(_0x135588);return'newValue'==_0x5ba160?{'type':'format','content':o(_0xa47efb,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5ba160?{'type':'format','content':o(_0xa47efb,'*Split:*\x20list\x20item')}:_0x3ca732;}),_0x29e119['model']['document']['registerPostFixer'](_0x12d07a=>this['listItemIdFixer'](_0x12d07a)),_0x29e119['model']['document']['registerPostFixer'](_0x2a875f=>this['noTrackChangesFixer'](_0x2a875f)),_0x29e119['model']['document']['on']('change:data',(_0xab2c8a,_0x527097)=>{if(_0x527097['isUndo']||!_0x527097['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x147966){if(_0x147966['batch']['isUndo']||!_0x147966['batch']['isLocal'])return!0x1;let _0x4bd337=!0x1;const _0x15e2e4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2093b0=>_0x2093b0['data']&&'listItemId'==_0x2093b0['data']['key'])['filter'](_0x6c44d0=>_0x6c44d0['data']['newValue']&&_0x6c44d0['data']['oldValue']);for(const _0x443700 of _0x15e2e4)Ee(_0x443700)||(_0x147966['removeMarker'](_0x443700['getFirstMarker']()),_0x4bd337=!0x0);return _0x4bd337;}['noTrackChangesFixer'](_0x385be7){if(_0x385be7['batch']['isUndo']||!_0x385be7['batch']['isLocal'])return!0x1;const _0x5846a6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5846a6['trackChangesCommand']['value'])return!0x1;let _0x369a31=!0x1;const _0xda1d1c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x546e16=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x426e26=>'attribute'==_0x426e26['type'])['filter'](_0x42cc0d=>_0xda1d1c['includes'](_0x42cc0d['attributeKey']));if(0x0==_0x546e16['length'])return _0x369a31;for(const _0x29dea3 of _0x546e16){const _0x252412=_0x5846a6['_findSuggestions'](_0x29dea3['range'],'attribute')['filter'](_0x2ee71f=>!_0x2ee71f['meta']['isNextTo'])['map'](_0x52e0a3=>_0x52e0a3['suggestion'])['filter'](_0x1edd26=>{const _0x1dd2b6=_0x5846a6['_getAttributeKey'](_0x1edd26);return _0xda1d1c['includes'](_0x1dd2b6);});if(_0x252412['length']){for(const _0x30ef27 of _0x252412)_0x385be7['removeMarker'](_0x30ef27['getFirstMarker']());_0x369a31=!0x0;}}return _0x369a31;}['assureChains'](){const _0x4a8ad0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18c10d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x47483e;const _0x2a42bd=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xf72006=>{if(_0xf72006['data']['oldRange']||!_0xf72006['data']['newRange'])return null;if(!_0xf72006['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x6e36ea}=_0x4a8ad0['_splitMarkerName'](_0xf72006['name']);if(!_0x4a8ad0['hasSuggestion'](_0x6e36ea))return null;const _0x26eb1b=_0x4a8ad0['getSuggestion'](_0x6e36ea);return _0x18c10d['includes'](_0x26eb1b['data']['key']);})['map'](_0x20d962=>{const {id:_0x2219ac}=_0x4a8ad0['_splitMarkerName'](_0x20d962['name']),_0x32421f=_0x4a8ad0['getSuggestion'](_0x2219ac);return _0x47483e=_0x32421f['attributes']['groupId'],_0x32421f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2a42bd['size'])return;const _0x1ddb03=_0x4a8ad0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1081d0=>'attribute'==_0x1081d0['type']&&_0x1081d0['data']&&_0x18c10d['includes'](_0x1081d0['data']['key'])&&_0x1081d0['attributes']['groupId']!=_0x47483e)['map'](_0x256205=>({'listItem':_0x256205['getFirstRange']()['start']['nodeAfter'],'groupId':_0x256205['attributes']['groupId']})),_0x4cff9e=new Set();for(const {groupId:_0x356637,listItem:_0x5a063b}of _0x1ddb03)_0x2a42bd['has'](_0x5a063b)&&_0x4cff9e['add'](_0x356637);for(const _0x22fb04 of _0x4a8ad0['getSuggestions']())_0x4cff9e['has'](_0x22fb04['attributes']['groupId'])&&_0x22fb04['setAttribute']('groupId',_0x47483e);}['_supportLegacySuggestions'](){const _0xe78e8a=this['editor'],_0x1a8480=_0xe78e8a['locale'],_0x143ac3=_0xe78e8a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x143ac3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4a5bba,_0x3115b1){const _0x5ab666=[];for(let _0x3cb79b of _0x4a5bba)_0x3cb79b['start']['nodeAfter']===_0x3cb79b['end']['parent']&&(_0x3cb79b=_0xe78e8a['model']['createRange'](_0xe78e8a['model']['createPositionAt'](_0x3cb79b['start']['nodeAfter'],0x0))),_0x5ab666['push'](_0x3cb79b);_0xe78e8a['model']['change'](_0x44bed3=>{const _0x34c50a=_0xe78e8a['model']['document']['selection'],_0x3fe6cc=Array['from'](_0x34c50a['getRanges']())['map'](_0x3ce936=>_0x31c9bf['fromRange'](_0x3ce936));_0x44bed3['setSelection'](_0x5ab666),_0xe78e8a['commands']['get'](_0x3115b1['commandName'])['refresh'](),_0x3115b1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xe78e8a['execute'](_0x3115b1['commandName'],..._0x3115b1['commandParams']),_0x44bed3['setSelection'](_0x3fe6cc);for(const _0x4eb77a of _0x3fe6cc)_0x4eb77a['detach']();});}),_0x143ac3['descriptionFactory']['registerElementLabel'](function(_0x56f3c2){const _0x58e73e=!_0xe78e8a['model']['schema']['isObject'](_0x56f3c2),_0x50d10c=_0x56f3c2['previousSibling'],_0x334dcc=_0x56f3c2['nextSibling'],_0x37b633=_0x56f3c2['getAttribute']('listItemId'),_0x1967c8=!_0x50d10c||_0x50d10c['getAttribute']('listItemId')!==_0x37b633,_0x1d03b0=!_0x334dcc||_0x334dcc['getAttribute']('listItemId')!==_0x37b633;return _0x58e73e&&Boolean(_0x37b633)&&_0x1967c8&&_0x1d03b0;},_0x5bba89=>o(_0x1a8480,'ELEMENT_LIST_ITEM',_0x5bba89));}['_registerLegacyDescription'](){const _0x30583b=this['editor'],_0x3879a0=_0x30583b['locale'];function _0x4356d8(_0x5dfa78){const _0x39c36c=_0x30583b['commands']['get']('bulletedList')['value'],_0x3fe77c=_0x30583b['commands']['get']('numberedList')['value'];return'numberedList'===_0x5dfa78?_0x39c36c:_0x3fe77c;}_0x30583b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2d6c99){if('formatBlock'!=_0x2d6c99['type'])return;const {data:_0x121651}=_0x2d6c99;if(!_0x121651)return;let _0x16e8b4,_0x1cb37d,_0x4f4a71,_0x3b1287;switch(_0x121651['commandName']){case'bulletedList':_0x4f4a71=_0x121651['commandParams'][0x0]['forceValue'],_0x3b1287=_0x4356d8(_0x121651['commandName']),_0x16e8b4=_0x4f4a71?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b1287&&_0x30583b['config']['get']('list.multiBlock')||(_0x16e8b4='*Change\x20to:*\x20%0'),_0x1cb37d={'type':'format','content':o(_0x3879a0,_0x16e8b4,o(_0x3879a0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4f4a71=_0x121651['commandParams'][0x0]['forceValue'],_0x3b1287=_0x4356d8(_0x121651['commandName']),_0x16e8b4=_0x4f4a71?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b1287&&_0x30583b['config']['get']('list.multiBlock')||(_0x16e8b4='*Change\x20to:*\x20%0'),_0x1cb37d={'type':'format','content':o(_0x3879a0,_0x16e8b4,o(_0x3879a0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x16e8b4='*Indent:*\x20%0',_0x1cb37d={'type':'format','content':o(_0x3879a0,_0x16e8b4,o(_0x3879a0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x16e8b4=function(_0x55ff60){const _0x4c4bd9=_0x55ff60['getFirstRange']();let _0x5ea928=_0x4c4bd9['start']['nodeAfter'];for(;_0x5ea928&&_0x4c4bd9['containsItem'](_0x5ea928);){if(_0x5ea928['getAttribute']('listIndent')>0x0)return!0x1;_0x5ea928=_0x5ea928['nextSibling'];}return!0x0;}(_0x2d6c99)?o(_0x3879a0,'*Format:*\x20remove\x20from\x20%0',o(_0x3879a0,function(_0x9fd99d){return'ELEMENT_'+_0x9fd99d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2d6c99))):o(_0x3879a0,'*Outdent:*\x20%0',o(_0x3879a0,'ELEMENT_LIST_ITEM')),_0x1cb37d={'type':'format','content':_0x16e8b4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x121651['multipleBlocks']&&(_0x16e8b4='*Merge:*\x20%0',_0x1cb37d={'type':'deletion','content':o(_0x3879a0,_0x16e8b4,o(_0x3879a0,'ELEMENT_LIST_ITEM'))});}return _0x1cb37d;});}}function Ee(_0x3f84dc){let _0x7535ed=_0x3f84dc['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x7535ed;){const _0x1edde4=_0x7535ed['getAttribute']('listItemId');if(!_0x1edde4)return!0x1;if(_0x1edde4==_0x3f84dc['data']['newValue'])return'newValue';if(_0x1edde4==_0x3f84dc['data']['oldValue'])return'oldValue';_0x7535ed=_0x7535ed['previousSibling'];}return!0x1;}class pe extends _0x5a19c7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xc641e1=this['editor']['config']['get']('list.properties'),_0x3f6f49=this['editor']['plugins']['get']('TrackChangesEditing');_0xc641e1['styles']&&(_0x3f6f49['enableDefaultAttributesIntegration']('listStyle'),_0x3f6f49['registerBlockAttribute']('listStyle')),_0xc641e1['reversed']&&(_0x3f6f49['enableDefaultAttributesIntegration']('listReversed'),_0x3f6f49['registerBlockAttribute']('listReversed')),_0xc641e1['startIndex']&&(_0x3f6f49['enableDefaultAttributesIntegration']('listStart'),_0x3f6f49['registerBlockAttribute']('listStart'));const _0x4d6873={'type':'format','content':''};_0x3f6f49['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x576dd8=this['editor']['locale'];_0x3f6f49['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x576dd8,'FORMAT_LIST_REVERSED')),_0x3f6f49['descriptionFactory']['registerDescriptionCallback'](_0x2c2afb=>{const {data:_0x14a46b}=_0x2c2afb;if(_0x14a46b&&'listReversed'==_0x14a46b['key'])return null==_0x14a46b['newValue']||0x0==_0x14a46b['newValue']&&null==_0x14a46b['oldValue']?_0x4d6873:void 0x0;}),_0x3f6f49['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x576dd8,'FORMAT_LIST_START')),_0x3f6f49['descriptionFactory']['registerDescriptionCallback'](_0x1b38bc=>{const {data:_0x3bcfed}=_0x1b38bc;if(_0x3bcfed&&'listStart'==_0x3bcfed['key'])return null==_0x3bcfed['newValue']||0x1==_0x3bcfed['newValue']&&null==_0x3bcfed['oldValue']?_0x4d6873:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x15c432=>{if(_0x15c432['batch']['isUndo'])return!0x1;let _0x4d1edf=!0x1;const _0x498cd6=_0x3f6f49['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c48ad=>{const _0x9983fa=_0x3f6f49['_getAttributeKey'](_0x5c48ad);return'listStart'==_0x9983fa||'listReversed'==_0x9983fa;});for(const _0x18e877 of _0x498cd6){const _0x457edf=_0x18e877['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x457edf||'customNumbered'==_0x457edf)continue;_0x3f6f49['_findSuggestions'](_0x18e877['getFirstRange'](),'attribute')['find'](_0x326816=>'listType'==_0x3f6f49['_getAttributeKey'](_0x326816['suggestion']))||(_0x15c432['removeMarker'](_0x18e877['getFirstMarker']()),_0x4d1edf=!0x0);}return _0x4d1edf;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5d3ce5){const _0xd44fc3=this['editor']['locale'],{data:_0x1f588a}=_0x5d3ce5,_0x114413={'type':'format','content':''};if(!_0x1f588a||'listStyle'!=_0x1f588a['key'])return;if(!_0x1f588a['oldValue'])return'default'==_0x1f588a['newValue']?_0x114413:{'type':'format','content':''+o(_0xd44fc3,'*Set\x20format:*\x20%0',o(_0xd44fc3,this['_getTranslationKeyForListStyle'](_0x1f588a['newValue'])))};if(!_0x1f588a['newValue']){if('default'==_0x1f588a['oldValue'])return _0x114413;let _0x1c2803=_0x5d3ce5['head'];for(;_0x1c2803;){if(_0x1c2803['data']&&'listType'==_0x1c2803['data']['key']&&_0x1c2803['data']['newValue'])return _0x114413;_0x1c2803=_0x1c2803['next'];}return{'type':'format','content':''+o(_0xd44fc3,'*Remove\x20format:*\x20%0',o(_0xd44fc3,this['_getTranslationKeyForListStyle'](_0x1f588a['oldValue'])))};}if('default'!=_0x1f588a['newValue'])return{'type':'format','content':''+o(_0xd44fc3,'*Set\x20format:*\x20%0',o(_0xd44fc3,this['_getTranslationKeyForListStyle'](_0x1f588a['newValue'])))};let _0x27a137=_0x5d3ce5['head'];for(;_0x27a137;){if(_0x27a137['data']&&'listType'==_0x27a137['data']['key']&&_0x27a137['data']['newValue']&&_0x27a137['data']['oldValue'])return _0x114413;_0x27a137=_0x27a137['next'];}return{'type':'format','content':o(_0xd44fc3,'*Set\x20format:*\x20%0',o(_0xd44fc3,'ELEMENT_'+_0x5d3ce5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2ee717=this['editor'],_0x301c2c=_0x2ee717['locale'];_0x2ee717['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dabed=>{if('formatBlock'!=_0x1dabed['type'])return;const {data:_0x54aedd}=_0x1dabed;if(!_0x54aedd)return;let _0x3296f9,_0x333f3e;switch(_0x54aedd['commandName']){case'listStyle':_0x3296f9='*Change\x20to:*\x20%0',_0x333f3e={'type':'format','content':o(_0x301c2c,_0x3296f9,o(_0x301c2c,this['_getTranslationKeyForListStyle'](_0x54aedd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3296f9=_0x54aedd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x333f3e={'type':'format','content':o(_0x301c2c,_0x3296f9)};break;case'listStart':_0x3296f9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x333f3e={'type':'format','content':o(_0x301c2c,_0x3296f9,_0x54aedd['commandParams'][0x0]['startIndex'])};}return _0x333f3e;});}['_getTranslationKeyForListStyle'](_0x30cdfb){return'ELEMENT_'+function(_0x53777d){if(ye['includes'](_0x53777d))return'bulleted';if(Se['includes'](_0x53777d))return'numbered';return null;}(_0x30cdfb)['toUpperCase']()+'_LIST_'+_0x30cdfb['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x5a19c7{static get['requires'](){return[_0x47888e];}['init'](){const _0x157bdf=this['editor'],_0x2452f7=_0x157bdf['plugins']['get']('TrackChangesEditing'),_0x612cfd=_0x157bdf['commands']['get']('enter');_0x2452f7['enableCommand']('enter',()=>{_0x157bdf['model']['change'](_0x44af1a=>{const _0x35c962=_0x157bdf['model']['document']['selection'],_0x15ffdf=_0x35c962['getFirstPosition'](),_0x39cd60=_0x31c9bf['fromRange'](_0x35c962['getFirstRange']());if(_0x612cfd['enterBlock'](_0x44af1a)){const _0x208fc9=_0x157bdf['model']['createPositionAt'](_0x15ffdf['parent']['nextSibling'],0x0),_0x582acc=_0x44af1a['createRange'](_0x15ffdf,_0x208fc9);_0x2452f7['markInsertion'](_0x582acc);}else _0x44af1a['setSelection'](_0x44af1a['createRange'](_0x39cd60['end']));_0x39cd60['detach'](),_0x612cfd['fire']('afterExecute',{'writer':_0x44af1a});});}),_0x157bdf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x157bdf,'split'),{'priority':'high'}),_0x157bdf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x49b924,_0x35205b,_0x1e6f59)=>{const _0x4d9d8d=_0x1e6f59['mapper']['markerNameToElements'](_0x35205b['markerName']);if(_0x4d9d8d){for(const _0x1c45e3 of _0x4d9d8d)_0x1c45e3['hasClass']('ck-suggestion-marker-split')&&(_0x1e6f59['mapper']['unbindElementFromMarkerName'](_0x1c45e3,_0x35205b['markerName']),_0x1e6f59['writer']['remove'](_0x1c45e3));}},{'priority':'high'}),_0x157bdf['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x35e038,_0x119602,_0x87d35e)=>{_0x87d35e['options']['showSuggestionHighlights']&&_e(_0x157bdf,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x35e038,_0x119602,_0x87d35e);},{'priority':'high'});}}class X extends _0x5a19c7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xc66b7d=this['editor']['plugins']['get']('TrackChangesEditing');_0xc66b7d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xc66b7d['enableCommand']('findNext'),_0xc66b7d['enableCommand']('findPrevious'),_0xc66b7d['enableCommand']('replace'),_0xc66b7d['enableCommand']('replaceAll');}['handleFindCommand'](_0x4b43ce,_0x265614,_0x47e19b={}){const _0x4cb7f5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4b43ce(_0x5ed125=>{let _0x4d2f83=('string'==typeof _0x265614?_0x4cb7f5['findByTextCallback'](_0x265614,_0x47e19b):_0x265614)(_0x5ed125);Array['isArray'](_0x4d2f83)&&(_0x4d2f83={'results':_0x4d2f83,'searchText':'string'==typeof _0x265614?_0x265614:''});const _0xe1c577=_0x4d2f83['results']['filter'](_0x2e2c42=>!0x1===this['_isInDeletionRange'](_0x2e2c42,_0x5ed125['item']));return{..._0x4d2f83,'results':_0xe1c577};},_0x47e19b);}['_isInDeletionRange'](_0x3990c1,_0x1d9db6){const _0x49d000=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1d9db6,_0x3990c1['start']),this['editor']['model']['createPositionAt'](_0x1d9db6,_0x3990c1['end']));for(const _0x4a349f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x49d000['getIntersection'](_0x4a349f['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x5a19c7{['afterInit'](){const _0x5eeb69=this['editor']['locale'],_0xfd5150=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5587a9,commandName:_0x3fe2d2}of ro)this['editor']['plugins']['has'](_0x5587a9)&&(_0xfd5150['enableDefaultAttributesIntegration'](_0x3fe2d2),_0xfd5150['registerInlineAttribute'](_0x3fe2d2));_0xfd5150['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5eeb69,'FORMAT_FONT_SIZE')),_0xfd5150['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5eeb69,'FORMAT_FONT_FAMILY')),_0xfd5150['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5eeb69,'FORMAT_FONT_COLOR')),_0xfd5150['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5eeb69,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c7023=this['editor'],_0x2a0e41=_0x2c7023['locale'];_0x2c7023['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15dbee=>{const _0x4e7707=_0x2a0e41['t'];if('formatInline'!=_0x15dbee['type'])return;const {data:_0x16a69f}=_0x15dbee;if(null!=_0x16a69f){if('fontSize'==_0x16a69f['commandName']){const _0x2faf01=_0x16a69f['commandParams'][0x0]['value'];if(_0x2faf01){const _0x64aee2=_0x4e7707(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x146758=>_0x146758['model']==_0x2faf01)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2a0e41,'*Set\x20font\x20size:*\x20%0',_0x64aee2)};}return{'type':'format','content':o(_0x2a0e41,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x16a69f['commandName']){const _0x4fe001=_0x16a69f['commandParams'][0x0]['value'];return _0x4fe001?{'type':'format','content':o(_0x2a0e41,'*Set\x20font\x20family:*\x20%0',_0x4fe001)}:{'type':'format','content':o(_0x2a0e41,'*Reset\x20font\x20family*')};}if('fontColor'==_0x16a69f['commandName']){const _0x4b231a=_0x16a69f['commandParams'][0x0]['value'];if(_0x4b231a){const _0xd06170=_0x435004(this['editor']['config']['get']('fontColor.colors'))['find'](_0x483336=>_0x483336['model']==_0x4b231a);let _0x192734=_0x4b231a,_0x5d8503='';return _0xd06170&&(_0x192734=_0xd06170['label'],_0x5d8503=_0x4e7707(_0x192734)['toLowerCase']()),{'type':'format','content':o(_0x2a0e41,'*Set\x20font\x20color:*\x20%0',_0x5d8503)['trim'](),'color':{'value':_0x4b231a,'title':_0x5d8503||_0x192734}};}return{'type':'format','content':o(_0x2a0e41,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x16a69f['commandName']){const _0x2d5cc9=_0x16a69f['commandParams'][0x0]['value'];if(_0x2d5cc9){const _0x588803=_0x435004(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1e71f1=>_0x1e71f1['model']==_0x2d5cc9);let _0xc66b2e=_0x2d5cc9,_0x54ddc0='';return _0x588803&&(_0xc66b2e=_0x588803['label'],_0x54ddc0=_0x4e7707(_0xc66b2e)['toLowerCase']()),{'type':'format','content':o(_0x2a0e41,'*Set\x20font\x20background\x20color:*\x20%0',_0x54ddc0)['trim'](),'color':{'value':_0x2d5cc9,'title':_0x54ddc0||_0xc66b2e}};}return{'type':'format','content':o(_0x2a0e41,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x5a19c7{['afterInit'](){const _0x625f9e=this['editor'],_0x53e52c=_0x625f9e['plugins']['get']('TrackChangesEditing'),_0x5e0c67=_0x625f9e['commands']['get']('copyFormat'),_0x505b56=_0x625f9e['commands']['get']('pasteFormat');_0x5e0c67&&_0x505b56&&(_0x53e52c['enableDefaultAttributesIntegration']('pasteFormat'),_0x53e52c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3338e5=this['editor'],_0x333d07=_0x3338e5['locale'];_0x3338e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15eb7d=>{if('formatBlock'!=_0x15eb7d['type']&&'formatInline'!=_0x15eb7d['type'])return;const {data:_0x233d2c}=_0x15eb7d;if(_0x233d2c&&'pasteFormat'===_0x233d2c['commandName']){const _0x5afeee=[],_0x27822c=_0x233d2c['commandParams'][0x0];for(const [_0x855e2,_0x12e52b]of Object['entries'](_0x27822c))_0x5afeee['push'](so(_0x3338e5,_0x855e2,_0x12e52b));return _0x5afeee['length']?{'type':'format','content':o(_0x333d07,'*Set\x20format\x20to:*\x20%0',_0x5afeee['join'](',\x20'))}:{'type':'format','content':o(_0x333d07,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3004d0,_0x4bf5a0,_0x47bdb3){const _0x41e598=_0x3004d0['locale']['t'],_0x4b3cd3=_0x4bf5a0['split'](/(?=[A-Z])/)['join']('\x20'),_0x4dbc95=_0x41e598(_0x4b3cd3['charAt'](0x0)['toUpperCase']()+_0x4b3cd3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x47bdb3)return _0x4dbc95;if('fontColor'===_0x4bf5a0||'fontBackgroundColor'===_0x4bf5a0){const _0x49b4f4=_0x435004(_0x3004d0['config']['get']('fontColor.colors'))['find'](_0x1a9c32=>_0x1a9c32['model']==_0x47bdb3);return _0x4dbc95+'\x20('+(_0x49b4f4?_0x41e598(_0x49b4f4['label'])['toLowerCase']():_0x47bdb3)+')';}if('fontSize'===_0x4bf5a0&&isNaN(parseFloat(_0x47bdb3))){const _0x369831=_0x3004d0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3004d0['config']['get']('fontSize.options'))['find'](_0xbe2848=>_0xbe2848['model']==_0x47bdb3);return _0x4dbc95+'\x20('+(_0x369831?_0x41e598(_0x369831['title'])['toLowerCase']():_0x47bdb3)+')';}return _0x4dbc95+'\x20('+_0x47bdb3+')';}class tt extends _0x5a19c7{['_headingOptions'];['afterInit'](){const _0x11ba34=this['editor'];if(!_0x11ba34['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11ba34['config']['get']('heading.options');const _0x3b05cd=_0x11ba34['locale'],_0x543f1b=_0x11ba34['plugins']['get']('TrackChangesEditing');_0x543f1b['enableDefaultAttributesIntegration']('heading');for(const _0x538f9c of this['_headingOptions'])'paragraph'!=_0x538f9c['model']&&_0x543f1b['descriptionFactory']['registerElementLabel'](_0x538f9c['model'],_0x498dd6=>{const _0x113c72=this['_getHeadingLevel'](_0x538f9c['model']);return null!==_0x113c72?_0xfafae0(_0x498dd6,_0x113c72):_0xa07dd1(_0x498dd6,_0x538f9c['title']);});function _0xfafae0(_0x324880,_0x2475ad){return o(_0x3b05cd,'ELEMENT_HEADING',[_0x324880,_0x2475ad]);}function _0xa07dd1(_0xd8c0b,_0x2b2e3a){return o(_0x3b05cd,'ELEMENT_HEADING_CUSTOM',[_0xd8c0b,_0x2b2e3a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x317b3a=this['editor'],_0x24d289=_0x317b3a['locale'];function _0x554ef3(_0x3ea785,_0x18fffe){return o(_0x24d289,'ELEMENT_HEADING_CUSTOM',[_0x3ea785,_0x18fffe]);}_0x317b3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x201654=>{if('formatBlock'!=_0x201654['type'])return;const {data:_0x2419e3}=_0x201654;if(_0x2419e3&&'heading'==_0x2419e3['commandName']){const _0x555dc8=_0x2419e3['commandParams'][0x0]['value'],_0x15a0c3=this['_getHeadingLevel'](_0x555dc8);if(null!==_0x15a0c3)return{'type':'format','content':o(_0x24d289,'*Change\x20to:*\x20%0',(_0x2d6f66=0x1,_0xe7a794=_0x15a0c3,o(_0x24d289,'ELEMENT_HEADING',[_0x2d6f66,_0xe7a794])))};const _0x48685a=this['_headingOptions']['find'](_0xde4863=>_0xde4863['model']===_0x555dc8)['title'];return{'type':'format','content':o(_0x24d289,'*Change\x20to:*\x20%0',_0x554ef3(0x1,_0x48685a))};}var _0x2d6f66,_0xe7a794;});}['_getHeadingLevel'](_0x241df6){const _0x333a45=_0x241df6['match'](/^heading(\d+)/);if(_0x333a45)return _0x333a45[0x1];const _0x3e944e=this['_headingOptions']?.['find'](_0x23ff0d=>_0x23ff0d['model']==_0x241df6);if(_0x3e944e&&_0x3e944e['view']){const _0x417435=_0x3e944e['view'],_0xbe57a2=(_0x417435['name']??_0x417435)['match'](/^h(\d+)/);if(_0xbe57a2)return _0xbe57a2[0x1];}return null;}}class et extends _0x5a19c7{['afterInit'](){const _0x480f42=this['editor'];if(!_0x480f42['plugins']['has']('HighlightEditing'))return;const _0x5f5485=_0x480f42['plugins']['get']('TrackChangesEditing'),_0x579eee=_0x480f42['locale'];_0x5f5485['enableDefaultAttributesIntegration']('highlight'),_0x5f5485['registerInlineAttribute']('highlight'),_0x5f5485['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x579eee,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x380272=this['editor'],_0x53964a=_0x380272['locale'];_0x380272['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b68f9=>{if('formatInline'!=_0x4b68f9['type'])return;const {data:_0x116247}=_0x4b68f9;if(_0x116247&&'highlight'==_0x116247['commandName']){const _0x3af719=_0x53964a['t'],_0x22ac28=_0x116247['commandParams'][0x0]['value'];if(_0x22ac28){const _0x141cfd=_0x380272['config']['get']('highlight.options')['find'](_0x28bb42=>_0x28bb42['model']==_0x22ac28),_0x41e3f7=_0x3af719(_0x141cfd['title'])['toLowerCase']();return{'type':'format','content':o(_0x53964a,'*Set\x20highlight:*\x20%0',_0x41e3f7),'color':{'value':_0x141cfd['color'],'title':_0x141cfd['title']}};}return{'type':'format','content':o(_0x53964a,'*Remove\x20highlight*',o(_0x53964a,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x5a19c7{['afterInit'](){const _0x40e4ef=this['editor'];if(!_0x40e4ef['plugins']['has']('HorizontalLineEditing'))return;_0x40e4ef['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x231f08=_0x40e4ef['plugins']['get']('TrackChangesEditing'),_0x4c0425=_0x40e4ef['locale'];_0x231f08['descriptionFactory']['registerElementLabel']('horizontalLine',_0x383ba4=>o(_0x4c0425,'ELEMENT_HORIZONTAL_LINE',_0x383ba4)),_0x40e4ef['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x36fe38,{writer:_0x54e776,options:_0x3f15b8})=>{if(!_0x3f15b8['showSuggestionHighlights'])return null;const _0x420d96=_0x54e776['createContainerElement']('div'),_0x9f405e=_0x54e776['createEmptyElement']('hr');return _0x54e776['addClass']('ck-horizontal-line',_0x420d96),_0x54e776['insert'](_0x54e776['createPositionAt'](_0x420d96,0x0),_0x9f405e),_0x420d96;},'converterPriority':'high'});}}class st extends _0x5a19c7{['afterInit'](){const _0x104476=this['editor'];if(!_0x104476['plugins']['has']('HtmlEmbed'))return;const _0x1c4d23=_0x104476['plugins']['get']('TrackChangesEditing'),_0x34b382=_0x104476['locale'];_0x1c4d23['descriptionFactory']['registerElementLabel']('rawHtml',_0xd709c8=>o(_0x34b382,'ELEMENT_HTML_EMBED',_0xd709c8)),_0x1c4d23['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1c4d23['registerBlockAttribute']('value'),_0x1c4d23['descriptionFactory']['registerDescriptionCallback'](_0x3a182c=>{if('attribute'!=_0x3a182c['type'])return;const {data:_0xca0b94}=_0x3a182c;if(_0xca0b94&&'value'==_0xca0b94['key']&&_0x3a182c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5502ab=o(_0x34b382,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x34b382,'*Change\x20%0\x20content*',_0x5502ab)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39a49e=this['editor'],_0x24c175=_0x39a49e['locale'];_0x39a49e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1144b1=>{if('formatBlock'!=_0x1144b1['type'])return;const {data:_0x4b6546}=_0x1144b1;if(_0x4b6546&&'htmlEmbed'==_0x4b6546['commandName']){const _0x296fac=o(_0x24c175,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x24c175,'*Change\x20%0\x20content*',_0x296fac)};}});}}class nt extends _0x5a19c7{['afterInit'](){const _0x378b32=this['editor'];if(!_0x378b32['plugins']['has']('ImageEditing'))return;const _0x20fcf0=_0x378b32['plugins']['get']('TrackChangesEditing'),_0x113ff0=_0x378b32['plugins']['get']('ImageUtils'),_0x3f8687=_0x378b32['locale'];_0x20fcf0['enableCommand']('insertImage'),_0x20fcf0['descriptionFactory']['registerElementLabel']('imageBlock',_0x5bb456=>o(_0x3f8687,'ELEMENT_IMAGE',_0x5bb456)),_0x20fcf0['descriptionFactory']['registerElementLabel']('imageInline',_0xab2508=>o(_0x3f8687,'ELEMENT_INLINE_IMAGE',_0xab2508)),_0x20fcf0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3f8687,'ELEMENT_CAPTION')),_0x378b32['plugins']['has']('ImageUploadEditing')&&_0x20fcf0['enableCommand']('uploadImage'),_0x378b32['plugins']['has']('ImageBlockEditing')&&_0x378b32['plugins']['has']('ImageInlineEditing')&&(_0x20fcf0['enableCommand']('imageTypeInline',(_0x4d7620,_0x2654c6)=>{const _0x37be19=_0x113ff0['getClosestSelectedImageElement'](_0x378b32['model']['document']['selection']);_0x378b32['model']['change'](()=>{_0x20fcf0['markBlockFormat'](_0x37be19,{'commandName':'imageTypeInline','commandParams':[_0x2654c6]},[],'convertBlockImageToInline');});}),_0x20fcf0['enableCommand']('imageTypeBlock',(_0x9244d0,_0xd10ced)=>{_0x378b32['model']['change'](_0x3c046d=>{let _0x18f378=_0x113ff0['getClosestSelectedImageElement'](_0x378b32['model']['document']['selection']),_0x43e19f=_0x3c046d['createRangeOn'](_0x18f378);const _0x2a9a27=_0x3d9d30['fromPosition'](_0x43e19f['start'],'toPrevious'),_0x1cade9=_0x3d9d30['fromPosition'](_0x43e19f['end'],'toNext');_0x20fcf0['forceDefaultExecution'](()=>_0x9244d0(_0xd10ced)),_0x18f378=_0x113ff0['getClosestSelectedImageElement'](_0x378b32['model']['document']['selection']),_0x43e19f=_0x3c046d['createRangeOn'](_0x18f378);const _0x4882ba=_0x3c046d['createRange'](_0x2a9a27,_0x1cade9);_0x2a9a27['detach'](),_0x1cade9['detach'](),_0x20fcf0['markBlockFormat'](_0x18f378,{'commandName':'imageTypeInline','commandParams':[_0xd10ced]},[],'convertInlineImageToBlock'),_0x4882ba['start']['isBefore'](_0x43e19f['start'])&&_0x20fcf0['markInsertion'](_0x3c046d['createRange'](_0x4882ba['start'],_0x43e19f['start']),'convertInlineImageToBlock'),_0x43e19f['end']['isBefore'](_0x4882ba['end'])&&_0x20fcf0['markInsertion'](_0x3c046d['createRange'](_0x43e19f['end'],_0x4882ba['end']),'convertInlineImageToBlock');});}),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x20fcf0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5c2035])=>{const _0x362011=_0x20fcf0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x73bf20=_0x5c2035['start'],_0x11b7c1=_0x5c2035['end'];const _0x3951fa=_0x378b32['model']['schema']['getNearestSelectionRange'](_0x73bf20,'backward'),_0xeb1f09=_0x378b32['model']['schema']['getNearestSelectionRange'](_0x11b7c1,'forward');_0x3951fa['isCollapsed']&&(_0x73bf20=_0x3951fa['start']),_0xeb1f09['isCollapsed']&&(_0x11b7c1=_0xeb1f09['end']),_0x362011([_0x378b32['model']['createRange'](_0x73bf20,_0x11b7c1)]);}),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x72bf14),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x72bf14)),_0x378b32['plugins']['has']('ImageCaptionEditing')&&(_0x20fcf0['enableCommand']('toggleImageCaption',(_0x34ed6f,_0x1449e1)=>{const _0x386368=_0x378b32['plugins']['get']('ImageCaptionUtils');let _0x3d3438=_0x113ff0['getClosestSelectedImageElement'](_0x378b32['model']['document']['selection']),_0x4fbcdb=_0x386368['getCaptionFromImageModelElement'](_0x3d3438);_0x378b32['model']['change'](()=>{if(_0x4fbcdb)return void _0x20fcf0['markDeletion'](_0x378b32['model']['createRangeOn'](_0x4fbcdb));const _0x4c84b7=_0x113ff0['isBlockImage'](_0x3d3438);_0x34ed6f(_0x1449e1),_0x3d3438=_0x113ff0['getClosestSelectedImageElement'](_0x378b32['model']['document']['selection']),_0x4fbcdb=_0x386368['getCaptionFromImageModelElement'](_0x3d3438),_0x20fcf0['markInsertion'](_0x378b32['model']['createRangeOn'](_0x4fbcdb),_0x4c84b7?null:'imageCaption');});}),_0x20fcf0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x72bf14));const _0x1a017e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4572f4(_0xdfd915,_0x5ba452){const _0x199030=_0x1a017e['findIndex'](({type:_0x303fb5,subType:_0x3d7fff})=>_0xdfd915['type']==_0x303fb5&&_0xdfd915['subType']==_0x3d7fff),_0x12217f=_0x1a017e['findIndex'](({type:_0x273792,subType:_0x43565a})=>_0x5ba452['type']==_0x273792&&_0x5ba452['subType']==_0x43565a);if(_0x199030<0x0||_0x12217f<0x0)return!0x1;const _0x1f8b67=_0xdfd915['getFirstRange'](),_0x44c67a=_0x5ba452['getFirstRange']();if((0x0==_0x199030||0x1==_0x199030)&&0x2==_0x12217f&&_0x1f8b67['isIntersecting'](_0x44c67a))return!0x0;if(0x2==_0x199030&&0x3==_0x12217f){const _0x19cff3=_0x20fcf0['_findSuggestions'](_0x1f8b67,'insertion')['filter'](({suggestion:_0x3a1fa3,meta:_0x5bc06e})=>_0x5bc06e['isOwn']&&'convertInlineImageToBlock'==_0x3a1fa3['subType']);if(_0x19cff3['length']>0x1&&_0x44c67a['end']['isEqual'](_0x1f8b67['start']))return!0x0;if(0x1==_0x19cff3['length']&&(_0x1f8b67['start']['isEqual'](_0x44c67a['end'])||_0x1f8b67['end']['isEqual'](_0x44c67a['start'])))return!0x0;}if(0x3==_0x199030&&0x3==_0x12217f&&_0x1f8b67['start']['isBefore'](_0x44c67a['start'])){const _0x590b04=_0x1f8b67['end']['nodeAfter'],_0x42ee16=_0x44c67a['start']['nodeBefore'];return _0x113ff0['isBlockImage'](_0x590b04)&&_0x590b04===_0x42ee16;}return!0x1;}function _0x72bf14(_0x201bad,_0x586d8d){return _0x4572f4(_0x201bad,_0x586d8d)?[_0x201bad,_0x586d8d]:_0x4572f4(_0x586d8d,_0x201bad)?[_0x586d8d,_0x201bad]:null;}_0x378b32['plugins']['has']('ImageResize')&&(_0x20fcf0['enableDefaultAttributesIntegration']('resizeImage'),_0x20fcf0['registerBlockAttribute']('resizedWidth'),_0x20fcf0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3f8687,'FORMAT_IMAGE_SIZE'))),_0x378b32['plugins']['has']('ImageTextAlternativeEditing')&&(_0x20fcf0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x20fcf0['registerBlockAttribute']('alt')),_0x20fcf0['descriptionFactory']['registerDescriptionCallback'](_0x5c2eb2=>{if(!!_0x1a017e['find'](({type:_0x121437,subType:_0x28cf0a})=>_0x5c2eb2['type']==_0x121437&&_0x5c2eb2['subType']==_0x28cf0a))return _0x5c2eb2['previous']?{}:void 0x0;}),_0x20fcf0['descriptionFactory']['registerDescriptionCallback'](_0x4499e8=>{if('insertion'==_0x4499e8['type']||'deletion'==_0x4499e8['type']){const _0x127498=_0x4499e8['getContainedElement']();if(_0x127498&&_0x127498['is']('element','caption'))return{'type':'insertion'==_0x4499e8['type']?'addObject':'removeObject','element':_0x127498,'quantity':0x1};}}),_0x20fcf0['descriptionFactory']['registerDescriptionCallback'](_0x29c762=>'formatBlock'==_0x29c762['type']&&'convertInlineImageToBlock'==_0x29c762['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x29c762['type']&&'convertBlockImageToInline'==_0x29c762['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x20fcf0['descriptionFactory']['registerDescriptionCallback'](_0x5ed698=>{if('attribute'!=_0x5ed698['type'])return;const {data:_0x3f5c4b}=_0x5ed698;if(!_0x3f5c4b||'alt'!=_0x3f5c4b['key'])return;const _0x418a4c=_0x3f5c4b['newValue'];return _0x418a4c?{'type':'format','content':o(_0x3f8687,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x418a4c+'\x22')}:{'type':'format','content':o(_0x3f8687,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x123aa5=this['editor'],_0x1a2fe2=_0x123aa5['locale'];_0x123aa5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x168f23=>{if('formatBlock'!=_0x168f23['type']&&'formatInline'!=_0x168f23['type'])return;const {data:_0x1239ba}=_0x168f23;if(_0x1239ba){if('imageTextAlternative'==_0x1239ba['commandName']){const _0x544c70=_0x1239ba['commandParams'][0x0]['newValue'];return _0x544c70?{'type':'format','content':o(_0x1a2fe2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x544c70+'\x22')}:{'type':'format','content':o(_0x1a2fe2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1239ba['commandName']){const _0x23c704=_0x1239ba['commandParams'][0x0]['width'];return _0x23c704?{'type':'format','content':o(_0x1a2fe2,'*Set\x20image\x20width:*\x20%0',_0x23c704)}:{'type':'format','content':o(_0x1a2fe2,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x5a19c7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x53f0d4=this['editor']['locale'],_0x4c3767=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c3767['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4c3767['registerBlockAttribute']('src'),_0x4c3767['descriptionFactory']['registerDescriptionCallback'](_0x26402d=>{if('attribute'!=_0x26402d['type'])return;const {data:_0x364552}=_0x26402d;return _0x364552&&'src'==_0x364552['key']?_0x364552['newValue']&&_0x364552['oldValue']?{'type':'format','content':o(_0x53f0d4,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xe2aa1c=this['editor']['plugins']['get']('TrackChangesEditing');_0xe2aa1c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xe2aa1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe2aa1c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xe2aa1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25e789=this['editor'],_0x5b9132=_0x25e789['locale'];_0x25e789['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14f158=>{if('formatBlock'!=_0x14f158['type']&&'formatInline'!=_0x14f158['type'])return;const {data:_0x395d76}=_0x14f158;if(!_0x395d76||'replaceImageSource'!=_0x395d76['commandName'])return;return{'type':'format','content':o(_0x5b9132,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x5a19c7{['afterInit'](){const _0x317e62=this['editor'];if(!_0x317e62['plugins']['has']('ImageStyleEditing'))return;const _0xc343b9=_0x317e62['plugins']['get']('TrackChangesEditing'),_0x91b623=_0x317e62['plugins']['get']('ImageUtils'),_0x463a49={};_0xc343b9['enableCommand']('imageStyle',(_0x204eb9,_0x6a9b38)=>{const _0x1d8f44=_0x317e62['plugins']['get']('Users')['me'],_0x5f3218=_0x317e62['commands']['get']('imageStyle');let _0x2db61a=_0x91b623['getClosestSelectedImageElement'](_0x317e62['model']['document']['selection']),_0xb88e36=_0x317e62['model']['createRangeOn'](_0x2db61a),_0x213eb0=_0x5f3218['value'];if(_0x213eb0==_0x6a9b38['value'])return;const _0x1cf9df={'commandName':'imageStyle','commandParams':[_0x6a9b38],'formatGroupId':_0x429a07()};_0x317e62['model']['change'](()=>{if(_0xc343b9['getSuggestions']()['filter'](_0x34e971=>_0x34e971['isInContent']&&_0x1d8f44==_0x34e971['author']&&('formatBlock'==_0x34e971['type']||'formatInline'==_0x34e971['type'])&&('imageStylePreApply'==_0x34e971['subType']||'imageStylePostApply'==_0x34e971['subType'])&&_0x34e971['getFirstRange']()['isEqual'](_0xb88e36))['forEach'](_0x52fd47=>_0xc343b9['discardSuggestion'](_0x52fd47['head'])),_0x2db61a=_0x91b623['getClosestSelectedImageElement'](_0x317e62['model']['document']['selection']),_0xb88e36=_0x317e62['model']['createRangeOn'](_0x2db61a),_0x5f3218['refresh'](),_0x317e62['commands']['get']('imageTypeInline')['refresh'](),_0x317e62['commands']['get']('imageTypeBlock')['refresh'](),_0x213eb0=_0x5f3218['value'],_0x213eb0!=_0x6a9b38['value'])return _0x91b623['isInlineImage'](_0x2db61a)&&_0x5f3218['shouldConvertImageType'](_0x6a9b38['value'],_0x2db61a)?(_0x204eb9({..._0x6a9b38,'setImageSizes':!0x1}),_0x2db61a=_0x91b623['getClosestSelectedImageElement'](_0x317e62['model']['document']['selection']),void _0xc343b9['markBlockFormat'](_0x2db61a,{..._0x1cf9df,'commandReversedParams':[{'value':_0x213eb0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x91b623['isBlockImage'](_0x2db61a)?_0xc343b9['markBlockFormat'](_0x2db61a,_0x1cf9df,[],'imageStylePostApply'):_0xc343b9['markInlineFormat'](_0xb88e36,_0x1cf9df,'imageStylePostApply'));});});for(const _0xc2b5eb of _0x317e62['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x463a49[_0xc2b5eb['name']]=_0xc2b5eb['title']['toLowerCase']();_0xc343b9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xc343b9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xc343b9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xc343b9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x66f366])=>{_0x91b623['setImageNaturalSizeAttributes'](_0x66f366['getContainedElement']());}),_0xc343b9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x34ed52,_0x2f7d14)=>{_0xc343b9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x34ed52,{'commandName':_0x2f7d14['commandName'],'commandParams':_0x2f7d14['commandReversedParams']});}),_0xc343b9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x428fb0,_0x53d24c){if(_0x92df26(_0x428fb0,_0x53d24c))return[_0x428fb0,_0x53d24c];if(_0x92df26(_0x53d24c,_0x428fb0))return[_0x53d24c,_0x428fb0];return null;});const _0x5cfd00=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x92df26(_0x1f3758,_0x45fad5){const _0x2eed51=_0x5cfd00['findIndex'](({type:_0x3c65eb,subType:_0x2164e2})=>_0x1f3758['type']==_0x3c65eb&&_0x1f3758['subType']==_0x2164e2),_0x5a978e=_0x5cfd00['findIndex'](({type:_0x22e67e,subType:_0x246000})=>_0x45fad5['type']==_0x22e67e&&_0x45fad5['subType']==_0x246000);if(_0x2eed51<0x0||_0x5a978e<0x0)return!0x1;const _0x150aab=_0x1f3758['getFirstRange'](),_0xdecb59=_0x45fad5['getFirstRange']();if((0x0==_0x2eed51||0x1==_0x2eed51)&&0x2==_0x5a978e&&_0x150aab['isIntersecting'](_0xdecb59))return!0x0;if(0x2==_0x2eed51&&0x3==_0x5a978e){const _0x248fa1=_0xc343b9['_findSuggestions'](_0x150aab,'insertion')['filter'](({suggestion:_0xba9da9,meta:_0x3f8270})=>_0x3f8270['isOwn']&&'convertInlineImageToBlock'==_0xba9da9['subType']);if(_0x248fa1['length']>0x1&&_0xdecb59['end']['isEqual'](_0x150aab['start']))return!0x0;if(0x1==_0x248fa1['length']&&(_0x150aab['start']['isEqual'](_0xdecb59['end'])||_0x150aab['end']['isEqual'](_0xdecb59['start'])))return!0x0;}if(0x3==_0x2eed51&&0x3==_0x5a978e&&_0x150aab['start']['isBefore'](_0xdecb59['start'])){const _0x1d2685=_0x150aab['end']['nodeAfter'],_0x29ed2d=_0xdecb59['start']['nodeBefore'];return _0x91b623['isBlockImage'](_0x1d2685)&&_0x1d2685===_0x29ed2d;}return!0x1;}_0x317e62['model']['document']['registerPostFixer'](()=>{let _0x134fe5=!0x1;const _0x533a92=Array['from'](_0x317e62['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13e792,data:_0x54886f}of _0x533a92){const {group:_0x8a5e86,type:_0x314718,subType:_0xc6da0d,id:_0x499cb2}=_0xc343b9['_splitMarkerName'](_0x13e792);if('suggestion'==_0x8a5e86&&_0xc343b9['hasSuggestion'](_0x499cb2)){if('formatBlock'==_0x314718&&('imageStylePreApply'==_0xc6da0d||'imageStylePostApply'==_0xc6da0d)){const _0x4fc1e8=_0xc343b9['getSuggestion'](_0x499cb2);if(_0x54886f['newRange']){const _0x161240=_0x4fc1e8['getFirstRange']()['getContainedElement']();if(_0x91b623['isBlockImage'](_0x161240))continue;_0xc343b9['discardSuggestion'](_0x4fc1e8),_0x134fe5=!0x0;}}if('insertion'==_0x314718&&'imageCaption'==_0xc6da0d&&!_0x54886f['newRange']){const _0x3c215c=_0xc343b9['getSuggestion'](_0x499cb2);_0x3c215c['next']&&_0x3c215c['next']['isInContent']&&(_0xc343b9['discardSuggestion'](_0x3c215c['next']),_0x134fe5=!0x0);}}}return _0x134fe5;}),this['_registerLegacyDescription'](_0x463a49);}['_registerLegacyDescription'](_0x419639){const _0x220890=this['editor'],_0x368f79=_0x220890['locale'];_0x220890['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd5f32e=>{if('formatBlock'!=_0xd5f32e['type']&&'formatInline'!=_0xd5f32e['type'])return;const {data:_0x4988bd}=_0xd5f32e;if(!_0x4988bd||'imageStyle'!=_0x4988bd['commandName'])return;const _0xe13f13=_0x4988bd['commandParams'][0x0]['value'];return _0x582634('side'===_0xe13f13?o(_0x368f79,'FORMAT_SIDE_IMAGE'):_0x419639[_0xe13f13]||_0xe13f13);function _0x582634(_0x195655){return{'type':'format','content':o(_0x368f79,'*Format:*\x20%0',_0x195655)};}});}}class at extends _0x5a19c7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4164d4){super(_0x4164d4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5e0e20=this['editor'],_0x45172a=_0x5e0e20['commands']['get']('importWord'),_0x2b7543=_0x5e0e20['commands']['get']('trackChanges');_0x45172a&&(_0x45172a['on']('execute',(_0xe549f,[,_0x2d27af])=>{this['_trackChangesValueDuringImport']=_0x2b7543['value'],_0x2d27af['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x45172a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x45172a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2b7543['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5e0e20['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3128d9,_0x3d4bf6){const {suggestions:_0x13f180}=_0x3d4bf6,_0xd7a143=this['editor']['commands']['get']('trackChanges'),_0x47e716=_0xd7a143['value'];this['_trackChangesValueDuringImport']!==_0x47e716&&(_0xd7a143['execute'](),this['_trackChangesExecuted']=!0x0),_0x13f180&&_0x13f180['forEach'](({id:_0x42463e,type:_0x5e15e8,author:_0x57d400,created_at:_0x38da29})=>{const _0x23b001={'id':_0x42463e,'type':_0x5e15e8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x57d400,'createdAt':_0x38da29?new Date(_0x38da29):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x23b001);});}}class ct extends _0x5a19c7{['afterInit'](){const _0x4feb17=this['editor'],_0x5cc2f1=_0x4feb17['plugins']['get']('TrackChangesEditing');if(_0x4feb17['plugins']['has']('IndentEditing')&&(_0x5cc2f1['enableCommand']('indent'),_0x5cc2f1['enableCommand']('outdent')),_0x4feb17['plugins']['has']('IndentBlock')){for(const _0xce3e6e of['indentBlock','outdentBlock'])_0x5cc2f1['enableDefaultAttributesIntegration'](_0xce3e6e);}const _0x374364=_0x4feb17['locale'];_0x5cc2f1['registerBlockAttribute']('blockIndent'),_0x5cc2f1['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x374364,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c1231=this['editor'],_0x425a2a=_0x1c1231['locale'],_0x3ce0ce=_0x1c1231['plugins']['get']('TrackChangesEditing');_0x3ce0ce['descriptionFactory']['registerDescriptionCallback'](_0x189bde=>{if('formatBlock'!=_0x189bde['type'])return;const {data:_0x34096e}=_0x189bde;if(!_0x34096e)return;if('indentBlock'!=_0x34096e['commandName']&&'outdentBlock'!=_0x34096e['commandName'])return;const _0x13a352=_0x189bde['getItems']()[0x0],_0x32447d=_0x3ce0ce['descriptionFactory']['getItemLabel'](_0x13a352);return'indentBlock'==_0x34096e['commandName']?{'type':'format','content':o(_0x425a2a,'*Indent:*\x20%0',_0x32447d)}:'outdentBlock'==_0x34096e['commandName']?{'type':'format','content':o(_0x425a2a,'*Outdent:*\x20%0',_0x32447d)}:void 0x0;});}}class ut extends _0x5a19c7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x5a19c7{['afterInit'](){const _0x46feeb=this['editor'];if(!_0x46feeb['plugins']['has']('LinkEditing'))return;const _0x3b79c1=_0x46feeb['plugins']['get']('TrackChangesEditing'),_0x5bfc46=_0x46feeb['commands']['get']('link');_0x3b79c1['enableDefaultAttributesIntegration']('link'),_0x3b79c1['enableDefaultAttributesIntegration']('unlink'),_0x3b79c1['registerInlineAttribute']('linkHref');for(const _0x1fd492 of _0x5bfc46['manualDecorators'])_0x3b79c1['registerInlineAttribute'](_0x1fd492['id']),_0x3b79c1['descriptionFactory']['registerAttributeLabel'](_0x1fd492['id'],'link\x20('+_0x1fd492['label']['toLowerCase']()+')');_0x3b79c1['descriptionFactory']['registerDescriptionCallback'](_0x5a0c64=>{if('attribute'!=_0x5a0c64['type'])return;const {data:_0x4a69e8}=_0x5a0c64;if(!_0x4a69e8||'linkHref'!=_0x4a69e8['key'])return;const _0x5b9284=_0x4a69e8['newValue'],_0x595016=_0x46feeb['locale'];return{'type':'format','content':null==_0x5b9284?o(_0x595016,'*Remove\x20link*'):o(_0x595016,'*Set\x20link:*\x20%0','\x22'+_0x5b9284+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c366b=this['editor'],_0x1ae464=_0x4c366b['locale'];_0x4c366b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3edbd6=>{if('formatInline'!=_0x3edbd6['type'])return;const {data:_0xd8a2ae}=_0x3edbd6;if(_0xd8a2ae){if('link'==_0xd8a2ae['commandName']){const _0x4e22ce=_0xd8a2ae['commandParams'][0x0];return{'type':'format','content':o(_0x1ae464,'*Set\x20link:*\x20%0','\x22'+_0x4e22ce+'\x22')};}return'unlink'==_0xd8a2ae['commandName']?{'type':'format','content':o(_0x1ae464,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x5a19c7{['afterInit'](){const _0x372770=this['editor'],_0x3c4cac=_0x372770['locale'];if(!_0x372770['plugins']['has']('LegacyListEditing'))return;const _0x58ed09=_0x372770['plugins']['get']('TrackChangesEditing'),_0x3522ca=_0x372770['plugins']['has']('LegacyTodoListEditing');function _0x41037d(_0x3122dc){return()=>{const _0x397ddd=_0x372770['model']['document']['selection'],_0x2a70a4=_0x372770['commands']['get'](_0x3122dc);if(_0x2a70a4['value'])return void _0x372770['execute']('paragraph',{});const _0x3831bb=_0x3122dc['slice'](0x0,-0x4),_0x4419d6=function(_0x13203b,_0x1427d2,_0x5a00f9){let _0x473a71=Array['from'](_0x13203b)['filter'](_0x25f41d=>function(_0x3c7e33,_0x4b70d0){return _0x4b70d0['checkChild'](_0x3c7e33['parent'],'listItem')&&!_0x4b70d0['isObject'](_0x3c7e33);}(_0x25f41d,_0x5a00f9));_0x473a71=_0x473a71['filter'](_0x350b77=>!_0x350b77['is']('element','listItem')||_0x350b77['getAttribute']('listType')!=_0x1427d2);const _0x5b9ce8=new Set();for(const _0xb05997 of _0x473a71)_0xb05997['is']('element','listItem')?_0x5b9ce8['add'](fe(_0xb05997)):_0x5b9ce8['add'](_0xb05997);return Array['from'](_0x5b9ce8);}(_0x397ddd['getSelectedBlocks'](),_0x3831bb,_0x372770['model']['schema']);_0x372770['model']['change'](()=>{for(const _0x31cb30 of _0x4419d6)_0x58ed09['markBlockFormat'](_0x31cb30,{'commandName':_0x3122dc,'commandParams':[{'forceValue':!_0x2a70a4['value']}],'formatGroupId':'blockName'},ue(_0x31cb30));});};}function _0x2d4042(_0x13f91e){return()=>{const _0x24c9d4=function(_0x3105d4){let _0x24275d=Array['from'](_0x3105d4);const _0x4399f7=_0x24275d['findIndex'](_0x1af0f9=>'listItem'!=_0x1af0f9['name']);return _0x4399f7>-0x1&&(_0x24275d=_0x24275d['slice'](0x0,_0x4399f7)),_0x24275d;}(_0x372770['model']['document']['selection']['getSelectedBlocks']()),_0x11063e=_0x372770['model']['createRange'](_0x372770['model']['createPositionAt'](_0x24c9d4[0x0],'before'),_0x372770['model']['createPositionAt'](_0x24c9d4[_0x24c9d4['length']-0x1],'end'));_0x372770['model']['change'](()=>{_0x58ed09['markBlockFormat'](_0x11063e,{'commandName':_0x13f91e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x38a18c){const _0x48d186=new Set();for(const _0x595871 of _0x38a18c){let _0x5487d7=_0x595871['nextSibling'];for(;_0x5487d7&&_0x5487d7['getAttribute']('listIndent')>_0x595871['getAttribute']('listIndent');)_0x48d186['add'](_0x5487d7),_0x5487d7=_0x5487d7['nextSibling'];}return Array['from'](_0x48d186);}(_0x24c9d4));});};}_0x58ed09['enableCommand']('numberedList',_0x41037d('numberedList')),_0x58ed09['enableCommand']('bulletedList',_0x41037d('bulletedList')),_0x3522ca&&_0x58ed09['enableCommand']('todoList',_0x41037d('todoList')),_0x58ed09['enableCommand']('indentList',_0x2d4042('indentList')),_0x58ed09['enableCommand']('outdentList',_0x2d4042('outdentList')),_0x3522ca&&_0x58ed09['enableCommand']('checkTodoList',()=>{const _0x37e35b=_0x372770['commands']['get']('checkTodoList'),_0x211b0b=Array['from'](_0x37e35b['_selectedElements']);_0x211b0b['filter'](_0x414a58=>_0x414a58['getAttribute']('todoListChecked')!=_0x37e35b['value']),_0x372770['model']['change'](()=>{for(const _0x1963fe of _0x211b0b)_0x58ed09['markBlockFormat'](_0x1963fe,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x37e35b['value']}]});});}),_0x58ed09['descriptionFactory']['registerElementLabel']('listItem',_0x55cee9=>o(_0x3c4cac,'ELEMENT_LIST_ITEM',_0x55cee9)),_0x58ed09['descriptionFactory']['registerDescriptionCallback'](_0x1522c7=>{if('formatBlock'!=_0x1522c7['type']&&'formatInline'!=_0x1522c7['type'])return;const {data:_0x25db75}=_0x1522c7;if(_0x25db75){if('numberedList'==_0x25db75['commandName']||'bulletedList'==_0x25db75['commandName']||'todoList'==_0x25db75['commandName'])switch(_0x25db75['commandName']['replace']('List','')){case'bulleted':return _0x58c13(o(_0x3c4cac,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58c13(o(_0x3c4cac,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58c13(o(_0x3c4cac,'ELEMENT_TODO_LIST'));}if('indentList'==_0x25db75['commandName'])return{'type':'format','content':o(_0x3c4cac,'*Indent:*\x20%0',o(_0x3c4cac,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x25db75['commandName'])return{'type':'format','content':o(_0x3c4cac,'*Outdent:*\x20%0',o(_0x3c4cac,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x25db75['commandName'])return _0x25db75['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c4cac,'*Check\x20item*')}:{'type':'format','content':o(_0x3c4cac,'*Uncheck\x20item*')};}function _0x58c13(_0x23bedb){return{'type':'format','content':o(_0x3c4cac,'*Change\x20to:*\x20%0',_0x23bedb)};}});}}function fe(_0x1ca765){const _0x4c7404=_0x1ca765['getAttribute']('listIndent');if(0x0==_0x4c7404)return _0x1ca765;let _0x5c04ef=_0x1ca765;for(;_0x1ca765['previousSibling']&&_0x1ca765['previousSibling']['is']('element','listItem');){const _0x4c20e3=_0x1ca765['previousSibling']['getAttribute']('listIndent');if(_0x4c20e3==_0x4c7404)_0x5c04ef=_0x1ca765['previousSibling'];else{if(_0x4c20e3<_0x4c7404)break;}_0x1ca765=_0x1ca765['previousSibling'];}return _0x5c04ef;}function ue(_0x59b088){const _0x35b4c3=[];if(_0x59b088['is']('element','listItem')&&_0x59b088['getAttribute']('listIndent')>0x0){let _0x9e38f7=_0x59b088['nextSibling'];for(;_0x9e38f7&&'listItem'==_0x9e38f7['name']&&_0x9e38f7['getAttribute']('listIndent')==_0x59b088['getAttribute']('listIndent');)_0x35b4c3['push'](_0x9e38f7),_0x9e38f7=_0x9e38f7['nextSibling'];}return _0x35b4c3;}class W extends _0x5a19c7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4c82d9=this['editor']['config']['get']('list.properties'),_0x26d827=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c82d9['styles']&&_0x26d827['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4c82d9['reversed']&&_0x26d827['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4c82d9['startIndex']&&_0x26d827['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x26d827['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x69d593,_0x3a0d3a={}){const _0x42fb2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe9c4c3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x42fb2b['markMultiRangeBlockFormat'](_0xe9c4c3,{'commandName':'listStyle','commandParams':[{'type':_0x3a0d3a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x16b415,_0x19625f={}){const _0x44fc09=this['editor']['plugins']['get']('TrackChangesEditing'),_0x320ee9=this['_getSuggestionBlocks'](_0x23ee5f=>_0x23ee5f['is']('element','listItem')&&'numbered'===_0x23ee5f['getAttribute']('listType'));if(_0x320ee9['length']<0x1)return;const _0x294903=_0x320ee9['map'](_0x1c47e9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c47e9,'before'),this['editor']['model']['createPositionAt'](_0x1c47e9,0x0)));this['editor']['model']['change'](()=>{_0x44fc09['markMultiRangeBlockFormat'](_0x294903,{'commandName':'listReversed','commandParams':[{'reversed':_0x19625f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x51c741,_0x9701a8={}){const _0x29b219=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51182b=this['_getSuggestionBlocks'](_0x3f2583=>_0x3f2583['is']('element','listItem')&&'numbered'===_0x3f2583['getAttribute']('listType'));if(_0x51182b['length']<0x1)return;const _0x5e136f=_0x51182b['map'](_0x488391=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x488391,'before'),this['editor']['model']['createPositionAt'](_0x488391,0x0)));this['editor']['model']['change'](()=>{_0x29b219['markMultiRangeBlockFormat'](_0x5e136f,{'commandName':'listStart','commandParams':[{'startIndex':_0x9701a8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x332e1a){if('formatBlock'!=_0x332e1a['type']&&'formatInline'!=_0x332e1a['type'])return;const _0x2e703d=this['editor']['locale'],{data:_0x10eb60}=_0x332e1a;if(!_0x10eb60)return;let _0xf06449,_0x26b745;switch(_0x10eb60['commandName']){case'listStyle':_0xf06449='*Change\x20to:*\x20%0',_0x26b745={'type':'format','content':o(_0x2e703d,_0xf06449,o(_0x2e703d,this['_getTranslationKeyForListStyle'](_0x10eb60['commandParams'][0x0]['type'])))};break;case'listReversed':_0xf06449=_0x10eb60['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x26b745={'type':'format','content':o(_0x2e703d,_0xf06449)};break;case'listStart':_0xf06449='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x26b745={'type':'format','content':o(_0x2e703d,_0xf06449,_0x10eb60['commandParams'][0x0]['startIndex'])};}return _0x26b745;}['_getSuggestionBlocksForListStyle'](){const _0xcdf578=this['editor']['plugins']['get']('LegacyListUtils');let _0x34960e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x34960e[0x0]?.['is']('element','listItem')&&_0x34960e['unshift'](..._0xcdf578['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x34960e[_0x34960e['length']-0x1]?.['is']('element','listItem')&&_0x34960e['push'](..._0xcdf578['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x34960e=[...new Set(_0x34960e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x34960e=_0x34960e['filter'](_0x4f3626=>_0x4f3626['is']('element','listItem'))),_0x34960e;}['_getSuggestionBlocks'](_0x18685f){const _0xa9ecf6=this['editor']['plugins']['get']('LegacyListUtils');let _0x3f0dc5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x18685f)['map'](_0x5828a1=>{const _0x58327e=this['editor']['model']['createPositionAt'](_0x5828a1,0x0);return[..._0xa9ecf6['getSiblingNodes'](_0x58327e,'backward'),..._0xa9ecf6['getSiblingNodes'](_0x58327e,'forward')];})['flat']();return _0x3f0dc5=[...new Set(_0x3f0dc5)],_0x3f0dc5;}['_getTranslationKeyForListStyle'](_0x1bd95a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1bd95a)||'default')['toUpperCase']()+'_LIST_'+_0x1bd95a['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x5a19c7{['afterInit'](){const _0xa47c22=this['editor'];if(!_0xa47c22['plugins']['has']('MediaEmbedEditing'))return;const _0xcc93b8=_0xa47c22['plugins']['get']('TrackChangesEditing'),_0x494f73=_0xa47c22['locale'];_0xcc93b8['enableCommand']('mediaEmbed'),_0xcc93b8['descriptionFactory']['registerElementLabel']('media',_0x10fa9a=>o(_0x494f73,'ELEMENT_MEDIA',_0x10fa9a)),_0xa47c22['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5dd2bb,{writer:_0x3553cf,options:_0x533839})=>{if(_0x533839['showSuggestionHighlights'])return _0x3553cf['createEmptyElement']('div');},'converterPriority':'high'}),_0xa47c22['data']['downcastDispatcher']['on']('attribute:url:media',(_0x217637,_0x365134,_0x32dcb3)=>{_0x32dcb3['options']['showSuggestionHighlights']&&_0x217637['stop']();},{'priority':'high'});}}class mt extends _0x5a19c7{['afterInit'](){const _0x21b070=this['editor'];_0x21b070['plugins']['has']('MentionEditing')&&_0x21b070['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x5a19c7{['afterInit'](){const _0x5ec975=this['editor'];if(!_0x5ec975['plugins']['has']('MergeFieldsEditing'))return;_0x5ec975['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5ec975['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x4c155f=_0x5ec975['plugins']['get']('TrackChangesEditing'),_0x26ceb0=_0x5ec975['locale'];_0x4c155f['descriptionFactory']['registerElementLabel']('mergeField',_0x4761ec=>o(_0x26ceb0,'ELEMENT_MERGE_FIELD',_0x4761ec)),_0x4c155f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x12d09d=>o(_0x26ceb0,'ELEMENT_MERGE_FIELD',_0x12d09d)),_0x4c155f['descriptionFactory']['registerDescriptionCallback'](_0x2e5a5d=>{if('insertion'!=_0x2e5a5d['type']&&'deletion'!=_0x2e5a5d['type'])return;const _0x3a026e=_0x2e5a5d['getContainedElement']();if(null==_0x3a026e)return;if(!_0x3a026e['is']('element','mergeField')&&!_0x3a026e['is']('element','mergeFieldBlock'))return;const _0x365f53=_0x5ec975['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x3a026e['getAttribute']('id'));return'insertion'==_0x2e5a5d['type']?{'type':'insertion','content':o(_0x26ceb0,'*Insert:*\x20%0','\x22'+_0x365f53+'\x22\x20'+o(_0x26ceb0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x26ceb0,'*Remove:*\x20%0','\x22'+_0x365f53+'\x22\x20'+o(_0x26ceb0,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x5a19c7{['afterInit'](){const _0x5f19d0=this['editor'],_0x55c585=_0x5f19d0['plugins']['get']('TrackChangesEditing');_0x5f19d0['plugins']['has']('MultiLevelList')&&(_0x55c585['enableDefaultAttributesIntegration']('multiLevelList'),_0x55c585['registerBlockAttribute']('listMarkerStyle'),_0x55c585['descriptionFactory']['registerDescriptionCallback'](_0x196ff5=>this['handleDescriptions'](_0x196ff5)));}['handleDescriptions'](_0x291c71){const _0x53a18d=this['editor']['locale'],{data:_0x18e8c0}=_0x291c71,_0x454358={'type':'format','content':''};if(_0x18e8c0&&'listMarkerStyle'==_0x18e8c0['key']){if(!_0x18e8c0['oldValue'])return{'type':'format','content':o(_0x53a18d,'*Set\x20format:*\x20%0',o(_0x53a18d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18e8c0['newValue']+')'};if(!_0x18e8c0['newValue']){let _0x1bf33f=_0x291c71['head'];for(;_0x1bf33f;){if(_0x1bf33f['data']&&'listType'==_0x1bf33f['data']['key']&&_0x1bf33f['data']['newValue'])return _0x454358;_0x1bf33f=_0x1bf33f['next'];}return{'type':'format','content':o(_0x53a18d,'*Remove\x20format:*\x20%0',o(_0x53a18d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18e8c0['oldValue']+')'};}}}}class kt extends _0x5a19c7{['afterInit'](){const _0x1d3605=this['editor'];if(!_0x1d3605['plugins']['has']('PageBreakEditing'))return;_0x1d3605['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x417cf1=_0x1d3605['plugins']['get']('TrackChangesEditing'),_0xb75a14=_0x1d3605['locale'];_0x417cf1['descriptionFactory']['registerElementLabel']('pageBreak',_0x19d75f=>o(_0xb75a14,'ELEMENT_PAGE_BREAK',_0x19d75f));}}class bt extends _0x5a19c7{['afterInit'](){const _0x58fc9f=this['editor'];if(!_0x58fc9f['plugins']['has']('Paragraph'))return;const _0x433a48=_0x58fc9f['locale'],_0x5c9f71=_0x58fc9f['plugins']['get']('TrackChangesEditing');_0x5c9f71['descriptionFactory']['registerElementLabel']('paragraph',_0x4229ea=>o(_0x433a48,'ELEMENT_PARAGRAPH',_0x4229ea)),_0x5c9f71['enableDefaultAttributesIntegration']('paragraph'),_0x5c9f71['enableCommand']('insertParagraph'),_0x58fc9f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x58fc9f),{'priority':'highest'}),_0x58fc9f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e01a4,_0x80b1e9,_0x20379b)=>{_0x20379b['options']['showSuggestionHighlights']&&nr(_0x58fc9f,{'showActiveMarker':!0x1})(_0x1e01a4,_0x80b1e9,_0x20379b);},{'priority':'highest'});const _0x342124=_0x5c9f71['descriptionFactory'];_0x342124['registerDescriptionCallback'](_0x132bb4=>{if('insertion'!==_0x132bb4['type'])return;const {start:_0x57c52c,end:_0xdf98c0}=_0x132bb4['getFirstRange']();if(!_0x57c52c['isTouching'](_0xdf98c0)||!_0x57c52c['nodeAfter'])return;const _0x475ea9=_0x58fc9f['model']['schema'],_0x566a55=_0x57c52c['nodeAfter'];return _0x475ea9['isBlock'](_0x566a55)&&!_0x475ea9['isLimit'](_0x566a55)&&_0x475ea9['checkChild'](_0x566a55,'$text')?{'type':'insertion','content':o(_0x433a48,'*Insert:*\x20%0',_0x342124['getItemLabel'](_0x566a55,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bbb29=this['editor'],_0x20a0c7=_0x4bbb29['locale'];_0x4bbb29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x310936=>{if('formatBlock'!=_0x310936['type'])return;const {data:_0x302695}=_0x310936;return _0x302695&&'paragraph'==_0x302695['commandName']?{'type':'format','content':o(_0x20a0c7,'*Change\x20to:*\x20%0',o(_0x20a0c7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1649bf,{showActiveMarker:_0x23e086=!0x0}={}){return(_0x375b43,_0x54ca33,_0x1d4984)=>{const _0x9bb6ca=_0x1649bf['plugins']['get']('TrackChangesEditing'),_0x31b5b0=_0x54ca33['markerRange']['start'],_0x3edfa2=_0x54ca33['markerRange']['end'],_0x59ccb3=_0x1649bf['model']['schema'];if(!_0x31b5b0['isTouching'](_0x3edfa2)||!_0x31b5b0['nodeAfter'])return;const _0x2936af=_0x31b5b0['nodeAfter'];if(_0x59ccb3['isBlock'](_0x2936af)&&!_0x59ccb3['isLimit'](_0x2936af)&&_0x59ccb3['checkChild'](_0x2936af,'$text')){if(!_0x1d4984['consumable']['consume'](_0x54ca33['markerRange'],_0x375b43['name']))return;const {authorId:_0x35692f}=_0x9bb6ca['_splitMarkerName'](_0x54ca33['markerName']),_0x35f19a=_0x1d4984['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x35692f}),_0xb4e6cd=_0x1d4984['mapper']['toViewPosition'](_0x3edfa2);_0x23e086&&_0x9bb6ca['activeMarkers']['includes'](_0x54ca33['markerName'])&&_0x1d4984['writer']['addClass']('ck-suggestion-marker--active',_0x35f19a),_0x1d4984['writer']['insert'](_0xb4e6cd,_0x35f19a),_0x1d4984['mapper']['bindElementToMarker'](_0x35f19a,_0x54ca33['markerName']);}};}class wt extends _0x5a19c7{['afterInit'](){const _0x358b6b=this['editor'];if(!_0x358b6b['plugins']['has']('RemoveFormatEditing'))return;_0x358b6b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18c1cd=this['editor'];_0x18c1cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44f03f=>{if('formatBlock'!=_0x44f03f['type']&&'formatInline'!=_0x44f03f['type'])return;const {data:_0x29aa43}=_0x44f03f;return _0x29aa43&&'removeFormat'==_0x29aa43['commandName']?{'type':'format','content':o(_0x18c1cd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x5a19c7{['afterInit'](){const _0x2a569b=this['editor'];if(!_0x2a569b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x8e7283=_0x2a569b['plugins']['get']('TrackChangesEditing');_0x8e7283['enableCommand']('goToPreviousRestrictedEditingException'),_0x8e7283['enableCommand']('goToNextRestrictedEditingException');const _0x28bc82=_0x2a569b['plugins']['get']('RestrictedEditingModeEditing');_0x28bc82['enableCommand']('trackChanges'),_0x28bc82['enableCommand']('acceptSuggestion'),_0x28bc82['enableCommand']('discardSuggestion'),_0x28bc82['enableCommand']('acceptAllSuggestions'),_0x28bc82['enableCommand']('discardAllSuggestions'),_0x28bc82['enableCommand']('acceptSelectedSuggestions'),_0x28bc82['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x5a19c7{static get['requires'](){return[_0x8df071];}['init'](){const _0x5e1c6b=this['editor'],_0x3f3d3a=_0x5e1c6b['plugins']['get']('TrackChangesEditing');_0x3f3d3a['enableCommand']('shiftEnter'),_0x5e1c6b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x5e1c6b),{'priority':'high'}),_0x5e1c6b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x5e1c6b),{'priority':'high'}),_0x5e1c6b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5cefd9,_0x357921,_0x371e34)=>{_0x371e34['options']['showSuggestionHighlights']&&ge(_0x5e1c6b,{'showActiveMarker':!0x1})(_0x5cefd9,_0x357921,_0x371e34);}),_0x3f3d3a['descriptionFactory']['registerElementLabel']('softBreak',_0x4eb234=>o(_0x5e1c6b['locale'],'ELEMENT_LINE_BREAK',_0x4eb234));}}function ge(_0x13e1db,{showActiveMarker:_0x5b2d77=!0x0}={}){return(_0x5d92ff,_0x945df8,_0x320777)=>{const _0x5b6956=_0x13e1db['plugins']['get']('TrackChangesEditing');if(!_0x320777['consumable']['test'](_0x945df8['markerRange'],_0x5d92ff['name']))return;const _0x1cfeb8=_0x13e1db['model'];for(const _0xbd8271 of _0x945df8['markerRange']['getItems']()){if(!_0xbd8271['is']('element','softBreak'))continue;const _0x4ee42a='deletion'==_0x945df8['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5e7940}=_0x5b6956['_splitMarkerName'](_0x945df8['markerName']),_0xff0630=_0x320777['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ee42a,'data-author-id':_0x5e7940}),_0x268ba6=_0x320777['mapper']['toViewPosition'](_0x1cfeb8['createPositionBefore'](_0xbd8271));_0x5b2d77&&_0x5b6956['activeMarkers']['includes'](_0x945df8['markerName'])&&_0x320777['writer']['addClass']('ck-suggestion-marker--active',_0xff0630),_0x320777['writer']['insert'](_0x268ba6,_0xff0630),_0x320777['mapper']['bindElementToMarker'](_0xff0630,_0x945df8['markerName']);}};}class St extends _0x5a19c7{['afterInit'](){const _0x420581=this['editor'],_0xff48b8=_0x420581['model'],_0x17241e=_0x420581['locale'];if(!_0x420581['plugins']['has']('StandardEditingModeEditing'))return;const _0x23befb=_0x420581['plugins']['get']('TrackChangesEditing'),_0x316cd8='restrictedEditingException',_0x4da420=_0x420581['commands']['get'](_0x316cd8);_0x23befb['enableCommand'](_0x316cd8,(_0x191cc5,_0x3b7cdb={})=>{const _0x460e37=_0xff48b8['document']['selection'];if(_0x460e37['isCollapsed'])return void _0x191cc5(_0x3b7cdb);const _0x15b16f=void 0x0!==_0x3b7cdb['forceValue']?_0x3b7cdb['forceValue']:!_0x4da420['value'];_0xff48b8['change'](()=>{const _0x220de1=Array['from'](_0x460e37['getRanges']());for(const _0x167c90 of _0x220de1){const _0x2b0f68=_0x15b16f?[_0x167c90]:io(_0x316cd8,_0x167c90,_0xff48b8);for(const _0x2bc5d1 of _0x2b0f68)_0x23befb['markInlineFormat'](_0x2bc5d1,{'commandName':_0x316cd8,'commandParams':[{'forceValue':_0x15b16f}]});}});}),_0x23befb['descriptionFactory']['registerDescriptionCallback'](_0x1d055c=>{if('formatBlock'!=_0x1d055c['type']&&'formatInline'!=_0x1d055c['type'])return;const {data:_0x433f84}=_0x1d055c;return _0x433f84&&_0x433f84['commandName']==_0x316cd8?_0x433f84['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17241e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x17241e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x5a19c7{['afterInit'](){const _0x105a64=this['editor'];if(!_0x105a64['plugins']['has']('Style')||!_0x105a64['plugins']['has']('DataSchema'))return;const _0x47bffc=_0x105a64['plugins']['get']('TrackChangesEditing'),_0x230d5e=_0x105a64['locale'],_0x3aa160=_0x105a64['config']['get']('style')||{},_0x4e7ccd=_0x105a64['plugins']['get']('GeneralHtmlSupport'),_0x41819a=_0x105a64['plugins']['get']('StyleUtils')['normalizeConfig'](_0x105a64['plugins']['get']('DataSchema'),_0x3aa160['definitions']);_0x47bffc['enableDefaultAttributesIntegration']('style');const _0x9a9359=new Set();for(const _0x5b8413 of _0x41819a['block']){const _0x52af20=_0x4e7ccd['getGhsAttributeNameForElement'](_0x5b8413['element']);_0x9a9359['add'](_0x52af20);}const _0x315bc0=new Set();for(const _0x2c5e33 of _0x41819a['inline']){const _0x1afa5f=_0x4e7ccd['getGhsAttributeNameForElement'](_0x2c5e33['element']);_0x315bc0['add'](_0x1afa5f);for(const _0xacd98e of _0x2c5e33['ghsAttributes'])_0x315bc0['add'](_0xacd98e);}for(const _0x48184c of _0x9a9359)_0x47bffc['registerBlockAttribute'](_0x48184c),_0x47bffc['descriptionFactory']['registerAttributeLabel'](_0x48184c,o(_0x230d5e,'FORMAT_STYLE'));for(const _0x10e010 of _0x315bc0)_0x47bffc['registerInlineAttribute'](_0x10e010),_0x47bffc['descriptionFactory']['registerAttributeLabel'](_0x10e010,o(_0x230d5e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe837a2=this['editor'],_0xebe4c6=_0xe837a2['locale'];_0xe837a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x560a2b=>{if('formatBlock'!=_0x560a2b['type']&&'formatInline'!=_0x560a2b['type'])return;const {data:_0x540fc5}=_0x560a2b;return _0x540fc5&&'style'===_0x540fc5['commandName']?_0x540fc5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xebe4c6,'*Set\x20format:*\x20%0',_0x540fc5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xebe4c6,'*Remove\x20format:*\x20%0',_0x540fc5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x5a19c7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4ca7f0){super(_0x4ca7f0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3d63bd=this['editor'],_0x556b80=_0x3d63bd['model']['document']['selection'];if(!_0x3d63bd['plugins']['has']('TableEditing'))return;const _0x1dd576=_0x3d63bd['locale'],_0x2c0acb=_0x3d63bd['plugins']['get']('TrackChangesEditing'),_0x1af88e=_0x3d63bd['plugins']['get']('TableUtils');_0x2c0acb['descriptionFactory']['registerElementLabel']('table',_0x27a483=>o(_0x1dd576,'ELEMENT_TABLE',_0x27a483)),this['_setupColumnsRowsFixing'](),_0x2c0acb['enableCommand']('insertTable'),_0x2c0acb['enableCommand']('selectTableRow'),_0x2c0acb['enableCommand']('selectTableColumn');for(const _0x2b94a0 of['insertTableRowAbove','insertTableRowBelow']){const _0x447e43=_0x3d63bd['commands']['get'](_0x2b94a0);_0x2c0acb['enableCommand'](_0x2b94a0,_0x52c6f4=>{_0x3d63bd['model']['change'](_0xa65027=>{_0x52c6f4();const _0x279cdc='above'===_0x447e43['order'],_0x3bd633=_0x1af88e['getSelectionAffectedTableCells'](_0x556b80),_0x255806=_0x1af88e['getRowIndexes'](_0x3bd633),_0x572b07=_0x279cdc?_0x255806['first']-0x1:_0x255806['last']+0x1,_0xcb5e8a=_0x3bd633[0x0]['findAncestor']('table'),_0x181dfb=_0x1af88e['createTableWalker'](_0xcb5e8a,{'startRow':_0x572b07,'endRow':_0x572b07}),_0x28355c=Array['from'](_0x181dfb)['map'](_0xaeecca=>_0xa65027['createRangeOn'](_0xaeecca['cell']));_0x2c0acb['markMultiRangeInsertion'](_0x28355c,'tableRow');});});}for(const _0x5b40dd of['insertTableColumnLeft','insertTableColumnRight']){const _0x239758=_0x3d63bd['commands']['get'](_0x5b40dd);_0x2c0acb['enableCommand'](_0x5b40dd,_0x287a22=>{_0x3d63bd['model']['change'](_0x49fef3=>{_0x287a22();const _0x2c09f8='left'===_0x239758['order'],_0x5a0bfc=_0x1af88e['getSelectionAffectedTableCells'](_0x556b80),_0x4c5f9f=_0x1af88e['getColumnIndexes'](_0x5a0bfc),_0x3ebf41=_0x2c09f8?_0x4c5f9f['first']-0x1:_0x4c5f9f['last']+0x1,_0x30cfb7=_0x5a0bfc[0x0]['findAncestor']('table'),_0x44d99c=_0x1af88e['createTableWalker'](_0x30cfb7,{'startRow':0x0,'column':_0x3ebf41,'includeAllSlots':!0x1}),_0x441b51=Array['from'](_0x44d99c)['map'](_0x5ba38e=>_0x49fef3['createRangeOn'](_0x5ba38e['cell']));_0x2c0acb['markMultiRangeInsertion'](_0x441b51,'tableColumn');});});}for(const _0x440a04 of['removeTableRow','removeTableColumn']){const _0x15bf62=_0x440a04['substr'](0xb),_0x42193c=_0x15bf62['toLowerCase'](),_0x4b78a7=_0x42193c['substr'](0x0,0x3)+'span',_0x1ffdde='table'+_0x15bf62,_0x13ed5f='min'+_0x15bf62,_0x5f33a9='max'+_0x15bf62;_0x2c0acb['enableCommand'](_0x440a04,()=>{_0x3d63bd['model']['change'](_0x3e3170=>{const _0x3d934e=_0x1af88e['getSelectionAffectedTableCells'](_0x556b80),_0x396d24=_0x3d934e[0x0]['findAncestor']('table');let _0x563822;if('removeTableRow'==_0x440a04){const _0x40b28f=_0x1af88e['getRowIndexes'](_0x3d934e);_0x563822={'startRow':_0x40b28f['first'],'endRow':_0x40b28f['last'],'includeAllSlots':!0x0};}else{const _0x3f8e19=_0x1af88e['getColumnIndexes'](_0x3d934e);_0x563822={'startColumn':_0x3f8e19['first'],'endColumn':_0x3f8e19['last'],'includeAllSlots':!0x0};}const _0x3d6de4=_0x1af88e['createTableWalker'](_0x396d24,_0x563822),_0x1acb65=Array['from'](_0x3d6de4)['map'](({cell:_0x145ef8})=>_0x145ef8),_0xe1c39f=be(_0x1acb65['filter'](_0x5cf5f2=>_0x5cf5f2['hasAttribute'](_0x4b78a7))),_0x4e92d2=be(_0x1acb65['filter'](_0x41c6e0=>!_0x41c6e0['hasAttribute'](_0x4b78a7)))['map'](_0xdf76c3=>_0x3e3170['createRangeOn'](_0xdf76c3)),_0xd7c154=_0x2c0acb['markMultiRangeDeletion'](_0x4e92d2,_0x1ffdde);if(_0xd7c154&&('tableRow'==_0xd7c154['subType']||'tableColumn'==_0xd7c154['subType'])){const _0x4a0794=this['_getSuggestionCoords'](_0xd7c154);for(const _0x2c7d2a of _0xe1c39f){const _0x5a3b05=_0x3e3170['createRangeOn'](_0x2c7d2a),_0x42472a=_0x1af88e['getCellLocation'](_0x2c7d2a),_0x5334b6=_0x2c7d2a['getAttribute'](_0x4b78a7)-0x1,_0x188a06=_0x4a0794[_0x13ed5f],_0x5b676f=_0x4a0794[_0x5f33a9];_0x188a06<=_0x42472a[_0x42193c]&&_0x42472a[_0x42193c]+_0x5334b6<=_0x5b676f&&_0xd7c154['addRange'](_0x5a3b05);}}});});}function _0xff52f0(_0x59efb3){const _0x1ff3bc=Array['from'](_0x556b80['getRanges']())['map'](_0x2ce8ad=>_0x31c9bf['fromRange'](_0x2ce8ad));_0x3d63bd['model']['change'](_0x133a4c=>{const _0x1549df=_0x133a4c['batch'];_0x59efb3=_0x59efb3['filter'](_0x46a972=>'$graveyard'!=_0x46a972['root']['rootName']),_0x133a4c['setSelection'](_0x59efb3),_0x3d63bd['commands']['get']('removeTableRow')['refresh'](),_0x3d63bd['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3d63bd['model']['enqueueChange'](()=>{_0x3d63bd['model']['enqueueChange'](_0x1549df,_0x2d48f2=>{const _0x4628c5=_0x1ff3bc['filter'](_0x5087ae=>'$graveyard'!=_0x5087ae['root']['rootName']);_0x4628c5['length']>0x0&&_0x2d48f2['setSelection'](_0x4628c5);for(const _0x97d7e7 of _0x1ff3bc)_0x97d7e7['detach']();});});});}function _0x3797fb(_0xf14a3d){_0x3d63bd['model']['change'](_0x28006f=>{const _0x57b7ff=Array['from'](_0x556b80['getRanges']())['map'](_0x281794=>_0x31c9bf['fromRange'](_0x281794)),_0xd7c105=[];for(const _0x5da580 of _0xf14a3d)for(const _0x3ad420 of _0x5da580['getItems']({'shallow':!0x0}))_0xd7c105['push'](_0x3ad420);for(const _0x554ac4 of _0xd7c105)'$graveyard'!=_0x554ac4['root']['rootName']&&(_0x28006f['setSelection'](_0x28006f['createPositionAt'](_0x554ac4,0x0)),_0x3d63bd['commands']['get']('removeTableColumn')['refresh'](),_0x3d63bd['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4c1997=_0x57b7ff['filter'](_0x5e171e=>'$graveyard'!=_0x5e171e['root']['rootName']);_0x4c1997['length']>0x0&&_0x28006f['setSelection'](_0x4c1997);for(const _0xf69064 of _0x57b7ff)_0xf69064['detach']();});}function _0x328e0c(_0x51015b,_0x514f92){return _0x514f92['every'](_0xd469a6=>_0x51015b['some'](_0x3cd939=>_0x3cd939['end']['isEqual'](_0xd469a6['start'])||_0xd469a6['end']['isEqual'](_0x3cd939['start'])));}function _0x423f70(_0x3dd731,_0x3ac974){return!_0x3dd731['some'](_0x2af7a1=>_0x3ac974['some'](_0x207e59=>_0x2af7a1['isIntersecting'](_0x207e59)))&&_0x3dd731['some'](_0x2f2678=>_0x3ac974['some'](_0x243a84=>_0x2f2678['end']['isTouching'](_0x243a84['start'])));}_0x3d63bd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1cb598,_0x407f68,_0x15baf2)=>{if(!_0x15baf2['options']['showSuggestionHighlights'])return;const _0x15e172=_0x407f68['item'];if(!_0x15e172)return;const _0xb46139=_0x15baf2['mapper']['toViewElement'](_0x15e172);function _0x5a1729(_0x19d73f){return Array['isArray'](_0x19d73f)?_0x19d73f:[_0x19d73f];}_0xb46139&&'tableCell'===_0x15e172['name']&&_0x12a762(_0xb46139,_0x15baf2['writer'],(_0x542350,_0x2ada4e,_0x231f4c)=>_0x231f4c['addClass'](_0x5a1729(_0x2ada4e['classes']),_0x542350),(_0x168fd4,_0x5df5e2,_0x6b1d6a)=>_0x6b1d6a['removeClass'](_0x5a1729(_0x5df5e2['classes']),_0x168fd4));},{'priority':'highest'}),_0x2c0acb['descriptionFactory']['registerDescriptionCallback'](_0x5ae97a=>{if('insertion'!=_0x5ae97a['type']&&'deletion'!=_0x5ae97a['type'])return;const _0x10baeb=_0x5ae97a['getContainedElement']();if(null!=_0x10baeb&&_0x10baeb['is']('element','table')){if('insertion'==_0x5ae97a['type']){const _0x3f830d=_0x5ae97a['getItems']()['filter'](_0x43e9a0=>_0x43e9a0['is']('$textProxy'))['map'](_0x5e22bc=>_0x5e22bc['data']);if(_0x3f830d['length'])return{'type':'insertion','content':o(_0x1dd576,'*Insert:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f830d['join']('\x20')+'\x22'))};}if('deletion'==_0x5ae97a['type']){const _0x1483c4=_0x5ae97a['getItems']()['filter'](_0x4eec2a=>_0x4eec2a['is']('$textProxy'))['map'](_0x209f79=>_0x209f79['data']);if(_0x1483c4['length'])return{'type':'deletion','content':o(_0x1dd576,'*Remove:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1483c4['join']('\x20')+'\x22'))};}}}),_0x2c0acb['descriptionFactory']['registerDescriptionCallback'](_0x3017d7=>{if('tableRow'==_0x3017d7['subType']){const _0x54edba=_0x3017d7['getItems']()['filter'](_0x3125d8=>_0x3125d8['is']('$textProxy'))['map'](_0x1319c3=>_0x1319c3['data']),_0x10ad2f=this['_getSuggestionCoords'](_0x3017d7),_0x4093de=_0x10ad2f['maxRow']-_0x10ad2f['minRow']+0x1;if('insertion'==_0x3017d7['type'])return _0x54edba['length']?{'type':'insertion','content':o(_0x1dd576,'*Insert:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4093de,'\x22'+_0x54edba['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1dd576,'*Insert:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_ROW',_0x4093de))};if('deletion'==_0x3017d7['type'])return _0x54edba['length']?{'type':'deletion','content':o(_0x1dd576,'*Remove:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4093de,'\x22'+_0x54edba['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1dd576,'*Remove:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_ROW',_0x4093de))};}if('tableColumn'==_0x3017d7['subType']){const _0x44d893=_0x3017d7['getItems']()['filter'](_0x28b802=>_0x28b802['is']('$textProxy'))['map'](_0x31bbd8=>_0x31bbd8['data']),_0x4beb12=this['_getSuggestionCoords'](_0x3017d7),_0x3ffcf4=_0x4beb12['maxColumn']-_0x4beb12['minColumn']+0x1;if('insertion'==_0x3017d7['type'])return _0x44d893['length']?{'type':'insertion','content':o(_0x1dd576,'*Insert:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ffcf4,'\x22'+_0x44d893['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1dd576,'*Insert:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_COLUMN',_0x3ffcf4))};if('deletion'==_0x3017d7['type'])return _0x44d893['length']?{'type':'deletion','content':o(_0x1dd576,'*Remove:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ffcf4,'\x22'+_0x44d893['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1dd576,'*Remove:*\x20%0',o(_0x1dd576,'ELEMENT_TABLE_COLUMN',_0x3ffcf4))};}}),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xff52f0),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xff52f0),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3797fb),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3797fb),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x328e0c),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x328e0c),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x423f70),_0x2c0acb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x423f70);}['_acceptFormatSuggestionCallbackFactory'](){const _0x405e57=this['editor'],_0x340106=_0x405e57['model']['document']['selection'];return(_0x3cc5dd,_0xfbf112)=>{_0x405e57['model']['change'](_0x3d5a6f=>{const {commandName:_0xa6bf37,commandParams:_0x30810d}=_0xfbf112;let _0x44923e=_0x3cc5dd[0x0]['end']['nodeBefore'];_0x30810d&&_0x30810d[0x0]&&!0x1===_0x30810d[0x0]['forceValue']&&(_0x44923e=_0x3cc5dd[0x0]['start']['nodeAfter']);const _0x3675de=_0x3d5a6f['createRangeIn'](_0x44923e);if('$graveyard'==_0x3675de['root']['rootName'])return;const _0x4f0c5a=Array['from'](_0x340106['getRanges']())['map'](_0x5336b8=>_0x31c9bf['fromRange'](_0x5336b8));_0x3d5a6f['setSelection'](_0x3675de),_0x405e57['commands']['get'](_0xa6bf37)['refresh'](),_0x30810d['push']({'forceDefaultExecution':!0x0}),_0x405e57['execute'](_0xa6bf37,..._0x30810d);const _0x27567e=_0x4f0c5a['filter'](_0x510317=>'$graveyard'!=_0x510317['root']['rootName']);_0x27567e['length']>0x0&&_0x3d5a6f['setSelection'](_0x27567e);for(const _0x31c6bc of _0x4f0c5a)_0x31c6bc['detach']();});};}['_getCoordsForCells'](_0x266ea5){const _0x1e6ae3=this['editor']['plugins']['get']('TableUtils');let _0x56e3b7=Number['MAX_SAFE_INTEGER'],_0x55249f=Number['MIN_SAFE_INTEGER'],_0x251e26=Number['MAX_SAFE_INTEGER'],_0x25bc7f=Number['MIN_SAFE_INTEGER'];for(const _0xacdf91 of _0x266ea5){if('$graveyard'==_0xacdf91['root']['rootName'])continue;const {row:_0x4fc5eb,column:_0x5360f4}=_0x1e6ae3['getCellLocation'](_0xacdf91),_0x1725f4=_0xacdf91['hasAttribute']('rowspan')?_0xacdf91['getAttribute']('rowspan')-0x1:0x0,_0x2a2502=_0xacdf91['hasAttribute']('colspan')?_0xacdf91['getAttribute']('colspan')-0x1:0x0;_0x56e3b7=_0x4fc5eb<_0x56e3b7?_0x4fc5eb:_0x56e3b7,_0x55249f=_0x4fc5eb+_0x1725f4>_0x55249f?_0x4fc5eb+_0x1725f4:_0x55249f,_0x251e26=_0x5360f4<_0x251e26?_0x5360f4:_0x251e26,_0x25bc7f=_0x5360f4+_0x2a2502>_0x25bc7f?_0x5360f4+_0x2a2502:_0x25bc7f;}return{'minRow':_0x56e3b7,'maxRow':_0x55249f,'minColumn':_0x251e26,'maxColumn':_0x25bc7f};}['_setupColumnsRowsFixing'](){const _0x5dce26=this['editor'],_0x2daf14=_0x5dce26['plugins']['get']('TrackChangesEditing'),_0x402cc2=_0x5dce26['plugins']['get']('TableUtils');_0x5dce26['model']['document']['on']('change:data',()=>{const _0x371310=Array['from'](_0x5dce26['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x146769,data:_0x591048}of _0x371310){const {group:_0x211595,id:_0x27a54a,subType:_0x3ba628}=_0x2daf14['_splitMarkerName'](_0x146769);if('suggestion'!=_0x211595)continue;if(null!=_0x591048['oldRange'])continue;const _0x4db862=_0x2daf14['getSuggestion'](_0x27a54a);this['_tablePostFixingSubtypes']['includes'](_0x3ba628)&&this['_tableSuggestions']['add'](_0x4db862);}},{'priority':'low'});const _0x358fd1=(_0x3a114a,_0x22a62b)=>{let _0x4d2507=!0x1;const _0x5a9f66=_0x22a62b['createRangeOn'](_0x3a114a),_0x5879ab=_0x3a114a['findAncestor']('table'),_0x1decd8=_0x402cc2['getCellLocation'](_0x3a114a);for(const _0x5414b3 of this['_tableSuggestions']){const _0x37e222=_0x5414b3['subType'],_0x17d00b=_0x37e222['startsWith']('tablePaste'),_0x242d73=_0x37e222['substr'](_0x17d00b?0xa:0x5),_0x30eba1=_0x242d73['toLowerCase'](),_0x527faa=_0x30eba1['substr'](0x0,0x3)+'span',_0x7bc020='min'+_0x242d73,_0x4b6b80='max'+_0x242d73;if(!_0x5414b3['isInContent'])continue;if(_0x5879ab!=_0x5414b3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5414b3['isIntersectingWithRange'](_0x5a9f66))continue;const _0x39fcfb=_0x3a114a['hasAttribute'](_0x527faa)?_0x3a114a['getAttribute'](_0x527faa)-0x1:0x0,_0x10dbf9=this['_getSuggestionCoords'](_0x5414b3),_0x38c354=_0x10dbf9[_0x7bc020],_0x481cec=_0x10dbf9[_0x4b6b80];_0x38c354<=_0x1decd8[_0x30eba1]&&_0x1decd8[_0x30eba1]+_0x39fcfb<=_0x481cec&&(_0x5414b3['addRange'](_0x5a9f66),_0x4d2507=!0x0);}return _0x4d2507;};_0x5dce26['model']['document']['registerPostFixer'](_0x2615fe=>{let _0x22dc63=!0x1;for(const _0x253fac of _0x5dce26['model']['document']['differ']['getChanges']())if('insert'==_0x253fac['type']){if('tableRow'==_0x253fac['name']){for(const _0xa0153b of _0x253fac['position']['nodeAfter']['getChildren']())_0x22dc63=_0x22dc63||_0x358fd1(_0xa0153b,_0x2615fe);}else'tableCell'==_0x253fac['name']&&(_0x22dc63=_0x22dc63||_0x358fd1(_0x253fac['position']['nodeAfter'],_0x2615fe));}return _0x22dc63;});}['_getSuggestionCoords'](_0xe24ae4){return this['_getCoordsForCells'](_0xe24ae4['getRanges']()['map'](_0x1599f9=>_0x1599f9['start']['nodeAfter']));}}function be(_0x2a4d5b){return Array['from'](new Set(_0x2a4d5b)['values']());}class vt extends _0x5a19c7{static get['requires'](){return[It];}['afterInit'](){const _0x3727e8=this['editor'],_0x48febd=_0x3727e8['model']['document']['selection'],_0x5b11f9=_0x3727e8['locale'];if(!_0x3727e8['plugins']['has']('TableEditing'))return;const _0x21029a=_0x3727e8['plugins']['get']('TrackChangesEditing'),_0x2ddeb7=_0x3727e8['plugins']['get']('TableUtils'),_0x34bc3d=_0x3727e8['plugins']['get'](It);_0x34bc3d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x21029a['enableCommand']('mergeTableCells',()=>{const _0x1c7376=_0x2ddeb7['getSelectionAffectedTableCells'](_0x3727e8['model']['document']['selection']);_0x3727e8['model']['change'](()=>{_0x21029a['markMultiRangeBlockFormat'](_0x1c7376,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3727e8['commands']['get']('mergeTableCells')['on']('execute',(_0x5bf48e,_0x1d04c1)=>{_0x3727e8['commands']['get']('trackChanges')['value']&&(_0x1d04c1['length']>0x0&&_0x1d04c1[_0x1d04c1['length']-0x1]&&_0x1d04c1[_0x1d04c1['length']-0x1]['forceDefaultExecution']||_0x21029a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5bf48e['stop']());},{'priority':'highest'});for(const _0x372750 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3fb895=_0x3727e8['commands']['get'](_0x372750);_0x21029a['enableCommand'](_0x372750,()=>{const _0x4bd69b=_0x3727e8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x40503c=>_0x40503c['is']('element','tableCell')),_0xbd272=_0x3fb895['value'];_0x3727e8['model']['change'](()=>{_0x21029a['markMultiRangeBlockFormat']([_0x4bd69b,_0xbd272],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4367b7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5b8d21=_0x3727e8['commands']['get'](_0x4367b7);_0x21029a['enableCommand'](_0x4367b7,()=>{const _0x3698c8=_0x2ddeb7['getSelectionAffectedTableCells'](_0x3727e8['model']['document']['selection'])[0x0],_0x3c0035=_0x3698c8['findAncestor']('table'),{column:_0x142284,row:_0x7e0550}=_0x2ddeb7['getCellLocation'](_0x3698c8);let _0x52ffc2=[];if('horizontally'==_0x5b8d21['direction']){const _0x5bd11d=_0x2ddeb7['createTableWalker'](_0x3c0035,{'startRow':_0x7e0550,'endRow':_0x7e0550,'includeAllSlots':!0x0});_0x52ffc2=Array['from'](_0x5bd11d)['map'](_0x2e37a6=>_0x2e37a6['cell']);}else{const _0x3e112a=_0x2ddeb7['createTableWalker'](_0x3c0035,{'column':_0x142284,'includeAllSlots':!0x0});_0x52ffc2=Array['from'](_0x3e112a)['map'](_0x403469=>_0x403469['cell']);}_0x3727e8['model']['change'](_0x3220b2=>{_0x21029a['markBlockFormat'](_0x3220b2['createRangeOn'](_0x3698c8),{'commandName':_0x4367b7,'commandParams':[]},_0x52ffc2,_0x4367b7);});});}_0x21029a['descriptionFactory']['registerDescriptionCallback'](_0xd28e58=>{if('formatBlock'!=_0xd28e58['type']&&'formatInline'!=_0xd28e58['type'])return;const {data:_0xc01659}=_0xd28e58;return _0xc01659&&'mergeTableCells'==_0xc01659['commandName']?{'type':'format','content':o(_0x5b11f9,'*Merge\x20cells*')}:void 0x0;}),_0x21029a['descriptionFactory']['registerDescriptionCallback'](_0x35335d=>{if('formatBlock'!=_0x35335d['type']&&'formatInline'!=_0x35335d['type'])return;const {data:_0x544674}=_0x35335d;return _0x544674?'splitTableCellVertically'==_0x544674['commandName']?{'type':'format','content':o(_0x5b11f9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x544674['commandName']?{'type':'format','content':o(_0x5b11f9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x31fa3e=_0x34bc3d['_acceptFormatSuggestionCallbackFactory']();for(const _0x409ed4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x21029a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x409ed4,'accept',_0x31fa3e);for(const _0x39993c of['splitTableCellVertically','splitTableCellHorizontally'])_0x21029a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x39993c,'accept',_0x31fa3e);_0x21029a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2f563c=>{_0x3727e8['model']['change'](_0x23205c=>{const _0x4f76ef=Array['from'](_0x48febd['getRanges']())['map'](_0x3a0625=>_0x31c9bf['fromRange'](_0x3a0625));_0x23205c['setSelection'](_0x2f563c),_0x3727e8['commands']['get']('mergeTableCells')['refresh'](),_0x3727e8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x156f3f=_0x4f76ef['filter'](_0x3d6470=>'$graveyard'!=_0x3d6470['root']['rootName']);_0x156f3f['length']>0x0&&_0x23205c['setSelection'](_0x156f3f);for(const _0x5b017f of _0x4f76ef)_0x5b017f['detach']();});});for(const _0x3a7e45 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3778ad=_0x3727e8['commands']['get'](_0x3a7e45);_0x3778ad['on']('set:isEnabled',(_0x56c34d,_0x5b8158,_0x4dc90d)=>{if(_0x4dc90d){const _0xeed792=_0x3727e8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x297ade=>_0x297ade['is']('element','tableCell'));this['_areMergableCells'](_0x3778ad['value'],_0xeed792)||(_0x56c34d['return']=!0x1,_0x56c34d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x13e1f6=this['editor']['commands']['get']('mergeTableCells'),_0x436261=this['editor']['plugins']['get']('TableUtils');if(!_0x13e1f6['isEnabled'])return!0x1;const _0x1584ff=_0x436261['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x13d0eb of _0x1584ff)for(const _0x884fea of _0x1584ff)if(_0x13d0eb!=_0x884fea&&!this['_areMergableCells'](_0x13d0eb,_0x884fea))return!0x1;return!0x0;}['_areMergableCells'](_0x4f9944,_0x462906){const _0x4efdd4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2406b4=this['editor']['model']['createRangeOn'](_0x4f9944),_0x19265b=this['editor']['model']['createRangeOn'](_0x462906),_0x1a677f=new Set(),_0x310572=new Set();for(const _0x46a4c0 of _0x4efdd4['getSuggestions']())if(('insertion'==_0x46a4c0['type']||'deletion'==_0x46a4c0['type']||'mergeTableCells'==_0x46a4c0['subType'])&&_0x46a4c0['isInContent']){for(const _0x19242a of _0x46a4c0['getRanges']())_0x19242a['containsRange'](_0x2406b4,!0x0)&&_0x1a677f['add'](_0x46a4c0['type']+':'+_0x46a4c0['author']['id']),_0x19242a['containsRange'](_0x19265b,!0x0)&&_0x310572['add'](_0x46a4c0['type']+':'+_0x46a4c0['author']['id']);}if(_0x1a677f['size']!=_0x310572['size'])return!0x1;for(const _0x106b43 of _0x1a677f)if(!_0x310572['has'](_0x106b43))return!0x1;return!0x0;}}class Ct extends _0x5a19c7{static get['requires'](){return[It];}['afterInit'](){const _0x3894c6=this['editor'];if(!_0x3894c6['plugins']['has']('TableEditing'))return;const _0x382aad=_0x3894c6['locale'],_0x180ccf=_0x3894c6['plugins']['get']('TrackChangesEditing');_0x180ccf['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x180ccf['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x180ccf['registerBlockAttribute']('headingRows'),_0x180ccf['registerBlockAttribute']('headingColumns'),_0x180ccf['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x382aad,'FORMAT_HEADER_ROW')),_0x180ccf['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x382aad,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x349f9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26345a=this['editor']['plugins']['get']('TableUtils'),_0x8fd47d=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x303427({showActiveMarker:_0x358ae2=!0x0,setDataAttribute:_0x30783d=!0x0}={}){return(_0x1d7f75,_0x5388ec,_0x4b01bf)=>{const {type:_0x53624c,id:_0x96cf2d}=_0x349f9b['_splitMarkerName'](_0x5388ec['markerName']),_0x3115a3=_0x349f9b['getSuggestion'](_0x96cf2d),_0x322b48=_0x3115a3['data'];if('formatBlock'!=_0x3115a3['type']||!_0x322b48||'setTableColumnHeader'!=_0x322b48['commandName'])return;if(_0x5388ec['item'])return void _0x1d7f75['stop']();if(!_0x4b01bf['consumable']['consume'](_0x5388ec['markerRange'],_0x1d7f75['name']))return;const _0x319f07=_0x5388ec['markerRange']['start']['nodeAfter'],_0x15530d=_0x5388ec['markerRange']['end']['nodeBefore'],_0x5c8785=_0x319f07['parent']['parent'],{column:_0xee85be}=_0x26345a['getCellLocation'](_0x319f07),{column:_0x1082f3}=_0x26345a['getCellLocation'](_0x15530d);for(let _0x5656c=_0xee85be;_0x5656c<=_0x1082f3;_0x5656c++){const _0x2e7dd7=_0x26345a['createTableWalker'](_0x5c8785,{'column':_0x5656c,'includeAllSlots':!0x1});for(const _0x5e7ce5 of _0x2e7dd7){const _0x2baf4b=_0x5e7ce5['cell'],_0x409a9a=_0x4b01bf['mapper']['toViewElement'](_0x2baf4b);_0x4b01bf['writer']['addClass']('ck-suggestion-marker-'+_0x53624c,_0x409a9a),_0x30783d&&_0x4b01bf['writer']['setAttribute']('data-suggestion',_0x96cf2d,_0x409a9a),_0x4b01bf['mapper']['bindElementToMarker'](_0x409a9a,_0x5388ec['markerName']),_0x358ae2&&(_0x349f9b['activeMarkers']['includes'](_0x5388ec['markerName'])?_0x4b01bf['writer']['addClass']('ck-suggestion-marker--active',_0x409a9a):_0x4b01bf['writer']['removeClass']('ck-suggestion-marker--active',_0x409a9a));}}};}_0x349f9b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x8fd47d),_0x349f9b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x8fd47d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x303427(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x52e7d5,_0x3b257b,_0x308e36)=>{_0x308e36['options']['showSuggestionHighlights']&&_0x303427({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x52e7d5,_0x3b257b,_0x308e36);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x310ad1,_0x2e3242,_0x54bb4a)=>{const {type:_0x4105f0,id:_0x11fd85}=_0x349f9b['_splitMarkerName'](_0x2e3242['markerName']),_0x2e9d84=_0x349f9b['getSuggestion'](_0x11fd85),_0x4346d0=_0x2e9d84['data'];if('formatBlock'!=_0x2e9d84['type']||!_0x4346d0||'setTableColumnHeader'!=_0x4346d0['commandName'])return;const _0x116372=_0x54bb4a['mapper']['markerNameToElements'](_0x2e3242['markerName']);if(_0x116372){for(const _0xb662e4 of _0x116372)_0x54bb4a['writer']['removeClass']('ck-suggestion-marker-'+_0x4105f0,_0xb662e4),_0x54bb4a['writer']['removeClass']('ck-suggestion-marker--active',_0xb662e4),_0x54bb4a['writer']['removeAttribute']('data-suggestion',_0xb662e4),_0x54bb4a['mapper']['unbindElementFromMarkerName'](_0xb662e4,_0x2e3242['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x343171=this['editor'],_0x4d43a0=_0x343171['locale'];function _0x39bac2(_0x3c38b6){return{'type':'format','content':o(_0x4d43a0,'*Format:*\x20%0',_0x3c38b6)};}_0x343171['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dd145=>{if('formatBlock'!=_0x5dd145['type'])return;const {data:_0x6837e6}=_0x5dd145;if(_0x6837e6){if('setTableRowHeader'==_0x6837e6['commandName']){const _0x42de15=_0x6837e6['commandParams'][0x0]['forceValue'];return _0x39bac2(o(_0x4d43a0,_0x42de15?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x6837e6['commandName']){const _0x3a3384=_0x6837e6['commandParams'][0x0]['forceValue'];return _0x39bac2(o(_0x4d43a0,_0x3a3384?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x50d81a=>[_0x50d81a,null]));class _t extends _0x5a19c7{static get['requires'](){return[It];}['afterInit'](){const _0x5551ee=this['editor'];if(!_0x5551ee['plugins']['has']('TableClipboard'))return;const _0x417da2=_0x5551ee['plugins']['get']('TrackChangesEditing'),_0x139e80=_0x5551ee['plugins']['get']('TableUtils'),_0x42f2dc=_0x5551ee['plugins']['get'](It),_0x3911b7=_0x5551ee['plugins']['get']('TableClipboard');_0x42f2dc['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5551ee['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5551ee['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1f7172=null;_0x5551ee['model']['on']('insertContent',(_0x1e50da,_0x2c6f32)=>{const [_0x2b5e64,_0xef0ae7]=_0x2c6f32,_0x370b1f=_0x2c6f32[_0x2c6f32['length']-0x1];_0x370b1f&&_0x370b1f['forceDefaultExecution']||_0x417da2['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4fa150,_0x14aa3f,_0x2e525d,_0x4a4c1c,_0x3c9ba7){if(_0x14aa3f&&!_0x14aa3f['is']('documentSelection'))return!0x1;const _0x4fb0fa=_0x3c9ba7['getTableIfOnlyTableInContent'](_0x4fa150,_0x2e525d);if(!_0x4fb0fa||!Re(_0x4fb0fa,void 0x0,_0x4a4c1c))return!0x1;const _0x52d31a=_0x4a4c1c['getSelectionAffectedTableCells'](_0x2e525d['document']['selection']);if(!_0x52d31a['length'])return!0x1;const _0x542d72=_0x52d31a[0x0]['findAncestor']('table'),_0x24104c=_0x4a4c1c['getRowIndexes'](_0x52d31a),_0x1666c3=_0x4a4c1c['getColumnIndexes'](_0x52d31a),_0x2418d3={'startRow':_0x24104c['first'],'endRow':_0x24104c['last'],'startColumn':_0x1666c3['first'],'endColumn':_0x1666c3['last']};return 0x1==_0x52d31a['length']&&(_0x2418d3['endRow']+=_0x4a4c1c['getRows'](_0x4fb0fa)-0x1,_0x2418d3['endColumn']+=_0x4a4c1c['getColumns'](_0x4fb0fa)-0x1),Re(_0x542d72,_0x2418d3,_0x4a4c1c);}(_0x2b5e64,_0xef0ae7,_0x5551ee['model'],_0x139e80,_0x3911b7)&&(_0x1e50da['stop'](),_0x1f7172={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5551ee['model']['change'](()=>{_0x5551ee['model']['insertContent'](_0x2c6f32[0x0],_0x2c6f32[0x1],_0x2c6f32[0x2],{'forceDefaultExecution':!0x0});const _0x11e237=_0x429a07(),{rowInsertionRanges:_0x10a534,columnInsertionRanges:_0x4193e0,insertionRanges:_0x19b11e,deletionRanges:_0x536a02,cells:_0x3db08e}=_0x1f7172;_0x10a534['length']&&_0x417da2['markMultiRangeInsertion'](_0x10a534,'tablePasteRow',{'tablePasteChainId':_0x11e237}),_0x4193e0['length']&&_0x417da2['markMultiRangeInsertion'](_0x4193e0,'tablePasteColumn',{'tablePasteChainId':_0x11e237}),_0x19b11e['length']&&(_0x417da2['markMultiRangeInsertion'](_0x19b11e,'tablePaste',{'tablePasteChainId':_0x11e237,'skipNestingCheck':!0x0}),_0x19b11e['forEach'](_0x40634c=>_0x40634c['detach']?.())),_0x536a02['length']&&(_0x417da2['markMultiRangeDeletion'](_0x536a02,'tablePaste',{'tablePasteChainId':_0x11e237,'skipNestingCheck':!0x0}),_0x536a02['forEach'](_0xc0d1a7=>_0xc0d1a7['detach']?.()));const _0x4e4135=_0x417da2['markMultiRangeBlockFormat'](_0x3db08e['map'](({element:_0x1c231e})=>_0x1c231e),{'formatGroupId':_0x429a07()},[],'tablePasteCell',{'tablePasteChainId':_0x11e237});if(_0x4e4135){const _0x25ed5e=_0x4e4135['getMarkers'](),_0x1556fd=[];for(const {element:_0x37ecf0,attributes:_0x2a995b}of _0x3db08e){if(!_0x2a995b)continue;const _0x329ef2=_0x5551ee['model']['createRangeOn'](_0x37ecf0),_0x35ca26=_0x25ed5e['find'](_0x742895=>_0x742895['getRange']()['isEqual'](_0x329ef2));_0x35ca26&&_0x1556fd['push']([_0x35ca26['name'],_0x2a995b]);}_0x1556fd['length']&&_0x4e4135['setAttribute']('markerAttributes',Object['fromEntries'](_0x1556fd));}_0x1f7172=null;}));},{'priority':_0x1f1c0f['high']+0xa}),_0x5551ee['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xc3b204,_0x532743)=>{const [_0x1e475b,_0x516122,,_0x33a4b0]=_0x532743;if(!_0x1f7172)return;_0xc3b204['stop']();const _0xba63b7=_0x1e475b['cell'],_0x321370=_0x516122,_0x48a2a7=ke(_0xba63b7),_0x5eecdf=ke(_0x321370);_0xc3b204['return']=_0xba63b7;let _0x3f8590=null,_0x36e35f=null;if(_0x5eecdf||_0x48a2a7){if(_0x48a2a7&&!_0x5eecdf){_0x33a4b0['remove'](_0xba63b7['getChild'](0x0));for(const _0x42f99d of Array['from'](_0x321370['getChildren']()))_0x33a4b0['insert'](_0x42f99d,_0xba63b7,'end');const _0x2b9aae=_0x1f7172['rowInsertionIndexes']['includes'](_0x1e475b['row']),_0x209569=_0x1f7172['columnInsertionIndexes']['includes'](_0x1e475b['column']);_0x2b9aae||_0x209569||(_0x3f8590=_0x31c9bf['fromRange'](_0x33a4b0['createRangeIn'](_0xba63b7)));}else _0x5eecdf&&!_0x48a2a7&&(_0x36e35f=_0x33a4b0['createRangeIn'](_0xba63b7));}else{const _0x16c0ab=_0x33a4b0['createElement']('tableCellSuggestion'),_0x1a71e7=_0x33a4b0['createElement']('tableCellSuggestion');_0x33a4b0['wrap'](_0x33a4b0['createRangeIn'](_0xba63b7),_0x1a71e7),_0x33a4b0['insert'](_0x16c0ab,_0xba63b7,0x0);for(const _0x4daa8a of Array['from'](_0x321370['getChildren']()))_0x33a4b0['insert'](_0x4daa8a,_0x16c0ab,'end');_0x3f8590=_0x31c9bf['fromRange'](_0x33a4b0['createRangeOn'](_0x16c0ab)),_0x36e35f=_0x31c9bf['fromRange'](_0x33a4b0['createRangeOn'](_0x1a71e7));}const _0xc5062d=Array['from'](_0x321370['getAttributes']())['filter'](([_0x3ea291])=>Pe['includes'](_0x3ea291));_0x1f7172['cells']['push']({'element':_0xba63b7,'attributes':_0xc5062d['length']?Object['fromEntries'](_0xc5062d):null}),_0x3f8590&&_0x1f7172['insertionRanges']['push'](_0x3f8590),_0x36e35f&&_0x1f7172['deletionRanges']['push'](_0x36e35f);},{'priority':'high'}),_0x139e80['on']('insertColumns',(_0x153ff0,_0x2ee784)=>{const [_0x68e25,_0x4744b9={}]=_0x2ee784;if(!_0x1f7172)return;const _0x1915e3=_0x4744b9['at']||0x0,_0x4aacef=_0x4744b9['columns']||0x1;_0x1f7172['columnInsertionIndexes']=new Array(_0x4aacef)['fill'](_0x1915e3)['map']((_0x101925,_0x1779c7)=>_0x101925+_0x1779c7);for(const {cell:_0x512989}of _0x139e80['createTableWalker'](_0x68e25,{'startColumn':_0x1915e3,'endColumn':_0x1915e3+_0x4aacef-0x1}))_0x1f7172['columnInsertionRanges']['push'](_0x5551ee['model']['createRangeOn'](_0x512989));},{'priority':'low'}),_0x139e80['on']('insertRows',(_0x29ba27,_0x3eb4c5)=>{const [_0x567422,_0x24200d={}]=_0x3eb4c5;if(!_0x1f7172)return;const _0x4623b4=_0x24200d['at']||0x0,_0x4d81c7=_0x24200d['rows']||0x1;_0x1f7172['rowInsertionIndexes']=new Array(_0x4d81c7)['fill'](_0x4623b4)['map']((_0x3d2080,_0x5c80e6)=>_0x3d2080+_0x5c80e6);for(const {cell:_0x466af4}of _0x139e80['createTableWalker'](_0x567422,{'startRow':_0x4623b4,'endRow':_0x4623b4+_0x4d81c7-0x1}))_0x1f7172['rowInsertionRanges']['push'](_0x5551ee['model']['createRangeOn'](_0x466af4));},{'priority':'low'}),_0x417da2['descriptionFactory']['registerDescriptionCallback'](_0x456ab5=>{if(_0x456ab5['subType']&&_0x456ab5['subType']['startsWith']('tablePaste'))return _0x456ab5['previous']?{}:{'type':'insertion','content':o(_0x5551ee['locale'],'*Replace\x20table\x20cells*')};});const _0x250ba4=()=>!0x1;for(const _0x1ba0b7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x417da2['_suggestionFactory']['registerCustomCallback']('insertion',_0x1ba0b7,'join',_0x250ba4),_0x417da2['_suggestionFactory']['registerCustomCallback']('deletion',_0x1ba0b7,'join',_0x250ba4),_0x417da2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ba0b7,'join',_0x250ba4);_0x417da2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x250ba4),_0x417da2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x28fd50,_0x2ba4eb,_0x9aae19)=>{const _0x70614f=_0x28fd50['map'](_0x4cbd5b=>_0x4cbd5b['getContainedElement']())['filter'](_0x3932ec=>_0x3932ec),_0x11fe59=new Map(_0x70614f['map'](_0x54b33a=>[_0x54b33a,null]));if(_0x1f7172){for(const {element:_0x486e29,attributes:_0xe2bb8f}of _0x1f7172['cells'])_0xe2bb8f&&_0x11fe59['set'](_0x486e29,_0xe2bb8f);}else{if(_0x9aae19&&_0x9aae19['markerAttributes'])for(const [_0xe522fa,_0xe1b07a]of Object['entries'](_0x9aae19['markerAttributes'])){const _0x43249e=_0x5551ee['model']['markers']['get'](_0xe522fa),_0x20ec0b=_0x43249e?_0x43249e['getRange']()['getContainedElement']():null;_0x20ec0b&&_0x11fe59['set'](_0x20ec0b,_0xe1b07a);}}_0x5551ee['model']['change'](_0x52cb59=>{for(const [_0x3d9011,_0x4867f9]of _0x11fe59)_0x52cb59['setAttributes']({...we,..._0x4867f9},_0x3d9011);});});const _0x32a094=(_0x1eaf3b,_0x1f8720)=>{_0x417da2['_suggestionFactory']['registerCustomCallback'](_0x1eaf3b,'tablePaste',_0x1f8720,(_0x57e982,_0x281b0b,_0x4178d3)=>{_0x5551ee['model']['change'](_0x22d266=>{const _0x48b973=[];for(const _0x4d3a82 of _0x57e982){const _0x325535=_0x4d3a82['start']['nodeAfter'];_0x325535['is']('element','tableCellSuggestion')&&_0x48b973['push'](_0x325535);}_0x417da2['_suggestionFactory']['getSuggestionCallback'](_0x1eaf3b,null,_0x1f8720)(_0x57e982,_0x281b0b,_0x4178d3);for(const _0x2dea50 of _0x48b973)'$graveyard'!=_0x2dea50['root']['rootName']&&_0x22d266['unwrap'](_0x2dea50);});});};_0x32a094('insertion','accept'),_0x32a094('insertion','discard'),_0x32a094('deletion','accept'),_0x32a094('deletion','discard'),_0x417da2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x11c36b=>{const _0x5690bc=_0x11c36b['map'](_0x2f2b98=>_0x2f2b98['getContainedElement']()),_0x5a76d7=_0x5690bc[0x0]['findAncestor']('table'),{minRow:_0x15ad0d,maxRow:_0x1b6eeb}=_0x42f2dc['_getCoordsForCells'](_0x5690bc);_0x139e80['removeRows'](_0x5a76d7,{'at':_0x15ad0d,'rows':_0x1b6eeb-_0x15ad0d+0x1});}),_0x417da2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x22947b=>{const _0x4c00e2=_0x22947b['map'](_0x4754e3=>_0x4754e3['getContainedElement']()),_0xf5534c=_0x4c00e2[0x0]['findAncestor']('table'),{minColumn:_0x2b976c,maxColumn:_0x36766b}=_0x42f2dc['_getCoordsForCells'](_0x4c00e2);_0x139e80['removeColumns'](_0xf5534c,{'at':_0x2b976c,'columns':_0x36766b-_0x2b976c+0x1});});const _0x47c608=(_0x2ba137,_0x397092)=>{if(!_0x397092['subType']||!_0x397092['subType']['startsWith']('tablePaste'))return;const _0x257e26=_0x397092['attributes']['tablePasteChainId'],_0x2f60d=_0x417da2['getSuggestions']()['filter'](_0x10e68c=>_0x10e68c['isInContent']&&_0x10e68c['attributes']&&_0x10e68c['attributes']['tablePasteChainId']==_0x257e26);_0x2f60d['length']&&_0x397092['getAllAdjacentSuggestions']()['length']!=_0x2f60d['length']&&_0x2f60d['reduce']((_0x255ab5,_0x25cc28)=>(_0x255ab5['next']=_0x25cc28,_0x25cc28['previous']=_0x255ab5,_0x25cc28));};function _0xb2a530(_0x36bf88,_0x49f3b9=!0x0){const {id:_0xcd4f80,authorId:_0x183eaa}=_0x417da2['_splitMarkerName'](_0x36bf88['markerName']),_0x51fd0c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xca6880=_0x417da2['activeMarkers']['includes'](_0x36bf88['markerName']);return _0xca6880&&_0x51fd0c['push']('ck-suggestion-marker--active'),{'classes':_0x51fd0c,'attributes':{'data-suggestion':_0xcd4f80,'data-author-id':_0x183eaa},'priority':_0xca6880&&_0x49f3b9?0xbc2:0xbb8};}_0x417da2['on']('suggestionLoaded',_0x47c608,{'priority':'high'}),_0x417da2['on']('suggestionUnloaded',_0x47c608,{'priority':'high'}),_0x5551ee['model']['document']['registerPostFixer'](()=>{let _0x150f20=!0x1;const _0x3d5424=Array['from'](_0x5551ee['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c8d94,data:_0x10201c}of _0x3d5424){const {group:_0xa707cf,type:_0x363163,id:_0x18424a}=_0x417da2['_splitMarkerName'](_0x2c8d94);if('suggestion'!=_0xa707cf||'deletion'!=_0x363163||_0x10201c['oldRange'])continue;if(!_0x417da2['hasSuggestion'](_0x18424a))continue;const _0x3ec720=_0x417da2['getSuggestion'](_0x18424a)['getRanges'](),_0x394cfe=_0x5551ee['plugins']['get']('Users')['me'];for(const _0x339f04 of _0x417da2['getSuggestions']()){if(!_0x339f04['isInContent']||_0x339f04['author']!=_0x394cfe)continue;if('formatBlock'!=_0x339f04['type']||'tablePasteCell'!=_0x339f04['subType'])continue;if(_0x339f04['getRanges']()['every'](_0x4210f0=>_0x3ec720['some'](_0x1f58f1=>_0x1f58f1['containsRange'](_0x4210f0,!0x0)))){for(const _0x43a2d2 of _0x339f04['getAllAdjacentSuggestions']())_0x43a2d2['isInContent']&&(_0x43a2d2['discard'](),_0x150f20=!0x0);}}}return _0x150f20;}),_0x5551ee['model']['document']['registerPostFixer'](_0x118e08=>{const _0x22d39e=_0x5551ee['commands']['get']('redo');if(!_0x22d39e||!_0x22d39e['_createdBatches']['has'](_0x118e08['batch']))return!0x1;let _0x559350=!0x1;const _0x26c5dc=_0x5551ee['plugins']['get']('Users')['me'],_0x2dd4ec=_0x5551ee['model']['document']['differ']['getChanges'](),_0x4ff10f=Array['from'](_0x5551ee['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4c00fc,data:_0x50ba13})=>{const {group:_0x4223b8,subType:_0x30991f,authorId:_0x49b732}=_0x417da2['_splitMarkerName'](_0x4c00fc);return'suggestion'==_0x4223b8&&'tablePaste'==_0x30991f&&_0x49b732==_0x26c5dc['id']&&!_0x50ba13['oldRange'];});for(const _0x534a0e of _0x2dd4ec){if('insert'!=_0x534a0e['type']||'tableCellSuggestion'!=_0x534a0e['name']||0x1!=_0x534a0e['length'])continue;const _0x55421a=_0x118e08['createRange'](_0x534a0e['position'],_0x534a0e['position']['getShiftedBy'](0x1));if(!_0x4ff10f['find'](({data:_0x2b9fce})=>_0x2b9fce['newRange']['isEqual'](_0x55421a))){for(const {name:_0x43c104,data:_0x317d9a}of _0x4ff10f)if(_0x55421a['containsRange'](_0x317d9a['newRange'])){_0x118e08['updateMarker'](_0x43c104,{'range':_0x55421a}),_0x559350=!0x0;break;}}}return _0x559350;}),_0x5551ee['model']['document']['registerPostFixer'](_0x449475=>{let _0x4bdedb=!0x1;const _0xb0a1ac=_0x5551ee['plugins']['get']('Users')['me'],_0x55036a=_0x417da2['getSuggestions']()['filter'](_0x5220bd=>_0x5220bd['isInContent']&&_0x5220bd['author']==_0xb0a1ac),_0x42f134=new Set(),_0x4b5c75=new Set();for(const _0x5856d0 of _0x55036a)if('tablePaste'==_0x5856d0['subType'])for(const _0x3a3de2 of _0x5856d0['getMarkers']()){const _0x1e3a3f=_0x3a3de2['getRange']()['getContainedElement']();if(_0x1e3a3f){if(_0x1e3a3f['is']('element','tableCellSuggestion')&&ke(_0x1e3a3f)){_0x5856d0['removeMarker'](_0x3a3de2['name']),_0x42f134['add'](_0x1e3a3f),_0x4bdedb=!0x0;const _0xb4d648=_0x1e3a3f['nextSibling'],_0x132ffd=_0x1e3a3f['previousSibling'],_0x3a21a3=_0xb4d648&&_0xb4d648['is']('element','tableCellSuggestion'),_0xa6f629=_0x132ffd&&_0x132ffd['is']('element','tableCellSuggestion');_0x3a21a3&&!_0x42f134['has'](_0xb4d648)&&_0x4b5c75['add'](_0xb4d648),_0xa6f629&&!_0x42f134['has'](_0x132ffd)&&_0x4b5c75['add'](_0x132ffd);}else _0x1e3a3f['is']('element','paragraph')&&_0x1e3a3f['isEmpty']&&(_0x5856d0['removeMarker'](_0x3a3de2['name']),_0x4bdedb=!0x0);}}else{if('tablePasteCell'==_0x5856d0['subType']){if(!_0x5856d0['attributes']||!_0x5856d0['attributes']['tablePasteChainId'])continue;const _0x4cddfe=_0x5856d0['attributes']['markerAttributes'];if(_0x4cddfe&&Object['keys'](_0x4cddfe)['length'])continue;const _0x265c21=_0x5856d0['attributes']['tablePasteChainId'];let _0x55d69f=!0x0,_0x4100b2=!0x0;for(const _0x298ced of _0x55036a)if(_0x298ced['subType']&&_0x298ced['subType']['startsWith']('tablePaste')){if(!_0x298ced['attributes']['tablePasteChainId']){_0x4100b2=!0x1;break;}if(_0x298ced['id']!=_0x5856d0['id']&&_0x298ced['attributes']['tablePasteChainId']==_0x265c21){_0x55d69f=!0x1;break;}}_0x4100b2&&_0x55d69f&&(_0x5856d0['removeMarkers'](),_0x4bdedb=!0x0);}}for(const _0x493f2c of _0x42f134)_0x449475['remove'](_0x493f2c);for(const _0x1ba0ce of _0x4b5c75)_0x449475['unwrap'](_0x1ba0ce);return _0x4bdedb;}),_0x5551ee['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x50d526=>_0xb2a530(_0x50d526),'converterPriority':'high'}),_0x5551ee['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x568972,_0x2518f4)=>_0x2518f4['options']['showSuggestionHighlights']?_0xb2a530(_0x568972,!0x1):null,'converterPriority':'high'});const _0x440601=_0x5551ee['editing']['view'];this['listenTo'](_0x440601['document'],'clipboardOutput',(_0x533f79,_0x496926)=>{const _0x229045=[];for(const _0x555bd1 of _0x440601['createRangeIn'](_0x496926['content'])['getItems']())_0x555bd1['is']('element','suggestion-td')&&_0x229045['push'](_0x555bd1);_0x440601['change'](_0xb4806f=>{for(const _0x7581eb of _0x229045)_0xb4806f['move'](_0xb4806f['createRangeIn'](_0x7581eb),_0xb4806f['createPositionBefore'](_0x7581eb)),_0xb4806f['remove'](_0x7581eb);});});}}function ke(_0x49a0cd){if(_0x49a0cd['isEmpty'])return!0x0;const _0x5c632d=_0x49a0cd['getChild'](0x0);return _0x5c632d['is']('element','paragraph')&&_0x5c632d['isEmpty'];}function Re(_0x5cab49,_0x1fad4a={},_0x44294d){for(const {isAnchor:_0x3c7d5d,cellHeight:_0x4e18e2,cellWidth:_0x50e8a4}of _0x44294d['createTableWalker'](_0x5cab49,{'includeAllSlots':!0x0,..._0x1fad4a}))if(!_0x3c7d5d||0x1!=_0x4e18e2||0x1!=_0x50e8a4)return!0x1;return!0x0;}class Nt extends _0x5a19c7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5b4763=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b4763['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5b4763['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5b4763['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b4763['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5b4763['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5b4763['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x16446f,_0xc286b3){const _0xa95f48=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d4961=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2099f7=_0xc286b3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5d4cfe=_0x4d4961['getColumnGroupElement'](_0x2099f7);let _0x28e9db=_0x5d4cfe?_0x4d4961['getTableColumnsWidths'](_0x5d4cfe):null,_0x10c09f=_0x2099f7['getAttribute']('tableWidth')||null;const _0x47a34d=_0xc286b3['tableWidth']||_0x10c09f,_0x5c0252=_0xc286b3['columnWidths']||_0x28e9db,_0x196fbf=this['editor']['plugins']['get']('Users')['me'];for(const _0x48af33 of _0xa95f48['getSuggestions']()){const _0x5398af=_0x48af33['getContainedElement']();if('resizeTable'===_0x48af33['subType']&&_0x5398af===_0x2099f7){_0x48af33['author']!==_0x196fbf&&_0x48af33['discard']();const _0x3d60f4=_0x48af33['data']['commandParams'];_0x10c09f=_0x3d60f4[0x0]['tableWidth'],_0x28e9db=_0x3d60f4[0x0]['columnWidths'];break;}}_0x16446f({'table':_0x2099f7,'tableWidth':_0x47a34d,'columnWidths':_0x5c0252}),_0xa95f48['markBlockFormat'](_0x2099f7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x10c09f,'columnWidths':_0x28e9db}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x531376){if('formatBlock'!=_0x531376['type']&&'formatInline'!=_0x531376['type'])return;const {data:_0x94087a}=_0x531376;if(_0x94087a&&'resizeTable'===_0x94087a['formatGroupId']){const _0xe73832='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xe73832)};}}}class Dt extends _0x5a19c7{['afterInit'](){const _0x5b1cc2=this['editor'];_0x5b1cc2['plugins']['has']('Template')&&_0x5b1cc2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x5a19c7{['afterInit'](){const _0x5e50be=this['editor'];if(!_0x5e50be['commands']['get']('insertTableOfContents'))return;_0x5e50be['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3cfde0=_0x5e50be['plugins']['get']('TrackChangesEditing'),_0x4807cf=_0x5e50be['locale'];_0x3cfde0['descriptionFactory']['registerElementLabel']('tableOfContents',_0x39af77=>o(_0x4807cf,'ELEMENT_TABLE_OF_CONTENTS',_0x39af77));}}class $t extends _0x5a19c7{['afterInit'](){const _0x5a8c32=this['editor'];if(!_0x5a8c32['plugins']['has']('Title'))return;const _0x590538=_0x5a8c32['plugins']['get']('TrackChangesEditing');_0x590538['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5a8c32['locale'],'ELEMENT_TITLE')),_0x5a8c32['model']['document']['registerPostFixer'](_0x1e8b31=>{let _0x468f95=!0x1;const _0xca4c4a=Array['from'](_0x5a8c32['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x270dea,data:_0x551e5f}of _0xca4c4a){const {group:_0x34cc96}=_0x590538['_splitMarkerName'](_0x270dea);if('suggestion'!==_0x34cc96||!_0x551e5f['newRange'])continue;const _0x5ac388=_0x551e5f['newRange'],_0x64a215=_0x5ac388['end']['nodeBefore'];if(!_0x64a215||!_0x64a215['is']('element','title-content'))continue;if(!_0x5ac388['start']['isTouching'](_0x5ac388['end']))continue;const _0x5fdd7b=_0x5a8c32['model']['schema']['getNearestSelectionRange'](_0x5ac388['end'],'forward');if(_0x5fdd7b&&_0x5fdd7b['isCollapsed']){const _0x41425b=_0x1e8b31['createRange'](_0x5ac388['start'],_0x5fdd7b['start']);_0x41425b['isEqual'](_0x5ac388)||(_0x1e8b31['updateMarker'](_0x270dea,{'range':_0x41425b}),_0x468f95=!0x0);}_0x468f95||(_0x1e8b31['removeMarker'](_0x270dea),_0x468f95=!0x0);}return _0x468f95;});}}class Bt extends _0x5a19c7{['afterInit'](){const _0xc4ddcd=this['editor'],_0x2d1859=_0xc4ddcd['plugins']['get']('TrackChangesEditing');_0xc4ddcd['plugins']['has']('UndoEditing')&&(_0x2d1859['enableCommand']('undo'),_0x2d1859['enableCommand']('redo'));}}class xt extends _0x5a19c7{static get['requires'](){return[It];}['afterInit'](){const _0x4644d7=this['editor'];if(!_0x4644d7['plugins']['has']('TableCaptionEditing'))return;_0x4644d7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x5a19c7{['tableProperties'];['tableCellProperties'];constructor(_0x3cff1a){super(_0x3cff1a),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x29bda5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1fb00d of this['tableProperties'])_0x29bda5['enableCommand'](_0x1fb00d,(_0xddd4b8,_0x34ce9a)=>{const _0x34cfee=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1fb00d,[_0x34cfee],this['tableProperties'],'tableProperties',_0xddd4b8,_0x34ce9a);});_0x29bda5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x29bda5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29bda5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x42b663,_0x555802)=>this['handleDiscardAction'](this['tableProperties'],_0x42b663,_0x555802)),_0x29bda5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x14a177 of this['tableCellProperties'])_0x29bda5['enableCommand'](_0x14a177,(_0x55da23,_0x22809e)=>{const _0x2d2705=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x14a177,_0x2d2705,this['tableCellProperties'],'tableCellProperties',_0x55da23,_0x22809e);});_0x29bda5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x29bda5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29bda5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x164175,_0x5ea594)=>this['handleDiscardAction'](this['tableCellProperties'],_0x164175,_0x5ea594)),_0x29bda5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x29bda5['descriptionFactory']['registerDescriptionCallback'](_0x3d6c2a=>this['handleSuggestionDescription'](_0x3d6c2a));}['_handlePropertyChange'](_0x4a806b,_0x305d7e,_0x377c32,_0x2cac30,_0x864469,_0x1f1d64){const _0xc31ece=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1f1d64['batch'],()=>{for(const _0x1adceb of _0x305d7e){if(this['_getSuggestion'](_0x1adceb,_0x2cac30))_0x864469(_0x1f1d64);else{const _0x1025ce={};for(const _0x527f45 of _0x377c32){const _0x36f784=_0x1adceb['getAttribute'](_0x527f45);void 0x0!==_0x36f784&&(_0x1025ce[_0x527f45]=_0x36f784);}_0x864469(_0x1f1d64),_0xc31ece['markBlockFormat'](_0x1adceb,{'commandParams':[_0x1025ce]},[],_0x2cac30);}}});}['handleDiscardAction'](_0x12dfdc,_0x19db78,_0xe918a0){const _0x5b4410=_0x19db78[0x0]['start']['nodeAfter'],_0x11af91=_0xe918a0['commandParams'][0x0];this['editor']['model']['change'](_0x2c8458=>{for(const _0x2d1287 of _0x12dfdc)void 0x0!==_0x11af91[_0x2d1287]?_0x2c8458['setAttribute'](_0x2d1287,_0x11af91[_0x2d1287],_0x5b4410):_0x2c8458['removeAttribute'](_0x2d1287,_0x5b4410);});}['handleSuggestionDescription'](_0x5e9f96){if(_0x5e9f96['data'])switch(_0x5e9f96['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x591217,_0x4c9b33){const _0xac94b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x43cab0 of _0xac94b['getSuggestions']({'skipNotAttached':!0x0})){const _0xb24e52=_0x43cab0['getContainedElement']();if(_0x43cab0['subType']===_0x4c9b33&&_0xb24e52===_0x591217)return _0x43cab0;}return null;}}const m='$elementName';class p extends _0x5a19c7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x39c210,_0x36e86d,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x480490){function _0x3413e5(_0x321b32){return _0x321b32['map'](_0x58eaef=>String['fromCharCode'](_0x58eaef))['join']('');}super(_0x480490),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x13cd31,_0x388c61,_0x596a71,_0x713937)=>{this['_model']['change'](()=>{for(const _0x3c9ee6 of[..._0x713937,..._0x596a71])this['_model']['markers']['has'](_0x3c9ee6)&&_0x480490['editing']['reconvertMarker'](_0x3c9ee6);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x480490['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x480490['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x480490['config']['get']('trackChanges.trackFormatChanges'),_0x480490['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x480490['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x480490,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3413e5([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3413e5([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x38]);}['init'](){const _0x521814=this['editor'],_0x10019c=(_0x5d6b41,_0x91d76c)=>{if('attribute'!=_0x5d6b41)return'ck-suggestion-marker-'+_0x5d6b41;const _0x4b24cd=_0x91d76c['split']('|')[0x0];return this['_isBlockAttribute'](_0x4b24cd)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x521814['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3f04da=>{const {id:_0x1c3ce7,authorId:_0x372bec,type:_0x12f63c,subType:_0x1503b1}=this['_splitMarkerName'](_0x3f04da['markerName']),_0x3e62d6=['ck-suggestion-marker',_0x10019c(_0x12f63c,_0x1503b1)];let _0x4daa7f=0xbb8;return this['activeMarkers']['includes'](_0x3f04da['markerName'])&&(_0x3e62d6['push']('ck-suggestion-marker--active'),_0x4daa7f=0xbc2),'deletion'==_0x12f63c&&(_0x4daa7f+=0x5),{'classes':_0x3e62d6,'attributes':{'data-suggestion':_0x1c3ce7,'data-author-id':_0x372bec},'priority':_0x4daa7f};}}),_0x521814['conversion']['for']('dataDowncast')['add'](_0x38e7b2=>{_0x38e7b2['on']('addMarker:suggestion',(_0xd2163f,_0x434c7a,_0x26d941)=>{if(!_0x26d941['options']['showSuggestionHighlights'])return;const _0xea7407=_0x434c7a['item'];if(!_0xea7407)return;const _0x493333=_0x26d941['mapper']['toViewElement'](_0xea7407);_0x521814['model']['schema']['isObject'](_0xea7407)&&_0x493333&&!_0x493333['getCustomProperty']('widget')&&_0x493333['is']('containerElement')&&_0x365e95(_0x493333,_0x26d941['writer']);},{'priority':'high'});}),_0x521814['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4eeb1f,_0x27472d)=>{if(!_0x27472d['options']['showSuggestionHighlights'])return null;const {type:_0x46b667,subType:_0x4de29e}=this['_splitMarkerName'](_0x4eeb1f['markerName']);return{'classes':['ck-suggestion-marker',_0x10019c(_0x46b667,_0x4de29e)],'priority':0xbb8};}});const _0x4dab1f=({showActiveMarkers:_0xc64993=!0x0,isAttributeSuggestion:_0x104935=!0x1}={})=>(_0x529503,_0x479fb5,_0x2f1471)=>{if(!_0x479fb5['item'])return;const {id:_0x3a7a41,authorId:_0x47f544}=this['_splitMarkerName'](_0x479fb5['markerName']);if(_0x104935){const _0x2f5abc=this['_suggestions']['get'](_0x3a7a41),_0x17f22f=this['_getAttributeKey'](_0x2f5abc);if(!this['_isBlockAttribute'](_0x17f22f))return;}if(_0x479fb5['item']['is']('selection'))return void _0x2f1471['consumable']['consume'](_0x479fb5['item'],_0x529503['name']);const _0x33d92e=_0x2f1471['mapper']['toViewElement'](_0x479fb5['item']);if(_0x479fb5['item']['is']('element')&&_0x521814['model']['schema']['isBlock'](_0x479fb5['item'])&&!_0x33d92e['getCustomProperty']('addHighlight')){_0x2f1471['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x33d92e),_0x2f1471['writer']['setAttribute']('data-suggestion',_0x3a7a41,_0x33d92e),_0x2f1471['writer']['setAttribute']('data-author-id',_0x47f544,_0x33d92e),_0x2f1471['mapper']['bindElementToMarker'](_0x33d92e,_0x479fb5['markerName']),_0xc64993&&(this['activeMarkers']['includes'](_0x479fb5['markerName'])?_0x2f1471['writer']['addClass']('ck-suggestion-marker--active',_0x33d92e):_0x2f1471['writer']['removeClass']('ck-suggestion-marker--active',_0x33d92e));for(const _0x152717 of _0x521814['model']['createRangeIn'](_0x479fb5['item'])['getItems']())_0x2f1471['consumable']['consume'](_0x152717,_0x529503['name']);_0x2f1471['consumable']['consume'](_0x479fb5['item'],_0x529503['name']);}};_0x521814['conversion']['for']('dataDowncast')['add'](_0x557ed5=>{_0x557ed5['on']('addMarker:suggestion:formatBlock',(_0xae2fc3,_0x1380ef,_0x18d68a)=>{_0x18d68a['options']['showSuggestionHighlights']&&_0x4dab1f({'showActiveMarkers':!0x1})(_0xae2fc3,_0x1380ef,_0x18d68a);},{'priority':'highest'});}),_0x521814['conversion']['for']('dataDowncast')['add'](_0x3c4151=>{_0x3c4151['on']('addMarker:suggestion:attribute',(_0x6e92d1,_0x5aa70f,_0x1b8cc9)=>{_0x1b8cc9['options']['showSuggestionHighlights']&&_0x4dab1f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x6e92d1,_0x5aa70f,_0x1b8cc9);},{'priority':'highest'});}),_0x521814['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4fe7ce,_0x5c2085)=>_0x5c2085['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4fe7ce['substr'](0xb)}}),_0x521814['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x41220f,{writer:_0x4f9eae})=>{let _0x5c625a='suggestion:'+_0x41220f['getAttribute']('suggestion-type')+':'+_0x41220f['getAttribute']('id');return _0x41220f['getAttribute']('marker-count')&&(_0x5c625a+=':'+_0x41220f['getAttribute']('marker-count')),_0x4f9eae['createElement']('$marker',{'data-name':_0x5c625a});}}),_0x521814['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x521814['conversion']['for']('editingDowncast')['add'](_0xd602ed=>{_0xd602ed['on']('addMarker:suggestion:formatBlock',_0x4dab1f(),{'priority':'high'});}),_0x521814['conversion']['for']('editingDowncast')['add'](_0x2f5bb0=>{_0x2f5bb0['on']('addMarker:suggestion:attribute',_0x4dab1f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x521814['conversion']['for']('editingDowncast')['add'](_0x1c11ea=>{_0x1c11ea['on']('removeMarker:suggestion:formatBlock',(_0x1647ac,_0x4fc6ec,_0x10d37e)=>{const _0x44d52b=_0x10d37e['mapper']['markerNameToElements'](_0x4fc6ec['markerName']);if(_0x44d52b){for(const _0x3fb4c1 of _0x44d52b)_0x3fb4c1['getCustomProperty']('addHighlight')||(_0x10d37e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3fb4c1),_0x10d37e['writer']['removeAttribute']('data-suggestion',_0x3fb4c1),_0x10d37e['writer']['removeAttribute']('data-author-id',_0x3fb4c1),_0x10d37e['mapper']['unbindElementFromMarkerName'](_0x3fb4c1,_0x4fc6ec['markerName']));}},{'priority':'high'});}),_0x521814['conversion']['for']('editingDowncast')['add'](_0x486248=>{_0x486248['on']('removeMarker:suggestion:attribute',(_0x585762,_0x588d21,_0x5c0654)=>{const _0x1c1708=_0x5c0654['mapper']['markerNameToElements'](_0x588d21['markerName']);if(!_0x1c1708)return;const {id:_0x2a412a}=this['_splitMarkerName'](_0x588d21['markerName']),_0x4dbddd=this['_suggestions']['get'](_0x2a412a),_0x16e948=this['_getAttributeKey'](_0x4dbddd);if(this['_isBlockAttribute'](_0x16e948)){for(const _0x50a2fb of _0x1c1708)_0x50a2fb['getCustomProperty']('addHighlight')||(_0x5c0654['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x50a2fb),_0x5c0654['writer']['removeAttribute']('data-suggestion',_0x50a2fb),_0x5c0654['writer']['removeAttribute']('data-author-id',_0x50a2fb),_0x5c0654['mapper']['unbindElementFromMarkerName'](_0x50a2fb,_0x588d21['markerName']));}},{'priority':'high'});}),_0x521814['model']['document']['registerPostFixer'](_0x5be28f=>{let _0x428ab8=!0x1;const _0xe0d833=Array['from'](_0x521814['model']['document']['differ']['getChangedMarkers']()),_0x17a1ea=new Set();for(const {name:_0x485e78,data:_0x339552}of _0xe0d833){const {group:_0x5e537d,type:_0x3b1170,subType:_0x811dd8,id:_0x1ae4c7}=this['_splitMarkerName'](_0x485e78);if('suggestion'!==_0x5e537d)continue;const _0xb45df9=this['_suggestions']['get'](_0x1ae4c7);if(null!=_0x339552['newRange']){'formatInline'==_0x3b1170&&(_0x428ab8=_0x428ab8||Ut(_0x339552['newRange'],_0x485e78,_0x5be28f,_0x521814['model']['schema']));const _0x61a873='attribute'==_0x3b1170&&this['_isBlockAttribute'](_0x811dd8['split']('|')[0x0]);if(_0x339552['newRange']['isCollapsed']||'$graveyard'==_0x339552['newRange']['root']['rootName']||'formatBlock'==_0x3b1170&&!Ft(_0x339552['newRange'])||_0x61a873&&!Ft(_0x339552['newRange'])||'deletion'==_0x3b1170&&!(!Vt(_0x528c53=_0x339552['newRange'])&&!function(_0x59b34a){return _0x59b34a['start']['parent']==_0x59b34a['end']['nodeBefore']&&_0x59b34a['start']['isAtEnd'];}(_0x528c53)))_0x5be28f['removeMarker'](_0x485e78),_0x428ab8=!0x0;else{if(!_0xb45df9||!_0xb45df9['isInContent'])continue;if(_0x339552['newRange']&&_0x339552['oldRange']&&_0x339552['newRange']['isEqual'](_0x339552['oldRange']))continue;_0x17a1ea['add'](_0xb45df9);}}}var _0x528c53;return _0x17a1ea['size']>0x0&&(_0x428ab8=!!this['_joinWithAdjacentSuggestions'](_0x17a1ea)||_0x428ab8),_0x428ab8;}),_0x521814['model']['document']['registerPostFixer'](_0x9826ee=>{let _0x5be6f4=!0x1;for(const _0x2123d4 of _0x521814['model']['document']['differ']['getChanges']())if('insert'==_0x2123d4['type'])for(const _0x51d14d of this['_suggestions']['values']()){if(_0x51d14d['isMultiRange']||!_0x51d14d['isInContent'])continue;const _0x2e0ca1='formatBlock'==_0x51d14d['type'],_0x5fc26c=this['_getAttributeKey'](_0x51d14d),_0x1a4539=_0x5fc26c&&this['_isBlockAttribute'](_0x5fc26c);if(!_0x2e0ca1&&!_0x1a4539)continue;const _0x274d14=_0x51d14d['getFirstRange']();if(_0x274d14['start']['parent']!=_0x274d14['end']['parent']&&!_0x274d14['end']['isAtEnd']){const _0x46304b=_0x521814['model']['createPositionAt'](_0x274d14['start']['nodeAfter'],'end'),_0x2b3b3e=_0x521814['model']['createRange'](_0x274d14['start'],_0x46304b);_0x9826ee['updateMarker'](_0x51d14d['getFirstMarker'](),{'range':_0x2b3b3e}),_0x5be6f4=!0x0;}}return _0x5be6f4;}),_0x521814['model']['document']['registerPostFixer'](_0x1eb0f4=>this['_processAttributeChanges'](_0x1eb0f4)),_0x521814['model']['document']['registerPostFixer'](_0x1f0135=>!_0x1f0135['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1f0135)),_0x521814['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x521814['model']['document']['on']('change:data',(_0x30f9e9,_0x2e8e72)=>{if(!_0x2e8e72['isLocal']||_0x2e8e72['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5dfd51=_0x521814['model']['document']['differ']['getChanges']();if(0x0==_0x5dfd51['length'])return;const _0x5be173=[],_0x4ccf6c=_0x5dfd51['filter'](_0x5f518e=>'attribute'==_0x5f518e['type']),_0x58800b=_0x5dfd51['filter'](_0x34cb6b=>'insert'==_0x34cb6b['type']&&'$text'!=_0x34cb6b['name']);for(const _0x4478c7 of _0x4ccf6c)this['_isRegisteredAttribute'](_0x4478c7['attributeKey'])&&_0x5be173['push']({'key':_0x4478c7['attributeKey'],'newValue':_0x4478c7['attributeNewValue'],'oldValue':_0x4478c7['attributeOldValue'],'range':Pt(_0x4478c7['range'],_0x521814['model'])});for(const _0x4d484e of _0x58800b){if('rename'!=_0x4d484e['action']&&'refresh'!=_0x4d484e['action'])continue;const _0x50697e=Lt(_0x4d484e['position']['nodeAfter'],_0x521814['model']),_0x41be90=_0x4d484e['before'];'rename'==_0x4d484e['action']&&_0x5be173['push']({'key':m,'newValue':_0x4d484e['name'],'oldValue':_0x41be90['name'],'range':_0x50697e});for(const [_0x35c61a,_0x4d9d1f]of _0x41be90['attributes']){if(!this['_isRegisteredAttribute'](_0x35c61a))continue;const _0x31db42=_0x4d484e['attributes']['get'](_0x35c61a);_0x4d9d1f!==_0x31db42&&_0x5be173['push']({'key':_0x35c61a,'newValue':_0x31db42,'oldValue':_0x4d9d1f,'range':_0x50697e});}for(const [_0x530403,_0x57b98d]of _0x4d484e['attributes'])this['_isRegisteredAttribute'](_0x530403)&&(_0x41be90['attributes']['has'](_0x530403)||_0x5be173['push']({'key':_0x530403,'newValue':_0x57b98d,'oldValue':null,'range':_0x50697e}));}0x0!=_0x5be173['length']&&_0x521814['model']['enqueueChange'](_0x2e8e72,_0x3dcf7a=>{const _0x84111d=_0x429a07();for(const {range:_0x2428b5,key:_0x29fcaf,oldValue:_0x22d248,newValue:_0x451d02}of _0x5be173)this['markAttributeChange'](_0x2428b5,_0x29fcaf,_0x22d248,_0x451d02,{'groupId':_0x84111d});this['_reduceExistingSuggestions'](_0x3dcf7a,_0x5be173);});},{'priority':'lowest'}),_0x521814['model']['markers']['on']('update:suggestion',(_0x57d98b,_0x8ff90f,_0xa99c5a)=>{if(null==_0xa99c5a){const {id:_0x2ba7f9}=this['_splitMarkerName'](_0x8ff90f['name']),_0x3f4a18=this['_suggestions']['get'](_0x2ba7f9);_0x3f4a18&&_0x3f4a18['addMarkerName'](_0x8ff90f['name']);}}),_0x521814['model']['document']['on']('change:data',()=>{const _0x5f113f=Array['from'](_0x521814['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1735ed=>'suggestion'===this['_splitMarkerName'](_0x1735ed['name'])['group']);if(0x0===_0x5f113f['length'])return;_0x5f113f['sort']((_0x46af5a,_0x3d1845)=>{const _0x2e3c1d=_0x46af5a['data']['oldRange'],_0x214449=_0x3d1845['data']['oldRange'];return null===_0x2e3c1d&&null===_0x214449?0x0:null===_0x2e3c1d&&null!==_0x214449?-0x1:null!==_0x2e3c1d&&null===_0x214449?0x1:_0x2e3c1d['start']['isBefore'](_0x214449['start'])?-0x1:0x1;});const _0x20e3aa=new Set(),_0x16d513=new Set();for(const {name:_0x5f4a55,data:_0x5ac179}of _0x5f113f){const {id:_0x53a2dd}=this['_splitMarkerName'](_0x5f4a55);if(null===_0x5ac179['oldRange']){const _0x4b6c59=this['_handleNewSuggestionMarker'](_0x5f4a55);_0x16d513['add'](_0x4b6c59);}else{const _0x5246a6=this['_suggestions']['get'](_0x53a2dd);null!==_0x5ac179['newRange']||_0x5246a6['isInContent']?(_0x20e3aa['add'](_0x5246a6['head']),_0x16d513['add'](_0x5246a6)):this['_removeSuggestion'](_0x5246a6);}}_0x16d513['size']>0x0&&this['_refreshSuggestionsChain'](_0x16d513);for(const _0x2cc85d of _0x20e3aa)this['fire']('suggestionChanged',_0x2cc85d);}),_0x521814['model']['on']('applyOperation',(_0x1f9bff,_0x5bc339)=>{const _0x342d23=_0x5bc339[0x0];if(!this['_suggestions']['size'])return;if(!_0x342d23['isDocumentOperation'])return;if(_0x342d23['batch']['isUndo']||!_0x342d23['batch']['isLocal'])return;let _0x29261d,_0x376ff4;switch(_0x342d23['type']){case'insert':_0x29261d=_0x521814['model']['createPositionAt'](_0x342d23['position']),_0x376ff4=_0x29261d['getShiftedBy'](_0x342d23['howMany']);break;case'split':_0x29261d=_0x521814['model']['createPositionAt'](_0x342d23['splitPosition']),_0x376ff4=_0x521814['model']['createPositionAt'](_0x342d23['moveTargetPosition']);break;case'move':_0x29261d=_0x521814['model']['createPositionAt'](_0x342d23['targetPosition']),_0x376ff4=_0x29261d['getShiftedBy'](_0x342d23['howMany']);break;default:return;}const _0x576f18=_0x521814['model']['createRange'](_0x29261d,_0x376ff4);_0x521814['model']['change'](()=>{for(const {suggestion:_0x5d1e5a,meta:_0x59da18}of this['_findSuggestions'](_0x576f18)){if(_0x5d1e5a['isMultiRange'])continue;if('formatInline'==_0x5d1e5a['type'])continue;const _0x3493d1=this['_getAttributeKey'](_0x5d1e5a);if(_0x3493d1&&this['_isBlockAttribute'](_0x3493d1)&&'split'!=_0x342d23['type'])continue;const _0x49f081=_0x5d1e5a['data']&&_0x5d1e5a['data']['multipleBlocks'];('formatBlock'!=_0x5d1e5a['type']||'split'==_0x342d23['type']&&!_0x49f081)&&(_0x59da18['containsRangeInObject']||'insertion'==_0x5d1e5a['type']&&_0x59da18['isOwn']||_0x5d1e5a['getFirstRange']()['containsRange'](_0x576f18)&&this['_breakSuggestionMarker'](_0x5d1e5a,_0x29261d,_0x376ff4));}});},{'priority':'lowest'}),_0x521814['model']['on']('deleteContent',(_0x5960a0,_0x54695b)=>{const _0x287202=_0x54695b[0x0],_0xe9f951=_0x54695b[0x1];if(_0xe9f951&&_0xe9f951['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x287202['isCollapsed'])return;const _0x77c6e=_0x521814['model']['schema'],{start:_0x574d57,end:_0x260856}=_0x287202['getFirstRange'](),_0x1625bf=_0x574d57['nodeAfter']&&_0x77c6e['isLimit'](_0x574d57['nodeAfter'])?null:_0x77c6e['getNearestSelectionRange'](_0x574d57,'forward'),_0x2a1224=_0x260856['nodeBefore']&&_0x77c6e['isLimit'](_0x260856['nodeBefore'])?null:_0x77c6e['getNearestSelectionRange'](_0x260856,'backward'),_0x163571=_0x521814['model']['createRange'](_0x1625bf?_0x1625bf['start']:_0x574d57,_0x2a1224?_0x2a1224['end']:_0x260856);_0x521814['model']['change'](_0x57febf=>{this['markDeletion'](_0x163571);const _0x551ff5=_0x521814['model']['schema']['getNearestSelectionRange'](_0x163571['start']);_0x287202['is']('documentSelection')?_0x57febf['setSelection'](_0x551ff5):_0x287202['setTo'](_0x551ff5);}),_0x5960a0['stop']();},{'priority':_0x1f1c0f['normal']+0xa}),_0x521814['model']['on']('insertContent',(_0x386d16,_0x5b4c2c)=>{const _0x48ccef=_0x5b4c2c[_0x5b4c2c['length']-0x1];_0x48ccef&&_0x48ccef['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x521814['model']['change'](()=>{let _0x54db32=_0x521814['model']['insertContent'](_0x5b4c2c[0x0],_0x5b4c2c[0x1],_0x5b4c2c[0x2],{'forceDefaultExecution':!0x0});if(!_0x54db32)return;_0x386d16['return']=_0x54db32['clone']();const _0x1a3069=_0x54db32['end']['nodeBefore'],_0x2bb7ba=_0x521814['model']['schema'];_0x1a3069&&_0x2bb7ba['isBlock'](_0x1a3069)&&!_0x2bb7ba['isObject'](_0x1a3069)&&(_0x54db32=_0x521814['model']['createRange'](_0x54db32['start'],_0x521814['model']['createPositionAt'](_0x1a3069,'end'))),this['markInsertion'](_0x54db32);}),_0x386d16['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x7d4c61=new x(_0x521814,this['_suggestions']);_0x521814['commands']['add']('acceptSuggestion',_0x7d4c61),this['enableCommand']('acceptSuggestion');const _0x52ee84=new R(_0x521814,this['_suggestions']);_0x521814['commands']['add']('discardSuggestion',_0x52ee84),this['enableCommand']('discardSuggestion'),_0x521814['commands']['add']('acceptAllSuggestions',new E(_0x521814,_0x7d4c61,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x521814['commands']['add']('discardAllSuggestions',new E(_0x521814,_0x52ee84,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x521814['commands']['add']('acceptSelectedSuggestions',new O(_0x521814,_0x7d4c61,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x521814['commands']['add']('discardSelectedSuggestions',new O(_0x521814,_0x52ee84,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1b0499=_0x521814['plugins']['get']('CommentsRepository');this['listenTo'](_0x1b0499,'addComment',(_0x5d51a0,{threadId:_0x15f11d})=>{const _0x50137c=this['_suggestions']['get'](_0x15f11d);_0x50137c&&_0x50137c['commentThread']&&0x1===_0x50137c['commentThread']['length']&&this['_updateSuggestionData'](_0x15f11d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1b0499,'removeComment',(_0x22cbf6,{threadId:_0x40cb7c})=>{const _0x214c61=this['_suggestions']['get'](_0x40cb7c);_0x214c61&&_0x214c61['commentThread']&&!_0x214c61['commentThread']['length']&&this['_updateSuggestionData'](_0x40cb7c,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x41e137){if(this['_adapter'])throw new _0x4a7393('track-changes-adapter-already-set',this);this['_adapter']=_0x41e137;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x28d1c4=!0x1,toJSON:_0x5badc1=!0x1}={}){const _0x2fbcbb=[];for(const _0x14db72 of this['_suggestions']['values']())_0x28d1c4&&!_0x14db72['isInContent']||_0x2fbcbb['push'](_0x14db72);return _0x5badc1?_0x2fbcbb['map'](_0x502d5e=>_0x502d5e['toJSON']()):_0x2fbcbb;}['getSuggestion'](_0x418143){const _0x1bd2d9=this['_suggestions']['get'](_0x418143);if(!_0x1bd2d9)throw new _0x4a7393('track-changes-suggestion-not-found',this);return _0x1bd2d9;}['hasSuggestion'](_0x16604f){return this['_suggestions']['has'](_0x16604f);}['addSuggestionData'](_0x42be90){const {authorId:_0x167b3c,id:_0x55cdbb,attributes:_0x483c06}=_0x42be90,[_0x204188,_0x2ea56e]=_0x42be90['type']['split'](':'),_0x4e597d=this['_suggestions']['get'](_0x55cdbb)||this['_createSuggestion'](_0x204188,_0x2ea56e,_0x55cdbb,_0x167b3c,_0x483c06);if(this['_addThreadToSuggestion'](_0x4e597d),this['_checkSuggestionCorrectness'](_0x4e597d,_0x204188,_0x2ea56e||null,_0x167b3c),_0x4e597d['createdAt']=_0x42be90['createdAt'],_0x4e597d['_isDataLoaded']=!0x0,_0x483c06&&_0x483c06['@external']){const _0x156581=_0x483c06['@external'],_0x40927b=this['_getExternalAuthor'](_0x156581['authorName']);_0x4e597d['authoredAt']=_0x156581['createdAt'],_0x4e597d['author']=_0x40927b,_0x4e597d['isExternal']=!0x0;}else _0x4e597d['authoredAt']=_0x42be90['createdAt'];switch(_0x42be90['data']&&(_0x4e597d['data']=_0x42be90['data']),_0x42be90['attributes']&&(_0x4e597d['attributes']=_0x42be90['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4e597d['_saved']=!0x0),this['_suggestionState']['get'](_0x4e597d)){case'notReady':this['_suggestionState']['set'](_0x4e597d,'dataReady');break;case'markerReady':_0x4e597d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4e597d])),this['_refreshSuggestionsChain'](new Set([_0x4e597d])),this['_suggestionState']['set'](_0x4e597d,'ready'),this['fire']('suggestionLoaded',_0x4e597d)):this['_suggestionState']['set'](_0x4e597d,'removed');}return _0x4e597d;}['acceptSuggestion'](_0x5b2b76){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e5047 of _0x5b2b76['getAllAdjacentSuggestions']())_0x4e5047['accept']();});});}['discardSuggestion'](_0x43fd8b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x14a0d3 of _0x43fd8b['getAllAdjacentSuggestions']())_0x14a0d3['discard']();});});}['enableCommand'](_0x4aa024,_0x475738){const _0x291fd0=this['editor']['commands']['get'](_0x4aa024);if(!_0x291fd0)throw new _0x4a7393('track-changes-command-not-found',this,{'commandName':_0x4aa024});if(this['_enabledCommands']['has'](_0x291fd0))throw new _0x4a7393('track-changes-enable-command-twice',this,{'commandName':_0x4aa024});this['_enabledCommands']['add'](_0x291fd0),_0x475738&&_0x291fd0['on']('execute',(_0x2c3a3b,_0x545567)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x545567['length']>0x0&&_0x545567[_0x545567['length']-0x1]&&_0x545567[_0x545567['length']-0x1]['forceDefaultExecution']?_0x545567['pop']():(_0x2c3a3b['return']=_0x475738((..._0x2ecf27)=>_0x291fd0['execute'](..._0x2ecf27,{'forceDefaultExecution':!0x0}),..._0x545567),_0x2c3a3b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x163713){let _0x16f493,_0x53c05e;const _0x51666d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x16f493=_0x163713();}catch(_0x2708e6){_0x53c05e=_0x2708e6;}return _0x51666d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x53c05e&&_0x4a7393['rethrowUnexpectedError'](_0x53c05e,this),_0x16f493;}['markInsertion'](_0x484ebe,_0xcfaae4=null,_0x3c80d5={}){if(_0x484ebe['isCollapsed'])return null;const _0x14df64=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x74032b,meta:_0x22744f}of this['_findSuggestions'](_0x484ebe,'insertion'))if(_0x22744f['isOwn']){if(!_0x22744f['isNextTo']){if(_0x22744f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x74032b,_0x3c80d5))continue;return _0x74032b;}if(qt(_0x74032b,_0x3c80d5))return _0x74032b;this['_breakSuggestionMarker'](_0x74032b,_0x484ebe['start'],_0x484ebe['end']);break;}if(_0xcfaae4==_0x74032b['subType']&&qt(_0x74032b,_0x3c80d5)){const _0x1eab01=_0x74032b['getFirstRange']();return _0x1eab01['start']['isEqual'](_0x484ebe['end'])?this['_setSuggestionRange'](_0x74032b,this['_model']['createRange'](_0x484ebe['start'],_0x1eab01['end'])):this['_setSuggestionRange'](_0x74032b,this['_model']['createRange'](_0x1eab01['start'],_0x484ebe['end'])),_0x74032b;}}const _0x3834b6=_0x429a07(),_0x365f76=_0x14df64['id'],_0x4a4d70=_0xcfaae4?'insertion:'+_0xcfaae4:'insertion',_0xd7de45=this['_setSuggestionData']({'id':_0x3834b6,'type':_0x4a4d70,'createdAt':new Date(),'authorId':_0x365f76,'attributes':_0x3c80d5});return this['_addSuggestionMarker'](_0x4a4d70,_0x3834b6,_0x365f76,_0x484ebe),_0xd7de45;}['markMultiRangeInsertion'](_0x517f7a,_0xa0fdf1='multi',_0x5c384a={}){const _0x474776=this['editor']['plugins']['get']('Users')['me'],_0x29560f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xa0fdf1,'join');for(const _0xbeaadd of this['getSuggestions']())if(_0xbeaadd['author']['id']==_0x474776['id']&&'insertion'==_0xbeaadd['type']&&_0xbeaadd['subType']==_0xa0fdf1&&qt(_0xbeaadd,_0x5c384a)&&(_0x29560f(_0xbeaadd['getRanges'](),_0x517f7a)||_0x29560f(_0x517f7a,_0xbeaadd['getRanges']()))){for(const _0x15de14 of _0x517f7a)_0xbeaadd['addRange'](_0x15de14);return _0xbeaadd;}for(const {suggestion:_0x5d3ba1,meta:_0x381cd7}of this['_findSuggestions'](_0x517f7a,'insertion')){if(!_0x381cd7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x381cd7['containsRangeInObject'])continue;if(!qt(_0x5d3ba1,_0x5c384a))continue;let _0x5e32de=!0x0;for(const _0x33a25e of _0x5d3ba1['getRanges']())for(const _0x62f1c3 of _0x517f7a)if(!_0x33a25e['containsRange'](_0x62f1c3)){_0x5e32de=!0x1;break;}if(_0x5e32de)return _0x5d3ba1;}const _0x2e85f7=_0x429a07(),_0x1cbffd=_0x474776['id'],_0xe490c8='insertion:'+_0xa0fdf1,_0x33adc3=this['_setSuggestionData']({'id':_0x2e85f7,'type':_0xe490c8,'createdAt':new Date(),'authorId':_0x1cbffd,'attributes':_0x5c384a});for(const _0x2de6d6 of _0x517f7a)this['_addSuggestionMarker'](_0xe490c8,_0x2e85f7,_0x1cbffd,_0x2de6d6,u['getMultiRangeId']());return _0x33adc3;}['markInlineFormat'](_0x4f6ca7,_0x10d0da,_0x460258=null,_0xa7ac8d={}){if(_0x460258=_0x460258||Gt(_0x10d0da),_0x4f6ca7['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x545443=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x460258,'accept');return this['forceDefaultExecution'](()=>_0x545443([_0x4f6ca7],_0x10d0da,_0xa7ac8d)),null;}const _0x55eafc=this['editor']['plugins']['get']('Users')['me'],_0x2a2232=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x304867,meta:_0x59eedf}of this['_findSuggestions'](_0x4f6ca7,'insertion'))_0x59eedf['isOwn']&&!_0x59eedf['isInsideObject']&&_0x2a2232['push'](..._0x304867['getRanges']());}const _0x1cccad=function(_0x547843,_0x4568ea){const _0x2217d1=[];for(const _0x47267c of _0x4568ea){const _0x42b11a=_0x547843['getIntersection'](_0x47267c);_0x42b11a&&_0x2217d1['push'](_0x42b11a);}return _0x2217d1;}(_0x4f6ca7,_0x2a2232),_0x29fff5=function(_0x1ac802,_0x5f1580){const _0x27a8f0=[_0x1ac802];for(const _0x1bbf8b of _0x5f1580){let _0x59803b=0x0;for(;_0x59803b<_0x27a8f0['length'];){const _0x242340=_0x27a8f0[_0x59803b]['getDifference'](_0x1bbf8b);_0x27a8f0['splice'](_0x59803b,0x1,..._0x242340),_0x59803b+=_0x242340['length'];}}return _0x27a8f0;}(_0x4f6ca7,_0x2a2232);_0x1cccad['length']&&this['_model']['change'](()=>{for(const _0x4905c8 of _0x1cccad){const _0x4619ad=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x460258,'accept');this['forceDefaultExecution'](()=>_0x4619ad([_0x4905c8],_0x10d0da,_0xa7ac8d));}});for(const _0x456134 of _0x29fff5){let _0x446321=null,_0x5ba40a=_0x456134['start'],_0x5cdbf9=_0x456134['end'];for(const {suggestion:_0x5d823e,meta:_0x2863e2}of this['_findSuggestions'](_0x456134,'formatInline')){if(!_0x2863e2['isOwn'])continue;if(_0x5d823e['subType']!=_0x460258)continue;if(!qt(_0x5d823e,_0xa7ac8d))continue;const _0x514c7a=_0x5d823e['getFirstRange']();if(_0x514c7a['containsRange'](_0x456134,!0x0))return null;_0x5ba40a=_0x5ba40a['isBefore'](_0x514c7a['start'])?_0x5ba40a:_0x514c7a['start'],_0x5cdbf9=_0x5cdbf9['isAfter'](_0x514c7a['end'])?_0x5cdbf9:_0x514c7a['end'],_0x446321?_0x514c7a['start']['isBefore'](_0x446321['getFirstRange']()['start'])?(_0x446321['removeMarkers'](),_0x446321=_0x5d823e):_0x5d823e['removeMarkers']():_0x446321=_0x5d823e;}const _0x221ed3=this['_model']['createRange'](_0x5ba40a,_0x5cdbf9);if(_0x446321)this['_setSuggestionRange'](_0x446321,_0x221ed3);else{const _0x5e7b5e=_0x429a07(),_0x4334c4=_0x55eafc['id'];this['_setSuggestionData']({'id':_0x5e7b5e,'type':'formatInline:'+_0x460258,'data':_0x10d0da,'createdAt':new Date(),'authorId':_0x4334c4,'attributes':_0xa7ac8d}),this['_addSuggestionMarker']('formatInline:'+_0x460258,_0x5e7b5e,_0x4334c4,_0x221ed3);}}return null;}['markBlockFormat'](_0xd9d56c,_0x4b4dfd,_0x54d971=[],_0x380ad8=null,_0x36ffb9={}){_0x4b4dfd['formatGroupId']||(_0x4b4dfd['formatGroupId']=_0x4b4dfd['commandName']),_0x4b4dfd['multipleBlocks']=_0xd9d56c['is']('range'),_0x380ad8=_0x380ad8||Gt(_0x4b4dfd);const _0xdb8fa4=_0x54d971['map'](_0x8c1afc=>Lt(_0x8c1afc,this['_model'])),_0x2f424e=_0xd9d56c['is']('range')?_0xd9d56c:Lt(_0xd9d56c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x595aa1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x380ad8,'accept');return this['forceDefaultExecution'](()=>_0x595aa1([_0x2f424e],_0x4b4dfd,_0x36ffb9)),null;}_0xdb8fa4['push'](_0x2f424e);let _0x2a4ea2=!0x0;for(const _0x34551a of _0xdb8fa4)if(!this['_rangeIsInLocalUserInsertion'](_0x34551a)){_0x2a4ea2=!0x1;break;}if(_0x2a4ea2&&'always'!==this['_trackFormatChanges']){const _0xb2fa4d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x380ad8,'accept');return this['forceDefaultExecution'](()=>_0xb2fa4d([_0x2f424e],_0x4b4dfd,_0x36ffb9)),null;}let _0x1fe140=null,_0x302924=_0x2f424e['start'],_0x5bb583=_0x2f424e['end'];for(const {suggestion:_0x4e5636,meta:_0x31d0af}of this['_findSuggestions'](_0x2f424e,'formatBlock')){if(!_0x31d0af['isOwn'])continue;if(_0x31d0af['isNextTo']||_0x31d0af['containsRangeInObject']||_0x31d0af['isInsideObject'])continue;if(_0x4e5636['data']['formatGroupId']!=_0x4b4dfd['formatGroupId'])continue;if(!qt(_0x4e5636,_0x36ffb9))continue;const _0x244054=_0x4e5636['getFirstRange']();if(_0x4e5636['subType']==_0x380ad8){if(_0x244054['containsRange'](_0x2f424e,!0x0))return null;_0x302924=_0x302924['isBefore'](_0x244054['start'])?_0x302924:_0x244054['start'],_0x5bb583=_0x5bb583['isAfter'](_0x244054['end'])?_0x5bb583:_0x244054['end'],_0x1fe140?_0x244054['start']['isBefore'](_0x1fe140['getFirstRange']()['start'])?(_0x1fe140['removeMarkers'](),_0x1fe140=_0x4e5636):_0x4e5636['removeMarkers']():_0x1fe140=_0x4e5636;}else{const _0x3a32bd=_0x2f424e['getIntersection'](_0x244054);this['_cutOutSuggestionMarker'](_0x4e5636,_0x3a32bd);}}const _0x4a7b9f=this['editor']['plugins']['get']('Users')['me'],_0x2b5f43=_0x429a07(),_0x2b390e=_0x4a7b9f['id'];if(_0x1fe140)return this['_setSuggestionRange'](_0x1fe140,this['_model']['createRange'](_0x302924,_0x5bb583)),_0x1fe140;{const _0x3bf47a=this['_setSuggestionData']({'id':_0x2b5f43,'type':'formatBlock:'+_0x380ad8,'data':_0x4b4dfd,'createdAt':new Date(),'authorId':_0x2b390e,'attributes':_0x36ffb9});return this['_addSuggestionMarker']('formatBlock:'+_0x380ad8,_0x2b5f43,_0x2b390e,this['_model']['createRange'](_0x302924,_0x5bb583)),_0x3bf47a;}}['markMultiRangeBlockFormat'](_0x28a140,_0x5829c5,_0x591509=[],_0x17630f=null,_0x59ff98={}){_0x5829c5['formatGroupId']||(_0x5829c5['formatGroupId']=_0x5829c5['commandName']);const _0x302a25=_0x28a140[0x0];_0x5829c5['multipleBlocks']=_0x302a25['is']('range'),_0x17630f=_0x17630f||Gt(_0x5829c5);const _0x884013=_0x591509['map'](_0x5581c0=>Lt(_0x5581c0,this['_model'])),_0x435527=_0x302a25['is']('range')?_0x28a140:_0x28a140['map'](_0x1ae339=>Lt(_0x1ae339,this['_model']));if('never'===this['_trackFormatChanges']){const _0x23c2bd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17630f,'accept');return this['forceDefaultExecution'](()=>_0x23c2bd(_0x435527,_0x5829c5,_0x59ff98)),null;}_0x884013['push'](..._0x435527);let _0x286af2=!0x0;for(const _0x2c656e of _0x884013)if(!this['_rangeIsInLocalUserInsertion'](_0x2c656e)){_0x286af2=!0x1;break;}if(_0x286af2&&'always'!==this['_trackFormatChanges']){const _0x3fe777=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17630f,'accept');return this['forceDefaultExecution'](()=>_0x3fe777(_0x435527,_0x5829c5,_0x59ff98)),null;}const _0x2bc02e=this['editor']['plugins']['get']('Users')['me'];for(const _0x23d889 of this['getSuggestions']()){if(_0x23d889['author']['id']!=_0x2bc02e['id'])continue;if('formatBlock'!=_0x23d889['type']||_0x23d889['data']['formatGroupId']!=_0x5829c5['formatGroupId'])continue;if(!qt(_0x23d889,_0x59ff98))continue;const _0x1e2789=_0x23d889['subType']==_0x17630f;for(let _0x5750c9=0x0;_0x5750c9<_0x435527['length'];_0x5750c9++){const _0x210b5d=_0x435527[_0x5750c9];for(const _0x5dc052 of _0x23d889['getMarkers']()){const _0x1fc492=_0x5dc052['getRange']();if(_0x210b5d['isEqual'](_0x1fc492)){_0x1e2789?(_0x435527['splice'](_0x5750c9,0x1),_0x5750c9--):_0x23d889['removeMarker'](_0x5dc052['name']);break;}}}}if(0x0==_0x435527['length'])return null;const _0x1fff94=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17630f,'join');for(const _0xbb6a3f of this['getSuggestions']())if(_0xbb6a3f['author']['id']==_0x2bc02e['id']&&'formatBlock'==_0xbb6a3f['type']&&_0xbb6a3f['data']['formatGroupId']==_0x5829c5['formatGroupId']&&_0xbb6a3f['subType']==_0x17630f&&qt(_0xbb6a3f,_0x59ff98)&&(_0x1fff94(_0xbb6a3f['getRanges'](),_0x435527)||_0x1fff94(_0x435527,_0xbb6a3f['getRanges']()))){for(const _0x3afb87 of _0x435527)_0xbb6a3f['addRange'](_0x3afb87);return _0xbb6a3f;}const _0x3bf25d=_0x429a07(),_0x18d912=_0x2bc02e['id'],_0x374909='formatBlock:'+_0x17630f,_0x5a7cd9=this['_setSuggestionData']({'id':_0x3bf25d,'type':_0x374909,'data':_0x5829c5,'createdAt':new Date(),'authorId':_0x18d912,'attributes':_0x59ff98});for(const _0x3da4fd of _0x435527)this['_addSuggestionMarker'](_0x374909,_0x3bf25d,_0x18d912,_0x3da4fd,u['getMultiRangeId']());return _0x5a7cd9;}['markDeletion'](_0x106007,_0x51b67a=null,_0x4ce667={}){if(_0x106007['isCollapsed'])return null;const _0x19be97=this['editor']['plugins']['get']('Users')['me'],_0x1454e1=new _0x31c9bf(_0x106007['start'],_0x106007['end']);for(const {suggestion:_0xb930a2,meta:_0x1601a9}of this['_findSuggestions'](_0x1454e1,'insertion'))if(_0x1601a9['isOwn']&&!_0x1601a9['isNextTo']){if(_0xb930a2['isMultiRange']){const _0x1d01da=_0xb930a2['getRanges']()['filter'](_0x25e2b8=>'$graveyard'!=_0x25e2b8['root']['rootName']);_0x1d01da['every'](_0x2ee55e=>_0x1454e1['containsRange'](_0x2ee55e,!0x0))&&_0xb930a2['discard']();if(_0x1d01da['some'](_0x2625eb=>_0x2625eb['containsRange'](_0x1454e1,!0x0))){const _0x277555=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x51b67a,'accept');return this['forceDefaultExecution'](()=>_0x277555([_0x1454e1],null,_0x4ce667)),null;}}else{const _0x251d5a=_0x1454e1['getIntersection'](_0xb930a2['getFirstRange']());null!==_0x251d5a&&_0xb930a2['_onDiscard']([_0x251d5a],null,_0x4ce667);}}if(_0x1454e1['detach'](),_0x1454e1['isCollapsed']||'$graveyard'==_0x1454e1['root']['rootName'])return null;let _0xf78906=null,_0x2f7df7=_0x1454e1['start'],_0x3f307c=_0x1454e1['end'];const _0x398984=this['_findSuggestions'](_0x1454e1,'deletion');for(const {suggestion:_0x395af0,meta:_0x42d6ad}of _0x398984){const _0x518b7b=this['_model']['createRange'](_0x2f7df7,_0x3f307c);if(_0x42d6ad['isOwn']&&(this['_mergeNestedSuggestions']||!_0x42d6ad['containsRangeInObject']&&!_0x42d6ad['isInsideObject'])){if(_0x395af0['isMultiRange']){if(!qt(_0x395af0,_0x4ce667))continue;let _0x26238d=!0x0;for(const _0xd54ea5 of _0x395af0['getRanges']()){if(_0xd54ea5['containsRange'](_0x518b7b,!0x0))return _0x395af0;_0x518b7b['containsRange'](_0xd54ea5)||(_0x26238d=!0x1);}_0x26238d&&_0x395af0['discard']();}else{const _0x69108e=_0x395af0['getFirstRange']();if(_0x69108e['containsRange'](_0x518b7b,!0x0))return _0x395af0;if(!qt(_0x395af0,_0x4ce667)){_0x518b7b['containsRange'](_0x69108e)?_0x395af0['removeMarkers']():_0x69108e['containsPosition'](_0x2f7df7)?_0x2f7df7=_0x69108e['end']:_0x69108e['containsPosition'](_0x3f307c)&&(_0x3f307c=_0x69108e['start']);continue;}_0x2f7df7=_0x2f7df7['isBefore'](_0x69108e['start'])?_0x2f7df7:_0x69108e['start'],_0x3f307c=_0x3f307c['isAfter'](_0x69108e['end'])?_0x3f307c:_0x69108e['end'],_0x4ce667=Object['assign']({},_0x395af0['attributes']),_0xf78906?_0x69108e['start']['isBefore'](_0xf78906['getFirstRange']()['start'])?(_0xf78906['removeMarkers'](),_0xf78906=_0x395af0):_0x395af0['removeMarkers']():_0xf78906=_0x395af0;}}}if(_0xf78906)return this['_setSuggestionRange'](_0xf78906,this['_model']['createRange'](_0x2f7df7,_0x3f307c)),_0xf78906;{const _0x544c61=_0x429a07(),_0x1c4957=this['_model']['createRange'](_0x2f7df7,_0x3f307c),_0xa578a1=_0x19be97['id'],_0x252f56=_0x51b67a?'deletion:'+_0x51b67a:'deletion',_0xa39181=this['_setSuggestionData']({'id':_0x544c61,'type':_0x252f56,'createdAt':new Date(),'authorId':_0xa578a1,'attributes':_0x4ce667});return this['_addSuggestionMarker'](_0x252f56,_0x544c61,_0xa578a1,_0x1c4957),_0xa39181;}}['markMultiRangeDeletion'](_0x33d895,_0x107976='multi',_0x259f43={}){const _0xde45e8=this['editor']['plugins']['get']('Users')['me'],_0x4cdca5=_0x33d895['map'](_0x519d88=>new _0x31c9bf(_0x519d88['start'],_0x519d88['end'])),_0x3c2bfc=new Set();for(const {suggestion:_0x164418,meta:_0x8ea43f}of this['_findSuggestions'](_0x4cdca5,'insertion'))_0x8ea43f['isOwn']&&!_0x8ea43f['isNextTo']&&_0x3c2bfc['add'](_0x164418);for(const _0x5a42ba of _0x3c2bfc)if(_0x5a42ba['isMultiRange']){const _0x2f380b=_0x5a42ba['getRanges']();(!_0x5a42ba['attributes']||!_0x5a42ba['attributes']['skipNestingCheck'])&&(_0x2f380b['every'](_0x4076ce=>_0x4cdca5['some'](_0x4a602d=>_0x4a602d['containsRange'](_0x4076ce,!0x0)))&&_0x5a42ba['discard']());if(_0x4cdca5['every'](_0x445d41=>_0x2f380b['some'](_0xa52ab9=>_0xa52ab9['containsRange'](_0x445d41,!0x0)))){const _0x5b3a2f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x107976,'accept');return this['forceDefaultExecution'](()=>_0x5b3a2f(_0x33d895,null,_0x259f43)),null;}}else{const _0x4e3fd0=_0x5a42ba['getFirstRange']();_0x4cdca5['some'](_0x27dde7=>_0x27dde7['containsRange'](_0x4e3fd0,!0x0))&&_0x5a42ba['discard']();if(_0x4cdca5['every'](_0x3b2983=>_0x4e3fd0['containsRange'](_0x3b2983,!0x0))){const _0x28e7ec=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x107976,'accept');return this['forceDefaultExecution'](()=>_0x28e7ec(_0x4cdca5,null,_0x259f43)),null;}}const _0x577f74=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x107976,'join');let _0x5ca059=null;for(const _0x5c9091 of this['getSuggestions']())if(_0x5c9091['author']['id']==_0xde45e8['id']&&_0x5c9091['isInContent']&&'deletion'==_0x5c9091['type']&&_0x5c9091['subType']==_0x107976&&qt(_0x5c9091,_0x259f43)&&(_0x577f74(_0x5c9091['getRanges'](),_0x4cdca5)||_0x577f74(_0x4cdca5,_0x5c9091['getRanges']()))){if(_0x5ca059){if(_0x5c9091['commentThread']&&_0x5c9091['commentThread']['length'])continue;for(const _0x4e9389 of _0x5c9091['getRanges']())_0x5ca059['isIntersectingWithRange'](_0x4e9389)||_0x5ca059['addRange'](_0x4e9389);_0x5c9091['removeMarkers']();}else{_0x5ca059=_0x5c9091;for(const _0x2318dd of _0x4cdca5)_0x5c9091['isIntersectingWithRange'](_0x2318dd)||_0x5c9091['addRange'](_0x2318dd);}}if(_0x5ca059)return _0x5ca059;_0x3c2bfc['clear']();for(const {suggestion:_0x49d670,meta:_0x15257e}of this['_findSuggestions'](_0x4cdca5,'deletion'))_0x15257e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15257e['containsRangeInObject']&&!_0x15257e['isInsideObject'])&&qt(_0x49d670,_0x259f43)&&_0x3c2bfc['add'](_0x49d670);for(const _0x3b917b of _0x3c2bfc){const _0x174685=_0x3b917b['getRanges']();if(!_0x259f43||!_0x259f43['skipNestingCheck']){if(_0x4cdca5['every'](_0xa98462=>_0x174685['some'](_0x13d6a9=>_0x13d6a9['containsRange'](_0xa98462,!0x0))))return _0x3b917b;}(!_0x3b917b['attributes']||!_0x3b917b['attributes']['skipNestingCheck'])&&(_0x174685['every'](_0x122208=>_0x4cdca5['some'](_0x2a4a63=>_0x2a4a63['containsRange'](_0x122208,!0x0)))&&_0x3b917b['discard']());}const _0x22baa8=_0x429a07(),_0x2cea8e=_0xde45e8['id'],_0x21f4da='deletion:'+_0x107976,_0x210933=this['_setSuggestionData']({'id':_0x22baa8,'type':_0x21f4da,'createdAt':new Date(),'authorId':_0x2cea8e,'attributes':_0x259f43});for(const _0x4d20a3 of _0x4cdca5)_0x4d20a3['detach'](),_0x4d20a3['isCollapsed']||'$graveyard'==_0x4d20a3['root']['rootName']||this['_addSuggestionMarker'](_0x21f4da,_0x22baa8,_0x2cea8e,_0x4d20a3,u['getMultiRangeId']());return _0x210933;}['markAttributeChange'](_0x300128,_0x5d66e5,_0x2072b7,_0x48dd41,_0x3786a6){if(_0x300128['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2c2c1f=this['editor']['plugins']['get']('Users')['me']['id'],_0x17940e=Array['from'](this['_suggestions']['values']())['filter'](_0xe725a5=>'attribute'==_0xe725a5['type']&&_0xe725a5['data']['key']==_0x5d66e5&&_0xe725a5['isIntersectingWithRange'](_0x300128));if('default'===this['_trackFormatChanges']){const _0x13234a=this['_findSuggestions'](_0x300128,'insertion')['filter'](({meta:_0x1e730a})=>_0x1e730a['isOwn']&&!_0x1e730a['isInsideObject']&&!_0x1e730a['isNextTo'])['map'](({suggestion:_0x116abf})=>_0x116abf);_0x17940e['unshift'](..._0x13234a);}const _0x1acb73=new Map([[_0x300128,_0x2072b7]]);for(const _0x4ee1a5 of _0x17940e){const _0xa23e7f='attribute'==_0x4ee1a5['type']?_0x4ee1a5['data']['oldValue']:void 0x0,_0x431f16=_0x4ee1a5['getFirstRange'](),_0x925da7=Array['from'](_0x1acb73['keys']())['find'](_0x3b96ed=>_0x3b96ed['isIntersecting'](_0x431f16));if(!_0x925da7)continue;const _0x30a111=_0x925da7['getDifference'](_0x431f16);this['_isBlockAttribute'](_0x5d66e5)&&'insertion'==_0x4ee1a5['type']&&0x0!=_0x30a111['length']||(_0x1acb73['delete'](_0x925da7),_0x30a111['forEach'](_0x202e3c=>{_0x1acb73['set'](_0x202e3c,_0x2072b7);}),'insertion'!=_0x4ee1a5['type']&&_0xa23e7f!=_0x48dd41&&_0x1acb73['set'](_0x925da7['getIntersection'](_0x431f16),_0xa23e7f));}const _0x1811ee=[];for(const [_0x45dc21,_0x50199e]of _0x1acb73){const _0x176063=_0x429a07(),_0x54a078={'key':_0x5d66e5,'oldValue':_0x50199e,'newValue':_0x48dd41};_0x5d66e5['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':_0x5d66e5});const _0x4eb870=('attribute:'+(_0x5d66e5+'|'+Gt({'newValue':_0x48dd41})))['substring'](0x0,0x3c),_0x30a8bc=this['_setSuggestionData']({'id':_0x176063,'type':_0x4eb870,'data':_0x54a078,'createdAt':new Date(),'authorId':_0x2c2c1f,'attributes':_0x3786a6});_0x1811ee['push'](_0x30a8bc),this['_addSuggestionMarker'](_0x4eb870,_0x176063,_0x2c2c1f,_0x45dc21);}return _0x1811ee;}['enableDefaultAttributesIntegration'](_0x56b758){this['enableCommand'](_0x56b758,(_0x2e1629,..._0x5326d4)=>{this['_recordAttributeChanges'](()=>{_0x2e1629(..._0x5326d4);});});}['registerBlockAttribute'](_0x38d4c5){this['_blockAttributeKeys']['add'](_0x38d4c5);}['registerInlineAttribute'](_0x2a6525){this['_inlineAttributeKeys']['add'](_0x2a6525);}['_getAttributeKey'](_0x254997){return'attribute'==_0x254997['type']?_0x254997['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x48c23f,_0x4daf3f){const _0x2e789c=_0x48c23f['getFirstMarker']();this['_model']['change'](_0x472b59=>{_0x472b59['updateMarker'](_0x2e789c,{'range':_0x4daf3f});});}['_addThreadToSuggestion'](_0x1487b0){const _0x5c24d9=_0x1487b0['id'],_0x2addc6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5c24d9)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2addc6,'threadId':_0x5c24d9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4a41ef=this['_commentsRepository']['getCommentThread'](_0x5c24d9);_0x4a41ef['unbind']('isRemovable'),_0x4a41ef['isRemovable']=!0x1,_0x1487b0['commentThread']=_0x4a41ef;}['_checkSuggestionCorrectness'](_0x39bdf5,_0x4d2698,_0x4bd49a,_0x9caf5c){if(_0x39bdf5['type']!=_0x4d2698||_0x39bdf5['subType']!=_0x4bd49a||_0x39bdf5['creator']['id']!=_0x9caf5c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4a7393('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x27b2ca,_0x19b35b){const _0x381377=_0x27b2ca['getFirstRange']();if(_0x19b35b['isEqual'](_0x381377))_0x27b2ca['removeMarkers']();else{if(_0x381377['containsRange'](_0x19b35b)){const _0x2a4b30=this['_model']['createPositionAt'](_0x19b35b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27b2ca,this['_model']['createRange'](_0x381377['start'],_0x2a4b30));const _0xe333a0=_0x429a07(),_0x113a37=_0x27b2ca['creator']['id'],_0x3b153e=_0x27b2ca['type']+':'+_0x27b2ca['subType'];this['_setSuggestionData']({'id':_0xe333a0,'type':_0x3b153e,'createdAt':new Date(),'authorId':_0x113a37,'data':_0x27b2ca['data'],'attributes':_0x27b2ca['attributes']});const _0x3a7157=this['_model']['createPositionAt'](_0x19b35b['end']['parent'],'after'),_0x3516a1=this['_model']['createRange'](_0x3a7157,_0x381377['end']);this['_addSuggestionMarker'](_0x3b153e,_0xe333a0,_0x113a37,_0x3516a1);}else{if(_0x381377['containsPosition'](_0x19b35b['start'])){const _0x11b84a=this['_model']['createPositionAt'](_0x19b35b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27b2ca,this['_model']['createRange'](_0x381377['start'],_0x11b84a));}else{const _0x246820=this['_model']['createPositionAt'](_0x19b35b['end']['parent'],'after');this['_setSuggestionRange'](_0x27b2ca,this['_model']['createRange'](_0x246820,_0x381377['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x18ae36){for(const {suggestion:_0x5c275d,meta:_0x2dd375}of this['_findSuggestions'](_0x18ae36,'insertion')){if(!_0x2dd375['isOwn'])continue;const _0x1bd915=_0x5c275d['getRanges']();for(const _0x1d8bc3 of _0x1bd915)if(!_0x18ae36['getDifference'](_0x1d8bc3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x46cca6){const _0x932446=this['editor']['plugins']['get']('Users')['getUser'](_0x46cca6);if(!_0x932446)throw new _0x4a7393('track-changes-user-not-found',this);return _0x932446;}['_getExternalAuthor'](_0x4c1380){const _0x14f944=this['editor']['plugins']['get']('Users'),_0x407325=_0x5c5065('external:'+_0x4c1380),_0x561946=_0x14f944['getUser'](_0x407325);return _0x561946||_0x14f944['addUser']({'id':_0x407325,'name':_0x4c1380});}['_createSuggestion'](_0x4d4dc6,_0xd27a44,_0x5c6e9e,_0x144e21,_0x69dcb0){const _0x12c373=this['_getAuthorFromId'](_0x144e21),_0x29b21b=this['_suggestionFactory']['buildSuggestion'](_0x4d4dc6,_0xd27a44,_0x5c6e9e,_0x12c373,_0x69dcb0,_0x15c3f2=>{this['_updateSuggestionData'](_0x5c6e9e,{'attributes':_0x15c3f2});const _0xdebd6b=this['getSuggestion'](_0x5c6e9e);this['_joinWithAdjacentSuggestions'](new Set([_0xdebd6b])),this['_refreshSuggestionsChain'](new Set([_0xdebd6b]));});return this['listenTo'](_0x29b21b,'accept',()=>{this['_updateSuggestionData'](_0x5c6e9e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x29b21b,'discard',()=>{this['_updateSuggestionData'](_0x5c6e9e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5c6e9e,_0x29b21b),this['_suggestionState']['set'](_0x29b21b,'notReady'),_0x29b21b;}['_splitMarkerName'](_0x4cbffa){const _0x4a5b6d=_0x4cbffa['split'](':');return{'group':_0x4a5b6d[0x0],'type':_0x4a5b6d[0x1],'subType':_0x4a5b6d['length']>=0x5?_0x4a5b6d[0x2]:null,'id':_0x4a5b6d['length']<0x5?_0x4a5b6d[0x2]:_0x4a5b6d[0x3],'authorId':_0x4a5b6d['length']<0x5?_0x4a5b6d[0x3]:_0x4a5b6d[0x4],'markerCount':0x6==_0x4a5b6d['length']?_0x4a5b6d[0x5]:null};}['_breakSuggestionMarker'](_0x4274e4,_0x1f9f01,_0x53a9a){const _0x31a3a0=_0x4274e4['getFirstRange'](),_0x453f3b=_0x31a3a0['start'],_0x12a1d9=_0x31a3a0['end'];this['_setSuggestionRange'](_0x4274e4,this['_model']['createRange'](_0x453f3b,_0x1f9f01));const _0x5f368e=_0x429a07(),_0x56436d=_0x4274e4['creator']['id'],_0x636c7d=_0x4274e4['type']+(_0x4274e4['subType']?':'+_0x4274e4['subType']:'');this['_setSuggestionData']({'id':_0x5f368e,'type':_0x636c7d,'createdAt':new Date(),'authorId':_0x56436d,'originalSuggestionId':_0x4274e4['id'],'attributes':_0x4274e4['attributes'],'data':_0x4274e4['data']});const _0x441d32=this['_getAttributeKey'](_0x4274e4);('formatBlock'==_0x4274e4['type']||_0x441d32&&this['_isBlockAttribute'](_0x441d32))&&(_0x53a9a=this['_model']['createPositionBefore'](_0x53a9a['parent'])),this['_addSuggestionMarker'](_0x636c7d,_0x5f368e,_0x56436d,this['_model']['createRange'](_0x53a9a,_0x12a1d9));}['_findSuggestions'](_0x33b7c7,_0x1f664a=null){const _0x240410=[],_0x2b4fce=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x33b7c7)||(_0x33b7c7=[_0x33b7c7]);for(const _0x1d90f6 of this['getSuggestions']()){if(!_0x1d90f6['isInContent'])continue;if(_0x1f664a&&_0x1d90f6['type']!=_0x1f664a)continue;let _0x3b730c=!0x1;for(const _0x4499d8 of _0x1d90f6['getRanges']()){for(const _0xef8fde of _0x33b7c7){const _0x2886de=_0xef8fde['start']['isEqual'](_0x4499d8['end'])||_0xef8fde['end']['isEqual'](_0x4499d8['start']);if(_0x2886de||_0xef8fde['getIntersection'](_0x4499d8)){const _0x48a471=_0xef8fde['containsRange'](_0x4499d8)&&Ot(this['_model']['schema'],_0x4499d8['start'],_0xef8fde),_0x205310=_0x4499d8['containsRange'](_0xef8fde)&&Ot(this['_model']['schema'],_0xef8fde['start'],_0x4499d8);_0x240410['push']({'suggestion':_0x1d90f6,'meta':{'isOwn':_0x2b4fce==_0x1d90f6['author'],'isNextTo':_0x2886de,'isInsideObject':_0x48a471,'containsRangeInObject':_0x205310}}),_0x3b730c=!0x0;break;}}if(_0x3b730c)break;}}return _0x240410;}['_addSuggestionMarker'](_0x152a32,_0x6c2185,_0x127aa1,_0x4ee1d4,_0x5e97e5){this['_model']['change'](_0xd9a75=>{let _0x906c95='suggestion:'+_0x152a32+':'+_0x6c2185+':'+_0x127aa1;_0x5e97e5&&(_0x906c95=_0x906c95+':'+_0x5e97e5),_0xd9a75['addMarker'](_0x906c95,{'range':_0x4ee1d4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x47c991){const _0x18f6dc=_0x47c991['previous'],_0x52adc5=_0x47c991['next'];_0x47c991['previous']=null,_0x47c991['next']=null,null!=_0x18f6dc&&_0x18f6dc['next']==_0x47c991&&(_0x18f6dc['next']=_0x52adc5),null!=_0x52adc5&&_0x52adc5['previous']==_0x47c991&&(_0x52adc5['previous']=_0x18f6dc),'ready'==this['_suggestionState']['get'](_0x47c991)&&(this['_suggestionState']['set'](_0x47c991,'removed'),this['fire']('suggestionUnloaded',_0x47c991,_0x18f6dc,_0x52adc5));}['_setSuggestionData'](_0x4e81e9){const _0xf02d63=_0x4e81e9['id'],_0x14671=this['addSuggestionData'](_0x4e81e9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1f9b6a=this['editor']['plugins']['get']('PendingActions'),_0x57462d=_0x14671['hasComments'],_0x47f793=_0x14671['subType']?_0x14671['type']+':'+_0x14671['subType']:_0x14671['type'],_0x1c3200=this['editor']['locale'],_0x15725a=_0x1f9b6a['add'](o(_0x1c3200,'PENDING_ACTION_SUGGESTION')),_0xeec0d8={'id':_0xf02d63,'type':_0x47f793,'hasComments':_0x57462d,'data':_0x4e81e9['data']||null,'originalSuggestionId':_0x4e81e9['originalSuggestionId']||null,'attributes':_0x14671['attributes']};this['_adapter']['addSuggestion'](_0xeec0d8)['then'](_0x1e89ed=>{_0x14671['_saved']=!0x0,_0x1f9b6a['remove'](_0x15725a),_0x1e89ed&&_0x1e89ed['createdAt']&&(this['_suggestions']['get'](_0xf02d63)['createdAt']=_0x1e89ed['createdAt']);})['catch'](_0x7ebca9=>{throw _0x8063a7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x14671['discard']();}),_0x14671['stopListening'](),this['_suggestions']['delete'](_0x14671['id']),this['_suggestionState']['delete'](_0x14671),_0x7ebca9;});}return _0x14671;}['_isBlockAttribute'](_0x522539){return this['_blockAttributeKeys']['has'](_0x522539);}['_updateSuggestionData'](_0x9aba29,_0x2e528c){const _0x2df38e=this['editor']['plugins']['get']('PendingActions'),_0x54f3bb=this['getSuggestion'](_0x9aba29);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x54f3bb['_saved']){const _0x1d0cc1=_0x2df38e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x9aba29,_0x2e528c)['then'](()=>{_0x2df38e['remove'](_0x1d0cc1);});}else _0x54f3bb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x9aba29,_0x2e528c);});}}['_getSuggestionData'](_0x200dc0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4a7393('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x200dc0);}['_handleNewSuggestionMarker'](_0x401d88){const {id:_0x57611b,type:_0x5ac40d,subType:_0x4aa055,authorId:_0x103c1a}=this['_splitMarkerName'](_0x401d88),_0x1c77c0=this['_suggestions']['get'](_0x57611b)||this['_createSuggestion'](_0x5ac40d,_0x4aa055,_0x57611b,_0x103c1a,{});switch(this['_checkSuggestionCorrectness'](_0x1c77c0,_0x5ac40d,_0x4aa055,_0x103c1a),this['_suggestionState']['get'](_0x1c77c0)){case'notReady':this['_getSuggestionData'](_0x57611b)['then'](_0x576670=>{let _0x39724f=Promise['resolve']();_0x576670['hasComments']&&(_0x39724f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x57611b})),_0x39724f['then'](()=>{this['addSuggestionData'](_0x576670)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1c77c0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x57611b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1c77c0,'ready'),this['fire']('suggestionLoaded',_0x1c77c0);break;case'ready':this['fire']('suggestionChanged',_0x1c77c0);}return _0x1c77c0['addMarkerName'](_0x401d88),_0x1c77c0;}['_refreshSuggestionsChain'](_0x134148){const _0x65e6fa=Array['from'](_0x134148),_0x9a1b5f=_0x65e6fa['filter'](_0x552e88=>'attribute'==_0x552e88['type']);this['_refreshAttributeSuggestionsChain'](_0x9a1b5f);const _0x59823a=_0x65e6fa['filter'](_0x2a8ded=>!_0x2a8ded['isMultiRange']&&'attribute'!=_0x2a8ded['type']),_0x246c6c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d1c84=>!_0x5d1c84['isMultiRange']&&'attribute'!=_0x5d1c84['type']),_0x45892f=_0x246c6c['filter'](_0xf8de2d=>!_0x134148['has'](_0xf8de2d)),_0x472105=new Map(_0x246c6c['map'](_0x3ecb70=>[_0x3ecb70,this['_suggestionFactory']['getSuggestionCallback'](_0x3ecb70['type'],_0x3ecb70['subType'],'chain')])),_0x12de05=new Map(_0x246c6c['map'](_0x4fd45e=>[_0x4fd45e,_0x4fd45e['getFirstRange']()])),_0xf26e2=new Set(),_0xd0fb86=new Set();for(let _0x436a85=0x0;_0x436a85<_0x59823a['length'];_0x436a85++)_0x1a73d4(_0x59823a[_0x436a85],_0x59823a,_0x436a85+0x1);for(let _0x1718c7=0x0;_0x1718c7<_0x59823a['length'];_0x1718c7++)_0x1a73d4(_0x59823a[_0x1718c7],_0x45892f,0x0);const _0x14ffa3=new Set();for(let _0x163bdb=0x0;_0x163bdb<_0x59823a['length'];_0x163bdb++){const _0x15c530=_0x59823a[_0x163bdb];!_0xd0fb86['has'](_0x15c530)&&_0x15c530['previous']&&(_0x14ffa3['add'](_0x15c530['previous']),_0x15c530['previous']['next']===_0x15c530&&(_0x15c530['previous']['next']=null),_0x15c530['previous']=null),!_0xf26e2['has'](_0x15c530)&&_0x15c530['next']&&(_0x14ffa3['add'](_0x15c530['next']),_0x15c530['next']['previous']===_0x15c530&&(_0x15c530['next']['previous']=null),_0x15c530['next']=null);}function _0x1a73d4(_0x1a0c5c,_0x49898c,_0xfdc04d){for(let _0xce1b3=_0xfdc04d;_0xce1b3<_0x49898c['length'];_0xce1b3++){const _0x275883=_0x320180(_0x1a0c5c,_0x49898c[_0xce1b3]);_0x275883&&(_0x275883[0x0]['next']=_0x275883[0x1],_0x275883[0x1]['previous']=_0x275883[0x0],_0xf26e2['add'](_0x275883[0x0]),_0xd0fb86['add'](_0x275883[0x1]));}}function _0x320180(_0x565535,_0x573bab){if(_0x565535['author']['id']!==_0x573bab['author']['id'])return null;const _0x4f11ac=_0x472105['get'](_0x565535)(_0x565535,_0x573bab,_0x12de05['get'](_0x565535),_0x12de05['get'](_0x573bab));if(!_0x4f11ac)return null;return _0x472105['get'](_0x573bab)(_0x565535,_0x573bab,_0x12de05['get'](_0x565535),_0x12de05['get'](_0x573bab))?_0x4f11ac[0x1]['commentThread']&&_0x4f11ac[0x1]['commentThread']['length']?null:_0x4f11ac:null;}_0x14ffa3['size']&&this['_refreshSuggestionsChain'](_0x14ffa3);}['_refreshAttributeSuggestionsChain'](_0x5529d7){if(0x0==_0x5529d7['length'])return;const _0x4787cb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e7c1b=>'attribute'==_0x4e7c1b['type']&&_0x4e7c1b['_isDataLoaded']),_0x47a49d=[],_0x481a22=new Map();for(const _0x51d315 of _0x4787cb){const _0x39c9b3=_0x5c5065(_0x51d315['attributes']);_0x481a22['has'](_0x39c9b3)||(_0x481a22['set'](_0x39c9b3,_0x47a49d['length']),_0x47a49d['push']([]));const _0x5562de=_0x481a22['get'](_0x39c9b3);_0x47a49d[_0x5562de]['push'](_0x51d315);}!(function(){_0x47a49d['sort']((_0xdd5454,_0xc55792)=>{const _0x2d3cc8=_0xdd5454[0x0]['createdAt'],_0xef20f4=_0xc55792[0x0]['createdAt'];return _0x2d3cc8==_0xef20f4?_0xdd5454[0x0]['attributes']['groupId']<_0xc55792[0x0]['attributes']['groupId']?-0x1:0x1:_0x2d3cc8<_0xef20f4?-0x1:0x1;});for(const _0x395e71 of _0x47a49d)_0x395e71['sort']((_0xc058d2,_0x1b1284)=>_0xc058d2['id']<_0x1b1284['id']?-0x1:0x1);}());for(let _0x19b132=0x0;_0x19b132<_0x47a49d['length'];_0x19b132++){if(0x0==_0x47a49d[_0x19b132]['length'])continue;const _0x37a8f1=[];for(let _0x5cb1c5=_0x19b132+0x1;_0x5cb1c5<_0x47a49d['length'];_0x5cb1c5++)0x0!=_0x47a49d[_0x5cb1c5]['length']&&_0x2fe029(_0x47a49d[_0x19b132],_0x47a49d[_0x5cb1c5])&&_0x37a8f1['push'](_0x5cb1c5);for(const _0x6885d9 of _0x37a8f1)_0x47a49d[_0x19b132]=_0x47a49d[_0x19b132]['concat'](_0x47a49d[_0x6885d9]),_0x47a49d[_0x6885d9]=[];}for(const _0x5e68f0 of _0x47a49d)for(let _0x2def6c=0x0;_0x2def6c<_0x5e68f0['length'];_0x2def6c++){const _0x46e4b4=_0x5e68f0[_0x2def6c+0x1]||null;_0x5e68f0[_0x2def6c]['next']!==_0x46e4b4&&(_0x5e68f0[_0x2def6c]['next']=_0x46e4b4);}for(const _0xbd18e0 of _0x47a49d)for(let _0x36ad93=0x0;_0x36ad93<_0xbd18e0['length'];_0x36ad93++){const _0x182d2e=_0xbd18e0[_0x36ad93-0x1]||null;_0xbd18e0[_0x36ad93]['previous']!==_0x182d2e&&(_0xbd18e0[_0x36ad93]['previous']=_0x182d2e);}function _0x2fe029(_0x49f015,_0xb408f){if(_0x49f015[0x0]['attributes']['groupId']!==_0xb408f[0x0]['attributes']['groupId']&&_0x49f015[0x0]['author']!==_0xb408f[0x0]['author'])return!0x1;if(!function(_0x5e8ce6,_0x19c8fb){if(!_0x5e8ce6['hasComments']&&!_0x19c8fb['hasComments'])return!0x0;if(_0x5e8ce6['hasComments']&&_0x19c8fb['hasComments'])return!0x1;if(_0x5e8ce6['hasComments']&&_0x19c8fb['createdAt']<_0x5e8ce6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x19c8fb['hasComments']&&_0x5e8ce6['createdAt']<_0x19c8fb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x49f015[0x0],_0xb408f[0x0]))return!0x1;const _0x39795f=Tt(_0x49f015[0x0]['attributes'],'groupId'),_0x184dee=Tt(_0xb408f[0x0]['attributes'],'groupId');if(!_0x2dfb64(_0x39795f,_0x184dee))return!0x1;return!!_0x49f015['every'](_0x3978d5=>_0xb408f['some'](_0xb233ac=>_0x3978d5['getFirstRange']()['isEqual'](_0xb233ac['getFirstRange']())))&&_0xb408f['every'](_0x48b0f2=>_0x49f015['some'](_0x27e290=>_0x48b0f2['getFirstRange']()['isEqual'](_0x27e290['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x57c481){const _0x3f583a=Array['from'](_0x57c481),_0x67c7f8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3fab57=_0x67c7f8['filter'](_0x409cf1=>!_0x57c481['has'](_0x409cf1)),_0x114f0d=new Map(_0x3f583a['map'](_0x201c3a=>[_0x201c3a,this['_suggestionFactory']['getSuggestionCallback'](_0x201c3a['type'],_0x201c3a['subType'],'join')])),_0xa1d1dd=new Map(_0x67c7f8['map'](_0x246f12=>[_0x246f12,_0x246f12['getRanges']()]));for(let _0x5de9e3=0x0;_0x5de9e3<_0x3f583a['length'];_0x5de9e3++){if(_0x1f7b36(this,_0x3f583a[_0x5de9e3],_0x3f583a,_0x5de9e3+0x1))return!0x0;}for(let _0x4d7b4d=0x0;_0x4d7b4d<_0x3f583a['length'];_0x4d7b4d++){if(_0x1f7b36(this,_0x3f583a[_0x4d7b4d],_0x3fab57,0x0))return!0x0;}return!0x1;function _0x1f7b36(_0x1aefb4,_0xc44721,_0x1162c7,_0x599eb5){for(let _0x507adc=_0x599eb5;_0x507adc<_0x1162c7['length'];_0x507adc++){const _0x3ffd79=_0x1162c7[_0x507adc];if(_0x3ffd79['type']!==_0xc44721['type']||_0x3ffd79['author']['id']!==_0xc44721['author']['id']||_0x3ffd79['subType']!==_0xc44721['subType'])continue;if(!Jt(_0xc44721,_0x3ffd79))continue;if('attribute'==_0xc44721['type']&&_0xc44721['data']['oldValue']!=_0x3ffd79['data']['oldValue'])continue;if('attribute'==_0xc44721['type']&&_0x1aefb4['_isBlockAttribute'](_0xc44721['data']['key']))continue;if('formatBlock'==_0xc44721['type']){const _0x2f25d1=_0x1aefb4['editor']['model'],_0x355777=_0xc44721['getContainedElement']();if(_0x355777&&(_0x2f25d1['schema']['isObject'](_0x355777)||_0x2f25d1['schema']['isLimit'](_0x355777)))continue;}const _0x2e7ac7=_0x114f0d['get'](_0xc44721),_0x54d48b=_0xa1d1dd['get'](_0xc44721),_0x354067=_0xa1d1dd['get'](_0x3ffd79),_0x252c46=_0xc44721['commentThread']&&_0xc44721['commentThread']['length'],_0x577f83=_0x3ffd79['commentThread']&&_0x3ffd79['commentThread']['length'];if(!_0x252c46&&_0x2e7ac7(_0x354067,_0x54d48b))return _0x1aefb4['_joinSuggestions'](_0x3ffd79,_0xc44721),_0xa1d1dd['delete'](_0xc44721),!0x0;if(!_0x577f83&&_0x2e7ac7(_0x54d48b,_0x354067))return _0x1aefb4['_joinSuggestions'](_0xc44721,_0x3ffd79),_0xa1d1dd['delete'](_0x3ffd79),!0x0;}return!0x1;}}['_joinSuggestions'](_0x201df8,_0x4c79c3){if(_0x201df8['isMultiRange']){for(const _0x12f356 of _0x4c79c3['getRanges']())_0x201df8['addRange'](_0x12f356);}else{const _0x23da8c=_0x4c79c3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x201df8,this['_model']['createRange'](_0x201df8['getFirstRange']()['start'],_0x23da8c));}_0x4c79c3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x170245,_0xbb2409,_0x39f411){const _0x340938=_0x170245['startsWith']('format')||_0x170245['startsWith']('attribute')?'FORMATTING':_0x170245['toUpperCase']();return o(this['editor']['locale'],_0xbb2409+'_'+_0x340938+'_SUGGESTION_ANNOUNCEMENT',_0x39f411);}['_initAriaMarkerChangeAnnouncements'](){const _0x5984c6=this['editor'];if(!_0x5984c6['ui'])return;const {ariaLiveAnnouncer:_0x30c9b1}=_0x5984c6['ui'];_0x22115e(this['_model'],({left:_0x7b9312,entered:_0x13287f})=>{for(const _0x4c3145 of _0x7b9312){const {group:_0x18444a,type:_0x64f8c8}=this['_splitMarkerName'](_0x4c3145['name']);if('suggestion'===_0x18444a){_0x30c9b1['announce'](this['_getMarkerAnnouncementText'](_0x64f8c8,'LEAVE'));break;}}for(const _0x5c5b05 of _0x13287f){const {group:_0x29aa6f,type:_0x805c86}=this['_splitMarkerName'](_0x5c5b05['name']);if('suggestion'===_0x29aa6f){_0x30c9b1['announce'](this['_getMarkerAnnouncementText'](_0x805c86,'ENTER',_0xbae308(_0x3c78cd)));break;}}});}['_processAttributeChanges'](_0x44e283){if(this['_recordAttributeSuggestions'])return!0x1;const _0x364d84=this['editor'],_0x2fc01c=_0x364d84['model']['document']['differ']['getChanges']();if(0x0==_0x2fc01c['length'])return!0x1;const _0x44600f=[],_0x44c8c5=_0x2fc01c['filter'](_0x22af7f=>'attribute'==_0x22af7f['type']),_0x4615e6=_0x2fc01c['filter'](_0x47c8b5=>'insert'==_0x47c8b5['type']&&'$text'!=_0x47c8b5['name']),_0x37e798=_0x2fc01c['filter'](_0x5f22ee=>'remove'==_0x5f22ee['type']&&'$text'!=_0x5f22ee['name']);for(const _0x4f1d2e of _0x44c8c5)_0x44600f['push']({'key':_0x4f1d2e['attributeKey'],'newValue':_0x4f1d2e['attributeNewValue'],'oldValue':_0x4f1d2e['attributeOldValue'],'range':Pt(_0x4f1d2e['range'],_0x364d84['model'])});for(const _0x4263d1 of _0x4615e6){const _0x4d3c1f=_0x37e798['find'](_0x565766=>_0x565766['position']['isEqual'](_0x4263d1['position']));_0x4d3c1f&&_0x44600f['push']({'key':m,'newValue':_0x4263d1['name'],'oldValue':_0x4d3c1f['name'],'range':_0x364d84['model']['createRangeOn'](_0x4263d1['position']['nodeAfter'])});}return 0x0!=_0x44600f['length']&&this['_reduceExistingSuggestions'](_0x44e283,_0x44600f);}['_processAttributeSuggestions'](_0x4c3892){let _0x4bce74=!0x1;const _0xc3457=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa931cf=>_0xa931cf['data']['newRange']&&_0xa931cf['name']['startsWith']('suggestion:attribute:'));for(const _0x9cd54c of _0xc3457){const {subType:_0x4a4b0f,id:_0x2a4a85}=this['_splitMarkerName'](_0x9cd54c['name']),_0x3e6c59=_0x4a4b0f['split']('|')[0x0];for(const _0x458891 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x458891['id']!=_0x2a4a85&&'attribute'==_0x458891['type']&&_0x458891['data']&&_0x458891['data']['key']==_0x3e6c59&&_0x458891['getFirstRange']()['isIntersecting'](_0x9cd54c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x458891,_0x9cd54c['data']['newRange'],_0x4c3892),_0x4bce74=!0x0);}return _0x4bce74;}['_recordAttributeChanges'](_0x3bcf46){this['_recordAttributeSuggestions']=!0x0,_0x3bcf46();}['_isRegisteredAttribute'](_0x224e31){const _0x1451f7=this['_isBlockAttribute'](_0x224e31),_0x1feed1=this['_inlineAttributeKeys']['has'](_0x224e31);return _0x1451f7||_0x1feed1;}['_reduceExistingSuggestions'](_0x27ae7b,_0x497682){if(0x0==_0x497682['length'])return!0x1;let _0x4757f2=!0x1;for(const _0x1d2b51 of _0x497682){const _0x362e37=this['_findSuggestions'](_0x1d2b51['range'],'attribute')['filter'](_0x3c75d0=>!_0x3c75d0['meta']['isNextTo'])['map'](_0x18d6fc=>_0x18d6fc['suggestion']),_0x3d67bf=_0x5c5065({'newValue':_0x1d2b51['newValue']});_0x362e37['filter'](_0x3dbd31=>{const [_0x1152b4,_0x21b33a]=_0x3dbd31['subType']['split']('|');return _0x1152b4==_0x1d2b51['key']&&_0x21b33a!=_0x3d67bf;})['forEach'](_0x29b09d=>{this['_reduceSuggestionAttributeRange'](_0x29b09d,_0x1d2b51['range'],_0x27ae7b),_0x4757f2=!0x0;});}return _0x4757f2;}['_reduceSuggestionAttributeRange'](_0x5592bb,_0x44de66,_0x4b6c20){const _0x35fd52=_0x5592bb['getFirstRange']()['getDifference'](_0x44de66);0x0!==_0x35fd52['length']?0x1!==_0x35fd52['length']?this['_breakSuggestionMarker'](_0x5592bb,_0x44de66['start'],_0x44de66['end']):this['_setSuggestionRange'](_0x5592bb,_0x35fd52[0x0]):_0x4b6c20['removeMarker'](_0x5592bb['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1753d1){this['_editor']=_0x1753d1,this['_model']=_0x1753d1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x15ad19,_0x141bc4,_0x222fe8,_0x11ff89,_0x99ae3b,_0x27fece){return new u(this['_model'],{'type':_0x15ad19,'subType':_0x141bc4,'id':_0x222fe8,'author':_0x11ff89,'creator':_0x11ff89,'attributes':_0x99ae3b,'onAttributesChange':_0x27fece,'onAccept':(..._0x317f94)=>this['getSuggestionCallback'](_0x15ad19,_0x141bc4,'accept')(..._0x317f94),'onDiscard':(..._0x3a8f33)=>this['getSuggestionCallback'](_0x15ad19,_0x141bc4,'discard')(..._0x3a8f33)});}['registerCustomCallback'](_0x1deaa5,_0x21556a,_0x22d994,_0x2c3673){const _0x3affe0=_0x1deaa5+':'+_0x21556a+':'+_0x22d994;this['_customCallbacks']['set'](_0x3affe0,_0x2c3673);}['getSuggestionCallback'](_0x27d948,_0x207a98,_0x5027f2){const _0x48788c=_0x27d948+':'+_0x207a98+':'+_0x5027f2;return this['_customCallbacks']['get'](_0x48788c)||this['_defaultCallbacks']['get'](_0x27d948+':'+_0x5027f2);}['_registerDefaultCallbacks'](){const _0x464182=()=>!0x1,_0x586f2e=_0x4851a9=>{_0x4851a9['sort']((_0x34ab6b,_0x549990)=>_0x34ab6b['start']['isBefore'](_0x549990['start'])?0x1:-0x1),this['_model']['change'](_0x3401d2=>{for(const _0x1b6473 of _0x4851a9){let _0x155114;_0x155114=_0x1b6473['end']['isAtEnd']&&_0x1b6473['end']['parent']==_0x1b6473['start']['nodeAfter']?_0x3401d2['createSelection'](_0x1b6473['start']['nodeAfter'],'on'):_0x3401d2['createSelection'](_0x1b6473),this['_model']['deleteContent'](_0x155114,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3ece21=(_0x354952,_0x27c54f)=>{_0x27c54f&&this['_model']['change'](_0x211ebf=>{const {commandName:_0x4d176a,commandParams:_0x449cd9=[]}=_0x27c54f,_0x36f365=_0x354952['map'](_0x1f616a=>(Vt(_0x1f616a)&&(_0x1f616a=this['_model']['createRange'](_0x1f616a['end'])),_0x1f616a))['filter'](_0x19ad14=>'$graveyard'!==_0x19ad14['root']['rootName']);if(_0x36f365['length']<0x1)return;const _0x57c9af=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x429a78=>_0x31c9bf['fromRange'](_0x429a78));_0x211ebf['setSelection'](_0x36f365);for(const _0x5410ce of this['_editor']['commands']['commands']())_0x5410ce['refresh']();_0x449cd9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4d176a,..._0x449cd9);const _0x5f197a=_0x57c9af['filter'](_0x292933=>'$graveyard'!=_0x292933['root']['rootName']);_0x5f197a['length']>0x0&&_0x211ebf['setSelection'](_0x5f197a);for(const _0xb16f5c of _0x57c9af)_0xb16f5c['detach']();});},_0x1b195c=(_0x4129c6,_0x2e3c9b)=>0x1==_0x4129c6['length']&&0x1==_0x2e3c9b['length']&&_0x4129c6[0x0]['end']['isEqual'](_0x2e3c9b[0x0]['start']),_0x50bcfa=(_0x16f378,_0x57c024,_0x1b9352,_0x1644e9)=>Ht(_0x16f378,_0x57c024,_0x1b9352,_0x1644e9,this['_model'])?[_0x16f378,_0x57c024]:Ht(_0x57c024,_0x16f378,_0x1644e9,_0x1b9352,this['_model'])?[_0x57c024,_0x16f378]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x464182),this['_defaultCallbacks']['set']('insertion:discard',_0x586f2e),this['_defaultCallbacks']['set']('insertion:join',_0x1b195c),this['_defaultCallbacks']['set']('insertion:chain',_0x50bcfa),this['_defaultCallbacks']['set']('deletion:accept',_0x586f2e),this['_defaultCallbacks']['set']('deletion:discard',_0x464182),this['_defaultCallbacks']['set']('deletion:join',_0x1b195c),this['_defaultCallbacks']['set']('deletion:chain',_0x50bcfa),this['_defaultCallbacks']['set']('formatInline:accept',_0x3ece21),this['_defaultCallbacks']['set']('formatInline:discard',_0x464182),this['_defaultCallbacks']['set']('formatInline:join',_0x1b195c),this['_defaultCallbacks']['set']('formatInline:chain',_0x464182),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3ece21),this['_defaultCallbacks']['set']('formatBlock:discard',_0x464182),this['_defaultCallbacks']['set']('formatBlock:join',_0x1b195c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x464182),this['_defaultCallbacks']['set']('attribute:accept',_0x464182),this['_defaultCallbacks']['set']('attribute:discard',(_0x32b8b,_0x12ebaf)=>{if(!_0x12ebaf)return;const _0x2c8fe5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1afc29=>{if(_0x12ebaf['key']==m)for(const _0x5575b5 of _0x32b8b){const _0xa3879a=_0x5575b5['start']['nodeAfter'],_0x247f6a=_0x12ebaf['oldValue'];_0x1afc29['rename'](_0xa3879a,_0x247f6a);}else{if(_0x2c8fe5['_isBlockAttribute'](_0x12ebaf['key'])){for(const _0x5f4ad7 of _0x32b8b)void 0x0!==_0x12ebaf['oldValue']?_0x1afc29['setAttribute'](_0x12ebaf['key'],_0x12ebaf['oldValue'],_0x5f4ad7['start']['nodeAfter']):_0x1afc29['removeAttribute'](_0x12ebaf['key'],_0x5f4ad7['start']['nodeAfter']);}else{for(const _0x3f2201 of _0x32b8b)_0x12ebaf['oldValue']?_0x1afc29['setAttribute'](_0x12ebaf['key'],_0x12ebaf['oldValue'],_0x3f2201):_0x1afc29['removeAttribute'](_0x12ebaf['key'],_0x3f2201);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1b195c);}}function Ot(_0x24b9e7,_0x2f4626,_0x6b8376){for(const _0x3b00ca of _0x2f4626['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3b00ca['root']==_0x3b00ca)return!0x1;if(!_0x6b8376['containsItem'](_0x3b00ca))return!0x1;if(_0x24b9e7['isObject'](_0x3b00ca)||_0x24b9e7['isLimit'](_0x3b00ca))return!0x0;}return!0x1;}function Vt(_0x4b45fa){return _0x4b45fa['end']['parent']==_0x4b45fa['start']['nodeAfter']&&_0x4b45fa['end']['isAtStart'];}function Ut(_0x2f687e,_0x123b56,_0x5495fc,_0x2fcd4f){const _0x56218f=_0x4fa707=>!_0x4fa707['item']['is']('$textProxy')&&!_0x2fcd4f['isObject'](_0x4fa707['item']),_0x56296b=_0x2f687e['start']['getLastMatchingPosition'](_0x56218f),_0x4b4dad=_0x2f687e['end']['getLastMatchingPosition'](_0x56218f,{'direction':'backward'});return(!_0x2f687e['start']['isEqual'](_0x56296b)||!_0x2f687e['end']['isEqual'](_0x4b4dad))&&(_0x56296b['isBefore'](_0x4b4dad)?_0x5495fc['updateMarker'](_0x123b56,{'range':_0x5495fc['createRange'](_0x56296b,_0x4b4dad)}):_0x5495fc['removeMarker'](_0x123b56),!0x0);}function Gt(_0x4f305d){return _0x5c5065(_0x4f305d);}function Ft(_0xaf64ad){const _0x298de9=_0xaf64ad['start']['nodeAfter'];return _0x298de9&&_0x298de9['is']('element');}function Pt(_0x731781,_0x1de843){return null==_0x731781['end']['nodeBefore']&&_0x731781['end']['parent']==_0x731781['start']['nodeAfter']?Lt(_0x731781['start']['nodeAfter'],_0x1de843):_0x731781;}function Lt(_0x273917,_0x571050){const _0x2abe6a=_0x571050['schema']['isObject'](_0x273917)||_0x571050['schema']['isSelectable'](_0x273917);return _0x571050['createRange'](_0x571050['createPositionAt'](_0x273917,'before'),_0x2abe6a?_0x571050['createPositionAfter'](_0x273917):_0x571050['createPositionAt'](_0x273917,'end'));}function Ht(_0x48849d,_0x5f0ecc,_0x582c17,_0xc594f6,_0x47c03c){if(_0x48849d['next'])return!0x1;if(!Jt(_0x48849d,_0x5f0ecc))return!0x1;if(_0x582c17['end']['isEqual'](_0xc594f6['start']))return!0x0;if(_0x48849d['type']!=_0x5f0ecc['type'])return!0x1;if(!_0x582c17['end']['isTouching'](_0xc594f6['start']))return!0x1;const _0x402894=_0x47c03c['createRange'](_0x582c17['end'],_0xc594f6['start'])['getWalker']();for(const _0x3134e3 of _0x402894)if(['elementStart','elementEnd']['includes'](_0x3134e3['type'])&&_0x47c03c['schema']['isLimit'](_0x3134e3['item']))return!0x1;return!0x0;}function Jt(_0xfae5fd,_0x4822f1){if(!_0xfae5fd['_isDataLoaded']||!_0x4822f1['_isDataLoaded'])return!0x1;const _0x4886aa=new Set(Object['keys'](_0xfae5fd['attributes'])),_0x2d6bed=new Set(Object['keys'](_0x4822f1['attributes']));if(_0x4886aa['delete']('groupId'),_0x2d6bed['delete']('groupId'),0x0==_0x4886aa['size']&&0x0==_0x2d6bed['size'])return!0x0;if(_0x4886aa['size']!=_0x2d6bed['size'])return!0x1;const _0x59e788={..._0xfae5fd['attributes']},_0x1a7dcf={..._0x4822f1['attributes']};return delete _0x59e788['groupId'],delete _0x1a7dcf['groupId'],JSON['stringify'](_0x59e788)==JSON['stringify'](_0x1a7dcf);}function qt(_0x2baf6c,_0x1f3797){const _0x37562f=zt(_0x2baf6c['attributes']),_0x6ab45e=zt(_0x1f3797);if(!_0x2baf6c['_isDataLoaded'])return!0x1;for(const _0x22a2ef of Object['keys'](_0x6ab45e))if(!_0x2dfb64(_0x37562f[_0x22a2ef],_0x6ab45e[_0x22a2ef]))return!0x1;return!0x0;}function zt(_0x5338f1){const _0x4fc796=Object['assign']({},_0x5338f1);return delete _0x4fc796['skipNestingCheck'],delete _0x4fc796['tablePasteChainId'],_0x4fc796;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x609870(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40add3,_0x46a3e1,_0x998610,_0x158b09){super(),this['model']=_0x46a3e1,this['view']=_0x998610,this['commentThreadController']=_0x158b09,this['_editor']=_0x40add3,this['_acceptCommand']=_0x40add3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40add3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5682b5,_0x1b0f64)=>_0x5682b5||_0x1b0f64),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3ccdc7=>_0x3ccdc7&&this['_editor']['model']['canEditAt'](_0x46a3e1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x165e2f=>_0x165e2f&&this['_editor']['model']['canEditAt'](_0x46a3e1['getRanges']())),this['_pendingAction']=null,_0x998610['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x998610,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x998610,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x998610,'change:isDirty',()=>{_0x998610['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 _0x413936=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x413936);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x30ef7e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x467b95,_0x154934,_0x8d96b4,_0x5b537d){super(_0x467b95),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2f032d(_0x467b95,o(_0x467b95,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x154934['authoredAt']),this['bind']('authoredAt')['to'](_0x154934),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',_0x154934,'authoredAt',this,'descriptionParts',(_0x3573ba,_0x74ec13,_0x431eb2)=>{const _0x402ba0=_0x431eb2['map'](_0x543fb2=>ls(_0x543fb2['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3573ba-0x1,_0x154934['author']['name'],_0x74ec13?_0x5b537d['formatDateTime'](_0x74ec13):'',new DOMParser()['parseFromString'](_0x402ba0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2df4da(),this['focusTracker']=new _0x552d29(),this['keystrokes']=new _0x15e3b6(),this['focusCycler']=new _0x21f6d5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x18a9da=>_0x18a9da['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x154934,this['_localUser']=_0x8d96b4,this['_config']=_0x5b537d,_0x5b537d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x13ef58(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4192b3}=this['_config'];this['commentsListView']=new _0x4192b3(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',_0x3fb803=>_0x3fb803+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x849bba,_0x216bbf)=>_0x849bba||!!_0x216bbf);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2ca490}=this['_config'],_0x463fd7=new _0x2ca490(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x32fe1c=_0x463fd7['commentInputView'];return _0x463fd7['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x32fe1c,'value',(_0x450911,_0x2163dd,_0x29414e)=>!!_0x29414e||_0x450911&&!_0x2163dd),_0x32fe1c['on']('submit',(_0x6616a9,_0x1643bc)=>{this['fire']('addComment',_0x1643bc),_0x32fe1c['editor']['setData']('');}),_0x32fe1c['on']('cancel',()=>this['focus']()),_0x32fe1c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x463fd7;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1cc45,_0x2ef728,_0x1b187f,_0x46b1fe){super(_0x1cc45,_0x2ef728,_0x1b187f,_0x46b1fe),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x10405e=>_0x10405e&&_0x10405e[0x0]?_0x10405e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x7accf0,_0x4a93fb)=>{let _0x59b93d='';for(const _0x1bd7b5 of _0x7accf0)_0x59b93d+='<p>'+ls(_0x1bd7b5['content'],_0x1bd7b5['color'])+'</p>';return _0x4a93fb?_0x59b93d:_0xaf0486(_0x59b93d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x46b1fe['SuggestionView'](_0x1cc45,_0x2ef728,{'formatDateTime':_0x46b1fe['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 _0x334955=this['bindTemplate'],_0x139b0f=[this['suggestionView']];return this['commentsListView']&&_0x139b0f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x139b0f['push'](this['commentThreadInputView']),_0x139b0f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x334955['if']('isActive','ck-suggestion-wrapper--active'),_0x334955['to']('type',_0x3c3089=>'ck-suggestion-'+_0x3c3089),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':_0x334955['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x139b0f};}['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 ce extends _0x30ef7e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x40b579,_0x21a205,_0x339d40){super(_0x40b579),this['_model']=_0x21a205,this['_config']=_0x339d40,this['set']('description',''),this['bind']('authoredAt')['to'](_0x21a205),this['acceptButton']=this['_createButton'](o(_0x40b579,'Accept\x20suggestion'),_0x75a81b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x40b579,'Discard\x20suggestion'),_0x75a81b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x320796(_0x40b579,_0x21a205['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2df4da([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x552d29(),this['keystrokes']=new _0x15e3b6(),this['focusCycler']=new _0x21f6d5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3b3f18=>_0x3b3f18['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2fd8f6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2fd8f6['innerHTML']=this['description'],this['on']('change:description',(_0x477696,_0x5d40fc,_0x2b952e)=>{_0x2fd8f6['innerHTML']=_0x2b952e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x33b5ba=this['bindTemplate'],_0x529b52=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x33b5ba['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x33b5ba['to']('authoredAt',_0x3506ee=>this['_config']['formatDateTime'](_0x3506ee))}]}]},{'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']&&_0x529b52['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':_0x529b52}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xbd38d8,_0x2e95cc,_0x5124af,_0xc96ea2,_0x54a219){const _0xeba169=new _0x252f49(this['locale']);return _0xeba169['set']({'label':_0xbd38d8,'icon':_0x2e95cc,'tooltip':!0x0,'tooltipPosition':_0x54a219}),_0xeba169['extendTemplate']({'attributes':{'class':_0x5124af}}),_0xeba169['on']('execute',()=>{this['fire'](_0xc96ea2,this['_model']['id']);}),_0xeba169;}['_setupKeyboardNavigation'](){const _0x331c16=this['element'];this['keystrokes']['listenTo'](_0x331c16);for(const _0x3f657b of this['focusables'])this['focusTracker']['add'](_0x3f657b['element']),this['keystrokes']['listenTo'](_0x3f657b['element']);this['keystrokes']['set']('enter',(_0x4ee16a,_0x448d8b)=>{_0x331c16===_0x4ee16a['target']&&(this['focusCycler']['focusFirst'](),_0x448d8b());}),this['keystrokes']['set']('esc',(_0x1cb6dc,_0x3a4581)=>{_0x331c16!==_0x1cb6dc['target']&&(this['focus'](),_0x3a4581());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x5a19c7{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x39c210,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5a7fb0){super(_0x5a7fb0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2ebb18=this['editor']['config'];_0x2ebb18['define']('trackChanges.SuggestionThreadView',re),_0x2ebb18['define']('trackChanges.SuggestionView',ce),_0x2ebb18['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2ebb18['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x386de0,_0x55e538){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x316201,_0x2cc03b]of this['_handleControllerBuffer']){const _0x1936fa=this['_suggestionToController']['has'](_0x316201);_0x1936fa||_0x2cc03b?_0x1936fa&&_0x2cc03b&&this['_destroyController'](_0x316201):this['_initializeController'](_0x316201);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x386de0,_0x55e538);}['init'](){const _0x237a77=this['editor'],_0x5895b0=_0x237a77['plugins']['get']('TrackChangesEditing'),_0x1782bb=_0x237a77['plugins']['get']('Annotations'),_0x222057=_0x237a77['plugins']['get']('EditorAnnotations'),_0x104b94=_0x237a77['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x222057['addSourceCollector'](()=>{const _0x469786=[];for(const [_0xfa5522,_0x3bb253]of Array['from'](this['_suggestionToController'])){const _0x1a1387=_0xfa5522['getAllAdjacentSuggestions'](),_0x1f14dd=[];for(const _0xbec602 of _0x1a1387){if(!_0xbec602['isInContent'])continue;if(_0xbec602['isMultiRange']){_0x1f14dd['push'](..._0xbec602['getRanges']());continue;}const _0x5e4e86=_0xbec602['getFirstRange']();if(_0x1f14dd['length']>0x0){const _0xc80d37=_0x1f14dd[0x0]['getJoined'](_0x5e4e86);if(_0xc80d37){_0x1f14dd[0x0]=_0xc80d37;continue;}}_0x1f14dd['push'](_0x5e4e86);}_0x469786['push']([_0x3bb253['view'],_0x1f14dd]);}return _0x469786;}),this['listenTo'](_0x5895b0,'suggestionLoaded',(_0x51c47a,_0x29c0fe)=>{this['listenTo'](_0x29c0fe,'change:previous',(_0x4e59d9,_0x3b1ab8,_0x133243,_0x5eaa50)=>{_0x29c0fe['isInContent']&&(null==_0x133243?(this['_updateController'](_0x5eaa50['head']),this['_handleSuggestionControllerDelayed'](_0x29c0fe,!0x1)):(this['_updateController'](_0x133243['head']),null==_0x5eaa50&&this['_handleSuggestionControllerDelayed'](_0x29c0fe,!0x0)));}),null!==_0x29c0fe['previous']?this['_updateController'](_0x29c0fe['head']):this['_handleSuggestionControllerDelayed'](_0x29c0fe,!0x1);}),this['listenTo'](_0x5895b0,'suggestionUnloaded',(_0x3c9ffd,_0x4c2f48,_0x58428d)=>{this['stopListening'](_0x4c2f48,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4c2f48),this['_suggestionToController']['has'](_0x4c2f48)&&this['_destroyController'](_0x4c2f48),_0x58428d&&this['_updateController'](_0x58428d['head']);}),this['listenTo'](_0x5895b0,'suggestionChanged',(_0x48592b,_0x3b59ee)=>{this['_updateController'](_0x3b59ee);}),this['listenTo'](_0x1782bb,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x104b94,'addComment',(_0x332c0e,{threadId:_0xe12c19,isFromAdapter:_0x1f8bfd})=>{if(_0x1f8bfd||!_0x5895b0['hasSuggestion'](_0xe12c19))return;const _0x597783=_0x5895b0['getSuggestion'](_0xe12c19);this['_suggestionToController']['get'](_0x597783)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5975c6=this['editor']['plugins']['get']('Annotations'),_0x4d6bad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c2d12=Array['from'](_0x5975c6['activeAnnotations'],_0x3747c6=>_0x3747c6['innerView'])['filter'](_0x46d319=>this['_viewToController']['has'](_0x46d319)),_0xa3737c=[];for(const _0x4cb622 of _0x5c2d12){const _0x53ae0d=this['_viewToController']['get'](_0x4cb622)['model']['getAllAdjacentSuggestions']();_0xa3737c['push'](..._0x53ae0d['reduce']((_0x4e2ce9,_0xc25b51)=>[..._0x4e2ce9,..._0xc25b51['getMarkerNames']()],[]));}_0x4d6bad['activeMarkers']=_0xa3737c;}['_addUIComponentsToFactory'](){const _0xfa518a=this['editor'],_0x2415f8=_0xfa518a['locale'],_0x27b163=o(_0x2415f8,'Track\x20changes'),_0x2598d5=new Wt([{'type':'switchbutton','model':new _0x230214({'withText':!0x0,'isToggleable':!0x0,'label':_0x27b163,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x230214({'withText':!0x0,'label':o(_0x2415f8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x230214({'withText':!0x0,'label':o(_0x2415f8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x230214({'withText':!0x0,'label':o(_0x2415f8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x230214({'withText':!0x0,'label':o(_0x2415f8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1a4b5c of _0x2598d5)if(me(_0x1a4b5c)){const _0x224928=_0xfa518a['commands']['get'](_0x1a4b5c['model']['commandName']);_0x1a4b5c['model']['bind']('isOn','isEnabled')['to'](_0x224928,'value','isEnabled');}_0xfa518a['ui']['componentFactory']['add']('trackChanges',_0x6c0351=>this['_createToolbarButton'](_0x6c0351,_0x2598d5,_0x27b163)),_0xfa518a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x404cb6=>this['_createMenuBarMenu'](_0x404cb6,_0x2598d5,_0x27b163));}['_createToolbarButton'](_0x3ea42f,_0x580612,_0x33eefc){const _0xa52145=Qt(_0x3ea42f,_0x16eac9),_0x467220=this['editor']['commands']['get']('trackChanges');_0xa52145['buttonView']['set']({'tooltip':_0x33eefc,'label':_0x33eefc,'icon':he}),_0xa52145['buttonView']['bind']('isOn')['to'](_0x467220,'value'),_0xa52145['buttonView']['on']('execute',()=>{_0x467220['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0xa52145,_0x580612,{'role':'menu'});const _0x2ca30b=[];for(const _0x3c0287 of _0x580612)me(_0x3c0287)&&_0x2ca30b['push'](this['editor']['commands']['get'](_0x3c0287['model']['commandName']));const _0x4876b4=_0xa52145['buttonView'];return _0x4876b4['actionView']['unbind']('isEnabled'),_0x4876b4['arrowView']['unbind']('isEnabled'),_0x4876b4['actionView']['bind']('isEnabled')['to'](_0x467220,'isEnabled'),_0x4876b4['arrowView']['bind']('isEnabled')['toMany'](_0x2ca30b,'isEnabled',(..._0x4cc84a)=>_0x4cc84a['some'](_0x153036=>_0x153036)),_0xa52145['on']('execute',_0xb08044=>{this['editor']['execute'](_0xb08044['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xa52145;}['_createMenuBarMenu'](_0x3375f8,_0x27e736,_0x258ef3){const _0x3ea5ae=new Yt(_0x3375f8),_0x5d1c83=this['editor']['commands']['get']('trackChanges');_0x3ea5ae['buttonView']['set']({'label':_0x258ef3,'icon':he});const _0x7cb204=new Zt(_0x3375f8);for(const _0x130d33 of _0x27e736){if('separator'==_0x130d33['type']){_0x7cb204['items']['add'](new Xt(_0x3375f8));continue;}const _0x4e86f0=new te(_0x3375f8,_0x3ea5ae),_0x537d81=new _0x35f9d2(_0x3375f8),_0x50c4ea=_0x130d33['model'];_0x537d81['bind'](...Object['keys'](_0x50c4ea))['to'](_0x50c4ea),_0x537d81['delegate']('execute')['to'](_0x3ea5ae),_0x537d81['on']('execute',()=>{this['editor']['execute'](_0x50c4ea['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e86f0['children']['add'](_0x537d81),_0x7cb204['items']['add'](_0x4e86f0);}return _0x3ea5ae['bind']('isEnabled')['to'](_0x5d1c83,'isEnabled'),_0x3ea5ae['panelView']['children']['add'](_0x7cb204),_0x3ea5ae;}['_initializeController'](_0x43feb2){const _0x49e53f=this['editor'],_0x27c563=_0x49e53f['config'],_0x5660e2=_0x49e53f['plugins']['get']('Annotations'),_0x13bc7b=_0x49e53f['plugins']['get']('CommentsRepository'),_0x237871=_0x49e53f['plugins']['get']('EditorAnnotations'),_0x1c4680=_0x49e53f['plugins']['get'](_0x39c210)['me'],_0x4fad42=_0x27c563['get']('trackChanges')['SuggestionThreadView'],_0x27c81b=_0x27c563['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2527fd,CommentThreadInputView:_0x4f0234}=_0x49e53f['plugins']['get']('CommentsUI');let _0x360a5d,_0x47ec6f,_0x3503e5;this['_annotationViews']['has'](_0x43feb2['id'])?(_0x47ec6f=this['_annotationViews']['get'](_0x43feb2['id']),_0x360a5d=_0x47ec6f['mainView']):(_0x360a5d=new _0x4fad42(_0x49e53f['locale'],_0x43feb2,_0x1c4680,{'disableComments':this['_disableComments'],'editorConfig':_0x27c563['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x27c563['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x27c563['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x27c563['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x618079(_0x27c563['get']('locale')),'CommentView':_0x27c563['get']('comments')['CommentView'],'CommentsListView':_0x2527fd,'CommentThreadInputView':_0x4f0234,'SuggestionView':_0x27c81b}),_0x360a5d['suggestionView']['acceptButton']['on']('execute',()=>{_0x49e53f['editing']['view']['focus']();}),_0x360a5d['suggestionView']['discardButton']['on']('execute',()=>{_0x49e53f['editing']['view']['focus']();}),_0x47ec6f=_0x5660e2['createAnnotationView'](this['editor']['locale'],_0x360a5d),_0x47ec6f['bind']('isDirty')['to'](_0x360a5d,'isDirty'),_0x47ec6f['bind']('length')['to'](_0x360a5d),_0x47ec6f['bind']('type')['to'](_0x360a5d,'type',_0x1aaa21=>'suggestion-'+_0x1aaa21),_0x360a5d['on']('escape',()=>{_0x3503e5['fire']('escape');}),this['_annotationViews']['set'](_0x43feb2['id'],_0x47ec6f));const _0x10d732=_0x13bc7b['createCommentThreadController'](_0x43feb2['commentThread'],_0x360a5d),_0x4f76c3=new ae(_0x49e53f,_0x43feb2,_0x360a5d,_0x10d732),_0x208872=_0x43feb2['getAllAdjacentSuggestions']()['filter'](_0x5be318=>_0x5be318['isInContent']);_0x360a5d['descriptionParts']=_0x49e53f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x208872),this['_suggestionToController']['set'](_0x43feb2,_0x4f76c3),this['_viewToController']['set'](_0x360a5d,_0x4f76c3),_0x3503e5=_0x5660e2['createAnnotation']({'view':_0x47ec6f,'target':()=>{const _0x4e4a26=[],_0x296ad0=_0x43feb2['getAllAdjacentSuggestions']()['filter'](_0x360766=>_0x360766['isInContent']);for(const _0x5883ed of _0x296ad0)_0x4e4a26['push'](..._0x5883ed['getMarkers']());return _0x112ab5(_0x49e53f['editing'],_0x4e4a26);},'type':()=>'suggestion-'+_0x4f76c3['view']['type']}),_0x13bc7b['_bindAnnotationToEditors'](_0x360a5d,_0x3503e5),_0x5660e2['add'](_0x3503e5),_0x237871['registerAnnotation'](_0x3503e5);}['_destroyController'](_0x3644d0){const _0x919859=this['editor']['plugins']['get']('CommentsRepository'),_0x5183c1=this['editor']['plugins']['get']('Annotations'),_0x5d4cfb=this['_suggestionToController']['get'](_0x3644d0),_0x378632=_0x5d4cfb['view'],_0x5870ed=_0x5183c1['getByInnerView'](_0x378632);_0x919859['_unbindEditors'](_0x378632),_0x5870ed&&_0x5183c1['remove'](_0x5870ed),this['_suggestionToController']['delete'](_0x3644d0),this['_viewToController']['delete'](_0x378632),_0x5d4cfb['destroy']();}['_updateController'](_0x2df095){if(!_0x2df095['isInContent']||!this['_suggestionToController']['has'](_0x2df095))return;const _0x5660e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37b5e9=this['_suggestionToController']['get'](_0x2df095),_0x34a6b3=_0x2df095['getAllAdjacentSuggestions']();_0x37b5e9['view']['descriptionParts']=_0x5660e1['descriptionFactory']['getDescriptions'](_0x34a6b3);}['destroy'](){for(const _0x11e267 of this['_suggestionToController']['keys']())this['_destroyController'](_0x11e267);for(const _0x2fca45 of this['_annotationViews']['values']())_0x2fca45['mainView']['destroy']();super['destroy']();}}function me(_0x397613){return'model'in _0x397613;}class k extends _0x5a19c7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x35979f){this['editor']['plugins']['get'](p)['adapter']=_0x35979f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3b5b11){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3b5b11);}['getSuggestions']({skipNotAttached:_0x169606=!0x1,toJSON:_0x129c94=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x169606,'toJSON':_0x129c94});}['getSuggestion'](_0x21160c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x21160c);}}const T=['Pagination'];class P extends _0x5a19c7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x44ddeb=this['editor'];if(_0x44ddeb['config']['define']('trackChangesData.editorCreator',_0x559cf6=>{const _0x3e0352=_0x44ddeb['model']['document']['getRootNames']()['reduce']((_0x45da7b,_0x2160b6)=>(_0x45da7b[_0x2160b6]='',_0x45da7b),{});return _0x44ddeb['constructor']['create'](_0x3e0352,_0x559cf6);}),'function'!=typeof _0x44ddeb['config']['get']('trackChangesData')['editorCreator'])throw new _0x4a7393('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x44e3b4){return N(this['editor'],!0x0,_0x44e3b4);}['getDataWithDiscardedSuggestions'](_0x22c67b){return N(this['editor'],!0x1,_0x22c67b);}}class D extends _0x5a19c7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x537a84){super(_0x537a84),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x1e03cd){return void 0x0!==_0x1e03cd['getRootsAttributes'];}async function N(_0x24e19c,_0x2002fb,_0x4927b6){const _0x309e65=_0x19a12e(_0x24e19c,T);_0x309e65['plugins']['push'](p,D),_0x309e65['rootsAttributes']=v(_0x24e19c)?_0x24e19c['getRootsAttributes']():void 0x0;const _0x4da289=document['createDocumentFragment'](),_0x140294=_0x24e19c['config']['get']('trackChangesData')['editorCreator'],_0xd7dacb=await _0x140294(_0x309e65,()=>function(_0xf914be){const _0x598851=document['createElement']('div');return _0xf914be['appendChild'](_0x598851),_0x598851;}(_0x4da289));!function(_0x2a1673,_0x189cae){const _0x30276f=_0x2a1673['model']['document']['getRootNames']()['reduce']((_0x589f90,_0x40bf26)=>(_0x589f90[_0x40bf26]=_0x2a1673['data']['get']({'rootName':_0x40bf26}),_0x589f90),{}),_0x1f884d=_0x2a1673['plugins']['get']('Users')['users']['map'](_0x3116bc=>({'id':_0x3116bc['id'],'name':_0x3116bc['name']})),_0x338745=_0x2a1673['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1e6a89=_0x2a1673['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30eb16=_0x189cae['plugins']['get']('Users'),_0x28e28f=_0x189cae['plugins']['get']('TrackChangesEditing'),_0x3ce983=_0x189cae['plugins']['get']('CommentsRepository');for(const _0x36c5e7 of _0x3ce983['getCommentThreads']())_0x36c5e7['remove']();for(const _0x15ae2b of _0x1f884d)_0x30eb16['getUser'](_0x15ae2b['id'])||_0x30eb16['addUser'](_0x15ae2b);_0x30eb16['me']||_0x30eb16['useAnonymousUser']();for(const _0x5b8ca0 of _0x1e6a89)_0x3ce983['addCommentThread'](_0x5b8ca0);for(const _0x595ca2 of _0x338745)_0x28e28f['addSuggestionData'](_0x595ca2);_0x189cae['data']['set'](_0x30276f);}(_0x24e19c,_0xd7dacb),_0xd7dacb['execute'](_0x2002fb?'acceptAllSuggestions':'discardAllSuggestions');const _0x2fa40d=v(_0xd7dacb)?_0xd7dacb['getFullData'](_0x4927b6):_0xd7dacb['data']['get'](_0x4927b6);return await _0xd7dacb['destroy'](),_0x2fa40d;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|