@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241019.0 → 0.0.0-nightly-20241021.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +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
|
-
_0x349c89(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4db4e5,_0x424fa9){super(),this['id']=_0x424fa9['id'],this['type']=_0x424fa9['type'],this['subType']=_0x424fa9['subType']||null,this['author']=_0x424fa9['author'],this['creator']=_0x424fa9['creator']||_0x424fa9['author'],this['isExternal']=Boolean(_0x424fa9['attributes']&&_0x424fa9['attributes']['@external']),this['data']=null,this['_model']=_0x4db4e5,this['_onAccept']=_0x424fa9['onAccept'],this['_onDiscard']=_0x424fa9['onDiscard'],this['_onAttributesChange']=_0x424fa9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x424fa9['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 _0x364081=this;for(;_0x364081['previous'];)_0x364081=_0x364081['previous'];return _0x364081;}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'](_0x41f0e0){this['_markerNames']['add'](_0x41f0e0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1b4f73=>this['_model']['markers']['get'](_0x1b4f73))['filter'](_0x2e5ada=>_0x2e5ada);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x7aca6c=>{for(const _0x98eb1b of this['getMarkers']())_0x7aca6c['removeMarker'](_0x98eb1b);}),this['_markerNames']['clear']();}['removeMarker'](_0x1a0284){this['_model']['change'](_0x23585a=>{_0x23585a['removeMarker'](_0x1a0284);}),this['_markerNames']['delete'](_0x1a0284);}['addRange'](_0x3b7cfe){const _0x2f888a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2f888a),this['_model']['change'](_0x56fd7d=>{_0x56fd7d['addMarker'](_0x2f888a,{'range':_0x3b7cfe,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x29df8a){for(const _0x340e63 of this['getRanges']())if(_0x340e63['isIntersecting'](_0x29df8a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2841de=>_0x2841de['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x596df5,_0x2cfe8b)=>[..._0x596df5,..._0x2cfe8b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5506e3=this['getRanges']();if(0x1!=_0x5506e3['length'])return null;const _0x88b16e=_0x5506e3[0x0],_0x4a5f75=_0x88b16e['start']['nodeAfter'],_0x3fa121=_0x88b16e['end']['nodeBefore'];return _0x4a5f75 instanceof _0x3d9d9f?_0x4a5f75!=_0x3fa121?null:_0x4a5f75: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 _0xd0f10e=[];let _0x1b3a2b=this['head'];for(;_0x1b3a2b;)_0xd0f10e['push'](_0x1b3a2b),_0x1b3a2b=_0x1b3a2b['next'];return _0xd0f10e;}['setAttribute'](_0x502bae,_0xa7b82f){const _0x13cac9=_0x18ab1(this['attributes']);_0x4fe76f(_0x13cac9,_0x502bae,_0xa7b82f),_0x24b8a4(_0x13cac9,this['attributes'])||(this['attributes']=_0x13cac9,this['_onAttributesChange'](_0x13cac9));}['removeAttribute'](_0x202927){const _0x27193c=_0x18ab1(this['attributes']);_0x3653b6(_0x27193c,_0x202927),_0x24b8a4(_0x27193c,this['attributes'])||(this['attributes']=_0x27193c,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 _0x5b34d0()['substr'](0x1,0x5);}}function o(_0x43987e,_0x34860c,_0x13bc7c){const t=_0x43987e['t'];switch(_0x34860c){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',_0x13bc7c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x13bc7c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x13bc7c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x13bc7c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x13bc7c);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',_0x13bc7c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x13bc7c);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',_0x13bc7c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x13bc7c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x13bc7c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x13bc7c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x13bc7c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x13bc7c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x13bc7c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x13bc7c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x13bc7c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x13bc7c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x13bc7c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x13bc7c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x13bc7c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x13bc7c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x13bc7c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x13bc7c);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'},_0x13bc7c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x13bc7c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x13bc7c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x13bc7c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x13bc7c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x13bc7c);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'},_0x13bc7c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x13bc7c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x13bc7c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x13bc7c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x13bc7c);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'},_0x13bc7c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x13bc7c);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'},_0x13bc7c);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'},_0x13bc7c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x13bc7c);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'},_0x13bc7c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x13bc7c);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'},_0x13bc7c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x13bc7c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x13bc7c);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'},_0x13bc7c);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'},_0x13bc7c);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'},_0x13bc7c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x13bc7c);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'},_0x13bc7c);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'},_0x13bc7c);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'},_0x13bc7c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x34860c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2d9552,_0x36097d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2d9552,this['_locale']=_0x36097d;}['getDescriptions'](_0x7f691){const _0x4181cd=[],_0x57cb36=new Set(),_0x5741b9=new Set();for(let _0xab70c6=0x0;_0xab70c6<_0x7f691['length'];_0xab70c6++){const _0x5e175a=_0x7f691[_0xab70c6];if(!_0x5e175a['isInContent'])continue;const _0x5d3117=this['_handleCustomCallbackDescription'](_0x5e175a);if(_0x5d3117){if(null!=_0x5e175a['subType']){if(_0x57cb36['has'](_0x5e175a['subType']))continue;_0x57cb36['add'](_0x5e175a['subType']);}_0x4181cd['push'](_0x5d3117);}else{if('attribute'!=_0x5e175a['type'])'insertion'!=_0x5e175a['type']&&'deletion'!=_0x5e175a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4181cd,_0x5e175a,_0x7f691[_0xab70c6+0x1]);else{const _0x9e6257=_0x5e175a['data']['key'];if(_0x5741b9['has'](_0x9e6257))continue;_0x5741b9['add'](_0x5e175a['data']['key']),_0x9e6257==m?this['_handleRenameSuggestionDescription'](_0x4181cd,_0x5e175a):this['_handleAttributeSuggestionDescription'](_0x4181cd,_0x5e175a);}}}return this['_resolveDescriptionItems'](_0x4181cd);}['registerDescriptionCallback'](_0x4a4e15){this['_customCallbacks']['push'](_0x4a4e15);}['registerElementLabel'](_0x14f5e8,_0xe82146,_0x5376c9=_0x19cb17['normal']){'function'==typeof _0x14f5e8?_0x4312dc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x14f5e8,'label':_0xe82146,'priority':_0x5376c9}):this['_itemLabels']['set'](_0x14f5e8,_0xe82146);}['registerAttributeLabel'](_0x3431db,_0x29b49b){this['_attributeLabels']['set'](_0x3431db,_0x29b49b);}['getItemLabel'](_0x5ae353,_0x37c650=0x1){let _0x126ef5;for(const _0x1c5841 of this['_itemLabelsCallbacks'])if(_0x1c5841['matchingCallback'](_0x5ae353)){_0x126ef5=_0x1c5841['label'];break;}return _0x126ef5||(_0x126ef5=this['_itemLabels']['get'](_0x5ae353['name'])),_0x126ef5?_0x126ef5(_0x37c650):0x1!==_0x37c650?_0x37c650+'\x20'+_0x5ae353['name']+'s':''+_0x5ae353['name'];}['_addDescriptionItems'](_0x54575e,_0x319796){const _0x524e60=_0x319796['getFirstRange']()['getWalker'](),_0x54ed0b='insertion'==_0x319796['type']?'add':'remove';for(const _0x5ca1a5 of _0x524e60){const _0x30b1f8=_0x5ca1a5['item'],_0x14b6e5=_0x54575e[_0x54575e['length']-0x1];if(_0x30b1f8['is']('$textProxy'))_0x14b6e5&&_0x14b6e5['type']['indexOf']('Container')>-0x1&&_0x54575e['pop'](),_0x14b6e5&&'text'==_0x14b6e5['type']?_0x14b6e5[_0x54ed0b]+=_0x30b1f8['data']:_0x54575e['push']({'type':'text','add':'add'==_0x54ed0b?_0x30b1f8['data']:'','remove':'remove'==_0x54ed0b?_0x30b1f8['data']:''});else{if(this['_schema']['isObject'](_0x30b1f8)){const _0x1e8a03=_0x30b1f8;if(_0x14b6e5&&_0x14b6e5['type']['indexOf']('Container')>-0x1&&_0x54575e['pop'](),'elementEnd'==_0x5ca1a5['type'])continue;_0x14b6e5&&_0x14b6e5['type']==_0x54ed0b+'Object'&&_0x14b6e5['element']['name']==_0x1e8a03['name']?_0x14b6e5['quantity']++:_0x54575e['push']({'type':_0x54ed0b+'Object','element':_0x1e8a03,'quantity':0x1}),_0x524e60['skip'](_0x69dbba=>!('elementEnd'==_0x69dbba['type']&&_0x69dbba['item']==_0x30b1f8));}else{if(this['_schema']['checkChild'](_0x30b1f8,'$text')||_0x30b1f8['is']('element','softBreak')){const _0x33345b=_0x30b1f8;if('add'==_0x54ed0b&&'elementStart'==_0x5ca1a5['type']||'remove'==_0x54ed0b&&'elementEnd'==_0x5ca1a5['type'])continue;if(_0x14b6e5&&-0x1==_0x14b6e5['type']['indexOf']('Container')){'text'==_0x14b6e5['type']&&(_0x14b6e5[_0x54ed0b]+='\x0a');continue;}let _0x29fdf1;if(_0x29fdf1='add'==_0x54ed0b?_0x33345b['nextSibling']&&!this['_schema']['isObject'](_0x33345b['nextSibling'])?_0x33345b['nextSibling']:null:_0x33345b['previousSibling']&&!this['_schema']['isObject'](_0x33345b['previousSibling'])?_0x33345b['previousSibling']:null,_0x33345b['isEmpty']||_0x29fdf1&&_0x29fdf1['isEmpty']){const _0x361039=_0x29fdf1&&_0x29fdf1['isEmpty']?_0x29fdf1:_0x33345b;_0x14b6e5&&_0x14b6e5['type']==_0x54ed0b+'EmptyContainer'&&_0x14b6e5['element']['name']==_0x361039['name']?_0x14b6e5['quantity']++:_0x54575e['push']({'type':_0x54ed0b+'EmptyContainer','element':_0x361039,'quantity':0x1});}else _0x54575e['push']({'type':_0x54ed0b+'Container','element':_0x33345b});}}}}}['_resolveDescriptionItems'](_0x525a47){const _0x435e89=this['_locale'],_0x214f14=[],_0x4d63af=[],_0x25bed0=[];for(const _0x43506d of _0x525a47)switch(_0x43506d['type']){case'text':if(_0x43506d['add']=_0x43506d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x43506d['remove']=_0x43506d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x43506d['add']&&''!=_0x43506d['remove']){_0x214f14['push']({'type':'replace','content':o(_0x435e89,'REPLACE_TEXT',['\x22'+_0x43506d['remove']+'\x22','\x22'+_0x43506d['add']+'\x22'])});continue;}if(null!=_0x43506d['add']['match'](/^ +$/)){_0x214f14['push']({'type':'insertion','content':o(_0x435e89,'*Insert:*\x20%0',o(_0x435e89,'ELEMENT_SPACE',_0x43506d['add']['length']))});continue;}if(null!=_0x43506d['remove']['match'](/^ +$/)){_0x214f14['push']({'type':'deletion','content':o(_0x435e89,'*Remove:*\x20%0',o(_0x435e89,'ELEMENT_SPACE',_0x43506d['remove']['length']))});continue;}if(''!=_0x43506d['add']){_0x214f14['push']({'type':'insertion','content':o(_0x435e89,'*Insert:*\x20%0','\x22'+_0x43506d['add']+'\x22')});continue;}_0x214f14['push']({'type':'deletion','content':o(_0x435e89,'*Remove:*\x20%0','\x22'+_0x43506d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x214f14['push']({'type':'insertion','content':o(_0x435e89,'*Insert:*\x20%0',this['getItemLabel'](_0x43506d['element'],_0x43506d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x214f14['push']({'type':'deletion','content':o(_0x435e89,'*Remove:*\x20%0',this['getItemLabel'](_0x43506d['element'],_0x43506d['quantity']))});continue;case'addContainer':_0x214f14['push']({'type':'insertion','content':o(_0x435e89,'*Split:*\x20%0',this['getItemLabel'](_0x43506d['element'],_0x43506d['quantity']))});continue;case'removeContainer':_0x214f14['push']({'type':'deletion','content':o(_0x435e89,'*Merge:*\x20%0',this['getItemLabel'](_0x43506d['element'],_0x43506d['quantity']))});continue;case'addFormat':_0x4d63af['push'](_0x43506d['key']);continue;case'removeFormat':_0x25bed0['push'](_0x43506d['key']);continue;default:_0x214f14['push'](_0x43506d);}if(_0x4d63af['length']){const _0x30e667=_0x4d63af['map'](_0x3bc2bd=>this['_attributeLabels']['has'](_0x3bc2bd)?this['_attributeLabels']['get'](_0x3bc2bd):_0x3bc2bd)['join'](',\x20');_0x214f14['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x30e667)});}if(_0x25bed0['length']){const _0x5a7049=_0x25bed0['map'](_0x133e3f=>this['_attributeLabels']['has'](_0x133e3f)?this['_attributeLabels']['get'](_0x133e3f):_0x133e3f)['join'](',\x20');_0x214f14['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5a7049)});}return _0x214f14;}['_handleCustomCallbackDescription'](_0x48eb2d){for(const _0x3f398d of this['_customCallbacks']){const _0x58d2af=_0x3f398d(_0x48eb2d);if(_0x58d2af&&'type'in _0x58d2af)return _0x58d2af;}}['_handleAttributeSuggestionDescription'](_0x527cd5,_0x582784){const _0xaf4ff3=_0x582784['data'],_0x36fe8f=void 0x0===_0xaf4ff3['newValue']?'removeFormat':'addFormat';_0x527cd5['push']({'type':_0x36fe8f,'key':_0xaf4ff3['key']});}['_handleRenameSuggestionDescription'](_0x5b4772,_0x354684){_0x5b4772['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x354684['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xec2f0d,_0x56826c,_0x3ae70d){if(this['_addDescriptionItems'](_0xec2f0d,_0x56826c),_0x3ae70d&&_0x3ae70d['getFirstRange']()&&!_0x56826c['getFirstRange']()['end']['isEqual'](_0x3ae70d['getFirstRange']()['start'])){const _0x1b2ce2=_0xec2f0d[_0xec2f0d['length']-0x1],_0x3aedf7='insertion'==_0x56826c['type']?'add':'remove';_0x1b2ce2&&'text'==_0x1b2ce2['type']&&(_0x1b2ce2[_0x3aedf7]+='\x0a');}}}class V extends _0x9c8a48{['afterInit'](){const _0x2aea4f=this['editor'],_0x39762f=_0x2aea4f['plugins']['get']('TrackChangesEditing');_0x2aea4f['commands']['get']('showAIAssistant')&&_0x39762f['enableCommand']('showAIAssistant');}}class U extends _0x9c8a48{['afterInit'](){const _0x421d41=this['editor'],_0x5c496e=_0x421d41['locale'];if(!_0x421d41['plugins']['has']('AlignmentEditing'))return;const _0xfd308f=_0x421d41['plugins']['get']('TrackChangesEditing');_0xfd308f['enableDefaultAttributesIntegration']('alignment'),_0xfd308f['registerBlockAttribute']('alignment'),_0xfd308f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5c496e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18c7aa=this['editor'],_0x283c40=_0x18c7aa['locale'];_0x18c7aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d2910=>{if('formatBlock'!=_0x2d2910['type'])return;const {data:_0x335766}=_0x2d2910;if(_0x335766&&'alignment'==_0x335766['commandName']){const _0x137f0a=_0x335766['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x283c40,'*Format:*\x20%0',function(_0x89c46d){switch(_0x89c46d){case'left':return o(_0x283c40,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x283c40,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x283c40,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x283c40,'FORMAT_JUSTIFY_TEXT');}}(_0x137f0a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x9c8a48{['afterInit'](){const _0x2ec929=this['editor'],_0x1899f2=_0x2ec929['plugins']['get']('TrackChangesEditing'),_0x12b943=_0x2ec929['locale'];for(const _0x384ddd of ti){if(!_0x2ec929['plugins']['has'](_0x384ddd))continue;const _0x27922a=_0x384ddd['slice'](0x0,-0x7)['toLowerCase'](),_0x48ce36='FORMAT_'+_0x27922a['toUpperCase']();_0x1899f2['enableDefaultAttributesIntegration'](_0x27922a),_0x1899f2['registerInlineAttribute'](_0x27922a),_0x1899f2['descriptionFactory']['registerAttributeLabel'](_0x27922a,o(_0x12b943,_0x48ce36));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22853e=this['editor'],_0x45f92c=_0x22853e['locale'],_0x71261f=_0x22853e['plugins']['get']('TrackChangesEditing');function _0x310886(_0x2df28a,_0x42c9b9){_0x71261f['descriptionFactory']['registerDescriptionCallback'](_0x3c5f87=>{if('formatInline'!=_0x3c5f87['type'])return;const {data:_0x58905d}=_0x3c5f87;return _0x58905d&&_0x58905d['commandName']===_0x2df28a?_0x58905d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x45f92c,'*Format:*\x20%0',_0x42c9b9)}:{'type':'format','content':o(_0x45f92c,'*Remove\x20format:*\x20%0',_0x42c9b9)}:void 0x0;});}_0x310886('bold',o(_0x45f92c,'FORMAT_BOLD')),_0x310886('italic',o(_0x45f92c,'FORMAT_ITALIC')),_0x310886('underline',o(_0x45f92c,'FORMAT_UNDERLINE')),_0x310886('code',o(_0x45f92c,'FORMAT_CODE')),_0x310886('strikethrough',o(_0x45f92c,'FORMAT_STRIKETHROUGH')),_0x310886('subscript',o(_0x45f92c,'FORMAT_SUBSCRIPT')),_0x310886('superscript',o(_0x45f92c,'FORMAT_SUPERSCRIPT'));}}class F extends _0x9c8a48{['afterInit'](){const _0x5019f7=this['editor'],_0x193ce6=_0x5019f7['locale'];if(!_0x5019f7['plugins']['has']('BlockQuoteEditing'))return;const _0x52d4a9=_0x5019f7['plugins']['get']('TrackChangesEditing'),_0x5c546e=this['editor']['commands']['get']('blockQuote');_0x52d4a9['enableCommand']('blockQuote',(_0xce2b6a,_0x23db18={})=>{const _0x274ea5=this['editor']['model']['document']['selection'],_0x4c2e0e=_0x23db18&&void 0x0!==_0x23db18['forceValue']?_0x23db18['forceValue']:!_0x5c546e['value'];let _0x49232a=[];if(_0x4c2e0e){const _0x4108f8=Array['from'](_0x274ea5['getSelectedBlocks']())['filter'](_0xc613d9=>oo(_0xc613d9)||function(_0x28c155,_0x28f725){const _0x2950a1=_0x28f725['checkChild'](_0x28c155['parent'],'blockQuote'),_0x98dcf8=_0x28f725['checkChild'](['$root','blockQuote'],_0x28c155);return _0x2950a1&&_0x98dcf8;}(_0xc613d9,this['editor']['model']['schema']));_0x49232a=to(_0x4108f8,_0x5019f7['model']);}else{const _0x49d3b0=Array['from'](_0x274ea5['getSelectedBlocks']())['filter'](_0x3b1299=>oo(_0x3b1299));_0x49232a=to(_0x49d3b0,_0x5019f7['model']);}_0x5019f7['model']['change'](()=>{for(const _0x2498c1 of _0x49232a)_0x52d4a9['markBlockFormat'](_0x2498c1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4c2e0e}]});});}),_0x52d4a9['descriptionFactory']['registerDescriptionCallback'](_0x5daa8f=>{const {data:_0x307eef}=_0x5daa8f;if(_0x307eef&&'blockQuote'==_0x307eef['commandName']){const _0x416224=o(_0x193ce6,'ELEMENT_BLOCK_QUOTE');return _0x307eef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x193ce6,'*Set\x20format:*\x20%0',_0x416224)}:{'type':'format','content':o(_0x193ce6,'*Remove\x20format:*\x20%0',_0x416224)};}});}}function oo(_0x31d97a){return'blockQuote'==_0x31d97a['parent']['name'];}class L extends _0x9c8a48{['afterInit'](){const _0x4788f3=this['editor'];_0x4788f3['plugins']['has']('CaseChange')&&(_0x4788f3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4788f3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4788f3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x9c8a48{['afterInit'](){const _0x2415da=this['editor'];_0x2415da['commands']['get']('ckbox')&&_0x2415da['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x9c8a48{['afterInit'](){const _0x3bdc62=this['editor'];if(!_0x3bdc62['plugins']['has']('CodeBlock'))return;const _0x20b231=_0x3bdc62['plugins']['get']('TrackChangesEditing'),_0x2d3c34=_0x3bdc62['locale'],_0x4ba499=_0x3bdc62['config']['get']('codeBlock')['languages'],_0x4522f5=_0x3bdc62['commands']['get']('codeBlock');_0x20b231['enableCommand']('indentCodeBlock'),_0x20b231['enableCommand']('outdentCodeBlock'),_0x20b231['enableCommand']('codeBlock',(_0x27852d,_0x1457ab={})=>{const _0x1f7c77=_0x3bdc62['model'],_0x4e653a=_0x3bdc62['model']['document']['selection'],_0x563fbe=_0x1457ab&&void 0x0!==_0x1457ab['forceValue']?_0x1457ab['forceValue']:!_0x4522f5['value'];let _0x2f68ae;_0x1457ab['language']||(_0x1457ab['language']=_0x4ba499[0x0]['language']),_0x2f68ae=_0x563fbe?Array['from'](_0x4e653a['getSelectedBlocks']())['filter'](_0x30cbf4=>eo(_0x30cbf4)||function(_0x32e89b,_0x4cc5cf){if(_0x32e89b['is']('rootElement')||_0x4cc5cf['isLimit'](_0x32e89b))return!0x1;return _0x4cc5cf['checkChild'](_0x32e89b['parent'],'codeBlock');}(_0x30cbf4,_0x1f7c77['schema'])):Array['from'](_0x4e653a['getSelectedBlocks']())['filter'](_0x233ee5=>eo(_0x233ee5));const _0x4b36d0=to(_0x2f68ae,_0x1f7c77);_0x1f7c77['change'](()=>{for(const _0x385c35 of _0x4b36d0)_0x20b231['markBlockFormat'](_0x385c35,{'commandName':'codeBlock','commandParams':[{..._0x1457ab,'forceValue':_0x563fbe}],'formatGroupId':'blockName'});});}),(_0x20b231['descriptionFactory']['registerElementLabel']('codeBlock',_0x597b3a=>o(_0x2d3c34,'ELEMENT_CODE_BLOCK',_0x597b3a)),_0x20b231['descriptionFactory']['registerDescriptionCallback'](_0x2a8420=>{if('formatBlock'!=_0x2a8420['type'])return;const _0x10d0c0=_0x2d3c34['t'],{data:_0x5d88cc}=_0x2a8420;if(!_0x5d88cc||'codeBlock'!=_0x5d88cc['commandName'])return;const _0x479688=_0x5d88cc['commandParams'][0x0]['language'],_0xf05011=_0x10d0c0(_0x4ba499['find'](_0x33f728=>_0x33f728['language']===_0x479688)['label'])['toLowerCase']();return _0x5d88cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d3c34,'*Set\x20format:*\x20%0',o(_0x2d3c34,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xf05011+')')}:{'type':'format','content':o(_0x2d3c34,'*Remove\x20format:*\x20%0',o(_0x2d3c34,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x45b449){return'codeBlock'==_0x45b449['name'];}class q extends _0x9c8a48{['afterInit'](){const _0x5dd01e=this['editor'];if(!_0x5dd01e['plugins']['has']('CommentsEditing'))return;_0x5dd01e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x482d01,_0x45b279,_0x13f716){const _0x99e72b=[];for(const _0x17370e of _0x45b279['getItems']())_0x17370e['hasAttribute'](_0x482d01)&&_0x99e72b['push'](_0x13f716['createRangeOn'](_0x17370e));return _0x99e72b;}function _e(_0x5173da,_0x1c713c,{showActiveMarker:_0x8c2bf6=!0x0}={}){const _0xb7b63f=_0x5173da['plugins']['get']('TrackChangesEditing');return(_0x40366e,_0x334724,_0x31a470)=>{if(!_0x31a470['consumable']['test'](_0x334724['markerRange'],_0x40366e['name']))return;const _0x53200b=_0x334724['markerRange']['getWalker'](),_0xb8f5d3=_0x334724['markerRange']['start'],_0x1a6eed=_0x5173da['model']['schema'];let _0x546616=null,_0x530dda=null,_0x335698=!0x1,_0x3a43a2=!0x1;for(const _0x4b882b of _0x53200b){const _0x3ccc01=_0x4b882b['item'];_0x335698=_0x335698||_0x1a6eed['isContent'](_0x3ccc01);const _0x1f6b9a=_0x31a470['mapper']['toViewElement'](_0x3ccc01);if(_0x1f6b9a&&_0x1f6b9a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4b882b['type']&&(_0x1a6eed['isBlock'](_0x3ccc01)&&!_0x1a6eed['isLimit'](_0x3ccc01)&&(_0x3ccc01['nextSibling']||_0xb8f5d3['isAtEnd']?_0x546616&&_0x546616['parent']==_0x3ccc01||(_0x546616=_0x3ccc01,_0x59760d(_0x4b882b['previousPosition']),_0x3a43a2=!0x0):_0x530dda=_0x530dda||_0x4b882b['previousPosition']));}function _0x59760d(_0x42355c){const {authorId:_0x2d0941}=_0xb7b63f['_splitMarkerName'](_0x334724['markerName']),_0x58800a=_0x31a470['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c713c,'data-author-id':_0x2d0941}),_0x39459c=_0x31a470['mapper']['toViewPosition'](_0x42355c);_0x8c2bf6&&_0xb7b63f['activeMarkers']['includes'](_0x334724['markerName'])&&_0x31a470['writer']['addClass']('ck-suggestion-marker--active',_0x58800a),_0x31a470['writer']['insert'](_0x39459c,_0x58800a),_0x31a470['mapper']['bindElementToMarker'](_0x58800a,_0x334724['markerName']);}_0x335698||_0x3a43a2||!_0x530dda||_0x59760d(_0x530dda);};}class z extends _0x9c8a48{static get['requires'](){return[_0x29f30d];}['init'](){const _0x1d98ff=this['editor'],_0x591d13=_0x1d98ff['plugins']['get']('TrackChangesEditing');_0x591d13['enableCommand']('delete');const _0x59a152=_0x1d98ff['commands']['get']('deleteForward');_0x591d13['enableCommand']('deleteForward',(_0x168527,_0x18c5b9={})=>{const _0x540a63=_0x1d98ff['model']['createSelection'](_0x1d98ff['model']['document']['selection']);_0x540a63['isCollapsed']&&_0x1d98ff['model']['modifySelection'](_0x540a63,{'direction':'forward','unit':_0x18c5b9['unit']});const _0x333f98=_0x540a63['getFirstRange'](),_0x3b93b5=_0x7a70a6['fromRange'](_0x333f98);let _0x5d72e4;_0x168527(_0x18c5b9),_0x5d72e4='$graveyard'==_0x3b93b5['root']['rootName']?_0x1d98ff['model']['createRange'](_0x333f98['start']):_0x1d98ff['model']['createRange'](_0x3b93b5['start'],_0x3b93b5['end']),_0x3b93b5['detach'](),_0x1d98ff['model']['enqueueChange'](_0x59a152['buffer']['batch'],_0x2ceffe=>{_0x59a152['buffer']['lock'](),_0x2ceffe['setSelection'](_0x2ceffe['createRange'](_0x5d72e4['end'])),_0x59a152['buffer']['unlock']();});}),_0x1d98ff['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1d98ff,'merge'),{'priority':'high'}),_0x1d98ff['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x11ade8,_0x53cfe6,_0x245afa)=>{_0x245afa['options']['showSuggestionHighlights']&&_e(_0x1d98ff,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x11ade8,_0x53cfe6,_0x245afa);},{'priority':'high'}),_0x1d98ff['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4d15e6,_0x44cc2d,_0x15c4e8)=>{const _0x2fc47b=_0x15c4e8['mapper']['markerNameToElements'](_0x44cc2d['markerName']);if(_0x2fc47b){for(const _0x991a1 of _0x2fc47b)_0x991a1['is']('uiElement')&&(_0x15c4e8['mapper']['unbindElementFromMarkerName'](_0x991a1,_0x44cc2d['markerName']),_0x15c4e8['writer']['remove'](_0x991a1));}},{'priority':'high'});}}class K extends _0x9c8a48{['afterInit'](){const _0x32e194=this['editor'];if(!_0x32e194['plugins']['has']('ListEditing'))return;const _0xd63ddd=_0x32e194['locale'],_0xd2e16e=_0x32e194['plugins']['get']('TrackChangesEditing'),_0x1a1840=_0x32e194['plugins']['has']('TodoListEditing'),_0x404e77=!!_0x32e194['config']['get']('list.multiBlock');function _0x30574f(_0x23b0ad){return{'type':'format','content':''+o(_0xd63ddd,'*Set\x20format:*\x20%0',_0x23b0ad)};}function _0x14ccdf(_0x512ed8){return{'type':'format','content':''+o(_0xd63ddd,'*Remove\x20format:*\x20%0',_0x512ed8)};}_0xd2e16e['enableDefaultAttributesIntegration']('numberedList'),_0xd2e16e['enableDefaultAttributesIntegration']('bulletedList'),_0xd2e16e['enableDefaultAttributesIntegration']('customNumberedList'),_0xd2e16e['enableDefaultAttributesIntegration']('customBulletedList'),_0xd2e16e['enableDefaultAttributesIntegration']('indentList'),_0xd2e16e['enableDefaultAttributesIntegration']('outdentList'),_0xd2e16e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xd2e16e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xd2e16e['registerBlockAttribute']('listItemId'),_0xd2e16e['registerBlockAttribute']('listType'),_0xd2e16e['registerBlockAttribute']('listIndent'),_0x404e77&&(_0xd2e16e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xd2e16e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1a1840&&(_0xd2e16e['enableDefaultAttributesIntegration']('todoList'),_0xd2e16e['enableDefaultAttributesIntegration']('checkTodoList'),_0xd2e16e['registerBlockAttribute']('todoListChecked'),_0xd2e16e['descriptionFactory']['registerDescriptionCallback'](_0x544670=>{const {data:_0x3ddfcf}=_0x544670;if(_0x3ddfcf&&'todoListChecked'==_0x3ddfcf['key'])return{'type':'format','content':_0x3ddfcf['newValue']?o(_0xd63ddd,'*Check\x20item*'):o(_0xd63ddd,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x7da278=>{if(_0x7da278['batch']['isUndo'])return!0x1;let _0x1e6fd1=!0x1;const _0x1fb978=_0xd2e16e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d7c9d=>'todoListChecked'===_0xd2e16e['_getAttributeKey'](_0x3d7c9d));for(const _0x252748 of _0x1fb978){'todo'!=_0x252748['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xd2e16e['_findSuggestions'](_0x252748['getFirstRange'](),'attribute')['find'](_0x385f9d=>'listType'===_0xd2e16e['_getAttributeKey'](_0x385f9d['suggestion']))||(_0x7da278['removeMarker'](_0x252748['getFirstMarker']()),_0x1e6fd1=!0x0));}return _0x1e6fd1;})),_0xd2e16e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xd63ddd,'FORMAT_INDENT'));const _0x37973e={'type':'format','content':''};_0xd2e16e['descriptionFactory']['registerDescriptionCallback'](_0x49bef9=>{const {data:_0x55d1fb}=_0x49bef9;if(!_0x55d1fb||'listType'!=_0x55d1fb['key'])return;let _0x19d42f=_0x49bef9['head'];for(;_0x19d42f;){if(_0x19d42f['data']&&(('listStyle'==_0x19d42f['data']['key']||'listMarkerStyle'==_0x19d42f['data']['key'])&&(_0x19d42f['data']['newValue']&&'default'!=_0x19d42f['data']['newValue']||'default'!=_0x19d42f['data']['oldValue']&&!_0x55d1fb['newValue'])||!_0x404e77&&_0x19d42f['data']['key']==m))return _0x37973e;_0x19d42f=_0x19d42f['next'];}if(null==_0x55d1fb['newValue'])switch(_0x55d1fb['oldValue']){case'bulleted':return _0x14ccdf(o(_0xd63ddd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14ccdf(o(_0xd63ddd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14ccdf(o(_0xd63ddd,'ELEMENT_TODO_LIST'));}switch(_0x55d1fb['newValue']){case'bulleted':return _0x30574f(o(_0xd63ddd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30574f(o(_0xd63ddd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30574f(o(_0xd63ddd,'ELEMENT_TODO_LIST'));}}),_0xd2e16e['descriptionFactory']['registerDescriptionCallback'](_0x527b21=>{const {data:_0x4f946a}=_0x527b21;if(_0x4f946a&&'listIndent'==_0x4f946a['key'])return null==_0x4f946a['newValue']||null==_0x4f946a['oldValue']&&0x0==_0x4f946a['newValue']?_0x37973e:void 0x0;}),_0xd2e16e['descriptionFactory']['registerDescriptionCallback'](_0x373344=>{if('attribute'!=_0x373344['type'])return;const {data:_0x535655}=_0x373344;if(!_0x535655||'listItemId'!=_0x535655['key'])return;const _0x1829fb=Ee(_0x373344);return'newValue'==_0x1829fb?{'type':'format','content':o(_0xd63ddd,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1829fb?{'type':'format','content':o(_0xd63ddd,'*Split:*\x20list\x20item')}:_0x37973e;}),_0x32e194['model']['document']['registerPostFixer'](_0x1c9ae1=>this['listItemIdFixer'](_0x1c9ae1)),_0x32e194['model']['document']['registerPostFixer'](_0x3c5716=>this['noTrackChangesFixer'](_0x3c5716)),_0x32e194['model']['document']['on']('change:data',(_0x47cd5b,_0x33c004)=>{if(_0x33c004['isUndo']||!_0x33c004['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2e783d){if(_0x2e783d['batch']['isUndo']||!_0x2e783d['batch']['isLocal'])return!0x1;let _0xe0d358=!0x1;const _0x434531=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7ac5d1=>_0x7ac5d1['data']&&'listItemId'==_0x7ac5d1['data']['key'])['filter'](_0x1fcab8=>_0x1fcab8['data']['newValue']&&_0x1fcab8['data']['oldValue']);for(const _0x4d2f6f of _0x434531)Ee(_0x4d2f6f)||(_0x2e783d['removeMarker'](_0x4d2f6f['getFirstMarker']()),_0xe0d358=!0x0);return _0xe0d358;}['noTrackChangesFixer'](_0x4a9dc9){if(_0x4a9dc9['batch']['isUndo']||!_0x4a9dc9['batch']['isLocal'])return!0x1;const _0x10f008=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x10f008['trackChangesCommand']['value'])return!0x1;let _0xdfff63=!0x1;const _0x49c9d6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x33977b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x106880=>'attribute'==_0x106880['type'])['filter'](_0x25fc9d=>_0x49c9d6['includes'](_0x25fc9d['attributeKey']));if(0x0==_0x33977b['length'])return _0xdfff63;for(const _0x126ddc of _0x33977b){const _0x32ed50=_0x10f008['_findSuggestions'](_0x126ddc['range'],'attribute')['filter'](_0x469a24=>!_0x469a24['meta']['isNextTo'])['map'](_0x502aeb=>_0x502aeb['suggestion'])['filter'](_0x5824c2=>{const _0x20ea61=_0x10f008['_getAttributeKey'](_0x5824c2);return _0x49c9d6['includes'](_0x20ea61);});if(_0x32ed50['length']){for(const _0x428861 of _0x32ed50)_0x4a9dc9['removeMarker'](_0x428861['getFirstMarker']());_0xdfff63=!0x0;}}return _0xdfff63;}['assureChains'](){const _0x50f4de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32468e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x19eb13;const _0x4036b9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x91f778=>{if(_0x91f778['data']['oldRange']||!_0x91f778['data']['newRange'])return null;if(!_0x91f778['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x449ed4}=_0x50f4de['_splitMarkerName'](_0x91f778['name']);if(!_0x50f4de['hasSuggestion'](_0x449ed4))return null;const _0x46baa8=_0x50f4de['getSuggestion'](_0x449ed4);return _0x32468e['includes'](_0x46baa8['data']['key']);})['map'](_0x587ea1=>{const {id:_0x4eda69}=_0x50f4de['_splitMarkerName'](_0x587ea1['name']),_0x8567e8=_0x50f4de['getSuggestion'](_0x4eda69);return _0x19eb13=_0x8567e8['attributes']['groupId'],_0x8567e8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4036b9['size'])return;const _0x2ad2a2=_0x50f4de['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46d417=>'attribute'==_0x46d417['type']&&_0x46d417['data']&&_0x32468e['includes'](_0x46d417['data']['key'])&&_0x46d417['attributes']['groupId']!=_0x19eb13)['map'](_0x220a77=>({'listItem':_0x220a77['getFirstRange']()['start']['nodeAfter'],'groupId':_0x220a77['attributes']['groupId']})),_0x541471=new Set();for(const {groupId:_0x56b4cd,listItem:_0x4c3138}of _0x2ad2a2)_0x4036b9['has'](_0x4c3138)&&_0x541471['add'](_0x56b4cd);for(const _0x46bd17 of _0x50f4de['getSuggestions']())_0x541471['has'](_0x46bd17['attributes']['groupId'])&&_0x46bd17['setAttribute']('groupId',_0x19eb13);}['_supportLegacySuggestions'](){const _0xd2a0a9=this['editor'],_0x454fc5=_0xd2a0a9['locale'],_0x1068ee=_0xd2a0a9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1068ee['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x966e47,_0xb79a19){const _0x11c979=[];for(let _0x28f3ae of _0x966e47)_0x28f3ae['start']['nodeAfter']===_0x28f3ae['end']['parent']&&(_0x28f3ae=_0xd2a0a9['model']['createRange'](_0xd2a0a9['model']['createPositionAt'](_0x28f3ae['start']['nodeAfter'],0x0))),_0x11c979['push'](_0x28f3ae);_0xd2a0a9['model']['change'](_0x1071c2=>{const _0x30de74=_0xd2a0a9['model']['document']['selection'],_0x10b309=Array['from'](_0x30de74['getRanges']())['map'](_0x5e821e=>_0x7a70a6['fromRange'](_0x5e821e));_0x1071c2['setSelection'](_0x11c979),_0xd2a0a9['commands']['get'](_0xb79a19['commandName'])['refresh'](),_0xb79a19['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xd2a0a9['execute'](_0xb79a19['commandName'],..._0xb79a19['commandParams']),_0x1071c2['setSelection'](_0x10b309);for(const _0x17a8bf of _0x10b309)_0x17a8bf['detach']();});}),_0x1068ee['descriptionFactory']['registerElementLabel'](function(_0x419046){const _0x464bf7=!_0xd2a0a9['model']['schema']['isObject'](_0x419046),_0x2e60cf=_0x419046['previousSibling'],_0x29c178=_0x419046['nextSibling'],_0x422e83=_0x419046['getAttribute']('listItemId'),_0x41f5a1=!_0x2e60cf||_0x2e60cf['getAttribute']('listItemId')!==_0x422e83,_0x186c9c=!_0x29c178||_0x29c178['getAttribute']('listItemId')!==_0x422e83;return _0x464bf7&&Boolean(_0x422e83)&&_0x41f5a1&&_0x186c9c;},_0x50a395=>o(_0x454fc5,'ELEMENT_LIST_ITEM',_0x50a395));}['_registerLegacyDescription'](){const _0x58b827=this['editor'],_0x33b7b6=_0x58b827['locale'];function _0x553b70(_0x19df0f){const _0x3dcc55=_0x58b827['commands']['get']('bulletedList')['value'],_0x29d3d1=_0x58b827['commands']['get']('numberedList')['value'];return'numberedList'===_0x19df0f?_0x3dcc55:_0x29d3d1;}_0x58b827['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x47e02d){if('formatBlock'!=_0x47e02d['type'])return;const {data:_0x2cfe22}=_0x47e02d;if(!_0x2cfe22)return;let _0xe9b1db,_0x5b7a10,_0x503ff9,_0x32ac32;switch(_0x2cfe22['commandName']){case'bulletedList':_0x503ff9=_0x2cfe22['commandParams'][0x0]['forceValue'],_0x32ac32=_0x553b70(_0x2cfe22['commandName']),_0xe9b1db=_0x503ff9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x32ac32&&_0x58b827['config']['get']('list.multiBlock')||(_0xe9b1db='*Change\x20to:*\x20%0'),_0x5b7a10={'type':'format','content':o(_0x33b7b6,_0xe9b1db,o(_0x33b7b6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x503ff9=_0x2cfe22['commandParams'][0x0]['forceValue'],_0x32ac32=_0x553b70(_0x2cfe22['commandName']),_0xe9b1db=_0x503ff9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x32ac32&&_0x58b827['config']['get']('list.multiBlock')||(_0xe9b1db='*Change\x20to:*\x20%0'),_0x5b7a10={'type':'format','content':o(_0x33b7b6,_0xe9b1db,o(_0x33b7b6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xe9b1db='*Indent:*\x20%0',_0x5b7a10={'type':'format','content':o(_0x33b7b6,_0xe9b1db,o(_0x33b7b6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xe9b1db=function(_0x2ae71b){const _0x39f98b=_0x2ae71b['getFirstRange']();let _0x31f096=_0x39f98b['start']['nodeAfter'];for(;_0x31f096&&_0x39f98b['containsItem'](_0x31f096);){if(_0x31f096['getAttribute']('listIndent')>0x0)return!0x1;_0x31f096=_0x31f096['nextSibling'];}return!0x0;}(_0x47e02d)?o(_0x33b7b6,'*Format:*\x20remove\x20from\x20%0',o(_0x33b7b6,function(_0x38587d){return'ELEMENT_'+_0x38587d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x47e02d))):o(_0x33b7b6,'*Outdent:*\x20%0',o(_0x33b7b6,'ELEMENT_LIST_ITEM')),_0x5b7a10={'type':'format','content':_0xe9b1db};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2cfe22['multipleBlocks']&&(_0xe9b1db='*Merge:*\x20%0',_0x5b7a10={'type':'deletion','content':o(_0x33b7b6,_0xe9b1db,o(_0x33b7b6,'ELEMENT_LIST_ITEM'))});}return _0x5b7a10;});}}function Ee(_0x65364d){let _0x40b272=_0x65364d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x40b272;){const _0x279424=_0x40b272['getAttribute']('listItemId');if(!_0x279424)return!0x1;if(_0x279424==_0x65364d['data']['newValue'])return'newValue';if(_0x279424==_0x65364d['data']['oldValue'])return'oldValue';_0x40b272=_0x40b272['previousSibling'];}return!0x1;}class pe extends _0x9c8a48{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x120882=this['editor']['config']['get']('list.properties'),_0x39b353=this['editor']['plugins']['get']('TrackChangesEditing');_0x120882['styles']&&(_0x39b353['enableDefaultAttributesIntegration']('listStyle'),_0x39b353['registerBlockAttribute']('listStyle')),_0x120882['reversed']&&(_0x39b353['enableDefaultAttributesIntegration']('listReversed'),_0x39b353['registerBlockAttribute']('listReversed')),_0x120882['startIndex']&&(_0x39b353['enableDefaultAttributesIntegration']('listStart'),_0x39b353['registerBlockAttribute']('listStart'));const _0x43fc98={'type':'format','content':''};_0x39b353['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2b115f=this['editor']['locale'];_0x39b353['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2b115f,'FORMAT_LIST_REVERSED')),_0x39b353['descriptionFactory']['registerDescriptionCallback'](_0x3d1fde=>{const {data:_0x1c2c45}=_0x3d1fde;if(_0x1c2c45&&'listReversed'==_0x1c2c45['key'])return null==_0x1c2c45['newValue']||0x0==_0x1c2c45['newValue']&&null==_0x1c2c45['oldValue']?_0x43fc98:void 0x0;}),_0x39b353['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2b115f,'FORMAT_LIST_START')),_0x39b353['descriptionFactory']['registerDescriptionCallback'](_0x5c19db=>{const {data:_0x5a5d59}=_0x5c19db;if(_0x5a5d59&&'listStart'==_0x5a5d59['key'])return null==_0x5a5d59['newValue']||0x1==_0x5a5d59['newValue']&&null==_0x5a5d59['oldValue']?_0x43fc98:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x19f932=>{if(_0x19f932['batch']['isUndo'])return!0x1;let _0x2868b6=!0x1;const _0xb317d0=_0x39b353['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fe9d4=>{const _0x37e3bc=_0x39b353['_getAttributeKey'](_0x1fe9d4);return'listStart'==_0x37e3bc||'listReversed'==_0x37e3bc;});for(const _0x414754 of _0xb317d0){const _0x1f9891=_0x414754['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1f9891||'customNumbered'==_0x1f9891)continue;_0x39b353['_findSuggestions'](_0x414754['getFirstRange'](),'attribute')['find'](_0x3e2fab=>'listType'==_0x39b353['_getAttributeKey'](_0x3e2fab['suggestion']))||(_0x19f932['removeMarker'](_0x414754['getFirstMarker']()),_0x2868b6=!0x0);}return _0x2868b6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x518a50){const _0x271562=this['editor']['locale'],{data:_0x7102b5}=_0x518a50,_0x1b803b={'type':'format','content':''};if(!_0x7102b5||'listStyle'!=_0x7102b5['key'])return;if(!_0x7102b5['oldValue'])return'default'==_0x7102b5['newValue']?_0x1b803b:{'type':'format','content':''+o(_0x271562,'*Set\x20format:*\x20%0',o(_0x271562,this['_getTranslationKeyForListStyle'](_0x7102b5['newValue'])))};if(!_0x7102b5['newValue']){if('default'==_0x7102b5['oldValue'])return _0x1b803b;let _0x2ca6b4=_0x518a50['head'];for(;_0x2ca6b4;){if(_0x2ca6b4['data']&&'listType'==_0x2ca6b4['data']['key']&&_0x2ca6b4['data']['newValue'])return _0x1b803b;_0x2ca6b4=_0x2ca6b4['next'];}return{'type':'format','content':''+o(_0x271562,'*Remove\x20format:*\x20%0',o(_0x271562,this['_getTranslationKeyForListStyle'](_0x7102b5['oldValue'])))};}if('default'!=_0x7102b5['newValue'])return{'type':'format','content':''+o(_0x271562,'*Set\x20format:*\x20%0',o(_0x271562,this['_getTranslationKeyForListStyle'](_0x7102b5['newValue'])))};let _0x4ee76f=_0x518a50['head'];for(;_0x4ee76f;){if(_0x4ee76f['data']&&'listType'==_0x4ee76f['data']['key']&&_0x4ee76f['data']['newValue']&&_0x4ee76f['data']['oldValue'])return _0x1b803b;_0x4ee76f=_0x4ee76f['next'];}return{'type':'format','content':o(_0x271562,'*Set\x20format:*\x20%0',o(_0x271562,'ELEMENT_'+_0x518a50['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x289bd0=this['editor'],_0x53e733=_0x289bd0['locale'];_0x289bd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd36f7=>{if('formatBlock'!=_0xd36f7['type'])return;const {data:_0x5cb2c8}=_0xd36f7;if(!_0x5cb2c8)return;let _0x351380,_0x39a7d7;switch(_0x5cb2c8['commandName']){case'listStyle':_0x351380='*Change\x20to:*\x20%0',_0x39a7d7={'type':'format','content':o(_0x53e733,_0x351380,o(_0x53e733,this['_getTranslationKeyForListStyle'](_0x5cb2c8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x351380=_0x5cb2c8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x39a7d7={'type':'format','content':o(_0x53e733,_0x351380)};break;case'listStart':_0x351380='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x39a7d7={'type':'format','content':o(_0x53e733,_0x351380,_0x5cb2c8['commandParams'][0x0]['startIndex'])};}return _0x39a7d7;});}['_getTranslationKeyForListStyle'](_0x5e82e5){return'ELEMENT_'+function(_0x13ed74){if(ye['includes'](_0x13ed74))return'bulleted';if(Se['includes'](_0x13ed74))return'numbered';return null;}(_0x5e82e5)['toUpperCase']()+'_LIST_'+_0x5e82e5['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x9c8a48{static get['requires'](){return[_0x29afc3];}['init'](){const _0xd295c0=this['editor'],_0x4b505c=_0xd295c0['plugins']['get']('TrackChangesEditing'),_0x2c4984=_0xd295c0['commands']['get']('enter');_0x4b505c['enableCommand']('enter',()=>{_0xd295c0['model']['change'](_0x215921=>{const _0x3b911c=_0xd295c0['model']['document']['selection'],_0x2c1c43=_0x3b911c['getFirstPosition'](),_0x15832b=_0x7a70a6['fromRange'](_0x3b911c['getFirstRange']());if(_0x2c4984['enterBlock'](_0x215921)){const _0x4a51b9=_0xd295c0['model']['createPositionAt'](_0x2c1c43['parent']['nextSibling'],0x0),_0x10a0be=_0x215921['createRange'](_0x2c1c43,_0x4a51b9);_0x4b505c['markInsertion'](_0x10a0be);}else _0x215921['setSelection'](_0x215921['createRange'](_0x15832b['end']));_0x15832b['detach'](),_0x2c4984['fire']('afterExecute',{'writer':_0x215921});});}),_0xd295c0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xd295c0,'split'),{'priority':'high'}),_0xd295c0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x164550,_0x3aa604,_0x1a0ce6)=>{const _0x17ca98=_0x1a0ce6['mapper']['markerNameToElements'](_0x3aa604['markerName']);if(_0x17ca98){for(const _0x2517f1 of _0x17ca98)_0x2517f1['hasClass']('ck-suggestion-marker-split')&&(_0x1a0ce6['mapper']['unbindElementFromMarkerName'](_0x2517f1,_0x3aa604['markerName']),_0x1a0ce6['writer']['remove'](_0x2517f1));}},{'priority':'high'}),_0xd295c0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x34ca94,_0xaa13ea,_0x4de6f5)=>{_0x4de6f5['options']['showSuggestionHighlights']&&_e(_0xd295c0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x34ca94,_0xaa13ea,_0x4de6f5);},{'priority':'high'});}}class X extends _0x9c8a48{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3ce4e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ce4e4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3ce4e4['enableCommand']('findNext'),_0x3ce4e4['enableCommand']('findPrevious'),_0x3ce4e4['enableCommand']('replace'),_0x3ce4e4['enableCommand']('replaceAll');}['handleFindCommand'](_0x3b3268,_0x41f4d8,_0x2dc2ff={}){const _0x160259=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3b3268(_0x2e1544=>{let _0x439320=('string'==typeof _0x41f4d8?_0x160259['findByTextCallback'](_0x41f4d8,_0x2dc2ff):_0x41f4d8)(_0x2e1544);Array['isArray'](_0x439320)&&(_0x439320={'results':_0x439320,'searchText':'string'==typeof _0x41f4d8?_0x41f4d8:''});const _0x486cf6=_0x439320['results']['filter'](_0x2ef0a1=>!0x1===this['_isInDeletionRange'](_0x2ef0a1,_0x2e1544['item']));return{..._0x439320,'results':_0x486cf6};},_0x2dc2ff);}['_isInDeletionRange'](_0x55ae82,_0x5dd2ef){const _0x130307=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5dd2ef,_0x55ae82['start']),this['editor']['model']['createPositionAt'](_0x5dd2ef,_0x55ae82['end']));for(const _0xc810a6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x130307['getIntersection'](_0xc810a6['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 _0x9c8a48{['afterInit'](){const _0x249be9=this['editor']['locale'],_0x53ca90=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5ba870,commandName:_0x354ad0}of ro)this['editor']['plugins']['has'](_0x5ba870)&&(_0x53ca90['enableDefaultAttributesIntegration'](_0x354ad0),_0x53ca90['registerInlineAttribute'](_0x354ad0));_0x53ca90['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x249be9,'FORMAT_FONT_SIZE')),_0x53ca90['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x249be9,'FORMAT_FONT_FAMILY')),_0x53ca90['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x249be9,'FORMAT_FONT_COLOR')),_0x53ca90['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x249be9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57bbfe=this['editor'],_0x31de3a=_0x57bbfe['locale'];_0x57bbfe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x70f108=>{const _0x2bb62e=_0x31de3a['t'];if('formatInline'!=_0x70f108['type'])return;const {data:_0x2d6160}=_0x70f108;if(null!=_0x2d6160){if('fontSize'==_0x2d6160['commandName']){const _0x1c9f63=_0x2d6160['commandParams'][0x0]['value'];if(_0x1c9f63){const _0x498d62=_0x2bb62e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x37a97a=>_0x37a97a['model']==_0x1c9f63)['title'])['toLowerCase']();return{'type':'format','content':o(_0x31de3a,'*Set\x20font\x20size:*\x20%0',_0x498d62)};}return{'type':'format','content':o(_0x31de3a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2d6160['commandName']){const _0x5a09dd=_0x2d6160['commandParams'][0x0]['value'];return _0x5a09dd?{'type':'format','content':o(_0x31de3a,'*Set\x20font\x20family:*\x20%0',_0x5a09dd)}:{'type':'format','content':o(_0x31de3a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2d6160['commandName']){const _0x26f67c=_0x2d6160['commandParams'][0x0]['value'];if(_0x26f67c){const _0x354b59=_0x4d4ea0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x33b853=>_0x33b853['model']==_0x26f67c);let _0x57bcd8=_0x26f67c,_0x40b29f='';return _0x354b59&&(_0x57bcd8=_0x354b59['label'],_0x40b29f=_0x2bb62e(_0x57bcd8)['toLowerCase']()),{'type':'format','content':o(_0x31de3a,'*Set\x20font\x20color:*\x20%0',_0x40b29f)['trim'](),'color':{'value':_0x26f67c,'title':_0x40b29f||_0x57bcd8}};}return{'type':'format','content':o(_0x31de3a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2d6160['commandName']){const _0x2a68ee=_0x2d6160['commandParams'][0x0]['value'];if(_0x2a68ee){const _0x3b4f28=_0x4d4ea0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1f791a=>_0x1f791a['model']==_0x2a68ee);let _0x761269=_0x2a68ee,_0x5c77d2='';return _0x3b4f28&&(_0x761269=_0x3b4f28['label'],_0x5c77d2=_0x2bb62e(_0x761269)['toLowerCase']()),{'type':'format','content':o(_0x31de3a,'*Set\x20font\x20background\x20color:*\x20%0',_0x5c77d2)['trim'](),'color':{'value':_0x2a68ee,'title':_0x5c77d2||_0x761269}};}return{'type':'format','content':o(_0x31de3a,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x9c8a48{['afterInit'](){const _0x1f5e34=this['editor'],_0x33b055=_0x1f5e34['plugins']['get']('TrackChangesEditing'),_0x2c44e1=_0x1f5e34['commands']['get']('copyFormat'),_0x561594=_0x1f5e34['commands']['get']('pasteFormat');_0x2c44e1&&_0x561594&&(_0x33b055['enableDefaultAttributesIntegration']('pasteFormat'),_0x33b055['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x120931=this['editor'],_0x156828=_0x120931['locale'];_0x120931['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x334f65=>{if('formatBlock'!=_0x334f65['type']&&'formatInline'!=_0x334f65['type'])return;const {data:_0x4962ae}=_0x334f65;if(_0x4962ae&&'pasteFormat'===_0x4962ae['commandName']){const _0x6a0fc3=[],_0x383445=_0x4962ae['commandParams'][0x0];for(const [_0x1103af,_0x3dc3f4]of Object['entries'](_0x383445))_0x6a0fc3['push'](so(_0x120931,_0x1103af,_0x3dc3f4));return _0x6a0fc3['length']?{'type':'format','content':o(_0x156828,'*Set\x20format\x20to:*\x20%0',_0x6a0fc3['join'](',\x20'))}:{'type':'format','content':o(_0x156828,'*Remove\x20all\x20formatting*')};}});}}function so(_0x410723,_0x463acc,_0x40ba4c){const _0x36b5b1=_0x410723['locale']['t'],_0x518179=_0x463acc['split'](/(?=[A-Z])/)['join']('\x20'),_0x328f1f=_0x36b5b1(_0x518179['charAt'](0x0)['toUpperCase']()+_0x518179['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x40ba4c)return _0x328f1f;if('fontColor'===_0x463acc||'fontBackgroundColor'===_0x463acc){const _0x102871=_0x4d4ea0(_0x410723['config']['get']('fontColor.colors'))['find'](_0x96803c=>_0x96803c['model']==_0x40ba4c);return _0x328f1f+'\x20('+(_0x102871?_0x36b5b1(_0x102871['label'])['toLowerCase']():_0x40ba4c)+')';}if('fontSize'===_0x463acc&&isNaN(parseFloat(_0x40ba4c))){const _0x500e01=_0x410723['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x410723['config']['get']('fontSize.options'))['find'](_0x4ab979=>_0x4ab979['model']==_0x40ba4c);return _0x328f1f+'\x20('+(_0x500e01?_0x36b5b1(_0x500e01['title'])['toLowerCase']():_0x40ba4c)+')';}return _0x328f1f+'\x20('+_0x40ba4c+')';}class tt extends _0x9c8a48{['_headingOptions'];['afterInit'](){const _0x1922f5=this['editor'];if(!_0x1922f5['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1922f5['config']['get']('heading.options');const _0x23af17=_0x1922f5['locale'],_0x543da7=_0x1922f5['plugins']['get']('TrackChangesEditing');_0x543da7['enableDefaultAttributesIntegration']('heading');for(const _0x50c3d1 of this['_headingOptions'])'paragraph'!=_0x50c3d1['model']&&_0x543da7['descriptionFactory']['registerElementLabel'](_0x50c3d1['model'],_0x1fe0b8=>{const _0x48b2b6=this['_getHeadingLevel'](_0x50c3d1['model']);return null!==_0x48b2b6?_0x18ac1f(_0x1fe0b8,_0x48b2b6):_0x5bb92d(_0x1fe0b8,_0x50c3d1['title']);});function _0x18ac1f(_0x98749,_0x4640e3){return o(_0x23af17,'ELEMENT_HEADING',[_0x98749,_0x4640e3]);}function _0x5bb92d(_0x4cd35d,_0x1823b5){return o(_0x23af17,'ELEMENT_HEADING_CUSTOM',[_0x4cd35d,_0x1823b5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20ac5d=this['editor'],_0x5f56ba=_0x20ac5d['locale'];function _0x427578(_0x5c9752,_0x2cc94c){return o(_0x5f56ba,'ELEMENT_HEADING_CUSTOM',[_0x5c9752,_0x2cc94c]);}_0x20ac5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bf65a=>{if('formatBlock'!=_0x2bf65a['type'])return;const {data:_0x2dd829}=_0x2bf65a;if(_0x2dd829&&'heading'==_0x2dd829['commandName']){const _0x33834c=_0x2dd829['commandParams'][0x0]['value'],_0x310ec0=this['_getHeadingLevel'](_0x33834c);if(null!==_0x310ec0)return{'type':'format','content':o(_0x5f56ba,'*Change\x20to:*\x20%0',(_0x21e6bb=0x1,_0x96886=_0x310ec0,o(_0x5f56ba,'ELEMENT_HEADING',[_0x21e6bb,_0x96886])))};const _0x3bd52b=this['_headingOptions']['find'](_0x2974aa=>_0x2974aa['model']===_0x33834c)['title'];return{'type':'format','content':o(_0x5f56ba,'*Change\x20to:*\x20%0',_0x427578(0x1,_0x3bd52b))};}var _0x21e6bb,_0x96886;});}['_getHeadingLevel'](_0x1376f6){const _0x5013dd=_0x1376f6['match'](/^heading(\d+)/);if(_0x5013dd)return _0x5013dd[0x1];const _0x26353c=this['_headingOptions']?.['find'](_0x26afb4=>_0x26afb4['model']==_0x1376f6);if(_0x26353c&&_0x26353c['view']){const _0x1ef1cd=_0x26353c['view'],_0x26bbb9=(_0x1ef1cd['name']??_0x1ef1cd)['match'](/^h(\d+)/);if(_0x26bbb9)return _0x26bbb9[0x1];}return null;}}class et extends _0x9c8a48{['afterInit'](){const _0x4d4147=this['editor'];if(!_0x4d4147['plugins']['has']('HighlightEditing'))return;const _0x30ac8f=_0x4d4147['plugins']['get']('TrackChangesEditing'),_0x28cf46=_0x4d4147['locale'];_0x30ac8f['enableDefaultAttributesIntegration']('highlight'),_0x30ac8f['registerInlineAttribute']('highlight'),_0x30ac8f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x28cf46,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e28ef=this['editor'],_0x302b2b=_0x4e28ef['locale'];_0x4e28ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15a5e4=>{if('formatInline'!=_0x15a5e4['type'])return;const {data:_0x4b00f5}=_0x15a5e4;if(_0x4b00f5&&'highlight'==_0x4b00f5['commandName']){const _0x12fba3=_0x302b2b['t'],_0x45e638=_0x4b00f5['commandParams'][0x0]['value'];if(_0x45e638){const _0xfeec6c=_0x4e28ef['config']['get']('highlight.options')['find'](_0x154393=>_0x154393['model']==_0x45e638),_0x532481=_0x12fba3(_0xfeec6c['title'])['toLowerCase']();return{'type':'format','content':o(_0x302b2b,'*Set\x20highlight:*\x20%0',_0x532481),'color':{'value':_0xfeec6c['color'],'title':_0xfeec6c['title']}};}return{'type':'format','content':o(_0x302b2b,'*Remove\x20highlight*',o(_0x302b2b,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x9c8a48{['afterInit'](){const _0x5f46ba=this['editor'];if(!_0x5f46ba['plugins']['has']('HorizontalLineEditing'))return;_0x5f46ba['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a234f=_0x5f46ba['plugins']['get']('TrackChangesEditing'),_0x3467fe=_0x5f46ba['locale'];_0x4a234f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x51e879=>o(_0x3467fe,'ELEMENT_HORIZONTAL_LINE',_0x51e879)),_0x5f46ba['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1552fe,{writer:_0x23cc9c,options:_0x161dbd})=>{if(!_0x161dbd['showSuggestionHighlights'])return null;const _0x37a23e=_0x23cc9c['createContainerElement']('div'),_0x3941b7=_0x23cc9c['createEmptyElement']('hr');return _0x23cc9c['addClass']('ck-horizontal-line',_0x37a23e),_0x23cc9c['insert'](_0x23cc9c['createPositionAt'](_0x37a23e,0x0),_0x3941b7),_0x37a23e;},'converterPriority':'high'});}}class st extends _0x9c8a48{['afterInit'](){const _0x5a17a5=this['editor'];if(!_0x5a17a5['plugins']['has']('HtmlEmbed'))return;const _0x3e2df6=_0x5a17a5['plugins']['get']('TrackChangesEditing'),_0xf3dd22=_0x5a17a5['locale'];_0x3e2df6['descriptionFactory']['registerElementLabel']('rawHtml',_0x1a2a43=>o(_0xf3dd22,'ELEMENT_HTML_EMBED',_0x1a2a43)),_0x3e2df6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3e2df6['registerBlockAttribute']('value'),_0x3e2df6['descriptionFactory']['registerDescriptionCallback'](_0x4f38ad=>{if('attribute'!=_0x4f38ad['type'])return;const {data:_0x2cf0f3}=_0x4f38ad;if(_0x2cf0f3&&'value'==_0x2cf0f3['key']&&_0x4f38ad['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5ae702=o(_0xf3dd22,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf3dd22,'*Change\x20%0\x20content*',_0x5ae702)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33bfc4=this['editor'],_0x29b4c5=_0x33bfc4['locale'];_0x33bfc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x557d3a=>{if('formatBlock'!=_0x557d3a['type'])return;const {data:_0x45ba3a}=_0x557d3a;if(_0x45ba3a&&'htmlEmbed'==_0x45ba3a['commandName']){const _0x1297ee=o(_0x29b4c5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x29b4c5,'*Change\x20%0\x20content*',_0x1297ee)};}});}}class nt extends _0x9c8a48{['afterInit'](){const _0x110a6d=this['editor'];if(!_0x110a6d['plugins']['has']('ImageEditing'))return;const _0x1ee78f=_0x110a6d['plugins']['get']('TrackChangesEditing'),_0x2e6326=_0x110a6d['plugins']['get']('ImageUtils'),_0x3abd1a=_0x110a6d['locale'];_0x1ee78f['enableCommand']('insertImage'),_0x1ee78f['descriptionFactory']['registerElementLabel']('imageBlock',_0x5aab86=>o(_0x3abd1a,'ELEMENT_IMAGE',_0x5aab86)),_0x1ee78f['descriptionFactory']['registerElementLabel']('imageInline',_0x5ac74d=>o(_0x3abd1a,'ELEMENT_INLINE_IMAGE',_0x5ac74d)),_0x1ee78f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3abd1a,'ELEMENT_CAPTION')),_0x110a6d['plugins']['has']('ImageUploadEditing')&&_0x1ee78f['enableCommand']('uploadImage'),_0x110a6d['plugins']['has']('ImageBlockEditing')&&_0x110a6d['plugins']['has']('ImageInlineEditing')&&(_0x1ee78f['enableCommand']('imageTypeInline',(_0x55eed6,_0x174b17)=>{const _0x1aada2=_0x2e6326['getClosestSelectedImageElement'](_0x110a6d['model']['document']['selection']);_0x110a6d['model']['change'](()=>{_0x1ee78f['markBlockFormat'](_0x1aada2,{'commandName':'imageTypeInline','commandParams':[_0x174b17]},[],'convertBlockImageToInline');});}),_0x1ee78f['enableCommand']('imageTypeBlock',(_0x48e37f,_0x4e84c9)=>{_0x110a6d['model']['change'](_0x224ab7=>{let _0x519a61=_0x2e6326['getClosestSelectedImageElement'](_0x110a6d['model']['document']['selection']),_0x50f931=_0x224ab7['createRangeOn'](_0x519a61);const _0x141fa7=_0x58588f['fromPosition'](_0x50f931['start'],'toPrevious'),_0x48eef5=_0x58588f['fromPosition'](_0x50f931['end'],'toNext');_0x1ee78f['forceDefaultExecution'](()=>_0x48e37f(_0x4e84c9)),_0x519a61=_0x2e6326['getClosestSelectedImageElement'](_0x110a6d['model']['document']['selection']),_0x50f931=_0x224ab7['createRangeOn'](_0x519a61);const _0x228624=_0x224ab7['createRange'](_0x141fa7,_0x48eef5);_0x141fa7['detach'](),_0x48eef5['detach'](),_0x1ee78f['markBlockFormat'](_0x519a61,{'commandName':'imageTypeInline','commandParams':[_0x4e84c9]},[],'convertInlineImageToBlock'),_0x228624['start']['isBefore'](_0x50f931['start'])&&_0x1ee78f['markInsertion'](_0x224ab7['createRange'](_0x228624['start'],_0x50f931['start']),'convertInlineImageToBlock'),_0x50f931['end']['isBefore'](_0x228624['end'])&&_0x1ee78f['markInsertion'](_0x224ab7['createRange'](_0x50f931['end'],_0x228624['end']),'convertInlineImageToBlock');});}),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1ee78f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5428ad])=>{const _0x5c5dbc=_0x1ee78f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x38b0e5=_0x5428ad['start'],_0xcea03f=_0x5428ad['end'];const _0x250632=_0x110a6d['model']['schema']['getNearestSelectionRange'](_0x38b0e5,'backward'),_0x38fe73=_0x110a6d['model']['schema']['getNearestSelectionRange'](_0xcea03f,'forward');_0x250632['isCollapsed']&&(_0x38b0e5=_0x250632['start']),_0x38fe73['isCollapsed']&&(_0xcea03f=_0x38fe73['end']),_0x5c5dbc([_0x110a6d['model']['createRange'](_0x38b0e5,_0xcea03f)]);}),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3ec1a1),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3ec1a1)),_0x110a6d['plugins']['has']('ImageCaptionEditing')&&(_0x1ee78f['enableCommand']('toggleImageCaption',(_0x569e7e,_0x1e8861)=>{const _0x5f5a10=_0x110a6d['plugins']['get']('ImageCaptionUtils');let _0x2779c=_0x2e6326['getClosestSelectedImageElement'](_0x110a6d['model']['document']['selection']),_0x2cbbe3=_0x5f5a10['getCaptionFromImageModelElement'](_0x2779c);_0x110a6d['model']['change'](()=>{if(_0x2cbbe3)return void _0x1ee78f['markDeletion'](_0x110a6d['model']['createRangeOn'](_0x2cbbe3));const _0x484844=_0x2e6326['isBlockImage'](_0x2779c);_0x569e7e(_0x1e8861),_0x2779c=_0x2e6326['getClosestSelectedImageElement'](_0x110a6d['model']['document']['selection']),_0x2cbbe3=_0x5f5a10['getCaptionFromImageModelElement'](_0x2779c),_0x1ee78f['markInsertion'](_0x110a6d['model']['createRangeOn'](_0x2cbbe3),_0x484844?null:'imageCaption');});}),_0x1ee78f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3ec1a1));const _0x58d53f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3f5fa5(_0x1d560b,_0x55651d){const _0x2d270f=_0x58d53f['findIndex'](({type:_0x34be41,subType:_0x32398e})=>_0x1d560b['type']==_0x34be41&&_0x1d560b['subType']==_0x32398e),_0x2e56af=_0x58d53f['findIndex'](({type:_0x168aac,subType:_0x16ef86})=>_0x55651d['type']==_0x168aac&&_0x55651d['subType']==_0x16ef86);if(_0x2d270f<0x0||_0x2e56af<0x0)return!0x1;const _0x33bf44=_0x1d560b['getFirstRange'](),_0x2aae9e=_0x55651d['getFirstRange']();if((0x0==_0x2d270f||0x1==_0x2d270f)&&0x2==_0x2e56af&&_0x33bf44['isIntersecting'](_0x2aae9e))return!0x0;if(0x2==_0x2d270f&&0x3==_0x2e56af){const _0xf69acb=_0x1ee78f['_findSuggestions'](_0x33bf44,'insertion')['filter'](({suggestion:_0x59af69,meta:_0xb96bb3})=>_0xb96bb3['isOwn']&&'convertInlineImageToBlock'==_0x59af69['subType']);if(_0xf69acb['length']>0x1&&_0x2aae9e['end']['isEqual'](_0x33bf44['start']))return!0x0;if(0x1==_0xf69acb['length']&&(_0x33bf44['start']['isEqual'](_0x2aae9e['end'])||_0x33bf44['end']['isEqual'](_0x2aae9e['start'])))return!0x0;}if(0x3==_0x2d270f&&0x3==_0x2e56af&&_0x33bf44['start']['isBefore'](_0x2aae9e['start'])){const _0x5b2127=_0x33bf44['end']['nodeAfter'],_0x3478fe=_0x2aae9e['start']['nodeBefore'];return _0x2e6326['isBlockImage'](_0x5b2127)&&_0x5b2127===_0x3478fe;}return!0x1;}function _0x3ec1a1(_0x536eb7,_0x1ae8d8){return _0x3f5fa5(_0x536eb7,_0x1ae8d8)?[_0x536eb7,_0x1ae8d8]:_0x3f5fa5(_0x1ae8d8,_0x536eb7)?[_0x1ae8d8,_0x536eb7]:null;}_0x110a6d['plugins']['has']('ImageResize')&&(_0x1ee78f['enableDefaultAttributesIntegration']('resizeImage'),_0x1ee78f['registerBlockAttribute']('resizedWidth'),_0x1ee78f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3abd1a,'FORMAT_IMAGE_SIZE'))),_0x110a6d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1ee78f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1ee78f['registerBlockAttribute']('alt')),_0x1ee78f['descriptionFactory']['registerDescriptionCallback'](_0x13b9d9=>{if(!!_0x58d53f['find'](({type:_0x21f328,subType:_0x329157})=>_0x13b9d9['type']==_0x21f328&&_0x13b9d9['subType']==_0x329157))return _0x13b9d9['previous']?{}:void 0x0;}),_0x1ee78f['descriptionFactory']['registerDescriptionCallback'](_0x3cb9b9=>{if('insertion'==_0x3cb9b9['type']||'deletion'==_0x3cb9b9['type']){const _0x475628=_0x3cb9b9['getContainedElement']();if(_0x475628&&_0x475628['is']('element','caption'))return{'type':'insertion'==_0x3cb9b9['type']?'addObject':'removeObject','element':_0x475628,'quantity':0x1};}}),_0x1ee78f['descriptionFactory']['registerDescriptionCallback'](_0x1c71a5=>'formatBlock'==_0x1c71a5['type']&&'convertInlineImageToBlock'==_0x1c71a5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1c71a5['type']&&'convertBlockImageToInline'==_0x1c71a5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1ee78f['descriptionFactory']['registerDescriptionCallback'](_0x3390b3=>{if('attribute'!=_0x3390b3['type'])return;const {data:_0x87e29}=_0x3390b3;if(!_0x87e29||'alt'!=_0x87e29['key'])return;const _0x217d5f=_0x87e29['newValue'];return _0x217d5f?{'type':'format','content':o(_0x3abd1a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x217d5f+'\x22')}:{'type':'format','content':o(_0x3abd1a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x255999=this['editor'],_0x5ec173=_0x255999['locale'];_0x255999['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7af706=>{if('formatBlock'!=_0x7af706['type']&&'formatInline'!=_0x7af706['type'])return;const {data:_0x567257}=_0x7af706;if(_0x567257){if('imageTextAlternative'==_0x567257['commandName']){const _0xce1f08=_0x567257['commandParams'][0x0]['newValue'];return _0xce1f08?{'type':'format','content':o(_0x5ec173,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xce1f08+'\x22')}:{'type':'format','content':o(_0x5ec173,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x567257['commandName']){const _0x8bf349=_0x567257['commandParams'][0x0]['width'];return _0x8bf349?{'type':'format','content':o(_0x5ec173,'*Set\x20image\x20width:*\x20%0',_0x8bf349)}:{'type':'format','content':o(_0x5ec173,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x9c8a48{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x311a87=this['editor']['locale'],_0x191497=this['editor']['plugins']['get']('TrackChangesEditing');_0x191497['enableDefaultAttributesIntegration']('replaceImageSource'),_0x191497['registerBlockAttribute']('src'),_0x191497['descriptionFactory']['registerDescriptionCallback'](_0x231384=>{if('attribute'!=_0x231384['type'])return;const {data:_0xbfb22e}=_0x231384;return _0xbfb22e&&'src'==_0xbfb22e['key']?_0xbfb22e['newValue']&&_0xbfb22e['oldValue']?{'type':'format','content':o(_0x311a87,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x40a3ae=this['editor']['plugins']['get']('TrackChangesEditing');_0x40a3ae['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x40a3ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40a3ae['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x40a3ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x283fee=this['editor'],_0xf6b5ec=_0x283fee['locale'];_0x283fee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x119c9b=>{if('formatBlock'!=_0x119c9b['type']&&'formatInline'!=_0x119c9b['type'])return;const {data:_0x5b2fb1}=_0x119c9b;if(!_0x5b2fb1||'replaceImageSource'!=_0x5b2fb1['commandName'])return;return{'type':'format','content':o(_0xf6b5ec,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x9c8a48{['afterInit'](){const _0x11b634=this['editor'];if(!_0x11b634['plugins']['has']('ImageStyleEditing'))return;const _0x21894a=_0x11b634['plugins']['get']('TrackChangesEditing'),_0x42430a=_0x11b634['plugins']['get']('ImageUtils'),_0x476b06={};_0x21894a['enableCommand']('imageStyle',(_0x131e04,_0xef647d)=>{const _0x2244fa=_0x11b634['plugins']['get']('Users')['me'],_0x1f485b=_0x11b634['commands']['get']('imageStyle');let _0x1a1109=_0x42430a['getClosestSelectedImageElement'](_0x11b634['model']['document']['selection']),_0x124cb8=_0x11b634['model']['createRangeOn'](_0x1a1109),_0x513e6b=_0x1f485b['value'];if(_0x513e6b==_0xef647d['value'])return;const _0x25c394={'commandName':'imageStyle','commandParams':[_0xef647d],'formatGroupId':_0x5b34d0()};_0x11b634['model']['change'](()=>{if(_0x21894a['getSuggestions']()['filter'](_0x559fea=>_0x559fea['isInContent']&&_0x2244fa==_0x559fea['author']&&('formatBlock'==_0x559fea['type']||'formatInline'==_0x559fea['type'])&&('imageStylePreApply'==_0x559fea['subType']||'imageStylePostApply'==_0x559fea['subType'])&&_0x559fea['getFirstRange']()['isEqual'](_0x124cb8))['forEach'](_0x1a42bb=>_0x21894a['discardSuggestion'](_0x1a42bb['head'])),_0x1a1109=_0x42430a['getClosestSelectedImageElement'](_0x11b634['model']['document']['selection']),_0x124cb8=_0x11b634['model']['createRangeOn'](_0x1a1109),_0x1f485b['refresh'](),_0x11b634['commands']['get']('imageTypeInline')['refresh'](),_0x11b634['commands']['get']('imageTypeBlock')['refresh'](),_0x513e6b=_0x1f485b['value'],_0x513e6b!=_0xef647d['value'])return _0x42430a['isInlineImage'](_0x1a1109)&&_0x1f485b['shouldConvertImageType'](_0xef647d['value'],_0x1a1109)?(_0x131e04({..._0xef647d,'setImageSizes':!0x1}),_0x1a1109=_0x42430a['getClosestSelectedImageElement'](_0x11b634['model']['document']['selection']),void _0x21894a['markBlockFormat'](_0x1a1109,{..._0x25c394,'commandReversedParams':[{'value':_0x513e6b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x42430a['isBlockImage'](_0x1a1109)?_0x21894a['markBlockFormat'](_0x1a1109,_0x25c394,[],'imageStylePostApply'):_0x21894a['markInlineFormat'](_0x124cb8,_0x25c394,'imageStylePostApply'));});});for(const _0x2059a3 of _0x11b634['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x476b06[_0x2059a3['name']]=_0x2059a3['title']['toLowerCase']();_0x21894a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x21894a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x21894a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x21894a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x35b569])=>{_0x42430a['setImageNaturalSizeAttributes'](_0x35b569['getContainedElement']());}),_0x21894a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x58a912,_0x2605d2)=>{_0x21894a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x58a912,{'commandName':_0x2605d2['commandName'],'commandParams':_0x2605d2['commandReversedParams']});}),_0x21894a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x38412b,_0x479490){if(_0x558e2e(_0x38412b,_0x479490))return[_0x38412b,_0x479490];if(_0x558e2e(_0x479490,_0x38412b))return[_0x479490,_0x38412b];return null;});const _0x412bc1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x558e2e(_0x249f81,_0x4de2fc){const _0x3041b5=_0x412bc1['findIndex'](({type:_0x1a08af,subType:_0x31eb3c})=>_0x249f81['type']==_0x1a08af&&_0x249f81['subType']==_0x31eb3c),_0x98f341=_0x412bc1['findIndex'](({type:_0xabfc91,subType:_0x33f113})=>_0x4de2fc['type']==_0xabfc91&&_0x4de2fc['subType']==_0x33f113);if(_0x3041b5<0x0||_0x98f341<0x0)return!0x1;const _0x2f97db=_0x249f81['getFirstRange'](),_0x6e06f8=_0x4de2fc['getFirstRange']();if((0x0==_0x3041b5||0x1==_0x3041b5)&&0x2==_0x98f341&&_0x2f97db['isIntersecting'](_0x6e06f8))return!0x0;if(0x2==_0x3041b5&&0x3==_0x98f341){const _0x12f37e=_0x21894a['_findSuggestions'](_0x2f97db,'insertion')['filter'](({suggestion:_0x3a3f11,meta:_0x348fef})=>_0x348fef['isOwn']&&'convertInlineImageToBlock'==_0x3a3f11['subType']);if(_0x12f37e['length']>0x1&&_0x6e06f8['end']['isEqual'](_0x2f97db['start']))return!0x0;if(0x1==_0x12f37e['length']&&(_0x2f97db['start']['isEqual'](_0x6e06f8['end'])||_0x2f97db['end']['isEqual'](_0x6e06f8['start'])))return!0x0;}if(0x3==_0x3041b5&&0x3==_0x98f341&&_0x2f97db['start']['isBefore'](_0x6e06f8['start'])){const _0x4e5612=_0x2f97db['end']['nodeAfter'],_0xb93885=_0x6e06f8['start']['nodeBefore'];return _0x42430a['isBlockImage'](_0x4e5612)&&_0x4e5612===_0xb93885;}return!0x1;}_0x11b634['model']['document']['registerPostFixer'](()=>{let _0x551cef=!0x1;const _0x5b29de=Array['from'](_0x11b634['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3060ce,data:_0x47e126}of _0x5b29de){const {group:_0x51ea37,type:_0x37aebc,subType:_0x14e241,id:_0x1cf0d6}=_0x21894a['_splitMarkerName'](_0x3060ce);if('suggestion'==_0x51ea37&&_0x21894a['hasSuggestion'](_0x1cf0d6)){if('formatBlock'==_0x37aebc&&('imageStylePreApply'==_0x14e241||'imageStylePostApply'==_0x14e241)){const _0x53107d=_0x21894a['getSuggestion'](_0x1cf0d6);if(_0x47e126['newRange']){const _0x459a65=_0x53107d['getFirstRange']()['getContainedElement']();if(_0x42430a['isBlockImage'](_0x459a65))continue;_0x21894a['discardSuggestion'](_0x53107d),_0x551cef=!0x0;}}if('insertion'==_0x37aebc&&'imageCaption'==_0x14e241&&!_0x47e126['newRange']){const _0x27fea3=_0x21894a['getSuggestion'](_0x1cf0d6);_0x27fea3['next']&&_0x27fea3['next']['isInContent']&&(_0x21894a['discardSuggestion'](_0x27fea3['next']),_0x551cef=!0x0);}}}return _0x551cef;}),this['_registerLegacyDescription'](_0x476b06);}['_registerLegacyDescription'](_0x2ef02c){const _0x24d799=this['editor'],_0x72d107=_0x24d799['locale'];_0x24d799['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c199d=>{if('formatBlock'!=_0x2c199d['type']&&'formatInline'!=_0x2c199d['type'])return;const {data:_0x460280}=_0x2c199d;if(!_0x460280||'imageStyle'!=_0x460280['commandName'])return;const _0x2fc7c8=_0x460280['commandParams'][0x0]['value'];return _0x3cf7e7('side'===_0x2fc7c8?o(_0x72d107,'FORMAT_SIDE_IMAGE'):_0x2ef02c[_0x2fc7c8]||_0x2fc7c8);function _0x3cf7e7(_0x2e9473){return{'type':'format','content':o(_0x72d107,'*Format:*\x20%0',_0x2e9473)};}});}}class at extends _0x9c8a48{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x48e15c){super(_0x48e15c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5477ab=this['editor'],_0x14d2fb=_0x5477ab['commands']['get']('importWord'),_0xc6ad5b=_0x5477ab['commands']['get']('trackChanges');_0x14d2fb&&(_0x14d2fb['on']('execute',(_0x535e21,[,_0x2a6ec4])=>{this['_trackChangesValueDuringImport']=_0xc6ad5b['value'],_0x2a6ec4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x14d2fb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x14d2fb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xc6ad5b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5477ab['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4eefbf,_0x53caec){const {suggestions:_0x49e9e2}=_0x53caec,_0x2631ab=this['editor']['commands']['get']('trackChanges'),_0x1205b7=_0x2631ab['value'];this['_trackChangesValueDuringImport']!==_0x1205b7&&(_0x2631ab['execute'](),this['_trackChangesExecuted']=!0x0),_0x49e9e2&&_0x49e9e2['forEach'](({id:_0xa7f421,type:_0x3c055d,author:_0x3f9877,created_at:_0x2041ff})=>{const _0x1be71b={'id':_0xa7f421,'type':_0x3c055d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3f9877,'createdAt':_0x2041ff?new Date(_0x2041ff):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1be71b);});}}class ct extends _0x9c8a48{['afterInit'](){const _0x1d8489=this['editor'],_0x1dfb7c=_0x1d8489['plugins']['get']('TrackChangesEditing');if(_0x1d8489['plugins']['has']('IndentEditing')&&(_0x1dfb7c['enableCommand']('indent'),_0x1dfb7c['enableCommand']('outdent')),_0x1d8489['plugins']['has']('IndentBlock')){for(const _0xf74e4b of['indentBlock','outdentBlock'])_0x1dfb7c['enableDefaultAttributesIntegration'](_0xf74e4b);}const _0x4e2382=_0x1d8489['locale'];_0x1dfb7c['registerBlockAttribute']('blockIndent'),_0x1dfb7c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4e2382,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15edc6=this['editor'],_0x1295f2=_0x15edc6['locale'],_0x55829e=_0x15edc6['plugins']['get']('TrackChangesEditing');_0x55829e['descriptionFactory']['registerDescriptionCallback'](_0x2013f0=>{if('formatBlock'!=_0x2013f0['type'])return;const {data:_0x205b8a}=_0x2013f0;if(!_0x205b8a)return;if('indentBlock'!=_0x205b8a['commandName']&&'outdentBlock'!=_0x205b8a['commandName'])return;const _0x44840e=_0x2013f0['getItems']()[0x0],_0x1153d1=_0x55829e['descriptionFactory']['getItemLabel'](_0x44840e);return'indentBlock'==_0x205b8a['commandName']?{'type':'format','content':o(_0x1295f2,'*Indent:*\x20%0',_0x1153d1)}:'outdentBlock'==_0x205b8a['commandName']?{'type':'format','content':o(_0x1295f2,'*Outdent:*\x20%0',_0x1153d1)}:void 0x0;});}}class ut extends _0x9c8a48{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x9c8a48{['afterInit'](){const _0x377c14=this['editor'];if(!_0x377c14['plugins']['has']('LinkEditing'))return;const _0x231cb4=_0x377c14['plugins']['get']('TrackChangesEditing'),_0x474ffb=_0x377c14['commands']['get']('link');_0x231cb4['enableDefaultAttributesIntegration']('link'),_0x231cb4['enableDefaultAttributesIntegration']('unlink'),_0x231cb4['registerInlineAttribute']('linkHref');for(const _0x1a8f5b of _0x474ffb['manualDecorators'])_0x231cb4['registerInlineAttribute'](_0x1a8f5b['id']),_0x231cb4['descriptionFactory']['registerAttributeLabel'](_0x1a8f5b['id'],'link\x20('+_0x1a8f5b['label']['toLowerCase']()+')');_0x231cb4['descriptionFactory']['registerDescriptionCallback'](_0x308b45=>{if('attribute'!=_0x308b45['type'])return;const {data:_0x441ecc}=_0x308b45;if(!_0x441ecc||'linkHref'!=_0x441ecc['key'])return;const _0x47cab3=_0x441ecc['newValue'],_0x577962=_0x377c14['locale'];return{'type':'format','content':null==_0x47cab3?o(_0x577962,'*Remove\x20link*'):o(_0x577962,'*Set\x20link:*\x20%0','\x22'+_0x47cab3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x287a83=this['editor'],_0x43faa2=_0x287a83['locale'];_0x287a83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e7449=>{if('formatInline'!=_0x3e7449['type'])return;const {data:_0x23ec37}=_0x3e7449;if(_0x23ec37){if('link'==_0x23ec37['commandName']){const _0xf601f=_0x23ec37['commandParams'][0x0];return{'type':'format','content':o(_0x43faa2,'*Set\x20link:*\x20%0','\x22'+_0xf601f+'\x22')};}return'unlink'==_0x23ec37['commandName']?{'type':'format','content':o(_0x43faa2,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x9c8a48{['afterInit'](){const _0x47ad0d=this['editor'],_0x25a273=_0x47ad0d['locale'];if(!_0x47ad0d['plugins']['has']('LegacyListEditing'))return;const _0x897fa1=_0x47ad0d['plugins']['get']('TrackChangesEditing'),_0x31bedb=_0x47ad0d['plugins']['has']('LegacyTodoListEditing');function _0x58bd11(_0x429c10){return()=>{const _0x132688=_0x47ad0d['model']['document']['selection'],_0x3c89fe=_0x47ad0d['commands']['get'](_0x429c10);if(_0x3c89fe['value'])return void _0x47ad0d['execute']('paragraph',{});const _0xf06e21=_0x429c10['slice'](0x0,-0x4),_0x2440ee=function(_0x955ae7,_0x25c021,_0x115c81){let _0x568175=Array['from'](_0x955ae7)['filter'](_0x1b9e2e=>function(_0x357e3d,_0x5e719b){return _0x5e719b['checkChild'](_0x357e3d['parent'],'listItem')&&!_0x5e719b['isObject'](_0x357e3d);}(_0x1b9e2e,_0x115c81));_0x568175=_0x568175['filter'](_0x20ed3d=>!_0x20ed3d['is']('element','listItem')||_0x20ed3d['getAttribute']('listType')!=_0x25c021);const _0x547385=new Set();for(const _0x5a5810 of _0x568175)_0x5a5810['is']('element','listItem')?_0x547385['add'](fe(_0x5a5810)):_0x547385['add'](_0x5a5810);return Array['from'](_0x547385);}(_0x132688['getSelectedBlocks'](),_0xf06e21,_0x47ad0d['model']['schema']);_0x47ad0d['model']['change'](()=>{for(const _0x41a759 of _0x2440ee)_0x897fa1['markBlockFormat'](_0x41a759,{'commandName':_0x429c10,'commandParams':[{'forceValue':!_0x3c89fe['value']}],'formatGroupId':'blockName'},ue(_0x41a759));});};}function _0x36fae1(_0x1a6678){return()=>{const _0x2c9c99=function(_0x378c1b){let _0x2b18db=Array['from'](_0x378c1b);const _0x5cad70=_0x2b18db['findIndex'](_0x3e844c=>'listItem'!=_0x3e844c['name']);return _0x5cad70>-0x1&&(_0x2b18db=_0x2b18db['slice'](0x0,_0x5cad70)),_0x2b18db;}(_0x47ad0d['model']['document']['selection']['getSelectedBlocks']()),_0x1cb228=_0x47ad0d['model']['createRange'](_0x47ad0d['model']['createPositionAt'](_0x2c9c99[0x0],'before'),_0x47ad0d['model']['createPositionAt'](_0x2c9c99[_0x2c9c99['length']-0x1],'end'));_0x47ad0d['model']['change'](()=>{_0x897fa1['markBlockFormat'](_0x1cb228,{'commandName':_0x1a6678,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3a21d6){const _0x5ad4ee=new Set();for(const _0x12ed1c of _0x3a21d6){let _0x1b6caf=_0x12ed1c['nextSibling'];for(;_0x1b6caf&&_0x1b6caf['getAttribute']('listIndent')>_0x12ed1c['getAttribute']('listIndent');)_0x5ad4ee['add'](_0x1b6caf),_0x1b6caf=_0x1b6caf['nextSibling'];}return Array['from'](_0x5ad4ee);}(_0x2c9c99));});};}_0x897fa1['enableCommand']('numberedList',_0x58bd11('numberedList')),_0x897fa1['enableCommand']('bulletedList',_0x58bd11('bulletedList')),_0x31bedb&&_0x897fa1['enableCommand']('todoList',_0x58bd11('todoList')),_0x897fa1['enableCommand']('indentList',_0x36fae1('indentList')),_0x897fa1['enableCommand']('outdentList',_0x36fae1('outdentList')),_0x31bedb&&_0x897fa1['enableCommand']('checkTodoList',()=>{const _0x263f6a=_0x47ad0d['commands']['get']('checkTodoList'),_0x3f66c9=Array['from'](_0x263f6a['_selectedElements']);_0x3f66c9['filter'](_0x4be98a=>_0x4be98a['getAttribute']('todoListChecked')!=_0x263f6a['value']),_0x47ad0d['model']['change'](()=>{for(const _0x501d28 of _0x3f66c9)_0x897fa1['markBlockFormat'](_0x501d28,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x263f6a['value']}]});});}),_0x897fa1['descriptionFactory']['registerElementLabel']('listItem',_0x271c6b=>o(_0x25a273,'ELEMENT_LIST_ITEM',_0x271c6b)),_0x897fa1['descriptionFactory']['registerDescriptionCallback'](_0x5b945e=>{if('formatBlock'!=_0x5b945e['type']&&'formatInline'!=_0x5b945e['type'])return;const {data:_0x4194e2}=_0x5b945e;if(_0x4194e2){if('numberedList'==_0x4194e2['commandName']||'bulletedList'==_0x4194e2['commandName']||'todoList'==_0x4194e2['commandName'])switch(_0x4194e2['commandName']['replace']('List','')){case'bulleted':return _0x4dd7b3(o(_0x25a273,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4dd7b3(o(_0x25a273,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4dd7b3(o(_0x25a273,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4194e2['commandName'])return{'type':'format','content':o(_0x25a273,'*Indent:*\x20%0',o(_0x25a273,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4194e2['commandName'])return{'type':'format','content':o(_0x25a273,'*Outdent:*\x20%0',o(_0x25a273,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4194e2['commandName'])return _0x4194e2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25a273,'*Check\x20item*')}:{'type':'format','content':o(_0x25a273,'*Uncheck\x20item*')};}function _0x4dd7b3(_0x52e73e){return{'type':'format','content':o(_0x25a273,'*Change\x20to:*\x20%0',_0x52e73e)};}});}}function fe(_0x113118){const _0xad0b6d=_0x113118['getAttribute']('listIndent');if(0x0==_0xad0b6d)return _0x113118;let _0x48dc9f=_0x113118;for(;_0x113118['previousSibling']&&_0x113118['previousSibling']['is']('element','listItem');){const _0x55fa62=_0x113118['previousSibling']['getAttribute']('listIndent');if(_0x55fa62==_0xad0b6d)_0x48dc9f=_0x113118['previousSibling'];else{if(_0x55fa62<_0xad0b6d)break;}_0x113118=_0x113118['previousSibling'];}return _0x48dc9f;}function ue(_0xfb678b){const _0x4342f8=[];if(_0xfb678b['is']('element','listItem')&&_0xfb678b['getAttribute']('listIndent')>0x0){let _0x2e91b0=_0xfb678b['nextSibling'];for(;_0x2e91b0&&'listItem'==_0x2e91b0['name']&&_0x2e91b0['getAttribute']('listIndent')==_0xfb678b['getAttribute']('listIndent');)_0x4342f8['push'](_0x2e91b0),_0x2e91b0=_0x2e91b0['nextSibling'];}return _0x4342f8;}class W extends _0x9c8a48{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2035c8=this['editor']['config']['get']('list.properties'),_0x2c4a7a=this['editor']['plugins']['get']('TrackChangesEditing');_0x2035c8['styles']&&_0x2c4a7a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2035c8['reversed']&&_0x2c4a7a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2035c8['startIndex']&&_0x2c4a7a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2c4a7a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x10ddcd,_0x16695f={}){const _0x1a58ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21d3de=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1a58ea['markMultiRangeBlockFormat'](_0x21d3de,{'commandName':'listStyle','commandParams':[{'type':_0x16695f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x327e2a,_0x541eb6={}){const _0x15cbde=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cc71c=this['_getSuggestionBlocks'](_0x2c9eeb=>_0x2c9eeb['is']('element','listItem')&&'numbered'===_0x2c9eeb['getAttribute']('listType'));if(_0x2cc71c['length']<0x1)return;const _0x48d8e5=_0x2cc71c['map'](_0x1d5bf2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1d5bf2,'before'),this['editor']['model']['createPositionAt'](_0x1d5bf2,0x0)));this['editor']['model']['change'](()=>{_0x15cbde['markMultiRangeBlockFormat'](_0x48d8e5,{'commandName':'listReversed','commandParams':[{'reversed':_0x541eb6['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x59f96d,_0x2ae166={}){const _0x2bd117=this['editor']['plugins']['get']('TrackChangesEditing'),_0x561ce5=this['_getSuggestionBlocks'](_0xdf4c48=>_0xdf4c48['is']('element','listItem')&&'numbered'===_0xdf4c48['getAttribute']('listType'));if(_0x561ce5['length']<0x1)return;const _0x4f9d3e=_0x561ce5['map'](_0x4417fc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4417fc,'before'),this['editor']['model']['createPositionAt'](_0x4417fc,0x0)));this['editor']['model']['change'](()=>{_0x2bd117['markMultiRangeBlockFormat'](_0x4f9d3e,{'commandName':'listStart','commandParams':[{'startIndex':_0x2ae166['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4faf53){if('formatBlock'!=_0x4faf53['type']&&'formatInline'!=_0x4faf53['type'])return;const _0x203d5a=this['editor']['locale'],{data:_0x1d891b}=_0x4faf53;if(!_0x1d891b)return;let _0x594369,_0xc4272;switch(_0x1d891b['commandName']){case'listStyle':_0x594369='*Change\x20to:*\x20%0',_0xc4272={'type':'format','content':o(_0x203d5a,_0x594369,o(_0x203d5a,this['_getTranslationKeyForListStyle'](_0x1d891b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x594369=_0x1d891b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xc4272={'type':'format','content':o(_0x203d5a,_0x594369)};break;case'listStart':_0x594369='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xc4272={'type':'format','content':o(_0x203d5a,_0x594369,_0x1d891b['commandParams'][0x0]['startIndex'])};}return _0xc4272;}['_getSuggestionBlocksForListStyle'](){const _0x24ff44=this['editor']['plugins']['get']('LegacyListUtils');let _0x43465b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x43465b[0x0]?.['is']('element','listItem')&&_0x43465b['unshift'](..._0x24ff44['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x43465b[_0x43465b['length']-0x1]?.['is']('element','listItem')&&_0x43465b['push'](..._0x24ff44['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x43465b=[...new Set(_0x43465b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x43465b=_0x43465b['filter'](_0x2ac1a0=>_0x2ac1a0['is']('element','listItem'))),_0x43465b;}['_getSuggestionBlocks'](_0x3271af){const _0x393fb1=this['editor']['plugins']['get']('LegacyListUtils');let _0x418871=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3271af)['map'](_0x209f36=>{const _0x42056b=this['editor']['model']['createPositionAt'](_0x209f36,0x0);return[..._0x393fb1['getSiblingNodes'](_0x42056b,'backward'),..._0x393fb1['getSiblingNodes'](_0x42056b,'forward')];})['flat']();return _0x418871=[...new Set(_0x418871)],_0x418871;}['_getTranslationKeyForListStyle'](_0x4c6184){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4c6184)||'default')['toUpperCase']()+'_LIST_'+_0x4c6184['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x9c8a48{['afterInit'](){const _0x18d26a=this['editor'];if(!_0x18d26a['plugins']['has']('MediaEmbedEditing'))return;const _0x18b3cb=_0x18d26a['plugins']['get']('TrackChangesEditing'),_0x50a788=_0x18d26a['locale'];_0x18b3cb['enableCommand']('mediaEmbed'),_0x18b3cb['descriptionFactory']['registerElementLabel']('media',_0x3f9219=>o(_0x50a788,'ELEMENT_MEDIA',_0x3f9219)),_0x18d26a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1d704f,{writer:_0x3a34d0,options:_0x33e428})=>{if(_0x33e428['showSuggestionHighlights'])return _0x3a34d0['createEmptyElement']('div');},'converterPriority':'high'}),_0x18d26a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4875c9,_0x11aa9e,_0x872e5c)=>{_0x872e5c['options']['showSuggestionHighlights']&&_0x4875c9['stop']();},{'priority':'high'});}}class mt extends _0x9c8a48{['afterInit'](){const _0x1142a0=this['editor'];_0x1142a0['plugins']['has']('MentionEditing')&&_0x1142a0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x9c8a48{['afterInit'](){const _0xfbbf29=this['editor'];if(!_0xfbbf29['plugins']['has']('MergeFieldsEditing'))return;_0xfbbf29['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0xfbbf29['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x5acb93=_0xfbbf29['plugins']['get']('TrackChangesEditing'),_0x13b49f=_0xfbbf29['locale'];_0x5acb93['descriptionFactory']['registerElementLabel']('mergeField',_0x1492c6=>o(_0x13b49f,'ELEMENT_MERGE_FIELD',_0x1492c6)),_0x5acb93['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x36f90f=>o(_0x13b49f,'ELEMENT_MERGE_FIELD',_0x36f90f)),_0x5acb93['descriptionFactory']['registerDescriptionCallback'](_0x3a9fc6=>{if('insertion'!=_0x3a9fc6['type']&&'deletion'!=_0x3a9fc6['type'])return;const _0x4b6bfc=_0x3a9fc6['getContainedElement']();if(null==_0x4b6bfc)return;if(!_0x4b6bfc['is']('element','mergeField')&&!_0x4b6bfc['is']('element','mergeFieldBlock'))return;const _0xb08eb7=_0xfbbf29['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4b6bfc['getAttribute']('id'));return'insertion'==_0x3a9fc6['type']?{'type':'insertion','content':o(_0x13b49f,'*Insert:*\x20%0','\x22'+_0xb08eb7+'\x22\x20'+o(_0x13b49f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x13b49f,'*Remove:*\x20%0','\x22'+_0xb08eb7+'\x22\x20'+o(_0x13b49f,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x9c8a48{['afterInit'](){const _0x5a92dd=this['editor'],_0x593ccb=_0x5a92dd['plugins']['get']('TrackChangesEditing');_0x5a92dd['plugins']['has']('MultiLevelList')&&(_0x593ccb['enableDefaultAttributesIntegration']('multiLevelList'),_0x593ccb['registerBlockAttribute']('listMarkerStyle'),_0x593ccb['descriptionFactory']['registerDescriptionCallback'](_0x397e43=>this['handleDescriptions'](_0x397e43)));}['handleDescriptions'](_0x2d5cfc){const _0x123b65=this['editor']['locale'],{data:_0xdf490a}=_0x2d5cfc,_0x4dd79e={'type':'format','content':''};if(_0xdf490a&&'listMarkerStyle'==_0xdf490a['key']){if(!_0xdf490a['oldValue'])return{'type':'format','content':o(_0x123b65,'*Set\x20format:*\x20%0',o(_0x123b65,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xdf490a['newValue']+')'};if(!_0xdf490a['newValue']){let _0x3a56f4=_0x2d5cfc['head'];for(;_0x3a56f4;){if(_0x3a56f4['data']&&'listType'==_0x3a56f4['data']['key']&&_0x3a56f4['data']['newValue'])return _0x4dd79e;_0x3a56f4=_0x3a56f4['next'];}return{'type':'format','content':o(_0x123b65,'*Remove\x20format:*\x20%0',o(_0x123b65,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xdf490a['oldValue']+')'};}}}}class kt extends _0x9c8a48{['afterInit'](){const _0x1c45eb=this['editor'];if(!_0x1c45eb['plugins']['has']('PageBreakEditing'))return;_0x1c45eb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x196eda=_0x1c45eb['plugins']['get']('TrackChangesEditing'),_0x4cac49=_0x1c45eb['locale'];_0x196eda['descriptionFactory']['registerElementLabel']('pageBreak',_0x189b45=>o(_0x4cac49,'ELEMENT_PAGE_BREAK',_0x189b45));}}class bt extends _0x9c8a48{['afterInit'](){const _0x1602e2=this['editor'];if(!_0x1602e2['plugins']['has']('Paragraph'))return;const _0x3ce4b8=_0x1602e2['locale'],_0x128c13=_0x1602e2['plugins']['get']('TrackChangesEditing');_0x128c13['descriptionFactory']['registerElementLabel']('paragraph',_0x4002b2=>o(_0x3ce4b8,'ELEMENT_PARAGRAPH',_0x4002b2)),_0x128c13['enableDefaultAttributesIntegration']('paragraph'),_0x128c13['enableCommand']('insertParagraph'),_0x1602e2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1602e2),{'priority':'highest'}),_0x1602e2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4c9c2c,_0x578c03,_0x3fd045)=>{_0x3fd045['options']['showSuggestionHighlights']&&nr(_0x1602e2,{'showActiveMarker':!0x1})(_0x4c9c2c,_0x578c03,_0x3fd045);},{'priority':'highest'});const _0x1cdba6=_0x128c13['descriptionFactory'];_0x1cdba6['registerDescriptionCallback'](_0x41a081=>{if('insertion'!==_0x41a081['type'])return;const {start:_0x42b04c,end:_0x2921a9}=_0x41a081['getFirstRange']();if(!_0x42b04c['isTouching'](_0x2921a9)||!_0x42b04c['nodeAfter'])return;const _0x40f0e4=_0x1602e2['model']['schema'],_0x37a89e=_0x42b04c['nodeAfter'];return _0x40f0e4['isBlock'](_0x37a89e)&&!_0x40f0e4['isLimit'](_0x37a89e)&&_0x40f0e4['checkChild'](_0x37a89e,'$text')?{'type':'insertion','content':o(_0x3ce4b8,'*Insert:*\x20%0',_0x1cdba6['getItemLabel'](_0x37a89e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x404e88=this['editor'],_0x238c9c=_0x404e88['locale'];_0x404e88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1af8f8=>{if('formatBlock'!=_0x1af8f8['type'])return;const {data:_0x17e424}=_0x1af8f8;return _0x17e424&&'paragraph'==_0x17e424['commandName']?{'type':'format','content':o(_0x238c9c,'*Change\x20to:*\x20%0',o(_0x238c9c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2edec8,{showActiveMarker:_0x197afc=!0x0}={}){return(_0xd10647,_0x34694b,_0x2032fb)=>{const _0x2e8f7a=_0x2edec8['plugins']['get']('TrackChangesEditing'),_0x2ac965=_0x34694b['markerRange']['start'],_0x327ba4=_0x34694b['markerRange']['end'],_0x4f164a=_0x2edec8['model']['schema'];if(!_0x2ac965['isTouching'](_0x327ba4)||!_0x2ac965['nodeAfter'])return;const _0xb519ed=_0x2ac965['nodeAfter'];if(_0x4f164a['isBlock'](_0xb519ed)&&!_0x4f164a['isLimit'](_0xb519ed)&&_0x4f164a['checkChild'](_0xb519ed,'$text')){if(!_0x2032fb['consumable']['consume'](_0x34694b['markerRange'],_0xd10647['name']))return;const {authorId:_0x3a21d7}=_0x2e8f7a['_splitMarkerName'](_0x34694b['markerName']),_0x54f8b7=_0x2032fb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3a21d7}),_0x448336=_0x2032fb['mapper']['toViewPosition'](_0x327ba4);_0x197afc&&_0x2e8f7a['activeMarkers']['includes'](_0x34694b['markerName'])&&_0x2032fb['writer']['addClass']('ck-suggestion-marker--active',_0x54f8b7),_0x2032fb['writer']['insert'](_0x448336,_0x54f8b7),_0x2032fb['mapper']['bindElementToMarker'](_0x54f8b7,_0x34694b['markerName']);}};}class wt extends _0x9c8a48{['afterInit'](){const _0x4a77d6=this['editor'];if(!_0x4a77d6['plugins']['has']('RemoveFormatEditing'))return;_0x4a77d6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x135f5d=this['editor'];_0x135f5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33e4c6=>{if('formatBlock'!=_0x33e4c6['type']&&'formatInline'!=_0x33e4c6['type'])return;const {data:_0x437fe0}=_0x33e4c6;return _0x437fe0&&'removeFormat'==_0x437fe0['commandName']?{'type':'format','content':o(_0x135f5d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x9c8a48{['afterInit'](){const _0x30d98c=this['editor'];if(!_0x30d98c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3d4982=_0x30d98c['plugins']['get']('TrackChangesEditing');_0x3d4982['enableCommand']('goToPreviousRestrictedEditingException'),_0x3d4982['enableCommand']('goToNextRestrictedEditingException');const _0x2d55f6=_0x30d98c['plugins']['get']('RestrictedEditingModeEditing');_0x2d55f6['enableCommand']('trackChanges'),_0x2d55f6['enableCommand']('acceptSuggestion'),_0x2d55f6['enableCommand']('discardSuggestion'),_0x2d55f6['enableCommand']('acceptAllSuggestions'),_0x2d55f6['enableCommand']('discardAllSuggestions'),_0x2d55f6['enableCommand']('acceptSelectedSuggestions'),_0x2d55f6['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x9c8a48{static get['requires'](){return[_0x23ed5e];}['init'](){const _0x4ace9f=this['editor'],_0x24d877=_0x4ace9f['plugins']['get']('TrackChangesEditing');_0x24d877['enableCommand']('shiftEnter'),_0x4ace9f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x4ace9f),{'priority':'high'}),_0x4ace9f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x4ace9f),{'priority':'high'}),_0x4ace9f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x585d48,_0x562e45,_0x530915)=>{_0x530915['options']['showSuggestionHighlights']&&ge(_0x4ace9f,{'showActiveMarker':!0x1})(_0x585d48,_0x562e45,_0x530915);}),_0x24d877['descriptionFactory']['registerElementLabel']('softBreak',_0x3fe324=>o(_0x4ace9f['locale'],'ELEMENT_LINE_BREAK',_0x3fe324));}}function ge(_0x155f63,{showActiveMarker:_0x38ab6a=!0x0}={}){return(_0x20d7ac,_0x378c8c,_0x5ad064)=>{const _0x21f0f8=_0x155f63['plugins']['get']('TrackChangesEditing');if(!_0x5ad064['consumable']['test'](_0x378c8c['markerRange'],_0x20d7ac['name']))return;const _0x11700e=_0x155f63['model'];for(const _0x302a06 of _0x378c8c['markerRange']['getItems']()){if(!_0x302a06['is']('element','softBreak'))continue;const _0x1409fc='deletion'==_0x378c8c['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x529341}=_0x21f0f8['_splitMarkerName'](_0x378c8c['markerName']),_0xc54d66=_0x5ad064['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1409fc,'data-author-id':_0x529341}),_0x1334d2=_0x5ad064['mapper']['toViewPosition'](_0x11700e['createPositionBefore'](_0x302a06));_0x38ab6a&&_0x21f0f8['activeMarkers']['includes'](_0x378c8c['markerName'])&&_0x5ad064['writer']['addClass']('ck-suggestion-marker--active',_0xc54d66),_0x5ad064['writer']['insert'](_0x1334d2,_0xc54d66),_0x5ad064['mapper']['bindElementToMarker'](_0xc54d66,_0x378c8c['markerName']);}};}class St extends _0x9c8a48{['afterInit'](){const _0x718d4e=this['editor'],_0x58f91b=_0x718d4e['model'],_0x55d4a6=_0x718d4e['locale'];if(!_0x718d4e['plugins']['has']('StandardEditingModeEditing'))return;const _0x10008c=_0x718d4e['plugins']['get']('TrackChangesEditing'),_0x4a9848='restrictedEditingException',_0x476640=_0x718d4e['commands']['get'](_0x4a9848);_0x10008c['enableCommand'](_0x4a9848,(_0x2ead51,_0xd51b14={})=>{const _0x1e80bf=_0x58f91b['document']['selection'];if(_0x1e80bf['isCollapsed'])return void _0x2ead51(_0xd51b14);const _0x26c05c=void 0x0!==_0xd51b14['forceValue']?_0xd51b14['forceValue']:!_0x476640['value'];_0x58f91b['change'](()=>{const _0x27989e=Array['from'](_0x1e80bf['getRanges']());for(const _0x36ab1b of _0x27989e){const _0x225388=_0x26c05c?[_0x36ab1b]:io(_0x4a9848,_0x36ab1b,_0x58f91b);for(const _0x3e827e of _0x225388)_0x10008c['markInlineFormat'](_0x3e827e,{'commandName':_0x4a9848,'commandParams':[{'forceValue':_0x26c05c}]});}});}),_0x10008c['descriptionFactory']['registerDescriptionCallback'](_0x51e261=>{if('formatBlock'!=_0x51e261['type']&&'formatInline'!=_0x51e261['type'])return;const {data:_0x2e4f0c}=_0x51e261;return _0x2e4f0c&&_0x2e4f0c['commandName']==_0x4a9848?_0x2e4f0c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55d4a6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x55d4a6,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x9c8a48{['afterInit'](){const _0x4ec493=this['editor'];if(!_0x4ec493['plugins']['has']('Style')||!_0x4ec493['plugins']['has']('DataSchema'))return;const _0x1e8875=_0x4ec493['plugins']['get']('TrackChangesEditing'),_0x251d60=_0x4ec493['locale'],_0xb88429=_0x4ec493['config']['get']('style')||{},_0x2a144c=_0x4ec493['plugins']['get']('GeneralHtmlSupport'),_0x3f9c30=_0x4ec493['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4ec493['plugins']['get']('DataSchema'),_0xb88429['definitions']);_0x1e8875['enableDefaultAttributesIntegration']('style');const _0x23fc59=new Set();for(const _0xc60e78 of _0x3f9c30['block']){const _0x54df8c=_0x2a144c['getGhsAttributeNameForElement'](_0xc60e78['element']);_0x23fc59['add'](_0x54df8c);}const _0x7d01fd=new Set();for(const _0x12983d of _0x3f9c30['inline']){const _0x3e97f5=_0x2a144c['getGhsAttributeNameForElement'](_0x12983d['element']);_0x7d01fd['add'](_0x3e97f5);for(const _0x76bbf5 of _0x12983d['ghsAttributes'])_0x7d01fd['add'](_0x76bbf5);}for(const _0x41662a of _0x23fc59)_0x1e8875['registerBlockAttribute'](_0x41662a),_0x1e8875['descriptionFactory']['registerAttributeLabel'](_0x41662a,o(_0x251d60,'FORMAT_STYLE'));for(const _0x4a7278 of _0x7d01fd)_0x1e8875['registerInlineAttribute'](_0x4a7278),_0x1e8875['descriptionFactory']['registerAttributeLabel'](_0x4a7278,o(_0x251d60,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34d000=this['editor'],_0x29f40d=_0x34d000['locale'];_0x34d000['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x296177=>{if('formatBlock'!=_0x296177['type']&&'formatInline'!=_0x296177['type'])return;const {data:_0x4284f8}=_0x296177;return _0x4284f8&&'style'===_0x4284f8['commandName']?_0x4284f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x29f40d,'*Set\x20format:*\x20%0',_0x4284f8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x29f40d,'*Remove\x20format:*\x20%0',_0x4284f8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x9c8a48{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x14c08f){super(_0x14c08f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x440873=this['editor'],_0x4693ce=_0x440873['model']['document']['selection'];if(!_0x440873['plugins']['has']('TableEditing'))return;const _0x2df353=_0x440873['locale'],_0xa5b87a=_0x440873['plugins']['get']('TrackChangesEditing'),_0x47376d=_0x440873['plugins']['get']('TableUtils');_0xa5b87a['descriptionFactory']['registerElementLabel']('table',_0x3b2238=>o(_0x2df353,'ELEMENT_TABLE',_0x3b2238)),this['_setupColumnsRowsFixing'](),_0xa5b87a['enableCommand']('insertTable'),_0xa5b87a['enableCommand']('selectTableRow'),_0xa5b87a['enableCommand']('selectTableColumn');for(const _0x518546 of['insertTableRowAbove','insertTableRowBelow']){const _0x5640ee=_0x440873['commands']['get'](_0x518546);_0xa5b87a['enableCommand'](_0x518546,_0x5dfa48=>{_0x440873['model']['change'](_0x312b7=>{_0x5dfa48();const _0x2fee53='above'===_0x5640ee['order'],_0x515a62=_0x47376d['getSelectionAffectedTableCells'](_0x4693ce),_0x5f39dd=_0x47376d['getRowIndexes'](_0x515a62),_0x466574=_0x2fee53?_0x5f39dd['first']-0x1:_0x5f39dd['last']+0x1,_0x2bb7c6=_0x515a62[0x0]['findAncestor']('table'),_0x426660=_0x47376d['createTableWalker'](_0x2bb7c6,{'startRow':_0x466574,'endRow':_0x466574}),_0x32b095=Array['from'](_0x426660)['map'](_0x3f6e00=>_0x312b7['createRangeOn'](_0x3f6e00['cell']));_0xa5b87a['markMultiRangeInsertion'](_0x32b095,'tableRow');});});}for(const _0x1df8c4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5dbbc7=_0x440873['commands']['get'](_0x1df8c4);_0xa5b87a['enableCommand'](_0x1df8c4,_0xe1b759=>{_0x440873['model']['change'](_0x217bb1=>{_0xe1b759();const _0xa737f2='left'===_0x5dbbc7['order'],_0x49ac06=_0x47376d['getSelectionAffectedTableCells'](_0x4693ce),_0x4b84cc=_0x47376d['getColumnIndexes'](_0x49ac06),_0x76968b=_0xa737f2?_0x4b84cc['first']-0x1:_0x4b84cc['last']+0x1,_0x3acea6=_0x49ac06[0x0]['findAncestor']('table'),_0x5835a5=_0x47376d['createTableWalker'](_0x3acea6,{'startRow':0x0,'column':_0x76968b,'includeAllSlots':!0x1}),_0x57b268=Array['from'](_0x5835a5)['map'](_0x4242f0=>_0x217bb1['createRangeOn'](_0x4242f0['cell']));_0xa5b87a['markMultiRangeInsertion'](_0x57b268,'tableColumn');});});}for(const _0x12a537 of['removeTableRow','removeTableColumn']){const _0x3ff9f5=_0x12a537['substr'](0xb),_0x526a71=_0x3ff9f5['toLowerCase'](),_0xf0150e=_0x526a71['substr'](0x0,0x3)+'span',_0x1b0c06='table'+_0x3ff9f5,_0x509fb6='min'+_0x3ff9f5,_0x3ec729='max'+_0x3ff9f5;_0xa5b87a['enableCommand'](_0x12a537,()=>{_0x440873['model']['change'](_0x510b14=>{const _0x325eca=_0x47376d['getSelectionAffectedTableCells'](_0x4693ce),_0x151b92=_0x325eca[0x0]['findAncestor']('table');let _0x70ef23;if('removeTableRow'==_0x12a537){const _0x4da5bb=_0x47376d['getRowIndexes'](_0x325eca);_0x70ef23={'startRow':_0x4da5bb['first'],'endRow':_0x4da5bb['last'],'includeAllSlots':!0x0};}else{const _0x111f77=_0x47376d['getColumnIndexes'](_0x325eca);_0x70ef23={'startColumn':_0x111f77['first'],'endColumn':_0x111f77['last'],'includeAllSlots':!0x0};}const _0x39ee22=_0x47376d['createTableWalker'](_0x151b92,_0x70ef23),_0x22f137=Array['from'](_0x39ee22)['map'](({cell:_0x39135b})=>_0x39135b),_0x13ec07=be(_0x22f137['filter'](_0x507585=>_0x507585['hasAttribute'](_0xf0150e))),_0xc01579=be(_0x22f137['filter'](_0x527cc5=>!_0x527cc5['hasAttribute'](_0xf0150e)))['map'](_0x281064=>_0x510b14['createRangeOn'](_0x281064)),_0x2f7107=_0xa5b87a['markMultiRangeDeletion'](_0xc01579,_0x1b0c06);if(_0x2f7107&&('tableRow'==_0x2f7107['subType']||'tableColumn'==_0x2f7107['subType'])){const _0x550ebf=this['_getSuggestionCoords'](_0x2f7107);for(const _0x2b4899 of _0x13ec07){const _0x4f7be3=_0x510b14['createRangeOn'](_0x2b4899),_0xbb1443=_0x47376d['getCellLocation'](_0x2b4899),_0x5248cc=_0x2b4899['getAttribute'](_0xf0150e)-0x1,_0x1abe2a=_0x550ebf[_0x509fb6],_0x3d057a=_0x550ebf[_0x3ec729];_0x1abe2a<=_0xbb1443[_0x526a71]&&_0xbb1443[_0x526a71]+_0x5248cc<=_0x3d057a&&_0x2f7107['addRange'](_0x4f7be3);}}});});}function _0x2f6a06(_0x54dc73){const _0x183ea9=Array['from'](_0x4693ce['getRanges']())['map'](_0x4f9d61=>_0x7a70a6['fromRange'](_0x4f9d61));_0x440873['model']['change'](_0x573a79=>{const _0x3123f2=_0x573a79['batch'];_0x54dc73=_0x54dc73['filter'](_0x4bb8c8=>'$graveyard'!=_0x4bb8c8['root']['rootName']),_0x573a79['setSelection'](_0x54dc73),_0x440873['commands']['get']('removeTableRow')['refresh'](),_0x440873['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x440873['model']['enqueueChange'](()=>{_0x440873['model']['enqueueChange'](_0x3123f2,_0x23b2b1=>{const _0x4e8e26=_0x183ea9['filter'](_0x555956=>'$graveyard'!=_0x555956['root']['rootName']);_0x4e8e26['length']>0x0&&_0x23b2b1['setSelection'](_0x4e8e26);for(const _0x3287e0 of _0x183ea9)_0x3287e0['detach']();});});});}function _0x5edd3a(_0x907ea){_0x440873['model']['change'](_0x55f5cd=>{const _0x2826ff=Array['from'](_0x4693ce['getRanges']())['map'](_0x51a7b2=>_0x7a70a6['fromRange'](_0x51a7b2)),_0x47d3b5=[];for(const _0x3f6b21 of _0x907ea)for(const _0x2a02de of _0x3f6b21['getItems']({'shallow':!0x0}))_0x47d3b5['push'](_0x2a02de);for(const _0x675e16 of _0x47d3b5)'$graveyard'!=_0x675e16['root']['rootName']&&(_0x55f5cd['setSelection'](_0x55f5cd['createPositionAt'](_0x675e16,0x0)),_0x440873['commands']['get']('removeTableColumn')['refresh'](),_0x440873['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x33b6a4=_0x2826ff['filter'](_0x4dac72=>'$graveyard'!=_0x4dac72['root']['rootName']);_0x33b6a4['length']>0x0&&_0x55f5cd['setSelection'](_0x33b6a4);for(const _0x2c25e7 of _0x2826ff)_0x2c25e7['detach']();});}function _0x4ee6c3(_0xc2fe67,_0x4d81f1){return _0x4d81f1['every'](_0xb6f0fd=>_0xc2fe67['some'](_0xd0d78e=>_0xd0d78e['end']['isEqual'](_0xb6f0fd['start'])||_0xb6f0fd['end']['isEqual'](_0xd0d78e['start'])));}function _0x47d08f(_0x2b4991,_0x7ab9c4){return!_0x2b4991['some'](_0x33b582=>_0x7ab9c4['some'](_0x56319b=>_0x33b582['isIntersecting'](_0x56319b)))&&_0x2b4991['some'](_0x154626=>_0x7ab9c4['some'](_0x20b36f=>_0x154626['end']['isTouching'](_0x20b36f['start'])));}_0x440873['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7ad04f,_0x1b2d91,_0x496b9c)=>{if(!_0x496b9c['options']['showSuggestionHighlights'])return;const _0x4d373a=_0x1b2d91['item'];if(!_0x4d373a)return;const _0xf03d39=_0x496b9c['mapper']['toViewElement'](_0x4d373a);function _0x1be8c4(_0x45fea5){return Array['isArray'](_0x45fea5)?_0x45fea5:[_0x45fea5];}_0xf03d39&&'tableCell'===_0x4d373a['name']&&_0x36d78c(_0xf03d39,_0x496b9c['writer'],(_0x343920,_0xc273f1,_0x17e1ae)=>_0x17e1ae['addClass'](_0x1be8c4(_0xc273f1['classes']),_0x343920),(_0x21fcd5,_0x58620e,_0x3e5bb9)=>_0x3e5bb9['removeClass'](_0x1be8c4(_0x58620e['classes']),_0x21fcd5));},{'priority':'highest'}),_0xa5b87a['descriptionFactory']['registerDescriptionCallback'](_0x3470c6=>{if('insertion'!=_0x3470c6['type']&&'deletion'!=_0x3470c6['type'])return;const _0x3423ea=_0x3470c6['getContainedElement']();if(null!=_0x3423ea&&_0x3423ea['is']('element','table')){if('insertion'==_0x3470c6['type']){const _0x5cd52e=_0x3470c6['getItems']()['filter'](_0x23e91f=>_0x23e91f['is']('$textProxy'))['map'](_0x3eb1f3=>_0x3eb1f3['data']);if(_0x5cd52e['length'])return{'type':'insertion','content':o(_0x2df353,'*Insert:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5cd52e['join']('\x20')+'\x22'))};}if('deletion'==_0x3470c6['type']){const _0x9bf19d=_0x3470c6['getItems']()['filter'](_0x40984b=>_0x40984b['is']('$textProxy'))['map'](_0x444058=>_0x444058['data']);if(_0x9bf19d['length'])return{'type':'deletion','content':o(_0x2df353,'*Remove:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9bf19d['join']('\x20')+'\x22'))};}}}),_0xa5b87a['descriptionFactory']['registerDescriptionCallback'](_0x2cf835=>{if('tableRow'==_0x2cf835['subType']){const _0x5c49a1=_0x2cf835['getItems']()['filter'](_0x1ff550=>_0x1ff550['is']('$textProxy'))['map'](_0x480299=>_0x480299['data']),_0xe6dd5b=this['_getSuggestionCoords'](_0x2cf835),_0xd7225d=_0xe6dd5b['maxRow']-_0xe6dd5b['minRow']+0x1;if('insertion'==_0x2cf835['type'])return _0x5c49a1['length']?{'type':'insertion','content':o(_0x2df353,'*Insert:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd7225d,'\x22'+_0x5c49a1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2df353,'*Insert:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_ROW',_0xd7225d))};if('deletion'==_0x2cf835['type'])return _0x5c49a1['length']?{'type':'deletion','content':o(_0x2df353,'*Remove:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd7225d,'\x22'+_0x5c49a1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2df353,'*Remove:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_ROW',_0xd7225d))};}if('tableColumn'==_0x2cf835['subType']){const _0x15096d=_0x2cf835['getItems']()['filter'](_0x561664=>_0x561664['is']('$textProxy'))['map'](_0x57e719=>_0x57e719['data']),_0x15d0ba=this['_getSuggestionCoords'](_0x2cf835),_0x3f86a8=_0x15d0ba['maxColumn']-_0x15d0ba['minColumn']+0x1;if('insertion'==_0x2cf835['type'])return _0x15096d['length']?{'type':'insertion','content':o(_0x2df353,'*Insert:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3f86a8,'\x22'+_0x15096d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2df353,'*Insert:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_COLUMN',_0x3f86a8))};if('deletion'==_0x2cf835['type'])return _0x15096d['length']?{'type':'deletion','content':o(_0x2df353,'*Remove:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3f86a8,'\x22'+_0x15096d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2df353,'*Remove:*\x20%0',o(_0x2df353,'ELEMENT_TABLE_COLUMN',_0x3f86a8))};}}),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2f6a06),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2f6a06),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5edd3a),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5edd3a),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4ee6c3),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4ee6c3),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x47d08f),_0xa5b87a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x47d08f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1d4c7d=this['editor'],_0x4e0c18=_0x1d4c7d['model']['document']['selection'];return(_0x2409c6,_0x31133b)=>{_0x1d4c7d['model']['change'](_0xd82f84=>{const {commandName:_0x15b226,commandParams:_0x26d4d7}=_0x31133b;let _0xd267fb=_0x2409c6[0x0]['end']['nodeBefore'];_0x26d4d7&&_0x26d4d7[0x0]&&!0x1===_0x26d4d7[0x0]['forceValue']&&(_0xd267fb=_0x2409c6[0x0]['start']['nodeAfter']);const _0x508250=_0xd82f84['createRangeIn'](_0xd267fb);if('$graveyard'==_0x508250['root']['rootName'])return;const _0xbb22d3=Array['from'](_0x4e0c18['getRanges']())['map'](_0x133bde=>_0x7a70a6['fromRange'](_0x133bde));_0xd82f84['setSelection'](_0x508250),_0x1d4c7d['commands']['get'](_0x15b226)['refresh'](),_0x26d4d7['push']({'forceDefaultExecution':!0x0}),_0x1d4c7d['execute'](_0x15b226,..._0x26d4d7);const _0x310502=_0xbb22d3['filter'](_0x3e4042=>'$graveyard'!=_0x3e4042['root']['rootName']);_0x310502['length']>0x0&&_0xd82f84['setSelection'](_0x310502);for(const _0x478fcf of _0xbb22d3)_0x478fcf['detach']();});};}['_getCoordsForCells'](_0x41d37b){const _0x1c4073=this['editor']['plugins']['get']('TableUtils');let _0x15a018=Number['MAX_SAFE_INTEGER'],_0x487d85=Number['MIN_SAFE_INTEGER'],_0x13a5cd=Number['MAX_SAFE_INTEGER'],_0x1269dd=Number['MIN_SAFE_INTEGER'];for(const _0x51ac67 of _0x41d37b){if('$graveyard'==_0x51ac67['root']['rootName'])continue;const {row:_0x275717,column:_0x1f6af0}=_0x1c4073['getCellLocation'](_0x51ac67),_0x49e63e=_0x51ac67['hasAttribute']('rowspan')?_0x51ac67['getAttribute']('rowspan')-0x1:0x0,_0x5eef7c=_0x51ac67['hasAttribute']('colspan')?_0x51ac67['getAttribute']('colspan')-0x1:0x0;_0x15a018=_0x275717<_0x15a018?_0x275717:_0x15a018,_0x487d85=_0x275717+_0x49e63e>_0x487d85?_0x275717+_0x49e63e:_0x487d85,_0x13a5cd=_0x1f6af0<_0x13a5cd?_0x1f6af0:_0x13a5cd,_0x1269dd=_0x1f6af0+_0x5eef7c>_0x1269dd?_0x1f6af0+_0x5eef7c:_0x1269dd;}return{'minRow':_0x15a018,'maxRow':_0x487d85,'minColumn':_0x13a5cd,'maxColumn':_0x1269dd};}['_setupColumnsRowsFixing'](){const _0x54a243=this['editor'],_0x999449=_0x54a243['plugins']['get']('TrackChangesEditing'),_0x864ef0=_0x54a243['plugins']['get']('TableUtils');_0x54a243['model']['document']['on']('change:data',()=>{const _0x2cfb9b=Array['from'](_0x54a243['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x598e1f,data:_0x5425a3}of _0x2cfb9b){const {group:_0x503140,id:_0x237fcf,subType:_0x42e10b}=_0x999449['_splitMarkerName'](_0x598e1f);if('suggestion'!=_0x503140)continue;if(null!=_0x5425a3['oldRange'])continue;const _0x13a8c8=_0x999449['getSuggestion'](_0x237fcf);this['_tablePostFixingSubtypes']['includes'](_0x42e10b)&&this['_tableSuggestions']['add'](_0x13a8c8);}},{'priority':'low'});const _0x276bd2=(_0xe604e8,_0x299631)=>{let _0x20da2d=!0x1;const _0x1d9077=_0x299631['createRangeOn'](_0xe604e8),_0x48e44b=_0xe604e8['findAncestor']('table'),_0xc4340f=_0x864ef0['getCellLocation'](_0xe604e8);for(const _0xcc21bc of this['_tableSuggestions']){const _0x41e589=_0xcc21bc['subType'],_0x3ea7e1=_0x41e589['startsWith']('tablePaste'),_0x20aed7=_0x41e589['substr'](_0x3ea7e1?0xa:0x5),_0x3a14b3=_0x20aed7['toLowerCase'](),_0x38d8b6=_0x3a14b3['substr'](0x0,0x3)+'span',_0x57cc88='min'+_0x20aed7,_0x33447a='max'+_0x20aed7;if(!_0xcc21bc['isInContent'])continue;if(_0x48e44b!=_0xcc21bc['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xcc21bc['isIntersectingWithRange'](_0x1d9077))continue;const _0xefe01f=_0xe604e8['hasAttribute'](_0x38d8b6)?_0xe604e8['getAttribute'](_0x38d8b6)-0x1:0x0,_0x5cbfef=this['_getSuggestionCoords'](_0xcc21bc),_0x86f658=_0x5cbfef[_0x57cc88],_0x1ea44f=_0x5cbfef[_0x33447a];_0x86f658<=_0xc4340f[_0x3a14b3]&&_0xc4340f[_0x3a14b3]+_0xefe01f<=_0x1ea44f&&(_0xcc21bc['addRange'](_0x1d9077),_0x20da2d=!0x0);}return _0x20da2d;};_0x54a243['model']['document']['registerPostFixer'](_0x267ab8=>{let _0x192f78=!0x1;for(const _0x466888 of _0x54a243['model']['document']['differ']['getChanges']())if('insert'==_0x466888['type']){if('tableRow'==_0x466888['name']){for(const _0x22f835 of _0x466888['position']['nodeAfter']['getChildren']())_0x192f78=_0x192f78||_0x276bd2(_0x22f835,_0x267ab8);}else'tableCell'==_0x466888['name']&&(_0x192f78=_0x192f78||_0x276bd2(_0x466888['position']['nodeAfter'],_0x267ab8));}return _0x192f78;});}['_getSuggestionCoords'](_0x365963){return this['_getCoordsForCells'](_0x365963['getRanges']()['map'](_0x29f34d=>_0x29f34d['start']['nodeAfter']));}}function be(_0xde2c3f){return Array['from'](new Set(_0xde2c3f)['values']());}class vt extends _0x9c8a48{static get['requires'](){return[It];}['afterInit'](){const _0x272f50=this['editor'],_0x4918d7=_0x272f50['model']['document']['selection'],_0x50147b=_0x272f50['locale'];if(!_0x272f50['plugins']['has']('TableEditing'))return;const _0x13e220=_0x272f50['plugins']['get']('TrackChangesEditing'),_0x4b5c24=_0x272f50['plugins']['get']('TableUtils'),_0x3e8f50=_0x272f50['plugins']['get'](It);_0x3e8f50['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x13e220['enableCommand']('mergeTableCells',()=>{const _0x486fe8=_0x4b5c24['getSelectionAffectedTableCells'](_0x272f50['model']['document']['selection']);_0x272f50['model']['change'](()=>{_0x13e220['markMultiRangeBlockFormat'](_0x486fe8,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x272f50['commands']['get']('mergeTableCells')['on']('execute',(_0x167f28,_0x2eb012)=>{_0x272f50['commands']['get']('trackChanges')['value']&&(_0x2eb012['length']>0x0&&_0x2eb012[_0x2eb012['length']-0x1]&&_0x2eb012[_0x2eb012['length']-0x1]['forceDefaultExecution']||_0x13e220['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x167f28['stop']());},{'priority':'highest'});for(const _0x5a8b0d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3841e6=_0x272f50['commands']['get'](_0x5a8b0d);_0x13e220['enableCommand'](_0x5a8b0d,()=>{const _0x3d4113=_0x272f50['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x492372=>_0x492372['is']('element','tableCell')),_0x26ed5d=_0x3841e6['value'];_0x272f50['model']['change'](()=>{_0x13e220['markMultiRangeBlockFormat']([_0x3d4113,_0x26ed5d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x38d2ad of['splitTableCellVertically','splitTableCellHorizontally']){const _0xe37f45=_0x272f50['commands']['get'](_0x38d2ad);_0x13e220['enableCommand'](_0x38d2ad,()=>{const _0x28a0c8=_0x4b5c24['getSelectionAffectedTableCells'](_0x272f50['model']['document']['selection'])[0x0],_0x804ee1=_0x28a0c8['findAncestor']('table'),{column:_0x3f99fd,row:_0x1908ae}=_0x4b5c24['getCellLocation'](_0x28a0c8);let _0x4dcdca=[];if('horizontally'==_0xe37f45['direction']){const _0x1899a1=_0x4b5c24['createTableWalker'](_0x804ee1,{'startRow':_0x1908ae,'endRow':_0x1908ae,'includeAllSlots':!0x0});_0x4dcdca=Array['from'](_0x1899a1)['map'](_0x2f97dc=>_0x2f97dc['cell']);}else{const _0x1bb22e=_0x4b5c24['createTableWalker'](_0x804ee1,{'column':_0x3f99fd,'includeAllSlots':!0x0});_0x4dcdca=Array['from'](_0x1bb22e)['map'](_0x13ea01=>_0x13ea01['cell']);}_0x272f50['model']['change'](_0x52b83f=>{_0x13e220['markBlockFormat'](_0x52b83f['createRangeOn'](_0x28a0c8),{'commandName':_0x38d2ad,'commandParams':[]},_0x4dcdca,_0x38d2ad);});});}_0x13e220['descriptionFactory']['registerDescriptionCallback'](_0x51d812=>{if('formatBlock'!=_0x51d812['type']&&'formatInline'!=_0x51d812['type'])return;const {data:_0x3e2f74}=_0x51d812;return _0x3e2f74&&'mergeTableCells'==_0x3e2f74['commandName']?{'type':'format','content':o(_0x50147b,'*Merge\x20cells*')}:void 0x0;}),_0x13e220['descriptionFactory']['registerDescriptionCallback'](_0x519689=>{if('formatBlock'!=_0x519689['type']&&'formatInline'!=_0x519689['type'])return;const {data:_0x2a497f}=_0x519689;return _0x2a497f?'splitTableCellVertically'==_0x2a497f['commandName']?{'type':'format','content':o(_0x50147b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2a497f['commandName']?{'type':'format','content':o(_0x50147b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x303334=_0x3e8f50['_acceptFormatSuggestionCallbackFactory']();for(const _0x372607 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x13e220['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x372607,'accept',_0x303334);for(const _0x2f1806 of['splitTableCellVertically','splitTableCellHorizontally'])_0x13e220['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2f1806,'accept',_0x303334);_0x13e220['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3a7145=>{_0x272f50['model']['change'](_0x55f337=>{const _0x46b3b9=Array['from'](_0x4918d7['getRanges']())['map'](_0x2a5913=>_0x7a70a6['fromRange'](_0x2a5913));_0x55f337['setSelection'](_0x3a7145),_0x272f50['commands']['get']('mergeTableCells')['refresh'](),_0x272f50['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x370b1a=_0x46b3b9['filter'](_0xcbc646=>'$graveyard'!=_0xcbc646['root']['rootName']);_0x370b1a['length']>0x0&&_0x55f337['setSelection'](_0x370b1a);for(const _0x4be06f of _0x46b3b9)_0x4be06f['detach']();});});for(const _0x28b79c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x577c14=_0x272f50['commands']['get'](_0x28b79c);_0x577c14['on']('set:isEnabled',(_0xa74217,_0x112a5f,_0x3d255f)=>{if(_0x3d255f){const _0x234288=_0x272f50['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x146f28=>_0x146f28['is']('element','tableCell'));this['_areMergableCells'](_0x577c14['value'],_0x234288)||(_0xa74217['return']=!0x1,_0xa74217['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xf85246=this['editor']['commands']['get']('mergeTableCells'),_0x327a61=this['editor']['plugins']['get']('TableUtils');if(!_0xf85246['isEnabled'])return!0x1;const _0x35e8ba=_0x327a61['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5364a5 of _0x35e8ba)for(const _0x2fc19c of _0x35e8ba)if(_0x5364a5!=_0x2fc19c&&!this['_areMergableCells'](_0x5364a5,_0x2fc19c))return!0x1;return!0x0;}['_areMergableCells'](_0x1c7f5c,_0x3b8e43){const _0x10c1af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b051a=this['editor']['model']['createRangeOn'](_0x1c7f5c),_0x2ba0b5=this['editor']['model']['createRangeOn'](_0x3b8e43),_0x438d94=new Set(),_0x4eead4=new Set();for(const _0x234d78 of _0x10c1af['getSuggestions']())if(('insertion'==_0x234d78['type']||'deletion'==_0x234d78['type']||'mergeTableCells'==_0x234d78['subType'])&&_0x234d78['isInContent']){for(const _0x1564db of _0x234d78['getRanges']())_0x1564db['containsRange'](_0x3b051a,!0x0)&&_0x438d94['add'](_0x234d78['type']+':'+_0x234d78['author']['id']),_0x1564db['containsRange'](_0x2ba0b5,!0x0)&&_0x4eead4['add'](_0x234d78['type']+':'+_0x234d78['author']['id']);}if(_0x438d94['size']!=_0x4eead4['size'])return!0x1;for(const _0x4ac932 of _0x438d94)if(!_0x4eead4['has'](_0x4ac932))return!0x1;return!0x0;}}class Ct extends _0x9c8a48{static get['requires'](){return[It];}['afterInit'](){const _0x52a00d=this['editor'];if(!_0x52a00d['plugins']['has']('TableEditing'))return;const _0x202265=_0x52a00d['locale'],_0xd53356=_0x52a00d['plugins']['get']('TrackChangesEditing');_0xd53356['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xd53356['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xd53356['registerBlockAttribute']('headingRows'),_0xd53356['registerBlockAttribute']('headingColumns'),_0xd53356['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x202265,'FORMAT_HEADER_ROW')),_0xd53356['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x202265,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x28506f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcaac79=this['editor']['plugins']['get']('TableUtils'),_0x39fc55=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x56e3f5({showActiveMarker:_0x473773=!0x0,setDataAttribute:_0x219dc5=!0x0}={}){return(_0x152e81,_0x59028a,_0x2daeb1)=>{const {type:_0x2d8cd0,id:_0x26875e}=_0x28506f['_splitMarkerName'](_0x59028a['markerName']),_0x348458=_0x28506f['getSuggestion'](_0x26875e),_0x1bc087=_0x348458['data'];if('formatBlock'!=_0x348458['type']||!_0x1bc087||'setTableColumnHeader'!=_0x1bc087['commandName'])return;if(_0x59028a['item'])return void _0x152e81['stop']();if(!_0x2daeb1['consumable']['consume'](_0x59028a['markerRange'],_0x152e81['name']))return;const _0x724ad2=_0x59028a['markerRange']['start']['nodeAfter'],_0x42e6cf=_0x59028a['markerRange']['end']['nodeBefore'],_0x18bbba=_0x724ad2['parent']['parent'],{column:_0x3b1fde}=_0xcaac79['getCellLocation'](_0x724ad2),{column:_0x2fe58d}=_0xcaac79['getCellLocation'](_0x42e6cf);for(let _0x1776a7=_0x3b1fde;_0x1776a7<=_0x2fe58d;_0x1776a7++){const _0x283618=_0xcaac79['createTableWalker'](_0x18bbba,{'column':_0x1776a7,'includeAllSlots':!0x1});for(const _0x4c3ab9 of _0x283618){const _0x19464f=_0x4c3ab9['cell'],_0x3951ba=_0x2daeb1['mapper']['toViewElement'](_0x19464f);_0x2daeb1['writer']['addClass']('ck-suggestion-marker-'+_0x2d8cd0,_0x3951ba),_0x219dc5&&_0x2daeb1['writer']['setAttribute']('data-suggestion',_0x26875e,_0x3951ba),_0x2daeb1['mapper']['bindElementToMarker'](_0x3951ba,_0x59028a['markerName']),_0x473773&&(_0x28506f['activeMarkers']['includes'](_0x59028a['markerName'])?_0x2daeb1['writer']['addClass']('ck-suggestion-marker--active',_0x3951ba):_0x2daeb1['writer']['removeClass']('ck-suggestion-marker--active',_0x3951ba));}}};}_0x28506f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x39fc55),_0x28506f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x39fc55),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x56e3f5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34a9f1,_0x2d37cb,_0x149cbe)=>{_0x149cbe['options']['showSuggestionHighlights']&&_0x56e3f5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34a9f1,_0x2d37cb,_0x149cbe);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x407dbe,_0x5a0daf,_0x20c79c)=>{const {type:_0x4614f9,id:_0x1dfc66}=_0x28506f['_splitMarkerName'](_0x5a0daf['markerName']),_0x17649d=_0x28506f['getSuggestion'](_0x1dfc66),_0x20434a=_0x17649d['data'];if('formatBlock'!=_0x17649d['type']||!_0x20434a||'setTableColumnHeader'!=_0x20434a['commandName'])return;const _0x2f3f44=_0x20c79c['mapper']['markerNameToElements'](_0x5a0daf['markerName']);if(_0x2f3f44){for(const _0x523e2e of _0x2f3f44)_0x20c79c['writer']['removeClass']('ck-suggestion-marker-'+_0x4614f9,_0x523e2e),_0x20c79c['writer']['removeClass']('ck-suggestion-marker--active',_0x523e2e),_0x20c79c['writer']['removeAttribute']('data-suggestion',_0x523e2e),_0x20c79c['mapper']['unbindElementFromMarkerName'](_0x523e2e,_0x5a0daf['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x382b29=this['editor'],_0x3dc9b9=_0x382b29['locale'];function _0x1cc73f(_0x42d781){return{'type':'format','content':o(_0x3dc9b9,'*Format:*\x20%0',_0x42d781)};}_0x382b29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x326033=>{if('formatBlock'!=_0x326033['type'])return;const {data:_0x392277}=_0x326033;if(_0x392277){if('setTableRowHeader'==_0x392277['commandName']){const _0x50da19=_0x392277['commandParams'][0x0]['forceValue'];return _0x1cc73f(o(_0x3dc9b9,_0x50da19?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x392277['commandName']){const _0x23f260=_0x392277['commandParams'][0x0]['forceValue'];return _0x1cc73f(o(_0x3dc9b9,_0x23f260?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0xd5f515=>[_0xd5f515,null]));class _t extends _0x9c8a48{static get['requires'](){return[It];}['afterInit'](){const _0x3568cc=this['editor'];if(!_0x3568cc['plugins']['has']('TableClipboard'))return;const _0x18974b=_0x3568cc['plugins']['get']('TrackChangesEditing'),_0x5c5e94=_0x3568cc['plugins']['get']('TableUtils'),_0x5efefa=_0x3568cc['plugins']['get'](It),_0x954ff2=_0x3568cc['plugins']['get']('TableClipboard');_0x5efefa['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3568cc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3568cc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x503e15=null;_0x3568cc['model']['on']('insertContent',(_0x3d8edd,_0x2e07d1)=>{const [_0x74c6cf,_0x22e71c]=_0x2e07d1,_0xae73fd=_0x2e07d1[_0x2e07d1['length']-0x1];_0xae73fd&&_0xae73fd['forceDefaultExecution']||_0x18974b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2077c5,_0x4dfbcf,_0x8d62d3,_0x28f014,_0x256681){if(_0x4dfbcf&&!_0x4dfbcf['is']('documentSelection'))return!0x1;const _0x5432b0=_0x256681['getTableIfOnlyTableInContent'](_0x2077c5,_0x8d62d3);if(!_0x5432b0||!Re(_0x5432b0,void 0x0,_0x28f014))return!0x1;const _0x216ff4=_0x28f014['getSelectionAffectedTableCells'](_0x8d62d3['document']['selection']);if(!_0x216ff4['length'])return!0x1;const _0x14c44e=_0x216ff4[0x0]['findAncestor']('table'),_0x543d19=_0x28f014['getRowIndexes'](_0x216ff4),_0x4669bd=_0x28f014['getColumnIndexes'](_0x216ff4),_0x59ac64={'startRow':_0x543d19['first'],'endRow':_0x543d19['last'],'startColumn':_0x4669bd['first'],'endColumn':_0x4669bd['last']};return 0x1==_0x216ff4['length']&&(_0x59ac64['endRow']+=_0x28f014['getRows'](_0x5432b0)-0x1,_0x59ac64['endColumn']+=_0x28f014['getColumns'](_0x5432b0)-0x1),Re(_0x14c44e,_0x59ac64,_0x28f014);}(_0x74c6cf,_0x22e71c,_0x3568cc['model'],_0x5c5e94,_0x954ff2)&&(_0x3d8edd['stop'](),_0x503e15={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3568cc['model']['change'](()=>{_0x3568cc['model']['insertContent'](_0x2e07d1[0x0],_0x2e07d1[0x1],_0x2e07d1[0x2],{'forceDefaultExecution':!0x0});const _0x2fa455=_0x5b34d0(),{rowInsertionRanges:_0x377473,columnInsertionRanges:_0x5ea430,insertionRanges:_0x55677b,deletionRanges:_0x34907a,cells:_0x49578a}=_0x503e15;_0x377473['length']&&_0x18974b['markMultiRangeInsertion'](_0x377473,'tablePasteRow',{'tablePasteChainId':_0x2fa455}),_0x5ea430['length']&&_0x18974b['markMultiRangeInsertion'](_0x5ea430,'tablePasteColumn',{'tablePasteChainId':_0x2fa455}),_0x55677b['length']&&(_0x18974b['markMultiRangeInsertion'](_0x55677b,'tablePaste',{'tablePasteChainId':_0x2fa455,'skipNestingCheck':!0x0}),_0x55677b['forEach'](_0x139814=>_0x139814['detach']?.())),_0x34907a['length']&&(_0x18974b['markMultiRangeDeletion'](_0x34907a,'tablePaste',{'tablePasteChainId':_0x2fa455,'skipNestingCheck':!0x0}),_0x34907a['forEach'](_0x4b6c72=>_0x4b6c72['detach']?.()));const _0x55289f=_0x18974b['markMultiRangeBlockFormat'](_0x49578a['map'](({element:_0x42c230})=>_0x42c230),{'formatGroupId':_0x5b34d0()},[],'tablePasteCell',{'tablePasteChainId':_0x2fa455});if(_0x55289f){const _0xfab400=_0x55289f['getMarkers'](),_0x16460f=[];for(const {element:_0x38d58a,attributes:_0x232a77}of _0x49578a){if(!_0x232a77)continue;const _0x3d377b=_0x3568cc['model']['createRangeOn'](_0x38d58a),_0x8c9fba=_0xfab400['find'](_0x2fe6f2=>_0x2fe6f2['getRange']()['isEqual'](_0x3d377b));_0x8c9fba&&_0x16460f['push']([_0x8c9fba['name'],_0x232a77]);}_0x16460f['length']&&_0x55289f['setAttribute']('markerAttributes',Object['fromEntries'](_0x16460f));}_0x503e15=null;}));},{'priority':_0x19cb17['high']+0xa}),_0x3568cc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x234b5a,_0x5e7c75)=>{const [_0x5c74a5,_0x22cf90,,_0x22f602]=_0x5e7c75;if(!_0x503e15)return;_0x234b5a['stop']();const _0x576aa1=_0x5c74a5['cell'],_0x172027=_0x22cf90,_0x3ad13b=ke(_0x576aa1),_0x6826c9=ke(_0x172027);_0x234b5a['return']=_0x576aa1;let _0x2588b0=null,_0xbf25b3=null;if(_0x6826c9||_0x3ad13b){if(_0x3ad13b&&!_0x6826c9){_0x22f602['remove'](_0x576aa1['getChild'](0x0));for(const _0x18066b of Array['from'](_0x172027['getChildren']()))_0x22f602['insert'](_0x18066b,_0x576aa1,'end');const _0x4cc8c6=_0x503e15['rowInsertionIndexes']['includes'](_0x5c74a5['row']),_0x49086d=_0x503e15['columnInsertionIndexes']['includes'](_0x5c74a5['column']);_0x4cc8c6||_0x49086d||(_0x2588b0=_0x7a70a6['fromRange'](_0x22f602['createRangeIn'](_0x576aa1)));}else _0x6826c9&&!_0x3ad13b&&(_0xbf25b3=_0x22f602['createRangeIn'](_0x576aa1));}else{const _0x1c1358=_0x22f602['createElement']('tableCellSuggestion'),_0x20fc0f=_0x22f602['createElement']('tableCellSuggestion');_0x22f602['wrap'](_0x22f602['createRangeIn'](_0x576aa1),_0x20fc0f),_0x22f602['insert'](_0x1c1358,_0x576aa1,0x0);for(const _0x113f6c of Array['from'](_0x172027['getChildren']()))_0x22f602['insert'](_0x113f6c,_0x1c1358,'end');_0x2588b0=_0x7a70a6['fromRange'](_0x22f602['createRangeOn'](_0x1c1358)),_0xbf25b3=_0x7a70a6['fromRange'](_0x22f602['createRangeOn'](_0x20fc0f));}const _0x4c72ce=Array['from'](_0x172027['getAttributes']())['filter'](([_0x3634d2])=>Pe['includes'](_0x3634d2));_0x503e15['cells']['push']({'element':_0x576aa1,'attributes':_0x4c72ce['length']?Object['fromEntries'](_0x4c72ce):null}),_0x2588b0&&_0x503e15['insertionRanges']['push'](_0x2588b0),_0xbf25b3&&_0x503e15['deletionRanges']['push'](_0xbf25b3);},{'priority':'high'}),_0x5c5e94['on']('insertColumns',(_0x44efb5,_0x302dbf)=>{const [_0x3323d1,_0x199828={}]=_0x302dbf;if(!_0x503e15)return;const _0x51cc91=_0x199828['at']||0x0,_0x57a0ce=_0x199828['columns']||0x1;_0x503e15['columnInsertionIndexes']=new Array(_0x57a0ce)['fill'](_0x51cc91)['map']((_0x3637b1,_0x5ef92e)=>_0x3637b1+_0x5ef92e);for(const {cell:_0x5788b5}of _0x5c5e94['createTableWalker'](_0x3323d1,{'startColumn':_0x51cc91,'endColumn':_0x51cc91+_0x57a0ce-0x1}))_0x503e15['columnInsertionRanges']['push'](_0x3568cc['model']['createRangeOn'](_0x5788b5));},{'priority':'low'}),_0x5c5e94['on']('insertRows',(_0x22cc44,_0xcf1cb7)=>{const [_0x4f666c,_0x570bc2={}]=_0xcf1cb7;if(!_0x503e15)return;const _0x3b717e=_0x570bc2['at']||0x0,_0x343e96=_0x570bc2['rows']||0x1;_0x503e15['rowInsertionIndexes']=new Array(_0x343e96)['fill'](_0x3b717e)['map']((_0xae36d8,_0x490be1)=>_0xae36d8+_0x490be1);for(const {cell:_0x1faa84}of _0x5c5e94['createTableWalker'](_0x4f666c,{'startRow':_0x3b717e,'endRow':_0x3b717e+_0x343e96-0x1}))_0x503e15['rowInsertionRanges']['push'](_0x3568cc['model']['createRangeOn'](_0x1faa84));},{'priority':'low'}),_0x18974b['descriptionFactory']['registerDescriptionCallback'](_0x13cad4=>{if(_0x13cad4['subType']&&_0x13cad4['subType']['startsWith']('tablePaste'))return _0x13cad4['previous']?{}:{'type':'insertion','content':o(_0x3568cc['locale'],'*Replace\x20table\x20cells*')};});const _0x3f3541=()=>!0x1;for(const _0x366bc7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x18974b['_suggestionFactory']['registerCustomCallback']('insertion',_0x366bc7,'join',_0x3f3541),_0x18974b['_suggestionFactory']['registerCustomCallback']('deletion',_0x366bc7,'join',_0x3f3541),_0x18974b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x366bc7,'join',_0x3f3541);_0x18974b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3f3541),_0x18974b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x184191,_0x26568b,_0x23a2e0)=>{const _0x53e9e8=_0x184191['map'](_0x2a3316=>_0x2a3316['getContainedElement']())['filter'](_0x5a28c6=>_0x5a28c6),_0x202b1a=new Map(_0x53e9e8['map'](_0x575448=>[_0x575448,null]));if(_0x503e15){for(const {element:_0x5d13ed,attributes:_0x269a5c}of _0x503e15['cells'])_0x269a5c&&_0x202b1a['set'](_0x5d13ed,_0x269a5c);}else{if(_0x23a2e0&&_0x23a2e0['markerAttributes'])for(const [_0x57def0,_0x4a0e22]of Object['entries'](_0x23a2e0['markerAttributes'])){const _0x186e5b=_0x3568cc['model']['markers']['get'](_0x57def0),_0x15fda1=_0x186e5b?_0x186e5b['getRange']()['getContainedElement']():null;_0x15fda1&&_0x202b1a['set'](_0x15fda1,_0x4a0e22);}}_0x3568cc['model']['change'](_0x1e5551=>{for(const [_0x48a9d2,_0x330d5b]of _0x202b1a)_0x1e5551['setAttributes']({...we,..._0x330d5b},_0x48a9d2);});});const _0x28b14c=(_0x1df508,_0x55fccb)=>{_0x18974b['_suggestionFactory']['registerCustomCallback'](_0x1df508,'tablePaste',_0x55fccb,(_0x3f0459,_0x408bc2,_0x12f5f9)=>{_0x3568cc['model']['change'](_0xa5c271=>{const _0x39d726=[];for(const _0x83c27d of _0x3f0459){const _0x210439=_0x83c27d['start']['nodeAfter'];_0x210439['is']('element','tableCellSuggestion')&&_0x39d726['push'](_0x210439);}_0x18974b['_suggestionFactory']['getSuggestionCallback'](_0x1df508,null,_0x55fccb)(_0x3f0459,_0x408bc2,_0x12f5f9);for(const _0x322f32 of _0x39d726)'$graveyard'!=_0x322f32['root']['rootName']&&_0xa5c271['unwrap'](_0x322f32);});});};_0x28b14c('insertion','accept'),_0x28b14c('insertion','discard'),_0x28b14c('deletion','accept'),_0x28b14c('deletion','discard'),_0x18974b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1323fe=>{const _0x28c4b1=_0x1323fe['map'](_0x28fd81=>_0x28fd81['getContainedElement']()),_0x16504c=_0x28c4b1[0x0]['findAncestor']('table'),{minRow:_0x2879ce,maxRow:_0x5e64d5}=_0x5efefa['_getCoordsForCells'](_0x28c4b1);_0x5c5e94['removeRows'](_0x16504c,{'at':_0x2879ce,'rows':_0x5e64d5-_0x2879ce+0x1});}),_0x18974b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1179e4=>{const _0xfbe193=_0x1179e4['map'](_0x4d6608=>_0x4d6608['getContainedElement']()),_0x2de128=_0xfbe193[0x0]['findAncestor']('table'),{minColumn:_0x79cf51,maxColumn:_0x3a8d8a}=_0x5efefa['_getCoordsForCells'](_0xfbe193);_0x5c5e94['removeColumns'](_0x2de128,{'at':_0x79cf51,'columns':_0x3a8d8a-_0x79cf51+0x1});});const _0x28344c=(_0x55645c,_0x4450d6)=>{if(!_0x4450d6['subType']||!_0x4450d6['subType']['startsWith']('tablePaste'))return;const _0x4aeef5=_0x4450d6['attributes']['tablePasteChainId'],_0x442e59=_0x18974b['getSuggestions']()['filter'](_0x522330=>_0x522330['isInContent']&&_0x522330['attributes']&&_0x522330['attributes']['tablePasteChainId']==_0x4aeef5);_0x442e59['length']&&_0x4450d6['getAllAdjacentSuggestions']()['length']!=_0x442e59['length']&&_0x442e59['reduce']((_0x559f90,_0x4a1003)=>(_0x559f90['next']=_0x4a1003,_0x4a1003['previous']=_0x559f90,_0x4a1003));};function _0x2785ad(_0x12695a,_0x1755c7=!0x0){const {id:_0x5c7454,authorId:_0x252461}=_0x18974b['_splitMarkerName'](_0x12695a['markerName']),_0x3ec402=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x10b0f9=_0x18974b['activeMarkers']['includes'](_0x12695a['markerName']);return _0x10b0f9&&_0x3ec402['push']('ck-suggestion-marker--active'),{'classes':_0x3ec402,'attributes':{'data-suggestion':_0x5c7454,'data-author-id':_0x252461},'priority':_0x10b0f9&&_0x1755c7?0xbc2:0xbb8};}_0x18974b['on']('suggestionLoaded',_0x28344c,{'priority':'high'}),_0x18974b['on']('suggestionUnloaded',_0x28344c,{'priority':'high'}),_0x3568cc['model']['document']['registerPostFixer'](()=>{let _0x4dc4c0=!0x1;const _0x56cc84=Array['from'](_0x3568cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10cd7c,data:_0x56c16c}of _0x56cc84){const {group:_0x44bda5,type:_0x15d486,id:_0x3ed93e}=_0x18974b['_splitMarkerName'](_0x10cd7c);if('suggestion'!=_0x44bda5||'deletion'!=_0x15d486||_0x56c16c['oldRange'])continue;if(!_0x18974b['hasSuggestion'](_0x3ed93e))continue;const _0x38e112=_0x18974b['getSuggestion'](_0x3ed93e)['getRanges'](),_0x50fe41=_0x3568cc['plugins']['get']('Users')['me'];for(const _0x37c7c0 of _0x18974b['getSuggestions']()){if(!_0x37c7c0['isInContent']||_0x37c7c0['author']!=_0x50fe41)continue;if('formatBlock'!=_0x37c7c0['type']||'tablePasteCell'!=_0x37c7c0['subType'])continue;if(_0x37c7c0['getRanges']()['every'](_0x4077c=>_0x38e112['some'](_0x17f84a=>_0x17f84a['containsRange'](_0x4077c,!0x0)))){for(const _0x5084ba of _0x37c7c0['getAllAdjacentSuggestions']())_0x5084ba['isInContent']&&(_0x5084ba['discard'](),_0x4dc4c0=!0x0);}}}return _0x4dc4c0;}),_0x3568cc['model']['document']['registerPostFixer'](_0x32758e=>{const _0xca3ef8=_0x3568cc['commands']['get']('redo');if(!_0xca3ef8||!_0xca3ef8['_createdBatches']['has'](_0x32758e['batch']))return!0x1;let _0x46702e=!0x1;const _0x20e7f2=_0x3568cc['plugins']['get']('Users')['me'],_0x2d3482=_0x3568cc['model']['document']['differ']['getChanges'](),_0x5a0236=Array['from'](_0x3568cc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x217e4c,data:_0x26d964})=>{const {group:_0x4f98bc,subType:_0x8d5395,authorId:_0x1650b6}=_0x18974b['_splitMarkerName'](_0x217e4c);return'suggestion'==_0x4f98bc&&'tablePaste'==_0x8d5395&&_0x1650b6==_0x20e7f2['id']&&!_0x26d964['oldRange'];});for(const _0x193352 of _0x2d3482){if('insert'!=_0x193352['type']||'tableCellSuggestion'!=_0x193352['name']||0x1!=_0x193352['length'])continue;const _0x5d4bb4=_0x32758e['createRange'](_0x193352['position'],_0x193352['position']['getShiftedBy'](0x1));if(!_0x5a0236['find'](({data:_0x2ddf70})=>_0x2ddf70['newRange']['isEqual'](_0x5d4bb4))){for(const {name:_0x1f1f76,data:_0x477d57}of _0x5a0236)if(_0x5d4bb4['containsRange'](_0x477d57['newRange'])){_0x32758e['updateMarker'](_0x1f1f76,{'range':_0x5d4bb4}),_0x46702e=!0x0;break;}}}return _0x46702e;}),_0x3568cc['model']['document']['registerPostFixer'](_0x24c3c4=>{let _0x3ccecf=!0x1;const _0x4f4189=_0x3568cc['plugins']['get']('Users')['me'],_0x36bb49=_0x18974b['getSuggestions']()['filter'](_0x576719=>_0x576719['isInContent']&&_0x576719['author']==_0x4f4189),_0x330ea9=new Set(),_0x3f6412=new Set();for(const _0x37f384 of _0x36bb49)if('tablePaste'==_0x37f384['subType'])for(const _0x5b2376 of _0x37f384['getMarkers']()){const _0x3e3f00=_0x5b2376['getRange']()['getContainedElement']();if(_0x3e3f00){if(_0x3e3f00['is']('element','tableCellSuggestion')&&ke(_0x3e3f00)){_0x37f384['removeMarker'](_0x5b2376['name']),_0x330ea9['add'](_0x3e3f00),_0x3ccecf=!0x0;const _0x55953e=_0x3e3f00['nextSibling'],_0x315614=_0x3e3f00['previousSibling'],_0x506391=_0x55953e&&_0x55953e['is']('element','tableCellSuggestion'),_0x1f7c38=_0x315614&&_0x315614['is']('element','tableCellSuggestion');_0x506391&&!_0x330ea9['has'](_0x55953e)&&_0x3f6412['add'](_0x55953e),_0x1f7c38&&!_0x330ea9['has'](_0x315614)&&_0x3f6412['add'](_0x315614);}else _0x3e3f00['is']('element','paragraph')&&_0x3e3f00['isEmpty']&&(_0x37f384['removeMarker'](_0x5b2376['name']),_0x3ccecf=!0x0);}}else{if('tablePasteCell'==_0x37f384['subType']){if(!_0x37f384['attributes']||!_0x37f384['attributes']['tablePasteChainId'])continue;const _0x497735=_0x37f384['attributes']['markerAttributes'];if(_0x497735&&Object['keys'](_0x497735)['length'])continue;const _0x5cf760=_0x37f384['attributes']['tablePasteChainId'];let _0x18e325=!0x0,_0x2764a5=!0x0;for(const _0xaba784 of _0x36bb49)if(_0xaba784['subType']&&_0xaba784['subType']['startsWith']('tablePaste')){if(!_0xaba784['attributes']['tablePasteChainId']){_0x2764a5=!0x1;break;}if(_0xaba784['id']!=_0x37f384['id']&&_0xaba784['attributes']['tablePasteChainId']==_0x5cf760){_0x18e325=!0x1;break;}}_0x2764a5&&_0x18e325&&(_0x37f384['removeMarkers'](),_0x3ccecf=!0x0);}}for(const _0x531fec of _0x330ea9)_0x24c3c4['remove'](_0x531fec);for(const _0xe71f2c of _0x3f6412)_0x24c3c4['unwrap'](_0xe71f2c);return _0x3ccecf;}),_0x3568cc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1bdb4c=>_0x2785ad(_0x1bdb4c),'converterPriority':'high'}),_0x3568cc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5cd9ee,_0x50eac7)=>_0x50eac7['options']['showSuggestionHighlights']?_0x2785ad(_0x5cd9ee,!0x1):null,'converterPriority':'high'});const _0x265418=_0x3568cc['editing']['view'];this['listenTo'](_0x265418['document'],'clipboardOutput',(_0x2ca5c9,_0x4052fa)=>{const _0x5f4e00=[];for(const _0x5f55a1 of _0x265418['createRangeIn'](_0x4052fa['content'])['getItems']())_0x5f55a1['is']('element','suggestion-td')&&_0x5f4e00['push'](_0x5f55a1);_0x265418['change'](_0x534ee8=>{for(const _0x49a44b of _0x5f4e00)_0x534ee8['move'](_0x534ee8['createRangeIn'](_0x49a44b),_0x534ee8['createPositionBefore'](_0x49a44b)),_0x534ee8['remove'](_0x49a44b);});});}}function ke(_0x1e45aa){if(_0x1e45aa['isEmpty'])return!0x0;const _0x5ca13a=_0x1e45aa['getChild'](0x0);return _0x5ca13a['is']('element','paragraph')&&_0x5ca13a['isEmpty'];}function Re(_0x5b713f,_0x40810b={},_0x530aaa){for(const {isAnchor:_0x12d4d5,cellHeight:_0x2159ba,cellWidth:_0x23c026}of _0x530aaa['createTableWalker'](_0x5b713f,{'includeAllSlots':!0x0,..._0x40810b}))if(!_0x12d4d5||0x1!=_0x2159ba||0x1!=_0x23c026)return!0x1;return!0x0;}class Nt extends _0x9c8a48{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x154b9a=this['editor']['plugins']['get']('TrackChangesEditing');_0x154b9a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x154b9a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x154b9a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x154b9a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x154b9a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x154b9a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x52aa6a,_0x3dddcc){const _0xfd6cd8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35bc2d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3a6fb3=_0x3dddcc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2e6200=_0x35bc2d['getColumnGroupElement'](_0x3a6fb3);let _0x57ca40=_0x2e6200?_0x35bc2d['getTableColumnsWidths'](_0x2e6200):null,_0x45684f=_0x3a6fb3['getAttribute']('tableWidth')||null;const _0x447425=_0x3dddcc['tableWidth']||_0x45684f,_0x46f7d6=_0x3dddcc['columnWidths']||_0x57ca40,_0x16b0d8=this['editor']['plugins']['get']('Users')['me'];for(const _0x36fca9 of _0xfd6cd8['getSuggestions']()){const _0x30d8f0=_0x36fca9['getContainedElement']();if('resizeTable'===_0x36fca9['subType']&&_0x30d8f0===_0x3a6fb3){_0x36fca9['author']!==_0x16b0d8&&_0x36fca9['discard']();const _0x5c4fa2=_0x36fca9['data']['commandParams'];_0x45684f=_0x5c4fa2[0x0]['tableWidth'],_0x57ca40=_0x5c4fa2[0x0]['columnWidths'];break;}}_0x52aa6a({'table':_0x3a6fb3,'tableWidth':_0x447425,'columnWidths':_0x46f7d6}),_0xfd6cd8['markBlockFormat'](_0x3a6fb3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x45684f,'columnWidths':_0x57ca40}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x251aa2){if('formatBlock'!=_0x251aa2['type']&&'formatInline'!=_0x251aa2['type'])return;const {data:_0x981ea2}=_0x251aa2;if(_0x981ea2&&'resizeTable'===_0x981ea2['formatGroupId']){const _0x44c14a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x44c14a)};}}}class Dt extends _0x9c8a48{['afterInit'](){const _0x592b2b=this['editor'];_0x592b2b['plugins']['has']('Template')&&_0x592b2b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x9c8a48{['afterInit'](){const _0x1f8ada=this['editor'];if(!_0x1f8ada['commands']['get']('insertTableOfContents'))return;_0x1f8ada['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x55c042=_0x1f8ada['plugins']['get']('TrackChangesEditing'),_0x3a9c76=_0x1f8ada['locale'];_0x55c042['descriptionFactory']['registerElementLabel']('tableOfContents',_0x52ca6c=>o(_0x3a9c76,'ELEMENT_TABLE_OF_CONTENTS',_0x52ca6c));}}class $t extends _0x9c8a48{['afterInit'](){const _0x1628b9=this['editor'];if(!_0x1628b9['plugins']['has']('Title'))return;const _0x4bed9a=_0x1628b9['plugins']['get']('TrackChangesEditing');_0x4bed9a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1628b9['locale'],'ELEMENT_TITLE')),_0x1628b9['model']['document']['registerPostFixer'](_0x1a5c73=>{let _0x3ffdfa=!0x1;const _0x42bc5b=Array['from'](_0x1628b9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xddccc9,data:_0x382686}of _0x42bc5b){const {group:_0x113011}=_0x4bed9a['_splitMarkerName'](_0xddccc9);if('suggestion'!==_0x113011||!_0x382686['newRange'])continue;const _0x4a9dfc=_0x382686['newRange'],_0x9305a7=_0x4a9dfc['end']['nodeBefore'];if(!_0x9305a7||!_0x9305a7['is']('element','title-content'))continue;if(!_0x4a9dfc['start']['isTouching'](_0x4a9dfc['end']))continue;const _0xa0ee9c=_0x1628b9['model']['schema']['getNearestSelectionRange'](_0x4a9dfc['end'],'forward');if(_0xa0ee9c&&_0xa0ee9c['isCollapsed']){const _0x5c0ff1=_0x1a5c73['createRange'](_0x4a9dfc['start'],_0xa0ee9c['start']);_0x5c0ff1['isEqual'](_0x4a9dfc)||(_0x1a5c73['updateMarker'](_0xddccc9,{'range':_0x5c0ff1}),_0x3ffdfa=!0x0);}_0x3ffdfa||(_0x1a5c73['removeMarker'](_0xddccc9),_0x3ffdfa=!0x0);}return _0x3ffdfa;});}}class Bt extends _0x9c8a48{['afterInit'](){const _0x54c331=this['editor'],_0x3dc0d4=_0x54c331['plugins']['get']('TrackChangesEditing');_0x54c331['plugins']['has']('UndoEditing')&&(_0x3dc0d4['enableCommand']('undo'),_0x3dc0d4['enableCommand']('redo'));}}class xt extends _0x9c8a48{static get['requires'](){return[It];}['afterInit'](){const _0x240e13=this['editor'];if(!_0x240e13['plugins']['has']('TableCaptionEditing'))return;_0x240e13['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x9c8a48{['tableProperties'];['tableCellProperties'];constructor(_0x4303d2){super(_0x4303d2),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x15330a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2559ff of this['tableProperties'])_0x15330a['enableCommand'](_0x2559ff,(_0x1641b3,_0x3f6527)=>{const _0x1beb66=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2559ff,[_0x1beb66],this['tableProperties'],'tableProperties',_0x1641b3,_0x3f6527);});_0x15330a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x15330a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15330a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x564dd5,_0x494339)=>this['handleDiscardAction'](this['tableProperties'],_0x564dd5,_0x494339)),_0x15330a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4c5b84 of this['tableCellProperties'])_0x15330a['enableCommand'](_0x4c5b84,(_0x4966c0,_0x38d543)=>{const _0x3938cf=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4c5b84,_0x3938cf,this['tableCellProperties'],'tableCellProperties',_0x4966c0,_0x38d543);});_0x15330a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x15330a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15330a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1ef1de,_0xf61823)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1ef1de,_0xf61823)),_0x15330a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x15330a['descriptionFactory']['registerDescriptionCallback'](_0x37fc44=>this['handleSuggestionDescription'](_0x37fc44));}['_handlePropertyChange'](_0x53111e,_0x2f51eb,_0x342412,_0xa78535,_0x5f0394,_0xe9a0b9){const _0x37e9f7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xe9a0b9['batch'],()=>{for(const _0xb69f70 of _0x2f51eb){if(this['_getSuggestion'](_0xb69f70,_0xa78535))_0x5f0394(_0xe9a0b9);else{const _0x402bcd={};for(const _0x4b38e5 of _0x342412){const _0x2a9e83=_0xb69f70['getAttribute'](_0x4b38e5);void 0x0!==_0x2a9e83&&(_0x402bcd[_0x4b38e5]=_0x2a9e83);}_0x5f0394(_0xe9a0b9),_0x37e9f7['markBlockFormat'](_0xb69f70,{'commandParams':[_0x402bcd]},[],_0xa78535);}}});}['handleDiscardAction'](_0x270590,_0x4be426,_0x3fd82f){const _0xa98ab0=_0x4be426[0x0]['start']['nodeAfter'],_0x3d458b=_0x3fd82f['commandParams'][0x0];this['editor']['model']['change'](_0x25add7=>{for(const _0x168e0d of _0x270590)void 0x0!==_0x3d458b[_0x168e0d]?_0x25add7['setAttribute'](_0x168e0d,_0x3d458b[_0x168e0d],_0xa98ab0):_0x25add7['removeAttribute'](_0x168e0d,_0xa98ab0);});}['handleSuggestionDescription'](_0x589da3){if(_0x589da3['data'])switch(_0x589da3['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'](_0x5e3d84,_0xd9b7e9){const _0x20453b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x162d13 of _0x20453b['getSuggestions']({'skipNotAttached':!0x0})){const _0x20a784=_0x162d13['getContainedElement']();if(_0x162d13['subType']===_0xd9b7e9&&_0x20a784===_0x5e3d84)return _0x162d13;}return null;}}const m='$elementName';class p extends _0x9c8a48{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4a537f,_0x5cd259,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,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d548c){function _0x4423b0(_0x9fb29){return _0x9fb29['map'](_0x1dc8c7=>String['fromCharCode'](_0x1dc8c7))['join']('');}super(_0x4d548c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3db633,_0x216dd9,_0x57f0b9,_0x48e206)=>{this['_model']['change'](()=>{for(const _0x2aca6b of[..._0x48e206,..._0x57f0b9])this['_model']['markers']['has'](_0x2aca6b)&&_0x4d548c['editing']['reconvertMarker'](_0x2aca6b);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4d548c['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(),_0x4d548c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4d548c['config']['get']('trackChanges.trackFormatChanges'),_0x4d548c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4d548c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4d548c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4423b0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4423b0([0x34,0x30,0x34,0x38,0x32,0x30,0x33,0x38]);}['init'](){const _0x30ceeb=this['editor'],_0x301e21=(_0x54e62f,_0x5be253)=>{if('attribute'!=_0x54e62f)return'ck-suggestion-marker-'+_0x54e62f;const _0x241fe7=_0x5be253['split']('|')[0x0];return this['_isBlockAttribute'](_0x241fe7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x30ceeb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x46098f=>{const {id:_0x4a6ee9,authorId:_0x56e165,type:_0x44cb4a,subType:_0x53899c}=this['_splitMarkerName'](_0x46098f['markerName']),_0x2324c4=['ck-suggestion-marker',_0x301e21(_0x44cb4a,_0x53899c)];let _0x54e23e=0xbb8;return this['activeMarkers']['includes'](_0x46098f['markerName'])&&(_0x2324c4['push']('ck-suggestion-marker--active'),_0x54e23e=0xbc2),'deletion'==_0x44cb4a&&(_0x54e23e+=0x5),{'classes':_0x2324c4,'attributes':{'data-suggestion':_0x4a6ee9,'data-author-id':_0x56e165},'priority':_0x54e23e};}}),_0x30ceeb['conversion']['for']('dataDowncast')['add'](_0x542a94=>{_0x542a94['on']('addMarker:suggestion',(_0x12921a,_0x133a1c,_0x1e5311)=>{if(!_0x1e5311['options']['showSuggestionHighlights'])return;const _0x286729=_0x133a1c['item'];if(!_0x286729)return;const _0x1a4286=_0x1e5311['mapper']['toViewElement'](_0x286729);_0x30ceeb['model']['schema']['isObject'](_0x286729)&&_0x1a4286&&!_0x1a4286['getCustomProperty']('widget')&&_0x1a4286['is']('containerElement')&&_0x43d8d3(_0x1a4286,_0x1e5311['writer']);},{'priority':'high'});}),_0x30ceeb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5ca99c,_0x1f46d2)=>{if(!_0x1f46d2['options']['showSuggestionHighlights'])return null;const {type:_0x53b2b8,subType:_0x2e2f8a}=this['_splitMarkerName'](_0x5ca99c['markerName']);return{'classes':['ck-suggestion-marker',_0x301e21(_0x53b2b8,_0x2e2f8a)],'priority':0xbb8};}});const _0x49070a=({showActiveMarkers:_0x4776e0=!0x0,isAttributeSuggestion:_0x4b0b2b=!0x1}={})=>(_0x34642a,_0x26abe1,_0x32e5b0)=>{if(!_0x26abe1['item'])return;const {id:_0x17e91b,authorId:_0x5c35cf}=this['_splitMarkerName'](_0x26abe1['markerName']);if(_0x4b0b2b){const _0x171872=this['_suggestions']['get'](_0x17e91b),_0x302857=this['_getAttributeKey'](_0x171872);if(!this['_isBlockAttribute'](_0x302857))return;}if(_0x26abe1['item']['is']('selection'))return void _0x32e5b0['consumable']['consume'](_0x26abe1['item'],_0x34642a['name']);const _0x219da5=_0x32e5b0['mapper']['toViewElement'](_0x26abe1['item']);if(_0x26abe1['item']['is']('element')&&_0x30ceeb['model']['schema']['isBlock'](_0x26abe1['item'])&&!_0x219da5['getCustomProperty']('addHighlight')){_0x32e5b0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x219da5),_0x32e5b0['writer']['setAttribute']('data-suggestion',_0x17e91b,_0x219da5),_0x32e5b0['writer']['setAttribute']('data-author-id',_0x5c35cf,_0x219da5),_0x32e5b0['mapper']['bindElementToMarker'](_0x219da5,_0x26abe1['markerName']),_0x4776e0&&(this['activeMarkers']['includes'](_0x26abe1['markerName'])?_0x32e5b0['writer']['addClass']('ck-suggestion-marker--active',_0x219da5):_0x32e5b0['writer']['removeClass']('ck-suggestion-marker--active',_0x219da5));for(const _0x9a4cec of _0x30ceeb['model']['createRangeIn'](_0x26abe1['item'])['getItems']())_0x32e5b0['consumable']['consume'](_0x9a4cec,_0x34642a['name']);_0x32e5b0['consumable']['consume'](_0x26abe1['item'],_0x34642a['name']);}};_0x30ceeb['conversion']['for']('dataDowncast')['add'](_0x5c071a=>{_0x5c071a['on']('addMarker:suggestion:formatBlock',(_0x37bcd2,_0xe8c661,_0x4421d6)=>{_0x4421d6['options']['showSuggestionHighlights']&&_0x49070a({'showActiveMarkers':!0x1})(_0x37bcd2,_0xe8c661,_0x4421d6);},{'priority':'highest'});}),_0x30ceeb['conversion']['for']('dataDowncast')['add'](_0x13efee=>{_0x13efee['on']('addMarker:suggestion:attribute',(_0x477951,_0x142697,_0x51013c)=>{_0x51013c['options']['showSuggestionHighlights']&&_0x49070a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x477951,_0x142697,_0x51013c);},{'priority':'highest'});}),_0x30ceeb['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4a40fc,_0x4461ff)=>_0x4461ff['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4a40fc['substr'](0xb)}}),_0x30ceeb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x104a97,{writer:_0x3b4d8f})=>{let _0x2d918a='suggestion:'+_0x104a97['getAttribute']('suggestion-type')+':'+_0x104a97['getAttribute']('id');return _0x104a97['getAttribute']('marker-count')&&(_0x2d918a+=':'+_0x104a97['getAttribute']('marker-count')),_0x3b4d8f['createElement']('$marker',{'data-name':_0x2d918a});}}),_0x30ceeb['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x30ceeb['conversion']['for']('editingDowncast')['add'](_0x3832f9=>{_0x3832f9['on']('addMarker:suggestion:formatBlock',_0x49070a(),{'priority':'high'});}),_0x30ceeb['conversion']['for']('editingDowncast')['add'](_0x12520b=>{_0x12520b['on']('addMarker:suggestion:attribute',_0x49070a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x30ceeb['conversion']['for']('editingDowncast')['add'](_0x339960=>{_0x339960['on']('removeMarker:suggestion:formatBlock',(_0x277a18,_0xa50122,_0x499421)=>{const _0x7e99da=_0x499421['mapper']['markerNameToElements'](_0xa50122['markerName']);if(_0x7e99da){for(const _0x32128b of _0x7e99da)_0x32128b['getCustomProperty']('addHighlight')||(_0x499421['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x32128b),_0x499421['writer']['removeAttribute']('data-suggestion',_0x32128b),_0x499421['writer']['removeAttribute']('data-author-id',_0x32128b),_0x499421['mapper']['unbindElementFromMarkerName'](_0x32128b,_0xa50122['markerName']));}},{'priority':'high'});}),_0x30ceeb['conversion']['for']('editingDowncast')['add'](_0x409ff0=>{_0x409ff0['on']('removeMarker:suggestion:attribute',(_0x25c268,_0x2484f4,_0x24680)=>{const _0xd73eac=_0x24680['mapper']['markerNameToElements'](_0x2484f4['markerName']);if(!_0xd73eac)return;const {id:_0x5ef76f}=this['_splitMarkerName'](_0x2484f4['markerName']),_0xc6c0ed=this['_suggestions']['get'](_0x5ef76f),_0x41742a=this['_getAttributeKey'](_0xc6c0ed);if(this['_isBlockAttribute'](_0x41742a)){for(const _0x33ee5e of _0xd73eac)_0x33ee5e['getCustomProperty']('addHighlight')||(_0x24680['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x33ee5e),_0x24680['writer']['removeAttribute']('data-suggestion',_0x33ee5e),_0x24680['writer']['removeAttribute']('data-author-id',_0x33ee5e),_0x24680['mapper']['unbindElementFromMarkerName'](_0x33ee5e,_0x2484f4['markerName']));}},{'priority':'high'});}),_0x30ceeb['model']['document']['registerPostFixer'](_0x39d88a=>{let _0x52f238=!0x1;const _0x22a3c7=Array['from'](_0x30ceeb['model']['document']['differ']['getChangedMarkers']()),_0x26da69=new Set();for(const {name:_0x4e0026,data:_0x144920}of _0x22a3c7){const {group:_0x339239,type:_0x49e46c,subType:_0x155bdd,id:_0x9fafb9}=this['_splitMarkerName'](_0x4e0026);if('suggestion'!==_0x339239)continue;const _0x38ca1a=this['_suggestions']['get'](_0x9fafb9);if(null!=_0x144920['newRange']){'formatInline'==_0x49e46c&&(_0x52f238=_0x52f238||Ut(_0x144920['newRange'],_0x4e0026,_0x39d88a,_0x30ceeb['model']['schema']));const _0x5aee36='attribute'==_0x49e46c&&this['_isBlockAttribute'](_0x155bdd['split']('|')[0x0]);if(_0x144920['newRange']['isCollapsed']||'$graveyard'==_0x144920['newRange']['root']['rootName']||'formatBlock'==_0x49e46c&&!Gt(_0x144920['newRange'])||_0x5aee36&&!Gt(_0x144920['newRange'])||'deletion'==_0x49e46c&&!(!Vt(_0x3c0a89=_0x144920['newRange'])&&!function(_0x4c0db5){return _0x4c0db5['start']['parent']==_0x4c0db5['end']['nodeBefore']&&_0x4c0db5['start']['isAtEnd'];}(_0x3c0a89)))_0x39d88a['removeMarker'](_0x4e0026),_0x52f238=!0x0;else{if(!_0x38ca1a||!_0x38ca1a['isInContent'])continue;if(_0x144920['newRange']&&_0x144920['oldRange']&&_0x144920['newRange']['isEqual'](_0x144920['oldRange']))continue;_0x26da69['add'](_0x38ca1a);}}}var _0x3c0a89;return _0x26da69['size']>0x0&&(_0x52f238=!!this['_joinWithAdjacentSuggestions'](_0x26da69)||_0x52f238),_0x52f238;}),_0x30ceeb['model']['document']['registerPostFixer'](_0x4157c0=>{let _0x54bb70=!0x1;for(const _0x5afa9c of _0x30ceeb['model']['document']['differ']['getChanges']())if('insert'==_0x5afa9c['type'])for(const _0x459c15 of this['_suggestions']['values']()){if(_0x459c15['isMultiRange']||!_0x459c15['isInContent'])continue;const _0x50e5da='formatBlock'==_0x459c15['type'],_0xd04888=this['_getAttributeKey'](_0x459c15),_0x217c37=_0xd04888&&this['_isBlockAttribute'](_0xd04888);if(!_0x50e5da&&!_0x217c37)continue;const _0x1791a1=_0x459c15['getFirstRange']();if(_0x1791a1['start']['parent']!=_0x1791a1['end']['parent']&&!_0x1791a1['end']['isAtEnd']){const _0xe68ff7=_0x30ceeb['model']['createPositionAt'](_0x1791a1['start']['nodeAfter'],'end'),_0xdd1524=_0x30ceeb['model']['createRange'](_0x1791a1['start'],_0xe68ff7);_0x4157c0['updateMarker'](_0x459c15['getFirstMarker'](),{'range':_0xdd1524}),_0x54bb70=!0x0;}}return _0x54bb70;}),_0x30ceeb['model']['document']['registerPostFixer'](_0x290036=>this['_processAttributeChanges'](_0x290036)),_0x30ceeb['model']['document']['registerPostFixer'](_0x2037ca=>!_0x2037ca['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2037ca)),_0x30ceeb['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x30ceeb['model']['document']['on']('change:data',(_0x5f172d,_0x1f7103)=>{if(!_0x1f7103['isLocal']||_0x1f7103['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x289cff=_0x30ceeb['model']['document']['differ']['getChanges']();if(0x0==_0x289cff['length'])return;const _0x34c254=[],_0x280c45=_0x289cff['filter'](_0xd23957=>'attribute'==_0xd23957['type']),_0x43d21b=_0x289cff['filter'](_0x59bc8c=>'insert'==_0x59bc8c['type']&&'$text'!=_0x59bc8c['name']);for(const _0xf20fdb of _0x280c45)this['_isRegisteredAttribute'](_0xf20fdb['attributeKey'])&&_0x34c254['push']({'key':_0xf20fdb['attributeKey'],'newValue':_0xf20fdb['attributeNewValue'],'oldValue':_0xf20fdb['attributeOldValue'],'range':Ft(_0xf20fdb['range'],_0x30ceeb['model'])});for(const _0x49f308 of _0x43d21b){if('rename'!=_0x49f308['action']&&'refresh'!=_0x49f308['action'])continue;const _0x527918=Lt(_0x49f308['position']['nodeAfter'],_0x30ceeb['model']),_0x96628f=_0x49f308['before'];'rename'==_0x49f308['action']&&_0x34c254['push']({'key':m,'newValue':_0x49f308['name'],'oldValue':_0x96628f['name'],'range':_0x527918});for(const [_0x356786,_0x4cc2dc]of _0x96628f['attributes']){if(!this['_isRegisteredAttribute'](_0x356786))continue;const _0x2af854=_0x49f308['attributes']['get'](_0x356786);_0x4cc2dc!==_0x2af854&&_0x34c254['push']({'key':_0x356786,'newValue':_0x2af854,'oldValue':_0x4cc2dc,'range':_0x527918});}for(const [_0x1623c5,_0x4c608b]of _0x49f308['attributes'])this['_isRegisteredAttribute'](_0x1623c5)&&(_0x96628f['attributes']['has'](_0x1623c5)||_0x34c254['push']({'key':_0x1623c5,'newValue':_0x4c608b,'oldValue':null,'range':_0x527918}));}0x0!=_0x34c254['length']&&_0x30ceeb['model']['enqueueChange'](_0x1f7103,_0x3671fb=>{const _0x42550d=_0x5b34d0();for(const {range:_0x40b9e1,key:_0xb4c31c,oldValue:_0x48c35d,newValue:_0x544549}of _0x34c254)this['markAttributeChange'](_0x40b9e1,_0xb4c31c,_0x48c35d,_0x544549,{'groupId':_0x42550d});this['_reduceExistingSuggestions'](_0x3671fb,_0x34c254);});},{'priority':'lowest'}),_0x30ceeb['model']['markers']['on']('update:suggestion',(_0x3539dc,_0xa51ca1,_0x5841f7)=>{if(null==_0x5841f7){const {id:_0x228cc9}=this['_splitMarkerName'](_0xa51ca1['name']),_0x32f45d=this['_suggestions']['get'](_0x228cc9);_0x32f45d&&_0x32f45d['addMarkerName'](_0xa51ca1['name']);}}),_0x30ceeb['model']['document']['on']('change:data',()=>{const _0x50e0f6=Array['from'](_0x30ceeb['model']['document']['differ']['getChangedMarkers']())['filter'](_0x336b10=>'suggestion'===this['_splitMarkerName'](_0x336b10['name'])['group']);if(0x0===_0x50e0f6['length'])return;_0x50e0f6['sort']((_0x3b8931,_0x10279f)=>{const _0x2e58ad=_0x3b8931['data']['oldRange'],_0x97951d=_0x10279f['data']['oldRange'];return null===_0x2e58ad&&null===_0x97951d?0x0:null===_0x2e58ad&&null!==_0x97951d?-0x1:null!==_0x2e58ad&&null===_0x97951d?0x1:_0x2e58ad['start']['isBefore'](_0x97951d['start'])?-0x1:0x1;});const _0x123321=new Set(),_0x14a7bc=new Set();for(const {name:_0x5bc394,data:_0x30f53f}of _0x50e0f6){const {id:_0x481376}=this['_splitMarkerName'](_0x5bc394);if(null===_0x30f53f['oldRange']){const _0x2948fb=this['_handleNewSuggestionMarker'](_0x5bc394);_0x14a7bc['add'](_0x2948fb);}else{const _0x51cbae=this['_suggestions']['get'](_0x481376);null!==_0x30f53f['newRange']||_0x51cbae['isInContent']?(_0x123321['add'](_0x51cbae['head']),_0x14a7bc['add'](_0x51cbae)):this['_removeSuggestion'](_0x51cbae);}}_0x14a7bc['size']>0x0&&this['_refreshSuggestionsChain'](_0x14a7bc);for(const _0x3e7ba1 of _0x123321)this['fire']('suggestionChanged',_0x3e7ba1);}),_0x30ceeb['model']['on']('applyOperation',(_0x49c88f,_0x16d2c5)=>{const _0x7f563d=_0x16d2c5[0x0];if(!this['_suggestions']['size'])return;if(!_0x7f563d['isDocumentOperation'])return;if(_0x7f563d['batch']['isUndo']||!_0x7f563d['batch']['isLocal'])return;let _0x423687,_0x3651be;switch(_0x7f563d['type']){case'insert':_0x423687=_0x30ceeb['model']['createPositionAt'](_0x7f563d['position']),_0x3651be=_0x423687['getShiftedBy'](_0x7f563d['howMany']);break;case'split':_0x423687=_0x30ceeb['model']['createPositionAt'](_0x7f563d['splitPosition']),_0x3651be=_0x30ceeb['model']['createPositionAt'](_0x7f563d['moveTargetPosition']);break;case'move':_0x423687=_0x30ceeb['model']['createPositionAt'](_0x7f563d['targetPosition']),_0x3651be=_0x423687['getShiftedBy'](_0x7f563d['howMany']);break;default:return;}const _0x1d8875=_0x30ceeb['model']['createRange'](_0x423687,_0x3651be);_0x30ceeb['model']['change'](()=>{for(const {suggestion:_0x4c9516,meta:_0x4d2dd6}of this['_findSuggestions'](_0x1d8875)){if(_0x4c9516['isMultiRange'])continue;if('formatInline'==_0x4c9516['type'])continue;const _0x4ec75f=this['_getAttributeKey'](_0x4c9516);if(_0x4ec75f&&this['_isBlockAttribute'](_0x4ec75f)&&'split'!=_0x7f563d['type'])continue;const _0x100ca3=_0x4c9516['data']&&_0x4c9516['data']['multipleBlocks'];('formatBlock'!=_0x4c9516['type']||'split'==_0x7f563d['type']&&!_0x100ca3)&&(_0x4d2dd6['containsRangeInObject']||'insertion'==_0x4c9516['type']&&_0x4d2dd6['isOwn']||_0x4c9516['getFirstRange']()['containsRange'](_0x1d8875)&&this['_breakSuggestionMarker'](_0x4c9516,_0x423687,_0x3651be));}});},{'priority':'lowest'}),_0x30ceeb['model']['on']('deleteContent',(_0x30f725,_0xc893cc)=>{const _0x487eb3=_0xc893cc[0x0],_0x3f03ec=_0xc893cc[0x1];if(_0x3f03ec&&_0x3f03ec['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x487eb3['isCollapsed'])return;const _0x5a0d8c=_0x30ceeb['model']['schema'],{start:_0x487bb3,end:_0x4d0acb}=_0x487eb3['getFirstRange'](),_0x58a143=_0x487bb3['nodeAfter']&&_0x5a0d8c['isLimit'](_0x487bb3['nodeAfter'])?null:_0x5a0d8c['getNearestSelectionRange'](_0x487bb3,'forward'),_0x1162d4=_0x4d0acb['nodeBefore']&&_0x5a0d8c['isLimit'](_0x4d0acb['nodeBefore'])?null:_0x5a0d8c['getNearestSelectionRange'](_0x4d0acb,'backward'),_0x54fdf3=_0x30ceeb['model']['createRange'](_0x58a143?_0x58a143['start']:_0x487bb3,_0x1162d4?_0x1162d4['end']:_0x4d0acb);_0x30ceeb['model']['change'](_0x370ffd=>{this['markDeletion'](_0x54fdf3);const _0x3dbdef=_0x30ceeb['model']['schema']['getNearestSelectionRange'](_0x54fdf3['start']);_0x487eb3['is']('documentSelection')?_0x370ffd['setSelection'](_0x3dbdef):_0x487eb3['setTo'](_0x3dbdef);}),_0x30f725['stop']();},{'priority':_0x19cb17['normal']+0xa}),_0x30ceeb['model']['on']('insertContent',(_0x6d756f,_0x1be14b)=>{const _0x1d27f9=_0x1be14b[_0x1be14b['length']-0x1];_0x1d27f9&&_0x1d27f9['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x30ceeb['model']['change'](()=>{let _0x2725f6=_0x30ceeb['model']['insertContent'](_0x1be14b[0x0],_0x1be14b[0x1],_0x1be14b[0x2],{'forceDefaultExecution':!0x0});if(!_0x2725f6)return;_0x6d756f['return']=_0x2725f6['clone']();const _0x489ce8=_0x2725f6['end']['nodeBefore'],_0x4c1acf=_0x30ceeb['model']['schema'];_0x489ce8&&_0x4c1acf['isBlock'](_0x489ce8)&&!_0x4c1acf['isObject'](_0x489ce8)&&(_0x2725f6=_0x30ceeb['model']['createRange'](_0x2725f6['start'],_0x30ceeb['model']['createPositionAt'](_0x489ce8,'end'))),this['markInsertion'](_0x2725f6);}),_0x6d756f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3444af=new x(_0x30ceeb,this['_suggestions']);_0x30ceeb['commands']['add']('acceptSuggestion',_0x3444af),this['enableCommand']('acceptSuggestion');const _0x62f1bd=new O(_0x30ceeb,this['_suggestions']);_0x30ceeb['commands']['add']('discardSuggestion',_0x62f1bd),this['enableCommand']('discardSuggestion'),_0x30ceeb['commands']['add']('acceptAllSuggestions',new R(_0x30ceeb,_0x3444af,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x30ceeb['commands']['add']('discardAllSuggestions',new R(_0x30ceeb,_0x62f1bd,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x30ceeb['commands']['add']('acceptSelectedSuggestions',new E(_0x30ceeb,_0x3444af,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x30ceeb['commands']['add']('discardSelectedSuggestions',new E(_0x30ceeb,_0x62f1bd,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3429e7=_0x30ceeb['plugins']['get']('CommentsRepository');this['listenTo'](_0x3429e7,'addComment',(_0x393e49,{threadId:_0x403148})=>{const _0x4339bc=this['_suggestions']['get'](_0x403148);_0x4339bc&&_0x4339bc['commentThread']&&0x1===_0x4339bc['commentThread']['length']&&this['_updateSuggestionData'](_0x403148,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3429e7,'removeComment',(_0x1ccb1a,{threadId:_0x4e67d8})=>{const _0xa7912f=this['_suggestions']['get'](_0x4e67d8);_0xa7912f&&_0xa7912f['commentThread']&&!_0xa7912f['commentThread']['length']&&this['_updateSuggestionData'](_0x4e67d8,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x34f25e){if(this['_adapter'])throw new _0x34c45c('track-changes-adapter-already-set',this);this['_adapter']=_0x34f25e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x256e40=!0x1,toJSON:_0x157554=!0x1}={}){const _0x94d987=[];for(const _0x19d07f of this['_suggestions']['values']())_0x256e40&&!_0x19d07f['isInContent']||_0x94d987['push'](_0x19d07f);return _0x157554?_0x94d987['map'](_0x5d7364=>_0x5d7364['toJSON']()):_0x94d987;}['getSuggestion'](_0x2914c9){const _0x347571=this['_suggestions']['get'](_0x2914c9);if(!_0x347571)throw new _0x34c45c('track-changes-suggestion-not-found',this);return _0x347571;}['hasSuggestion'](_0x459918){return this['_suggestions']['has'](_0x459918);}['addSuggestionData'](_0x590f77){const {authorId:_0x1b6975,id:_0x111fb1,attributes:_0x18d18d}=_0x590f77,[_0x5af671,_0x558348]=_0x590f77['type']['split'](':'),_0x17d212=this['_suggestions']['get'](_0x111fb1)||this['_createSuggestion'](_0x5af671,_0x558348,_0x111fb1,_0x1b6975,_0x18d18d);if(this['_addThreadToSuggestion'](_0x17d212),this['_checkSuggestionCorrectness'](_0x17d212,_0x5af671,_0x558348||null,_0x1b6975),_0x17d212['createdAt']=_0x590f77['createdAt'],_0x17d212['_isDataLoaded']=!0x0,_0x18d18d&&_0x18d18d['@external']){const _0x29cc77=_0x18d18d['@external'],_0x5e2912=this['_getExternalAuthor'](_0x29cc77['authorName']);_0x17d212['authoredAt']=_0x29cc77['createdAt'],_0x17d212['author']=_0x5e2912,_0x17d212['isExternal']=!0x0;}else _0x17d212['authoredAt']=_0x590f77['createdAt'];switch(_0x590f77['data']&&(_0x17d212['data']=_0x590f77['data']),_0x590f77['attributes']&&(_0x17d212['attributes']=_0x590f77['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x17d212['_saved']=!0x0),this['_suggestionState']['get'](_0x17d212)){case'notReady':this['_suggestionState']['set'](_0x17d212,'dataReady');break;case'markerReady':_0x17d212['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x17d212])),this['_refreshSuggestionsChain'](new Set([_0x17d212])),this['_suggestionState']['set'](_0x17d212,'ready'),this['fire']('suggestionLoaded',_0x17d212)):this['_suggestionState']['set'](_0x17d212,'removed');}return _0x17d212;}['acceptSuggestion'](_0x46630d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x290306 of _0x46630d['getAllAdjacentSuggestions']())_0x290306['accept']();});});}['discardSuggestion'](_0x5d6f3b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x77f1b3 of _0x5d6f3b['getAllAdjacentSuggestions']())_0x77f1b3['discard']();});});}['enableCommand'](_0x28fa0c,_0x1f1240){const _0x3dfa81=this['editor']['commands']['get'](_0x28fa0c);if(!_0x3dfa81)throw new _0x34c45c('track-changes-command-not-found',this,{'commandName':_0x28fa0c});if(this['_enabledCommands']['has'](_0x3dfa81))throw new _0x34c45c('track-changes-enable-command-twice',this,{'commandName':_0x28fa0c});this['_enabledCommands']['add'](_0x3dfa81),_0x1f1240&&_0x3dfa81['on']('execute',(_0xaf26b8,_0x383767)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x383767['length']>0x0&&_0x383767[_0x383767['length']-0x1]&&_0x383767[_0x383767['length']-0x1]['forceDefaultExecution']?_0x383767['pop']():(_0xaf26b8['return']=_0x1f1240((..._0x5e6038)=>_0x3dfa81['execute'](..._0x5e6038,{'forceDefaultExecution':!0x0}),..._0x383767),_0xaf26b8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2a74bc){let _0x303b5a,_0x7d4c70;const _0x329ca8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x303b5a=_0x2a74bc();}catch(_0x9de587){_0x7d4c70=_0x9de587;}return _0x329ca8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x7d4c70&&_0x34c45c['rethrowUnexpectedError'](_0x7d4c70,this),_0x303b5a;}['markInsertion'](_0xc3fee3,_0x563a45=null,_0x1d3004={}){if(_0xc3fee3['isCollapsed'])return null;const _0xceb195=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1acba3,meta:_0x5cb8ef}of this['_findSuggestions'](_0xc3fee3,'insertion'))if(_0x5cb8ef['isOwn']){if(!_0x5cb8ef['isNextTo']){if(_0x5cb8ef['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1acba3,_0x1d3004))continue;return _0x1acba3;}if(qt(_0x1acba3,_0x1d3004))return _0x1acba3;this['_breakSuggestionMarker'](_0x1acba3,_0xc3fee3['start'],_0xc3fee3['end']);break;}if(_0x563a45==_0x1acba3['subType']&&qt(_0x1acba3,_0x1d3004)){const _0x22061a=_0x1acba3['getFirstRange']();return _0x22061a['start']['isEqual'](_0xc3fee3['end'])?this['_setSuggestionRange'](_0x1acba3,this['_model']['createRange'](_0xc3fee3['start'],_0x22061a['end'])):this['_setSuggestionRange'](_0x1acba3,this['_model']['createRange'](_0x22061a['start'],_0xc3fee3['end'])),_0x1acba3;}}const _0x415cdf=_0x5b34d0(),_0x18b7af=_0xceb195['id'],_0x26ae1a=_0x563a45?'insertion:'+_0x563a45:'insertion',_0x43e3d0=this['_setSuggestionData']({'id':_0x415cdf,'type':_0x26ae1a,'createdAt':new Date(),'authorId':_0x18b7af,'attributes':_0x1d3004});return this['_addSuggestionMarker'](_0x26ae1a,_0x415cdf,_0x18b7af,_0xc3fee3),_0x43e3d0;}['markMultiRangeInsertion'](_0x5ccc94,_0x5066e6='multi',_0x4dd472={}){const _0x1f08ee=this['editor']['plugins']['get']('Users')['me'],_0x30be7b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5066e6,'join');for(const _0x1f8c1b of this['getSuggestions']())if(_0x1f8c1b['author']['id']==_0x1f08ee['id']&&'insertion'==_0x1f8c1b['type']&&_0x1f8c1b['subType']==_0x5066e6&&qt(_0x1f8c1b,_0x4dd472)&&(_0x30be7b(_0x1f8c1b['getRanges'](),_0x5ccc94)||_0x30be7b(_0x5ccc94,_0x1f8c1b['getRanges']()))){for(const _0x1be441 of _0x5ccc94)_0x1f8c1b['addRange'](_0x1be441);return _0x1f8c1b;}for(const {suggestion:_0x7c7999,meta:_0x2c596a}of this['_findSuggestions'](_0x5ccc94,'insertion')){if(!_0x2c596a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2c596a['containsRangeInObject'])continue;if(!qt(_0x7c7999,_0x4dd472))continue;let _0x1f1653=!0x0;for(const _0x3d9b98 of _0x7c7999['getRanges']())for(const _0x4e0fc0 of _0x5ccc94)if(!_0x3d9b98['containsRange'](_0x4e0fc0)){_0x1f1653=!0x1;break;}if(_0x1f1653)return _0x7c7999;}const _0x222fbd=_0x5b34d0(),_0x4bf52d=_0x1f08ee['id'],_0x5e31a7='insertion:'+_0x5066e6,_0x51b600=this['_setSuggestionData']({'id':_0x222fbd,'type':_0x5e31a7,'createdAt':new Date(),'authorId':_0x4bf52d,'attributes':_0x4dd472});for(const _0x5083fb of _0x5ccc94)this['_addSuggestionMarker'](_0x5e31a7,_0x222fbd,_0x4bf52d,_0x5083fb,u['getMultiRangeId']());return _0x51b600;}['markInlineFormat'](_0x49b615,_0x356f9a,_0x44213c=null,_0x5e8a00={}){if(_0x44213c=_0x44213c||Pt(_0x356f9a),_0x49b615['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x449729=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44213c,'accept');return this['forceDefaultExecution'](()=>_0x449729([_0x49b615],_0x356f9a,_0x5e8a00)),null;}const _0x2bc5ff=this['editor']['plugins']['get']('Users')['me'],_0x4f1ea7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e78be,meta:_0x1c54b8}of this['_findSuggestions'](_0x49b615,'insertion'))_0x1c54b8['isOwn']&&!_0x1c54b8['isInsideObject']&&_0x4f1ea7['push'](..._0x1e78be['getRanges']());}const _0x3af2d0=function(_0x18c61c,_0x275948){const _0x1c4f7b=[];for(const _0x5f4380 of _0x275948){const _0x52feca=_0x18c61c['getIntersection'](_0x5f4380);_0x52feca&&_0x1c4f7b['push'](_0x52feca);}return _0x1c4f7b;}(_0x49b615,_0x4f1ea7),_0x1ec69a=function(_0x14a29d,_0x2049c1){const _0x501da4=[_0x14a29d];for(const _0x56fa7f of _0x2049c1){let _0x42163a=0x0;for(;_0x42163a<_0x501da4['length'];){const _0x386723=_0x501da4[_0x42163a]['getDifference'](_0x56fa7f);_0x501da4['splice'](_0x42163a,0x1,..._0x386723),_0x42163a+=_0x386723['length'];}}return _0x501da4;}(_0x49b615,_0x4f1ea7);_0x3af2d0['length']&&this['_model']['change'](()=>{for(const _0x4f63aa of _0x3af2d0){const _0x452949=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44213c,'accept');this['forceDefaultExecution'](()=>_0x452949([_0x4f63aa],_0x356f9a,_0x5e8a00));}});for(const _0x37dc64 of _0x1ec69a){let _0x8eb98c=null,_0x1bd2a4=_0x37dc64['start'],_0x3c9c68=_0x37dc64['end'];for(const {suggestion:_0x42cad8,meta:_0x5391f5}of this['_findSuggestions'](_0x37dc64,'formatInline')){if(!_0x5391f5['isOwn'])continue;if(_0x42cad8['subType']!=_0x44213c)continue;if(!qt(_0x42cad8,_0x5e8a00))continue;const _0x469958=_0x42cad8['getFirstRange']();if(_0x469958['containsRange'](_0x37dc64,!0x0))return null;_0x1bd2a4=_0x1bd2a4['isBefore'](_0x469958['start'])?_0x1bd2a4:_0x469958['start'],_0x3c9c68=_0x3c9c68['isAfter'](_0x469958['end'])?_0x3c9c68:_0x469958['end'],_0x8eb98c?_0x469958['start']['isBefore'](_0x8eb98c['getFirstRange']()['start'])?(_0x8eb98c['removeMarkers'](),_0x8eb98c=_0x42cad8):_0x42cad8['removeMarkers']():_0x8eb98c=_0x42cad8;}const _0x1764c0=this['_model']['createRange'](_0x1bd2a4,_0x3c9c68);if(_0x8eb98c)this['_setSuggestionRange'](_0x8eb98c,_0x1764c0);else{const _0x2c3f25=_0x5b34d0(),_0x4835a7=_0x2bc5ff['id'];this['_setSuggestionData']({'id':_0x2c3f25,'type':'formatInline:'+_0x44213c,'data':_0x356f9a,'createdAt':new Date(),'authorId':_0x4835a7,'attributes':_0x5e8a00}),this['_addSuggestionMarker']('formatInline:'+_0x44213c,_0x2c3f25,_0x4835a7,_0x1764c0);}}return null;}['markBlockFormat'](_0x4afb7e,_0xdd674a,_0x43ff2d=[],_0x35b6d2=null,_0x36559c={}){_0xdd674a['formatGroupId']||(_0xdd674a['formatGroupId']=_0xdd674a['commandName']),_0xdd674a['multipleBlocks']=_0x4afb7e['is']('range'),_0x35b6d2=_0x35b6d2||Pt(_0xdd674a);const _0x1e351f=_0x43ff2d['map'](_0x38cf49=>Lt(_0x38cf49,this['_model'])),_0x592969=_0x4afb7e['is']('range')?_0x4afb7e:Lt(_0x4afb7e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2f3111=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35b6d2,'accept');return this['forceDefaultExecution'](()=>_0x2f3111([_0x592969],_0xdd674a,_0x36559c)),null;}_0x1e351f['push'](_0x592969);let _0x6ddea6=!0x0;for(const _0x3ed5af of _0x1e351f)if(!this['_rangeIsInLocalUserInsertion'](_0x3ed5af)){_0x6ddea6=!0x1;break;}if(_0x6ddea6&&'always'!==this['_trackFormatChanges']){const _0x466dc6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35b6d2,'accept');return this['forceDefaultExecution'](()=>_0x466dc6([_0x592969],_0xdd674a,_0x36559c)),null;}let _0x49a03e=null,_0x1d0046=_0x592969['start'],_0x36ddcc=_0x592969['end'];for(const {suggestion:_0x49cf6d,meta:_0xeeef0c}of this['_findSuggestions'](_0x592969,'formatBlock')){if(!_0xeeef0c['isOwn'])continue;if(_0xeeef0c['isNextTo']||_0xeeef0c['containsRangeInObject']||_0xeeef0c['isInsideObject'])continue;if(_0x49cf6d['data']['formatGroupId']!=_0xdd674a['formatGroupId'])continue;if(!qt(_0x49cf6d,_0x36559c))continue;const _0xfb0f45=_0x49cf6d['getFirstRange']();if(_0x49cf6d['subType']==_0x35b6d2){if(_0xfb0f45['containsRange'](_0x592969,!0x0))return null;_0x1d0046=_0x1d0046['isBefore'](_0xfb0f45['start'])?_0x1d0046:_0xfb0f45['start'],_0x36ddcc=_0x36ddcc['isAfter'](_0xfb0f45['end'])?_0x36ddcc:_0xfb0f45['end'],_0x49a03e?_0xfb0f45['start']['isBefore'](_0x49a03e['getFirstRange']()['start'])?(_0x49a03e['removeMarkers'](),_0x49a03e=_0x49cf6d):_0x49cf6d['removeMarkers']():_0x49a03e=_0x49cf6d;}else{const _0x4e93ad=_0x592969['getIntersection'](_0xfb0f45);this['_cutOutSuggestionMarker'](_0x49cf6d,_0x4e93ad);}}const _0x2cb4f2=this['editor']['plugins']['get']('Users')['me'],_0x3fd62a=_0x5b34d0(),_0x28ba44=_0x2cb4f2['id'];if(_0x49a03e)return this['_setSuggestionRange'](_0x49a03e,this['_model']['createRange'](_0x1d0046,_0x36ddcc)),_0x49a03e;{const _0x40c5c6=this['_setSuggestionData']({'id':_0x3fd62a,'type':'formatBlock:'+_0x35b6d2,'data':_0xdd674a,'createdAt':new Date(),'authorId':_0x28ba44,'attributes':_0x36559c});return this['_addSuggestionMarker']('formatBlock:'+_0x35b6d2,_0x3fd62a,_0x28ba44,this['_model']['createRange'](_0x1d0046,_0x36ddcc)),_0x40c5c6;}}['markMultiRangeBlockFormat'](_0x40c996,_0x334411,_0x1b4a79=[],_0x468b16=null,_0x3eb967={}){_0x334411['formatGroupId']||(_0x334411['formatGroupId']=_0x334411['commandName']);const _0x50da1f=_0x40c996[0x0];_0x334411['multipleBlocks']=_0x50da1f['is']('range'),_0x468b16=_0x468b16||Pt(_0x334411);const _0x727757=_0x1b4a79['map'](_0xea1b17=>Lt(_0xea1b17,this['_model'])),_0x3df9b1=_0x50da1f['is']('range')?_0x40c996:_0x40c996['map'](_0x2cbe6f=>Lt(_0x2cbe6f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4cb6ab=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x468b16,'accept');return this['forceDefaultExecution'](()=>_0x4cb6ab(_0x3df9b1,_0x334411,_0x3eb967)),null;}_0x727757['push'](..._0x3df9b1);let _0x1c6f66=!0x0;for(const _0x273391 of _0x727757)if(!this['_rangeIsInLocalUserInsertion'](_0x273391)){_0x1c6f66=!0x1;break;}if(_0x1c6f66&&'always'!==this['_trackFormatChanges']){const _0x5ccbb7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x468b16,'accept');return this['forceDefaultExecution'](()=>_0x5ccbb7(_0x3df9b1,_0x334411,_0x3eb967)),null;}const _0x46fba3=this['editor']['plugins']['get']('Users')['me'];for(const _0x59a91c of this['getSuggestions']()){if(_0x59a91c['author']['id']!=_0x46fba3['id'])continue;if('formatBlock'!=_0x59a91c['type']||_0x59a91c['data']['formatGroupId']!=_0x334411['formatGroupId'])continue;if(!qt(_0x59a91c,_0x3eb967))continue;const _0x27d80c=_0x59a91c['subType']==_0x468b16;for(let _0x45cb0f=0x0;_0x45cb0f<_0x3df9b1['length'];_0x45cb0f++){const _0x1ca8e7=_0x3df9b1[_0x45cb0f];for(const _0xa8a3b4 of _0x59a91c['getMarkers']()){const _0x1b1b9f=_0xa8a3b4['getRange']();if(_0x1ca8e7['isEqual'](_0x1b1b9f)){_0x27d80c?(_0x3df9b1['splice'](_0x45cb0f,0x1),_0x45cb0f--):_0x59a91c['removeMarker'](_0xa8a3b4['name']);break;}}}}if(0x0==_0x3df9b1['length'])return null;const _0x5f13fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x468b16,'join');for(const _0x123500 of this['getSuggestions']())if(_0x123500['author']['id']==_0x46fba3['id']&&'formatBlock'==_0x123500['type']&&_0x123500['data']['formatGroupId']==_0x334411['formatGroupId']&&_0x123500['subType']==_0x468b16&&qt(_0x123500,_0x3eb967)&&(_0x5f13fe(_0x123500['getRanges'](),_0x3df9b1)||_0x5f13fe(_0x3df9b1,_0x123500['getRanges']()))){for(const _0x1ae65b of _0x3df9b1)_0x123500['addRange'](_0x1ae65b);return _0x123500;}const _0x35c9d9=_0x5b34d0(),_0x4d1c16=_0x46fba3['id'],_0x268f87='formatBlock:'+_0x468b16,_0x2b5002=this['_setSuggestionData']({'id':_0x35c9d9,'type':_0x268f87,'data':_0x334411,'createdAt':new Date(),'authorId':_0x4d1c16,'attributes':_0x3eb967});for(const _0x564215 of _0x3df9b1)this['_addSuggestionMarker'](_0x268f87,_0x35c9d9,_0x4d1c16,_0x564215,u['getMultiRangeId']());return _0x2b5002;}['markDeletion'](_0x26d9ea,_0x1d3b53=null,_0x25cb29={}){if(_0x26d9ea['isCollapsed'])return null;const _0x536beb=this['editor']['plugins']['get']('Users')['me'],_0x239ebd=new _0x7a70a6(_0x26d9ea['start'],_0x26d9ea['end']);for(const {suggestion:_0x25ac66,meta:_0x139dc3}of this['_findSuggestions'](_0x239ebd,'insertion'))if(_0x139dc3['isOwn']&&!_0x139dc3['isNextTo']){if(_0x25ac66['isMultiRange']){const _0x6b46ea=_0x25ac66['getRanges']()['filter'](_0x4516cd=>'$graveyard'!=_0x4516cd['root']['rootName']);_0x6b46ea['every'](_0x2c57a3=>_0x239ebd['containsRange'](_0x2c57a3,!0x0))&&_0x25ac66['discard']();if(_0x6b46ea['some'](_0x526565=>_0x526565['containsRange'](_0x239ebd,!0x0))){const _0x2c6350=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d3b53,'accept');return this['forceDefaultExecution'](()=>_0x2c6350([_0x239ebd],null,_0x25cb29)),null;}}else{const _0x4acf32=_0x239ebd['getIntersection'](_0x25ac66['getFirstRange']());null!==_0x4acf32&&_0x25ac66['_onDiscard']([_0x4acf32],null,_0x25cb29);}}if(_0x239ebd['detach'](),_0x239ebd['isCollapsed']||'$graveyard'==_0x239ebd['root']['rootName'])return null;let _0x22f421=null,_0x1a428b=_0x239ebd['start'],_0x282b41=_0x239ebd['end'];const _0x333c64=this['_findSuggestions'](_0x239ebd,'deletion');for(const {suggestion:_0xd219c5,meta:_0x11dd16}of _0x333c64){const _0x524269=this['_model']['createRange'](_0x1a428b,_0x282b41);if(_0x11dd16['isOwn']&&(this['_mergeNestedSuggestions']||!_0x11dd16['containsRangeInObject']&&!_0x11dd16['isInsideObject'])){if(_0xd219c5['isMultiRange']){if(!qt(_0xd219c5,_0x25cb29))continue;let _0x4265b1=!0x0;for(const _0x5241cc of _0xd219c5['getRanges']()){if(_0x5241cc['containsRange'](_0x524269,!0x0))return _0xd219c5;_0x524269['containsRange'](_0x5241cc)||(_0x4265b1=!0x1);}_0x4265b1&&_0xd219c5['discard']();}else{const _0x804c48=_0xd219c5['getFirstRange']();if(_0x804c48['containsRange'](_0x524269,!0x0))return _0xd219c5;if(!qt(_0xd219c5,_0x25cb29)){_0x524269['containsRange'](_0x804c48)?_0xd219c5['removeMarkers']():_0x804c48['containsPosition'](_0x1a428b)?_0x1a428b=_0x804c48['end']:_0x804c48['containsPosition'](_0x282b41)&&(_0x282b41=_0x804c48['start']);continue;}_0x1a428b=_0x1a428b['isBefore'](_0x804c48['start'])?_0x1a428b:_0x804c48['start'],_0x282b41=_0x282b41['isAfter'](_0x804c48['end'])?_0x282b41:_0x804c48['end'],_0x25cb29=Object['assign']({},_0xd219c5['attributes']),_0x22f421?_0x804c48['start']['isBefore'](_0x22f421['getFirstRange']()['start'])?(_0x22f421['removeMarkers'](),_0x22f421=_0xd219c5):_0xd219c5['removeMarkers']():_0x22f421=_0xd219c5;}}}if(_0x22f421)return this['_setSuggestionRange'](_0x22f421,this['_model']['createRange'](_0x1a428b,_0x282b41)),_0x22f421;{const _0xcac973=_0x5b34d0(),_0x6ff856=this['_model']['createRange'](_0x1a428b,_0x282b41),_0x364712=_0x536beb['id'],_0xe8049a=_0x1d3b53?'deletion:'+_0x1d3b53:'deletion',_0x3528fd=this['_setSuggestionData']({'id':_0xcac973,'type':_0xe8049a,'createdAt':new Date(),'authorId':_0x364712,'attributes':_0x25cb29});return this['_addSuggestionMarker'](_0xe8049a,_0xcac973,_0x364712,_0x6ff856),_0x3528fd;}}['markMultiRangeDeletion'](_0x2116e6,_0x4918fa='multi',_0x52aa87={}){const _0x26b3ec=this['editor']['plugins']['get']('Users')['me'],_0x406230=_0x2116e6['map'](_0x12b638=>new _0x7a70a6(_0x12b638['start'],_0x12b638['end'])),_0x1dd0a4=new Set();for(const {suggestion:_0x3fa840,meta:_0x131079}of this['_findSuggestions'](_0x406230,'insertion'))_0x131079['isOwn']&&!_0x131079['isNextTo']&&_0x1dd0a4['add'](_0x3fa840);for(const _0x5abb64 of _0x1dd0a4)if(_0x5abb64['isMultiRange']){const _0x5126ca=_0x5abb64['getRanges']();(!_0x5abb64['attributes']||!_0x5abb64['attributes']['skipNestingCheck'])&&(_0x5126ca['every'](_0x28b0d3=>_0x406230['some'](_0x4639fc=>_0x4639fc['containsRange'](_0x28b0d3,!0x0)))&&_0x5abb64['discard']());if(_0x406230['every'](_0x1da80b=>_0x5126ca['some'](_0x4297b8=>_0x4297b8['containsRange'](_0x1da80b,!0x0)))){const _0x4e1f27=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4918fa,'accept');return this['forceDefaultExecution'](()=>_0x4e1f27(_0x2116e6,null,_0x52aa87)),null;}}else{const _0x3d58c5=_0x5abb64['getFirstRange']();_0x406230['some'](_0x317141=>_0x317141['containsRange'](_0x3d58c5,!0x0))&&_0x5abb64['discard']();if(_0x406230['every'](_0x28531e=>_0x3d58c5['containsRange'](_0x28531e,!0x0))){const _0x5f2748=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4918fa,'accept');return this['forceDefaultExecution'](()=>_0x5f2748(_0x406230,null,_0x52aa87)),null;}}const _0x5789a2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4918fa,'join');let _0x366dd3=null;for(const _0x44ac8c of this['getSuggestions']())if(_0x44ac8c['author']['id']==_0x26b3ec['id']&&_0x44ac8c['isInContent']&&'deletion'==_0x44ac8c['type']&&_0x44ac8c['subType']==_0x4918fa&&qt(_0x44ac8c,_0x52aa87)&&(_0x5789a2(_0x44ac8c['getRanges'](),_0x406230)||_0x5789a2(_0x406230,_0x44ac8c['getRanges']()))){if(_0x366dd3){if(_0x44ac8c['commentThread']&&_0x44ac8c['commentThread']['length'])continue;for(const _0x345653 of _0x44ac8c['getRanges']())_0x366dd3['isIntersectingWithRange'](_0x345653)||_0x366dd3['addRange'](_0x345653);_0x44ac8c['removeMarkers']();}else{_0x366dd3=_0x44ac8c;for(const _0x386cd0 of _0x406230)_0x44ac8c['isIntersectingWithRange'](_0x386cd0)||_0x44ac8c['addRange'](_0x386cd0);}}if(_0x366dd3)return _0x366dd3;_0x1dd0a4['clear']();for(const {suggestion:_0x10f280,meta:_0xa7e82}of this['_findSuggestions'](_0x406230,'deletion'))_0xa7e82['isOwn']&&(this['_mergeNestedSuggestions']||!_0xa7e82['containsRangeInObject']&&!_0xa7e82['isInsideObject'])&&qt(_0x10f280,_0x52aa87)&&_0x1dd0a4['add'](_0x10f280);for(const _0x296550 of _0x1dd0a4){const _0x5989b9=_0x296550['getRanges']();if(!_0x52aa87||!_0x52aa87['skipNestingCheck']){if(_0x406230['every'](_0x1bb1a0=>_0x5989b9['some'](_0x16f385=>_0x16f385['containsRange'](_0x1bb1a0,!0x0))))return _0x296550;}(!_0x296550['attributes']||!_0x296550['attributes']['skipNestingCheck'])&&(_0x5989b9['every'](_0xc29f2=>_0x406230['some'](_0x4cc87d=>_0x4cc87d['containsRange'](_0xc29f2,!0x0)))&&_0x296550['discard']());}const _0x327ce4=_0x5b34d0(),_0x415d08=_0x26b3ec['id'],_0x49a79e='deletion:'+_0x4918fa,_0x300767=this['_setSuggestionData']({'id':_0x327ce4,'type':_0x49a79e,'createdAt':new Date(),'authorId':_0x415d08,'attributes':_0x52aa87});for(const _0x35c824 of _0x406230)_0x35c824['detach'](),_0x35c824['isCollapsed']||'$graveyard'==_0x35c824['root']['rootName']||this['_addSuggestionMarker'](_0x49a79e,_0x327ce4,_0x415d08,_0x35c824,u['getMultiRangeId']());return _0x300767;}['markAttributeChange'](_0x300635,_0xe50357,_0x50c694,_0x1e9669,_0x1a0305){if(_0x300635['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x517f13=this['editor']['plugins']['get']('Users')['me']['id'],_0x30b81d=Array['from'](this['_suggestions']['values']())['filter'](_0x53846e=>'attribute'==_0x53846e['type']&&_0x53846e['data']['key']==_0xe50357&&_0x53846e['isIntersectingWithRange'](_0x300635));if('default'===this['_trackFormatChanges']){const _0x593466=this['_findSuggestions'](_0x300635,'insertion')['filter'](({meta:_0x2f3020})=>_0x2f3020['isOwn']&&!_0x2f3020['isInsideObject']&&!_0x2f3020['isNextTo'])['map'](({suggestion:_0x2b46ca})=>_0x2b46ca);_0x30b81d['unshift'](..._0x593466);}const _0x1029f3=new Map([[_0x300635,_0x50c694]]);for(const _0x40c5d1 of _0x30b81d){const _0x2e4823='attribute'==_0x40c5d1['type']?_0x40c5d1['data']['oldValue']:void 0x0,_0x591a14=_0x40c5d1['getFirstRange'](),_0x4f11c0=Array['from'](_0x1029f3['keys']())['find'](_0x454342=>_0x454342['isIntersecting'](_0x591a14));if(!_0x4f11c0)continue;const _0x2b4445=_0x4f11c0['getDifference'](_0x591a14);this['_isBlockAttribute'](_0xe50357)&&'insertion'==_0x40c5d1['type']&&0x0!=_0x2b4445['length']||(_0x1029f3['delete'](_0x4f11c0),_0x2b4445['forEach'](_0x382e0e=>{_0x1029f3['set'](_0x382e0e,_0x50c694);}),'insertion'!=_0x40c5d1['type']&&_0x2e4823!=_0x1e9669&&_0x1029f3['set'](_0x4f11c0['getIntersection'](_0x591a14),_0x2e4823));}const _0x260f3f=[];for(const [_0x4a78a2,_0x38b5d0]of _0x1029f3){const _0xc8ff2a=_0x5b34d0(),_0x237098={'key':_0xe50357,'oldValue':_0x38b5d0,'newValue':_0x1e9669};_0xe50357['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':_0xe50357});const _0x17be5f=('attribute:'+(_0xe50357+'|'+Pt({'newValue':_0x1e9669})))['substring'](0x0,0x3c),_0x216d03=this['_setSuggestionData']({'id':_0xc8ff2a,'type':_0x17be5f,'data':_0x237098,'createdAt':new Date(),'authorId':_0x517f13,'attributes':_0x1a0305});_0x260f3f['push'](_0x216d03),this['_addSuggestionMarker'](_0x17be5f,_0xc8ff2a,_0x517f13,_0x4a78a2);}return _0x260f3f;}['enableDefaultAttributesIntegration'](_0x4c639){this['enableCommand'](_0x4c639,(_0x2938f3,..._0x148d38)=>{this['_recordAttributeChanges'](()=>{_0x2938f3(..._0x148d38);});});}['registerBlockAttribute'](_0x9dcea8){this['_blockAttributeKeys']['add'](_0x9dcea8);}['registerInlineAttribute'](_0x655fa6){this['_inlineAttributeKeys']['add'](_0x655fa6);}['_getAttributeKey'](_0xbc492){return'attribute'==_0xbc492['type']?_0xbc492['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x305abe,_0x3295cb){const _0xacb019=_0x305abe['getFirstMarker']();this['_model']['change'](_0x39aef3=>{_0x39aef3['updateMarker'](_0xacb019,{'range':_0x3295cb});});}['_addThreadToSuggestion'](_0x14731e){const _0x395a92=_0x14731e['id'],_0x154223=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x395a92)||this['_commentsRepository']['addCommentThread']({'channelId':_0x154223,'threadId':_0x395a92,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4966f3=this['_commentsRepository']['getCommentThread'](_0x395a92);_0x4966f3['unbind']('isRemovable'),_0x4966f3['isRemovable']=!0x1,_0x14731e['commentThread']=_0x4966f3;}['_checkSuggestionCorrectness'](_0x46f504,_0x19fdfd,_0x25b3f3,_0x400914){if(_0x46f504['type']!=_0x19fdfd||_0x46f504['subType']!=_0x25b3f3||_0x46f504['creator']['id']!=_0x400914)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x34c45c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x349692,_0x4397d7){const _0x34fc26=_0x349692['getFirstRange']();if(_0x4397d7['isEqual'](_0x34fc26))_0x349692['removeMarkers']();else{if(_0x34fc26['containsRange'](_0x4397d7)){const _0x7d10ad=this['_model']['createPositionAt'](_0x4397d7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x349692,this['_model']['createRange'](_0x34fc26['start'],_0x7d10ad));const _0x3347cf=_0x5b34d0(),_0x3b237a=_0x349692['creator']['id'],_0x4035c1=_0x349692['type']+':'+_0x349692['subType'];this['_setSuggestionData']({'id':_0x3347cf,'type':_0x4035c1,'createdAt':new Date(),'authorId':_0x3b237a,'data':_0x349692['data'],'attributes':_0x349692['attributes']});const _0x1afe74=this['_model']['createPositionAt'](_0x4397d7['end']['parent'],'after'),_0x256975=this['_model']['createRange'](_0x1afe74,_0x34fc26['end']);this['_addSuggestionMarker'](_0x4035c1,_0x3347cf,_0x3b237a,_0x256975);}else{if(_0x34fc26['containsPosition'](_0x4397d7['start'])){const _0x7ba97b=this['_model']['createPositionAt'](_0x4397d7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x349692,this['_model']['createRange'](_0x34fc26['start'],_0x7ba97b));}else{const _0x21b325=this['_model']['createPositionAt'](_0x4397d7['end']['parent'],'after');this['_setSuggestionRange'](_0x349692,this['_model']['createRange'](_0x21b325,_0x34fc26['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x38c560){for(const {suggestion:_0x74b8fd,meta:_0x19a681}of this['_findSuggestions'](_0x38c560,'insertion')){if(!_0x19a681['isOwn'])continue;const _0x534ee1=_0x74b8fd['getRanges']();for(const _0x27f2a9 of _0x534ee1)if(!_0x38c560['getDifference'](_0x27f2a9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2e2e4c){const _0x2aaada=this['editor']['plugins']['get']('Users')['getUser'](_0x2e2e4c);if(!_0x2aaada)throw new _0x34c45c('track-changes-user-not-found',this);return _0x2aaada;}['_getExternalAuthor'](_0x4d3019){const _0x33d150=this['editor']['plugins']['get']('Users'),_0x3e9a6c=_0xf585eb('external:'+_0x4d3019),_0x48ef2d=_0x33d150['getUser'](_0x3e9a6c);return _0x48ef2d||_0x33d150['addUser']({'id':_0x3e9a6c,'name':_0x4d3019});}['_createSuggestion'](_0x565fbb,_0x48ec5e,_0x50d330,_0x3ce8cf,_0x2c9850){const _0x2e0a84=this['_getAuthorFromId'](_0x3ce8cf),_0x466e49=this['_suggestionFactory']['buildSuggestion'](_0x565fbb,_0x48ec5e,_0x50d330,_0x2e0a84,_0x2c9850,_0x4ddb88=>{this['_updateSuggestionData'](_0x50d330,{'attributes':_0x4ddb88});const _0x4af51a=this['getSuggestion'](_0x50d330);this['_joinWithAdjacentSuggestions'](new Set([_0x4af51a])),this['_refreshSuggestionsChain'](new Set([_0x4af51a]));});return this['listenTo'](_0x466e49,'accept',()=>{this['_updateSuggestionData'](_0x50d330,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x466e49,'discard',()=>{this['_updateSuggestionData'](_0x50d330,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x50d330,_0x466e49),this['_suggestionState']['set'](_0x466e49,'notReady'),_0x466e49;}['_splitMarkerName'](_0xf28d3e){const _0x20305b=_0xf28d3e['split'](':');return{'group':_0x20305b[0x0],'type':_0x20305b[0x1],'subType':_0x20305b['length']>=0x5?_0x20305b[0x2]:null,'id':_0x20305b['length']<0x5?_0x20305b[0x2]:_0x20305b[0x3],'authorId':_0x20305b['length']<0x5?_0x20305b[0x3]:_0x20305b[0x4],'markerCount':0x6==_0x20305b['length']?_0x20305b[0x5]:null};}['_breakSuggestionMarker'](_0x169aa8,_0x52133b,_0x24df1b){const _0x217e28=_0x169aa8['getFirstRange'](),_0x53c193=_0x217e28['start'],_0x58b86e=_0x217e28['end'];this['_setSuggestionRange'](_0x169aa8,this['_model']['createRange'](_0x53c193,_0x52133b));const _0x589778=_0x5b34d0(),_0x587907=_0x169aa8['creator']['id'],_0x2def45=_0x169aa8['type']+(_0x169aa8['subType']?':'+_0x169aa8['subType']:'');this['_setSuggestionData']({'id':_0x589778,'type':_0x2def45,'createdAt':new Date(),'authorId':_0x587907,'originalSuggestionId':_0x169aa8['id'],'attributes':_0x169aa8['attributes'],'data':_0x169aa8['data']});const _0x3e141a=this['_getAttributeKey'](_0x169aa8);('formatBlock'==_0x169aa8['type']||_0x3e141a&&this['_isBlockAttribute'](_0x3e141a))&&(_0x24df1b=this['_model']['createPositionBefore'](_0x24df1b['parent'])),this['_addSuggestionMarker'](_0x2def45,_0x589778,_0x587907,this['_model']['createRange'](_0x24df1b,_0x58b86e));}['_findSuggestions'](_0x191474,_0x1a1f05=null){const _0xab296e=[],_0x4426c7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x191474)||(_0x191474=[_0x191474]);for(const _0x17bfaf of this['getSuggestions']()){if(!_0x17bfaf['isInContent'])continue;if(_0x1a1f05&&_0x17bfaf['type']!=_0x1a1f05)continue;let _0x38bf82=!0x1;for(const _0x1287c7 of _0x17bfaf['getRanges']()){for(const _0x577cb9 of _0x191474){const _0x34d806=_0x577cb9['start']['isEqual'](_0x1287c7['end'])||_0x577cb9['end']['isEqual'](_0x1287c7['start']);if(_0x34d806||_0x577cb9['getIntersection'](_0x1287c7)){const _0x2a811a=_0x577cb9['containsRange'](_0x1287c7)&&Et(this['_model']['schema'],_0x1287c7['start'],_0x577cb9),_0x12eab0=_0x1287c7['containsRange'](_0x577cb9)&&Et(this['_model']['schema'],_0x577cb9['start'],_0x1287c7);_0xab296e['push']({'suggestion':_0x17bfaf,'meta':{'isOwn':_0x4426c7==_0x17bfaf['author'],'isNextTo':_0x34d806,'isInsideObject':_0x2a811a,'containsRangeInObject':_0x12eab0}}),_0x38bf82=!0x0;break;}}if(_0x38bf82)break;}}return _0xab296e;}['_addSuggestionMarker'](_0x1fa99b,_0xe2ee94,_0x369f07,_0x268d23,_0x358e5e){this['_model']['change'](_0x276a6e=>{let _0x225b32='suggestion:'+_0x1fa99b+':'+_0xe2ee94+':'+_0x369f07;_0x358e5e&&(_0x225b32=_0x225b32+':'+_0x358e5e),_0x276a6e['addMarker'](_0x225b32,{'range':_0x268d23,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x518b97){const _0x3e732b=_0x518b97['previous'],_0x1df3dc=_0x518b97['next'];_0x518b97['previous']=null,_0x518b97['next']=null,null!=_0x3e732b&&_0x3e732b['next']==_0x518b97&&(_0x3e732b['next']=_0x1df3dc),null!=_0x1df3dc&&_0x1df3dc['previous']==_0x518b97&&(_0x1df3dc['previous']=_0x3e732b),'ready'==this['_suggestionState']['get'](_0x518b97)&&(this['_suggestionState']['set'](_0x518b97,'removed'),this['fire']('suggestionUnloaded',_0x518b97,_0x3e732b,_0x1df3dc));}['_setSuggestionData'](_0x13eb63){const _0x433962=_0x13eb63['id'],_0x3f34d4=this['addSuggestionData'](_0x13eb63);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4ca2a6=this['editor']['plugins']['get']('PendingActions'),_0x383fb5=_0x3f34d4['hasComments'],_0x317a5a=_0x3f34d4['subType']?_0x3f34d4['type']+':'+_0x3f34d4['subType']:_0x3f34d4['type'],_0xdf60fb=this['editor']['locale'],_0x25c498=_0x4ca2a6['add'](o(_0xdf60fb,'PENDING_ACTION_SUGGESTION')),_0x5e23db={'id':_0x433962,'type':_0x317a5a,'hasComments':_0x383fb5,'data':_0x13eb63['data']||null,'originalSuggestionId':_0x13eb63['originalSuggestionId']||null,'attributes':_0x3f34d4['attributes']};this['_adapter']['addSuggestion'](_0x5e23db)['then'](_0x4ea74f=>{_0x3f34d4['_saved']=!0x0,_0x4ca2a6['remove'](_0x25c498),_0x4ea74f&&_0x4ea74f['createdAt']&&(this['_suggestions']['get'](_0x433962)['createdAt']=_0x4ea74f['createdAt']);})['catch'](_0x54f462=>{throw _0x135957('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3f34d4['discard']();}),_0x3f34d4['stopListening'](),this['_suggestions']['delete'](_0x3f34d4['id']),this['_suggestionState']['delete'](_0x3f34d4),_0x54f462;});}return _0x3f34d4;}['_isBlockAttribute'](_0x162ac7){return this['_blockAttributeKeys']['has'](_0x162ac7);}['_updateSuggestionData'](_0x4ee7f3,_0x5552ff){const _0x1ae737=this['editor']['plugins']['get']('PendingActions'),_0x439cae=this['getSuggestion'](_0x4ee7f3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x439cae['_saved']){const _0x1986d4=_0x1ae737['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4ee7f3,_0x5552ff)['then'](()=>{_0x1ae737['remove'](_0x1986d4);});}else _0x439cae['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4ee7f3,_0x5552ff);});}}['_getSuggestionData'](_0x144e22){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x34c45c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x144e22);}['_handleNewSuggestionMarker'](_0x511d00){const {id:_0x1c81f6,type:_0x8f4173,subType:_0x18cfd1,authorId:_0x415dfc}=this['_splitMarkerName'](_0x511d00),_0x2c201e=this['_suggestions']['get'](_0x1c81f6)||this['_createSuggestion'](_0x8f4173,_0x18cfd1,_0x1c81f6,_0x415dfc,{});switch(this['_checkSuggestionCorrectness'](_0x2c201e,_0x8f4173,_0x18cfd1,_0x415dfc),this['_suggestionState']['get'](_0x2c201e)){case'notReady':this['_getSuggestionData'](_0x1c81f6)['then'](_0xf7c47f=>{let _0x561053=Promise['resolve']();_0xf7c47f['hasComments']&&(_0x561053=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1c81f6})),_0x561053['then'](()=>{this['addSuggestionData'](_0xf7c47f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c201e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1c81f6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c201e,'ready'),this['fire']('suggestionLoaded',_0x2c201e);break;case'ready':this['fire']('suggestionChanged',_0x2c201e);}return _0x2c201e['addMarkerName'](_0x511d00),_0x2c201e;}['_refreshSuggestionsChain'](_0x1d7454){const _0x3ad848=Array['from'](_0x1d7454),_0x299979=_0x3ad848['filter'](_0x14e7f8=>'attribute'==_0x14e7f8['type']);this['_refreshAttributeSuggestionsChain'](_0x299979);const _0x5ad997=_0x3ad848['filter'](_0x97e8af=>!_0x97e8af['isMultiRange']&&'attribute'!=_0x97e8af['type']),_0x352bf3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f20c7=>!_0x1f20c7['isMultiRange']&&'attribute'!=_0x1f20c7['type']),_0xdd7ad4=_0x352bf3['filter'](_0x48be76=>!_0x1d7454['has'](_0x48be76)),_0x3be856=new Map(_0x352bf3['map'](_0x1a01e1=>[_0x1a01e1,this['_suggestionFactory']['getSuggestionCallback'](_0x1a01e1['type'],_0x1a01e1['subType'],'chain')])),_0x40279d=new Map(_0x352bf3['map'](_0x324bb8=>[_0x324bb8,_0x324bb8['getFirstRange']()])),_0x5099f2=new Set(),_0x104b3a=new Set();for(let _0x48c5b9=0x0;_0x48c5b9<_0x5ad997['length'];_0x48c5b9++)_0x1a8d3e(_0x5ad997[_0x48c5b9],_0x5ad997,_0x48c5b9+0x1);for(let _0x4560c9=0x0;_0x4560c9<_0x5ad997['length'];_0x4560c9++)_0x1a8d3e(_0x5ad997[_0x4560c9],_0xdd7ad4,0x0);const _0x92664=new Set();for(let _0x3ba412=0x0;_0x3ba412<_0x5ad997['length'];_0x3ba412++){const _0xd076b2=_0x5ad997[_0x3ba412];!_0x104b3a['has'](_0xd076b2)&&_0xd076b2['previous']&&(_0x92664['add'](_0xd076b2['previous']),_0xd076b2['previous']['next']===_0xd076b2&&(_0xd076b2['previous']['next']=null),_0xd076b2['previous']=null),!_0x5099f2['has'](_0xd076b2)&&_0xd076b2['next']&&(_0x92664['add'](_0xd076b2['next']),_0xd076b2['next']['previous']===_0xd076b2&&(_0xd076b2['next']['previous']=null),_0xd076b2['next']=null);}function _0x1a8d3e(_0x302e46,_0xbef619,_0x3b5a75){for(let _0x37e250=_0x3b5a75;_0x37e250<_0xbef619['length'];_0x37e250++){const _0x2dcafd=_0x3a2f36(_0x302e46,_0xbef619[_0x37e250]);_0x2dcafd&&(_0x2dcafd[0x0]['next']=_0x2dcafd[0x1],_0x2dcafd[0x1]['previous']=_0x2dcafd[0x0],_0x5099f2['add'](_0x2dcafd[0x0]),_0x104b3a['add'](_0x2dcafd[0x1]));}}function _0x3a2f36(_0x284309,_0x50cdfa){if(_0x284309['author']['id']!==_0x50cdfa['author']['id'])return null;const _0x3f8299=_0x3be856['get'](_0x284309)(_0x284309,_0x50cdfa,_0x40279d['get'](_0x284309),_0x40279d['get'](_0x50cdfa));if(!_0x3f8299)return null;return _0x3be856['get'](_0x50cdfa)(_0x284309,_0x50cdfa,_0x40279d['get'](_0x284309),_0x40279d['get'](_0x50cdfa))?_0x3f8299[0x1]['commentThread']&&_0x3f8299[0x1]['commentThread']['length']?null:_0x3f8299:null;}_0x92664['size']&&this['_refreshSuggestionsChain'](_0x92664);}['_refreshAttributeSuggestionsChain'](_0x361ae5){if(0x0==_0x361ae5['length'])return;const _0x10fc1e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xff3b55=>'attribute'==_0xff3b55['type']&&_0xff3b55['_isDataLoaded']),_0x7341ce=[],_0x53e740=new Map();for(const _0x308cad of _0x10fc1e){const _0x1f3d88=_0xf585eb(_0x308cad['attributes']);_0x53e740['has'](_0x1f3d88)||(_0x53e740['set'](_0x1f3d88,_0x7341ce['length']),_0x7341ce['push']([]));const _0x53334b=_0x53e740['get'](_0x1f3d88);_0x7341ce[_0x53334b]['push'](_0x308cad);}!(function(){_0x7341ce['sort']((_0x229b9f,_0x52fe56)=>{const _0x15c822=_0x229b9f[0x0]['createdAt'],_0xbf88e9=_0x52fe56[0x0]['createdAt'];return _0x15c822==_0xbf88e9?_0x229b9f[0x0]['attributes']['groupId']<_0x52fe56[0x0]['attributes']['groupId']?-0x1:0x1:_0x15c822<_0xbf88e9?-0x1:0x1;});for(const _0x1415af of _0x7341ce)_0x1415af['sort']((_0x440fb7,_0x4b612a)=>_0x440fb7['id']<_0x4b612a['id']?-0x1:0x1);}());for(let _0x25ddc4=0x0;_0x25ddc4<_0x7341ce['length'];_0x25ddc4++){if(0x0==_0x7341ce[_0x25ddc4]['length'])continue;const _0x44f986=[];for(let _0xbfabcd=_0x25ddc4+0x1;_0xbfabcd<_0x7341ce['length'];_0xbfabcd++)0x0!=_0x7341ce[_0xbfabcd]['length']&&_0x119215(_0x7341ce[_0x25ddc4],_0x7341ce[_0xbfabcd])&&_0x44f986['push'](_0xbfabcd);for(const _0x25a388 of _0x44f986)_0x7341ce[_0x25ddc4]=_0x7341ce[_0x25ddc4]['concat'](_0x7341ce[_0x25a388]),_0x7341ce[_0x25a388]=[];}for(const _0x3dede0 of _0x7341ce)for(let _0x4132bc=0x0;_0x4132bc<_0x3dede0['length'];_0x4132bc++){const _0x12e8b0=_0x3dede0[_0x4132bc+0x1]||null;_0x3dede0[_0x4132bc]['next']!==_0x12e8b0&&(_0x3dede0[_0x4132bc]['next']=_0x12e8b0);}for(const _0x48eee9 of _0x7341ce)for(let _0x5ac511=0x0;_0x5ac511<_0x48eee9['length'];_0x5ac511++){const _0x4590fa=_0x48eee9[_0x5ac511-0x1]||null;_0x48eee9[_0x5ac511]['previous']!==_0x4590fa&&(_0x48eee9[_0x5ac511]['previous']=_0x4590fa);}function _0x119215(_0x586768,_0x361c40){if(_0x586768[0x0]['attributes']['groupId']!==_0x361c40[0x0]['attributes']['groupId']&&_0x586768[0x0]['author']!==_0x361c40[0x0]['author'])return!0x1;if(!function(_0xb178ab,_0x45d745){if(!_0xb178ab['hasComments']&&!_0x45d745['hasComments'])return!0x0;if(_0xb178ab['hasComments']&&_0x45d745['hasComments'])return!0x1;if(_0xb178ab['hasComments']&&_0x45d745['createdAt']<_0xb178ab['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x45d745['hasComments']&&_0xb178ab['createdAt']<_0x45d745['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x586768[0x0],_0x361c40[0x0]))return!0x1;const _0x37c85e=Rt(_0x586768[0x0]['attributes'],'groupId'),_0x539df9=Rt(_0x361c40[0x0]['attributes'],'groupId');if(!_0x24b8a4(_0x37c85e,_0x539df9))return!0x1;return!!_0x586768['every'](_0x1dce05=>_0x361c40['some'](_0x510bf4=>_0x1dce05['getFirstRange']()['isEqual'](_0x510bf4['getFirstRange']())))&&_0x361c40['every'](_0x2b42f5=>_0x586768['some'](_0xfee2ab=>_0x2b42f5['getFirstRange']()['isEqual'](_0xfee2ab['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x581c43){const _0x527d19=Array['from'](_0x581c43),_0x41b4cd=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5d6de3=_0x41b4cd['filter'](_0x5d2489=>!_0x581c43['has'](_0x5d2489)),_0x43b80d=new Map(_0x527d19['map'](_0x5d269a=>[_0x5d269a,this['_suggestionFactory']['getSuggestionCallback'](_0x5d269a['type'],_0x5d269a['subType'],'join')])),_0x1f0641=new Map(_0x41b4cd['map'](_0x1c4467=>[_0x1c4467,_0x1c4467['getRanges']()]));for(let _0x141038=0x0;_0x141038<_0x527d19['length'];_0x141038++){if(_0x3bbfa8(this,_0x527d19[_0x141038],_0x527d19,_0x141038+0x1))return!0x0;}for(let _0x3d78d0=0x0;_0x3d78d0<_0x527d19['length'];_0x3d78d0++){if(_0x3bbfa8(this,_0x527d19[_0x3d78d0],_0x5d6de3,0x0))return!0x0;}return!0x1;function _0x3bbfa8(_0x1b8f38,_0xb705,_0x2801fe,_0x57521d){for(let _0xabbadb=_0x57521d;_0xabbadb<_0x2801fe['length'];_0xabbadb++){const _0x285096=_0x2801fe[_0xabbadb];if(_0x285096['type']!==_0xb705['type']||_0x285096['author']['id']!==_0xb705['author']['id']||_0x285096['subType']!==_0xb705['subType'])continue;if(!Jt(_0xb705,_0x285096))continue;if('attribute'==_0xb705['type']&&_0xb705['data']['oldValue']!=_0x285096['data']['oldValue'])continue;if('attribute'==_0xb705['type']&&_0x1b8f38['_isBlockAttribute'](_0xb705['data']['key']))continue;if('formatBlock'==_0xb705['type']){const _0x2c6a2b=_0x1b8f38['editor']['model'],_0x2e51cc=_0xb705['getContainedElement']();if(_0x2e51cc&&(_0x2c6a2b['schema']['isObject'](_0x2e51cc)||_0x2c6a2b['schema']['isLimit'](_0x2e51cc)))continue;}const _0x321b9b=_0x43b80d['get'](_0xb705),_0xe96e1f=_0x1f0641['get'](_0xb705),_0x371fa1=_0x1f0641['get'](_0x285096),_0x3ec47b=_0xb705['commentThread']&&_0xb705['commentThread']['length'],_0x1740d1=_0x285096['commentThread']&&_0x285096['commentThread']['length'];if(!_0x3ec47b&&_0x321b9b(_0x371fa1,_0xe96e1f))return _0x1b8f38['_joinSuggestions'](_0x285096,_0xb705),_0x1f0641['delete'](_0xb705),!0x0;if(!_0x1740d1&&_0x321b9b(_0xe96e1f,_0x371fa1))return _0x1b8f38['_joinSuggestions'](_0xb705,_0x285096),_0x1f0641['delete'](_0x285096),!0x0;}return!0x1;}}['_joinSuggestions'](_0x8dbca5,_0xf0467d){if(_0x8dbca5['isMultiRange']){for(const _0x251661 of _0xf0467d['getRanges']())_0x8dbca5['addRange'](_0x251661);}else{const _0x312dba=_0xf0467d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x8dbca5,this['_model']['createRange'](_0x8dbca5['getFirstRange']()['start'],_0x312dba));}_0xf0467d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3fa6d6,_0x4d5e4f,_0x90e8d9){const _0x3cdee4=_0x3fa6d6['startsWith']('format')||_0x3fa6d6['startsWith']('attribute')?'FORMATTING':_0x3fa6d6['toUpperCase']();return o(this['editor']['locale'],_0x4d5e4f+'_'+_0x3cdee4+'_SUGGESTION_ANNOUNCEMENT',_0x90e8d9);}['_initAriaMarkerChangeAnnouncements'](){const _0x53d8c7=this['editor'];if(!_0x53d8c7['ui'])return;const {ariaLiveAnnouncer:_0x424eba}=_0x53d8c7['ui'];_0x8f0d73(this['_model'],({left:_0x2f1c34,entered:_0x159773})=>{for(const _0x2060a9 of _0x2f1c34){const {group:_0x2862a8,type:_0x417878}=this['_splitMarkerName'](_0x2060a9['name']);if('suggestion'===_0x2862a8){_0x424eba['announce'](this['_getMarkerAnnouncementText'](_0x417878,'LEAVE'));break;}}for(const _0x26b566 of _0x159773){const {group:_0x1a68ba,type:_0x2215a0}=this['_splitMarkerName'](_0x26b566['name']);if('suggestion'===_0x1a68ba){_0x424eba['announce'](this['_getMarkerAnnouncementText'](_0x2215a0,'ENTER',_0x53d907(_0xf70cef)));break;}}});}['_processAttributeChanges'](_0x1d7a29){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4c0f15=this['editor'],_0x4a9e00=_0x4c0f15['model']['document']['differ']['getChanges']();if(0x0==_0x4a9e00['length'])return!0x1;const _0xcd31c=[],_0x4385fa=_0x4a9e00['filter'](_0x440fc1=>'attribute'==_0x440fc1['type']),_0x2f74e4=_0x4a9e00['filter'](_0x152d9e=>'insert'==_0x152d9e['type']&&'$text'!=_0x152d9e['name']),_0x88df5d=_0x4a9e00['filter'](_0x37549b=>'remove'==_0x37549b['type']&&'$text'!=_0x37549b['name']);for(const _0x55acbd of _0x4385fa)_0xcd31c['push']({'key':_0x55acbd['attributeKey'],'newValue':_0x55acbd['attributeNewValue'],'oldValue':_0x55acbd['attributeOldValue'],'range':Ft(_0x55acbd['range'],_0x4c0f15['model'])});for(const _0x1263e7 of _0x2f74e4){const _0x11ad0f=_0x88df5d['find'](_0x5876a0=>_0x5876a0['position']['isEqual'](_0x1263e7['position']));_0x11ad0f&&_0xcd31c['push']({'key':m,'newValue':_0x1263e7['name'],'oldValue':_0x11ad0f['name'],'range':_0x4c0f15['model']['createRangeOn'](_0x1263e7['position']['nodeAfter'])});}return 0x0!=_0xcd31c['length']&&this['_reduceExistingSuggestions'](_0x1d7a29,_0xcd31c);}['_processAttributeSuggestions'](_0x5b4e41){let _0x25ec97=!0x1;const _0x249f3b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x584296=>_0x584296['data']['newRange']&&_0x584296['name']['startsWith']('suggestion:attribute:'));for(const _0x10ef5e of _0x249f3b){const {subType:_0x31195d,id:_0x2a9091}=this['_splitMarkerName'](_0x10ef5e['name']),_0x23b6bc=_0x31195d['split']('|')[0x0];for(const _0x538635 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x538635['id']!=_0x2a9091&&'attribute'==_0x538635['type']&&_0x538635['data']&&_0x538635['data']['key']==_0x23b6bc&&_0x538635['getFirstRange']()['isIntersecting'](_0x10ef5e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x538635,_0x10ef5e['data']['newRange'],_0x5b4e41),_0x25ec97=!0x0);}return _0x25ec97;}['_recordAttributeChanges'](_0x7d6311){this['_recordAttributeSuggestions']=!0x0,_0x7d6311();}['_isRegisteredAttribute'](_0x21503e){const _0x5d19da=this['_isBlockAttribute'](_0x21503e),_0x34d72f=this['_inlineAttributeKeys']['has'](_0x21503e);return _0x5d19da||_0x34d72f;}['_reduceExistingSuggestions'](_0x1552f0,_0x152c9e){if(0x0==_0x152c9e['length'])return!0x1;let _0x2e569f=!0x1;for(const _0x34dd9d of _0x152c9e){const _0x4a1e6e=this['_findSuggestions'](_0x34dd9d['range'],'attribute')['filter'](_0x54fbcf=>!_0x54fbcf['meta']['isNextTo'])['map'](_0x4740fb=>_0x4740fb['suggestion']),_0x12711f=_0xf585eb({'newValue':_0x34dd9d['newValue']});_0x4a1e6e['filter'](_0x1ef12d=>{const [_0x410de9,_0x4ded99]=_0x1ef12d['subType']['split']('|');return _0x410de9==_0x34dd9d['key']&&_0x4ded99!=_0x12711f;})['forEach'](_0xd68627=>{this['_reduceSuggestionAttributeRange'](_0xd68627,_0x34dd9d['range'],_0x1552f0),_0x2e569f=!0x0;});}return _0x2e569f;}['_reduceSuggestionAttributeRange'](_0x16b381,_0x30527c,_0x7c68a3){const _0x5b7787=_0x16b381['getFirstRange']()['getDifference'](_0x30527c);0x0!==_0x5b7787['length']?0x1!==_0x5b7787['length']?this['_breakSuggestionMarker'](_0x16b381,_0x30527c['start'],_0x30527c['end']):this['_setSuggestionRange'](_0x16b381,_0x5b7787[0x0]):_0x7c68a3['removeMarker'](_0x16b381['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5e9a7a){this['_editor']=_0x5e9a7a,this['_model']=_0x5e9a7a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1e031d,_0x519b53,_0x268284,_0x41dd37,_0x10c076,_0x5ccab7){return new u(this['_model'],{'type':_0x1e031d,'subType':_0x519b53,'id':_0x268284,'author':_0x41dd37,'creator':_0x41dd37,'attributes':_0x10c076,'onAttributesChange':_0x5ccab7,'onAccept':(..._0x26936c)=>this['getSuggestionCallback'](_0x1e031d,_0x519b53,'accept')(..._0x26936c),'onDiscard':(..._0x2e091a)=>this['getSuggestionCallback'](_0x1e031d,_0x519b53,'discard')(..._0x2e091a)});}['registerCustomCallback'](_0xf720b5,_0x59b6b3,_0x50c996,_0x131c32){const _0x24bb9a=_0xf720b5+':'+_0x59b6b3+':'+_0x50c996;this['_customCallbacks']['set'](_0x24bb9a,_0x131c32);}['getSuggestionCallback'](_0x547d52,_0x278d21,_0x43b4d8){const _0x17eee6=_0x547d52+':'+_0x278d21+':'+_0x43b4d8;return this['_customCallbacks']['get'](_0x17eee6)||this['_defaultCallbacks']['get'](_0x547d52+':'+_0x43b4d8);}['_registerDefaultCallbacks'](){const _0x545d8a=()=>!0x1,_0x131ffb=_0x5a1c4c=>{_0x5a1c4c['sort']((_0x59ca88,_0xa9be74)=>_0x59ca88['start']['isBefore'](_0xa9be74['start'])?0x1:-0x1),this['_model']['change'](_0x239254=>{for(const _0x5b10d7 of _0x5a1c4c){let _0x1d9f72;_0x1d9f72=_0x5b10d7['end']['isAtEnd']&&_0x5b10d7['end']['parent']==_0x5b10d7['start']['nodeAfter']?_0x239254['createSelection'](_0x5b10d7['start']['nodeAfter'],'on'):_0x239254['createSelection'](_0x5b10d7),this['_model']['deleteContent'](_0x1d9f72,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x21cf75=(_0x13a0bb,_0x28e011)=>{_0x28e011&&this['_model']['change'](_0x49ce4f=>{const {commandName:_0x42e248,commandParams:_0x1317e7=[]}=_0x28e011,_0x2304d0=_0x13a0bb['map'](_0x3019f4=>(Vt(_0x3019f4)&&(_0x3019f4=this['_model']['createRange'](_0x3019f4['end'])),_0x3019f4))['filter'](_0x466a20=>'$graveyard'!==_0x466a20['root']['rootName']);if(_0x2304d0['length']<0x1)return;const _0x12f7b6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x148667=>_0x7a70a6['fromRange'](_0x148667));_0x49ce4f['setSelection'](_0x2304d0);for(const _0x505ccd of this['_editor']['commands']['commands']())_0x505ccd['refresh']();_0x1317e7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x42e248,..._0x1317e7);const _0x312628=_0x12f7b6['filter'](_0x2ea42e=>'$graveyard'!=_0x2ea42e['root']['rootName']);_0x312628['length']>0x0&&_0x49ce4f['setSelection'](_0x312628);for(const _0x552518 of _0x12f7b6)_0x552518['detach']();});},_0x3ec0e5=(_0x5f4695,_0x5b1283)=>0x1==_0x5f4695['length']&&0x1==_0x5b1283['length']&&_0x5f4695[0x0]['end']['isEqual'](_0x5b1283[0x0]['start']),_0xa67a1e=(_0x2f8e46,_0x510077,_0x29a8c7,_0x25a76f)=>Ht(_0x2f8e46,_0x510077,_0x29a8c7,_0x25a76f,this['_model'])?[_0x2f8e46,_0x510077]:Ht(_0x510077,_0x2f8e46,_0x25a76f,_0x29a8c7,this['_model'])?[_0x510077,_0x2f8e46]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x545d8a),this['_defaultCallbacks']['set']('insertion:discard',_0x131ffb),this['_defaultCallbacks']['set']('insertion:join',_0x3ec0e5),this['_defaultCallbacks']['set']('insertion:chain',_0xa67a1e),this['_defaultCallbacks']['set']('deletion:accept',_0x131ffb),this['_defaultCallbacks']['set']('deletion:discard',_0x545d8a),this['_defaultCallbacks']['set']('deletion:join',_0x3ec0e5),this['_defaultCallbacks']['set']('deletion:chain',_0xa67a1e),this['_defaultCallbacks']['set']('formatInline:accept',_0x21cf75),this['_defaultCallbacks']['set']('formatInline:discard',_0x545d8a),this['_defaultCallbacks']['set']('formatInline:join',_0x3ec0e5),this['_defaultCallbacks']['set']('formatInline:chain',_0x545d8a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x21cf75),this['_defaultCallbacks']['set']('formatBlock:discard',_0x545d8a),this['_defaultCallbacks']['set']('formatBlock:join',_0x3ec0e5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x545d8a),this['_defaultCallbacks']['set']('attribute:accept',_0x545d8a),this['_defaultCallbacks']['set']('attribute:discard',(_0xdb5c9d,_0x3cdf37)=>{if(!_0x3cdf37)return;const _0x122737=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x42d39b=>{if(_0x3cdf37['key']==m)for(const _0x1aad9d of _0xdb5c9d){const _0x5c7ba9=_0x1aad9d['start']['nodeAfter'],_0x3247f5=_0x3cdf37['oldValue'];_0x42d39b['rename'](_0x5c7ba9,_0x3247f5);}else{if(_0x122737['_isBlockAttribute'](_0x3cdf37['key'])){for(const _0x2ad5a0 of _0xdb5c9d)void 0x0!==_0x3cdf37['oldValue']?_0x42d39b['setAttribute'](_0x3cdf37['key'],_0x3cdf37['oldValue'],_0x2ad5a0['start']['nodeAfter']):_0x42d39b['removeAttribute'](_0x3cdf37['key'],_0x2ad5a0['start']['nodeAfter']);}else{for(const _0xea14e8 of _0xdb5c9d)_0x3cdf37['oldValue']?_0x42d39b['setAttribute'](_0x3cdf37['key'],_0x3cdf37['oldValue'],_0xea14e8):_0x42d39b['removeAttribute'](_0x3cdf37['key'],_0xea14e8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3ec0e5);}}function Et(_0xaf0360,_0x41a61f,_0x4e7ffd){for(const _0x248918 of _0x41a61f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x248918['root']==_0x248918)return!0x1;if(!_0x4e7ffd['containsItem'](_0x248918))return!0x1;if(_0xaf0360['isObject'](_0x248918)||_0xaf0360['isLimit'](_0x248918))return!0x0;}return!0x1;}function Vt(_0x2f0447){return _0x2f0447['end']['parent']==_0x2f0447['start']['nodeAfter']&&_0x2f0447['end']['isAtStart'];}function Ut(_0xdfd9dd,_0x5a8c39,_0x36604b,_0x3ed459){const _0x2e96d7=_0x337051=>!_0x337051['item']['is']('$textProxy')&&!_0x3ed459['isObject'](_0x337051['item']),_0x273869=_0xdfd9dd['start']['getLastMatchingPosition'](_0x2e96d7),_0x1bca76=_0xdfd9dd['end']['getLastMatchingPosition'](_0x2e96d7,{'direction':'backward'});return(!_0xdfd9dd['start']['isEqual'](_0x273869)||!_0xdfd9dd['end']['isEqual'](_0x1bca76))&&(_0x273869['isBefore'](_0x1bca76)?_0x36604b['updateMarker'](_0x5a8c39,{'range':_0x36604b['createRange'](_0x273869,_0x1bca76)}):_0x36604b['removeMarker'](_0x5a8c39),!0x0);}function Pt(_0x98ccd9){return _0xf585eb(_0x98ccd9);}function Gt(_0x46d8a6){const _0x5a78e7=_0x46d8a6['start']['nodeAfter'];return _0x5a78e7&&_0x5a78e7['is']('element');}function Ft(_0x5f070d,_0xae47f8){return null==_0x5f070d['end']['nodeBefore']&&_0x5f070d['end']['parent']==_0x5f070d['start']['nodeAfter']?Lt(_0x5f070d['start']['nodeAfter'],_0xae47f8):_0x5f070d;}function Lt(_0x266839,_0x3d00){const _0xb5bcc4=_0x3d00['schema']['isObject'](_0x266839)||_0x3d00['schema']['isSelectable'](_0x266839);return _0x3d00['createRange'](_0x3d00['createPositionAt'](_0x266839,'before'),_0xb5bcc4?_0x3d00['createPositionAfter'](_0x266839):_0x3d00['createPositionAt'](_0x266839,'end'));}function Ht(_0x1f7a83,_0x1cc699,_0x5029ab,_0x35127c,_0x5ca8f5){if(_0x1f7a83['next'])return!0x1;if(!Jt(_0x1f7a83,_0x1cc699))return!0x1;if(_0x5029ab['end']['isEqual'](_0x35127c['start']))return!0x0;if(_0x1f7a83['type']!=_0x1cc699['type'])return!0x1;if(!_0x5029ab['end']['isTouching'](_0x35127c['start']))return!0x1;const _0x52cf41=_0x5ca8f5['createRange'](_0x5029ab['end'],_0x35127c['start'])['getWalker']();for(const _0x178df4 of _0x52cf41)if(['elementStart','elementEnd']['includes'](_0x178df4['type'])&&_0x5ca8f5['schema']['isLimit'](_0x178df4['item']))return!0x1;return!0x0;}function Jt(_0x3a1236,_0x4d4a21){if(!_0x3a1236['_isDataLoaded']||!_0x4d4a21['_isDataLoaded'])return!0x1;const _0x253a48=new Set(Object['keys'](_0x3a1236['attributes'])),_0x1787fb=new Set(Object['keys'](_0x4d4a21['attributes']));if(_0x253a48['delete']('groupId'),_0x1787fb['delete']('groupId'),0x0==_0x253a48['size']&&0x0==_0x1787fb['size'])return!0x0;if(_0x253a48['size']!=_0x1787fb['size'])return!0x1;const _0x49f813={..._0x3a1236['attributes']},_0x2af8a3={..._0x4d4a21['attributes']};return delete _0x49f813['groupId'],delete _0x2af8a3['groupId'],JSON['stringify'](_0x49f813)==JSON['stringify'](_0x2af8a3);}function qt(_0x428503,_0x362687){const _0x156135=zt(_0x428503['attributes']),_0x5c8315=zt(_0x362687);if(!_0x428503['_isDataLoaded'])return!0x1;for(const _0x45bab2 of Object['keys'](_0x5c8315))if(!_0x24b8a4(_0x156135[_0x45bab2],_0x5c8315[_0x45bab2]))return!0x1;return!0x0;}function zt(_0x87bd93){const _0x203d6a=Object['assign']({},_0x87bd93);return delete _0x203d6a['skipNestingCheck'],delete _0x203d6a['tablePasteChainId'],_0x203d6a;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x349c89(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4932fe,_0x1bc26e,_0x1cef94,_0x40bd88){super(),this['model']=_0x1bc26e,this['view']=_0x1cef94,this['commentThreadController']=_0x40bd88,this['_editor']=_0x4932fe,this['_acceptCommand']=_0x4932fe['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4932fe['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x340113,_0x1facec)=>_0x340113||_0x1facec),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x395461=>_0x395461&&this['_editor']['model']['canEditAt'](_0x1bc26e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x8b7917=>_0x8b7917&&this['_editor']['model']['canEditAt'](_0x1bc26e['getRanges']())),this['_pendingAction']=null,_0x1cef94['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1cef94,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1cef94,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1cef94,'change:isDirty',()=>{_0x1cef94['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 _0x31d5b5=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x31d5b5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x44480a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3045b2,_0x972ad7,_0x2bb1d2,_0x2b0f03){super(_0x3045b2),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xc9898d(_0x3045b2,o(_0x3045b2,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x972ad7['authoredAt']),this['bind']('authoredAt')['to'](_0x972ad7),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',_0x972ad7,'authoredAt',this,'descriptionParts',(_0x55910e,_0x19e9e8,_0xcfda8d)=>{const _0x1cdef6=_0xcfda8d['map'](_0x36227c=>ls(_0x36227c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x55910e-0x1,_0x972ad7['author']['name'],_0x19e9e8?_0x2b0f03['formatDateTime'](_0x19e9e8):'',new DOMParser()['parseFromString'](_0x1cdef6,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1863a4(),this['focusTracker']=new _0x47ecc2(),this['keystrokes']=new _0x3f770e(),this['focusCycler']=new _0x363e2d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4af566=>_0x4af566['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x972ad7,this['_localUser']=_0x2bb1d2,this['_config']=_0x2b0f03,_0x2b0f03['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x68ba8b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x223a78}=this['_config'];this['commentsListView']=new _0x223a78(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',_0x7bd1b8=>_0x7bd1b8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x21b9cd,_0xdd8b4c)=>_0x21b9cd||!!_0xdd8b4c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x318053}=this['_config'],_0x3801c8=new _0x318053(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2bc0eb=_0x3801c8['commentInputView'];return _0x3801c8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2bc0eb,'value',(_0x44a5d7,_0x483118,_0x5da32a)=>!!_0x5da32a||_0x44a5d7&&!_0x483118),_0x2bc0eb['on']('submit',(_0x1bf211,_0x1806af)=>{this['fire']('addComment',_0x1806af),_0x2bc0eb['editor']['setData']('');}),_0x2bc0eb['on']('cancel',()=>this['focus']()),_0x2bc0eb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3801c8;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x53defc,_0x1acdf6,_0x17e9b8,_0x5010aa){super(_0x53defc,_0x1acdf6,_0x17e9b8,_0x5010aa),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5bb14a=>_0x5bb14a&&_0x5bb14a[0x0]?_0x5bb14a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x51c1b7,_0x415905)=>{let _0x16e1b7='';for(const _0x54c6b4 of _0x51c1b7)_0x16e1b7+='<p>'+ls(_0x54c6b4['content'],_0x54c6b4['color'])+'</p>';return _0x415905?_0x16e1b7:_0x5e68f4(_0x16e1b7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5010aa['SuggestionView'](_0x53defc,_0x1acdf6,{'formatDateTime':_0x5010aa['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 _0x5225fe=this['bindTemplate'],_0x263bdf=[this['suggestionView']];return this['commentsListView']&&_0x263bdf['push'](this['commentsListView']),this['commentThreadInputView']&&_0x263bdf['push'](this['commentThreadInputView']),_0x263bdf['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5225fe['if']('isActive','ck-suggestion-wrapper--active'),_0x5225fe['to']('type',_0x564417=>'ck-suggestion-'+_0x564417),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':_0x5225fe['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x263bdf};}['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 _0x44480a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2e305b,_0x41bcec,_0x417f3f){super(_0x2e305b),this['_model']=_0x41bcec,this['_config']=_0x417f3f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x41bcec),this['acceptButton']=this['_createButton'](o(_0x2e305b,'Accept\x20suggestion'),_0x3b3428['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2e305b,'Discard\x20suggestion'),_0x3b3428['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4d3f9c(_0x2e305b,_0x41bcec['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1863a4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x47ecc2(),this['keystrokes']=new _0x3f770e(),this['focusCycler']=new _0x363e2d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x243e56=>_0x243e56['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1d0e38=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1d0e38['innerHTML']=this['description'],this['on']('change:description',(_0x148e72,_0x348d5b,_0x4ef5ec)=>{_0x1d0e38['innerHTML']=_0x4ef5ec;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x56a37e=this['bindTemplate'],_0x1bc069=[{'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':_0x56a37e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x56a37e['to']('authoredAt',_0x39283e=>this['_config']['formatDateTime'](_0x39283e))}]}]},{'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']&&_0x1bc069['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':_0x1bc069}]};}['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'](_0x1a5c60,_0x49e372,_0x329b0f,_0x2aa460,_0x35d721){const _0x4fed44=new _0x162c45(this['locale']);return _0x4fed44['set']({'label':_0x1a5c60,'icon':_0x49e372,'tooltip':!0x0,'tooltipPosition':_0x35d721}),_0x4fed44['extendTemplate']({'attributes':{'class':_0x329b0f}}),_0x4fed44['on']('execute',()=>{this['fire'](_0x2aa460,this['_model']['id']);}),_0x4fed44;}['_setupKeyboardNavigation'](){const _0x5d99b5=this['element'];this['keystrokes']['listenTo'](_0x5d99b5);for(const _0x56acbe of this['focusables'])this['focusTracker']['add'](_0x56acbe['element']),this['keystrokes']['listenTo'](_0x56acbe['element']);this['keystrokes']['set']('enter',(_0x1100a7,_0x3c6fa3)=>{_0x5d99b5===_0x1100a7['target']&&(this['focusCycler']['focusFirst'](),_0x3c6fa3());}),this['keystrokes']['set']('esc',(_0x466a90,_0x11d352)=>{_0x5d99b5!==_0x466a90['target']&&(this['focus'](),_0x11d352());});}}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 _0x9c8a48{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4a537f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5133ee){super(_0x5133ee),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1a899a=this['editor']['config'];_0x1a899a['define']('trackChanges.SuggestionThreadView',re),_0x1a899a['define']('trackChanges.SuggestionView',ce),_0x1a899a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1a899a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1791e2,_0x49af47){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5d1b15,_0x3a3447]of this['_handleControllerBuffer']){const _0x5699ac=this['_suggestionToController']['has'](_0x5d1b15);_0x5699ac||_0x3a3447?_0x5699ac&&_0x3a3447&&this['_destroyController'](_0x5d1b15):this['_initializeController'](_0x5d1b15);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1791e2,_0x49af47);}['init'](){const _0x27d42b=this['editor'],_0x96a9fc=_0x27d42b['plugins']['get']('TrackChangesEditing'),_0x46e182=_0x27d42b['plugins']['get']('Annotations'),_0x59ba17=_0x27d42b['plugins']['get']('EditorAnnotations'),_0x390948=_0x27d42b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x59ba17['addSourceCollector'](()=>{const _0x39a6c9=[];for(const [_0x55e9ae,_0x58f958]of Array['from'](this['_suggestionToController'])){const _0x10ebb0=_0x55e9ae['getAllAdjacentSuggestions'](),_0xdf9357=[];for(const _0x315159 of _0x10ebb0){if(!_0x315159['isInContent'])continue;if(_0x315159['isMultiRange']){_0xdf9357['push'](..._0x315159['getRanges']());continue;}const _0x283bd8=_0x315159['getFirstRange']();if(_0xdf9357['length']>0x0){const _0x457684=_0xdf9357[0x0]['getJoined'](_0x283bd8);if(_0x457684){_0xdf9357[0x0]=_0x457684;continue;}}_0xdf9357['push'](_0x283bd8);}_0x39a6c9['push']([_0x58f958['view'],_0xdf9357]);}return _0x39a6c9;}),this['listenTo'](_0x96a9fc,'suggestionLoaded',(_0x41ad96,_0xbe06fc)=>{this['listenTo'](_0xbe06fc,'change:previous',(_0x2b97ba,_0x36c37c,_0x511966,_0x310771)=>{_0xbe06fc['isInContent']&&(null==_0x511966?(this['_updateController'](_0x310771['head']),this['_handleSuggestionControllerDelayed'](_0xbe06fc,!0x1)):(this['_updateController'](_0x511966['head']),null==_0x310771&&this['_handleSuggestionControllerDelayed'](_0xbe06fc,!0x0)));}),null!==_0xbe06fc['previous']?this['_updateController'](_0xbe06fc['head']):this['_handleSuggestionControllerDelayed'](_0xbe06fc,!0x1);}),this['listenTo'](_0x96a9fc,'suggestionUnloaded',(_0x2a6405,_0x1ef49a,_0x5baabb)=>{this['stopListening'](_0x1ef49a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1ef49a),this['_suggestionToController']['has'](_0x1ef49a)&&this['_destroyController'](_0x1ef49a),_0x5baabb&&this['_updateController'](_0x5baabb['head']);}),this['listenTo'](_0x96a9fc,'suggestionChanged',(_0x44e2b0,_0x362c8b)=>{this['_updateController'](_0x362c8b);}),this['listenTo'](_0x46e182,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x390948,'addComment',(_0x36b61b,{threadId:_0x335c9d,isFromAdapter:_0x80bfea})=>{if(_0x80bfea||!_0x96a9fc['hasSuggestion'](_0x335c9d))return;const _0x36e5be=_0x96a9fc['getSuggestion'](_0x335c9d);this['_suggestionToController']['get'](_0x36e5be)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2fa1e0=this['editor']['plugins']['get']('Annotations'),_0x434d3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x370417=Array['from'](_0x2fa1e0['activeAnnotations'],_0x47d424=>_0x47d424['innerView'])['filter'](_0x1100f4=>this['_viewToController']['has'](_0x1100f4)),_0x193f14=[];for(const _0x55d322 of _0x370417){const _0x3d9949=this['_viewToController']['get'](_0x55d322)['model']['getAllAdjacentSuggestions']();_0x193f14['push'](..._0x3d9949['reduce']((_0x562bf3,_0x1be72b)=>[..._0x562bf3,..._0x1be72b['getMarkerNames']()],[]));}_0x434d3d['activeMarkers']=_0x193f14;}['_addUIComponentsToFactory'](){const _0x5eee98=this['editor'],_0x1f3766=_0x5eee98['locale'],_0x563166=o(_0x1f3766,'Track\x20changes'),_0x97528a=new Wt([{'type':'switchbutton','model':new _0xc70a69({'withText':!0x0,'isToggleable':!0x0,'label':_0x563166,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xc70a69({'withText':!0x0,'label':o(_0x1f3766,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc70a69({'withText':!0x0,'label':o(_0x1f3766,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc70a69({'withText':!0x0,'label':o(_0x1f3766,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc70a69({'withText':!0x0,'label':o(_0x1f3766,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x15f9f9 of _0x97528a)if(me(_0x15f9f9)){const _0x5add78=_0x5eee98['commands']['get'](_0x15f9f9['model']['commandName']);_0x15f9f9['model']['bind']('isOn','isEnabled')['to'](_0x5add78,'value','isEnabled');}_0x5eee98['ui']['componentFactory']['add']('trackChanges',_0x223ac2=>this['_createToolbarButton'](_0x223ac2,_0x97528a,_0x563166)),_0x5eee98['ui']['componentFactory']['add']('menuBar:trackChanges',_0x566c4a=>this['_createMenuBarMenu'](_0x566c4a,_0x97528a,_0x563166));}['_createToolbarButton'](_0x4a8ee4,_0x493893,_0xb0a543){const _0x289d53=Qt(_0x4a8ee4,_0x57a754),_0x114aa7=this['editor']['commands']['get']('trackChanges');_0x289d53['buttonView']['set']({'tooltip':_0xb0a543,'label':_0xb0a543,'icon':he}),_0x289d53['buttonView']['bind']('isOn')['to'](_0x114aa7,'value'),_0x289d53['buttonView']['on']('execute',()=>{_0x114aa7['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x289d53,_0x493893,{'role':'menu'});const _0x421b7e=[];for(const _0x560d76 of _0x493893)me(_0x560d76)&&_0x421b7e['push'](this['editor']['commands']['get'](_0x560d76['model']['commandName']));const _0x58e47c=_0x289d53['buttonView'];return _0x58e47c['actionView']['unbind']('isEnabled'),_0x58e47c['arrowView']['unbind']('isEnabled'),_0x58e47c['actionView']['bind']('isEnabled')['to'](_0x114aa7,'isEnabled'),_0x58e47c['arrowView']['bind']('isEnabled')['toMany'](_0x421b7e,'isEnabled',(..._0x16502e)=>_0x16502e['some'](_0x5abcee=>_0x5abcee)),_0x289d53['on']('execute',_0x143cca=>{this['editor']['execute'](_0x143cca['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x289d53;}['_createMenuBarMenu'](_0x56d7d7,_0xa78200,_0x55aae6){const _0x2ffc07=new Yt(_0x56d7d7),_0x294fed=this['editor']['commands']['get']('trackChanges');_0x2ffc07['buttonView']['set']({'label':_0x55aae6,'icon':he});const _0x3adc8c=new Zt(_0x56d7d7);for(const _0x3b8292 of _0xa78200){if('separator'==_0x3b8292['type']){_0x3adc8c['items']['add'](new Xt(_0x56d7d7));continue;}const _0x849237=new te(_0x56d7d7,_0x2ffc07),_0x590f2b=new _0x59867e(_0x56d7d7),_0x4e1c62=_0x3b8292['model'];_0x590f2b['bind'](...Object['keys'](_0x4e1c62))['to'](_0x4e1c62),_0x590f2b['delegate']('execute')['to'](_0x2ffc07),_0x590f2b['on']('execute',()=>{this['editor']['execute'](_0x4e1c62['commandName']),this['editor']['editing']['view']['focus']();}),_0x849237['children']['add'](_0x590f2b),_0x3adc8c['items']['add'](_0x849237);}return _0x2ffc07['bind']('isEnabled')['to'](_0x294fed,'isEnabled'),_0x2ffc07['panelView']['children']['add'](_0x3adc8c),_0x2ffc07;}['_initializeController'](_0x556f2c){const _0x2e5ced=this['editor'],_0x4e654a=_0x2e5ced['config'],_0x1afb36=_0x2e5ced['plugins']['get']('Annotations'),_0x26572b=_0x2e5ced['plugins']['get']('CommentsRepository'),_0x39a582=_0x2e5ced['plugins']['get']('EditorAnnotations'),_0x3c9233=_0x2e5ced['plugins']['get'](_0x4a537f)['me'],_0x2bdfa9=_0x4e654a['get']('trackChanges')['SuggestionThreadView'],_0x54800c=_0x4e654a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xf36e8a,CommentThreadInputView:_0x3cb25c}=_0x2e5ced['plugins']['get']('CommentsUI');let _0x26f286,_0x411d5c,_0x22ebaa;this['_annotationViews']['has'](_0x556f2c['id'])?(_0x411d5c=this['_annotationViews']['get'](_0x556f2c['id']),_0x26f286=_0x411d5c['mainView']):(_0x26f286=new _0x2bdfa9(_0x2e5ced['locale'],_0x556f2c,_0x3c9233,{'disableComments':this['_disableComments'],'editorConfig':_0x4e654a['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4e654a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4e654a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4e654a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x12305d(_0x4e654a['get']('locale')),'CommentView':_0x4e654a['get']('comments')['CommentView'],'CommentsListView':_0xf36e8a,'CommentThreadInputView':_0x3cb25c,'SuggestionView':_0x54800c}),_0x26f286['suggestionView']['acceptButton']['on']('execute',()=>{_0x2e5ced['editing']['view']['focus']();}),_0x26f286['suggestionView']['discardButton']['on']('execute',()=>{_0x2e5ced['editing']['view']['focus']();}),_0x411d5c=_0x1afb36['createAnnotationView'](this['editor']['locale'],_0x26f286),_0x411d5c['bind']('isDirty')['to'](_0x26f286,'isDirty'),_0x411d5c['bind']('length')['to'](_0x26f286),_0x411d5c['bind']('type')['to'](_0x26f286,'type',_0x389030=>'suggestion-'+_0x389030),_0x26f286['on']('escape',()=>{_0x22ebaa['fire']('escape');}),this['_annotationViews']['set'](_0x556f2c['id'],_0x411d5c));const _0x632c26=_0x26572b['createCommentThreadController'](_0x556f2c['commentThread'],_0x26f286),_0x325f13=new ae(_0x2e5ced,_0x556f2c,_0x26f286,_0x632c26),_0x4831c2=_0x556f2c['getAllAdjacentSuggestions']()['filter'](_0x267d77=>_0x267d77['isInContent']);_0x26f286['descriptionParts']=_0x2e5ced['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4831c2),this['_suggestionToController']['set'](_0x556f2c,_0x325f13),this['_viewToController']['set'](_0x26f286,_0x325f13),_0x22ebaa=_0x1afb36['createAnnotation']({'view':_0x411d5c,'target':()=>{const _0x580172=[],_0x1a6470=_0x556f2c['getAllAdjacentSuggestions']()['filter'](_0x2e0fa5=>_0x2e0fa5['isInContent']);for(const _0x50289d of _0x1a6470)_0x580172['push'](..._0x50289d['getMarkers']());return _0x3508bd(_0x2e5ced['editing'],_0x580172);},'type':()=>'suggestion-'+_0x325f13['view']['type']}),_0x26572b['_bindAnnotationToEditors'](_0x26f286,_0x22ebaa),_0x1afb36['add'](_0x22ebaa),_0x39a582['registerAnnotation'](_0x22ebaa);}['_destroyController'](_0x309f30){const _0x257d2f=this['editor']['plugins']['get']('CommentsRepository'),_0x93bf0c=this['editor']['plugins']['get']('Annotations'),_0x356fa2=this['_suggestionToController']['get'](_0x309f30),_0x486e09=_0x356fa2['view'],_0x5bcf4f=_0x93bf0c['getByInnerView'](_0x486e09);_0x257d2f['_unbindEditors'](_0x486e09),_0x5bcf4f&&_0x93bf0c['remove'](_0x5bcf4f),this['_suggestionToController']['delete'](_0x309f30),this['_viewToController']['delete'](_0x486e09),_0x356fa2['destroy']();}['_updateController'](_0x3bd50e){if(!_0x3bd50e['isInContent']||!this['_suggestionToController']['has'](_0x3bd50e))return;const _0x2f97a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17fe22=this['_suggestionToController']['get'](_0x3bd50e),_0x62664d=_0x3bd50e['getAllAdjacentSuggestions']();_0x17fe22['view']['descriptionParts']=_0x2f97a8['descriptionFactory']['getDescriptions'](_0x62664d);}['destroy'](){for(const _0x52aa2a of this['_suggestionToController']['keys']())this['_destroyController'](_0x52aa2a);for(const _0x4e26f5 of this['_annotationViews']['values']())_0x4e26f5['mainView']['destroy']();super['destroy']();}}function me(_0x132b87){return'model'in _0x132b87;}class k extends _0x9c8a48{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5a530f){this['editor']['plugins']['get'](p)['adapter']=_0x5a530f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x476dc5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x476dc5);}['getSuggestions']({skipNotAttached:_0x48dca1=!0x1,toJSON:_0x52e732=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x48dca1,'toJSON':_0x52e732});}['getSuggestion'](_0x2b0fd1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2b0fd1);}}const w=['Pagination'];class T extends _0x9c8a48{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x52f841=this['editor'];if(_0x52f841['config']['define']('trackChangesData.editorCreator',_0x51d547=>{const _0x554342=_0x52f841['model']['document']['getRootNames']()['reduce']((_0x374d90,_0x7229f3)=>(_0x374d90[_0x7229f3]='',_0x374d90),{});return _0x52f841['constructor']['create'](_0x554342,_0x51d547);}),'function'!=typeof _0x52f841['config']['get']('trackChangesData')['editorCreator'])throw new _0x34c45c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x8500e5){return N(this['editor'],!0x0,_0x8500e5);}['getDataWithDiscardedSuggestions'](_0xed57d2){return N(this['editor'],!0x1,_0xed57d2);}}class D extends _0x9c8a48{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x119e15){super(_0x119e15),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(_0x5d538f){return void 0x0!==_0x5d538f['getRootsAttributes'];}async function N(_0x156cdc,_0x32498a,_0x3bfa8c){const _0x575734=_0x89c5b9(_0x156cdc,w);_0x575734['plugins']['push'](p,D),_0x575734['rootsAttributes']=v(_0x156cdc)?_0x156cdc['getRootsAttributes']():void 0x0;const _0xc99433=document['createDocumentFragment'](),_0x383315=_0x156cdc['config']['get']('trackChangesData')['editorCreator'],_0xbbd638=await _0x383315(_0x575734,()=>function(_0x5ae246){const _0x3171f9=document['createElement']('div');return _0x5ae246['appendChild'](_0x3171f9),_0x3171f9;}(_0xc99433));!function(_0x316a65,_0xe4c595){const _0xe1f3e7=_0x316a65['model']['document']['getRootNames']()['reduce']((_0xf28507,_0x245d34)=>(_0xf28507[_0x245d34]=_0x316a65['data']['get']({'rootName':_0x245d34}),_0xf28507),{}),_0x13a223=_0x316a65['plugins']['get']('Users')['users']['map'](_0x1282a7=>({'id':_0x1282a7['id'],'name':_0x1282a7['name']})),_0x690dbd=_0x316a65['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x573a08=_0x316a65['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x33e0ec=_0xe4c595['plugins']['get']('Users'),_0x41c160=_0xe4c595['plugins']['get']('TrackChangesEditing'),_0x2303d5=_0xe4c595['plugins']['get']('CommentsRepository');for(const _0x4395f7 of _0x2303d5['getCommentThreads']())_0x4395f7['remove']();for(const _0x2d9bb6 of _0x13a223)_0x33e0ec['getUser'](_0x2d9bb6['id'])||_0x33e0ec['addUser'](_0x2d9bb6);_0x33e0ec['me']||_0x33e0ec['useAnonymousUser']();for(const _0x3b9787 of _0x573a08)_0x2303d5['addCommentThread'](_0x3b9787);for(const _0xb3cd1b of _0x690dbd)_0x41c160['addSuggestionData'](_0xb3cd1b);_0xe4c595['data']['set'](_0xe1f3e7);}(_0x156cdc,_0xbbd638),_0xbbd638['execute'](_0x32498a?'acceptAllSuggestions':'discardAllSuggestions');const _0x5e8f67=v(_0xbbd638)?_0xbbd638['getFullData'](_0x3bfa8c):_0xbbd638['data']['get'](_0x3bfa8c);return await _0xbbd638['destroy'](),_0x5e8f67;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x3a5fae,PendingActions as _0x2593a7,icons as _0x274a98}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x55a112,ObservableMixin as _0x39f370,uid as _0x265842,insertToPriorityArray as _0x10b938,priorities as _0x236a31,logWarning as _0x10df08,getEnvKeystrokeText as _0x277fa6,FocusTracker as _0x41d8ab,KeystrokeHandler as _0x1255e9,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5d5a94,View as _0x12c3a5,ViewCollection as _0x45520d,FocusCycler as _0x14a039,ViewModel as _0x3a5d61,createDropdown as Qt,SplitButtonView as _0xed2287,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x5d4d42}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4ea52e,hashObject as _0x3d6d49,surroundingMarkersDetector as _0x4ec1f8,FOCUS_ANNOTATION_KEYSTROKE as _0x5d75da,AriaDescriptionView as _0x2cd072,setupThreadKeyboardNavigation as _0x53a92d,trimHtml as _0x2d0834,UserView as _0x311d62,LateFocusButtonView as _0x30b0d7,getDateTimeFormatter as _0x14302d,getAllMarkersDomElementsSorted as _0x4a5189,sanitizeEditorConfig as _0x55e728}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2ffaaa,LiveRange as _0x3a302,LivePosition as _0x450e19}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x151a63,toWidget as _0x17dc79}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x33bdca,set as _0x25f5b3,isEqual as _0x5c31e6,unset as _0x4901d0,omit as Rt}from'lodash-es';import{Delete as _0xb126fe,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x851c33,ShiftEnter as _0x3d0a5a}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x345d7a,_0x438728){super(_0x345d7a),this['_enabledCommands']=_0x438728,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 _0x26063e of this['editor']['commands']['commands']())_0x26063e['affectsData']&&!this['_enabledCommands']['has'](_0x26063e)&&_0x26063e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4c084e of this['editor']['commands']['commands']())_0x4c084e['affectsData']&&!this['_enabledCommands']['has'](_0x4c084e)&&_0x4c084e['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x2f35fb,_0x4eb121){super(_0x2f35fb),this['_suggestions']=_0x4eb121,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c17e1){const _0x4389a0=this['_suggestions']['get'](_0x5c17e1);if(!_0x4389a0)throw new _0x55a112('track-changes-accept-suggestion-not-found',this);const _0x3f1728=_0x4389a0['getRanges']();this['editor']['model']['canEditAt'](_0x3f1728)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4389a0);}}class O extends ts{['_suggestions'];constructor(_0x4c536b,_0x57fe48){super(_0x4c536b),this['_suggestions']=_0x57fe48,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x183a4e){const _0x3dc6de=this['_suggestions']['get'](_0x183a4e);if(!_0x3dc6de)throw new _0x55a112('track-changes-discard-suggestion-not-found',this);const _0x991a0f=_0x3dc6de['getRanges']();this['editor']['model']['canEditAt'](_0x991a0f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3dc6de);}}function ls(_0x291dbe,_0x3959a7){let _0x24b887='';return _0x24b887+=_0x291dbe['split']('*')['map']((_0x5d99d2,_0x9068ec)=>_0x9068ec%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5d99d2)+'</span>':nn(_0x5d99d2))['join'](''),_0x3959a7&&(_0x24b887+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3959a7['value']+'\x22\x20title=\x22'+_0x3959a7['title']+'\x22></span>'),_0x24b887;}function nn(_0x382f0d){const _0x24031a=document['createElement']('span');return _0x24031a['innerText']=_0x382f0d,_0x24031a['innerHTML'];}function ss(_0x1bcd34){return _0x1bcd34['sort']((_0x488d7b,_0x5a6748)=>'deletion'==_0x488d7b['type']&&'deletion'!=_0x5a6748['type']?-0x1:'deletion'!=_0x488d7b['type']&&'deletion'==_0x5a6748['type']?0x1:0x0);}function to(_0x412d59,_0x17f504){let _0x1f324f,_0x4bf83a=0x0;const _0x36ec5a=[],_0x36fb2e=_0x17f504['schema'];for(;_0x4bf83a<_0x412d59['length'];){const _0x46e6b2=_0x412d59[_0x4bf83a],_0x3c2b72=_0x412d59[_0x4bf83a+0x1];_0x1f324f||(_0x1f324f=_0x17f504['createPositionBefore'](_0x46e6b2)),on(_0x17f504,_0x46e6b2,_0x3c2b72)||(_0x36ec5a['push'](_0x17f504['createRange'](_0x1f324f,_0x36fb2e['isObject'](_0x46e6b2)?_0x17f504['createPositionAfter'](_0x46e6b2):_0x17f504['createPositionAt'](_0x46e6b2,'end'))),_0x1f324f=null),_0x4bf83a++;}return _0x36ec5a;}function on(_0x2cf6a5,_0x5ace27,_0x43da2b){if(!_0x43da2b)return!0x1;const _0x6e0fd8=_0x2cf6a5['createPositionAfter'](_0x5ace27),_0x20dd4b=_0x2cf6a5['createPositionBefore'](_0x43da2b);return _0x6e0fd8['isTouching'](_0x20dd4b);}function rs(_0x3ee2d1,_0x5bab3a,_0x44fb08){for(;_0x44fb08['length'];){const _0x5c8b5a=_0x44fb08['splice'](0x0,0x64);_0x3ee2d1['change'](()=>{for(const _0x4447e5 of _0x5c8b5a)_0x4447e5['isInContent']&&_0x5bab3a['execute'](_0x4447e5['id']);});}}class R extends ts{['_command'];['_suggestions'];constructor(_0x20fa3c,_0x291695,_0x4ac03b){super(_0x20fa3c),this['_command']=_0x291695,this['_suggestions']=_0x4ac03b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2ed8b8=Array['from'](this['_suggestions']['values']())['some'](_0x27a878=>_0x27a878['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2ed8b8;}['execute'](){const _0x415f61=ss(Array['from'](this['_suggestions']['values']()));for(const _0x147a47 of _0x415f61){const _0x462060=_0x147a47['getRanges']();if(!this['editor']['model']['canEditAt'](_0x462060))return;}rs(this['editor']['model'],this['_command'],_0x415f61);}}class E extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1a1b8a,_0x2578a3,_0x5206c0){super(_0x1a1b8a),this['_command']=_0x2578a3,this['_suggestions']=_0x5206c0,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3bce58=this['editor']['model']['document']['selection'],_0x4f5826=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1f2db9,_0x702446){const _0x434459=Array['from'](_0x1f2db9['getRanges']()),_0x1e8653=new Set();for(const _0x33d199 of _0x702446)if(_0x33d199['isInContent']){for(const _0x4a4074 of _0x434459)for(const _0xb12bf1 of _0x33d199['getRanges']())(_0x4a4074['isIntersecting'](_0xb12bf1)||_0x1f2db9['isCollapsed']&&!_0x33d199['isMultiRange']&&_0x33d199['next']&&_0xb12bf1['end']['isTouching'](_0x4a4074['start']))&&_0x1e8653['add'](_0x33d199);}return _0x1e8653;}(_0x3bce58,_0x4f5826),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x30be94=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4e668c of _0x30be94){const _0x3b75b0=_0x4e668c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3b75b0))return;}rs(this['editor']['model'],this['_command'],_0x30be94);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x39f370(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3bc01a,_0x5c798c){super(),this['id']=_0x5c798c['id'],this['type']=_0x5c798c['type'],this['subType']=_0x5c798c['subType']||null,this['author']=_0x5c798c['author'],this['creator']=_0x5c798c['creator']||_0x5c798c['author'],this['isExternal']=Boolean(_0x5c798c['attributes']&&_0x5c798c['attributes']['@external']),this['data']=null,this['_model']=_0x3bc01a,this['_onAccept']=_0x5c798c['onAccept'],this['_onDiscard']=_0x5c798c['onDiscard'],this['_onAttributesChange']=_0x5c798c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5c798c['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 _0x506493=this;for(;_0x506493['previous'];)_0x506493=_0x506493['previous'];return _0x506493;}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'](_0x599f4d){this['_markerNames']['add'](_0x599f4d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x66a862=>this['_model']['markers']['get'](_0x66a862))['filter'](_0x3d5a5d=>_0x3d5a5d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1978de=>{for(const _0x160842 of this['getMarkers']())_0x1978de['removeMarker'](_0x160842);}),this['_markerNames']['clear']();}['removeMarker'](_0x1ef625){this['_model']['change'](_0xc8fbe5=>{_0xc8fbe5['removeMarker'](_0x1ef625);}),this['_markerNames']['delete'](_0x1ef625);}['addRange'](_0x8ffdd){const _0x149660='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x149660),this['_model']['change'](_0x13a949=>{_0x13a949['addMarker'](_0x149660,{'range':_0x8ffdd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x234823){for(const _0x9047a0 of this['getRanges']())if(_0x9047a0['isIntersecting'](_0x234823))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x24c7e0=>_0x24c7e0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x128fcf,_0x1e7a48)=>[..._0x128fcf,..._0x1e7a48['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x777985=this['getRanges']();if(0x1!=_0x777985['length'])return null;const _0x3a6423=_0x777985[0x0],_0x51323b=_0x3a6423['start']['nodeAfter'],_0x4e85eb=_0x3a6423['end']['nodeBefore'];return _0x51323b instanceof _0x2ffaaa?_0x51323b!=_0x4e85eb?null:_0x51323b: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 _0x31bfe1=[];let _0x4d039a=this['head'];for(;_0x4d039a;)_0x31bfe1['push'](_0x4d039a),_0x4d039a=_0x4d039a['next'];return _0x31bfe1;}['setAttribute'](_0xae7116,_0x27d253){const _0x48c472=_0x33bdca(this['attributes']);_0x25f5b3(_0x48c472,_0xae7116,_0x27d253),_0x5c31e6(_0x48c472,this['attributes'])||(this['attributes']=_0x48c472,this['_onAttributesChange'](_0x48c472));}['removeAttribute'](_0xf7ba87){const _0x304e04=_0x33bdca(this['attributes']);_0x4901d0(_0x304e04,_0xf7ba87),_0x5c31e6(_0x304e04,this['attributes'])||(this['attributes']=_0x304e04,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 _0x265842()['substr'](0x1,0x5);}}function o(_0x2d2fde,_0x459915,_0x42fc03){const t=_0x2d2fde['t'];switch(_0x459915){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',_0x42fc03);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x42fc03);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x42fc03);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x42fc03);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x42fc03);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',_0x42fc03);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x42fc03);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',_0x42fc03);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x42fc03);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x42fc03);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x42fc03);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x42fc03);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x42fc03);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x42fc03);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x42fc03);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x42fc03);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x42fc03);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x42fc03);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x42fc03);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x42fc03);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x42fc03);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x42fc03);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x42fc03);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'},_0x42fc03);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x42fc03);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x42fc03);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x42fc03);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x42fc03);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x42fc03);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'},_0x42fc03);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x42fc03);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x42fc03);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x42fc03);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x42fc03);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'},_0x42fc03);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x42fc03);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'},_0x42fc03);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'},_0x42fc03);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x42fc03);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'},_0x42fc03);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x42fc03);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'},_0x42fc03);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x42fc03);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x42fc03);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'},_0x42fc03);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'},_0x42fc03);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'},_0x42fc03);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x42fc03);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'},_0x42fc03);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'},_0x42fc03);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'},_0x42fc03);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x459915;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1a3fcb,_0x52d853){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1a3fcb,this['_locale']=_0x52d853;}['getDescriptions'](_0x7f448c){const _0x237930=[],_0x3d2410=new Set(),_0x10b4b8=new Set();for(let _0x471760=0x0;_0x471760<_0x7f448c['length'];_0x471760++){const _0x48f16d=_0x7f448c[_0x471760];if(!_0x48f16d['isInContent'])continue;const _0x2eaa8c=this['_handleCustomCallbackDescription'](_0x48f16d);if(_0x2eaa8c){if(null!=_0x48f16d['subType']){if(_0x3d2410['has'](_0x48f16d['subType']))continue;_0x3d2410['add'](_0x48f16d['subType']);}_0x237930['push'](_0x2eaa8c);}else{if('attribute'!=_0x48f16d['type'])'insertion'!=_0x48f16d['type']&&'deletion'!=_0x48f16d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x237930,_0x48f16d,_0x7f448c[_0x471760+0x1]);else{const _0x3d92da=_0x48f16d['data']['key'];if(_0x10b4b8['has'](_0x3d92da))continue;_0x10b4b8['add'](_0x48f16d['data']['key']),_0x3d92da==m?this['_handleRenameSuggestionDescription'](_0x237930,_0x48f16d):this['_handleAttributeSuggestionDescription'](_0x237930,_0x48f16d);}}}return this['_resolveDescriptionItems'](_0x237930);}['registerDescriptionCallback'](_0x26caa1){this['_customCallbacks']['push'](_0x26caa1);}['registerElementLabel'](_0x329541,_0x481a20,_0x556fea=_0x236a31['normal']){'function'==typeof _0x329541?_0x10b938(this['_itemLabelsCallbacks'],{'matchingCallback':_0x329541,'label':_0x481a20,'priority':_0x556fea}):this['_itemLabels']['set'](_0x329541,_0x481a20);}['registerAttributeLabel'](_0x32c8af,_0x4202b7){this['_attributeLabels']['set'](_0x32c8af,_0x4202b7);}['getItemLabel'](_0x298e70,_0x53383f=0x1){let _0x3e2f2a;for(const _0x123864 of this['_itemLabelsCallbacks'])if(_0x123864['matchingCallback'](_0x298e70)){_0x3e2f2a=_0x123864['label'];break;}return _0x3e2f2a||(_0x3e2f2a=this['_itemLabels']['get'](_0x298e70['name'])),_0x3e2f2a?_0x3e2f2a(_0x53383f):0x1!==_0x53383f?_0x53383f+'\x20'+_0x298e70['name']+'s':''+_0x298e70['name'];}['_addDescriptionItems'](_0x3da9ca,_0x42577c){const _0x1448b1=_0x42577c['getFirstRange']()['getWalker'](),_0xb7cd3e='insertion'==_0x42577c['type']?'add':'remove';for(const _0x57155f of _0x1448b1){const _0x5029b9=_0x57155f['item'],_0x5c2818=_0x3da9ca[_0x3da9ca['length']-0x1];if(_0x5029b9['is']('$textProxy'))_0x5c2818&&_0x5c2818['type']['indexOf']('Container')>-0x1&&_0x3da9ca['pop'](),_0x5c2818&&'text'==_0x5c2818['type']?_0x5c2818[_0xb7cd3e]+=_0x5029b9['data']:_0x3da9ca['push']({'type':'text','add':'add'==_0xb7cd3e?_0x5029b9['data']:'','remove':'remove'==_0xb7cd3e?_0x5029b9['data']:''});else{if(this['_schema']['isObject'](_0x5029b9)){const _0x4b82d4=_0x5029b9;if(_0x5c2818&&_0x5c2818['type']['indexOf']('Container')>-0x1&&_0x3da9ca['pop'](),'elementEnd'==_0x57155f['type'])continue;_0x5c2818&&_0x5c2818['type']==_0xb7cd3e+'Object'&&_0x5c2818['element']['name']==_0x4b82d4['name']?_0x5c2818['quantity']++:_0x3da9ca['push']({'type':_0xb7cd3e+'Object','element':_0x4b82d4,'quantity':0x1}),_0x1448b1['skip'](_0x197271=>!('elementEnd'==_0x197271['type']&&_0x197271['item']==_0x5029b9));}else{if(this['_schema']['checkChild'](_0x5029b9,'$text')||_0x5029b9['is']('element','softBreak')){const _0x4e2da8=_0x5029b9;if('add'==_0xb7cd3e&&'elementStart'==_0x57155f['type']||'remove'==_0xb7cd3e&&'elementEnd'==_0x57155f['type'])continue;if(_0x5c2818&&-0x1==_0x5c2818['type']['indexOf']('Container')){'text'==_0x5c2818['type']&&(_0x5c2818[_0xb7cd3e]+='\x0a');continue;}let _0x54f188;if(_0x54f188='add'==_0xb7cd3e?_0x4e2da8['nextSibling']&&!this['_schema']['isObject'](_0x4e2da8['nextSibling'])?_0x4e2da8['nextSibling']:null:_0x4e2da8['previousSibling']&&!this['_schema']['isObject'](_0x4e2da8['previousSibling'])?_0x4e2da8['previousSibling']:null,_0x4e2da8['isEmpty']||_0x54f188&&_0x54f188['isEmpty']){const _0xa091fa=_0x54f188&&_0x54f188['isEmpty']?_0x54f188:_0x4e2da8;_0x5c2818&&_0x5c2818['type']==_0xb7cd3e+'EmptyContainer'&&_0x5c2818['element']['name']==_0xa091fa['name']?_0x5c2818['quantity']++:_0x3da9ca['push']({'type':_0xb7cd3e+'EmptyContainer','element':_0xa091fa,'quantity':0x1});}else _0x3da9ca['push']({'type':_0xb7cd3e+'Container','element':_0x4e2da8});}}}}}['_resolveDescriptionItems'](_0x15609c){const _0x1bb588=this['_locale'],_0x386edc=[],_0x55014c=[],_0x11b05c=[];for(const _0x5919fe of _0x15609c)switch(_0x5919fe['type']){case'text':if(_0x5919fe['add']=_0x5919fe['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5919fe['remove']=_0x5919fe['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5919fe['add']&&''!=_0x5919fe['remove']){_0x386edc['push']({'type':'replace','content':o(_0x1bb588,'REPLACE_TEXT',['\x22'+_0x5919fe['remove']+'\x22','\x22'+_0x5919fe['add']+'\x22'])});continue;}if(null!=_0x5919fe['add']['match'](/^ +$/)){_0x386edc['push']({'type':'insertion','content':o(_0x1bb588,'*Insert:*\x20%0',o(_0x1bb588,'ELEMENT_SPACE',_0x5919fe['add']['length']))});continue;}if(null!=_0x5919fe['remove']['match'](/^ +$/)){_0x386edc['push']({'type':'deletion','content':o(_0x1bb588,'*Remove:*\x20%0',o(_0x1bb588,'ELEMENT_SPACE',_0x5919fe['remove']['length']))});continue;}if(''!=_0x5919fe['add']){_0x386edc['push']({'type':'insertion','content':o(_0x1bb588,'*Insert:*\x20%0','\x22'+_0x5919fe['add']+'\x22')});continue;}_0x386edc['push']({'type':'deletion','content':o(_0x1bb588,'*Remove:*\x20%0','\x22'+_0x5919fe['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x386edc['push']({'type':'insertion','content':o(_0x1bb588,'*Insert:*\x20%0',this['getItemLabel'](_0x5919fe['element'],_0x5919fe['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x386edc['push']({'type':'deletion','content':o(_0x1bb588,'*Remove:*\x20%0',this['getItemLabel'](_0x5919fe['element'],_0x5919fe['quantity']))});continue;case'addContainer':_0x386edc['push']({'type':'insertion','content':o(_0x1bb588,'*Split:*\x20%0',this['getItemLabel'](_0x5919fe['element'],_0x5919fe['quantity']))});continue;case'removeContainer':_0x386edc['push']({'type':'deletion','content':o(_0x1bb588,'*Merge:*\x20%0',this['getItemLabel'](_0x5919fe['element'],_0x5919fe['quantity']))});continue;case'addFormat':_0x55014c['push'](_0x5919fe['key']);continue;case'removeFormat':_0x11b05c['push'](_0x5919fe['key']);continue;default:_0x386edc['push'](_0x5919fe);}if(_0x55014c['length']){const _0x2d89e8=_0x55014c['map'](_0x322d73=>this['_attributeLabels']['has'](_0x322d73)?this['_attributeLabels']['get'](_0x322d73):_0x322d73)['join'](',\x20');_0x386edc['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2d89e8)});}if(_0x11b05c['length']){const _0x1a63ba=_0x11b05c['map'](_0x4d4753=>this['_attributeLabels']['has'](_0x4d4753)?this['_attributeLabels']['get'](_0x4d4753):_0x4d4753)['join'](',\x20');_0x386edc['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1a63ba)});}return _0x386edc;}['_handleCustomCallbackDescription'](_0x5e47c6){for(const _0x255e9c of this['_customCallbacks']){const _0xa3e46a=_0x255e9c(_0x5e47c6);if(_0xa3e46a&&'type'in _0xa3e46a)return _0xa3e46a;}}['_handleAttributeSuggestionDescription'](_0x3cc8aa,_0x225790){const _0x691d64=_0x225790['data'],_0x35c8e9=void 0x0===_0x691d64['newValue']?'removeFormat':'addFormat';_0x3cc8aa['push']({'type':_0x35c8e9,'key':_0x691d64['key']});}['_handleRenameSuggestionDescription'](_0x4f48c7,_0x569e58){_0x4f48c7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x569e58['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x12552d,_0x10da35,_0x3fd584){if(this['_addDescriptionItems'](_0x12552d,_0x10da35),_0x3fd584&&_0x3fd584['getFirstRange']()&&!_0x10da35['getFirstRange']()['end']['isEqual'](_0x3fd584['getFirstRange']()['start'])){const _0x557f21=_0x12552d[_0x12552d['length']-0x1],_0x24c23e='insertion'==_0x10da35['type']?'add':'remove';_0x557f21&&'text'==_0x557f21['type']&&(_0x557f21[_0x24c23e]+='\x0a');}}}class V extends _0x3a5fae{['afterInit'](){const _0x135a52=this['editor'],_0x1448f9=_0x135a52['plugins']['get']('TrackChangesEditing');_0x135a52['commands']['get']('showAIAssistant')&&_0x1448f9['enableCommand']('showAIAssistant');}}class U extends _0x3a5fae{['afterInit'](){const _0x223100=this['editor'],_0x3246c6=_0x223100['locale'];if(!_0x223100['plugins']['has']('AlignmentEditing'))return;const _0x4e1fc0=_0x223100['plugins']['get']('TrackChangesEditing');_0x4e1fc0['enableDefaultAttributesIntegration']('alignment'),_0x4e1fc0['registerBlockAttribute']('alignment'),_0x4e1fc0['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3246c6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x539424=this['editor'],_0x36b888=_0x539424['locale'];_0x539424['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39f5e4=>{if('formatBlock'!=_0x39f5e4['type'])return;const {data:_0x13179f}=_0x39f5e4;if(_0x13179f&&'alignment'==_0x13179f['commandName']){const _0x52b4cc=_0x13179f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x36b888,'*Format:*\x20%0',function(_0x5012f4){switch(_0x5012f4){case'left':return o(_0x36b888,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x36b888,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x36b888,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x36b888,'FORMAT_JUSTIFY_TEXT');}}(_0x52b4cc))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3a5fae{['afterInit'](){const _0x41cccc=this['editor'],_0x614fd2=_0x41cccc['plugins']['get']('TrackChangesEditing'),_0x263cb9=_0x41cccc['locale'];for(const _0x29672e of ti){if(!_0x41cccc['plugins']['has'](_0x29672e))continue;const _0x7b2f77=_0x29672e['slice'](0x0,-0x7)['toLowerCase'](),_0x5a9417='FORMAT_'+_0x7b2f77['toUpperCase']();_0x614fd2['enableDefaultAttributesIntegration'](_0x7b2f77),_0x614fd2['registerInlineAttribute'](_0x7b2f77),_0x614fd2['descriptionFactory']['registerAttributeLabel'](_0x7b2f77,o(_0x263cb9,_0x5a9417));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c7d14=this['editor'],_0x52f0dd=_0x2c7d14['locale'],_0x5bdb71=_0x2c7d14['plugins']['get']('TrackChangesEditing');function _0x587e82(_0x7cfad3,_0x579fc2){_0x5bdb71['descriptionFactory']['registerDescriptionCallback'](_0x33fa38=>{if('formatInline'!=_0x33fa38['type'])return;const {data:_0x3dd911}=_0x33fa38;return _0x3dd911&&_0x3dd911['commandName']===_0x7cfad3?_0x3dd911['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52f0dd,'*Format:*\x20%0',_0x579fc2)}:{'type':'format','content':o(_0x52f0dd,'*Remove\x20format:*\x20%0',_0x579fc2)}:void 0x0;});}_0x587e82('bold',o(_0x52f0dd,'FORMAT_BOLD')),_0x587e82('italic',o(_0x52f0dd,'FORMAT_ITALIC')),_0x587e82('underline',o(_0x52f0dd,'FORMAT_UNDERLINE')),_0x587e82('code',o(_0x52f0dd,'FORMAT_CODE')),_0x587e82('strikethrough',o(_0x52f0dd,'FORMAT_STRIKETHROUGH')),_0x587e82('subscript',o(_0x52f0dd,'FORMAT_SUBSCRIPT')),_0x587e82('superscript',o(_0x52f0dd,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3a5fae{['afterInit'](){const _0x47094b=this['editor'],_0x96dd9b=_0x47094b['locale'];if(!_0x47094b['plugins']['has']('BlockQuoteEditing'))return;const _0x5cfdfa=_0x47094b['plugins']['get']('TrackChangesEditing'),_0x2d1ff5=this['editor']['commands']['get']('blockQuote');_0x5cfdfa['enableCommand']('blockQuote',(_0x315856,_0x4533cf={})=>{const _0xe9097b=this['editor']['model']['document']['selection'],_0x245657=_0x4533cf&&void 0x0!==_0x4533cf['forceValue']?_0x4533cf['forceValue']:!_0x2d1ff5['value'];let _0x27e16f=[];if(_0x245657){const _0x137223=Array['from'](_0xe9097b['getSelectedBlocks']())['filter'](_0x140924=>oo(_0x140924)||function(_0x1b424d,_0x3b5831){const _0x2e902f=_0x3b5831['checkChild'](_0x1b424d['parent'],'blockQuote'),_0x2e72d0=_0x3b5831['checkChild'](['$root','blockQuote'],_0x1b424d);return _0x2e902f&&_0x2e72d0;}(_0x140924,this['editor']['model']['schema']));_0x27e16f=to(_0x137223,_0x47094b['model']);}else{const _0x3278cd=Array['from'](_0xe9097b['getSelectedBlocks']())['filter'](_0x19ced6=>oo(_0x19ced6));_0x27e16f=to(_0x3278cd,_0x47094b['model']);}_0x47094b['model']['change'](()=>{for(const _0xb71663 of _0x27e16f)_0x5cfdfa['markBlockFormat'](_0xb71663,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x245657}]});});}),_0x5cfdfa['descriptionFactory']['registerDescriptionCallback'](_0x492f4b=>{const {data:_0x4352a2}=_0x492f4b;if(_0x4352a2&&'blockQuote'==_0x4352a2['commandName']){const _0x359f5a=o(_0x96dd9b,'ELEMENT_BLOCK_QUOTE');return _0x4352a2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x96dd9b,'*Set\x20format:*\x20%0',_0x359f5a)}:{'type':'format','content':o(_0x96dd9b,'*Remove\x20format:*\x20%0',_0x359f5a)};}});}}function oo(_0x11c747){return'blockQuote'==_0x11c747['parent']['name'];}class L extends _0x3a5fae{['afterInit'](){const _0x57c7cb=this['editor'];_0x57c7cb['plugins']['has']('CaseChange')&&(_0x57c7cb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x57c7cb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x57c7cb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3a5fae{['afterInit'](){const _0x1eb49d=this['editor'];_0x1eb49d['commands']['get']('ckbox')&&_0x1eb49d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x3a5fae{['afterInit'](){const _0x37b2f8=this['editor'];if(!_0x37b2f8['plugins']['has']('CodeBlock'))return;const _0x2b527f=_0x37b2f8['plugins']['get']('TrackChangesEditing'),_0x39c2f2=_0x37b2f8['locale'],_0x30bcbe=_0x37b2f8['config']['get']('codeBlock')['languages'],_0x56b3bc=_0x37b2f8['commands']['get']('codeBlock');_0x2b527f['enableCommand']('indentCodeBlock'),_0x2b527f['enableCommand']('outdentCodeBlock'),_0x2b527f['enableCommand']('codeBlock',(_0x47393b,_0x52cbc7={})=>{const _0x303ae7=_0x37b2f8['model'],_0x4ee5b8=_0x37b2f8['model']['document']['selection'],_0x5be806=_0x52cbc7&&void 0x0!==_0x52cbc7['forceValue']?_0x52cbc7['forceValue']:!_0x56b3bc['value'];let _0xada483;_0x52cbc7['language']||(_0x52cbc7['language']=_0x30bcbe[0x0]['language']),_0xada483=_0x5be806?Array['from'](_0x4ee5b8['getSelectedBlocks']())['filter'](_0x43be2e=>eo(_0x43be2e)||function(_0x25cd06,_0x489096){if(_0x25cd06['is']('rootElement')||_0x489096['isLimit'](_0x25cd06))return!0x1;return _0x489096['checkChild'](_0x25cd06['parent'],'codeBlock');}(_0x43be2e,_0x303ae7['schema'])):Array['from'](_0x4ee5b8['getSelectedBlocks']())['filter'](_0x4627fb=>eo(_0x4627fb));const _0x45390c=to(_0xada483,_0x303ae7);_0x303ae7['change'](()=>{for(const _0x2daf78 of _0x45390c)_0x2b527f['markBlockFormat'](_0x2daf78,{'commandName':'codeBlock','commandParams':[{..._0x52cbc7,'forceValue':_0x5be806}],'formatGroupId':'blockName'});});}),(_0x2b527f['descriptionFactory']['registerElementLabel']('codeBlock',_0x3fe81a=>o(_0x39c2f2,'ELEMENT_CODE_BLOCK',_0x3fe81a)),_0x2b527f['descriptionFactory']['registerDescriptionCallback'](_0x3c65cd=>{if('formatBlock'!=_0x3c65cd['type'])return;const _0x3ed993=_0x39c2f2['t'],{data:_0x3c727b}=_0x3c65cd;if(!_0x3c727b||'codeBlock'!=_0x3c727b['commandName'])return;const _0x3b72c2=_0x3c727b['commandParams'][0x0]['language'],_0xc8d969=_0x3ed993(_0x30bcbe['find'](_0x4ab810=>_0x4ab810['language']===_0x3b72c2)['label'])['toLowerCase']();return _0x3c727b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39c2f2,'*Set\x20format:*\x20%0',o(_0x39c2f2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xc8d969+')')}:{'type':'format','content':o(_0x39c2f2,'*Remove\x20format:*\x20%0',o(_0x39c2f2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4a66f4){return'codeBlock'==_0x4a66f4['name'];}class q extends _0x3a5fae{['afterInit'](){const _0x379815=this['editor'];if(!_0x379815['plugins']['has']('CommentsEditing'))return;_0x379815['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4d54ac,_0x951893,_0x10b5e1){const _0x2ce4ac=[];for(const _0x4d8600 of _0x951893['getItems']())_0x4d8600['hasAttribute'](_0x4d54ac)&&_0x2ce4ac['push'](_0x10b5e1['createRangeOn'](_0x4d8600));return _0x2ce4ac;}function _e(_0xbbd74e,_0x231609,{showActiveMarker:_0x5982b1=!0x0}={}){const _0x308bd1=_0xbbd74e['plugins']['get']('TrackChangesEditing');return(_0x212111,_0x32fdfa,_0x3a341e)=>{if(!_0x3a341e['consumable']['test'](_0x32fdfa['markerRange'],_0x212111['name']))return;const _0x1c9ea5=_0x32fdfa['markerRange']['getWalker'](),_0x214f9a=_0x32fdfa['markerRange']['start'],_0x2a2128=_0xbbd74e['model']['schema'];let _0x36e2f0=null,_0x1c9fad=null,_0x534d74=!0x1,_0x236084=!0x1;for(const _0x2d3588 of _0x1c9ea5){const _0x5e376b=_0x2d3588['item'];_0x534d74=_0x534d74||_0x2a2128['isContent'](_0x5e376b);const _0x4ee2d2=_0x3a341e['mapper']['toViewElement'](_0x5e376b);if(_0x4ee2d2&&_0x4ee2d2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d3588['type']&&(_0x2a2128['isBlock'](_0x5e376b)&&!_0x2a2128['isLimit'](_0x5e376b)&&(_0x5e376b['nextSibling']||_0x214f9a['isAtEnd']?_0x36e2f0&&_0x36e2f0['parent']==_0x5e376b||(_0x36e2f0=_0x5e376b,_0x282c36(_0x2d3588['previousPosition']),_0x236084=!0x0):_0x1c9fad=_0x1c9fad||_0x2d3588['previousPosition']));}function _0x282c36(_0x5496b1){const {authorId:_0x56c598}=_0x308bd1['_splitMarkerName'](_0x32fdfa['markerName']),_0x50a204=_0x3a341e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x231609,'data-author-id':_0x56c598}),_0x3240b0=_0x3a341e['mapper']['toViewPosition'](_0x5496b1);_0x5982b1&&_0x308bd1['activeMarkers']['includes'](_0x32fdfa['markerName'])&&_0x3a341e['writer']['addClass']('ck-suggestion-marker--active',_0x50a204),_0x3a341e['writer']['insert'](_0x3240b0,_0x50a204),_0x3a341e['mapper']['bindElementToMarker'](_0x50a204,_0x32fdfa['markerName']);}_0x534d74||_0x236084||!_0x1c9fad||_0x282c36(_0x1c9fad);};}class z extends _0x3a5fae{static get['requires'](){return[_0xb126fe];}['init'](){const _0x1c3b89=this['editor'],_0x2c1020=_0x1c3b89['plugins']['get']('TrackChangesEditing');_0x2c1020['enableCommand']('delete');const _0xc178f1=_0x1c3b89['commands']['get']('deleteForward');_0x2c1020['enableCommand']('deleteForward',(_0x1cd334,_0xe4e08={})=>{const _0x47ec10=_0x1c3b89['model']['createSelection'](_0x1c3b89['model']['document']['selection']);_0x47ec10['isCollapsed']&&_0x1c3b89['model']['modifySelection'](_0x47ec10,{'direction':'forward','unit':_0xe4e08['unit']});const _0x433dbe=_0x47ec10['getFirstRange'](),_0x3b68c0=_0x3a302['fromRange'](_0x433dbe);let _0x314d79;_0x1cd334(_0xe4e08),_0x314d79='$graveyard'==_0x3b68c0['root']['rootName']?_0x1c3b89['model']['createRange'](_0x433dbe['start']):_0x1c3b89['model']['createRange'](_0x3b68c0['start'],_0x3b68c0['end']),_0x3b68c0['detach'](),_0x1c3b89['model']['enqueueChange'](_0xc178f1['buffer']['batch'],_0x37bf60=>{_0xc178f1['buffer']['lock'](),_0x37bf60['setSelection'](_0x37bf60['createRange'](_0x314d79['end'])),_0xc178f1['buffer']['unlock']();});}),_0x1c3b89['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1c3b89,'merge'),{'priority':'high'}),_0x1c3b89['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1c28e2,_0x127898,_0x2bf2e8)=>{_0x2bf2e8['options']['showSuggestionHighlights']&&_e(_0x1c3b89,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1c28e2,_0x127898,_0x2bf2e8);},{'priority':'high'}),_0x1c3b89['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x6ca130,_0x42fb59,_0x507eba)=>{const _0x16eea8=_0x507eba['mapper']['markerNameToElements'](_0x42fb59['markerName']);if(_0x16eea8){for(const _0x5946e8 of _0x16eea8)_0x5946e8['is']('uiElement')&&(_0x507eba['mapper']['unbindElementFromMarkerName'](_0x5946e8,_0x42fb59['markerName']),_0x507eba['writer']['remove'](_0x5946e8));}},{'priority':'high'});}}class K extends _0x3a5fae{['afterInit'](){const _0x3c01aa=this['editor'];if(!_0x3c01aa['plugins']['has']('ListEditing'))return;const _0x1dccce=_0x3c01aa['locale'],_0x429d6=_0x3c01aa['plugins']['get']('TrackChangesEditing'),_0x14adfe=_0x3c01aa['plugins']['has']('TodoListEditing'),_0x2febc6=!!_0x3c01aa['config']['get']('list.multiBlock');function _0x2160d8(_0x2b80a9){return{'type':'format','content':''+o(_0x1dccce,'*Set\x20format:*\x20%0',_0x2b80a9)};}function _0x37ebff(_0x5b6ed1){return{'type':'format','content':''+o(_0x1dccce,'*Remove\x20format:*\x20%0',_0x5b6ed1)};}_0x429d6['enableDefaultAttributesIntegration']('numberedList'),_0x429d6['enableDefaultAttributesIntegration']('bulletedList'),_0x429d6['enableDefaultAttributesIntegration']('customNumberedList'),_0x429d6['enableDefaultAttributesIntegration']('customBulletedList'),_0x429d6['enableDefaultAttributesIntegration']('indentList'),_0x429d6['enableDefaultAttributesIntegration']('outdentList'),_0x429d6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x429d6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x429d6['registerBlockAttribute']('listItemId'),_0x429d6['registerBlockAttribute']('listType'),_0x429d6['registerBlockAttribute']('listIndent'),_0x2febc6&&(_0x429d6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x429d6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x14adfe&&(_0x429d6['enableDefaultAttributesIntegration']('todoList'),_0x429d6['enableDefaultAttributesIntegration']('checkTodoList'),_0x429d6['registerBlockAttribute']('todoListChecked'),_0x429d6['descriptionFactory']['registerDescriptionCallback'](_0x1a0b73=>{const {data:_0x33be9d}=_0x1a0b73;if(_0x33be9d&&'todoListChecked'==_0x33be9d['key'])return{'type':'format','content':_0x33be9d['newValue']?o(_0x1dccce,'*Check\x20item*'):o(_0x1dccce,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x46a4fa=>{if(_0x46a4fa['batch']['isUndo'])return!0x1;let _0x4a59f2=!0x1;const _0x4b0d8f=_0x429d6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c89ef=>'todoListChecked'===_0x429d6['_getAttributeKey'](_0x2c89ef));for(const _0x128bd2 of _0x4b0d8f){'todo'!=_0x128bd2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x429d6['_findSuggestions'](_0x128bd2['getFirstRange'](),'attribute')['find'](_0x3e611d=>'listType'===_0x429d6['_getAttributeKey'](_0x3e611d['suggestion']))||(_0x46a4fa['removeMarker'](_0x128bd2['getFirstMarker']()),_0x4a59f2=!0x0));}return _0x4a59f2;})),_0x429d6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1dccce,'FORMAT_INDENT'));const _0xd8b53d={'type':'format','content':''};_0x429d6['descriptionFactory']['registerDescriptionCallback'](_0x3144e0=>{const {data:_0x3614b7}=_0x3144e0;if(!_0x3614b7||'listType'!=_0x3614b7['key'])return;let _0x196a46=_0x3144e0['head'];for(;_0x196a46;){if(_0x196a46['data']&&(('listStyle'==_0x196a46['data']['key']||'listMarkerStyle'==_0x196a46['data']['key'])&&(_0x196a46['data']['newValue']&&'default'!=_0x196a46['data']['newValue']||'default'!=_0x196a46['data']['oldValue']&&!_0x3614b7['newValue'])||!_0x2febc6&&_0x196a46['data']['key']==m))return _0xd8b53d;_0x196a46=_0x196a46['next'];}if(null==_0x3614b7['newValue'])switch(_0x3614b7['oldValue']){case'bulleted':return _0x37ebff(o(_0x1dccce,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x37ebff(o(_0x1dccce,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x37ebff(o(_0x1dccce,'ELEMENT_TODO_LIST'));}switch(_0x3614b7['newValue']){case'bulleted':return _0x2160d8(o(_0x1dccce,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2160d8(o(_0x1dccce,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2160d8(o(_0x1dccce,'ELEMENT_TODO_LIST'));}}),_0x429d6['descriptionFactory']['registerDescriptionCallback'](_0x40c575=>{const {data:_0x2ae27f}=_0x40c575;if(_0x2ae27f&&'listIndent'==_0x2ae27f['key'])return null==_0x2ae27f['newValue']||null==_0x2ae27f['oldValue']&&0x0==_0x2ae27f['newValue']?_0xd8b53d:void 0x0;}),_0x429d6['descriptionFactory']['registerDescriptionCallback'](_0x166d33=>{if('attribute'!=_0x166d33['type'])return;const {data:_0x2a41ec}=_0x166d33;if(!_0x2a41ec||'listItemId'!=_0x2a41ec['key'])return;const _0x4dc7d5=Ee(_0x166d33);return'newValue'==_0x4dc7d5?{'type':'format','content':o(_0x1dccce,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4dc7d5?{'type':'format','content':o(_0x1dccce,'*Split:*\x20list\x20item')}:_0xd8b53d;}),_0x3c01aa['model']['document']['registerPostFixer'](_0x49716f=>this['listItemIdFixer'](_0x49716f)),_0x3c01aa['model']['document']['registerPostFixer'](_0x4c5c73=>this['noTrackChangesFixer'](_0x4c5c73)),_0x3c01aa['model']['document']['on']('change:data',(_0x1f6fb3,_0x3643af)=>{if(_0x3643af['isUndo']||!_0x3643af['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x550079){if(_0x550079['batch']['isUndo']||!_0x550079['batch']['isLocal'])return!0x1;let _0x3b0d58=!0x1;const _0x41deca=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45384b=>_0x45384b['data']&&'listItemId'==_0x45384b['data']['key'])['filter'](_0x141cc8=>_0x141cc8['data']['newValue']&&_0x141cc8['data']['oldValue']);for(const _0x78e51d of _0x41deca)Ee(_0x78e51d)||(_0x550079['removeMarker'](_0x78e51d['getFirstMarker']()),_0x3b0d58=!0x0);return _0x3b0d58;}['noTrackChangesFixer'](_0x5678a5){if(_0x5678a5['batch']['isUndo']||!_0x5678a5['batch']['isLocal'])return!0x1;const _0x33c1fc=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x33c1fc['trackChangesCommand']['value'])return!0x1;let _0x21f02a=!0x1;const _0x2664dd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1768ae=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x593175=>'attribute'==_0x593175['type'])['filter'](_0x1bde00=>_0x2664dd['includes'](_0x1bde00['attributeKey']));if(0x0==_0x1768ae['length'])return _0x21f02a;for(const _0x2f024d of _0x1768ae){const _0x150dc3=_0x33c1fc['_findSuggestions'](_0x2f024d['range'],'attribute')['filter'](_0x238ff8=>!_0x238ff8['meta']['isNextTo'])['map'](_0x5c3f57=>_0x5c3f57['suggestion'])['filter'](_0x3bcf36=>{const _0x4ec361=_0x33c1fc['_getAttributeKey'](_0x3bcf36);return _0x2664dd['includes'](_0x4ec361);});if(_0x150dc3['length']){for(const _0x48d2ae of _0x150dc3)_0x5678a5['removeMarker'](_0x48d2ae['getFirstMarker']());_0x21f02a=!0x0;}}return _0x21f02a;}['assureChains'](){const _0x40d53d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x583607=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xdd5f51;const _0xb84bdc=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x598c0f=>{if(_0x598c0f['data']['oldRange']||!_0x598c0f['data']['newRange'])return null;if(!_0x598c0f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x19ee02}=_0x40d53d['_splitMarkerName'](_0x598c0f['name']);if(!_0x40d53d['hasSuggestion'](_0x19ee02))return null;const _0x38535c=_0x40d53d['getSuggestion'](_0x19ee02);return _0x583607['includes'](_0x38535c['data']['key']);})['map'](_0x19c968=>{const {id:_0x382b3a}=_0x40d53d['_splitMarkerName'](_0x19c968['name']),_0xe7b7f4=_0x40d53d['getSuggestion'](_0x382b3a);return _0xdd5f51=_0xe7b7f4['attributes']['groupId'],_0xe7b7f4['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xb84bdc['size'])return;const _0x3190dd=_0x40d53d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23d87c=>'attribute'==_0x23d87c['type']&&_0x23d87c['data']&&_0x583607['includes'](_0x23d87c['data']['key'])&&_0x23d87c['attributes']['groupId']!=_0xdd5f51)['map'](_0x5642eb=>({'listItem':_0x5642eb['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5642eb['attributes']['groupId']})),_0x20d1be=new Set();for(const {groupId:_0x4b2db2,listItem:_0xaee5be}of _0x3190dd)_0xb84bdc['has'](_0xaee5be)&&_0x20d1be['add'](_0x4b2db2);for(const _0x56cbe7 of _0x40d53d['getSuggestions']())_0x20d1be['has'](_0x56cbe7['attributes']['groupId'])&&_0x56cbe7['setAttribute']('groupId',_0xdd5f51);}['_supportLegacySuggestions'](){const _0x16b680=this['editor'],_0x1d5447=_0x16b680['locale'],_0x78f1e6=_0x16b680['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x78f1e6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x145722,_0x4a2e2f){const _0x53f497=[];for(let _0x1ef142 of _0x145722)_0x1ef142['start']['nodeAfter']===_0x1ef142['end']['parent']&&(_0x1ef142=_0x16b680['model']['createRange'](_0x16b680['model']['createPositionAt'](_0x1ef142['start']['nodeAfter'],0x0))),_0x53f497['push'](_0x1ef142);_0x16b680['model']['change'](_0x1ab61c=>{const _0x5b5e48=_0x16b680['model']['document']['selection'],_0x26ff09=Array['from'](_0x5b5e48['getRanges']())['map'](_0x4c4450=>_0x3a302['fromRange'](_0x4c4450));_0x1ab61c['setSelection'](_0x53f497),_0x16b680['commands']['get'](_0x4a2e2f['commandName'])['refresh'](),_0x4a2e2f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x16b680['execute'](_0x4a2e2f['commandName'],..._0x4a2e2f['commandParams']),_0x1ab61c['setSelection'](_0x26ff09);for(const _0x1883e0 of _0x26ff09)_0x1883e0['detach']();});}),_0x78f1e6['descriptionFactory']['registerElementLabel'](function(_0x6180d3){const _0x1a9500=!_0x16b680['model']['schema']['isObject'](_0x6180d3),_0x5d6e54=_0x6180d3['previousSibling'],_0x442597=_0x6180d3['nextSibling'],_0x3e02d4=_0x6180d3['getAttribute']('listItemId'),_0x33f6a6=!_0x5d6e54||_0x5d6e54['getAttribute']('listItemId')!==_0x3e02d4,_0x3e75c3=!_0x442597||_0x442597['getAttribute']('listItemId')!==_0x3e02d4;return _0x1a9500&&Boolean(_0x3e02d4)&&_0x33f6a6&&_0x3e75c3;},_0x1b3125=>o(_0x1d5447,'ELEMENT_LIST_ITEM',_0x1b3125));}['_registerLegacyDescription'](){const _0x195ddd=this['editor'],_0x47ca02=_0x195ddd['locale'];function _0x2de826(_0xbb2a1c){const _0xf2435d=_0x195ddd['commands']['get']('bulletedList')['value'],_0x15b3f8=_0x195ddd['commands']['get']('numberedList')['value'];return'numberedList'===_0xbb2a1c?_0xf2435d:_0x15b3f8;}_0x195ddd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1243bd){if('formatBlock'!=_0x1243bd['type'])return;const {data:_0x58fe15}=_0x1243bd;if(!_0x58fe15)return;let _0x11cf09,_0x161b1c,_0x4b456f,_0x2982cb;switch(_0x58fe15['commandName']){case'bulletedList':_0x4b456f=_0x58fe15['commandParams'][0x0]['forceValue'],_0x2982cb=_0x2de826(_0x58fe15['commandName']),_0x11cf09=_0x4b456f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2982cb&&_0x195ddd['config']['get']('list.multiBlock')||(_0x11cf09='*Change\x20to:*\x20%0'),_0x161b1c={'type':'format','content':o(_0x47ca02,_0x11cf09,o(_0x47ca02,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4b456f=_0x58fe15['commandParams'][0x0]['forceValue'],_0x2982cb=_0x2de826(_0x58fe15['commandName']),_0x11cf09=_0x4b456f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2982cb&&_0x195ddd['config']['get']('list.multiBlock')||(_0x11cf09='*Change\x20to:*\x20%0'),_0x161b1c={'type':'format','content':o(_0x47ca02,_0x11cf09,o(_0x47ca02,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x11cf09='*Indent:*\x20%0',_0x161b1c={'type':'format','content':o(_0x47ca02,_0x11cf09,o(_0x47ca02,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x11cf09=function(_0x1429d5){const _0x3a411d=_0x1429d5['getFirstRange']();let _0x5df064=_0x3a411d['start']['nodeAfter'];for(;_0x5df064&&_0x3a411d['containsItem'](_0x5df064);){if(_0x5df064['getAttribute']('listIndent')>0x0)return!0x1;_0x5df064=_0x5df064['nextSibling'];}return!0x0;}(_0x1243bd)?o(_0x47ca02,'*Format:*\x20remove\x20from\x20%0',o(_0x47ca02,function(_0x5c1622){return'ELEMENT_'+_0x5c1622['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1243bd))):o(_0x47ca02,'*Outdent:*\x20%0',o(_0x47ca02,'ELEMENT_LIST_ITEM')),_0x161b1c={'type':'format','content':_0x11cf09};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x58fe15['multipleBlocks']&&(_0x11cf09='*Merge:*\x20%0',_0x161b1c={'type':'deletion','content':o(_0x47ca02,_0x11cf09,o(_0x47ca02,'ELEMENT_LIST_ITEM'))});}return _0x161b1c;});}}function Ee(_0x1ca68c){let _0x207cf7=_0x1ca68c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x207cf7;){const _0x1bd830=_0x207cf7['getAttribute']('listItemId');if(!_0x1bd830)return!0x1;if(_0x1bd830==_0x1ca68c['data']['newValue'])return'newValue';if(_0x1bd830==_0x1ca68c['data']['oldValue'])return'oldValue';_0x207cf7=_0x207cf7['previousSibling'];}return!0x1;}class pe extends _0x3a5fae{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xdf1c7b=this['editor']['config']['get']('list.properties'),_0x3e3a51=this['editor']['plugins']['get']('TrackChangesEditing');_0xdf1c7b['styles']&&(_0x3e3a51['enableDefaultAttributesIntegration']('listStyle'),_0x3e3a51['registerBlockAttribute']('listStyle')),_0xdf1c7b['reversed']&&(_0x3e3a51['enableDefaultAttributesIntegration']('listReversed'),_0x3e3a51['registerBlockAttribute']('listReversed')),_0xdf1c7b['startIndex']&&(_0x3e3a51['enableDefaultAttributesIntegration']('listStart'),_0x3e3a51['registerBlockAttribute']('listStart'));const _0x25b0b5={'type':'format','content':''};_0x3e3a51['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x20fd4a=this['editor']['locale'];_0x3e3a51['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x20fd4a,'FORMAT_LIST_REVERSED')),_0x3e3a51['descriptionFactory']['registerDescriptionCallback'](_0x4fb590=>{const {data:_0x109e74}=_0x4fb590;if(_0x109e74&&'listReversed'==_0x109e74['key'])return null==_0x109e74['newValue']||0x0==_0x109e74['newValue']&&null==_0x109e74['oldValue']?_0x25b0b5:void 0x0;}),_0x3e3a51['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x20fd4a,'FORMAT_LIST_START')),_0x3e3a51['descriptionFactory']['registerDescriptionCallback'](_0x4a347=>{const {data:_0x2929e3}=_0x4a347;if(_0x2929e3&&'listStart'==_0x2929e3['key'])return null==_0x2929e3['newValue']||0x1==_0x2929e3['newValue']&&null==_0x2929e3['oldValue']?_0x25b0b5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4230bf=>{if(_0x4230bf['batch']['isUndo'])return!0x1;let _0x506d6b=!0x1;const _0x8480af=_0x3e3a51['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x312567=>{const _0x1a1cde=_0x3e3a51['_getAttributeKey'](_0x312567);return'listStart'==_0x1a1cde||'listReversed'==_0x1a1cde;});for(const _0x4a01a4 of _0x8480af){const _0x39c0ac=_0x4a01a4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x39c0ac||'customNumbered'==_0x39c0ac)continue;_0x3e3a51['_findSuggestions'](_0x4a01a4['getFirstRange'](),'attribute')['find'](_0x34e581=>'listType'==_0x3e3a51['_getAttributeKey'](_0x34e581['suggestion']))||(_0x4230bf['removeMarker'](_0x4a01a4['getFirstMarker']()),_0x506d6b=!0x0);}return _0x506d6b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1f5eeb){const _0x29e7db=this['editor']['locale'],{data:_0x411fff}=_0x1f5eeb,_0x562fec={'type':'format','content':''};if(!_0x411fff||'listStyle'!=_0x411fff['key'])return;if(!_0x411fff['oldValue'])return'default'==_0x411fff['newValue']?_0x562fec:{'type':'format','content':''+o(_0x29e7db,'*Set\x20format:*\x20%0',o(_0x29e7db,this['_getTranslationKeyForListStyle'](_0x411fff['newValue'])))};if(!_0x411fff['newValue']){if('default'==_0x411fff['oldValue'])return _0x562fec;let _0x1b9215=_0x1f5eeb['head'];for(;_0x1b9215;){if(_0x1b9215['data']&&'listType'==_0x1b9215['data']['key']&&_0x1b9215['data']['newValue'])return _0x562fec;_0x1b9215=_0x1b9215['next'];}return{'type':'format','content':''+o(_0x29e7db,'*Remove\x20format:*\x20%0',o(_0x29e7db,this['_getTranslationKeyForListStyle'](_0x411fff['oldValue'])))};}if('default'!=_0x411fff['newValue'])return{'type':'format','content':''+o(_0x29e7db,'*Set\x20format:*\x20%0',o(_0x29e7db,this['_getTranslationKeyForListStyle'](_0x411fff['newValue'])))};let _0x434bfc=_0x1f5eeb['head'];for(;_0x434bfc;){if(_0x434bfc['data']&&'listType'==_0x434bfc['data']['key']&&_0x434bfc['data']['newValue']&&_0x434bfc['data']['oldValue'])return _0x562fec;_0x434bfc=_0x434bfc['next'];}return{'type':'format','content':o(_0x29e7db,'*Set\x20format:*\x20%0',o(_0x29e7db,'ELEMENT_'+_0x1f5eeb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3df450=this['editor'],_0x32cca9=_0x3df450['locale'];_0x3df450['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2a00=>{if('formatBlock'!=_0x1b2a00['type'])return;const {data:_0xd91ec3}=_0x1b2a00;if(!_0xd91ec3)return;let _0x26963d,_0x39a54a;switch(_0xd91ec3['commandName']){case'listStyle':_0x26963d='*Change\x20to:*\x20%0',_0x39a54a={'type':'format','content':o(_0x32cca9,_0x26963d,o(_0x32cca9,this['_getTranslationKeyForListStyle'](_0xd91ec3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x26963d=_0xd91ec3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x39a54a={'type':'format','content':o(_0x32cca9,_0x26963d)};break;case'listStart':_0x26963d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x39a54a={'type':'format','content':o(_0x32cca9,_0x26963d,_0xd91ec3['commandParams'][0x0]['startIndex'])};}return _0x39a54a;});}['_getTranslationKeyForListStyle'](_0x26da9b){return'ELEMENT_'+function(_0x2ecba0){if(ye['includes'](_0x2ecba0))return'bulleted';if(Se['includes'](_0x2ecba0))return'numbered';return null;}(_0x26da9b)['toUpperCase']()+'_LIST_'+_0x26da9b['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3a5fae{static get['requires'](){return[_0x851c33];}['init'](){const _0x14d2df=this['editor'],_0x1d7086=_0x14d2df['plugins']['get']('TrackChangesEditing'),_0x14847b=_0x14d2df['commands']['get']('enter');_0x1d7086['enableCommand']('enter',()=>{_0x14d2df['model']['change'](_0x2d9d48=>{const _0x567e25=_0x14d2df['model']['document']['selection'],_0x22b188=_0x567e25['getFirstPosition'](),_0x21acb6=_0x3a302['fromRange'](_0x567e25['getFirstRange']());if(_0x14847b['enterBlock'](_0x2d9d48)){const _0x47dd32=_0x14d2df['model']['createPositionAt'](_0x22b188['parent']['nextSibling'],0x0),_0x21d34b=_0x2d9d48['createRange'](_0x22b188,_0x47dd32);_0x1d7086['markInsertion'](_0x21d34b);}else _0x2d9d48['setSelection'](_0x2d9d48['createRange'](_0x21acb6['end']));_0x21acb6['detach'](),_0x14847b['fire']('afterExecute',{'writer':_0x2d9d48});});}),_0x14d2df['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x14d2df,'split'),{'priority':'high'}),_0x14d2df['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x40af36,_0xb8d2a0,_0x33cf37)=>{const _0x3765eb=_0x33cf37['mapper']['markerNameToElements'](_0xb8d2a0['markerName']);if(_0x3765eb){for(const _0x4813de of _0x3765eb)_0x4813de['hasClass']('ck-suggestion-marker-split')&&(_0x33cf37['mapper']['unbindElementFromMarkerName'](_0x4813de,_0xb8d2a0['markerName']),_0x33cf37['writer']['remove'](_0x4813de));}},{'priority':'high'}),_0x14d2df['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3e8b2,_0x20bbc8,_0x5bb971)=>{_0x5bb971['options']['showSuggestionHighlights']&&_e(_0x14d2df,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3e8b2,_0x20bbc8,_0x5bb971);},{'priority':'high'});}}class X extends _0x3a5fae{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x55d867=this['editor']['plugins']['get']('TrackChangesEditing');_0x55d867['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x55d867['enableCommand']('findNext'),_0x55d867['enableCommand']('findPrevious'),_0x55d867['enableCommand']('replace'),_0x55d867['enableCommand']('replaceAll');}['handleFindCommand'](_0x3c18c1,_0x1dbfdf,_0x95ce81={}){const _0x2d3695=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3c18c1(_0x1e4fb0=>{let _0x195317=('string'==typeof _0x1dbfdf?_0x2d3695['findByTextCallback'](_0x1dbfdf,_0x95ce81):_0x1dbfdf)(_0x1e4fb0);Array['isArray'](_0x195317)&&(_0x195317={'results':_0x195317,'searchText':'string'==typeof _0x1dbfdf?_0x1dbfdf:''});const _0x12937e=_0x195317['results']['filter'](_0x198ff7=>!0x1===this['_isInDeletionRange'](_0x198ff7,_0x1e4fb0['item']));return{..._0x195317,'results':_0x12937e};},_0x95ce81);}['_isInDeletionRange'](_0x152cbf,_0x3dfd7c){const _0x35892f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3dfd7c,_0x152cbf['start']),this['editor']['model']['createPositionAt'](_0x3dfd7c,_0x152cbf['end']));for(const _0x273328 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x35892f['getIntersection'](_0x273328['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 _0x3a5fae{['afterInit'](){const _0x44ddd7=this['editor']['locale'],_0x20a28b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3ce53f,commandName:_0x437dc9}of ro)this['editor']['plugins']['has'](_0x3ce53f)&&(_0x20a28b['enableDefaultAttributesIntegration'](_0x437dc9),_0x20a28b['registerInlineAttribute'](_0x437dc9));_0x20a28b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x44ddd7,'FORMAT_FONT_SIZE')),_0x20a28b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x44ddd7,'FORMAT_FONT_FAMILY')),_0x20a28b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x44ddd7,'FORMAT_FONT_COLOR')),_0x20a28b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x44ddd7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e825c=this['editor'],_0x348a85=_0x5e825c['locale'];_0x5e825c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33bdeb=>{const _0x1cf62f=_0x348a85['t'];if('formatInline'!=_0x33bdeb['type'])return;const {data:_0x3c3ae1}=_0x33bdeb;if(null!=_0x3c3ae1){if('fontSize'==_0x3c3ae1['commandName']){const _0x5498c2=_0x3c3ae1['commandParams'][0x0]['value'];if(_0x5498c2){const _0x3923b7=_0x1cf62f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x43dc42=>_0x43dc42['model']==_0x5498c2)['title'])['toLowerCase']();return{'type':'format','content':o(_0x348a85,'*Set\x20font\x20size:*\x20%0',_0x3923b7)};}return{'type':'format','content':o(_0x348a85,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3c3ae1['commandName']){const _0x1e445a=_0x3c3ae1['commandParams'][0x0]['value'];return _0x1e445a?{'type':'format','content':o(_0x348a85,'*Set\x20font\x20family:*\x20%0',_0x1e445a)}:{'type':'format','content':o(_0x348a85,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3c3ae1['commandName']){const _0x29af2c=_0x3c3ae1['commandParams'][0x0]['value'];if(_0x29af2c){const _0x36e464=_0x5d5a94(this['editor']['config']['get']('fontColor.colors'))['find'](_0x32c8a8=>_0x32c8a8['model']==_0x29af2c);let _0x3bcf24=_0x29af2c,_0x1f7605='';return _0x36e464&&(_0x3bcf24=_0x36e464['label'],_0x1f7605=_0x1cf62f(_0x3bcf24)['toLowerCase']()),{'type':'format','content':o(_0x348a85,'*Set\x20font\x20color:*\x20%0',_0x1f7605)['trim'](),'color':{'value':_0x29af2c,'title':_0x1f7605||_0x3bcf24}};}return{'type':'format','content':o(_0x348a85,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3c3ae1['commandName']){const _0x56d97a=_0x3c3ae1['commandParams'][0x0]['value'];if(_0x56d97a){const _0x1e00e0=_0x5d5a94(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x190ec2=>_0x190ec2['model']==_0x56d97a);let _0x14bbbd=_0x56d97a,_0x313b61='';return _0x1e00e0&&(_0x14bbbd=_0x1e00e0['label'],_0x313b61=_0x1cf62f(_0x14bbbd)['toLowerCase']()),{'type':'format','content':o(_0x348a85,'*Set\x20font\x20background\x20color:*\x20%0',_0x313b61)['trim'](),'color':{'value':_0x56d97a,'title':_0x313b61||_0x14bbbd}};}return{'type':'format','content':o(_0x348a85,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x3a5fae{['afterInit'](){const _0x509d02=this['editor'],_0x3a4c36=_0x509d02['plugins']['get']('TrackChangesEditing'),_0x1e0c5d=_0x509d02['commands']['get']('copyFormat'),_0x3952fe=_0x509d02['commands']['get']('pasteFormat');_0x1e0c5d&&_0x3952fe&&(_0x3a4c36['enableDefaultAttributesIntegration']('pasteFormat'),_0x3a4c36['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x190822=this['editor'],_0x1afcbd=_0x190822['locale'];_0x190822['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22b0f0=>{if('formatBlock'!=_0x22b0f0['type']&&'formatInline'!=_0x22b0f0['type'])return;const {data:_0x3682d1}=_0x22b0f0;if(_0x3682d1&&'pasteFormat'===_0x3682d1['commandName']){const _0x4099c7=[],_0x50c042=_0x3682d1['commandParams'][0x0];for(const [_0x463c8e,_0x3c0622]of Object['entries'](_0x50c042))_0x4099c7['push'](so(_0x190822,_0x463c8e,_0x3c0622));return _0x4099c7['length']?{'type':'format','content':o(_0x1afcbd,'*Set\x20format\x20to:*\x20%0',_0x4099c7['join'](',\x20'))}:{'type':'format','content':o(_0x1afcbd,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4a7479,_0x360a22,_0x45fa65){const _0x37b7f7=_0x4a7479['locale']['t'],_0x3c0101=_0x360a22['split'](/(?=[A-Z])/)['join']('\x20'),_0x1d5c2b=_0x37b7f7(_0x3c0101['charAt'](0x0)['toUpperCase']()+_0x3c0101['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x45fa65)return _0x1d5c2b;if('fontColor'===_0x360a22||'fontBackgroundColor'===_0x360a22){const _0x4e88b5=_0x5d5a94(_0x4a7479['config']['get']('fontColor.colors'))['find'](_0x2afde2=>_0x2afde2['model']==_0x45fa65);return _0x1d5c2b+'\x20('+(_0x4e88b5?_0x37b7f7(_0x4e88b5['label'])['toLowerCase']():_0x45fa65)+')';}if('fontSize'===_0x360a22&&isNaN(parseFloat(_0x45fa65))){const _0x5f3918=_0x4a7479['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4a7479['config']['get']('fontSize.options'))['find'](_0x2611ed=>_0x2611ed['model']==_0x45fa65);return _0x1d5c2b+'\x20('+(_0x5f3918?_0x37b7f7(_0x5f3918['title'])['toLowerCase']():_0x45fa65)+')';}return _0x1d5c2b+'\x20('+_0x45fa65+')';}class tt extends _0x3a5fae{['_headingOptions'];['afterInit'](){const _0x180efe=this['editor'];if(!_0x180efe['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x180efe['config']['get']('heading.options');const _0x3a4d81=_0x180efe['locale'],_0x4ce965=_0x180efe['plugins']['get']('TrackChangesEditing');_0x4ce965['enableDefaultAttributesIntegration']('heading');for(const _0x20d17b of this['_headingOptions'])'paragraph'!=_0x20d17b['model']&&_0x4ce965['descriptionFactory']['registerElementLabel'](_0x20d17b['model'],_0x542f80=>{const _0x31b429=this['_getHeadingLevel'](_0x20d17b['model']);return null!==_0x31b429?_0x29921b(_0x542f80,_0x31b429):_0x2d49ce(_0x542f80,_0x20d17b['title']);});function _0x29921b(_0x3d0dcb,_0x4e9ac4){return o(_0x3a4d81,'ELEMENT_HEADING',[_0x3d0dcb,_0x4e9ac4]);}function _0x2d49ce(_0x1be9ae,_0x4476fc){return o(_0x3a4d81,'ELEMENT_HEADING_CUSTOM',[_0x1be9ae,_0x4476fc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9afb62=this['editor'],_0x1a7d3f=_0x9afb62['locale'];function _0x16e8a8(_0x5e2e43,_0x286b73){return o(_0x1a7d3f,'ELEMENT_HEADING_CUSTOM',[_0x5e2e43,_0x286b73]);}_0x9afb62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42f352=>{if('formatBlock'!=_0x42f352['type'])return;const {data:_0x1f4243}=_0x42f352;if(_0x1f4243&&'heading'==_0x1f4243['commandName']){const _0x4c7362=_0x1f4243['commandParams'][0x0]['value'],_0x3e9ff0=this['_getHeadingLevel'](_0x4c7362);if(null!==_0x3e9ff0)return{'type':'format','content':o(_0x1a7d3f,'*Change\x20to:*\x20%0',(_0xf07116=0x1,_0xf73aa1=_0x3e9ff0,o(_0x1a7d3f,'ELEMENT_HEADING',[_0xf07116,_0xf73aa1])))};const _0x219c2b=this['_headingOptions']['find'](_0x499c65=>_0x499c65['model']===_0x4c7362)['title'];return{'type':'format','content':o(_0x1a7d3f,'*Change\x20to:*\x20%0',_0x16e8a8(0x1,_0x219c2b))};}var _0xf07116,_0xf73aa1;});}['_getHeadingLevel'](_0x5021e8){const _0x6be3e7=_0x5021e8['match'](/^heading(\d+)/);if(_0x6be3e7)return _0x6be3e7[0x1];const _0x371ac1=this['_headingOptions']?.['find'](_0xb245e=>_0xb245e['model']==_0x5021e8);if(_0x371ac1&&_0x371ac1['view']){const _0x5834f5=_0x371ac1['view'],_0xdacdc9=(_0x5834f5['name']??_0x5834f5)['match'](/^h(\d+)/);if(_0xdacdc9)return _0xdacdc9[0x1];}return null;}}class et extends _0x3a5fae{['afterInit'](){const _0x20ed4b=this['editor'];if(!_0x20ed4b['plugins']['has']('HighlightEditing'))return;const _0x2f91cb=_0x20ed4b['plugins']['get']('TrackChangesEditing'),_0x2e8bde=_0x20ed4b['locale'];_0x2f91cb['enableDefaultAttributesIntegration']('highlight'),_0x2f91cb['registerInlineAttribute']('highlight'),_0x2f91cb['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2e8bde,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c9090=this['editor'],_0x21a8b1=_0x2c9090['locale'];_0x2c9090['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x179df4=>{if('formatInline'!=_0x179df4['type'])return;const {data:_0x2bf845}=_0x179df4;if(_0x2bf845&&'highlight'==_0x2bf845['commandName']){const _0x51e135=_0x21a8b1['t'],_0x130273=_0x2bf845['commandParams'][0x0]['value'];if(_0x130273){const _0x2365d7=_0x2c9090['config']['get']('highlight.options')['find'](_0x37b83a=>_0x37b83a['model']==_0x130273),_0x51f506=_0x51e135(_0x2365d7['title'])['toLowerCase']();return{'type':'format','content':o(_0x21a8b1,'*Set\x20highlight:*\x20%0',_0x51f506),'color':{'value':_0x2365d7['color'],'title':_0x2365d7['title']}};}return{'type':'format','content':o(_0x21a8b1,'*Remove\x20highlight*',o(_0x21a8b1,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3a5fae{['afterInit'](){const _0x5845f2=this['editor'];if(!_0x5845f2['plugins']['has']('HorizontalLineEditing'))return;_0x5845f2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x337df3=_0x5845f2['plugins']['get']('TrackChangesEditing'),_0x58e623=_0x5845f2['locale'];_0x337df3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x520e06=>o(_0x58e623,'ELEMENT_HORIZONTAL_LINE',_0x520e06)),_0x5845f2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4f990b,{writer:_0x5dbc1a,options:_0xf591e1})=>{if(!_0xf591e1['showSuggestionHighlights'])return null;const _0x573c45=_0x5dbc1a['createContainerElement']('div'),_0x327b70=_0x5dbc1a['createEmptyElement']('hr');return _0x5dbc1a['addClass']('ck-horizontal-line',_0x573c45),_0x5dbc1a['insert'](_0x5dbc1a['createPositionAt'](_0x573c45,0x0),_0x327b70),_0x573c45;},'converterPriority':'high'});}}class st extends _0x3a5fae{['afterInit'](){const _0x53ded9=this['editor'];if(!_0x53ded9['plugins']['has']('HtmlEmbed'))return;const _0x3d4495=_0x53ded9['plugins']['get']('TrackChangesEditing'),_0x3511d7=_0x53ded9['locale'];_0x3d4495['descriptionFactory']['registerElementLabel']('rawHtml',_0x4d32e1=>o(_0x3511d7,'ELEMENT_HTML_EMBED',_0x4d32e1)),_0x3d4495['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3d4495['registerBlockAttribute']('value'),_0x3d4495['descriptionFactory']['registerDescriptionCallback'](_0xa55e51=>{if('attribute'!=_0xa55e51['type'])return;const {data:_0x48f9b3}=_0xa55e51;if(_0x48f9b3&&'value'==_0x48f9b3['key']&&_0xa55e51['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x942715=o(_0x3511d7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3511d7,'*Change\x20%0\x20content*',_0x942715)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234722=this['editor'],_0xab873c=_0x234722['locale'];_0x234722['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25bf6c=>{if('formatBlock'!=_0x25bf6c['type'])return;const {data:_0x4aa826}=_0x25bf6c;if(_0x4aa826&&'htmlEmbed'==_0x4aa826['commandName']){const _0x217217=o(_0xab873c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xab873c,'*Change\x20%0\x20content*',_0x217217)};}});}}class nt extends _0x3a5fae{['afterInit'](){const _0x760856=this['editor'];if(!_0x760856['plugins']['has']('ImageEditing'))return;const _0x303ab9=_0x760856['plugins']['get']('TrackChangesEditing'),_0x5b59a3=_0x760856['plugins']['get']('ImageUtils'),_0x892766=_0x760856['locale'];_0x303ab9['enableCommand']('insertImage'),_0x303ab9['descriptionFactory']['registerElementLabel']('imageBlock',_0x30d2cf=>o(_0x892766,'ELEMENT_IMAGE',_0x30d2cf)),_0x303ab9['descriptionFactory']['registerElementLabel']('imageInline',_0x2f6625=>o(_0x892766,'ELEMENT_INLINE_IMAGE',_0x2f6625)),_0x303ab9['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x892766,'ELEMENT_CAPTION')),_0x760856['plugins']['has']('ImageUploadEditing')&&_0x303ab9['enableCommand']('uploadImage'),_0x760856['plugins']['has']('ImageBlockEditing')&&_0x760856['plugins']['has']('ImageInlineEditing')&&(_0x303ab9['enableCommand']('imageTypeInline',(_0x1f86df,_0x183253)=>{const _0x185489=_0x5b59a3['getClosestSelectedImageElement'](_0x760856['model']['document']['selection']);_0x760856['model']['change'](()=>{_0x303ab9['markBlockFormat'](_0x185489,{'commandName':'imageTypeInline','commandParams':[_0x183253]},[],'convertBlockImageToInline');});}),_0x303ab9['enableCommand']('imageTypeBlock',(_0x3cd44a,_0x529414)=>{_0x760856['model']['change'](_0x5cdaf3=>{let _0x3feff2=_0x5b59a3['getClosestSelectedImageElement'](_0x760856['model']['document']['selection']),_0x577acd=_0x5cdaf3['createRangeOn'](_0x3feff2);const _0xe5beab=_0x450e19['fromPosition'](_0x577acd['start'],'toPrevious'),_0x1da5fc=_0x450e19['fromPosition'](_0x577acd['end'],'toNext');_0x303ab9['forceDefaultExecution'](()=>_0x3cd44a(_0x529414)),_0x3feff2=_0x5b59a3['getClosestSelectedImageElement'](_0x760856['model']['document']['selection']),_0x577acd=_0x5cdaf3['createRangeOn'](_0x3feff2);const _0x36e04e=_0x5cdaf3['createRange'](_0xe5beab,_0x1da5fc);_0xe5beab['detach'](),_0x1da5fc['detach'](),_0x303ab9['markBlockFormat'](_0x3feff2,{'commandName':'imageTypeInline','commandParams':[_0x529414]},[],'convertInlineImageToBlock'),_0x36e04e['start']['isBefore'](_0x577acd['start'])&&_0x303ab9['markInsertion'](_0x5cdaf3['createRange'](_0x36e04e['start'],_0x577acd['start']),'convertInlineImageToBlock'),_0x577acd['end']['isBefore'](_0x36e04e['end'])&&_0x303ab9['markInsertion'](_0x5cdaf3['createRange'](_0x577acd['end'],_0x36e04e['end']),'convertInlineImageToBlock');});}),_0x303ab9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x303ab9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x303ab9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x303ab9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x303ab9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x303ab9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x29cd33])=>{const _0x263099=_0x303ab9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3f17cd=_0x29cd33['start'],_0x2d5d8f=_0x29cd33['end'];const _0x3b2dc8=_0x760856['model']['schema']['getNearestSelectionRange'](_0x3f17cd,'backward'),_0x346218=_0x760856['model']['schema']['getNearestSelectionRange'](_0x2d5d8f,'forward');_0x3b2dc8['isCollapsed']&&(_0x3f17cd=_0x3b2dc8['start']),_0x346218['isCollapsed']&&(_0x2d5d8f=_0x346218['end']),_0x263099([_0x760856['model']['createRange'](_0x3f17cd,_0x2d5d8f)]);}),_0x303ab9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x403531),_0x303ab9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x403531)),_0x760856['plugins']['has']('ImageCaptionEditing')&&(_0x303ab9['enableCommand']('toggleImageCaption',(_0x46641d,_0xec8e4d)=>{const _0x26dbb4=_0x760856['plugins']['get']('ImageCaptionUtils');let _0x5bc4c9=_0x5b59a3['getClosestSelectedImageElement'](_0x760856['model']['document']['selection']),_0x3badd8=_0x26dbb4['getCaptionFromImageModelElement'](_0x5bc4c9);_0x760856['model']['change'](()=>{if(_0x3badd8)return void _0x303ab9['markDeletion'](_0x760856['model']['createRangeOn'](_0x3badd8));const _0x4be6f1=_0x5b59a3['isBlockImage'](_0x5bc4c9);_0x46641d(_0xec8e4d),_0x5bc4c9=_0x5b59a3['getClosestSelectedImageElement'](_0x760856['model']['document']['selection']),_0x3badd8=_0x26dbb4['getCaptionFromImageModelElement'](_0x5bc4c9),_0x303ab9['markInsertion'](_0x760856['model']['createRangeOn'](_0x3badd8),_0x4be6f1?null:'imageCaption');});}),_0x303ab9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x403531));const _0xbee8e6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x447cac(_0x2619b4,_0x161589){const _0x1c452a=_0xbee8e6['findIndex'](({type:_0x59b586,subType:_0x17d26f})=>_0x2619b4['type']==_0x59b586&&_0x2619b4['subType']==_0x17d26f),_0x52af93=_0xbee8e6['findIndex'](({type:_0x5eb8af,subType:_0x264ae2})=>_0x161589['type']==_0x5eb8af&&_0x161589['subType']==_0x264ae2);if(_0x1c452a<0x0||_0x52af93<0x0)return!0x1;const _0x2c6aa5=_0x2619b4['getFirstRange'](),_0xb16640=_0x161589['getFirstRange']();if((0x0==_0x1c452a||0x1==_0x1c452a)&&0x2==_0x52af93&&_0x2c6aa5['isIntersecting'](_0xb16640))return!0x0;if(0x2==_0x1c452a&&0x3==_0x52af93){const _0x40e896=_0x303ab9['_findSuggestions'](_0x2c6aa5,'insertion')['filter'](({suggestion:_0x194cec,meta:_0x45eabe})=>_0x45eabe['isOwn']&&'convertInlineImageToBlock'==_0x194cec['subType']);if(_0x40e896['length']>0x1&&_0xb16640['end']['isEqual'](_0x2c6aa5['start']))return!0x0;if(0x1==_0x40e896['length']&&(_0x2c6aa5['start']['isEqual'](_0xb16640['end'])||_0x2c6aa5['end']['isEqual'](_0xb16640['start'])))return!0x0;}if(0x3==_0x1c452a&&0x3==_0x52af93&&_0x2c6aa5['start']['isBefore'](_0xb16640['start'])){const _0x5cc007=_0x2c6aa5['end']['nodeAfter'],_0x2d5e87=_0xb16640['start']['nodeBefore'];return _0x5b59a3['isBlockImage'](_0x5cc007)&&_0x5cc007===_0x2d5e87;}return!0x1;}function _0x403531(_0x5dd5a0,_0x260486){return _0x447cac(_0x5dd5a0,_0x260486)?[_0x5dd5a0,_0x260486]:_0x447cac(_0x260486,_0x5dd5a0)?[_0x260486,_0x5dd5a0]:null;}_0x760856['plugins']['has']('ImageResize')&&(_0x303ab9['enableDefaultAttributesIntegration']('resizeImage'),_0x303ab9['registerBlockAttribute']('resizedWidth'),_0x303ab9['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x892766,'FORMAT_IMAGE_SIZE'))),_0x760856['plugins']['has']('ImageTextAlternativeEditing')&&(_0x303ab9['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x303ab9['registerBlockAttribute']('alt')),_0x303ab9['descriptionFactory']['registerDescriptionCallback'](_0x4d63e2=>{if(!!_0xbee8e6['find'](({type:_0x4e44a6,subType:_0x21b0b2})=>_0x4d63e2['type']==_0x4e44a6&&_0x4d63e2['subType']==_0x21b0b2))return _0x4d63e2['previous']?{}:void 0x0;}),_0x303ab9['descriptionFactory']['registerDescriptionCallback'](_0x35f1f6=>{if('insertion'==_0x35f1f6['type']||'deletion'==_0x35f1f6['type']){const _0x499fe2=_0x35f1f6['getContainedElement']();if(_0x499fe2&&_0x499fe2['is']('element','caption'))return{'type':'insertion'==_0x35f1f6['type']?'addObject':'removeObject','element':_0x499fe2,'quantity':0x1};}}),_0x303ab9['descriptionFactory']['registerDescriptionCallback'](_0x5f47c=>'formatBlock'==_0x5f47c['type']&&'convertInlineImageToBlock'==_0x5f47c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5f47c['type']&&'convertBlockImageToInline'==_0x5f47c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x303ab9['descriptionFactory']['registerDescriptionCallback'](_0x880a26=>{if('attribute'!=_0x880a26['type'])return;const {data:_0x29d7e2}=_0x880a26;if(!_0x29d7e2||'alt'!=_0x29d7e2['key'])return;const _0x569f80=_0x29d7e2['newValue'];return _0x569f80?{'type':'format','content':o(_0x892766,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x569f80+'\x22')}:{'type':'format','content':o(_0x892766,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8bb309=this['editor'],_0x570ae4=_0x8bb309['locale'];_0x8bb309['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a68cb=>{if('formatBlock'!=_0x4a68cb['type']&&'formatInline'!=_0x4a68cb['type'])return;const {data:_0x3624db}=_0x4a68cb;if(_0x3624db){if('imageTextAlternative'==_0x3624db['commandName']){const _0x55ebba=_0x3624db['commandParams'][0x0]['newValue'];return _0x55ebba?{'type':'format','content':o(_0x570ae4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x55ebba+'\x22')}:{'type':'format','content':o(_0x570ae4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3624db['commandName']){const _0x41bd60=_0x3624db['commandParams'][0x0]['width'];return _0x41bd60?{'type':'format','content':o(_0x570ae4,'*Set\x20image\x20width:*\x20%0',_0x41bd60)}:{'type':'format','content':o(_0x570ae4,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x3a5fae{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x22df74=this['editor']['locale'],_0x14ccd8=this['editor']['plugins']['get']('TrackChangesEditing');_0x14ccd8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x14ccd8['registerBlockAttribute']('src'),_0x14ccd8['descriptionFactory']['registerDescriptionCallback'](_0x1f27dc=>{if('attribute'!=_0x1f27dc['type'])return;const {data:_0xbc5ab0}=_0x1f27dc;return _0xbc5ab0&&'src'==_0xbc5ab0['key']?_0xbc5ab0['newValue']&&_0xbc5ab0['oldValue']?{'type':'format','content':o(_0x22df74,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x430451=this['editor']['plugins']['get']('TrackChangesEditing');_0x430451['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x430451['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x430451['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x430451['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13f352=this['editor'],_0x564b0e=_0x13f352['locale'];_0x13f352['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13d552=>{if('formatBlock'!=_0x13d552['type']&&'formatInline'!=_0x13d552['type'])return;const {data:_0x5adf1d}=_0x13d552;if(!_0x5adf1d||'replaceImageSource'!=_0x5adf1d['commandName'])return;return{'type':'format','content':o(_0x564b0e,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x3a5fae{['afterInit'](){const _0x3b232e=this['editor'];if(!_0x3b232e['plugins']['has']('ImageStyleEditing'))return;const _0x14395b=_0x3b232e['plugins']['get']('TrackChangesEditing'),_0x2b789e=_0x3b232e['plugins']['get']('ImageUtils'),_0x15b067={};_0x14395b['enableCommand']('imageStyle',(_0x2a0672,_0x228cba)=>{const _0x57583d=_0x3b232e['plugins']['get']('Users')['me'],_0x49cf80=_0x3b232e['commands']['get']('imageStyle');let _0x263ac0=_0x2b789e['getClosestSelectedImageElement'](_0x3b232e['model']['document']['selection']),_0x48c538=_0x3b232e['model']['createRangeOn'](_0x263ac0),_0x1f620b=_0x49cf80['value'];if(_0x1f620b==_0x228cba['value'])return;const _0x5543eb={'commandName':'imageStyle','commandParams':[_0x228cba],'formatGroupId':_0x265842()};_0x3b232e['model']['change'](()=>{if(_0x14395b['getSuggestions']()['filter'](_0x43a682=>_0x43a682['isInContent']&&_0x57583d==_0x43a682['author']&&('formatBlock'==_0x43a682['type']||'formatInline'==_0x43a682['type'])&&('imageStylePreApply'==_0x43a682['subType']||'imageStylePostApply'==_0x43a682['subType'])&&_0x43a682['getFirstRange']()['isEqual'](_0x48c538))['forEach'](_0x43925d=>_0x14395b['discardSuggestion'](_0x43925d['head'])),_0x263ac0=_0x2b789e['getClosestSelectedImageElement'](_0x3b232e['model']['document']['selection']),_0x48c538=_0x3b232e['model']['createRangeOn'](_0x263ac0),_0x49cf80['refresh'](),_0x3b232e['commands']['get']('imageTypeInline')['refresh'](),_0x3b232e['commands']['get']('imageTypeBlock')['refresh'](),_0x1f620b=_0x49cf80['value'],_0x1f620b!=_0x228cba['value'])return _0x2b789e['isInlineImage'](_0x263ac0)&&_0x49cf80['shouldConvertImageType'](_0x228cba['value'],_0x263ac0)?(_0x2a0672({..._0x228cba,'setImageSizes':!0x1}),_0x263ac0=_0x2b789e['getClosestSelectedImageElement'](_0x3b232e['model']['document']['selection']),void _0x14395b['markBlockFormat'](_0x263ac0,{..._0x5543eb,'commandReversedParams':[{'value':_0x1f620b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2b789e['isBlockImage'](_0x263ac0)?_0x14395b['markBlockFormat'](_0x263ac0,_0x5543eb,[],'imageStylePostApply'):_0x14395b['markInlineFormat'](_0x48c538,_0x5543eb,'imageStylePostApply'));});});for(const _0x3dddd4 of _0x3b232e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x15b067[_0x3dddd4['name']]=_0x3dddd4['title']['toLowerCase']();_0x14395b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x14395b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x14395b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x14395b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2e418c])=>{_0x2b789e['setImageNaturalSizeAttributes'](_0x2e418c['getContainedElement']());}),_0x14395b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4a0930,_0xa6675b)=>{_0x14395b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4a0930,{'commandName':_0xa6675b['commandName'],'commandParams':_0xa6675b['commandReversedParams']});}),_0x14395b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2be047,_0x301a1c){if(_0x52e092(_0x2be047,_0x301a1c))return[_0x2be047,_0x301a1c];if(_0x52e092(_0x301a1c,_0x2be047))return[_0x301a1c,_0x2be047];return null;});const _0x187c15=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x52e092(_0x43166b,_0x5df4a7){const _0x39e5ae=_0x187c15['findIndex'](({type:_0x1b47a8,subType:_0x1c728d})=>_0x43166b['type']==_0x1b47a8&&_0x43166b['subType']==_0x1c728d),_0x52b6b6=_0x187c15['findIndex'](({type:_0x3a261e,subType:_0x1442b4})=>_0x5df4a7['type']==_0x3a261e&&_0x5df4a7['subType']==_0x1442b4);if(_0x39e5ae<0x0||_0x52b6b6<0x0)return!0x1;const _0x2e5537=_0x43166b['getFirstRange'](),_0x432870=_0x5df4a7['getFirstRange']();if((0x0==_0x39e5ae||0x1==_0x39e5ae)&&0x2==_0x52b6b6&&_0x2e5537['isIntersecting'](_0x432870))return!0x0;if(0x2==_0x39e5ae&&0x3==_0x52b6b6){const _0x4f6f00=_0x14395b['_findSuggestions'](_0x2e5537,'insertion')['filter'](({suggestion:_0x25e0a7,meta:_0x186e83})=>_0x186e83['isOwn']&&'convertInlineImageToBlock'==_0x25e0a7['subType']);if(_0x4f6f00['length']>0x1&&_0x432870['end']['isEqual'](_0x2e5537['start']))return!0x0;if(0x1==_0x4f6f00['length']&&(_0x2e5537['start']['isEqual'](_0x432870['end'])||_0x2e5537['end']['isEqual'](_0x432870['start'])))return!0x0;}if(0x3==_0x39e5ae&&0x3==_0x52b6b6&&_0x2e5537['start']['isBefore'](_0x432870['start'])){const _0x13d06a=_0x2e5537['end']['nodeAfter'],_0x233c5f=_0x432870['start']['nodeBefore'];return _0x2b789e['isBlockImage'](_0x13d06a)&&_0x13d06a===_0x233c5f;}return!0x1;}_0x3b232e['model']['document']['registerPostFixer'](()=>{let _0x356ff6=!0x1;const _0x365990=Array['from'](_0x3b232e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bbbb8,data:_0x4aad92}of _0x365990){const {group:_0x2c3b96,type:_0x3aa78c,subType:_0x11abb6,id:_0x38684b}=_0x14395b['_splitMarkerName'](_0x5bbbb8);if('suggestion'==_0x2c3b96&&_0x14395b['hasSuggestion'](_0x38684b)){if('formatBlock'==_0x3aa78c&&('imageStylePreApply'==_0x11abb6||'imageStylePostApply'==_0x11abb6)){const _0xbb6119=_0x14395b['getSuggestion'](_0x38684b);if(_0x4aad92['newRange']){const _0x7d827c=_0xbb6119['getFirstRange']()['getContainedElement']();if(_0x2b789e['isBlockImage'](_0x7d827c))continue;_0x14395b['discardSuggestion'](_0xbb6119),_0x356ff6=!0x0;}}if('insertion'==_0x3aa78c&&'imageCaption'==_0x11abb6&&!_0x4aad92['newRange']){const _0x541119=_0x14395b['getSuggestion'](_0x38684b);_0x541119['next']&&_0x541119['next']['isInContent']&&(_0x14395b['discardSuggestion'](_0x541119['next']),_0x356ff6=!0x0);}}}return _0x356ff6;}),this['_registerLegacyDescription'](_0x15b067);}['_registerLegacyDescription'](_0x3e632f){const _0x375439=this['editor'],_0x5b5747=_0x375439['locale'];_0x375439['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc37ec0=>{if('formatBlock'!=_0xc37ec0['type']&&'formatInline'!=_0xc37ec0['type'])return;const {data:_0x5f0311}=_0xc37ec0;if(!_0x5f0311||'imageStyle'!=_0x5f0311['commandName'])return;const _0x346d03=_0x5f0311['commandParams'][0x0]['value'];return _0x3fe2d1('side'===_0x346d03?o(_0x5b5747,'FORMAT_SIDE_IMAGE'):_0x3e632f[_0x346d03]||_0x346d03);function _0x3fe2d1(_0x46eb44){return{'type':'format','content':o(_0x5b5747,'*Format:*\x20%0',_0x46eb44)};}});}}class at extends _0x3a5fae{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1e86f2){super(_0x1e86f2),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x514419=this['editor'],_0x3eb1a2=_0x514419['commands']['get']('importWord'),_0x453c9a=_0x514419['commands']['get']('trackChanges');_0x3eb1a2&&(_0x3eb1a2['on']('execute',(_0x213136,[,_0xf578ed])=>{this['_trackChangesValueDuringImport']=_0x453c9a['value'],_0xf578ed['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3eb1a2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3eb1a2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x453c9a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x514419['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x403745,_0x9f8ee){const {suggestions:_0x206053}=_0x9f8ee,_0x4f123d=this['editor']['commands']['get']('trackChanges'),_0x3c0390=_0x4f123d['value'];this['_trackChangesValueDuringImport']!==_0x3c0390&&(_0x4f123d['execute'](),this['_trackChangesExecuted']=!0x0),_0x206053&&_0x206053['forEach'](({id:_0x5c2027,type:_0x4d72b5,author:_0x4b4a67,created_at:_0x1bf3c8})=>{const _0xb94f0={'id':_0x5c2027,'type':_0x4d72b5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4b4a67,'createdAt':_0x1bf3c8?new Date(_0x1bf3c8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb94f0);});}}class ct extends _0x3a5fae{['afterInit'](){const _0x26eb7b=this['editor'],_0x27f274=_0x26eb7b['plugins']['get']('TrackChangesEditing');if(_0x26eb7b['plugins']['has']('IndentEditing')&&(_0x27f274['enableCommand']('indent'),_0x27f274['enableCommand']('outdent')),_0x26eb7b['plugins']['has']('IndentBlock')){for(const _0x3f3719 of['indentBlock','outdentBlock'])_0x27f274['enableDefaultAttributesIntegration'](_0x3f3719);}const _0x23ab88=_0x26eb7b['locale'];_0x27f274['registerBlockAttribute']('blockIndent'),_0x27f274['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x23ab88,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ea5b0=this['editor'],_0x13a0d8=_0x1ea5b0['locale'],_0x14c96f=_0x1ea5b0['plugins']['get']('TrackChangesEditing');_0x14c96f['descriptionFactory']['registerDescriptionCallback'](_0xc64128=>{if('formatBlock'!=_0xc64128['type'])return;const {data:_0x2f7e29}=_0xc64128;if(!_0x2f7e29)return;if('indentBlock'!=_0x2f7e29['commandName']&&'outdentBlock'!=_0x2f7e29['commandName'])return;const _0x3c0dff=_0xc64128['getItems']()[0x0],_0x148ac9=_0x14c96f['descriptionFactory']['getItemLabel'](_0x3c0dff);return'indentBlock'==_0x2f7e29['commandName']?{'type':'format','content':o(_0x13a0d8,'*Indent:*\x20%0',_0x148ac9)}:'outdentBlock'==_0x2f7e29['commandName']?{'type':'format','content':o(_0x13a0d8,'*Outdent:*\x20%0',_0x148ac9)}:void 0x0;});}}class ut extends _0x3a5fae{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3a5fae{['afterInit'](){const _0x50c94b=this['editor'];if(!_0x50c94b['plugins']['has']('LinkEditing'))return;const _0x1f8eb7=_0x50c94b['plugins']['get']('TrackChangesEditing'),_0x45d1c4=_0x50c94b['commands']['get']('link');_0x1f8eb7['enableDefaultAttributesIntegration']('link'),_0x1f8eb7['enableDefaultAttributesIntegration']('unlink'),_0x1f8eb7['registerInlineAttribute']('linkHref');for(const _0x561e80 of _0x45d1c4['manualDecorators'])_0x1f8eb7['registerInlineAttribute'](_0x561e80['id']),_0x1f8eb7['descriptionFactory']['registerAttributeLabel'](_0x561e80['id'],'link\x20('+_0x561e80['label']['toLowerCase']()+')');_0x1f8eb7['descriptionFactory']['registerDescriptionCallback'](_0x5c81b6=>{if('attribute'!=_0x5c81b6['type'])return;const {data:_0x484a05}=_0x5c81b6;if(!_0x484a05||'linkHref'!=_0x484a05['key'])return;const _0x229d56=_0x484a05['newValue'],_0x1e0842=_0x50c94b['locale'];return{'type':'format','content':null==_0x229d56?o(_0x1e0842,'*Remove\x20link*'):o(_0x1e0842,'*Set\x20link:*\x20%0','\x22'+_0x229d56+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c5ea7=this['editor'],_0x53bc74=_0x1c5ea7['locale'];_0x1c5ea7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x284d46=>{if('formatInline'!=_0x284d46['type'])return;const {data:_0x5d3419}=_0x284d46;if(_0x5d3419){if('link'==_0x5d3419['commandName']){const _0x27d8a2=_0x5d3419['commandParams'][0x0];return{'type':'format','content':o(_0x53bc74,'*Set\x20link:*\x20%0','\x22'+_0x27d8a2+'\x22')};}return'unlink'==_0x5d3419['commandName']?{'type':'format','content':o(_0x53bc74,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3a5fae{['afterInit'](){const _0x48e1de=this['editor'],_0x33554b=_0x48e1de['locale'];if(!_0x48e1de['plugins']['has']('LegacyListEditing'))return;const _0x240045=_0x48e1de['plugins']['get']('TrackChangesEditing'),_0x5ecd99=_0x48e1de['plugins']['has']('LegacyTodoListEditing');function _0x25f922(_0xb646e2){return()=>{const _0x21ff82=_0x48e1de['model']['document']['selection'],_0x359ff2=_0x48e1de['commands']['get'](_0xb646e2);if(_0x359ff2['value'])return void _0x48e1de['execute']('paragraph',{});const _0x27e5c5=_0xb646e2['slice'](0x0,-0x4),_0x495273=function(_0x342722,_0x2507aa,_0x4d909e){let _0x1427ea=Array['from'](_0x342722)['filter'](_0x342419=>function(_0x240a5b,_0x3adac7){return _0x3adac7['checkChild'](_0x240a5b['parent'],'listItem')&&!_0x3adac7['isObject'](_0x240a5b);}(_0x342419,_0x4d909e));_0x1427ea=_0x1427ea['filter'](_0x37b81b=>!_0x37b81b['is']('element','listItem')||_0x37b81b['getAttribute']('listType')!=_0x2507aa);const _0x30cfd8=new Set();for(const _0xba00d6 of _0x1427ea)_0xba00d6['is']('element','listItem')?_0x30cfd8['add'](fe(_0xba00d6)):_0x30cfd8['add'](_0xba00d6);return Array['from'](_0x30cfd8);}(_0x21ff82['getSelectedBlocks'](),_0x27e5c5,_0x48e1de['model']['schema']);_0x48e1de['model']['change'](()=>{for(const _0xd01f83 of _0x495273)_0x240045['markBlockFormat'](_0xd01f83,{'commandName':_0xb646e2,'commandParams':[{'forceValue':!_0x359ff2['value']}],'formatGroupId':'blockName'},ue(_0xd01f83));});};}function _0x5dd9b7(_0x4067d1){return()=>{const _0x2e23b4=function(_0x5ce670){let _0x1af22=Array['from'](_0x5ce670);const _0x592941=_0x1af22['findIndex'](_0x54fb8f=>'listItem'!=_0x54fb8f['name']);return _0x592941>-0x1&&(_0x1af22=_0x1af22['slice'](0x0,_0x592941)),_0x1af22;}(_0x48e1de['model']['document']['selection']['getSelectedBlocks']()),_0x42069c=_0x48e1de['model']['createRange'](_0x48e1de['model']['createPositionAt'](_0x2e23b4[0x0],'before'),_0x48e1de['model']['createPositionAt'](_0x2e23b4[_0x2e23b4['length']-0x1],'end'));_0x48e1de['model']['change'](()=>{_0x240045['markBlockFormat'](_0x42069c,{'commandName':_0x4067d1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5a5fe1){const _0x404375=new Set();for(const _0x3ebcc9 of _0x5a5fe1){let _0x39bd27=_0x3ebcc9['nextSibling'];for(;_0x39bd27&&_0x39bd27['getAttribute']('listIndent')>_0x3ebcc9['getAttribute']('listIndent');)_0x404375['add'](_0x39bd27),_0x39bd27=_0x39bd27['nextSibling'];}return Array['from'](_0x404375);}(_0x2e23b4));});};}_0x240045['enableCommand']('numberedList',_0x25f922('numberedList')),_0x240045['enableCommand']('bulletedList',_0x25f922('bulletedList')),_0x5ecd99&&_0x240045['enableCommand']('todoList',_0x25f922('todoList')),_0x240045['enableCommand']('indentList',_0x5dd9b7('indentList')),_0x240045['enableCommand']('outdentList',_0x5dd9b7('outdentList')),_0x5ecd99&&_0x240045['enableCommand']('checkTodoList',()=>{const _0x35df35=_0x48e1de['commands']['get']('checkTodoList'),_0x5cd837=Array['from'](_0x35df35['_selectedElements']);_0x5cd837['filter'](_0x386b39=>_0x386b39['getAttribute']('todoListChecked')!=_0x35df35['value']),_0x48e1de['model']['change'](()=>{for(const _0x4d8ecc of _0x5cd837)_0x240045['markBlockFormat'](_0x4d8ecc,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x35df35['value']}]});});}),_0x240045['descriptionFactory']['registerElementLabel']('listItem',_0x56f552=>o(_0x33554b,'ELEMENT_LIST_ITEM',_0x56f552)),_0x240045['descriptionFactory']['registerDescriptionCallback'](_0x4f2b1a=>{if('formatBlock'!=_0x4f2b1a['type']&&'formatInline'!=_0x4f2b1a['type'])return;const {data:_0x3cb273}=_0x4f2b1a;if(_0x3cb273){if('numberedList'==_0x3cb273['commandName']||'bulletedList'==_0x3cb273['commandName']||'todoList'==_0x3cb273['commandName'])switch(_0x3cb273['commandName']['replace']('List','')){case'bulleted':return _0x11a4ff(o(_0x33554b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x11a4ff(o(_0x33554b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x11a4ff(o(_0x33554b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3cb273['commandName'])return{'type':'format','content':o(_0x33554b,'*Indent:*\x20%0',o(_0x33554b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3cb273['commandName'])return{'type':'format','content':o(_0x33554b,'*Outdent:*\x20%0',o(_0x33554b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3cb273['commandName'])return _0x3cb273['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33554b,'*Check\x20item*')}:{'type':'format','content':o(_0x33554b,'*Uncheck\x20item*')};}function _0x11a4ff(_0x5a1527){return{'type':'format','content':o(_0x33554b,'*Change\x20to:*\x20%0',_0x5a1527)};}});}}function fe(_0x4f682d){const _0x1db35d=_0x4f682d['getAttribute']('listIndent');if(0x0==_0x1db35d)return _0x4f682d;let _0x151091=_0x4f682d;for(;_0x4f682d['previousSibling']&&_0x4f682d['previousSibling']['is']('element','listItem');){const _0x10fb86=_0x4f682d['previousSibling']['getAttribute']('listIndent');if(_0x10fb86==_0x1db35d)_0x151091=_0x4f682d['previousSibling'];else{if(_0x10fb86<_0x1db35d)break;}_0x4f682d=_0x4f682d['previousSibling'];}return _0x151091;}function ue(_0x226dfc){const _0xe15384=[];if(_0x226dfc['is']('element','listItem')&&_0x226dfc['getAttribute']('listIndent')>0x0){let _0x13733f=_0x226dfc['nextSibling'];for(;_0x13733f&&'listItem'==_0x13733f['name']&&_0x13733f['getAttribute']('listIndent')==_0x226dfc['getAttribute']('listIndent');)_0xe15384['push'](_0x13733f),_0x13733f=_0x13733f['nextSibling'];}return _0xe15384;}class W extends _0x3a5fae{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3139a8=this['editor']['config']['get']('list.properties'),_0x4fb4c=this['editor']['plugins']['get']('TrackChangesEditing');_0x3139a8['styles']&&_0x4fb4c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3139a8['reversed']&&_0x4fb4c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3139a8['startIndex']&&_0x4fb4c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4fb4c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2ded6a,_0x1f7224={}){const _0x39b2a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32c655=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x39b2a9['markMultiRangeBlockFormat'](_0x32c655,{'commandName':'listStyle','commandParams':[{'type':_0x1f7224['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1f8243,_0x80441d={}){const _0x5a1817=this['editor']['plugins']['get']('TrackChangesEditing'),_0x275ff1=this['_getSuggestionBlocks'](_0x4d49b4=>_0x4d49b4['is']('element','listItem')&&'numbered'===_0x4d49b4['getAttribute']('listType'));if(_0x275ff1['length']<0x1)return;const _0x4366d5=_0x275ff1['map'](_0x713c4a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x713c4a,'before'),this['editor']['model']['createPositionAt'](_0x713c4a,0x0)));this['editor']['model']['change'](()=>{_0x5a1817['markMultiRangeBlockFormat'](_0x4366d5,{'commandName':'listReversed','commandParams':[{'reversed':_0x80441d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x285fca,_0x3da645={}){const _0x59a055=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f1178=this['_getSuggestionBlocks'](_0x1cf9a0=>_0x1cf9a0['is']('element','listItem')&&'numbered'===_0x1cf9a0['getAttribute']('listType'));if(_0x1f1178['length']<0x1)return;const _0x536b3f=_0x1f1178['map'](_0x2e38bb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e38bb,'before'),this['editor']['model']['createPositionAt'](_0x2e38bb,0x0)));this['editor']['model']['change'](()=>{_0x59a055['markMultiRangeBlockFormat'](_0x536b3f,{'commandName':'listStart','commandParams':[{'startIndex':_0x3da645['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1e85f0){if('formatBlock'!=_0x1e85f0['type']&&'formatInline'!=_0x1e85f0['type'])return;const _0x1d3920=this['editor']['locale'],{data:_0x800c8c}=_0x1e85f0;if(!_0x800c8c)return;let _0x4d994a,_0x3441f6;switch(_0x800c8c['commandName']){case'listStyle':_0x4d994a='*Change\x20to:*\x20%0',_0x3441f6={'type':'format','content':o(_0x1d3920,_0x4d994a,o(_0x1d3920,this['_getTranslationKeyForListStyle'](_0x800c8c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4d994a=_0x800c8c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3441f6={'type':'format','content':o(_0x1d3920,_0x4d994a)};break;case'listStart':_0x4d994a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3441f6={'type':'format','content':o(_0x1d3920,_0x4d994a,_0x800c8c['commandParams'][0x0]['startIndex'])};}return _0x3441f6;}['_getSuggestionBlocksForListStyle'](){const _0x23330d=this['editor']['plugins']['get']('LegacyListUtils');let _0x3f987a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3f987a[0x0]?.['is']('element','listItem')&&_0x3f987a['unshift'](..._0x23330d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3f987a[_0x3f987a['length']-0x1]?.['is']('element','listItem')&&_0x3f987a['push'](..._0x23330d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3f987a=[...new Set(_0x3f987a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3f987a=_0x3f987a['filter'](_0x4e22ad=>_0x4e22ad['is']('element','listItem'))),_0x3f987a;}['_getSuggestionBlocks'](_0x198b6c){const _0x46cf3c=this['editor']['plugins']['get']('LegacyListUtils');let _0x2d2886=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x198b6c)['map'](_0x559009=>{const _0xc6cc1c=this['editor']['model']['createPositionAt'](_0x559009,0x0);return[..._0x46cf3c['getSiblingNodes'](_0xc6cc1c,'backward'),..._0x46cf3c['getSiblingNodes'](_0xc6cc1c,'forward')];})['flat']();return _0x2d2886=[...new Set(_0x2d2886)],_0x2d2886;}['_getTranslationKeyForListStyle'](_0x42c7e2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x42c7e2)||'default')['toUpperCase']()+'_LIST_'+_0x42c7e2['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x3a5fae{['afterInit'](){const _0x4118b7=this['editor'];if(!_0x4118b7['plugins']['has']('MediaEmbedEditing'))return;const _0x12247e=_0x4118b7['plugins']['get']('TrackChangesEditing'),_0x56c4b3=_0x4118b7['locale'];_0x12247e['enableCommand']('mediaEmbed'),_0x12247e['descriptionFactory']['registerElementLabel']('media',_0x3b69fe=>o(_0x56c4b3,'ELEMENT_MEDIA',_0x3b69fe)),_0x4118b7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x61c58a,{writer:_0x3f08b4,options:_0x581470})=>{if(_0x581470['showSuggestionHighlights'])return _0x3f08b4['createEmptyElement']('div');},'converterPriority':'high'}),_0x4118b7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x254c39,_0x3f280d,_0x5403de)=>{_0x5403de['options']['showSuggestionHighlights']&&_0x254c39['stop']();},{'priority':'high'});}}class mt extends _0x3a5fae{['afterInit'](){const _0x12370e=this['editor'];_0x12370e['plugins']['has']('MentionEditing')&&_0x12370e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3a5fae{['afterInit'](){const _0x139199=this['editor'];if(!_0x139199['plugins']['has']('MergeFieldsEditing'))return;_0x139199['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x139199['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x45f87e=_0x139199['plugins']['get']('TrackChangesEditing'),_0x2e7b36=_0x139199['locale'];_0x45f87e['descriptionFactory']['registerElementLabel']('mergeField',_0x18dbad=>o(_0x2e7b36,'ELEMENT_MERGE_FIELD',_0x18dbad)),_0x45f87e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x547c0f=>o(_0x2e7b36,'ELEMENT_MERGE_FIELD',_0x547c0f)),_0x45f87e['descriptionFactory']['registerDescriptionCallback'](_0x128ff5=>{if('insertion'!=_0x128ff5['type']&&'deletion'!=_0x128ff5['type'])return;const _0xfb1d5d=_0x128ff5['getContainedElement']();if(null==_0xfb1d5d)return;if(!_0xfb1d5d['is']('element','mergeField')&&!_0xfb1d5d['is']('element','mergeFieldBlock'))return;const _0x5991f0=_0x139199['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xfb1d5d['getAttribute']('id'));return'insertion'==_0x128ff5['type']?{'type':'insertion','content':o(_0x2e7b36,'*Insert:*\x20%0','\x22'+_0x5991f0+'\x22\x20'+o(_0x2e7b36,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2e7b36,'*Remove:*\x20%0','\x22'+_0x5991f0+'\x22\x20'+o(_0x2e7b36,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x3a5fae{['afterInit'](){const _0x2572d5=this['editor'],_0x5a605d=_0x2572d5['plugins']['get']('TrackChangesEditing');_0x2572d5['plugins']['has']('MultiLevelList')&&(_0x5a605d['enableDefaultAttributesIntegration']('multiLevelList'),_0x5a605d['registerBlockAttribute']('listMarkerStyle'),_0x5a605d['descriptionFactory']['registerDescriptionCallback'](_0x5d4b85=>this['handleDescriptions'](_0x5d4b85)));}['handleDescriptions'](_0x369a47){const _0x58994c=this['editor']['locale'],{data:_0x2bbe76}=_0x369a47,_0x28c45c={'type':'format','content':''};if(_0x2bbe76&&'listMarkerStyle'==_0x2bbe76['key']){if(!_0x2bbe76['oldValue'])return{'type':'format','content':o(_0x58994c,'*Set\x20format:*\x20%0',o(_0x58994c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2bbe76['newValue']+')'};if(!_0x2bbe76['newValue']){let _0x36603e=_0x369a47['head'];for(;_0x36603e;){if(_0x36603e['data']&&'listType'==_0x36603e['data']['key']&&_0x36603e['data']['newValue'])return _0x28c45c;_0x36603e=_0x36603e['next'];}return{'type':'format','content':o(_0x58994c,'*Remove\x20format:*\x20%0',o(_0x58994c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2bbe76['oldValue']+')'};}}}}class kt extends _0x3a5fae{['afterInit'](){const _0x3ca060=this['editor'];if(!_0x3ca060['plugins']['has']('PageBreakEditing'))return;_0x3ca060['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x170eae=_0x3ca060['plugins']['get']('TrackChangesEditing'),_0x13b200=_0x3ca060['locale'];_0x170eae['descriptionFactory']['registerElementLabel']('pageBreak',_0xe4e5b6=>o(_0x13b200,'ELEMENT_PAGE_BREAK',_0xe4e5b6));}}class bt extends _0x3a5fae{['afterInit'](){const _0xd1edd0=this['editor'];if(!_0xd1edd0['plugins']['has']('Paragraph'))return;const _0x4c062d=_0xd1edd0['locale'],_0x5008c9=_0xd1edd0['plugins']['get']('TrackChangesEditing');_0x5008c9['descriptionFactory']['registerElementLabel']('paragraph',_0x3dcab0=>o(_0x4c062d,'ELEMENT_PARAGRAPH',_0x3dcab0)),_0x5008c9['enableDefaultAttributesIntegration']('paragraph'),_0x5008c9['enableCommand']('insertParagraph'),_0xd1edd0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xd1edd0),{'priority':'highest'}),_0xd1edd0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x483b02,_0x41a5b9,_0x4ad256)=>{_0x4ad256['options']['showSuggestionHighlights']&&nr(_0xd1edd0,{'showActiveMarker':!0x1})(_0x483b02,_0x41a5b9,_0x4ad256);},{'priority':'highest'});const _0x48c3ae=_0x5008c9['descriptionFactory'];_0x48c3ae['registerDescriptionCallback'](_0x2829c7=>{if('insertion'!==_0x2829c7['type'])return;const {start:_0x36a1f5,end:_0x2a74a2}=_0x2829c7['getFirstRange']();if(!_0x36a1f5['isTouching'](_0x2a74a2)||!_0x36a1f5['nodeAfter'])return;const _0x394846=_0xd1edd0['model']['schema'],_0x238ae6=_0x36a1f5['nodeAfter'];return _0x394846['isBlock'](_0x238ae6)&&!_0x394846['isLimit'](_0x238ae6)&&_0x394846['checkChild'](_0x238ae6,'$text')?{'type':'insertion','content':o(_0x4c062d,'*Insert:*\x20%0',_0x48c3ae['getItemLabel'](_0x238ae6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7eafc3=this['editor'],_0x498fd8=_0x7eafc3['locale'];_0x7eafc3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xac2516=>{if('formatBlock'!=_0xac2516['type'])return;const {data:_0x2654af}=_0xac2516;return _0x2654af&&'paragraph'==_0x2654af['commandName']?{'type':'format','content':o(_0x498fd8,'*Change\x20to:*\x20%0',o(_0x498fd8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5740ca,{showActiveMarker:_0x24e538=!0x0}={}){return(_0xdce40,_0x553b95,_0x2015ec)=>{const _0x105319=_0x5740ca['plugins']['get']('TrackChangesEditing'),_0x75dc98=_0x553b95['markerRange']['start'],_0x480568=_0x553b95['markerRange']['end'],_0x48f955=_0x5740ca['model']['schema'];if(!_0x75dc98['isTouching'](_0x480568)||!_0x75dc98['nodeAfter'])return;const _0x4e6028=_0x75dc98['nodeAfter'];if(_0x48f955['isBlock'](_0x4e6028)&&!_0x48f955['isLimit'](_0x4e6028)&&_0x48f955['checkChild'](_0x4e6028,'$text')){if(!_0x2015ec['consumable']['consume'](_0x553b95['markerRange'],_0xdce40['name']))return;const {authorId:_0x229e22}=_0x105319['_splitMarkerName'](_0x553b95['markerName']),_0x4ad44a=_0x2015ec['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x229e22}),_0x42a13c=_0x2015ec['mapper']['toViewPosition'](_0x480568);_0x24e538&&_0x105319['activeMarkers']['includes'](_0x553b95['markerName'])&&_0x2015ec['writer']['addClass']('ck-suggestion-marker--active',_0x4ad44a),_0x2015ec['writer']['insert'](_0x42a13c,_0x4ad44a),_0x2015ec['mapper']['bindElementToMarker'](_0x4ad44a,_0x553b95['markerName']);}};}class wt extends _0x3a5fae{['afterInit'](){const _0x9dc44=this['editor'];if(!_0x9dc44['plugins']['has']('RemoveFormatEditing'))return;_0x9dc44['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x445d51=this['editor'];_0x445d51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d2494=>{if('formatBlock'!=_0x2d2494['type']&&'formatInline'!=_0x2d2494['type'])return;const {data:_0x462081}=_0x2d2494;return _0x462081&&'removeFormat'==_0x462081['commandName']?{'type':'format','content':o(_0x445d51['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3a5fae{['afterInit'](){const _0x377676=this['editor'];if(!_0x377676['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4f1987=_0x377676['plugins']['get']('TrackChangesEditing');_0x4f1987['enableCommand']('goToPreviousRestrictedEditingException'),_0x4f1987['enableCommand']('goToNextRestrictedEditingException');const _0x368ee8=_0x377676['plugins']['get']('RestrictedEditingModeEditing');_0x368ee8['enableCommand']('trackChanges'),_0x368ee8['enableCommand']('acceptSuggestion'),_0x368ee8['enableCommand']('discardSuggestion'),_0x368ee8['enableCommand']('acceptAllSuggestions'),_0x368ee8['enableCommand']('discardAllSuggestions'),_0x368ee8['enableCommand']('acceptSelectedSuggestions'),_0x368ee8['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3a5fae{static get['requires'](){return[_0x3d0a5a];}['init'](){const _0x21481f=this['editor'],_0x2e29fa=_0x21481f['plugins']['get']('TrackChangesEditing');_0x2e29fa['enableCommand']('shiftEnter'),_0x21481f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x21481f),{'priority':'high'}),_0x21481f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x21481f),{'priority':'high'}),_0x21481f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24b3e1,_0x56eb16,_0x385f53)=>{_0x385f53['options']['showSuggestionHighlights']&&ge(_0x21481f,{'showActiveMarker':!0x1})(_0x24b3e1,_0x56eb16,_0x385f53);}),_0x2e29fa['descriptionFactory']['registerElementLabel']('softBreak',_0x1d1a7b=>o(_0x21481f['locale'],'ELEMENT_LINE_BREAK',_0x1d1a7b));}}function ge(_0x4b75c2,{showActiveMarker:_0x190b1c=!0x0}={}){return(_0x367c3d,_0x26bf59,_0x32171b)=>{const _0x301f34=_0x4b75c2['plugins']['get']('TrackChangesEditing');if(!_0x32171b['consumable']['test'](_0x26bf59['markerRange'],_0x367c3d['name']))return;const _0x93d07e=_0x4b75c2['model'];for(const _0x1c4acb of _0x26bf59['markerRange']['getItems']()){if(!_0x1c4acb['is']('element','softBreak'))continue;const _0x1689ba='deletion'==_0x26bf59['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x465988}=_0x301f34['_splitMarkerName'](_0x26bf59['markerName']),_0x25ca26=_0x32171b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1689ba,'data-author-id':_0x465988}),_0x3ce0ea=_0x32171b['mapper']['toViewPosition'](_0x93d07e['createPositionBefore'](_0x1c4acb));_0x190b1c&&_0x301f34['activeMarkers']['includes'](_0x26bf59['markerName'])&&_0x32171b['writer']['addClass']('ck-suggestion-marker--active',_0x25ca26),_0x32171b['writer']['insert'](_0x3ce0ea,_0x25ca26),_0x32171b['mapper']['bindElementToMarker'](_0x25ca26,_0x26bf59['markerName']);}};}class St extends _0x3a5fae{['afterInit'](){const _0x38b5b3=this['editor'],_0x4c8ec5=_0x38b5b3['model'],_0x25609f=_0x38b5b3['locale'];if(!_0x38b5b3['plugins']['has']('StandardEditingModeEditing'))return;const _0x3373ed=_0x38b5b3['plugins']['get']('TrackChangesEditing'),_0x256dd9='restrictedEditingException',_0x4e22c7=_0x38b5b3['commands']['get'](_0x256dd9);_0x3373ed['enableCommand'](_0x256dd9,(_0x54310a,_0x36563c={})=>{const _0x38f9a8=_0x4c8ec5['document']['selection'];if(_0x38f9a8['isCollapsed'])return void _0x54310a(_0x36563c);const _0xf53f09=void 0x0!==_0x36563c['forceValue']?_0x36563c['forceValue']:!_0x4e22c7['value'];_0x4c8ec5['change'](()=>{const _0x1c11f3=Array['from'](_0x38f9a8['getRanges']());for(const _0x305ada of _0x1c11f3){const _0x3d891f=_0xf53f09?[_0x305ada]:io(_0x256dd9,_0x305ada,_0x4c8ec5);for(const _0x3530dc of _0x3d891f)_0x3373ed['markInlineFormat'](_0x3530dc,{'commandName':_0x256dd9,'commandParams':[{'forceValue':_0xf53f09}]});}});}),_0x3373ed['descriptionFactory']['registerDescriptionCallback'](_0x47c6e7=>{if('formatBlock'!=_0x47c6e7['type']&&'formatInline'!=_0x47c6e7['type'])return;const {data:_0x583977}=_0x47c6e7;return _0x583977&&_0x583977['commandName']==_0x256dd9?_0x583977['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25609f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x25609f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x3a5fae{['afterInit'](){const _0x52500c=this['editor'];if(!_0x52500c['plugins']['has']('Style')||!_0x52500c['plugins']['has']('DataSchema'))return;const _0x34856e=_0x52500c['plugins']['get']('TrackChangesEditing'),_0x27d030=_0x52500c['locale'],_0xeda83a=_0x52500c['config']['get']('style')||{},_0x89f7eb=_0x52500c['plugins']['get']('GeneralHtmlSupport'),_0x8210ab=_0x52500c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x52500c['plugins']['get']('DataSchema'),_0xeda83a['definitions']);_0x34856e['enableDefaultAttributesIntegration']('style');const _0x499322=new Set();for(const _0x553c6e of _0x8210ab['block']){const _0x576c10=_0x89f7eb['getGhsAttributeNameForElement'](_0x553c6e['element']);_0x499322['add'](_0x576c10);}const _0x41f523=new Set();for(const _0x402899 of _0x8210ab['inline']){const _0x550ee7=_0x89f7eb['getGhsAttributeNameForElement'](_0x402899['element']);_0x41f523['add'](_0x550ee7);for(const _0x17cc96 of _0x402899['ghsAttributes'])_0x41f523['add'](_0x17cc96);}for(const _0x57b0b2 of _0x499322)_0x34856e['registerBlockAttribute'](_0x57b0b2),_0x34856e['descriptionFactory']['registerAttributeLabel'](_0x57b0b2,o(_0x27d030,'FORMAT_STYLE'));for(const _0xd58f53 of _0x41f523)_0x34856e['registerInlineAttribute'](_0xd58f53),_0x34856e['descriptionFactory']['registerAttributeLabel'](_0xd58f53,o(_0x27d030,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30bdee=this['editor'],_0x114578=_0x30bdee['locale'];_0x30bdee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e2c93=>{if('formatBlock'!=_0x2e2c93['type']&&'formatInline'!=_0x2e2c93['type'])return;const {data:_0x2a7b41}=_0x2e2c93;return _0x2a7b41&&'style'===_0x2a7b41['commandName']?_0x2a7b41['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x114578,'*Set\x20format:*\x20%0',_0x2a7b41['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x114578,'*Remove\x20format:*\x20%0',_0x2a7b41['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x3a5fae{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x326bc5){super(_0x326bc5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2592f9=this['editor'],_0x5a6a44=_0x2592f9['model']['document']['selection'];if(!_0x2592f9['plugins']['has']('TableEditing'))return;const _0x408692=_0x2592f9['locale'],_0x5e2bcf=_0x2592f9['plugins']['get']('TrackChangesEditing'),_0x2731db=_0x2592f9['plugins']['get']('TableUtils');_0x5e2bcf['descriptionFactory']['registerElementLabel']('table',_0x4533f9=>o(_0x408692,'ELEMENT_TABLE',_0x4533f9)),this['_setupColumnsRowsFixing'](),_0x5e2bcf['enableCommand']('insertTable'),_0x5e2bcf['enableCommand']('selectTableRow'),_0x5e2bcf['enableCommand']('selectTableColumn');for(const _0x4b3908 of['insertTableRowAbove','insertTableRowBelow']){const _0xec4abf=_0x2592f9['commands']['get'](_0x4b3908);_0x5e2bcf['enableCommand'](_0x4b3908,_0x3c19f6=>{_0x2592f9['model']['change'](_0x18e222=>{_0x3c19f6();const _0x4f9159='above'===_0xec4abf['order'],_0x59ed8b=_0x2731db['getSelectionAffectedTableCells'](_0x5a6a44),_0x1f5492=_0x2731db['getRowIndexes'](_0x59ed8b),_0x2135fb=_0x4f9159?_0x1f5492['first']-0x1:_0x1f5492['last']+0x1,_0x450e14=_0x59ed8b[0x0]['findAncestor']('table'),_0x3d09bc=_0x2731db['createTableWalker'](_0x450e14,{'startRow':_0x2135fb,'endRow':_0x2135fb}),_0x4cc662=Array['from'](_0x3d09bc)['map'](_0xb6df9c=>_0x18e222['createRangeOn'](_0xb6df9c['cell']));_0x5e2bcf['markMultiRangeInsertion'](_0x4cc662,'tableRow');});});}for(const _0x42fea3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1f9759=_0x2592f9['commands']['get'](_0x42fea3);_0x5e2bcf['enableCommand'](_0x42fea3,_0x4e6359=>{_0x2592f9['model']['change'](_0x31cb65=>{_0x4e6359();const _0x1446c8='left'===_0x1f9759['order'],_0x1ff955=_0x2731db['getSelectionAffectedTableCells'](_0x5a6a44),_0x3caa60=_0x2731db['getColumnIndexes'](_0x1ff955),_0x46fc33=_0x1446c8?_0x3caa60['first']-0x1:_0x3caa60['last']+0x1,_0x5b6be2=_0x1ff955[0x0]['findAncestor']('table'),_0x3c12be=_0x2731db['createTableWalker'](_0x5b6be2,{'startRow':0x0,'column':_0x46fc33,'includeAllSlots':!0x1}),_0x5cc359=Array['from'](_0x3c12be)['map'](_0x432d2d=>_0x31cb65['createRangeOn'](_0x432d2d['cell']));_0x5e2bcf['markMultiRangeInsertion'](_0x5cc359,'tableColumn');});});}for(const _0x513503 of['removeTableRow','removeTableColumn']){const _0x2169f7=_0x513503['substr'](0xb),_0xf441d1=_0x2169f7['toLowerCase'](),_0x1e792e=_0xf441d1['substr'](0x0,0x3)+'span',_0x4258d7='table'+_0x2169f7,_0x3c9716='min'+_0x2169f7,_0x5c9e16='max'+_0x2169f7;_0x5e2bcf['enableCommand'](_0x513503,()=>{_0x2592f9['model']['change'](_0x3c584c=>{const _0x226f8a=_0x2731db['getSelectionAffectedTableCells'](_0x5a6a44),_0x41fbea=_0x226f8a[0x0]['findAncestor']('table');let _0x2848f9;if('removeTableRow'==_0x513503){const _0x1c3a5f=_0x2731db['getRowIndexes'](_0x226f8a);_0x2848f9={'startRow':_0x1c3a5f['first'],'endRow':_0x1c3a5f['last'],'includeAllSlots':!0x0};}else{const _0x2cc2d3=_0x2731db['getColumnIndexes'](_0x226f8a);_0x2848f9={'startColumn':_0x2cc2d3['first'],'endColumn':_0x2cc2d3['last'],'includeAllSlots':!0x0};}const _0x225b4c=_0x2731db['createTableWalker'](_0x41fbea,_0x2848f9),_0x4f88ab=Array['from'](_0x225b4c)['map'](({cell:_0x13dfa9})=>_0x13dfa9),_0xa0143e=be(_0x4f88ab['filter'](_0x49b7a7=>_0x49b7a7['hasAttribute'](_0x1e792e))),_0x482ba4=be(_0x4f88ab['filter'](_0x3aa375=>!_0x3aa375['hasAttribute'](_0x1e792e)))['map'](_0xc84c87=>_0x3c584c['createRangeOn'](_0xc84c87)),_0x5ef84d=_0x5e2bcf['markMultiRangeDeletion'](_0x482ba4,_0x4258d7);if(_0x5ef84d&&('tableRow'==_0x5ef84d['subType']||'tableColumn'==_0x5ef84d['subType'])){const _0x4ad13b=this['_getSuggestionCoords'](_0x5ef84d);for(const _0x14ad9b of _0xa0143e){const _0x4f6ad7=_0x3c584c['createRangeOn'](_0x14ad9b),_0x2547f9=_0x2731db['getCellLocation'](_0x14ad9b),_0x2e7293=_0x14ad9b['getAttribute'](_0x1e792e)-0x1,_0x319b25=_0x4ad13b[_0x3c9716],_0x254389=_0x4ad13b[_0x5c9e16];_0x319b25<=_0x2547f9[_0xf441d1]&&_0x2547f9[_0xf441d1]+_0x2e7293<=_0x254389&&_0x5ef84d['addRange'](_0x4f6ad7);}}});});}function _0x2a6ff2(_0x2aee89){const _0x53db5=Array['from'](_0x5a6a44['getRanges']())['map'](_0xa6b349=>_0x3a302['fromRange'](_0xa6b349));_0x2592f9['model']['change'](_0x4d0b88=>{const _0x36f06e=_0x4d0b88['batch'];_0x2aee89=_0x2aee89['filter'](_0x92763c=>'$graveyard'!=_0x92763c['root']['rootName']),_0x4d0b88['setSelection'](_0x2aee89),_0x2592f9['commands']['get']('removeTableRow')['refresh'](),_0x2592f9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2592f9['model']['enqueueChange'](()=>{_0x2592f9['model']['enqueueChange'](_0x36f06e,_0x2f9cd8=>{const _0x47697b=_0x53db5['filter'](_0x488b6e=>'$graveyard'!=_0x488b6e['root']['rootName']);_0x47697b['length']>0x0&&_0x2f9cd8['setSelection'](_0x47697b);for(const _0x5a287d of _0x53db5)_0x5a287d['detach']();});});});}function _0x108c17(_0x158025){_0x2592f9['model']['change'](_0x34b8d5=>{const _0x1588a9=Array['from'](_0x5a6a44['getRanges']())['map'](_0x2dfa1d=>_0x3a302['fromRange'](_0x2dfa1d)),_0x4d3f37=[];for(const _0x319330 of _0x158025)for(const _0x1e1804 of _0x319330['getItems']({'shallow':!0x0}))_0x4d3f37['push'](_0x1e1804);for(const _0x42eafc of _0x4d3f37)'$graveyard'!=_0x42eafc['root']['rootName']&&(_0x34b8d5['setSelection'](_0x34b8d5['createPositionAt'](_0x42eafc,0x0)),_0x2592f9['commands']['get']('removeTableColumn')['refresh'](),_0x2592f9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3fe9ee=_0x1588a9['filter'](_0x29f075=>'$graveyard'!=_0x29f075['root']['rootName']);_0x3fe9ee['length']>0x0&&_0x34b8d5['setSelection'](_0x3fe9ee);for(const _0x1eed14 of _0x1588a9)_0x1eed14['detach']();});}function _0x4264af(_0x49efcb,_0x36854c){return _0x36854c['every'](_0x39ddd4=>_0x49efcb['some'](_0x444f87=>_0x444f87['end']['isEqual'](_0x39ddd4['start'])||_0x39ddd4['end']['isEqual'](_0x444f87['start'])));}function _0x35866a(_0x468d88,_0x202e1e){return!_0x468d88['some'](_0x532a68=>_0x202e1e['some'](_0x138ea9=>_0x532a68['isIntersecting'](_0x138ea9)))&&_0x468d88['some'](_0x396d7e=>_0x202e1e['some'](_0x435843=>_0x396d7e['end']['isTouching'](_0x435843['start'])));}_0x2592f9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x350ea1,_0x1c1a62,_0x8d408f)=>{if(!_0x8d408f['options']['showSuggestionHighlights'])return;const _0x14cc23=_0x1c1a62['item'];if(!_0x14cc23)return;const _0x3c0508=_0x8d408f['mapper']['toViewElement'](_0x14cc23);function _0x4207bf(_0x162cda){return Array['isArray'](_0x162cda)?_0x162cda:[_0x162cda];}_0x3c0508&&'tableCell'===_0x14cc23['name']&&_0x151a63(_0x3c0508,_0x8d408f['writer'],(_0x18fccb,_0x2f18af,_0x25d5f9)=>_0x25d5f9['addClass'](_0x4207bf(_0x2f18af['classes']),_0x18fccb),(_0x5b501f,_0x320164,_0x5af103)=>_0x5af103['removeClass'](_0x4207bf(_0x320164['classes']),_0x5b501f));},{'priority':'highest'}),_0x5e2bcf['descriptionFactory']['registerDescriptionCallback'](_0x11ea8e=>{if('insertion'!=_0x11ea8e['type']&&'deletion'!=_0x11ea8e['type'])return;const _0xa204e8=_0x11ea8e['getContainedElement']();if(null!=_0xa204e8&&_0xa204e8['is']('element','table')){if('insertion'==_0x11ea8e['type']){const _0x15fe18=_0x11ea8e['getItems']()['filter'](_0x29874f=>_0x29874f['is']('$textProxy'))['map'](_0x12e6a5=>_0x12e6a5['data']);if(_0x15fe18['length'])return{'type':'insertion','content':o(_0x408692,'*Insert:*\x20%0',o(_0x408692,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x15fe18['join']('\x20')+'\x22'))};}if('deletion'==_0x11ea8e['type']){const _0xaa6266=_0x11ea8e['getItems']()['filter'](_0x45d296=>_0x45d296['is']('$textProxy'))['map'](_0x1a371a=>_0x1a371a['data']);if(_0xaa6266['length'])return{'type':'deletion','content':o(_0x408692,'*Remove:*\x20%0',o(_0x408692,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xaa6266['join']('\x20')+'\x22'))};}}}),_0x5e2bcf['descriptionFactory']['registerDescriptionCallback'](_0x1e7406=>{if('tableRow'==_0x1e7406['subType']){const _0x4861b2=_0x1e7406['getItems']()['filter'](_0x288df5=>_0x288df5['is']('$textProxy'))['map'](_0x314b97=>_0x314b97['data']),_0x4427c9=this['_getSuggestionCoords'](_0x1e7406),_0x2f6c53=_0x4427c9['maxRow']-_0x4427c9['minRow']+0x1;if('insertion'==_0x1e7406['type'])return _0x4861b2['length']?{'type':'insertion','content':o(_0x408692,'*Insert:*\x20%0',o(_0x408692,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f6c53,'\x22'+_0x4861b2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x408692,'*Insert:*\x20%0',o(_0x408692,'ELEMENT_TABLE_ROW',_0x2f6c53))};if('deletion'==_0x1e7406['type'])return _0x4861b2['length']?{'type':'deletion','content':o(_0x408692,'*Remove:*\x20%0',o(_0x408692,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f6c53,'\x22'+_0x4861b2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x408692,'*Remove:*\x20%0',o(_0x408692,'ELEMENT_TABLE_ROW',_0x2f6c53))};}if('tableColumn'==_0x1e7406['subType']){const _0x360c02=_0x1e7406['getItems']()['filter'](_0x348407=>_0x348407['is']('$textProxy'))['map'](_0x373212=>_0x373212['data']),_0x2273d1=this['_getSuggestionCoords'](_0x1e7406),_0x2c5258=_0x2273d1['maxColumn']-_0x2273d1['minColumn']+0x1;if('insertion'==_0x1e7406['type'])return _0x360c02['length']?{'type':'insertion','content':o(_0x408692,'*Insert:*\x20%0',o(_0x408692,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c5258,'\x22'+_0x360c02['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x408692,'*Insert:*\x20%0',o(_0x408692,'ELEMENT_TABLE_COLUMN',_0x2c5258))};if('deletion'==_0x1e7406['type'])return _0x360c02['length']?{'type':'deletion','content':o(_0x408692,'*Remove:*\x20%0',o(_0x408692,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c5258,'\x22'+_0x360c02['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x408692,'*Remove:*\x20%0',o(_0x408692,'ELEMENT_TABLE_COLUMN',_0x2c5258))};}}),_0x5e2bcf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2a6ff2),_0x5e2bcf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2a6ff2),_0x5e2bcf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x108c17),_0x5e2bcf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x108c17),_0x5e2bcf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4264af),_0x5e2bcf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4264af),_0x5e2bcf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x35866a),_0x5e2bcf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x35866a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x38ef19=this['editor'],_0x22397d=_0x38ef19['model']['document']['selection'];return(_0x15bd65,_0x54fa68)=>{_0x38ef19['model']['change'](_0x1d7961=>{const {commandName:_0x5595e7,commandParams:_0x59605f}=_0x54fa68;let _0xd61e85=_0x15bd65[0x0]['end']['nodeBefore'];_0x59605f&&_0x59605f[0x0]&&!0x1===_0x59605f[0x0]['forceValue']&&(_0xd61e85=_0x15bd65[0x0]['start']['nodeAfter']);const _0x415e20=_0x1d7961['createRangeIn'](_0xd61e85);if('$graveyard'==_0x415e20['root']['rootName'])return;const _0xa61fec=Array['from'](_0x22397d['getRanges']())['map'](_0x56a8cb=>_0x3a302['fromRange'](_0x56a8cb));_0x1d7961['setSelection'](_0x415e20),_0x38ef19['commands']['get'](_0x5595e7)['refresh'](),_0x59605f['push']({'forceDefaultExecution':!0x0}),_0x38ef19['execute'](_0x5595e7,..._0x59605f);const _0x30a313=_0xa61fec['filter'](_0x2ad25a=>'$graveyard'!=_0x2ad25a['root']['rootName']);_0x30a313['length']>0x0&&_0x1d7961['setSelection'](_0x30a313);for(const _0xe64eaf of _0xa61fec)_0xe64eaf['detach']();});};}['_getCoordsForCells'](_0x4f5775){const _0x2c61b9=this['editor']['plugins']['get']('TableUtils');let _0x27cb23=Number['MAX_SAFE_INTEGER'],_0x3cf118=Number['MIN_SAFE_INTEGER'],_0x536420=Number['MAX_SAFE_INTEGER'],_0x16fc46=Number['MIN_SAFE_INTEGER'];for(const _0x1995ca of _0x4f5775){if('$graveyard'==_0x1995ca['root']['rootName'])continue;const {row:_0xa58db8,column:_0x426efe}=_0x2c61b9['getCellLocation'](_0x1995ca),_0x5ae317=_0x1995ca['hasAttribute']('rowspan')?_0x1995ca['getAttribute']('rowspan')-0x1:0x0,_0x3b57c7=_0x1995ca['hasAttribute']('colspan')?_0x1995ca['getAttribute']('colspan')-0x1:0x0;_0x27cb23=_0xa58db8<_0x27cb23?_0xa58db8:_0x27cb23,_0x3cf118=_0xa58db8+_0x5ae317>_0x3cf118?_0xa58db8+_0x5ae317:_0x3cf118,_0x536420=_0x426efe<_0x536420?_0x426efe:_0x536420,_0x16fc46=_0x426efe+_0x3b57c7>_0x16fc46?_0x426efe+_0x3b57c7:_0x16fc46;}return{'minRow':_0x27cb23,'maxRow':_0x3cf118,'minColumn':_0x536420,'maxColumn':_0x16fc46};}['_setupColumnsRowsFixing'](){const _0x323f6e=this['editor'],_0x5d1417=_0x323f6e['plugins']['get']('TrackChangesEditing'),_0x2d3dd4=_0x323f6e['plugins']['get']('TableUtils');_0x323f6e['model']['document']['on']('change:data',()=>{const _0x4ca388=Array['from'](_0x323f6e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x517919,data:_0x5d2b90}of _0x4ca388){const {group:_0x3fc8e8,id:_0x9ce24c,subType:_0x45dd23}=_0x5d1417['_splitMarkerName'](_0x517919);if('suggestion'!=_0x3fc8e8)continue;if(null!=_0x5d2b90['oldRange'])continue;const _0x576d5b=_0x5d1417['getSuggestion'](_0x9ce24c);this['_tablePostFixingSubtypes']['includes'](_0x45dd23)&&this['_tableSuggestions']['add'](_0x576d5b);}},{'priority':'low'});const _0x4a5fb2=(_0x4aee74,_0x2abffa)=>{let _0x2c6fcf=!0x1;const _0x19e412=_0x2abffa['createRangeOn'](_0x4aee74),_0x4fb992=_0x4aee74['findAncestor']('table'),_0x288b78=_0x2d3dd4['getCellLocation'](_0x4aee74);for(const _0x532a50 of this['_tableSuggestions']){const _0xfdda72=_0x532a50['subType'],_0x378fdf=_0xfdda72['startsWith']('tablePaste'),_0x3bb74e=_0xfdda72['substr'](_0x378fdf?0xa:0x5),_0x319530=_0x3bb74e['toLowerCase'](),_0x5ffedc=_0x319530['substr'](0x0,0x3)+'span',_0x28b6b8='min'+_0x3bb74e,_0x401b6d='max'+_0x3bb74e;if(!_0x532a50['isInContent'])continue;if(_0x4fb992!=_0x532a50['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x532a50['isIntersectingWithRange'](_0x19e412))continue;const _0xcd1072=_0x4aee74['hasAttribute'](_0x5ffedc)?_0x4aee74['getAttribute'](_0x5ffedc)-0x1:0x0,_0x401db8=this['_getSuggestionCoords'](_0x532a50),_0x522abf=_0x401db8[_0x28b6b8],_0x4342fe=_0x401db8[_0x401b6d];_0x522abf<=_0x288b78[_0x319530]&&_0x288b78[_0x319530]+_0xcd1072<=_0x4342fe&&(_0x532a50['addRange'](_0x19e412),_0x2c6fcf=!0x0);}return _0x2c6fcf;};_0x323f6e['model']['document']['registerPostFixer'](_0x3d610c=>{let _0x2a0249=!0x1;for(const _0x6bd57e of _0x323f6e['model']['document']['differ']['getChanges']())if('insert'==_0x6bd57e['type']){if('tableRow'==_0x6bd57e['name']){for(const _0x5762ee of _0x6bd57e['position']['nodeAfter']['getChildren']())_0x2a0249=_0x2a0249||_0x4a5fb2(_0x5762ee,_0x3d610c);}else'tableCell'==_0x6bd57e['name']&&(_0x2a0249=_0x2a0249||_0x4a5fb2(_0x6bd57e['position']['nodeAfter'],_0x3d610c));}return _0x2a0249;});}['_getSuggestionCoords'](_0x3b3cdf){return this['_getCoordsForCells'](_0x3b3cdf['getRanges']()['map'](_0x5e7fc1=>_0x5e7fc1['start']['nodeAfter']));}}function be(_0x558163){return Array['from'](new Set(_0x558163)['values']());}class vt extends _0x3a5fae{static get['requires'](){return[It];}['afterInit'](){const _0x142e29=this['editor'],_0x47fff1=_0x142e29['model']['document']['selection'],_0x38ba7c=_0x142e29['locale'];if(!_0x142e29['plugins']['has']('TableEditing'))return;const _0x14b578=_0x142e29['plugins']['get']('TrackChangesEditing'),_0x8b5264=_0x142e29['plugins']['get']('TableUtils'),_0x3fad0c=_0x142e29['plugins']['get'](It);_0x3fad0c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x14b578['enableCommand']('mergeTableCells',()=>{const _0x554a70=_0x8b5264['getSelectionAffectedTableCells'](_0x142e29['model']['document']['selection']);_0x142e29['model']['change'](()=>{_0x14b578['markMultiRangeBlockFormat'](_0x554a70,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x142e29['commands']['get']('mergeTableCells')['on']('execute',(_0x694968,_0x4f8819)=>{_0x142e29['commands']['get']('trackChanges')['value']&&(_0x4f8819['length']>0x0&&_0x4f8819[_0x4f8819['length']-0x1]&&_0x4f8819[_0x4f8819['length']-0x1]['forceDefaultExecution']||_0x14b578['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x694968['stop']());},{'priority':'highest'});for(const _0x512f15 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x409cae=_0x142e29['commands']['get'](_0x512f15);_0x14b578['enableCommand'](_0x512f15,()=>{const _0x31d9dd=_0x142e29['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc581f1=>_0xc581f1['is']('element','tableCell')),_0x106052=_0x409cae['value'];_0x142e29['model']['change'](()=>{_0x14b578['markMultiRangeBlockFormat']([_0x31d9dd,_0x106052],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4fde79 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x593e19=_0x142e29['commands']['get'](_0x4fde79);_0x14b578['enableCommand'](_0x4fde79,()=>{const _0x4af142=_0x8b5264['getSelectionAffectedTableCells'](_0x142e29['model']['document']['selection'])[0x0],_0x4f4dac=_0x4af142['findAncestor']('table'),{column:_0x5ae3f0,row:_0x626b7d}=_0x8b5264['getCellLocation'](_0x4af142);let _0x3024b3=[];if('horizontally'==_0x593e19['direction']){const _0x1dac29=_0x8b5264['createTableWalker'](_0x4f4dac,{'startRow':_0x626b7d,'endRow':_0x626b7d,'includeAllSlots':!0x0});_0x3024b3=Array['from'](_0x1dac29)['map'](_0x21a5ca=>_0x21a5ca['cell']);}else{const _0x1c8e77=_0x8b5264['createTableWalker'](_0x4f4dac,{'column':_0x5ae3f0,'includeAllSlots':!0x0});_0x3024b3=Array['from'](_0x1c8e77)['map'](_0x51dd32=>_0x51dd32['cell']);}_0x142e29['model']['change'](_0x33c674=>{_0x14b578['markBlockFormat'](_0x33c674['createRangeOn'](_0x4af142),{'commandName':_0x4fde79,'commandParams':[]},_0x3024b3,_0x4fde79);});});}_0x14b578['descriptionFactory']['registerDescriptionCallback'](_0x3c4452=>{if('formatBlock'!=_0x3c4452['type']&&'formatInline'!=_0x3c4452['type'])return;const {data:_0x251dda}=_0x3c4452;return _0x251dda&&'mergeTableCells'==_0x251dda['commandName']?{'type':'format','content':o(_0x38ba7c,'*Merge\x20cells*')}:void 0x0;}),_0x14b578['descriptionFactory']['registerDescriptionCallback'](_0xbad28d=>{if('formatBlock'!=_0xbad28d['type']&&'formatInline'!=_0xbad28d['type'])return;const {data:_0x53c9d0}=_0xbad28d;return _0x53c9d0?'splitTableCellVertically'==_0x53c9d0['commandName']?{'type':'format','content':o(_0x38ba7c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x53c9d0['commandName']?{'type':'format','content':o(_0x38ba7c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x6d6027=_0x3fad0c['_acceptFormatSuggestionCallbackFactory']();for(const _0x550ec8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x14b578['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x550ec8,'accept',_0x6d6027);for(const _0x4e837f of['splitTableCellVertically','splitTableCellHorizontally'])_0x14b578['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e837f,'accept',_0x6d6027);_0x14b578['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1975bb=>{_0x142e29['model']['change'](_0x287ab2=>{const _0x38be58=Array['from'](_0x47fff1['getRanges']())['map'](_0x12b1cd=>_0x3a302['fromRange'](_0x12b1cd));_0x287ab2['setSelection'](_0x1975bb),_0x142e29['commands']['get']('mergeTableCells')['refresh'](),_0x142e29['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1714a=_0x38be58['filter'](_0x4bb8d1=>'$graveyard'!=_0x4bb8d1['root']['rootName']);_0x1714a['length']>0x0&&_0x287ab2['setSelection'](_0x1714a);for(const _0x255ed4 of _0x38be58)_0x255ed4['detach']();});});for(const _0xa0948c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xa7131d=_0x142e29['commands']['get'](_0xa0948c);_0xa7131d['on']('set:isEnabled',(_0x5d78e7,_0x1ed99a,_0x3dfd89)=>{if(_0x3dfd89){const _0x182a94=_0x142e29['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x276848=>_0x276848['is']('element','tableCell'));this['_areMergableCells'](_0xa7131d['value'],_0x182a94)||(_0x5d78e7['return']=!0x1,_0x5d78e7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x19eea4=this['editor']['commands']['get']('mergeTableCells'),_0x4e2e9c=this['editor']['plugins']['get']('TableUtils');if(!_0x19eea4['isEnabled'])return!0x1;const _0x333c4b=_0x4e2e9c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x30ebb0 of _0x333c4b)for(const _0x54c2bd of _0x333c4b)if(_0x30ebb0!=_0x54c2bd&&!this['_areMergableCells'](_0x30ebb0,_0x54c2bd))return!0x1;return!0x0;}['_areMergableCells'](_0x150ae7,_0x377bef){const _0x284459=this['editor']['plugins']['get']('TrackChangesEditing'),_0x222006=this['editor']['model']['createRangeOn'](_0x150ae7),_0xce11b2=this['editor']['model']['createRangeOn'](_0x377bef),_0x475590=new Set(),_0x1124b2=new Set();for(const _0x309acd of _0x284459['getSuggestions']())if(('insertion'==_0x309acd['type']||'deletion'==_0x309acd['type']||'mergeTableCells'==_0x309acd['subType'])&&_0x309acd['isInContent']){for(const _0x1de5c8 of _0x309acd['getRanges']())_0x1de5c8['containsRange'](_0x222006,!0x0)&&_0x475590['add'](_0x309acd['type']+':'+_0x309acd['author']['id']),_0x1de5c8['containsRange'](_0xce11b2,!0x0)&&_0x1124b2['add'](_0x309acd['type']+':'+_0x309acd['author']['id']);}if(_0x475590['size']!=_0x1124b2['size'])return!0x1;for(const _0x4d9274 of _0x475590)if(!_0x1124b2['has'](_0x4d9274))return!0x1;return!0x0;}}class Ct extends _0x3a5fae{static get['requires'](){return[It];}['afterInit'](){const _0x518e93=this['editor'];if(!_0x518e93['plugins']['has']('TableEditing'))return;const _0x4c2de6=_0x518e93['locale'],_0x2b80cf=_0x518e93['plugins']['get']('TrackChangesEditing');_0x2b80cf['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2b80cf['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2b80cf['registerBlockAttribute']('headingRows'),_0x2b80cf['registerBlockAttribute']('headingColumns'),_0x2b80cf['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4c2de6,'FORMAT_HEADER_ROW')),_0x2b80cf['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4c2de6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5f4cb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f25f0=this['editor']['plugins']['get']('TableUtils'),_0x333e2d=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x15d047({showActiveMarker:_0x531a88=!0x0,setDataAttribute:_0x5bf2a6=!0x0}={}){return(_0x3f549f,_0x49e522,_0x5689e5)=>{const {type:_0x5e14c7,id:_0x2c219b}=_0x5f4cb8['_splitMarkerName'](_0x49e522['markerName']),_0x3da3f0=_0x5f4cb8['getSuggestion'](_0x2c219b),_0x48f61c=_0x3da3f0['data'];if('formatBlock'!=_0x3da3f0['type']||!_0x48f61c||'setTableColumnHeader'!=_0x48f61c['commandName'])return;if(_0x49e522['item'])return void _0x3f549f['stop']();if(!_0x5689e5['consumable']['consume'](_0x49e522['markerRange'],_0x3f549f['name']))return;const _0x2b8e36=_0x49e522['markerRange']['start']['nodeAfter'],_0x46b1bd=_0x49e522['markerRange']['end']['nodeBefore'],_0x20546c=_0x2b8e36['parent']['parent'],{column:_0x1bf690}=_0x3f25f0['getCellLocation'](_0x2b8e36),{column:_0x275dee}=_0x3f25f0['getCellLocation'](_0x46b1bd);for(let _0x11fd41=_0x1bf690;_0x11fd41<=_0x275dee;_0x11fd41++){const _0x7793d7=_0x3f25f0['createTableWalker'](_0x20546c,{'column':_0x11fd41,'includeAllSlots':!0x1});for(const _0x52ec75 of _0x7793d7){const _0x5c6bb4=_0x52ec75['cell'],_0x1da953=_0x5689e5['mapper']['toViewElement'](_0x5c6bb4);_0x5689e5['writer']['addClass']('ck-suggestion-marker-'+_0x5e14c7,_0x1da953),_0x5bf2a6&&_0x5689e5['writer']['setAttribute']('data-suggestion',_0x2c219b,_0x1da953),_0x5689e5['mapper']['bindElementToMarker'](_0x1da953,_0x49e522['markerName']),_0x531a88&&(_0x5f4cb8['activeMarkers']['includes'](_0x49e522['markerName'])?_0x5689e5['writer']['addClass']('ck-suggestion-marker--active',_0x1da953):_0x5689e5['writer']['removeClass']('ck-suggestion-marker--active',_0x1da953));}}};}_0x5f4cb8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x333e2d),_0x5f4cb8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x333e2d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x15d047(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x210fc4,_0x2bc116,_0x4cec65)=>{_0x4cec65['options']['showSuggestionHighlights']&&_0x15d047({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x210fc4,_0x2bc116,_0x4cec65);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x557719,_0x363a94,_0x505101)=>{const {type:_0x1dbe3d,id:_0x3632a0}=_0x5f4cb8['_splitMarkerName'](_0x363a94['markerName']),_0x42746e=_0x5f4cb8['getSuggestion'](_0x3632a0),_0x5cb0e3=_0x42746e['data'];if('formatBlock'!=_0x42746e['type']||!_0x5cb0e3||'setTableColumnHeader'!=_0x5cb0e3['commandName'])return;const _0x1513ce=_0x505101['mapper']['markerNameToElements'](_0x363a94['markerName']);if(_0x1513ce){for(const _0x365193 of _0x1513ce)_0x505101['writer']['removeClass']('ck-suggestion-marker-'+_0x1dbe3d,_0x365193),_0x505101['writer']['removeClass']('ck-suggestion-marker--active',_0x365193),_0x505101['writer']['removeAttribute']('data-suggestion',_0x365193),_0x505101['mapper']['unbindElementFromMarkerName'](_0x365193,_0x363a94['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x193255=this['editor'],_0x245fc7=_0x193255['locale'];function _0x251437(_0x443713){return{'type':'format','content':o(_0x245fc7,'*Format:*\x20%0',_0x443713)};}_0x193255['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58ad9f=>{if('formatBlock'!=_0x58ad9f['type'])return;const {data:_0x2ded3c}=_0x58ad9f;if(_0x2ded3c){if('setTableRowHeader'==_0x2ded3c['commandName']){const _0x46a82b=_0x2ded3c['commandParams'][0x0]['forceValue'];return _0x251437(o(_0x245fc7,_0x46a82b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2ded3c['commandName']){const _0xe2baa=_0x2ded3c['commandParams'][0x0]['forceValue'];return _0x251437(o(_0x245fc7,_0xe2baa?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x14188c=>[_0x14188c,null]));class _t extends _0x3a5fae{static get['requires'](){return[It];}['afterInit'](){const _0x12793b=this['editor'];if(!_0x12793b['plugins']['has']('TableClipboard'))return;const _0x3e02d8=_0x12793b['plugins']['get']('TrackChangesEditing'),_0xa4f70a=_0x12793b['plugins']['get']('TableUtils'),_0x3384ef=_0x12793b['plugins']['get'](It),_0x2d6a93=_0x12793b['plugins']['get']('TableClipboard');_0x3384ef['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x12793b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x12793b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x25a100=null;_0x12793b['model']['on']('insertContent',(_0xbb3e48,_0x562b34)=>{const [_0x25d7be,_0x493eb5]=_0x562b34,_0x4e7304=_0x562b34[_0x562b34['length']-0x1];_0x4e7304&&_0x4e7304['forceDefaultExecution']||_0x3e02d8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x16223f,_0xc2558f,_0x85e22b,_0x4723e5,_0x53ce8a){if(_0xc2558f&&!_0xc2558f['is']('documentSelection'))return!0x1;const _0x338200=_0x53ce8a['getTableIfOnlyTableInContent'](_0x16223f,_0x85e22b);if(!_0x338200||!Re(_0x338200,void 0x0,_0x4723e5))return!0x1;const _0xefa31=_0x4723e5['getSelectionAffectedTableCells'](_0x85e22b['document']['selection']);if(!_0xefa31['length'])return!0x1;const _0x2787e7=_0xefa31[0x0]['findAncestor']('table'),_0x119eb8=_0x4723e5['getRowIndexes'](_0xefa31),_0x3fbc54=_0x4723e5['getColumnIndexes'](_0xefa31),_0x16cad8={'startRow':_0x119eb8['first'],'endRow':_0x119eb8['last'],'startColumn':_0x3fbc54['first'],'endColumn':_0x3fbc54['last']};return 0x1==_0xefa31['length']&&(_0x16cad8['endRow']+=_0x4723e5['getRows'](_0x338200)-0x1,_0x16cad8['endColumn']+=_0x4723e5['getColumns'](_0x338200)-0x1),Re(_0x2787e7,_0x16cad8,_0x4723e5);}(_0x25d7be,_0x493eb5,_0x12793b['model'],_0xa4f70a,_0x2d6a93)&&(_0xbb3e48['stop'](),_0x25a100={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x12793b['model']['change'](()=>{_0x12793b['model']['insertContent'](_0x562b34[0x0],_0x562b34[0x1],_0x562b34[0x2],{'forceDefaultExecution':!0x0});const _0x1c77b7=_0x265842(),{rowInsertionRanges:_0x3e3c6b,columnInsertionRanges:_0x3ce12a,insertionRanges:_0x13c7dc,deletionRanges:_0x15239f,cells:_0x5b5ac2}=_0x25a100;_0x3e3c6b['length']&&_0x3e02d8['markMultiRangeInsertion'](_0x3e3c6b,'tablePasteRow',{'tablePasteChainId':_0x1c77b7}),_0x3ce12a['length']&&_0x3e02d8['markMultiRangeInsertion'](_0x3ce12a,'tablePasteColumn',{'tablePasteChainId':_0x1c77b7}),_0x13c7dc['length']&&(_0x3e02d8['markMultiRangeInsertion'](_0x13c7dc,'tablePaste',{'tablePasteChainId':_0x1c77b7,'skipNestingCheck':!0x0}),_0x13c7dc['forEach'](_0x4b4102=>_0x4b4102['detach']?.())),_0x15239f['length']&&(_0x3e02d8['markMultiRangeDeletion'](_0x15239f,'tablePaste',{'tablePasteChainId':_0x1c77b7,'skipNestingCheck':!0x0}),_0x15239f['forEach'](_0x4a084f=>_0x4a084f['detach']?.()));const _0x589c5b=_0x3e02d8['markMultiRangeBlockFormat'](_0x5b5ac2['map'](({element:_0x4d9ff3})=>_0x4d9ff3),{'formatGroupId':_0x265842()},[],'tablePasteCell',{'tablePasteChainId':_0x1c77b7});if(_0x589c5b){const _0x1687f1=_0x589c5b['getMarkers'](),_0x5959b0=[];for(const {element:_0x39b953,attributes:_0x40f05f}of _0x5b5ac2){if(!_0x40f05f)continue;const _0x152433=_0x12793b['model']['createRangeOn'](_0x39b953),_0xa04e2a=_0x1687f1['find'](_0x1191ab=>_0x1191ab['getRange']()['isEqual'](_0x152433));_0xa04e2a&&_0x5959b0['push']([_0xa04e2a['name'],_0x40f05f]);}_0x5959b0['length']&&_0x589c5b['setAttribute']('markerAttributes',Object['fromEntries'](_0x5959b0));}_0x25a100=null;}));},{'priority':_0x236a31['high']+0xa}),_0x12793b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x379f30,_0x2b1078)=>{const [_0x29af11,_0x243458,,_0x3dea8a]=_0x2b1078;if(!_0x25a100)return;_0x379f30['stop']();const _0x5bbb36=_0x29af11['cell'],_0x1ec65a=_0x243458,_0x549b2d=ke(_0x5bbb36),_0x448aee=ke(_0x1ec65a);_0x379f30['return']=_0x5bbb36;let _0x4fea18=null,_0x3754af=null;if(_0x448aee||_0x549b2d){if(_0x549b2d&&!_0x448aee){_0x3dea8a['remove'](_0x5bbb36['getChild'](0x0));for(const _0x49bdab of Array['from'](_0x1ec65a['getChildren']()))_0x3dea8a['insert'](_0x49bdab,_0x5bbb36,'end');const _0x566f29=_0x25a100['rowInsertionIndexes']['includes'](_0x29af11['row']),_0x1264e7=_0x25a100['columnInsertionIndexes']['includes'](_0x29af11['column']);_0x566f29||_0x1264e7||(_0x4fea18=_0x3a302['fromRange'](_0x3dea8a['createRangeIn'](_0x5bbb36)));}else _0x448aee&&!_0x549b2d&&(_0x3754af=_0x3dea8a['createRangeIn'](_0x5bbb36));}else{const _0x54f60b=_0x3dea8a['createElement']('tableCellSuggestion'),_0x47587e=_0x3dea8a['createElement']('tableCellSuggestion');_0x3dea8a['wrap'](_0x3dea8a['createRangeIn'](_0x5bbb36),_0x47587e),_0x3dea8a['insert'](_0x54f60b,_0x5bbb36,0x0);for(const _0x2ef7c6 of Array['from'](_0x1ec65a['getChildren']()))_0x3dea8a['insert'](_0x2ef7c6,_0x54f60b,'end');_0x4fea18=_0x3a302['fromRange'](_0x3dea8a['createRangeOn'](_0x54f60b)),_0x3754af=_0x3a302['fromRange'](_0x3dea8a['createRangeOn'](_0x47587e));}const _0x5640a9=Array['from'](_0x1ec65a['getAttributes']())['filter'](([_0x3d556f])=>Pe['includes'](_0x3d556f));_0x25a100['cells']['push']({'element':_0x5bbb36,'attributes':_0x5640a9['length']?Object['fromEntries'](_0x5640a9):null}),_0x4fea18&&_0x25a100['insertionRanges']['push'](_0x4fea18),_0x3754af&&_0x25a100['deletionRanges']['push'](_0x3754af);},{'priority':'high'}),_0xa4f70a['on']('insertColumns',(_0x33254c,_0x574b2b)=>{const [_0x1fde53,_0x195f39={}]=_0x574b2b;if(!_0x25a100)return;const _0x599b7a=_0x195f39['at']||0x0,_0x548cda=_0x195f39['columns']||0x1;_0x25a100['columnInsertionIndexes']=new Array(_0x548cda)['fill'](_0x599b7a)['map']((_0x4f4e89,_0x361876)=>_0x4f4e89+_0x361876);for(const {cell:_0x58d3a0}of _0xa4f70a['createTableWalker'](_0x1fde53,{'startColumn':_0x599b7a,'endColumn':_0x599b7a+_0x548cda-0x1}))_0x25a100['columnInsertionRanges']['push'](_0x12793b['model']['createRangeOn'](_0x58d3a0));},{'priority':'low'}),_0xa4f70a['on']('insertRows',(_0xf3be70,_0x8c83b5)=>{const [_0x301a25,_0x36dd3f={}]=_0x8c83b5;if(!_0x25a100)return;const _0x48a144=_0x36dd3f['at']||0x0,_0x51fde9=_0x36dd3f['rows']||0x1;_0x25a100['rowInsertionIndexes']=new Array(_0x51fde9)['fill'](_0x48a144)['map']((_0x55a9ba,_0x25ea0c)=>_0x55a9ba+_0x25ea0c);for(const {cell:_0x293a70}of _0xa4f70a['createTableWalker'](_0x301a25,{'startRow':_0x48a144,'endRow':_0x48a144+_0x51fde9-0x1}))_0x25a100['rowInsertionRanges']['push'](_0x12793b['model']['createRangeOn'](_0x293a70));},{'priority':'low'}),_0x3e02d8['descriptionFactory']['registerDescriptionCallback'](_0x1afc13=>{if(_0x1afc13['subType']&&_0x1afc13['subType']['startsWith']('tablePaste'))return _0x1afc13['previous']?{}:{'type':'insertion','content':o(_0x12793b['locale'],'*Replace\x20table\x20cells*')};});const _0x4920ad=()=>!0x1;for(const _0x44aef2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3e02d8['_suggestionFactory']['registerCustomCallback']('insertion',_0x44aef2,'join',_0x4920ad),_0x3e02d8['_suggestionFactory']['registerCustomCallback']('deletion',_0x44aef2,'join',_0x4920ad),_0x3e02d8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44aef2,'join',_0x4920ad);_0x3e02d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4920ad),_0x3e02d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xa796cd,_0xf69b5a,_0x42aa81)=>{const _0x435867=_0xa796cd['map'](_0x181fb1=>_0x181fb1['getContainedElement']())['filter'](_0x22b2d2=>_0x22b2d2),_0x5a9443=new Map(_0x435867['map'](_0x37b6da=>[_0x37b6da,null]));if(_0x25a100){for(const {element:_0x51bce6,attributes:_0x563ecb}of _0x25a100['cells'])_0x563ecb&&_0x5a9443['set'](_0x51bce6,_0x563ecb);}else{if(_0x42aa81&&_0x42aa81['markerAttributes'])for(const [_0x177063,_0x56f981]of Object['entries'](_0x42aa81['markerAttributes'])){const _0x2cbe85=_0x12793b['model']['markers']['get'](_0x177063),_0x5e0b65=_0x2cbe85?_0x2cbe85['getRange']()['getContainedElement']():null;_0x5e0b65&&_0x5a9443['set'](_0x5e0b65,_0x56f981);}}_0x12793b['model']['change'](_0x1deb1a=>{for(const [_0x57b2ce,_0x453541]of _0x5a9443)_0x1deb1a['setAttributes']({...we,..._0x453541},_0x57b2ce);});});const _0x2c41fb=(_0xf2ea5f,_0x136823)=>{_0x3e02d8['_suggestionFactory']['registerCustomCallback'](_0xf2ea5f,'tablePaste',_0x136823,(_0x1e7bc4,_0x5cdf15,_0x5bc319)=>{_0x12793b['model']['change'](_0x40414b=>{const _0x3c2de6=[];for(const _0x166389 of _0x1e7bc4){const _0x41fd57=_0x166389['start']['nodeAfter'];_0x41fd57['is']('element','tableCellSuggestion')&&_0x3c2de6['push'](_0x41fd57);}_0x3e02d8['_suggestionFactory']['getSuggestionCallback'](_0xf2ea5f,null,_0x136823)(_0x1e7bc4,_0x5cdf15,_0x5bc319);for(const _0x1eec94 of _0x3c2de6)'$graveyard'!=_0x1eec94['root']['rootName']&&_0x40414b['unwrap'](_0x1eec94);});});};_0x2c41fb('insertion','accept'),_0x2c41fb('insertion','discard'),_0x2c41fb('deletion','accept'),_0x2c41fb('deletion','discard'),_0x3e02d8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xa209a4=>{const _0x337b32=_0xa209a4['map'](_0x24632e=>_0x24632e['getContainedElement']()),_0x17974c=_0x337b32[0x0]['findAncestor']('table'),{minRow:_0x4a45ab,maxRow:_0x49aaa5}=_0x3384ef['_getCoordsForCells'](_0x337b32);_0xa4f70a['removeRows'](_0x17974c,{'at':_0x4a45ab,'rows':_0x49aaa5-_0x4a45ab+0x1});}),_0x3e02d8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4a857a=>{const _0x789121=_0x4a857a['map'](_0x5464cd=>_0x5464cd['getContainedElement']()),_0x1df9ff=_0x789121[0x0]['findAncestor']('table'),{minColumn:_0x2efaf9,maxColumn:_0x30d6d3}=_0x3384ef['_getCoordsForCells'](_0x789121);_0xa4f70a['removeColumns'](_0x1df9ff,{'at':_0x2efaf9,'columns':_0x30d6d3-_0x2efaf9+0x1});});const _0x436742=(_0x33d692,_0x4dc969)=>{if(!_0x4dc969['subType']||!_0x4dc969['subType']['startsWith']('tablePaste'))return;const _0x2dad30=_0x4dc969['attributes']['tablePasteChainId'],_0x1c1fba=_0x3e02d8['getSuggestions']()['filter'](_0x27de71=>_0x27de71['isInContent']&&_0x27de71['attributes']&&_0x27de71['attributes']['tablePasteChainId']==_0x2dad30);_0x1c1fba['length']&&_0x4dc969['getAllAdjacentSuggestions']()['length']!=_0x1c1fba['length']&&_0x1c1fba['reduce']((_0x1e15a5,_0x4a67f1)=>(_0x1e15a5['next']=_0x4a67f1,_0x4a67f1['previous']=_0x1e15a5,_0x4a67f1));};function _0x44c7d2(_0x28ae5e,_0x32c60d=!0x0){const {id:_0x1cfca5,authorId:_0x542823}=_0x3e02d8['_splitMarkerName'](_0x28ae5e['markerName']),_0xfb8657=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1f1d7d=_0x3e02d8['activeMarkers']['includes'](_0x28ae5e['markerName']);return _0x1f1d7d&&_0xfb8657['push']('ck-suggestion-marker--active'),{'classes':_0xfb8657,'attributes':{'data-suggestion':_0x1cfca5,'data-author-id':_0x542823},'priority':_0x1f1d7d&&_0x32c60d?0xbc2:0xbb8};}_0x3e02d8['on']('suggestionLoaded',_0x436742,{'priority':'high'}),_0x3e02d8['on']('suggestionUnloaded',_0x436742,{'priority':'high'}),_0x12793b['model']['document']['registerPostFixer'](()=>{let _0x21caaa=!0x1;const _0x1f2c21=Array['from'](_0x12793b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28bd48,data:_0x397a26}of _0x1f2c21){const {group:_0x318158,type:_0x46b15d,id:_0x54fc48}=_0x3e02d8['_splitMarkerName'](_0x28bd48);if('suggestion'!=_0x318158||'deletion'!=_0x46b15d||_0x397a26['oldRange'])continue;if(!_0x3e02d8['hasSuggestion'](_0x54fc48))continue;const _0x19179b=_0x3e02d8['getSuggestion'](_0x54fc48)['getRanges'](),_0x369be9=_0x12793b['plugins']['get']('Users')['me'];for(const _0x42b32b of _0x3e02d8['getSuggestions']()){if(!_0x42b32b['isInContent']||_0x42b32b['author']!=_0x369be9)continue;if('formatBlock'!=_0x42b32b['type']||'tablePasteCell'!=_0x42b32b['subType'])continue;if(_0x42b32b['getRanges']()['every'](_0x9313cd=>_0x19179b['some'](_0x394b31=>_0x394b31['containsRange'](_0x9313cd,!0x0)))){for(const _0x2ea98d of _0x42b32b['getAllAdjacentSuggestions']())_0x2ea98d['isInContent']&&(_0x2ea98d['discard'](),_0x21caaa=!0x0);}}}return _0x21caaa;}),_0x12793b['model']['document']['registerPostFixer'](_0x3fb0ad=>{const _0x530602=_0x12793b['commands']['get']('redo');if(!_0x530602||!_0x530602['_createdBatches']['has'](_0x3fb0ad['batch']))return!0x1;let _0x9d30c0=!0x1;const _0x349207=_0x12793b['plugins']['get']('Users')['me'],_0x107989=_0x12793b['model']['document']['differ']['getChanges'](),_0x42ff2d=Array['from'](_0x12793b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x42c7ca,data:_0x875c49})=>{const {group:_0x1a5402,subType:_0x3981df,authorId:_0x249066}=_0x3e02d8['_splitMarkerName'](_0x42c7ca);return'suggestion'==_0x1a5402&&'tablePaste'==_0x3981df&&_0x249066==_0x349207['id']&&!_0x875c49['oldRange'];});for(const _0x5a769e of _0x107989){if('insert'!=_0x5a769e['type']||'tableCellSuggestion'!=_0x5a769e['name']||0x1!=_0x5a769e['length'])continue;const _0x555bb3=_0x3fb0ad['createRange'](_0x5a769e['position'],_0x5a769e['position']['getShiftedBy'](0x1));if(!_0x42ff2d['find'](({data:_0x31cc95})=>_0x31cc95['newRange']['isEqual'](_0x555bb3))){for(const {name:_0x490f3a,data:_0x570b59}of _0x42ff2d)if(_0x555bb3['containsRange'](_0x570b59['newRange'])){_0x3fb0ad['updateMarker'](_0x490f3a,{'range':_0x555bb3}),_0x9d30c0=!0x0;break;}}}return _0x9d30c0;}),_0x12793b['model']['document']['registerPostFixer'](_0x2615c5=>{let _0x360d97=!0x1;const _0x1aab80=_0x12793b['plugins']['get']('Users')['me'],_0x3460ce=_0x3e02d8['getSuggestions']()['filter'](_0x2f5c1e=>_0x2f5c1e['isInContent']&&_0x2f5c1e['author']==_0x1aab80),_0x57dcd0=new Set(),_0x5b9edf=new Set();for(const _0x1d4b0b of _0x3460ce)if('tablePaste'==_0x1d4b0b['subType'])for(const _0x154ce6 of _0x1d4b0b['getMarkers']()){const _0x2c955c=_0x154ce6['getRange']()['getContainedElement']();if(_0x2c955c){if(_0x2c955c['is']('element','tableCellSuggestion')&&ke(_0x2c955c)){_0x1d4b0b['removeMarker'](_0x154ce6['name']),_0x57dcd0['add'](_0x2c955c),_0x360d97=!0x0;const _0x2ae15c=_0x2c955c['nextSibling'],_0x426fc9=_0x2c955c['previousSibling'],_0x4ba492=_0x2ae15c&&_0x2ae15c['is']('element','tableCellSuggestion'),_0x1e02f3=_0x426fc9&&_0x426fc9['is']('element','tableCellSuggestion');_0x4ba492&&!_0x57dcd0['has'](_0x2ae15c)&&_0x5b9edf['add'](_0x2ae15c),_0x1e02f3&&!_0x57dcd0['has'](_0x426fc9)&&_0x5b9edf['add'](_0x426fc9);}else _0x2c955c['is']('element','paragraph')&&_0x2c955c['isEmpty']&&(_0x1d4b0b['removeMarker'](_0x154ce6['name']),_0x360d97=!0x0);}}else{if('tablePasteCell'==_0x1d4b0b['subType']){if(!_0x1d4b0b['attributes']||!_0x1d4b0b['attributes']['tablePasteChainId'])continue;const _0x14d0dd=_0x1d4b0b['attributes']['markerAttributes'];if(_0x14d0dd&&Object['keys'](_0x14d0dd)['length'])continue;const _0x48905e=_0x1d4b0b['attributes']['tablePasteChainId'];let _0x12df42=!0x0,_0xdc4d4e=!0x0;for(const _0x2d3711 of _0x3460ce)if(_0x2d3711['subType']&&_0x2d3711['subType']['startsWith']('tablePaste')){if(!_0x2d3711['attributes']['tablePasteChainId']){_0xdc4d4e=!0x1;break;}if(_0x2d3711['id']!=_0x1d4b0b['id']&&_0x2d3711['attributes']['tablePasteChainId']==_0x48905e){_0x12df42=!0x1;break;}}_0xdc4d4e&&_0x12df42&&(_0x1d4b0b['removeMarkers'](),_0x360d97=!0x0);}}for(const _0x3f8ef5 of _0x57dcd0)_0x2615c5['remove'](_0x3f8ef5);for(const _0x5bedee of _0x5b9edf)_0x2615c5['unwrap'](_0x5bedee);return _0x360d97;}),_0x12793b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x29cbcf=>_0x44c7d2(_0x29cbcf),'converterPriority':'high'}),_0x12793b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x428df8,_0x4a72cc)=>_0x4a72cc['options']['showSuggestionHighlights']?_0x44c7d2(_0x428df8,!0x1):null,'converterPriority':'high'});const _0x1847c4=_0x12793b['editing']['view'];this['listenTo'](_0x1847c4['document'],'clipboardOutput',(_0x24d0a2,_0x20943b)=>{const _0x4ad821=[];for(const _0x162487 of _0x1847c4['createRangeIn'](_0x20943b['content'])['getItems']())_0x162487['is']('element','suggestion-td')&&_0x4ad821['push'](_0x162487);_0x1847c4['change'](_0x2b589d=>{for(const _0x2736e8 of _0x4ad821)_0x2b589d['move'](_0x2b589d['createRangeIn'](_0x2736e8),_0x2b589d['createPositionBefore'](_0x2736e8)),_0x2b589d['remove'](_0x2736e8);});});}}function ke(_0x3ba325){if(_0x3ba325['isEmpty'])return!0x0;const _0x5b0676=_0x3ba325['getChild'](0x0);return _0x5b0676['is']('element','paragraph')&&_0x5b0676['isEmpty'];}function Re(_0x5ad720,_0x5e176c={},_0x1a6a56){for(const {isAnchor:_0x37a5ab,cellHeight:_0x980bdb,cellWidth:_0x179ce6}of _0x1a6a56['createTableWalker'](_0x5ad720,{'includeAllSlots':!0x0,..._0x5e176c}))if(!_0x37a5ab||0x1!=_0x980bdb||0x1!=_0x179ce6)return!0x1;return!0x0;}class Nt extends _0x3a5fae{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3bb962=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bb962['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3bb962['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3bb962['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3bb962['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3bb962['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3bb962['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x25d932,_0x1c52ff){const _0x496dc3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29bf13=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x478e11=_0x1c52ff['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4a61fa=_0x29bf13['getColumnGroupElement'](_0x478e11);let _0x34b9ba=_0x4a61fa?_0x29bf13['getTableColumnsWidths'](_0x4a61fa):null,_0x5a70fe=_0x478e11['getAttribute']('tableWidth')||null;const _0xf945d5=_0x1c52ff['tableWidth']||_0x5a70fe,_0x26f7fd=_0x1c52ff['columnWidths']||_0x34b9ba,_0x4f2c74=this['editor']['plugins']['get']('Users')['me'];for(const _0x5da8de of _0x496dc3['getSuggestions']()){const _0xba4979=_0x5da8de['getContainedElement']();if('resizeTable'===_0x5da8de['subType']&&_0xba4979===_0x478e11){_0x5da8de['author']!==_0x4f2c74&&_0x5da8de['discard']();const _0x5919bf=_0x5da8de['data']['commandParams'];_0x5a70fe=_0x5919bf[0x0]['tableWidth'],_0x34b9ba=_0x5919bf[0x0]['columnWidths'];break;}}_0x25d932({'table':_0x478e11,'tableWidth':_0xf945d5,'columnWidths':_0x26f7fd}),_0x496dc3['markBlockFormat'](_0x478e11,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5a70fe,'columnWidths':_0x34b9ba}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2eef86){if('formatBlock'!=_0x2eef86['type']&&'formatInline'!=_0x2eef86['type'])return;const {data:_0x32921d}=_0x2eef86;if(_0x32921d&&'resizeTable'===_0x32921d['formatGroupId']){const _0x31c71e='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x31c71e)};}}}class Dt extends _0x3a5fae{['afterInit'](){const _0x5114f5=this['editor'];_0x5114f5['plugins']['has']('Template')&&_0x5114f5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3a5fae{['afterInit'](){const _0x2d6b15=this['editor'];if(!_0x2d6b15['commands']['get']('insertTableOfContents'))return;_0x2d6b15['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x52f06c=_0x2d6b15['plugins']['get']('TrackChangesEditing'),_0x568f6b=_0x2d6b15['locale'];_0x52f06c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3302e1=>o(_0x568f6b,'ELEMENT_TABLE_OF_CONTENTS',_0x3302e1));}}class $t extends _0x3a5fae{['afterInit'](){const _0x47d02b=this['editor'];if(!_0x47d02b['plugins']['has']('Title'))return;const _0x4e4f85=_0x47d02b['plugins']['get']('TrackChangesEditing');_0x4e4f85['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x47d02b['locale'],'ELEMENT_TITLE')),_0x47d02b['model']['document']['registerPostFixer'](_0x4745b5=>{let _0x51fabd=!0x1;const _0x16991b=Array['from'](_0x47d02b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27f3e1,data:_0x1ddc95}of _0x16991b){const {group:_0x433e72}=_0x4e4f85['_splitMarkerName'](_0x27f3e1);if('suggestion'!==_0x433e72||!_0x1ddc95['newRange'])continue;const _0x63362f=_0x1ddc95['newRange'],_0x4fe51a=_0x63362f['end']['nodeBefore'];if(!_0x4fe51a||!_0x4fe51a['is']('element','title-content'))continue;if(!_0x63362f['start']['isTouching'](_0x63362f['end']))continue;const _0x11391e=_0x47d02b['model']['schema']['getNearestSelectionRange'](_0x63362f['end'],'forward');if(_0x11391e&&_0x11391e['isCollapsed']){const _0x4d3a03=_0x4745b5['createRange'](_0x63362f['start'],_0x11391e['start']);_0x4d3a03['isEqual'](_0x63362f)||(_0x4745b5['updateMarker'](_0x27f3e1,{'range':_0x4d3a03}),_0x51fabd=!0x0);}_0x51fabd||(_0x4745b5['removeMarker'](_0x27f3e1),_0x51fabd=!0x0);}return _0x51fabd;});}}class Bt extends _0x3a5fae{['afterInit'](){const _0x43fa92=this['editor'],_0x2b3970=_0x43fa92['plugins']['get']('TrackChangesEditing');_0x43fa92['plugins']['has']('UndoEditing')&&(_0x2b3970['enableCommand']('undo'),_0x2b3970['enableCommand']('redo'));}}class xt extends _0x3a5fae{static get['requires'](){return[It];}['afterInit'](){const _0x1851c7=this['editor'];if(!_0x1851c7['plugins']['has']('TableCaptionEditing'))return;_0x1851c7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x3a5fae{['tableProperties'];['tableCellProperties'];constructor(_0x44e4e9){super(_0x44e4e9),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5a64a0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3fa7a4 of this['tableProperties'])_0x5a64a0['enableCommand'](_0x3fa7a4,(_0xd0e3f7,_0x2d7076)=>{const _0x3d059f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3fa7a4,[_0x3d059f],this['tableProperties'],'tableProperties',_0xd0e3f7,_0x2d7076);});_0x5a64a0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5a64a0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5a64a0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x559aaa,_0x39d173)=>this['handleDiscardAction'](this['tableProperties'],_0x559aaa,_0x39d173)),_0x5a64a0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x22efb0 of this['tableCellProperties'])_0x5a64a0['enableCommand'](_0x22efb0,(_0x12a43a,_0x2ceba9)=>{const _0x5c1f2b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x22efb0,_0x5c1f2b,this['tableCellProperties'],'tableCellProperties',_0x12a43a,_0x2ceba9);});_0x5a64a0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5a64a0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5a64a0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2fe3c6,_0x51d3c6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2fe3c6,_0x51d3c6)),_0x5a64a0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5a64a0['descriptionFactory']['registerDescriptionCallback'](_0x398259=>this['handleSuggestionDescription'](_0x398259));}['_handlePropertyChange'](_0x4415d2,_0x224ba2,_0x2eff05,_0x36bdc5,_0xf345fe,_0x22e97e){const _0x43d2ca=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x22e97e['batch'],()=>{for(const _0x3d8c05 of _0x224ba2){if(this['_getSuggestion'](_0x3d8c05,_0x36bdc5))_0xf345fe(_0x22e97e);else{const _0x15f806={};for(const _0x3b6281 of _0x2eff05){const _0x207125=_0x3d8c05['getAttribute'](_0x3b6281);void 0x0!==_0x207125&&(_0x15f806[_0x3b6281]=_0x207125);}_0xf345fe(_0x22e97e),_0x43d2ca['markBlockFormat'](_0x3d8c05,{'commandParams':[_0x15f806]},[],_0x36bdc5);}}});}['handleDiscardAction'](_0x511efe,_0x56730d,_0x101cb2){const _0x2f5341=_0x56730d[0x0]['start']['nodeAfter'],_0x4617ee=_0x101cb2['commandParams'][0x0];this['editor']['model']['change'](_0x37f481=>{for(const _0x463360 of _0x511efe)void 0x0!==_0x4617ee[_0x463360]?_0x37f481['setAttribute'](_0x463360,_0x4617ee[_0x463360],_0x2f5341):_0x37f481['removeAttribute'](_0x463360,_0x2f5341);});}['handleSuggestionDescription'](_0x599de2){if(_0x599de2['data'])switch(_0x599de2['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'](_0x20306c,_0x9e8aca){const _0x1e3ca3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3e2975 of _0x1e3ca3['getSuggestions']({'skipNotAttached':!0x0})){const _0x44ed4d=_0x3e2975['getContainedElement']();if(_0x3e2975['subType']===_0x9e8aca&&_0x44ed4d===_0x20306c)return _0x3e2975;}return null;}}const m='$elementName';class p extends _0x3a5fae{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4ea52e,_0x2593a7,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,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29ac95){function _0x1947f6(_0x4e99fc){return _0x4e99fc['map'](_0x2403ed=>String['fromCharCode'](_0x2403ed))['join']('');}super(_0x29ac95),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x19339e,_0x1af156,_0x311294,_0x36d0df)=>{this['_model']['change'](()=>{for(const _0x24eeb9 of[..._0x36d0df,..._0x311294])this['_model']['markers']['has'](_0x24eeb9)&&_0x29ac95['editing']['reconvertMarker'](_0x24eeb9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x29ac95['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(),_0x29ac95['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x29ac95['config']['get']('trackChanges.trackFormatChanges'),_0x29ac95['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x29ac95['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x29ac95,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1947f6([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1947f6([0x34,0x30,0x34,0x38,0x32,0x30,0x34,0x32]);}['init'](){const _0x421871=this['editor'],_0x318667=(_0x4fb66e,_0x20145f)=>{if('attribute'!=_0x4fb66e)return'ck-suggestion-marker-'+_0x4fb66e;const _0x5e9af6=_0x20145f['split']('|')[0x0];return this['_isBlockAttribute'](_0x5e9af6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x421871['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x93a393=>{const {id:_0x54f7d1,authorId:_0x30bc6d,type:_0x36975a,subType:_0x54c5f1}=this['_splitMarkerName'](_0x93a393['markerName']),_0x454892=['ck-suggestion-marker',_0x318667(_0x36975a,_0x54c5f1)];let _0x14888a=0xbb8;return this['activeMarkers']['includes'](_0x93a393['markerName'])&&(_0x454892['push']('ck-suggestion-marker--active'),_0x14888a=0xbc2),'deletion'==_0x36975a&&(_0x14888a+=0x5),{'classes':_0x454892,'attributes':{'data-suggestion':_0x54f7d1,'data-author-id':_0x30bc6d},'priority':_0x14888a};}}),_0x421871['conversion']['for']('dataDowncast')['add'](_0x287991=>{_0x287991['on']('addMarker:suggestion',(_0x1afdda,_0x2a7eaa,_0x25317c)=>{if(!_0x25317c['options']['showSuggestionHighlights'])return;const _0x7e582=_0x2a7eaa['item'];if(!_0x7e582)return;const _0x10845c=_0x25317c['mapper']['toViewElement'](_0x7e582);_0x421871['model']['schema']['isObject'](_0x7e582)&&_0x10845c&&!_0x10845c['getCustomProperty']('widget')&&_0x10845c['is']('containerElement')&&_0x17dc79(_0x10845c,_0x25317c['writer']);},{'priority':'high'});}),_0x421871['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xb8888c,_0x4c880e)=>{if(!_0x4c880e['options']['showSuggestionHighlights'])return null;const {type:_0x58398d,subType:_0x1e981d}=this['_splitMarkerName'](_0xb8888c['markerName']);return{'classes':['ck-suggestion-marker',_0x318667(_0x58398d,_0x1e981d)],'priority':0xbb8};}});const _0xbf2ff=({showActiveMarkers:_0x13e773=!0x0,isAttributeSuggestion:_0x107e05=!0x1}={})=>(_0x16b2fd,_0x3bc406,_0x4f21ee)=>{if(!_0x3bc406['item'])return;const {id:_0x147e4e,authorId:_0x1b4181}=this['_splitMarkerName'](_0x3bc406['markerName']);if(_0x107e05){const _0x594748=this['_suggestions']['get'](_0x147e4e),_0x52530b=this['_getAttributeKey'](_0x594748);if(!this['_isBlockAttribute'](_0x52530b))return;}if(_0x3bc406['item']['is']('selection'))return void _0x4f21ee['consumable']['consume'](_0x3bc406['item'],_0x16b2fd['name']);const _0x4edf9a=_0x4f21ee['mapper']['toViewElement'](_0x3bc406['item']);if(_0x3bc406['item']['is']('element')&&_0x421871['model']['schema']['isBlock'](_0x3bc406['item'])&&!_0x4edf9a['getCustomProperty']('addHighlight')){_0x4f21ee['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4edf9a),_0x4f21ee['writer']['setAttribute']('data-suggestion',_0x147e4e,_0x4edf9a),_0x4f21ee['writer']['setAttribute']('data-author-id',_0x1b4181,_0x4edf9a),_0x4f21ee['mapper']['bindElementToMarker'](_0x4edf9a,_0x3bc406['markerName']),_0x13e773&&(this['activeMarkers']['includes'](_0x3bc406['markerName'])?_0x4f21ee['writer']['addClass']('ck-suggestion-marker--active',_0x4edf9a):_0x4f21ee['writer']['removeClass']('ck-suggestion-marker--active',_0x4edf9a));for(const _0x3aa632 of _0x421871['model']['createRangeIn'](_0x3bc406['item'])['getItems']())_0x4f21ee['consumable']['consume'](_0x3aa632,_0x16b2fd['name']);_0x4f21ee['consumable']['consume'](_0x3bc406['item'],_0x16b2fd['name']);}};_0x421871['conversion']['for']('dataDowncast')['add'](_0x5c0b1b=>{_0x5c0b1b['on']('addMarker:suggestion:formatBlock',(_0x21cfb8,_0x16d20b,_0x192c30)=>{_0x192c30['options']['showSuggestionHighlights']&&_0xbf2ff({'showActiveMarkers':!0x1})(_0x21cfb8,_0x16d20b,_0x192c30);},{'priority':'highest'});}),_0x421871['conversion']['for']('dataDowncast')['add'](_0x434365=>{_0x434365['on']('addMarker:suggestion:attribute',(_0x13f28e,_0x460940,_0x7079e2)=>{_0x7079e2['options']['showSuggestionHighlights']&&_0xbf2ff({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x13f28e,_0x460940,_0x7079e2);},{'priority':'highest'});}),_0x421871['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x227c3f,_0x72062d)=>_0x72062d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x227c3f['substr'](0xb)}}),_0x421871['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xac7e9e,{writer:_0xadc762})=>{let _0x481eb5='suggestion:'+_0xac7e9e['getAttribute']('suggestion-type')+':'+_0xac7e9e['getAttribute']('id');return _0xac7e9e['getAttribute']('marker-count')&&(_0x481eb5+=':'+_0xac7e9e['getAttribute']('marker-count')),_0xadc762['createElement']('$marker',{'data-name':_0x481eb5});}}),_0x421871['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x421871['conversion']['for']('editingDowncast')['add'](_0x85cf39=>{_0x85cf39['on']('addMarker:suggestion:formatBlock',_0xbf2ff(),{'priority':'high'});}),_0x421871['conversion']['for']('editingDowncast')['add'](_0x3dd5ee=>{_0x3dd5ee['on']('addMarker:suggestion:attribute',_0xbf2ff({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x421871['conversion']['for']('editingDowncast')['add'](_0x477b76=>{_0x477b76['on']('removeMarker:suggestion:formatBlock',(_0x2fb7b4,_0x563f4b,_0x1ab037)=>{const _0x4133b4=_0x1ab037['mapper']['markerNameToElements'](_0x563f4b['markerName']);if(_0x4133b4){for(const _0xe9fb22 of _0x4133b4)_0xe9fb22['getCustomProperty']('addHighlight')||(_0x1ab037['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xe9fb22),_0x1ab037['writer']['removeAttribute']('data-suggestion',_0xe9fb22),_0x1ab037['writer']['removeAttribute']('data-author-id',_0xe9fb22),_0x1ab037['mapper']['unbindElementFromMarkerName'](_0xe9fb22,_0x563f4b['markerName']));}},{'priority':'high'});}),_0x421871['conversion']['for']('editingDowncast')['add'](_0x1a9df8=>{_0x1a9df8['on']('removeMarker:suggestion:attribute',(_0x192ce5,_0xfaf400,_0x26a5d8)=>{const _0x13b3d1=_0x26a5d8['mapper']['markerNameToElements'](_0xfaf400['markerName']);if(!_0x13b3d1)return;const {id:_0xce934a}=this['_splitMarkerName'](_0xfaf400['markerName']),_0x20dded=this['_suggestions']['get'](_0xce934a),_0x4171c8=this['_getAttributeKey'](_0x20dded);if(this['_isBlockAttribute'](_0x4171c8)){for(const _0x22649b of _0x13b3d1)_0x22649b['getCustomProperty']('addHighlight')||(_0x26a5d8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x22649b),_0x26a5d8['writer']['removeAttribute']('data-suggestion',_0x22649b),_0x26a5d8['writer']['removeAttribute']('data-author-id',_0x22649b),_0x26a5d8['mapper']['unbindElementFromMarkerName'](_0x22649b,_0xfaf400['markerName']));}},{'priority':'high'});}),_0x421871['model']['document']['registerPostFixer'](_0x36cd9d=>{let _0x3085e5=!0x1;const _0xe9b9c2=Array['from'](_0x421871['model']['document']['differ']['getChangedMarkers']()),_0x18c8d4=new Set();for(const {name:_0x397ebb,data:_0x2c53f6}of _0xe9b9c2){const {group:_0x4388f3,type:_0x28d00,subType:_0x4c0627,id:_0x46b613}=this['_splitMarkerName'](_0x397ebb);if('suggestion'!==_0x4388f3)continue;const _0x3b4c22=this['_suggestions']['get'](_0x46b613);if(null!=_0x2c53f6['newRange']){'formatInline'==_0x28d00&&(_0x3085e5=_0x3085e5||Ut(_0x2c53f6['newRange'],_0x397ebb,_0x36cd9d,_0x421871['model']['schema']));const _0x2e54e2='attribute'==_0x28d00&&this['_isBlockAttribute'](_0x4c0627['split']('|')[0x0]);if(_0x2c53f6['newRange']['isCollapsed']||'$graveyard'==_0x2c53f6['newRange']['root']['rootName']||'formatBlock'==_0x28d00&&!Gt(_0x2c53f6['newRange'])||_0x2e54e2&&!Gt(_0x2c53f6['newRange'])||'deletion'==_0x28d00&&!(!Vt(_0x26994e=_0x2c53f6['newRange'])&&!function(_0x3f67d6){return _0x3f67d6['start']['parent']==_0x3f67d6['end']['nodeBefore']&&_0x3f67d6['start']['isAtEnd'];}(_0x26994e)))_0x36cd9d['removeMarker'](_0x397ebb),_0x3085e5=!0x0;else{if(!_0x3b4c22||!_0x3b4c22['isInContent'])continue;if(_0x2c53f6['newRange']&&_0x2c53f6['oldRange']&&_0x2c53f6['newRange']['isEqual'](_0x2c53f6['oldRange']))continue;_0x18c8d4['add'](_0x3b4c22);}}}var _0x26994e;return _0x18c8d4['size']>0x0&&(_0x3085e5=!!this['_joinWithAdjacentSuggestions'](_0x18c8d4)||_0x3085e5),_0x3085e5;}),_0x421871['model']['document']['registerPostFixer'](_0x2c38d5=>{let _0x4941d8=!0x1;for(const _0x403f9f of _0x421871['model']['document']['differ']['getChanges']())if('insert'==_0x403f9f['type'])for(const _0x367ed7 of this['_suggestions']['values']()){if(_0x367ed7['isMultiRange']||!_0x367ed7['isInContent'])continue;const _0x428e1d='formatBlock'==_0x367ed7['type'],_0x389a0e=this['_getAttributeKey'](_0x367ed7),_0x44b4d6=_0x389a0e&&this['_isBlockAttribute'](_0x389a0e);if(!_0x428e1d&&!_0x44b4d6)continue;const _0x38e601=_0x367ed7['getFirstRange']();if(_0x38e601['start']['parent']!=_0x38e601['end']['parent']&&!_0x38e601['end']['isAtEnd']){const _0x117468=_0x421871['model']['createPositionAt'](_0x38e601['start']['nodeAfter'],'end'),_0x4dfde7=_0x421871['model']['createRange'](_0x38e601['start'],_0x117468);_0x2c38d5['updateMarker'](_0x367ed7['getFirstMarker'](),{'range':_0x4dfde7}),_0x4941d8=!0x0;}}return _0x4941d8;}),_0x421871['model']['document']['registerPostFixer'](_0x2cb2ba=>this['_processAttributeChanges'](_0x2cb2ba)),_0x421871['model']['document']['registerPostFixer'](_0x27d377=>!_0x27d377['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x27d377)),_0x421871['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x421871['model']['document']['on']('change:data',(_0x6d579f,_0x2513fc)=>{if(!_0x2513fc['isLocal']||_0x2513fc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3002df=_0x421871['model']['document']['differ']['getChanges']();if(0x0==_0x3002df['length'])return;const _0x731c24=[],_0x23d872=_0x3002df['filter'](_0x1042ef=>'attribute'==_0x1042ef['type']),_0x2b9d09=_0x3002df['filter'](_0x535a04=>'insert'==_0x535a04['type']&&'$text'!=_0x535a04['name']);for(const _0x22c5af of _0x23d872)this['_isRegisteredAttribute'](_0x22c5af['attributeKey'])&&_0x731c24['push']({'key':_0x22c5af['attributeKey'],'newValue':_0x22c5af['attributeNewValue'],'oldValue':_0x22c5af['attributeOldValue'],'range':Ft(_0x22c5af['range'],_0x421871['model'])});for(const _0x27714d of _0x2b9d09){if('rename'!=_0x27714d['action']&&'refresh'!=_0x27714d['action'])continue;const _0x583de9=Lt(_0x27714d['position']['nodeAfter'],_0x421871['model']),_0x4f8bed=_0x27714d['before'];'rename'==_0x27714d['action']&&_0x731c24['push']({'key':m,'newValue':_0x27714d['name'],'oldValue':_0x4f8bed['name'],'range':_0x583de9});for(const [_0x6ba412,_0x1c65d1]of _0x4f8bed['attributes']){if(!this['_isRegisteredAttribute'](_0x6ba412))continue;const _0x2c0222=_0x27714d['attributes']['get'](_0x6ba412);_0x1c65d1!==_0x2c0222&&_0x731c24['push']({'key':_0x6ba412,'newValue':_0x2c0222,'oldValue':_0x1c65d1,'range':_0x583de9});}for(const [_0x1c6a68,_0x172c58]of _0x27714d['attributes'])this['_isRegisteredAttribute'](_0x1c6a68)&&(_0x4f8bed['attributes']['has'](_0x1c6a68)||_0x731c24['push']({'key':_0x1c6a68,'newValue':_0x172c58,'oldValue':null,'range':_0x583de9}));}0x0!=_0x731c24['length']&&_0x421871['model']['enqueueChange'](_0x2513fc,_0x2f71a1=>{const _0xea9f80=_0x265842();for(const {range:_0x3209c8,key:_0x2ea774,oldValue:_0x56770d,newValue:_0x4c26ac}of _0x731c24)this['markAttributeChange'](_0x3209c8,_0x2ea774,_0x56770d,_0x4c26ac,{'groupId':_0xea9f80});this['_reduceExistingSuggestions'](_0x2f71a1,_0x731c24);});},{'priority':'lowest'}),_0x421871['model']['markers']['on']('update:suggestion',(_0x204dde,_0x2ae1b5,_0x50d00a)=>{if(null==_0x50d00a){const {id:_0x24ffef}=this['_splitMarkerName'](_0x2ae1b5['name']),_0x30caf4=this['_suggestions']['get'](_0x24ffef);_0x30caf4&&_0x30caf4['addMarkerName'](_0x2ae1b5['name']);}}),_0x421871['model']['document']['on']('change:data',()=>{const _0x393269=Array['from'](_0x421871['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5cf003=>'suggestion'===this['_splitMarkerName'](_0x5cf003['name'])['group']);if(0x0===_0x393269['length'])return;_0x393269['sort']((_0x57411b,_0x1a4136)=>{const _0x5332fe=_0x57411b['data']['oldRange'],_0x5d1cf5=_0x1a4136['data']['oldRange'];return null===_0x5332fe&&null===_0x5d1cf5?0x0:null===_0x5332fe&&null!==_0x5d1cf5?-0x1:null!==_0x5332fe&&null===_0x5d1cf5?0x1:_0x5332fe['start']['isBefore'](_0x5d1cf5['start'])?-0x1:0x1;});const _0x2a3fa5=new Set(),_0xb57a80=new Set();for(const {name:_0x1c6b48,data:_0x591952}of _0x393269){const {id:_0x3ef9ad}=this['_splitMarkerName'](_0x1c6b48);if(null===_0x591952['oldRange']){const _0x244ed2=this['_handleNewSuggestionMarker'](_0x1c6b48);_0xb57a80['add'](_0x244ed2);}else{const _0x545bcf=this['_suggestions']['get'](_0x3ef9ad);null!==_0x591952['newRange']||_0x545bcf['isInContent']?(_0x2a3fa5['add'](_0x545bcf['head']),_0xb57a80['add'](_0x545bcf)):this['_removeSuggestion'](_0x545bcf);}}_0xb57a80['size']>0x0&&this['_refreshSuggestionsChain'](_0xb57a80);for(const _0x3d3cb1 of _0x2a3fa5)this['fire']('suggestionChanged',_0x3d3cb1);}),_0x421871['model']['on']('applyOperation',(_0x26285c,_0x18e1d9)=>{const _0x14e0e0=_0x18e1d9[0x0];if(!this['_suggestions']['size'])return;if(!_0x14e0e0['isDocumentOperation'])return;if(_0x14e0e0['batch']['isUndo']||!_0x14e0e0['batch']['isLocal'])return;let _0x43f166,_0x45a80f;switch(_0x14e0e0['type']){case'insert':_0x43f166=_0x421871['model']['createPositionAt'](_0x14e0e0['position']),_0x45a80f=_0x43f166['getShiftedBy'](_0x14e0e0['howMany']);break;case'split':_0x43f166=_0x421871['model']['createPositionAt'](_0x14e0e0['splitPosition']),_0x45a80f=_0x421871['model']['createPositionAt'](_0x14e0e0['moveTargetPosition']);break;case'move':_0x43f166=_0x421871['model']['createPositionAt'](_0x14e0e0['targetPosition']),_0x45a80f=_0x43f166['getShiftedBy'](_0x14e0e0['howMany']);break;default:return;}const _0x33ea31=_0x421871['model']['createRange'](_0x43f166,_0x45a80f);_0x421871['model']['change'](()=>{for(const {suggestion:_0x27507e,meta:_0x47e981}of this['_findSuggestions'](_0x33ea31)){if(_0x27507e['isMultiRange'])continue;if('formatInline'==_0x27507e['type'])continue;const _0x2ddd25=this['_getAttributeKey'](_0x27507e);if(_0x2ddd25&&this['_isBlockAttribute'](_0x2ddd25)&&'split'!=_0x14e0e0['type'])continue;const _0xc599a3=_0x27507e['data']&&_0x27507e['data']['multipleBlocks'];('formatBlock'!=_0x27507e['type']||'split'==_0x14e0e0['type']&&!_0xc599a3)&&(_0x47e981['containsRangeInObject']||'insertion'==_0x27507e['type']&&_0x47e981['isOwn']||_0x27507e['getFirstRange']()['containsRange'](_0x33ea31)&&this['_breakSuggestionMarker'](_0x27507e,_0x43f166,_0x45a80f));}});},{'priority':'lowest'}),_0x421871['model']['on']('deleteContent',(_0x4ef767,_0x38410a)=>{const _0x49b5ea=_0x38410a[0x0],_0x3d6c38=_0x38410a[0x1];if(_0x3d6c38&&_0x3d6c38['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x49b5ea['isCollapsed'])return;const _0xe26929=_0x421871['model']['schema'],{start:_0x318d0a,end:_0x135a8d}=_0x49b5ea['getFirstRange'](),_0x349a1e=_0x318d0a['nodeAfter']&&_0xe26929['isLimit'](_0x318d0a['nodeAfter'])?null:_0xe26929['getNearestSelectionRange'](_0x318d0a,'forward'),_0x15dd5a=_0x135a8d['nodeBefore']&&_0xe26929['isLimit'](_0x135a8d['nodeBefore'])?null:_0xe26929['getNearestSelectionRange'](_0x135a8d,'backward'),_0x5f5cdc=_0x421871['model']['createRange'](_0x349a1e?_0x349a1e['start']:_0x318d0a,_0x15dd5a?_0x15dd5a['end']:_0x135a8d);_0x421871['model']['change'](_0x18d12e=>{this['markDeletion'](_0x5f5cdc);const _0x5d8b87=_0x421871['model']['schema']['getNearestSelectionRange'](_0x5f5cdc['start']);_0x49b5ea['is']('documentSelection')?_0x18d12e['setSelection'](_0x5d8b87):_0x49b5ea['setTo'](_0x5d8b87);}),_0x4ef767['stop']();},{'priority':_0x236a31['normal']+0xa}),_0x421871['model']['on']('insertContent',(_0x4952bd,_0x59f27a)=>{const _0x4c6616=_0x59f27a[_0x59f27a['length']-0x1];_0x4c6616&&_0x4c6616['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x421871['model']['change'](()=>{let _0x520322=_0x421871['model']['insertContent'](_0x59f27a[0x0],_0x59f27a[0x1],_0x59f27a[0x2],{'forceDefaultExecution':!0x0});if(!_0x520322)return;_0x4952bd['return']=_0x520322['clone']();const _0x12d987=_0x520322['end']['nodeBefore'],_0x17f873=_0x421871['model']['schema'];_0x12d987&&_0x17f873['isBlock'](_0x12d987)&&!_0x17f873['isObject'](_0x12d987)&&(_0x520322=_0x421871['model']['createRange'](_0x520322['start'],_0x421871['model']['createPositionAt'](_0x12d987,'end'))),this['markInsertion'](_0x520322);}),_0x4952bd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x435699=new x(_0x421871,this['_suggestions']);_0x421871['commands']['add']('acceptSuggestion',_0x435699),this['enableCommand']('acceptSuggestion');const _0x591baa=new O(_0x421871,this['_suggestions']);_0x421871['commands']['add']('discardSuggestion',_0x591baa),this['enableCommand']('discardSuggestion'),_0x421871['commands']['add']('acceptAllSuggestions',new R(_0x421871,_0x435699,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x421871['commands']['add']('discardAllSuggestions',new R(_0x421871,_0x591baa,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x421871['commands']['add']('acceptSelectedSuggestions',new E(_0x421871,_0x435699,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x421871['commands']['add']('discardSelectedSuggestions',new E(_0x421871,_0x591baa,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4da1d3=_0x421871['plugins']['get']('CommentsRepository');this['listenTo'](_0x4da1d3,'addComment',(_0x464f6c,{threadId:_0x24f874})=>{const _0x4c114f=this['_suggestions']['get'](_0x24f874);_0x4c114f&&_0x4c114f['commentThread']&&0x1===_0x4c114f['commentThread']['length']&&this['_updateSuggestionData'](_0x24f874,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4da1d3,'removeComment',(_0x1e7c24,{threadId:_0x5cfaa4})=>{const _0x462720=this['_suggestions']['get'](_0x5cfaa4);_0x462720&&_0x462720['commentThread']&&!_0x462720['commentThread']['length']&&this['_updateSuggestionData'](_0x5cfaa4,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x22b732){if(this['_adapter'])throw new _0x55a112('track-changes-adapter-already-set',this);this['_adapter']=_0x22b732;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2cbca4=!0x1,toJSON:_0x132f67=!0x1}={}){const _0x367588=[];for(const _0x11228f of this['_suggestions']['values']())_0x2cbca4&&!_0x11228f['isInContent']||_0x367588['push'](_0x11228f);return _0x132f67?_0x367588['map'](_0x4d5d82=>_0x4d5d82['toJSON']()):_0x367588;}['getSuggestion'](_0x55fce6){const _0x1f4715=this['_suggestions']['get'](_0x55fce6);if(!_0x1f4715)throw new _0x55a112('track-changes-suggestion-not-found',this);return _0x1f4715;}['hasSuggestion'](_0x3f7a58){return this['_suggestions']['has'](_0x3f7a58);}['addSuggestionData'](_0x40ed00){const {authorId:_0x291f03,id:_0x52efc6,attributes:_0x4c98ce}=_0x40ed00,[_0x1c210e,_0x3ed90c]=_0x40ed00['type']['split'](':'),_0x534fd8=this['_suggestions']['get'](_0x52efc6)||this['_createSuggestion'](_0x1c210e,_0x3ed90c,_0x52efc6,_0x291f03,_0x4c98ce);if(this['_addThreadToSuggestion'](_0x534fd8),this['_checkSuggestionCorrectness'](_0x534fd8,_0x1c210e,_0x3ed90c||null,_0x291f03),_0x534fd8['createdAt']=_0x40ed00['createdAt'],_0x534fd8['_isDataLoaded']=!0x0,_0x4c98ce&&_0x4c98ce['@external']){const _0xdb7f8d=_0x4c98ce['@external'],_0x24a496=this['_getExternalAuthor'](_0xdb7f8d['authorName']);_0x534fd8['authoredAt']=_0xdb7f8d['createdAt'],_0x534fd8['author']=_0x24a496,_0x534fd8['isExternal']=!0x0;}else _0x534fd8['authoredAt']=_0x40ed00['createdAt'];switch(_0x40ed00['data']&&(_0x534fd8['data']=_0x40ed00['data']),_0x40ed00['attributes']&&(_0x534fd8['attributes']=_0x40ed00['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x534fd8['_saved']=!0x0),this['_suggestionState']['get'](_0x534fd8)){case'notReady':this['_suggestionState']['set'](_0x534fd8,'dataReady');break;case'markerReady':_0x534fd8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x534fd8])),this['_refreshSuggestionsChain'](new Set([_0x534fd8])),this['_suggestionState']['set'](_0x534fd8,'ready'),this['fire']('suggestionLoaded',_0x534fd8)):this['_suggestionState']['set'](_0x534fd8,'removed');}return _0x534fd8;}['acceptSuggestion'](_0x19d0e8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2411fd of _0x19d0e8['getAllAdjacentSuggestions']())_0x2411fd['accept']();});});}['discardSuggestion'](_0x37a9ee){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x34ce1e of _0x37a9ee['getAllAdjacentSuggestions']())_0x34ce1e['discard']();});});}['enableCommand'](_0x5c8fb6,_0x58df5c){const _0x5d9e96=this['editor']['commands']['get'](_0x5c8fb6);if(!_0x5d9e96)throw new _0x55a112('track-changes-command-not-found',this,{'commandName':_0x5c8fb6});if(this['_enabledCommands']['has'](_0x5d9e96))throw new _0x55a112('track-changes-enable-command-twice',this,{'commandName':_0x5c8fb6});this['_enabledCommands']['add'](_0x5d9e96),_0x58df5c&&_0x5d9e96['on']('execute',(_0x4fcd7d,_0x5b8dda)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5b8dda['length']>0x0&&_0x5b8dda[_0x5b8dda['length']-0x1]&&_0x5b8dda[_0x5b8dda['length']-0x1]['forceDefaultExecution']?_0x5b8dda['pop']():(_0x4fcd7d['return']=_0x58df5c((..._0x386479)=>_0x5d9e96['execute'](..._0x386479,{'forceDefaultExecution':!0x0}),..._0x5b8dda),_0x4fcd7d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x49f215){let _0x28707f,_0xeed5e5;const _0x545dc2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x28707f=_0x49f215();}catch(_0x564550){_0xeed5e5=_0x564550;}return _0x545dc2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xeed5e5&&_0x55a112['rethrowUnexpectedError'](_0xeed5e5,this),_0x28707f;}['markInsertion'](_0x5e7270,_0x12b16a=null,_0x7fac25={}){if(_0x5e7270['isCollapsed'])return null;const _0x1b8413=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3d969b,meta:_0x35e98b}of this['_findSuggestions'](_0x5e7270,'insertion'))if(_0x35e98b['isOwn']){if(!_0x35e98b['isNextTo']){if(_0x35e98b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x3d969b,_0x7fac25))continue;return _0x3d969b;}if(qt(_0x3d969b,_0x7fac25))return _0x3d969b;this['_breakSuggestionMarker'](_0x3d969b,_0x5e7270['start'],_0x5e7270['end']);break;}if(_0x12b16a==_0x3d969b['subType']&&qt(_0x3d969b,_0x7fac25)){const _0x574daa=_0x3d969b['getFirstRange']();return _0x574daa['start']['isEqual'](_0x5e7270['end'])?this['_setSuggestionRange'](_0x3d969b,this['_model']['createRange'](_0x5e7270['start'],_0x574daa['end'])):this['_setSuggestionRange'](_0x3d969b,this['_model']['createRange'](_0x574daa['start'],_0x5e7270['end'])),_0x3d969b;}}const _0x2eeb6b=_0x265842(),_0x43f4f5=_0x1b8413['id'],_0x3ced50=_0x12b16a?'insertion:'+_0x12b16a:'insertion',_0x3eef4e=this['_setSuggestionData']({'id':_0x2eeb6b,'type':_0x3ced50,'createdAt':new Date(),'authorId':_0x43f4f5,'attributes':_0x7fac25});return this['_addSuggestionMarker'](_0x3ced50,_0x2eeb6b,_0x43f4f5,_0x5e7270),_0x3eef4e;}['markMultiRangeInsertion'](_0x5dcc38,_0x18b683='multi',_0x1b5920={}){const _0x2cd87c=this['editor']['plugins']['get']('Users')['me'],_0x1dd3b6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x18b683,'join');for(const _0x29e133 of this['getSuggestions']())if(_0x29e133['author']['id']==_0x2cd87c['id']&&'insertion'==_0x29e133['type']&&_0x29e133['subType']==_0x18b683&&qt(_0x29e133,_0x1b5920)&&(_0x1dd3b6(_0x29e133['getRanges'](),_0x5dcc38)||_0x1dd3b6(_0x5dcc38,_0x29e133['getRanges']()))){for(const _0x5c4c0b of _0x5dcc38)_0x29e133['addRange'](_0x5c4c0b);return _0x29e133;}for(const {suggestion:_0x37899f,meta:_0x4dd867}of this['_findSuggestions'](_0x5dcc38,'insertion')){if(!_0x4dd867['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4dd867['containsRangeInObject'])continue;if(!qt(_0x37899f,_0x1b5920))continue;let _0x73cb4=!0x0;for(const _0xb17734 of _0x37899f['getRanges']())for(const _0x250557 of _0x5dcc38)if(!_0xb17734['containsRange'](_0x250557)){_0x73cb4=!0x1;break;}if(_0x73cb4)return _0x37899f;}const _0x2c5df9=_0x265842(),_0x244042=_0x2cd87c['id'],_0x9386fd='insertion:'+_0x18b683,_0x395bb5=this['_setSuggestionData']({'id':_0x2c5df9,'type':_0x9386fd,'createdAt':new Date(),'authorId':_0x244042,'attributes':_0x1b5920});for(const _0x802309 of _0x5dcc38)this['_addSuggestionMarker'](_0x9386fd,_0x2c5df9,_0x244042,_0x802309,u['getMultiRangeId']());return _0x395bb5;}['markInlineFormat'](_0x3e6230,_0x98c64c,_0x3d6cd0=null,_0x5dd2cc={}){if(_0x3d6cd0=_0x3d6cd0||Pt(_0x98c64c),_0x3e6230['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3b1ca4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3d6cd0,'accept');return this['forceDefaultExecution'](()=>_0x3b1ca4([_0x3e6230],_0x98c64c,_0x5dd2cc)),null;}const _0x1c9dfc=this['editor']['plugins']['get']('Users')['me'],_0x4838d5=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1b7dd1,meta:_0x328137}of this['_findSuggestions'](_0x3e6230,'insertion'))_0x328137['isOwn']&&!_0x328137['isInsideObject']&&_0x4838d5['push'](..._0x1b7dd1['getRanges']());}const _0x201eb9=function(_0x35bb1a,_0x3c6ead){const _0x2b32d7=[];for(const _0x346cd1 of _0x3c6ead){const _0x146792=_0x35bb1a['getIntersection'](_0x346cd1);_0x146792&&_0x2b32d7['push'](_0x146792);}return _0x2b32d7;}(_0x3e6230,_0x4838d5),_0x3a7a0e=function(_0x271284,_0x522a68){const _0x400332=[_0x271284];for(const _0x5029bc of _0x522a68){let _0xb8d28f=0x0;for(;_0xb8d28f<_0x400332['length'];){const _0x48c7a7=_0x400332[_0xb8d28f]['getDifference'](_0x5029bc);_0x400332['splice'](_0xb8d28f,0x1,..._0x48c7a7),_0xb8d28f+=_0x48c7a7['length'];}}return _0x400332;}(_0x3e6230,_0x4838d5);_0x201eb9['length']&&this['_model']['change'](()=>{for(const _0x24c45e of _0x201eb9){const _0x141cb1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3d6cd0,'accept');this['forceDefaultExecution'](()=>_0x141cb1([_0x24c45e],_0x98c64c,_0x5dd2cc));}});for(const _0x27aaf0 of _0x3a7a0e){let _0xe59171=null,_0xf26766=_0x27aaf0['start'],_0x5b5e5b=_0x27aaf0['end'];for(const {suggestion:_0x330281,meta:_0xac5fef}of this['_findSuggestions'](_0x27aaf0,'formatInline')){if(!_0xac5fef['isOwn'])continue;if(_0x330281['subType']!=_0x3d6cd0)continue;if(!qt(_0x330281,_0x5dd2cc))continue;const _0x16077=_0x330281['getFirstRange']();if(_0x16077['containsRange'](_0x27aaf0,!0x0))return null;_0xf26766=_0xf26766['isBefore'](_0x16077['start'])?_0xf26766:_0x16077['start'],_0x5b5e5b=_0x5b5e5b['isAfter'](_0x16077['end'])?_0x5b5e5b:_0x16077['end'],_0xe59171?_0x16077['start']['isBefore'](_0xe59171['getFirstRange']()['start'])?(_0xe59171['removeMarkers'](),_0xe59171=_0x330281):_0x330281['removeMarkers']():_0xe59171=_0x330281;}const _0x376d71=this['_model']['createRange'](_0xf26766,_0x5b5e5b);if(_0xe59171)this['_setSuggestionRange'](_0xe59171,_0x376d71);else{const _0x89742f=_0x265842(),_0x1cb644=_0x1c9dfc['id'];this['_setSuggestionData']({'id':_0x89742f,'type':'formatInline:'+_0x3d6cd0,'data':_0x98c64c,'createdAt':new Date(),'authorId':_0x1cb644,'attributes':_0x5dd2cc}),this['_addSuggestionMarker']('formatInline:'+_0x3d6cd0,_0x89742f,_0x1cb644,_0x376d71);}}return null;}['markBlockFormat'](_0x14ce9a,_0x34420f,_0x395e6f=[],_0x236171=null,_0x41d994={}){_0x34420f['formatGroupId']||(_0x34420f['formatGroupId']=_0x34420f['commandName']),_0x34420f['multipleBlocks']=_0x14ce9a['is']('range'),_0x236171=_0x236171||Pt(_0x34420f);const _0x17fb08=_0x395e6f['map'](_0x54c850=>Lt(_0x54c850,this['_model'])),_0x1a5797=_0x14ce9a['is']('range')?_0x14ce9a:Lt(_0x14ce9a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x8509a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x236171,'accept');return this['forceDefaultExecution'](()=>_0x8509a([_0x1a5797],_0x34420f,_0x41d994)),null;}_0x17fb08['push'](_0x1a5797);let _0xe1603a=!0x0;for(const _0x1594da of _0x17fb08)if(!this['_rangeIsInLocalUserInsertion'](_0x1594da)){_0xe1603a=!0x1;break;}if(_0xe1603a&&'always'!==this['_trackFormatChanges']){const _0x478800=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x236171,'accept');return this['forceDefaultExecution'](()=>_0x478800([_0x1a5797],_0x34420f,_0x41d994)),null;}let _0x224bd1=null,_0x135367=_0x1a5797['start'],_0xd53686=_0x1a5797['end'];for(const {suggestion:_0x5e06ed,meta:_0x3164b8}of this['_findSuggestions'](_0x1a5797,'formatBlock')){if(!_0x3164b8['isOwn'])continue;if(_0x3164b8['isNextTo']||_0x3164b8['containsRangeInObject']||_0x3164b8['isInsideObject'])continue;if(_0x5e06ed['data']['formatGroupId']!=_0x34420f['formatGroupId'])continue;if(!qt(_0x5e06ed,_0x41d994))continue;const _0xde0d72=_0x5e06ed['getFirstRange']();if(_0x5e06ed['subType']==_0x236171){if(_0xde0d72['containsRange'](_0x1a5797,!0x0))return null;_0x135367=_0x135367['isBefore'](_0xde0d72['start'])?_0x135367:_0xde0d72['start'],_0xd53686=_0xd53686['isAfter'](_0xde0d72['end'])?_0xd53686:_0xde0d72['end'],_0x224bd1?_0xde0d72['start']['isBefore'](_0x224bd1['getFirstRange']()['start'])?(_0x224bd1['removeMarkers'](),_0x224bd1=_0x5e06ed):_0x5e06ed['removeMarkers']():_0x224bd1=_0x5e06ed;}else{const _0x387794=_0x1a5797['getIntersection'](_0xde0d72);this['_cutOutSuggestionMarker'](_0x5e06ed,_0x387794);}}const _0x545cd1=this['editor']['plugins']['get']('Users')['me'],_0x5825ab=_0x265842(),_0x48fd0d=_0x545cd1['id'];if(_0x224bd1)return this['_setSuggestionRange'](_0x224bd1,this['_model']['createRange'](_0x135367,_0xd53686)),_0x224bd1;{const _0xb10869=this['_setSuggestionData']({'id':_0x5825ab,'type':'formatBlock:'+_0x236171,'data':_0x34420f,'createdAt':new Date(),'authorId':_0x48fd0d,'attributes':_0x41d994});return this['_addSuggestionMarker']('formatBlock:'+_0x236171,_0x5825ab,_0x48fd0d,this['_model']['createRange'](_0x135367,_0xd53686)),_0xb10869;}}['markMultiRangeBlockFormat'](_0x1992fa,_0x45068a,_0x40868c=[],_0x529616=null,_0x49ea55={}){_0x45068a['formatGroupId']||(_0x45068a['formatGroupId']=_0x45068a['commandName']);const _0x193455=_0x1992fa[0x0];_0x45068a['multipleBlocks']=_0x193455['is']('range'),_0x529616=_0x529616||Pt(_0x45068a);const _0x5fa1ee=_0x40868c['map'](_0xecd96a=>Lt(_0xecd96a,this['_model'])),_0x2a8ab3=_0x193455['is']('range')?_0x1992fa:_0x1992fa['map'](_0x4b8cc3=>Lt(_0x4b8cc3,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2a0f47=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x529616,'accept');return this['forceDefaultExecution'](()=>_0x2a0f47(_0x2a8ab3,_0x45068a,_0x49ea55)),null;}_0x5fa1ee['push'](..._0x2a8ab3);let _0x49c47d=!0x0;for(const _0x83b38f of _0x5fa1ee)if(!this['_rangeIsInLocalUserInsertion'](_0x83b38f)){_0x49c47d=!0x1;break;}if(_0x49c47d&&'always'!==this['_trackFormatChanges']){const _0x54bd87=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x529616,'accept');return this['forceDefaultExecution'](()=>_0x54bd87(_0x2a8ab3,_0x45068a,_0x49ea55)),null;}const _0x368ed1=this['editor']['plugins']['get']('Users')['me'];for(const _0x4be3da of this['getSuggestions']()){if(_0x4be3da['author']['id']!=_0x368ed1['id'])continue;if('formatBlock'!=_0x4be3da['type']||_0x4be3da['data']['formatGroupId']!=_0x45068a['formatGroupId'])continue;if(!qt(_0x4be3da,_0x49ea55))continue;const _0x30ff9b=_0x4be3da['subType']==_0x529616;for(let _0xff9900=0x0;_0xff9900<_0x2a8ab3['length'];_0xff9900++){const _0x2cb008=_0x2a8ab3[_0xff9900];for(const _0x15bb1a of _0x4be3da['getMarkers']()){const _0x191c61=_0x15bb1a['getRange']();if(_0x2cb008['isEqual'](_0x191c61)){_0x30ff9b?(_0x2a8ab3['splice'](_0xff9900,0x1),_0xff9900--):_0x4be3da['removeMarker'](_0x15bb1a['name']);break;}}}}if(0x0==_0x2a8ab3['length'])return null;const _0x56d0f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x529616,'join');for(const _0x37e6a4 of this['getSuggestions']())if(_0x37e6a4['author']['id']==_0x368ed1['id']&&'formatBlock'==_0x37e6a4['type']&&_0x37e6a4['data']['formatGroupId']==_0x45068a['formatGroupId']&&_0x37e6a4['subType']==_0x529616&&qt(_0x37e6a4,_0x49ea55)&&(_0x56d0f7(_0x37e6a4['getRanges'](),_0x2a8ab3)||_0x56d0f7(_0x2a8ab3,_0x37e6a4['getRanges']()))){for(const _0xdea2f8 of _0x2a8ab3)_0x37e6a4['addRange'](_0xdea2f8);return _0x37e6a4;}const _0x32c970=_0x265842(),_0x12aa58=_0x368ed1['id'],_0x224857='formatBlock:'+_0x529616,_0x5a129d=this['_setSuggestionData']({'id':_0x32c970,'type':_0x224857,'data':_0x45068a,'createdAt':new Date(),'authorId':_0x12aa58,'attributes':_0x49ea55});for(const _0x5c678b of _0x2a8ab3)this['_addSuggestionMarker'](_0x224857,_0x32c970,_0x12aa58,_0x5c678b,u['getMultiRangeId']());return _0x5a129d;}['markDeletion'](_0x57bb43,_0x42bf0c=null,_0x3f791b={}){if(_0x57bb43['isCollapsed'])return null;const _0x414c4a=this['editor']['plugins']['get']('Users')['me'],_0x5c4741=new _0x3a302(_0x57bb43['start'],_0x57bb43['end']);for(const {suggestion:_0xf0d219,meta:_0x516f8e}of this['_findSuggestions'](_0x5c4741,'insertion'))if(_0x516f8e['isOwn']&&!_0x516f8e['isNextTo']){if(_0xf0d219['isMultiRange']){const _0x2b41f8=_0xf0d219['getRanges']()['filter'](_0x3b0bab=>'$graveyard'!=_0x3b0bab['root']['rootName']);_0x2b41f8['every'](_0x56ca58=>_0x5c4741['containsRange'](_0x56ca58,!0x0))&&_0xf0d219['discard']();if(_0x2b41f8['some'](_0x307013=>_0x307013['containsRange'](_0x5c4741,!0x0))){const _0x52fe97=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42bf0c,'accept');return this['forceDefaultExecution'](()=>_0x52fe97([_0x5c4741],null,_0x3f791b)),null;}}else{const _0x376328=_0x5c4741['getIntersection'](_0xf0d219['getFirstRange']());null!==_0x376328&&_0xf0d219['_onDiscard']([_0x376328],null,_0x3f791b);}}if(_0x5c4741['detach'](),_0x5c4741['isCollapsed']||'$graveyard'==_0x5c4741['root']['rootName'])return null;let _0x9aba95=null,_0x54645b=_0x5c4741['start'],_0x48790a=_0x5c4741['end'];const _0x2dd778=this['_findSuggestions'](_0x5c4741,'deletion');for(const {suggestion:_0x3e3a78,meta:_0x42a12b}of _0x2dd778){const _0x288f57=this['_model']['createRange'](_0x54645b,_0x48790a);if(_0x42a12b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x42a12b['containsRangeInObject']&&!_0x42a12b['isInsideObject'])){if(_0x3e3a78['isMultiRange']){if(!qt(_0x3e3a78,_0x3f791b))continue;let _0x48395a=!0x0;for(const _0x55ca6f of _0x3e3a78['getRanges']()){if(_0x55ca6f['containsRange'](_0x288f57,!0x0))return _0x3e3a78;_0x288f57['containsRange'](_0x55ca6f)||(_0x48395a=!0x1);}_0x48395a&&_0x3e3a78['discard']();}else{const _0x7a4b1d=_0x3e3a78['getFirstRange']();if(_0x7a4b1d['containsRange'](_0x288f57,!0x0))return _0x3e3a78;if(!qt(_0x3e3a78,_0x3f791b)){_0x288f57['containsRange'](_0x7a4b1d)?_0x3e3a78['removeMarkers']():_0x7a4b1d['containsPosition'](_0x54645b)?_0x54645b=_0x7a4b1d['end']:_0x7a4b1d['containsPosition'](_0x48790a)&&(_0x48790a=_0x7a4b1d['start']);continue;}_0x54645b=_0x54645b['isBefore'](_0x7a4b1d['start'])?_0x54645b:_0x7a4b1d['start'],_0x48790a=_0x48790a['isAfter'](_0x7a4b1d['end'])?_0x48790a:_0x7a4b1d['end'],_0x3f791b=Object['assign']({},_0x3e3a78['attributes']),_0x9aba95?_0x7a4b1d['start']['isBefore'](_0x9aba95['getFirstRange']()['start'])?(_0x9aba95['removeMarkers'](),_0x9aba95=_0x3e3a78):_0x3e3a78['removeMarkers']():_0x9aba95=_0x3e3a78;}}}if(_0x9aba95)return this['_setSuggestionRange'](_0x9aba95,this['_model']['createRange'](_0x54645b,_0x48790a)),_0x9aba95;{const _0x3b140d=_0x265842(),_0x10ee1d=this['_model']['createRange'](_0x54645b,_0x48790a),_0x38ddf7=_0x414c4a['id'],_0xcc177d=_0x42bf0c?'deletion:'+_0x42bf0c:'deletion',_0x4b5467=this['_setSuggestionData']({'id':_0x3b140d,'type':_0xcc177d,'createdAt':new Date(),'authorId':_0x38ddf7,'attributes':_0x3f791b});return this['_addSuggestionMarker'](_0xcc177d,_0x3b140d,_0x38ddf7,_0x10ee1d),_0x4b5467;}}['markMultiRangeDeletion'](_0x4f53af,_0x45634b='multi',_0x4f67d3={}){const _0x4421b6=this['editor']['plugins']['get']('Users')['me'],_0x19c781=_0x4f53af['map'](_0x49a3a8=>new _0x3a302(_0x49a3a8['start'],_0x49a3a8['end'])),_0x26c900=new Set();for(const {suggestion:_0x15e410,meta:_0x48102c}of this['_findSuggestions'](_0x19c781,'insertion'))_0x48102c['isOwn']&&!_0x48102c['isNextTo']&&_0x26c900['add'](_0x15e410);for(const _0x18fae9 of _0x26c900)if(_0x18fae9['isMultiRange']){const _0x258387=_0x18fae9['getRanges']();(!_0x18fae9['attributes']||!_0x18fae9['attributes']['skipNestingCheck'])&&(_0x258387['every'](_0x2a0bfc=>_0x19c781['some'](_0x344bab=>_0x344bab['containsRange'](_0x2a0bfc,!0x0)))&&_0x18fae9['discard']());if(_0x19c781['every'](_0x36bf5f=>_0x258387['some'](_0x4cc02b=>_0x4cc02b['containsRange'](_0x36bf5f,!0x0)))){const _0x5d0e66=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45634b,'accept');return this['forceDefaultExecution'](()=>_0x5d0e66(_0x4f53af,null,_0x4f67d3)),null;}}else{const _0x3e0110=_0x18fae9['getFirstRange']();_0x19c781['some'](_0x5038c3=>_0x5038c3['containsRange'](_0x3e0110,!0x0))&&_0x18fae9['discard']();if(_0x19c781['every'](_0x3ab726=>_0x3e0110['containsRange'](_0x3ab726,!0x0))){const _0x508360=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45634b,'accept');return this['forceDefaultExecution'](()=>_0x508360(_0x19c781,null,_0x4f67d3)),null;}}const _0x222b4f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45634b,'join');let _0x45cf3=null;for(const _0x307876 of this['getSuggestions']())if(_0x307876['author']['id']==_0x4421b6['id']&&_0x307876['isInContent']&&'deletion'==_0x307876['type']&&_0x307876['subType']==_0x45634b&&qt(_0x307876,_0x4f67d3)&&(_0x222b4f(_0x307876['getRanges'](),_0x19c781)||_0x222b4f(_0x19c781,_0x307876['getRanges']()))){if(_0x45cf3){if(_0x307876['commentThread']&&_0x307876['commentThread']['length'])continue;for(const _0x508bb7 of _0x307876['getRanges']())_0x45cf3['isIntersectingWithRange'](_0x508bb7)||_0x45cf3['addRange'](_0x508bb7);_0x307876['removeMarkers']();}else{_0x45cf3=_0x307876;for(const _0x143932 of _0x19c781)_0x307876['isIntersectingWithRange'](_0x143932)||_0x307876['addRange'](_0x143932);}}if(_0x45cf3)return _0x45cf3;_0x26c900['clear']();for(const {suggestion:_0x336c6c,meta:_0x2e51e5}of this['_findSuggestions'](_0x19c781,'deletion'))_0x2e51e5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2e51e5['containsRangeInObject']&&!_0x2e51e5['isInsideObject'])&&qt(_0x336c6c,_0x4f67d3)&&_0x26c900['add'](_0x336c6c);for(const _0x203bbb of _0x26c900){const _0x15c6a1=_0x203bbb['getRanges']();if(!_0x4f67d3||!_0x4f67d3['skipNestingCheck']){if(_0x19c781['every'](_0x180041=>_0x15c6a1['some'](_0x2fb452=>_0x2fb452['containsRange'](_0x180041,!0x0))))return _0x203bbb;}(!_0x203bbb['attributes']||!_0x203bbb['attributes']['skipNestingCheck'])&&(_0x15c6a1['every'](_0x37ff56=>_0x19c781['some'](_0x592cc1=>_0x592cc1['containsRange'](_0x37ff56,!0x0)))&&_0x203bbb['discard']());}const _0x14c86f=_0x265842(),_0x42e203=_0x4421b6['id'],_0x304024='deletion:'+_0x45634b,_0x2fd63a=this['_setSuggestionData']({'id':_0x14c86f,'type':_0x304024,'createdAt':new Date(),'authorId':_0x42e203,'attributes':_0x4f67d3});for(const _0x5af931 of _0x19c781)_0x5af931['detach'](),_0x5af931['isCollapsed']||'$graveyard'==_0x5af931['root']['rootName']||this['_addSuggestionMarker'](_0x304024,_0x14c86f,_0x42e203,_0x5af931,u['getMultiRangeId']());return _0x2fd63a;}['markAttributeChange'](_0x2d773d,_0x5ba7e8,_0x2de9c4,_0x2c844c,_0x2a99a8){if(_0x2d773d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2cfc29=this['editor']['plugins']['get']('Users')['me']['id'],_0x55a631=Array['from'](this['_suggestions']['values']())['filter'](_0x44f427=>'attribute'==_0x44f427['type']&&_0x44f427['data']['key']==_0x5ba7e8&&_0x44f427['isIntersectingWithRange'](_0x2d773d));if('default'===this['_trackFormatChanges']){const _0x3183a4=this['_findSuggestions'](_0x2d773d,'insertion')['filter'](({meta:_0x473051})=>_0x473051['isOwn']&&!_0x473051['isInsideObject']&&!_0x473051['isNextTo'])['map'](({suggestion:_0x1d9c70})=>_0x1d9c70);_0x55a631['unshift'](..._0x3183a4);}const _0x937a6a=new Map([[_0x2d773d,_0x2de9c4]]);for(const _0x1136a2 of _0x55a631){const _0x103852='attribute'==_0x1136a2['type']?_0x1136a2['data']['oldValue']:void 0x0,_0xcad411=_0x1136a2['getFirstRange'](),_0x5c64b7=Array['from'](_0x937a6a['keys']())['find'](_0x9f4d88=>_0x9f4d88['isIntersecting'](_0xcad411));if(!_0x5c64b7)continue;const _0x54d5ca=_0x5c64b7['getDifference'](_0xcad411);this['_isBlockAttribute'](_0x5ba7e8)&&'insertion'==_0x1136a2['type']&&0x0!=_0x54d5ca['length']||(_0x937a6a['delete'](_0x5c64b7),_0x54d5ca['forEach'](_0x4a3f2f=>{_0x937a6a['set'](_0x4a3f2f,_0x2de9c4);}),'insertion'!=_0x1136a2['type']&&_0x103852!=_0x2c844c&&_0x937a6a['set'](_0x5c64b7['getIntersection'](_0xcad411),_0x103852));}const _0x3e1d11=[];for(const [_0x3dc36b,_0x3c9469]of _0x937a6a){const _0x1a7bf5=_0x265842(),_0x5cbf79={'key':_0x5ba7e8,'oldValue':_0x3c9469,'newValue':_0x2c844c};_0x5ba7e8['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':_0x5ba7e8});const _0x198eca=('attribute:'+(_0x5ba7e8+'|'+Pt({'newValue':_0x2c844c})))['substring'](0x0,0x3c),_0x5b3f11=this['_setSuggestionData']({'id':_0x1a7bf5,'type':_0x198eca,'data':_0x5cbf79,'createdAt':new Date(),'authorId':_0x2cfc29,'attributes':_0x2a99a8});_0x3e1d11['push'](_0x5b3f11),this['_addSuggestionMarker'](_0x198eca,_0x1a7bf5,_0x2cfc29,_0x3dc36b);}return _0x3e1d11;}['enableDefaultAttributesIntegration'](_0x34a082){this['enableCommand'](_0x34a082,(_0x88fcb5,..._0x1ee5ac)=>{this['_recordAttributeChanges'](()=>{_0x88fcb5(..._0x1ee5ac);});});}['registerBlockAttribute'](_0x338208){this['_blockAttributeKeys']['add'](_0x338208);}['registerInlineAttribute'](_0x5a8113){this['_inlineAttributeKeys']['add'](_0x5a8113);}['_getAttributeKey'](_0xea64ef){return'attribute'==_0xea64ef['type']?_0xea64ef['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x237621,_0x22cff3){const _0x2e7085=_0x237621['getFirstMarker']();this['_model']['change'](_0x1de884=>{_0x1de884['updateMarker'](_0x2e7085,{'range':_0x22cff3});});}['_addThreadToSuggestion'](_0x2543ee){const _0x21feed=_0x2543ee['id'],_0x49023e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x21feed)||this['_commentsRepository']['addCommentThread']({'channelId':_0x49023e,'threadId':_0x21feed,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xbbd392=this['_commentsRepository']['getCommentThread'](_0x21feed);_0xbbd392['unbind']('isRemovable'),_0xbbd392['isRemovable']=!0x1,_0x2543ee['commentThread']=_0xbbd392;}['_checkSuggestionCorrectness'](_0x1a1978,_0x8ad4df,_0x19e747,_0x5a3082){if(_0x1a1978['type']!=_0x8ad4df||_0x1a1978['subType']!=_0x19e747||_0x1a1978['creator']['id']!=_0x5a3082)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x55a112('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x288873,_0x36e480){const _0x523898=_0x288873['getFirstRange']();if(_0x36e480['isEqual'](_0x523898))_0x288873['removeMarkers']();else{if(_0x523898['containsRange'](_0x36e480)){const _0x3646c1=this['_model']['createPositionAt'](_0x36e480['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x288873,this['_model']['createRange'](_0x523898['start'],_0x3646c1));const _0x26a23c=_0x265842(),_0x37b885=_0x288873['creator']['id'],_0x60b264=_0x288873['type']+':'+_0x288873['subType'];this['_setSuggestionData']({'id':_0x26a23c,'type':_0x60b264,'createdAt':new Date(),'authorId':_0x37b885,'data':_0x288873['data'],'attributes':_0x288873['attributes']});const _0x31458d=this['_model']['createPositionAt'](_0x36e480['end']['parent'],'after'),_0x5c24fc=this['_model']['createRange'](_0x31458d,_0x523898['end']);this['_addSuggestionMarker'](_0x60b264,_0x26a23c,_0x37b885,_0x5c24fc);}else{if(_0x523898['containsPosition'](_0x36e480['start'])){const _0x1cc986=this['_model']['createPositionAt'](_0x36e480['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x288873,this['_model']['createRange'](_0x523898['start'],_0x1cc986));}else{const _0x46947b=this['_model']['createPositionAt'](_0x36e480['end']['parent'],'after');this['_setSuggestionRange'](_0x288873,this['_model']['createRange'](_0x46947b,_0x523898['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3330f5){for(const {suggestion:_0x517082,meta:_0xafe233}of this['_findSuggestions'](_0x3330f5,'insertion')){if(!_0xafe233['isOwn'])continue;const _0x21d4ea=_0x517082['getRanges']();for(const _0xfd955d of _0x21d4ea)if(!_0x3330f5['getDifference'](_0xfd955d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x25e9f1){const _0x3b0bf7=this['editor']['plugins']['get']('Users')['getUser'](_0x25e9f1);if(!_0x3b0bf7)throw new _0x55a112('track-changes-user-not-found',this);return _0x3b0bf7;}['_getExternalAuthor'](_0x12efe4){const _0x347b87=this['editor']['plugins']['get']('Users'),_0x4c8286=_0x3d6d49('external:'+_0x12efe4),_0x4ed811=_0x347b87['getUser'](_0x4c8286);return _0x4ed811||_0x347b87['addUser']({'id':_0x4c8286,'name':_0x12efe4});}['_createSuggestion'](_0x59460f,_0x10552f,_0xa3a321,_0xdae288,_0x11690b){const _0x19ae83=this['_getAuthorFromId'](_0xdae288),_0x39933c=this['_suggestionFactory']['buildSuggestion'](_0x59460f,_0x10552f,_0xa3a321,_0x19ae83,_0x11690b,_0x5571e0=>{this['_updateSuggestionData'](_0xa3a321,{'attributes':_0x5571e0});const _0x8a154f=this['getSuggestion'](_0xa3a321);this['_joinWithAdjacentSuggestions'](new Set([_0x8a154f])),this['_refreshSuggestionsChain'](new Set([_0x8a154f]));});return this['listenTo'](_0x39933c,'accept',()=>{this['_updateSuggestionData'](_0xa3a321,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x39933c,'discard',()=>{this['_updateSuggestionData'](_0xa3a321,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xa3a321,_0x39933c),this['_suggestionState']['set'](_0x39933c,'notReady'),_0x39933c;}['_splitMarkerName'](_0x4efb0a){const _0x107a83=_0x4efb0a['split'](':');return{'group':_0x107a83[0x0],'type':_0x107a83[0x1],'subType':_0x107a83['length']>=0x5?_0x107a83[0x2]:null,'id':_0x107a83['length']<0x5?_0x107a83[0x2]:_0x107a83[0x3],'authorId':_0x107a83['length']<0x5?_0x107a83[0x3]:_0x107a83[0x4],'markerCount':0x6==_0x107a83['length']?_0x107a83[0x5]:null};}['_breakSuggestionMarker'](_0x5e688a,_0x2d3e8a,_0x30bbb1){const _0x55ce63=_0x5e688a['getFirstRange'](),_0x48f2b0=_0x55ce63['start'],_0x514f22=_0x55ce63['end'];this['_setSuggestionRange'](_0x5e688a,this['_model']['createRange'](_0x48f2b0,_0x2d3e8a));const _0x27b538=_0x265842(),_0x1e1497=_0x5e688a['creator']['id'],_0x4ff709=_0x5e688a['type']+(_0x5e688a['subType']?':'+_0x5e688a['subType']:'');this['_setSuggestionData']({'id':_0x27b538,'type':_0x4ff709,'createdAt':new Date(),'authorId':_0x1e1497,'originalSuggestionId':_0x5e688a['id'],'attributes':_0x5e688a['attributes'],'data':_0x5e688a['data']});const _0x10c33d=this['_getAttributeKey'](_0x5e688a);('formatBlock'==_0x5e688a['type']||_0x10c33d&&this['_isBlockAttribute'](_0x10c33d))&&(_0x30bbb1=this['_model']['createPositionBefore'](_0x30bbb1['parent'])),this['_addSuggestionMarker'](_0x4ff709,_0x27b538,_0x1e1497,this['_model']['createRange'](_0x30bbb1,_0x514f22));}['_findSuggestions'](_0x284751,_0x111f46=null){const _0x12bd1d=[],_0x537698=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x284751)||(_0x284751=[_0x284751]);for(const _0x5a2675 of this['getSuggestions']()){if(!_0x5a2675['isInContent'])continue;if(_0x111f46&&_0x5a2675['type']!=_0x111f46)continue;let _0x18e91d=!0x1;for(const _0x184b92 of _0x5a2675['getRanges']()){for(const _0x28d0c2 of _0x284751){const _0x36b35d=_0x28d0c2['start']['isEqual'](_0x184b92['end'])||_0x28d0c2['end']['isEqual'](_0x184b92['start']);if(_0x36b35d||_0x28d0c2['getIntersection'](_0x184b92)){const _0x5e132a=_0x28d0c2['containsRange'](_0x184b92)&&Et(this['_model']['schema'],_0x184b92['start'],_0x28d0c2),_0x2dfe48=_0x184b92['containsRange'](_0x28d0c2)&&Et(this['_model']['schema'],_0x28d0c2['start'],_0x184b92);_0x12bd1d['push']({'suggestion':_0x5a2675,'meta':{'isOwn':_0x537698==_0x5a2675['author'],'isNextTo':_0x36b35d,'isInsideObject':_0x5e132a,'containsRangeInObject':_0x2dfe48}}),_0x18e91d=!0x0;break;}}if(_0x18e91d)break;}}return _0x12bd1d;}['_addSuggestionMarker'](_0x4d726a,_0x14a7ec,_0x319c67,_0x57cde0,_0x52c071){this['_model']['change'](_0x2e7e01=>{let _0x352dbc='suggestion:'+_0x4d726a+':'+_0x14a7ec+':'+_0x319c67;_0x52c071&&(_0x352dbc=_0x352dbc+':'+_0x52c071),_0x2e7e01['addMarker'](_0x352dbc,{'range':_0x57cde0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5d28a5){const _0x5291ba=_0x5d28a5['previous'],_0x2ffd64=_0x5d28a5['next'];_0x5d28a5['previous']=null,_0x5d28a5['next']=null,null!=_0x5291ba&&_0x5291ba['next']==_0x5d28a5&&(_0x5291ba['next']=_0x2ffd64),null!=_0x2ffd64&&_0x2ffd64['previous']==_0x5d28a5&&(_0x2ffd64['previous']=_0x5291ba),'ready'==this['_suggestionState']['get'](_0x5d28a5)&&(this['_suggestionState']['set'](_0x5d28a5,'removed'),this['fire']('suggestionUnloaded',_0x5d28a5,_0x5291ba,_0x2ffd64));}['_setSuggestionData'](_0x20b8c5){const _0x366e97=_0x20b8c5['id'],_0x3e4f7e=this['addSuggestionData'](_0x20b8c5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x49bd1a=this['editor']['plugins']['get']('PendingActions'),_0x5d9c2a=_0x3e4f7e['hasComments'],_0x53598b=_0x3e4f7e['subType']?_0x3e4f7e['type']+':'+_0x3e4f7e['subType']:_0x3e4f7e['type'],_0x4ff7dc=this['editor']['locale'],_0x2068e4=_0x49bd1a['add'](o(_0x4ff7dc,'PENDING_ACTION_SUGGESTION')),_0x1d31a3={'id':_0x366e97,'type':_0x53598b,'hasComments':_0x5d9c2a,'data':_0x20b8c5['data']||null,'originalSuggestionId':_0x20b8c5['originalSuggestionId']||null,'attributes':_0x3e4f7e['attributes']};this['_adapter']['addSuggestion'](_0x1d31a3)['then'](_0x2072b2=>{_0x3e4f7e['_saved']=!0x0,_0x49bd1a['remove'](_0x2068e4),_0x2072b2&&_0x2072b2['createdAt']&&(this['_suggestions']['get'](_0x366e97)['createdAt']=_0x2072b2['createdAt']);})['catch'](_0xb3fcbe=>{throw _0x10df08('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3e4f7e['discard']();}),_0x3e4f7e['stopListening'](),this['_suggestions']['delete'](_0x3e4f7e['id']),this['_suggestionState']['delete'](_0x3e4f7e),_0xb3fcbe;});}return _0x3e4f7e;}['_isBlockAttribute'](_0x334596){return this['_blockAttributeKeys']['has'](_0x334596);}['_updateSuggestionData'](_0x36af46,_0x34746a){const _0x14b940=this['editor']['plugins']['get']('PendingActions'),_0x590ec6=this['getSuggestion'](_0x36af46);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x590ec6['_saved']){const _0x5696f3=_0x14b940['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x36af46,_0x34746a)['then'](()=>{_0x14b940['remove'](_0x5696f3);});}else _0x590ec6['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x36af46,_0x34746a);});}}['_getSuggestionData'](_0x586253){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x55a112('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x586253);}['_handleNewSuggestionMarker'](_0x414301){const {id:_0x5bf59e,type:_0x16f073,subType:_0x1eba67,authorId:_0x2afca0}=this['_splitMarkerName'](_0x414301),_0x3f6a6e=this['_suggestions']['get'](_0x5bf59e)||this['_createSuggestion'](_0x16f073,_0x1eba67,_0x5bf59e,_0x2afca0,{});switch(this['_checkSuggestionCorrectness'](_0x3f6a6e,_0x16f073,_0x1eba67,_0x2afca0),this['_suggestionState']['get'](_0x3f6a6e)){case'notReady':this['_getSuggestionData'](_0x5bf59e)['then'](_0x2bf51f=>{let _0x1b3ecf=Promise['resolve']();_0x2bf51f['hasComments']&&(_0x1b3ecf=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5bf59e})),_0x1b3ecf['then'](()=>{this['addSuggestionData'](_0x2bf51f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3f6a6e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5bf59e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3f6a6e,'ready'),this['fire']('suggestionLoaded',_0x3f6a6e);break;case'ready':this['fire']('suggestionChanged',_0x3f6a6e);}return _0x3f6a6e['addMarkerName'](_0x414301),_0x3f6a6e;}['_refreshSuggestionsChain'](_0x2084fd){const _0x1f4d77=Array['from'](_0x2084fd),_0x43c2b5=_0x1f4d77['filter'](_0x2aac66=>'attribute'==_0x2aac66['type']);this['_refreshAttributeSuggestionsChain'](_0x43c2b5);const _0x3a7ca6=_0x1f4d77['filter'](_0x1d2449=>!_0x1d2449['isMultiRange']&&'attribute'!=_0x1d2449['type']),_0x15510f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32ec0e=>!_0x32ec0e['isMultiRange']&&'attribute'!=_0x32ec0e['type']),_0x2acd9d=_0x15510f['filter'](_0x29a9ce=>!_0x2084fd['has'](_0x29a9ce)),_0x23cdd8=new Map(_0x15510f['map'](_0x1df57f=>[_0x1df57f,this['_suggestionFactory']['getSuggestionCallback'](_0x1df57f['type'],_0x1df57f['subType'],'chain')])),_0x2f18bc=new Map(_0x15510f['map'](_0x4964b6=>[_0x4964b6,_0x4964b6['getFirstRange']()])),_0x57128a=new Set(),_0x34f6ea=new Set();for(let _0x1abfe9=0x0;_0x1abfe9<_0x3a7ca6['length'];_0x1abfe9++)_0x247f37(_0x3a7ca6[_0x1abfe9],_0x3a7ca6,_0x1abfe9+0x1);for(let _0x2e412a=0x0;_0x2e412a<_0x3a7ca6['length'];_0x2e412a++)_0x247f37(_0x3a7ca6[_0x2e412a],_0x2acd9d,0x0);const _0x47d017=new Set();for(let _0x37b310=0x0;_0x37b310<_0x3a7ca6['length'];_0x37b310++){const _0x238ad0=_0x3a7ca6[_0x37b310];!_0x34f6ea['has'](_0x238ad0)&&_0x238ad0['previous']&&(_0x47d017['add'](_0x238ad0['previous']),_0x238ad0['previous']['next']===_0x238ad0&&(_0x238ad0['previous']['next']=null),_0x238ad0['previous']=null),!_0x57128a['has'](_0x238ad0)&&_0x238ad0['next']&&(_0x47d017['add'](_0x238ad0['next']),_0x238ad0['next']['previous']===_0x238ad0&&(_0x238ad0['next']['previous']=null),_0x238ad0['next']=null);}function _0x247f37(_0x45eb7d,_0xa22be7,_0x5ca4df){for(let _0x5b4beb=_0x5ca4df;_0x5b4beb<_0xa22be7['length'];_0x5b4beb++){const _0x5e8ded=_0x368b25(_0x45eb7d,_0xa22be7[_0x5b4beb]);_0x5e8ded&&(_0x5e8ded[0x0]['next']=_0x5e8ded[0x1],_0x5e8ded[0x1]['previous']=_0x5e8ded[0x0],_0x57128a['add'](_0x5e8ded[0x0]),_0x34f6ea['add'](_0x5e8ded[0x1]));}}function _0x368b25(_0xcb72fd,_0x5b795b){if(_0xcb72fd['author']['id']!==_0x5b795b['author']['id'])return null;const _0x48796c=_0x23cdd8['get'](_0xcb72fd)(_0xcb72fd,_0x5b795b,_0x2f18bc['get'](_0xcb72fd),_0x2f18bc['get'](_0x5b795b));if(!_0x48796c)return null;return _0x23cdd8['get'](_0x5b795b)(_0xcb72fd,_0x5b795b,_0x2f18bc['get'](_0xcb72fd),_0x2f18bc['get'](_0x5b795b))?_0x48796c[0x1]['commentThread']&&_0x48796c[0x1]['commentThread']['length']?null:_0x48796c:null;}_0x47d017['size']&&this['_refreshSuggestionsChain'](_0x47d017);}['_refreshAttributeSuggestionsChain'](_0x2146d0){if(0x0==_0x2146d0['length'])return;const _0x57c620=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50d0e0=>'attribute'==_0x50d0e0['type']&&_0x50d0e0['_isDataLoaded']),_0x4b6ced=[],_0x2abb6c=new Map();for(const _0x4a992d of _0x57c620){const _0x1b61ef=_0x3d6d49(_0x4a992d['attributes']);_0x2abb6c['has'](_0x1b61ef)||(_0x2abb6c['set'](_0x1b61ef,_0x4b6ced['length']),_0x4b6ced['push']([]));const _0x48a392=_0x2abb6c['get'](_0x1b61ef);_0x4b6ced[_0x48a392]['push'](_0x4a992d);}!(function(){_0x4b6ced['sort']((_0x355718,_0x24d01d)=>{const _0x59e904=_0x355718[0x0]['createdAt'],_0x12c0b4=_0x24d01d[0x0]['createdAt'];return _0x59e904==_0x12c0b4?_0x355718[0x0]['attributes']['groupId']<_0x24d01d[0x0]['attributes']['groupId']?-0x1:0x1:_0x59e904<_0x12c0b4?-0x1:0x1;});for(const _0x254dfe of _0x4b6ced)_0x254dfe['sort']((_0x4fb199,_0xdd155f)=>_0x4fb199['id']<_0xdd155f['id']?-0x1:0x1);}());for(let _0x58b35b=0x0;_0x58b35b<_0x4b6ced['length'];_0x58b35b++){if(0x0==_0x4b6ced[_0x58b35b]['length'])continue;const _0x2096fa=[];for(let _0x37a839=_0x58b35b+0x1;_0x37a839<_0x4b6ced['length'];_0x37a839++)0x0!=_0x4b6ced[_0x37a839]['length']&&_0x4f5a69(_0x4b6ced[_0x58b35b],_0x4b6ced[_0x37a839])&&_0x2096fa['push'](_0x37a839);for(const _0x46ab58 of _0x2096fa)_0x4b6ced[_0x58b35b]=_0x4b6ced[_0x58b35b]['concat'](_0x4b6ced[_0x46ab58]),_0x4b6ced[_0x46ab58]=[];}for(const _0x15c139 of _0x4b6ced)for(let _0x56ad70=0x0;_0x56ad70<_0x15c139['length'];_0x56ad70++){const _0x246dd0=_0x15c139[_0x56ad70+0x1]||null;_0x15c139[_0x56ad70]['next']!==_0x246dd0&&(_0x15c139[_0x56ad70]['next']=_0x246dd0);}for(const _0x128c99 of _0x4b6ced)for(let _0x3b8271=0x0;_0x3b8271<_0x128c99['length'];_0x3b8271++){const _0x26bc46=_0x128c99[_0x3b8271-0x1]||null;_0x128c99[_0x3b8271]['previous']!==_0x26bc46&&(_0x128c99[_0x3b8271]['previous']=_0x26bc46);}function _0x4f5a69(_0x2ea563,_0xb1a7a4){if(_0x2ea563[0x0]['attributes']['groupId']!==_0xb1a7a4[0x0]['attributes']['groupId']&&_0x2ea563[0x0]['author']!==_0xb1a7a4[0x0]['author'])return!0x1;if(!function(_0x4d7ec6,_0x5703dd){if(!_0x4d7ec6['hasComments']&&!_0x5703dd['hasComments'])return!0x0;if(_0x4d7ec6['hasComments']&&_0x5703dd['hasComments'])return!0x1;if(_0x4d7ec6['hasComments']&&_0x5703dd['createdAt']<_0x4d7ec6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5703dd['hasComments']&&_0x4d7ec6['createdAt']<_0x5703dd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2ea563[0x0],_0xb1a7a4[0x0]))return!0x1;const _0x243e8c=Rt(_0x2ea563[0x0]['attributes'],'groupId'),_0x2e2409=Rt(_0xb1a7a4[0x0]['attributes'],'groupId');if(!_0x5c31e6(_0x243e8c,_0x2e2409))return!0x1;return!!_0x2ea563['every'](_0xf6dbd6=>_0xb1a7a4['some'](_0x3bde8f=>_0xf6dbd6['getFirstRange']()['isEqual'](_0x3bde8f['getFirstRange']())))&&_0xb1a7a4['every'](_0x58d591=>_0x2ea563['some'](_0x5ab89b=>_0x58d591['getFirstRange']()['isEqual'](_0x5ab89b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3b17ad){const _0x57c9a8=Array['from'](_0x3b17ad),_0xa80a2b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x38f95a=_0xa80a2b['filter'](_0x2619a4=>!_0x3b17ad['has'](_0x2619a4)),_0x5cb107=new Map(_0x57c9a8['map'](_0x576ff3=>[_0x576ff3,this['_suggestionFactory']['getSuggestionCallback'](_0x576ff3['type'],_0x576ff3['subType'],'join')])),_0xb160a7=new Map(_0xa80a2b['map'](_0xd2fe1f=>[_0xd2fe1f,_0xd2fe1f['getRanges']()]));for(let _0x38b134=0x0;_0x38b134<_0x57c9a8['length'];_0x38b134++){if(_0x29160f(this,_0x57c9a8[_0x38b134],_0x57c9a8,_0x38b134+0x1))return!0x0;}for(let _0x1cdc33=0x0;_0x1cdc33<_0x57c9a8['length'];_0x1cdc33++){if(_0x29160f(this,_0x57c9a8[_0x1cdc33],_0x38f95a,0x0))return!0x0;}return!0x1;function _0x29160f(_0x156552,_0x2aaa13,_0x1be4ac,_0xac229a){for(let _0x1f9a38=_0xac229a;_0x1f9a38<_0x1be4ac['length'];_0x1f9a38++){const _0x59fca6=_0x1be4ac[_0x1f9a38];if(_0x59fca6['type']!==_0x2aaa13['type']||_0x59fca6['author']['id']!==_0x2aaa13['author']['id']||_0x59fca6['subType']!==_0x2aaa13['subType'])continue;if(!Jt(_0x2aaa13,_0x59fca6))continue;if('attribute'==_0x2aaa13['type']&&_0x2aaa13['data']['oldValue']!=_0x59fca6['data']['oldValue'])continue;if('attribute'==_0x2aaa13['type']&&_0x156552['_isBlockAttribute'](_0x2aaa13['data']['key']))continue;if('formatBlock'==_0x2aaa13['type']){const _0x4f81cf=_0x156552['editor']['model'],_0x28adc0=_0x2aaa13['getContainedElement']();if(_0x28adc0&&(_0x4f81cf['schema']['isObject'](_0x28adc0)||_0x4f81cf['schema']['isLimit'](_0x28adc0)))continue;}const _0x105db9=_0x5cb107['get'](_0x2aaa13),_0x1c1018=_0xb160a7['get'](_0x2aaa13),_0x3df157=_0xb160a7['get'](_0x59fca6),_0x4e7b29=_0x2aaa13['commentThread']&&_0x2aaa13['commentThread']['length'],_0x1a3626=_0x59fca6['commentThread']&&_0x59fca6['commentThread']['length'];if(!_0x4e7b29&&_0x105db9(_0x3df157,_0x1c1018))return _0x156552['_joinSuggestions'](_0x59fca6,_0x2aaa13),_0xb160a7['delete'](_0x2aaa13),!0x0;if(!_0x1a3626&&_0x105db9(_0x1c1018,_0x3df157))return _0x156552['_joinSuggestions'](_0x2aaa13,_0x59fca6),_0xb160a7['delete'](_0x59fca6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x236feb,_0x98157b){if(_0x236feb['isMultiRange']){for(const _0x2c74f2 of _0x98157b['getRanges']())_0x236feb['addRange'](_0x2c74f2);}else{const _0x43f609=_0x98157b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x236feb,this['_model']['createRange'](_0x236feb['getFirstRange']()['start'],_0x43f609));}_0x98157b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x384aa2,_0x54c4d6,_0x1464b3){const _0xaaca39=_0x384aa2['startsWith']('format')||_0x384aa2['startsWith']('attribute')?'FORMATTING':_0x384aa2['toUpperCase']();return o(this['editor']['locale'],_0x54c4d6+'_'+_0xaaca39+'_SUGGESTION_ANNOUNCEMENT',_0x1464b3);}['_initAriaMarkerChangeAnnouncements'](){const _0x21f5eb=this['editor'];if(!_0x21f5eb['ui'])return;const {ariaLiveAnnouncer:_0x1dbce2}=_0x21f5eb['ui'];_0x4ec1f8(this['_model'],({left:_0xb127a,entered:_0x1227f1})=>{for(const _0x41d7be of _0xb127a){const {group:_0x23df00,type:_0x3f0062}=this['_splitMarkerName'](_0x41d7be['name']);if('suggestion'===_0x23df00){_0x1dbce2['announce'](this['_getMarkerAnnouncementText'](_0x3f0062,'LEAVE'));break;}}for(const _0x30a474 of _0x1227f1){const {group:_0x443596,type:_0x4e710d}=this['_splitMarkerName'](_0x30a474['name']);if('suggestion'===_0x443596){_0x1dbce2['announce'](this['_getMarkerAnnouncementText'](_0x4e710d,'ENTER',_0x277fa6(_0x5d75da)));break;}}});}['_processAttributeChanges'](_0x3aa948){if(this['_recordAttributeSuggestions'])return!0x1;const _0x53ec4b=this['editor'],_0x5be84b=_0x53ec4b['model']['document']['differ']['getChanges']();if(0x0==_0x5be84b['length'])return!0x1;const _0x27f76f=[],_0x3fbafa=_0x5be84b['filter'](_0x2daa80=>'attribute'==_0x2daa80['type']),_0x30b0a9=_0x5be84b['filter'](_0x517152=>'insert'==_0x517152['type']&&'$text'!=_0x517152['name']),_0x47c54b=_0x5be84b['filter'](_0x2ed1be=>'remove'==_0x2ed1be['type']&&'$text'!=_0x2ed1be['name']);for(const _0x3d7c06 of _0x3fbafa)_0x27f76f['push']({'key':_0x3d7c06['attributeKey'],'newValue':_0x3d7c06['attributeNewValue'],'oldValue':_0x3d7c06['attributeOldValue'],'range':Ft(_0x3d7c06['range'],_0x53ec4b['model'])});for(const _0x7f9311 of _0x30b0a9){const _0x426a0f=_0x47c54b['find'](_0xa870e8=>_0xa870e8['position']['isEqual'](_0x7f9311['position']));_0x426a0f&&_0x27f76f['push']({'key':m,'newValue':_0x7f9311['name'],'oldValue':_0x426a0f['name'],'range':_0x53ec4b['model']['createRangeOn'](_0x7f9311['position']['nodeAfter'])});}return 0x0!=_0x27f76f['length']&&this['_reduceExistingSuggestions'](_0x3aa948,_0x27f76f);}['_processAttributeSuggestions'](_0x14e269){let _0x16164f=!0x1;const _0x4bb2e0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x402b73=>_0x402b73['data']['newRange']&&_0x402b73['name']['startsWith']('suggestion:attribute:'));for(const _0x985352 of _0x4bb2e0){const {subType:_0x2cb345,id:_0x72e454}=this['_splitMarkerName'](_0x985352['name']),_0x8c3140=_0x2cb345['split']('|')[0x0];for(const _0xf9cec6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xf9cec6['id']!=_0x72e454&&'attribute'==_0xf9cec6['type']&&_0xf9cec6['data']&&_0xf9cec6['data']['key']==_0x8c3140&&_0xf9cec6['getFirstRange']()['isIntersecting'](_0x985352['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xf9cec6,_0x985352['data']['newRange'],_0x14e269),_0x16164f=!0x0);}return _0x16164f;}['_recordAttributeChanges'](_0x39e684){this['_recordAttributeSuggestions']=!0x0,_0x39e684();}['_isRegisteredAttribute'](_0x437364){const _0x3852d0=this['_isBlockAttribute'](_0x437364),_0x152ca2=this['_inlineAttributeKeys']['has'](_0x437364);return _0x3852d0||_0x152ca2;}['_reduceExistingSuggestions'](_0x1e6e6c,_0xe23b79){if(0x0==_0xe23b79['length'])return!0x1;let _0x4e1927=!0x1;for(const _0x5e4afd of _0xe23b79){const _0x4392fa=this['_findSuggestions'](_0x5e4afd['range'],'attribute')['filter'](_0x1651d8=>!_0x1651d8['meta']['isNextTo'])['map'](_0x5e6f42=>_0x5e6f42['suggestion']),_0x5c2fb8=_0x3d6d49({'newValue':_0x5e4afd['newValue']});_0x4392fa['filter'](_0x3e732d=>{const [_0x251e8a,_0x38898e]=_0x3e732d['subType']['split']('|');return _0x251e8a==_0x5e4afd['key']&&_0x38898e!=_0x5c2fb8;})['forEach'](_0x37b657=>{this['_reduceSuggestionAttributeRange'](_0x37b657,_0x5e4afd['range'],_0x1e6e6c),_0x4e1927=!0x0;});}return _0x4e1927;}['_reduceSuggestionAttributeRange'](_0x22e966,_0x54d2f2,_0x7f1be6){const _0x15a54e=_0x22e966['getFirstRange']()['getDifference'](_0x54d2f2);0x0!==_0x15a54e['length']?0x1!==_0x15a54e['length']?this['_breakSuggestionMarker'](_0x22e966,_0x54d2f2['start'],_0x54d2f2['end']):this['_setSuggestionRange'](_0x22e966,_0x15a54e[0x0]):_0x7f1be6['removeMarker'](_0x22e966['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5ca97d){this['_editor']=_0x5ca97d,this['_model']=_0x5ca97d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x436611,_0x59e0f4,_0x3ccd98,_0x23ad52,_0x51c9e6,_0x43cee4){return new u(this['_model'],{'type':_0x436611,'subType':_0x59e0f4,'id':_0x3ccd98,'author':_0x23ad52,'creator':_0x23ad52,'attributes':_0x51c9e6,'onAttributesChange':_0x43cee4,'onAccept':(..._0x11d35b)=>this['getSuggestionCallback'](_0x436611,_0x59e0f4,'accept')(..._0x11d35b),'onDiscard':(..._0x47a895)=>this['getSuggestionCallback'](_0x436611,_0x59e0f4,'discard')(..._0x47a895)});}['registerCustomCallback'](_0x21ebdf,_0x2b7b7d,_0x5a4101,_0x2e54c4){const _0x2549c6=_0x21ebdf+':'+_0x2b7b7d+':'+_0x5a4101;this['_customCallbacks']['set'](_0x2549c6,_0x2e54c4);}['getSuggestionCallback'](_0xff0269,_0x1f4591,_0x3b9b4f){const _0x395e5b=_0xff0269+':'+_0x1f4591+':'+_0x3b9b4f;return this['_customCallbacks']['get'](_0x395e5b)||this['_defaultCallbacks']['get'](_0xff0269+':'+_0x3b9b4f);}['_registerDefaultCallbacks'](){const _0x29accd=()=>!0x1,_0x15ec8d=_0x1f45fe=>{_0x1f45fe['sort']((_0x21b2a5,_0x313cf)=>_0x21b2a5['start']['isBefore'](_0x313cf['start'])?0x1:-0x1),this['_model']['change'](_0x3e18ea=>{for(const _0xe052c5 of _0x1f45fe){let _0x51a2b2;_0x51a2b2=_0xe052c5['end']['isAtEnd']&&_0xe052c5['end']['parent']==_0xe052c5['start']['nodeAfter']?_0x3e18ea['createSelection'](_0xe052c5['start']['nodeAfter'],'on'):_0x3e18ea['createSelection'](_0xe052c5),this['_model']['deleteContent'](_0x51a2b2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x341e6e=(_0x5d92b2,_0x55a8a2)=>{_0x55a8a2&&this['_model']['change'](_0x20118d=>{const {commandName:_0x97e8e,commandParams:_0x40a952=[]}=_0x55a8a2,_0x6f2747=_0x5d92b2['map'](_0x3c60e0=>(Vt(_0x3c60e0)&&(_0x3c60e0=this['_model']['createRange'](_0x3c60e0['end'])),_0x3c60e0))['filter'](_0x29cfc9=>'$graveyard'!==_0x29cfc9['root']['rootName']);if(_0x6f2747['length']<0x1)return;const _0x324bc7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x122039=>_0x3a302['fromRange'](_0x122039));_0x20118d['setSelection'](_0x6f2747);for(const _0x32af62 of this['_editor']['commands']['commands']())_0x32af62['refresh']();_0x40a952['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x97e8e,..._0x40a952);const _0x440c71=_0x324bc7['filter'](_0x158c54=>'$graveyard'!=_0x158c54['root']['rootName']);_0x440c71['length']>0x0&&_0x20118d['setSelection'](_0x440c71);for(const _0x3215da of _0x324bc7)_0x3215da['detach']();});},_0x14e96e=(_0x2712c,_0xf4be6)=>0x1==_0x2712c['length']&&0x1==_0xf4be6['length']&&_0x2712c[0x0]['end']['isEqual'](_0xf4be6[0x0]['start']),_0x2de0c1=(_0x28e4c3,_0x37c516,_0x3ea24c,_0x346025)=>Ht(_0x28e4c3,_0x37c516,_0x3ea24c,_0x346025,this['_model'])?[_0x28e4c3,_0x37c516]:Ht(_0x37c516,_0x28e4c3,_0x346025,_0x3ea24c,this['_model'])?[_0x37c516,_0x28e4c3]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x29accd),this['_defaultCallbacks']['set']('insertion:discard',_0x15ec8d),this['_defaultCallbacks']['set']('insertion:join',_0x14e96e),this['_defaultCallbacks']['set']('insertion:chain',_0x2de0c1),this['_defaultCallbacks']['set']('deletion:accept',_0x15ec8d),this['_defaultCallbacks']['set']('deletion:discard',_0x29accd),this['_defaultCallbacks']['set']('deletion:join',_0x14e96e),this['_defaultCallbacks']['set']('deletion:chain',_0x2de0c1),this['_defaultCallbacks']['set']('formatInline:accept',_0x341e6e),this['_defaultCallbacks']['set']('formatInline:discard',_0x29accd),this['_defaultCallbacks']['set']('formatInline:join',_0x14e96e),this['_defaultCallbacks']['set']('formatInline:chain',_0x29accd),this['_defaultCallbacks']['set']('formatBlock:accept',_0x341e6e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x29accd),this['_defaultCallbacks']['set']('formatBlock:join',_0x14e96e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x29accd),this['_defaultCallbacks']['set']('attribute:accept',_0x29accd),this['_defaultCallbacks']['set']('attribute:discard',(_0x27684d,_0x1c4597)=>{if(!_0x1c4597)return;const _0x225098=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5a821a=>{if(_0x1c4597['key']==m)for(const _0x709cbc of _0x27684d){const _0x4e66e5=_0x709cbc['start']['nodeAfter'],_0x34b6a2=_0x1c4597['oldValue'];_0x5a821a['rename'](_0x4e66e5,_0x34b6a2);}else{if(_0x225098['_isBlockAttribute'](_0x1c4597['key'])){for(const _0x52d924 of _0x27684d)void 0x0!==_0x1c4597['oldValue']?_0x5a821a['setAttribute'](_0x1c4597['key'],_0x1c4597['oldValue'],_0x52d924['start']['nodeAfter']):_0x5a821a['removeAttribute'](_0x1c4597['key'],_0x52d924['start']['nodeAfter']);}else{for(const _0x4d235e of _0x27684d)_0x1c4597['oldValue']?_0x5a821a['setAttribute'](_0x1c4597['key'],_0x1c4597['oldValue'],_0x4d235e):_0x5a821a['removeAttribute'](_0x1c4597['key'],_0x4d235e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x14e96e);}}function Et(_0x39ef5c,_0x4b2dc4,_0x46260c){for(const _0x125c42 of _0x4b2dc4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x125c42['root']==_0x125c42)return!0x1;if(!_0x46260c['containsItem'](_0x125c42))return!0x1;if(_0x39ef5c['isObject'](_0x125c42)||_0x39ef5c['isLimit'](_0x125c42))return!0x0;}return!0x1;}function Vt(_0x3d580b){return _0x3d580b['end']['parent']==_0x3d580b['start']['nodeAfter']&&_0x3d580b['end']['isAtStart'];}function Ut(_0x93509b,_0x3bfa0c,_0x29cc17,_0x1d8845){const _0x5c73ff=_0xb359ae=>!_0xb359ae['item']['is']('$textProxy')&&!_0x1d8845['isObject'](_0xb359ae['item']),_0x1b9b2a=_0x93509b['start']['getLastMatchingPosition'](_0x5c73ff),_0x20113a=_0x93509b['end']['getLastMatchingPosition'](_0x5c73ff,{'direction':'backward'});return(!_0x93509b['start']['isEqual'](_0x1b9b2a)||!_0x93509b['end']['isEqual'](_0x20113a))&&(_0x1b9b2a['isBefore'](_0x20113a)?_0x29cc17['updateMarker'](_0x3bfa0c,{'range':_0x29cc17['createRange'](_0x1b9b2a,_0x20113a)}):_0x29cc17['removeMarker'](_0x3bfa0c),!0x0);}function Pt(_0x51a83a){return _0x3d6d49(_0x51a83a);}function Gt(_0xeb1e40){const _0x1a29c8=_0xeb1e40['start']['nodeAfter'];return _0x1a29c8&&_0x1a29c8['is']('element');}function Ft(_0x19d68e,_0x3dab91){return null==_0x19d68e['end']['nodeBefore']&&_0x19d68e['end']['parent']==_0x19d68e['start']['nodeAfter']?Lt(_0x19d68e['start']['nodeAfter'],_0x3dab91):_0x19d68e;}function Lt(_0x25477d,_0x55cb0a){const _0xa52afb=_0x55cb0a['schema']['isObject'](_0x25477d)||_0x55cb0a['schema']['isSelectable'](_0x25477d);return _0x55cb0a['createRange'](_0x55cb0a['createPositionAt'](_0x25477d,'before'),_0xa52afb?_0x55cb0a['createPositionAfter'](_0x25477d):_0x55cb0a['createPositionAt'](_0x25477d,'end'));}function Ht(_0x3db643,_0x5601bf,_0x54c94a,_0x3eeb90,_0x35facb){if(_0x3db643['next'])return!0x1;if(!Jt(_0x3db643,_0x5601bf))return!0x1;if(_0x54c94a['end']['isEqual'](_0x3eeb90['start']))return!0x0;if(_0x3db643['type']!=_0x5601bf['type'])return!0x1;if(!_0x54c94a['end']['isTouching'](_0x3eeb90['start']))return!0x1;const _0x4c0802=_0x35facb['createRange'](_0x54c94a['end'],_0x3eeb90['start'])['getWalker']();for(const _0x23b9a4 of _0x4c0802)if(['elementStart','elementEnd']['includes'](_0x23b9a4['type'])&&_0x35facb['schema']['isLimit'](_0x23b9a4['item']))return!0x1;return!0x0;}function Jt(_0xb79df6,_0x10239a){if(!_0xb79df6['_isDataLoaded']||!_0x10239a['_isDataLoaded'])return!0x1;const _0x1007e6=new Set(Object['keys'](_0xb79df6['attributes'])),_0x577d96=new Set(Object['keys'](_0x10239a['attributes']));if(_0x1007e6['delete']('groupId'),_0x577d96['delete']('groupId'),0x0==_0x1007e6['size']&&0x0==_0x577d96['size'])return!0x0;if(_0x1007e6['size']!=_0x577d96['size'])return!0x1;const _0x16f13f={..._0xb79df6['attributes']},_0xaf1fc8={..._0x10239a['attributes']};return delete _0x16f13f['groupId'],delete _0xaf1fc8['groupId'],JSON['stringify'](_0x16f13f)==JSON['stringify'](_0xaf1fc8);}function qt(_0x205ab8,_0x27bd6f){const _0x3bb75f=zt(_0x205ab8['attributes']),_0x5c14f4=zt(_0x27bd6f);if(!_0x205ab8['_isDataLoaded'])return!0x1;for(const _0x33f0e0 of Object['keys'](_0x5c14f4))if(!_0x5c31e6(_0x3bb75f[_0x33f0e0],_0x5c14f4[_0x33f0e0]))return!0x1;return!0x0;}function zt(_0x59cee9){const _0x4d88d2=Object['assign']({},_0x59cee9);return delete _0x4d88d2['skipNestingCheck'],delete _0x4d88d2['tablePasteChainId'],_0x4d88d2;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x39f370(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x36acf4,_0x1578d9,_0x2ae37e,_0x25b9fc){super(),this['model']=_0x1578d9,this['view']=_0x2ae37e,this['commentThreadController']=_0x25b9fc,this['_editor']=_0x36acf4,this['_acceptCommand']=_0x36acf4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x36acf4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xf4f908,_0xd4aac1)=>_0xf4f908||_0xd4aac1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4bf80d=>_0x4bf80d&&this['_editor']['model']['canEditAt'](_0x1578d9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4e3878=>_0x4e3878&&this['_editor']['model']['canEditAt'](_0x1578d9['getRanges']())),this['_pendingAction']=null,_0x2ae37e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2ae37e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2ae37e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2ae37e,'change:isDirty',()=>{_0x2ae37e['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 _0x9e972=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x9e972);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x12c3a5{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5e5df6,_0x47ece2,_0x3c308a,_0x4d5159){super(_0x5e5df6),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2cd072(_0x5e5df6,o(_0x5e5df6,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x47ece2['authoredAt']),this['bind']('authoredAt')['to'](_0x47ece2),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',_0x47ece2,'authoredAt',this,'descriptionParts',(_0x538add,_0xd79d8d,_0x30aabf)=>{const _0x59d889=_0x30aabf['map'](_0x2216b8=>ls(_0x2216b8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x538add-0x1,_0x47ece2['author']['name'],_0xd79d8d?_0x4d5159['formatDateTime'](_0xd79d8d):'',new DOMParser()['parseFromString'](_0x59d889,'text/html')['body']['textContent']]);}),this['focusables']=new _0x45520d(),this['focusTracker']=new _0x41d8ab(),this['keystrokes']=new _0x1255e9(),this['focusCycler']=new _0x14a039({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x36c997=>_0x36c997['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x47ece2,this['_localUser']=_0x3c308a,this['_config']=_0x4d5159,_0x4d5159['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x53a92d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x7ab61}=this['_config'];this['commentsListView']=new _0x7ab61(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',_0x28940c=>_0x28940c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x23793c,_0x54e4ba)=>_0x23793c||!!_0x54e4ba);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xe4da48}=this['_config'],_0x8b6727=new _0xe4da48(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x348985=_0x8b6727['commentInputView'];return _0x8b6727['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x348985,'value',(_0x412f3c,_0x9eade4,_0xfafd95)=>!!_0xfafd95||_0x412f3c&&!_0x9eade4),_0x348985['on']('submit',(_0x1e4ad2,_0x401fa4)=>{this['fire']('addComment',_0x401fa4),_0x348985['editor']['setData']('');}),_0x348985['on']('cancel',()=>this['focus']()),_0x348985['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x8b6727;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x209a90,_0xfdbb99,_0x3f0669,_0xdf384b){super(_0x209a90,_0xfdbb99,_0x3f0669,_0xdf384b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x13191b=>_0x13191b&&_0x13191b[0x0]?_0x13191b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xb95c9e,_0x3f6a25)=>{let _0x2a8af4='';for(const _0x2c5d0f of _0xb95c9e)_0x2a8af4+='<p>'+ls(_0x2c5d0f['content'],_0x2c5d0f['color'])+'</p>';return _0x3f6a25?_0x2a8af4:_0x2d0834(_0x2a8af4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xdf384b['SuggestionView'](_0x209a90,_0xfdbb99,{'formatDateTime':_0xdf384b['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 _0x3e9a0d=this['bindTemplate'],_0x37027c=[this['suggestionView']];return this['commentsListView']&&_0x37027c['push'](this['commentsListView']),this['commentThreadInputView']&&_0x37027c['push'](this['commentThreadInputView']),_0x37027c['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3e9a0d['if']('isActive','ck-suggestion-wrapper--active'),_0x3e9a0d['to']('type',_0x43c6b7=>'ck-suggestion-'+_0x43c6b7),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':_0x3e9a0d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x37027c};}['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 _0x12c3a5{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3d1741,_0x1f6662,_0x1d61f0){super(_0x3d1741),this['_model']=_0x1f6662,this['_config']=_0x1d61f0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1f6662),this['acceptButton']=this['_createButton'](o(_0x3d1741,'Accept\x20suggestion'),_0x274a98['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3d1741,'Discard\x20suggestion'),_0x274a98['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x311d62(_0x3d1741,_0x1f6662['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x45520d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x41d8ab(),this['keystrokes']=new _0x1255e9(),this['focusCycler']=new _0x14a039({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x330fb5=>_0x330fb5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2251f9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2251f9['innerHTML']=this['description'],this['on']('change:description',(_0x418238,_0x31dfcd,_0x107607)=>{_0x2251f9['innerHTML']=_0x107607;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x57727d=this['bindTemplate'],_0x1758ab=[{'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':_0x57727d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x57727d['to']('authoredAt',_0x351ba7=>this['_config']['formatDateTime'](_0x351ba7))}]}]},{'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']&&_0x1758ab['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':_0x1758ab}]};}['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'](_0x2016ad,_0x54c794,_0x20e706,_0x381924,_0x240828){const _0x3a0878=new _0x30b0d7(this['locale']);return _0x3a0878['set']({'label':_0x2016ad,'icon':_0x54c794,'tooltip':!0x0,'tooltipPosition':_0x240828}),_0x3a0878['extendTemplate']({'attributes':{'class':_0x20e706}}),_0x3a0878['on']('execute',()=>{this['fire'](_0x381924,this['_model']['id']);}),_0x3a0878;}['_setupKeyboardNavigation'](){const _0x5ce066=this['element'];this['keystrokes']['listenTo'](_0x5ce066);for(const _0x22f08d of this['focusables'])this['focusTracker']['add'](_0x22f08d['element']),this['keystrokes']['listenTo'](_0x22f08d['element']);this['keystrokes']['set']('enter',(_0xf3d521,_0x507317)=>{_0x5ce066===_0xf3d521['target']&&(this['focusCycler']['focusFirst'](),_0x507317());}),this['keystrokes']['set']('esc',(_0x204468,_0x27592b)=>{_0x5ce066!==_0x204468['target']&&(this['focus'](),_0x27592b());});}}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 _0x3a5fae{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4ea52e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23170a){super(_0x23170a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x15b73a=this['editor']['config'];_0x15b73a['define']('trackChanges.SuggestionThreadView',re),_0x15b73a['define']('trackChanges.SuggestionView',ce),_0x15b73a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x15b73a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x17cb07,_0x1635ea){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x378ac6,_0x139f16]of this['_handleControllerBuffer']){const _0x27b403=this['_suggestionToController']['has'](_0x378ac6);_0x27b403||_0x139f16?_0x27b403&&_0x139f16&&this['_destroyController'](_0x378ac6):this['_initializeController'](_0x378ac6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x17cb07,_0x1635ea);}['init'](){const _0x254083=this['editor'],_0x1a50e1=_0x254083['plugins']['get']('TrackChangesEditing'),_0x468f5a=_0x254083['plugins']['get']('Annotations'),_0x250f0f=_0x254083['plugins']['get']('EditorAnnotations'),_0x5be74e=_0x254083['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x250f0f['addSourceCollector'](()=>{const _0x2acf13=[];for(const [_0x20da0a,_0xb24638]of Array['from'](this['_suggestionToController'])){const _0x36b1e6=_0x20da0a['getAllAdjacentSuggestions'](),_0x2afb2e=[];for(const _0x11f0e0 of _0x36b1e6){if(!_0x11f0e0['isInContent'])continue;if(_0x11f0e0['isMultiRange']){_0x2afb2e['push'](..._0x11f0e0['getRanges']());continue;}const _0xc51d58=_0x11f0e0['getFirstRange']();if(_0x2afb2e['length']>0x0){const _0x13fafe=_0x2afb2e[0x0]['getJoined'](_0xc51d58);if(_0x13fafe){_0x2afb2e[0x0]=_0x13fafe;continue;}}_0x2afb2e['push'](_0xc51d58);}_0x2acf13['push']([_0xb24638['view'],_0x2afb2e]);}return _0x2acf13;}),this['listenTo'](_0x1a50e1,'suggestionLoaded',(_0x49b5cb,_0x2c5a0c)=>{this['listenTo'](_0x2c5a0c,'change:previous',(_0x4ccbc4,_0xc70b9a,_0x57d465,_0x4bcbc1)=>{_0x2c5a0c['isInContent']&&(null==_0x57d465?(this['_updateController'](_0x4bcbc1['head']),this['_handleSuggestionControllerDelayed'](_0x2c5a0c,!0x1)):(this['_updateController'](_0x57d465['head']),null==_0x4bcbc1&&this['_handleSuggestionControllerDelayed'](_0x2c5a0c,!0x0)));}),null!==_0x2c5a0c['previous']?this['_updateController'](_0x2c5a0c['head']):this['_handleSuggestionControllerDelayed'](_0x2c5a0c,!0x1);}),this['listenTo'](_0x1a50e1,'suggestionUnloaded',(_0x59f6b,_0x444749,_0x21fb99)=>{this['stopListening'](_0x444749,'change:previous'),this['_handleControllerBuffer']['delete'](_0x444749),this['_suggestionToController']['has'](_0x444749)&&this['_destroyController'](_0x444749),_0x21fb99&&this['_updateController'](_0x21fb99['head']);}),this['listenTo'](_0x1a50e1,'suggestionChanged',(_0x48cd6b,_0x4d3279)=>{this['_updateController'](_0x4d3279);}),this['listenTo'](_0x468f5a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5be74e,'addComment',(_0x23b69f,{threadId:_0x44676f,isFromAdapter:_0x5ade51})=>{if(_0x5ade51||!_0x1a50e1['hasSuggestion'](_0x44676f))return;const _0x3fd3ba=_0x1a50e1['getSuggestion'](_0x44676f);this['_suggestionToController']['get'](_0x3fd3ba)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x54d744=this['editor']['plugins']['get']('Annotations'),_0xaf92c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x589d21=Array['from'](_0x54d744['activeAnnotations'],_0x866a26=>_0x866a26['innerView'])['filter'](_0x47120a=>this['_viewToController']['has'](_0x47120a)),_0x253ae2=[];for(const _0x39d45a of _0x589d21){const _0xaddcef=this['_viewToController']['get'](_0x39d45a)['model']['getAllAdjacentSuggestions']();_0x253ae2['push'](..._0xaddcef['reduce']((_0x5a5cdb,_0x57c2f6)=>[..._0x5a5cdb,..._0x57c2f6['getMarkerNames']()],[]));}_0xaf92c9['activeMarkers']=_0x253ae2;}['_addUIComponentsToFactory'](){const _0x539340=this['editor'],_0xf7ef57=_0x539340['locale'],_0x52cdad=o(_0xf7ef57,'Track\x20changes'),_0x2dd1a1=new Wt([{'type':'switchbutton','model':new _0x3a5d61({'withText':!0x0,'isToggleable':!0x0,'label':_0x52cdad,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3a5d61({'withText':!0x0,'label':o(_0xf7ef57,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5d61({'withText':!0x0,'label':o(_0xf7ef57,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5d61({'withText':!0x0,'label':o(_0xf7ef57,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5d61({'withText':!0x0,'label':o(_0xf7ef57,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1292b0 of _0x2dd1a1)if(me(_0x1292b0)){const _0x41ec0e=_0x539340['commands']['get'](_0x1292b0['model']['commandName']);_0x1292b0['model']['bind']('isOn','isEnabled')['to'](_0x41ec0e,'value','isEnabled');}_0x539340['ui']['componentFactory']['add']('trackChanges',_0x1dde45=>this['_createToolbarButton'](_0x1dde45,_0x2dd1a1,_0x52cdad)),_0x539340['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2add1a=>this['_createMenuBarMenu'](_0x2add1a,_0x2dd1a1,_0x52cdad));}['_createToolbarButton'](_0x4af617,_0x3a18e3,_0x2907d9){const _0x1173d1=Qt(_0x4af617,_0xed2287),_0x4fa64f=this['editor']['commands']['get']('trackChanges');_0x1173d1['buttonView']['set']({'tooltip':_0x2907d9,'label':_0x2907d9,'icon':he}),_0x1173d1['buttonView']['bind']('isOn')['to'](_0x4fa64f,'value'),_0x1173d1['buttonView']['on']('execute',()=>{_0x4fa64f['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x1173d1,_0x3a18e3,{'role':'menu'});const _0x4a334e=[];for(const _0x445b82 of _0x3a18e3)me(_0x445b82)&&_0x4a334e['push'](this['editor']['commands']['get'](_0x445b82['model']['commandName']));const _0x302595=_0x1173d1['buttonView'];return _0x302595['actionView']['unbind']('isEnabled'),_0x302595['arrowView']['unbind']('isEnabled'),_0x302595['actionView']['bind']('isEnabled')['to'](_0x4fa64f,'isEnabled'),_0x302595['arrowView']['bind']('isEnabled')['toMany'](_0x4a334e,'isEnabled',(..._0x20db45)=>_0x20db45['some'](_0x5763c1=>_0x5763c1)),_0x1173d1['on']('execute',_0x4e61f9=>{this['editor']['execute'](_0x4e61f9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1173d1;}['_createMenuBarMenu'](_0x97a1a1,_0x51c046,_0x254d99){const _0x4f3cd2=new Yt(_0x97a1a1),_0x27826e=this['editor']['commands']['get']('trackChanges');_0x4f3cd2['buttonView']['set']({'label':_0x254d99,'icon':he});const _0x49a964=new Zt(_0x97a1a1);for(const _0xf48e4c of _0x51c046){if('separator'==_0xf48e4c['type']){_0x49a964['items']['add'](new Xt(_0x97a1a1));continue;}const _0x1f4644=new te(_0x97a1a1,_0x4f3cd2),_0xa437ea=new _0x5d4d42(_0x97a1a1),_0x3a5fca=_0xf48e4c['model'];_0xa437ea['bind'](...Object['keys'](_0x3a5fca))['to'](_0x3a5fca),_0xa437ea['delegate']('execute')['to'](_0x4f3cd2),_0xa437ea['on']('execute',()=>{this['editor']['execute'](_0x3a5fca['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f4644['children']['add'](_0xa437ea),_0x49a964['items']['add'](_0x1f4644);}return _0x4f3cd2['bind']('isEnabled')['to'](_0x27826e,'isEnabled'),_0x4f3cd2['panelView']['children']['add'](_0x49a964),_0x4f3cd2;}['_initializeController'](_0x5ce71a){const _0x218062=this['editor'],_0x48029d=_0x218062['config'],_0x5e4779=_0x218062['plugins']['get']('Annotations'),_0x3aa3b2=_0x218062['plugins']['get']('CommentsRepository'),_0x30dbb6=_0x218062['plugins']['get']('EditorAnnotations'),_0x5e6154=_0x218062['plugins']['get'](_0x4ea52e)['me'],_0x9b47fa=_0x48029d['get']('trackChanges')['SuggestionThreadView'],_0x133142=_0x48029d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x412179,CommentThreadInputView:_0x43175f}=_0x218062['plugins']['get']('CommentsUI');let _0x96c527,_0xf5b887,_0x18d8c7;this['_annotationViews']['has'](_0x5ce71a['id'])?(_0xf5b887=this['_annotationViews']['get'](_0x5ce71a['id']),_0x96c527=_0xf5b887['mainView']):(_0x96c527=new _0x9b47fa(_0x218062['locale'],_0x5ce71a,_0x5e6154,{'disableComments':this['_disableComments'],'editorConfig':_0x48029d['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x48029d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x48029d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x48029d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x14302d(_0x48029d['get']('locale')),'CommentView':_0x48029d['get']('comments')['CommentView'],'CommentsListView':_0x412179,'CommentThreadInputView':_0x43175f,'SuggestionView':_0x133142}),_0x96c527['suggestionView']['acceptButton']['on']('execute',()=>{_0x218062['editing']['view']['focus']();}),_0x96c527['suggestionView']['discardButton']['on']('execute',()=>{_0x218062['editing']['view']['focus']();}),_0xf5b887=_0x5e4779['createAnnotationView'](this['editor']['locale'],_0x96c527),_0xf5b887['bind']('isDirty')['to'](_0x96c527,'isDirty'),_0xf5b887['bind']('length')['to'](_0x96c527),_0xf5b887['bind']('type')['to'](_0x96c527,'type',_0x364c5c=>'suggestion-'+_0x364c5c),_0x96c527['on']('escape',()=>{_0x18d8c7['fire']('escape');}),this['_annotationViews']['set'](_0x5ce71a['id'],_0xf5b887));const _0x12cfb7=_0x3aa3b2['createCommentThreadController'](_0x5ce71a['commentThread'],_0x96c527),_0x4046e6=new ae(_0x218062,_0x5ce71a,_0x96c527,_0x12cfb7),_0x1ed6fa=_0x5ce71a['getAllAdjacentSuggestions']()['filter'](_0x425f8f=>_0x425f8f['isInContent']);_0x96c527['descriptionParts']=_0x218062['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1ed6fa),this['_suggestionToController']['set'](_0x5ce71a,_0x4046e6),this['_viewToController']['set'](_0x96c527,_0x4046e6),_0x18d8c7=_0x5e4779['createAnnotation']({'view':_0xf5b887,'target':()=>{const _0x4ecbdd=[],_0xd9baf2=_0x5ce71a['getAllAdjacentSuggestions']()['filter'](_0x10d044=>_0x10d044['isInContent']);for(const _0x43cd0a of _0xd9baf2)_0x4ecbdd['push'](..._0x43cd0a['getMarkers']());return _0x4a5189(_0x218062['editing'],_0x4ecbdd);},'type':()=>'suggestion-'+_0x4046e6['view']['type']}),_0x3aa3b2['_bindAnnotationToEditors'](_0x96c527,_0x18d8c7),_0x5e4779['add'](_0x18d8c7),_0x30dbb6['registerAnnotation'](_0x18d8c7);}['_destroyController'](_0x5603d1){const _0x2795a2=this['editor']['plugins']['get']('CommentsRepository'),_0x2fac70=this['editor']['plugins']['get']('Annotations'),_0x566876=this['_suggestionToController']['get'](_0x5603d1),_0x4291d7=_0x566876['view'],_0x1a6b83=_0x2fac70['getByInnerView'](_0x4291d7);_0x2795a2['_unbindEditors'](_0x4291d7),_0x1a6b83&&_0x2fac70['remove'](_0x1a6b83),this['_suggestionToController']['delete'](_0x5603d1),this['_viewToController']['delete'](_0x4291d7),_0x566876['destroy']();}['_updateController'](_0xaa9d08){if(!_0xaa9d08['isInContent']||!this['_suggestionToController']['has'](_0xaa9d08))return;const _0x503dca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x544202=this['_suggestionToController']['get'](_0xaa9d08),_0x28e677=_0xaa9d08['getAllAdjacentSuggestions']();_0x544202['view']['descriptionParts']=_0x503dca['descriptionFactory']['getDescriptions'](_0x28e677);}['destroy'](){for(const _0x26b486 of this['_suggestionToController']['keys']())this['_destroyController'](_0x26b486);for(const _0x3532f5 of this['_annotationViews']['values']())_0x3532f5['mainView']['destroy']();super['destroy']();}}function me(_0x9c4f39){return'model'in _0x9c4f39;}class k extends _0x3a5fae{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xf41661){this['editor']['plugins']['get'](p)['adapter']=_0xf41661;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x118af1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x118af1);}['getSuggestions']({skipNotAttached:_0x8e1af2=!0x1,toJSON:_0x3d1392=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x8e1af2,'toJSON':_0x3d1392});}['getSuggestion'](_0x427781){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x427781);}}const w=['Pagination'];class T extends _0x3a5fae{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x43286d=this['editor'];if(_0x43286d['config']['define']('trackChangesData.editorCreator',_0x4463dc=>{const _0x48866a=_0x43286d['model']['document']['getRootNames']()['reduce']((_0x3b5e4c,_0x3153d0)=>(_0x3b5e4c[_0x3153d0]='',_0x3b5e4c),{});return _0x43286d['constructor']['create'](_0x48866a,_0x4463dc);}),'function'!=typeof _0x43286d['config']['get']('trackChangesData')['editorCreator'])throw new _0x55a112('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xdf2d2c){return N(this['editor'],!0x0,_0xdf2d2c);}['getDataWithDiscardedSuggestions'](_0x5f2fdb){return N(this['editor'],!0x1,_0x5f2fdb);}}class D extends _0x3a5fae{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24aa89){super(_0x24aa89),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(_0x506ebd){return void 0x0!==_0x506ebd['getRootsAttributes'];}async function N(_0xd93b27,_0xac0bb4,_0x244f72){const _0x33a65a=_0x55e728(_0xd93b27,w);_0x33a65a['plugins']['push'](p,D),_0x33a65a['rootsAttributes']=v(_0xd93b27)?_0xd93b27['getRootsAttributes']():void 0x0;const _0x3c9511=document['createDocumentFragment'](),_0x98a540=_0xd93b27['config']['get']('trackChangesData')['editorCreator'],_0x2fd1cc=await _0x98a540(_0x33a65a,()=>function(_0x1770ea){const _0x43ec94=document['createElement']('div');return _0x1770ea['appendChild'](_0x43ec94),_0x43ec94;}(_0x3c9511));!function(_0x4b1f2a,_0x27b4a9){const _0x4d0aa2=_0x4b1f2a['model']['document']['getRootNames']()['reduce']((_0x4b8761,_0x1a297d)=>(_0x4b8761[_0x1a297d]=_0x4b1f2a['data']['get']({'rootName':_0x1a297d}),_0x4b8761),{}),_0x16f1b6=_0x4b1f2a['plugins']['get']('Users')['users']['map'](_0x4c8708=>({'id':_0x4c8708['id'],'name':_0x4c8708['name']})),_0x3f7fb1=_0x4b1f2a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1524fb=_0x4b1f2a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x15336b=_0x27b4a9['plugins']['get']('Users'),_0x56e71a=_0x27b4a9['plugins']['get']('TrackChangesEditing'),_0x61a5ab=_0x27b4a9['plugins']['get']('CommentsRepository');for(const _0x35d65c of _0x61a5ab['getCommentThreads']())_0x35d65c['remove']();for(const _0xdb5d59 of _0x16f1b6)_0x15336b['getUser'](_0xdb5d59['id'])||_0x15336b['addUser'](_0xdb5d59);_0x15336b['me']||_0x15336b['useAnonymousUser']();for(const _0x542c5a of _0x1524fb)_0x61a5ab['addCommentThread'](_0x542c5a);for(const _0x5257e6 of _0x3f7fb1)_0x56e71a['addSuggestionData'](_0x5257e6);_0x27b4a9['data']['set'](_0x4d0aa2);}(_0xd93b27,_0x2fd1cc),_0x2fd1cc['execute'](_0xac0bb4?'acceptAllSuggestions':'discardAllSuggestions');const _0x57da6b=v(_0x2fd1cc)?_0x2fd1cc['getFullData'](_0x244f72):_0x2fd1cc['data']['get'](_0x244f72);return await _0x2fd1cc['destroy'](),_0x57da6b;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|