@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250308.0 → 0.0.0-nightly-20250310.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 +26 -26
- 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
|
|
24
|
-
_0x3c6964(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2e8c9b,_0x4f4026){super(),this['id']=_0x4f4026['id'],this['type']=_0x4f4026['type'],this['subType']=_0x4f4026['subType']||null,this['author']=_0x4f4026['author'],this['creator']=_0x4f4026['creator']||_0x4f4026['author'],this['isExternal']=Boolean(_0x4f4026['attributes']&&_0x4f4026['attributes']['@external']),this['data']=null,this['_model']=_0x2e8c9b,this['_onAccept']=_0x4f4026['onAccept'],this['_onDiscard']=_0x4f4026['onDiscard'],this['_onAttributesChange']=_0x4f4026['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f4026['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 _0x32d530=this;for(;_0x32d530['previous'];)_0x32d530=_0x32d530['previous'];return _0x32d530;}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'](_0x543b63){this['_markerNames']['add'](_0x543b63);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x43ea49=>this['_model']['markers']['get'](_0x43ea49))['filter'](_0x3cb838=>_0x3cb838);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x343814=>{for(const _0x4c703b of this['getMarkers']())_0x343814['removeMarker'](_0x4c703b);}),this['_markerNames']['clear']();}['removeMarker'](_0x59a3a3){this['_model']['change'](_0x5de48d=>{_0x5de48d['removeMarker'](_0x59a3a3);}),this['_markerNames']['delete'](_0x59a3a3);}['addRange'](_0x13a1e4){const _0xf2bac='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0xf2bac),this['_model']['change'](_0x10f8ae=>{_0x10f8ae['addMarker'](_0xf2bac,{'range':_0x13a1e4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x58070f){for(const _0x1cf67 of this['getRanges']())if(_0x1cf67['isIntersecting'](_0x58070f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x14d198=>_0x14d198['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x50baef,_0x1ccf59)=>[..._0x50baef,..._0x1ccf59['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x6ba020=this['getRanges']();if(0x1!=_0x6ba020['length'])return null;const _0x3dd76b=_0x6ba020[0x0],_0x4add06=_0x3dd76b['start']['nodeAfter'],_0x38ab1b=_0x3dd76b['end']['nodeBefore'];return _0x4add06 instanceof _0x4c76ec?_0x4add06!=_0x38ab1b?null:_0x4add06: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 _0x508256=[];let _0x3353ec=this['head'];for(;_0x3353ec;)_0x508256['push'](_0x3353ec),_0x3353ec=_0x3353ec['next'];return _0x508256;}['setAttribute'](_0x549a43,_0x21c0fa){const _0x3b098b=_0x4bb98d(this['attributes']);_0x3bfc9c(_0x3b098b,_0x549a43,_0x21c0fa),_0x36c7b1(_0x3b098b,this['attributes'])||(this['attributes']=_0x3b098b,this['_onAttributesChange'](_0x3b098b));}['removeAttribute'](_0x137058){const _0x105651=_0x4bb98d(this['attributes']);_0x45e267(_0x105651,_0x137058),_0x36c7b1(_0x105651,this['attributes'])||(this['attributes']=_0x105651,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 _0x437d48()['substr'](0x1,0x5);}}function c(_0x50722b,_0x4ae536,_0x56f11e){const _0x143474=_0x50722b['t'],t=_0x50722b['t'];switch(_0x4ae536){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x56f11e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x56f11e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x56f11e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x56f11e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x56f11e);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',_0x56f11e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x56f11e);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56f11e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x56f11e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x56f11e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x56f11e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x56f11e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x56f11e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x56f11e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x56f11e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x56f11e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x56f11e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x56f11e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x56f11e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x56f11e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x56f11e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x56f11e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x56f11e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x56f11e);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'},_0x56f11e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x56f11e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x56f11e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x56f11e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x56f11e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x56f11e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x56f11e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x56f11e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x56f11e);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'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x56f11e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x56f11e);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 _0x143474({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x56f11e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x143474({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x56f11e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x56f11e);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'},_0x56f11e);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'},_0x56f11e);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'},_0x56f11e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4ae536;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x574a10,_0x16fbd5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x574a10,this['_locale']=_0x16fbd5;}['getDescriptions'](_0x75cc2f){const _0x4c9e91=[],_0x36c47e=new Set(),_0x4fab8a=new Set();for(let _0x404872=0x0;_0x404872<_0x75cc2f['length'];_0x404872++){const _0x596b13=_0x75cc2f[_0x404872];if(!_0x596b13['isInContent'])continue;const _0x4d0164=this['_handleCustomCallbackDescription'](_0x596b13);if(_0x4d0164){if(null!=_0x596b13['subType']){if(_0x36c47e['has'](_0x596b13['subType']))continue;_0x36c47e['add'](_0x596b13['subType']);}_0x4c9e91['push'](_0x4d0164);}else{if('attribute'!=_0x596b13['type'])'insertion'!=_0x596b13['type']&&'deletion'!=_0x596b13['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4c9e91,_0x596b13,_0x75cc2f[_0x404872+0x1]);else{const _0x1be294=_0x596b13['data']['key'];if(_0x4fab8a['has'](_0x1be294))continue;_0x4fab8a['add'](_0x596b13['data']['key']),_0x1be294==u?this['_handleRenameSuggestionDescription'](_0x4c9e91,_0x596b13):this['_handleAttributeSuggestionDescription'](_0x4c9e91,_0x596b13);}}}return this['_resolveDescriptionItems'](_0x4c9e91);}['registerDescriptionCallback'](_0x566a7e){this['_customCallbacks']['push'](_0x566a7e);}['registerElementLabel'](_0x267d37,_0x26da06,_0x279c99=_0x2c349d['normal']){'function'==typeof _0x267d37?_0x32ae33(this['_itemLabelsCallbacks'],{'matchingCallback':_0x267d37,'label':_0x26da06,'priority':_0x279c99}):this['_itemLabels']['set'](_0x267d37,_0x26da06);}['registerAttributeLabel'](_0x5506cb,_0x4c2591){this['_attributeLabels']['set'](_0x5506cb,_0x4c2591);}['getItemLabel'](_0xe3fea9,_0x4a7a60=0x1){let _0x4cf823;for(const _0x313960 of this['_itemLabelsCallbacks'])if(_0x313960['matchingCallback'](_0xe3fea9)){_0x4cf823=_0x313960['label'];break;}return _0x4cf823||(_0x4cf823=this['_itemLabels']['get'](_0xe3fea9['name'])),_0x4cf823?_0x4cf823(_0x4a7a60):0x1!==_0x4a7a60?_0x4a7a60+'\x20'+_0xe3fea9['name']+'s':''+_0xe3fea9['name'];}['_addDescriptionItems'](_0x597c47,_0x44998d){const _0xb39176=_0x44998d['getFirstRange']()['getWalker'](),_0x3a2b45='insertion'==_0x44998d['type']?'add':'remove';for(const _0x561add of _0xb39176){const _0xf3a9b5=_0x561add['item'],_0x5543b7=_0x597c47[_0x597c47['length']-0x1];if(_0xf3a9b5['is']('$textProxy'))_0x5543b7&&_0x5543b7['type']['indexOf']('Container')>-0x1&&_0x597c47['pop'](),_0x5543b7&&'text'==_0x5543b7['type']?_0x5543b7[_0x3a2b45]+=_0xf3a9b5['data']:_0x597c47['push']({'type':'text','add':'add'==_0x3a2b45?_0xf3a9b5['data']:'','remove':'remove'==_0x3a2b45?_0xf3a9b5['data']:''});else{if(this['_schema']['isObject'](_0xf3a9b5)){const _0x3f6c62=_0xf3a9b5;if(_0x5543b7&&_0x5543b7['type']['indexOf']('Container')>-0x1&&_0x597c47['pop'](),'elementEnd'==_0x561add['type'])continue;_0x5543b7&&_0x5543b7['type']==_0x3a2b45+'Object'&&_0x5543b7['element']['name']==_0x3f6c62['name']?_0x5543b7['quantity']++:_0x597c47['push']({'type':_0x3a2b45+'Object','element':_0x3f6c62,'quantity':0x1}),_0xb39176['skip'](_0x2a2852=>!('elementEnd'==_0x2a2852['type']&&_0x2a2852['item']==_0xf3a9b5));}else{if(this['_schema']['checkChild'](_0xf3a9b5,'$text')||_0xf3a9b5['is']('element','softBreak')){const _0x143e97=_0xf3a9b5;if('add'==_0x3a2b45&&'elementStart'==_0x561add['type']||'remove'==_0x3a2b45&&'elementEnd'==_0x561add['type'])continue;if(_0x5543b7&&-0x1==_0x5543b7['type']['indexOf']('Container')){'text'==_0x5543b7['type']&&(_0x5543b7[_0x3a2b45]+='\x0a');continue;}let _0x555c92;if(_0x555c92='add'==_0x3a2b45?_0x143e97['nextSibling']&&!this['_schema']['isObject'](_0x143e97['nextSibling'])?_0x143e97['nextSibling']:null:_0x143e97['previousSibling']&&!this['_schema']['isObject'](_0x143e97['previousSibling'])?_0x143e97['previousSibling']:null,_0x143e97['isEmpty']||_0x555c92&&_0x555c92['isEmpty']){const _0x224da9=_0x555c92&&_0x555c92['isEmpty']?_0x555c92:_0x143e97;_0x5543b7&&_0x5543b7['type']==_0x3a2b45+'EmptyContainer'&&_0x5543b7['element']['name']==_0x224da9['name']?_0x5543b7['quantity']++:_0x597c47['push']({'type':_0x3a2b45+'EmptyContainer','element':_0x224da9,'quantity':0x1});}else _0x597c47['push']({'type':_0x3a2b45+'Container','element':_0x143e97});}}}}}['_resolveDescriptionItems'](_0x5161a8){const _0x4bbe73=this['_locale'],_0x47c849=[],_0x14c878=[],_0x140eb9=[];for(const _0x162830 of _0x5161a8)switch(_0x162830['type']){case'text':if(_0x162830['add']=_0x162830['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x162830['remove']=_0x162830['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x162830['add']&&''!=_0x162830['remove']){_0x47c849['push']({'type':'replace','content':c(_0x4bbe73,'REPLACE_TEXT',['\x22'+_0x162830['remove']+'\x22','\x22'+_0x162830['add']+'\x22'])});continue;}if(null!=_0x162830['add']['match'](/^ +$/)){_0x47c849['push']({'type':'insertion','content':c(_0x4bbe73,'*Insert:*\x20%0',c(_0x4bbe73,'ELEMENT_SPACE',_0x162830['add']['length']))});continue;}if(null!=_0x162830['remove']['match'](/^ +$/)){_0x47c849['push']({'type':'deletion','content':c(_0x4bbe73,'*Remove:*\x20%0',c(_0x4bbe73,'ELEMENT_SPACE',_0x162830['remove']['length']))});continue;}if(''!=_0x162830['add']){_0x47c849['push']({'type':'insertion','content':c(_0x4bbe73,'*Insert:*\x20%0','\x22'+_0x162830['add']+'\x22')});continue;}_0x47c849['push']({'type':'deletion','content':c(_0x4bbe73,'*Remove:*\x20%0','\x22'+_0x162830['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x47c849['push']({'type':'insertion','content':c(_0x4bbe73,'*Insert:*\x20%0',this['getItemLabel'](_0x162830['element'],_0x162830['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x47c849['push']({'type':'deletion','content':c(_0x4bbe73,'*Remove:*\x20%0',this['getItemLabel'](_0x162830['element'],_0x162830['quantity']))});continue;case'addContainer':_0x47c849['push']({'type':'insertion','content':c(_0x4bbe73,'*Split:*\x20%0',this['getItemLabel'](_0x162830['element'],_0x162830['quantity']))});continue;case'removeContainer':_0x47c849['push']({'type':'deletion','content':c(_0x4bbe73,'*Merge:*\x20%0',this['getItemLabel'](_0x162830['element'],_0x162830['quantity']))});continue;case'addFormat':_0x14c878['push'](_0x162830['key']);continue;case'removeFormat':_0x140eb9['push'](_0x162830['key']);continue;default:_0x47c849['push'](_0x162830);}if(_0x14c878['length']){const _0x1ca433=_0x14c878['map'](_0x5e6a03=>this['_attributeLabels']['has'](_0x5e6a03)?this['_attributeLabels']['get'](_0x5e6a03):_0x5e6a03)['join'](',\x20');_0x47c849['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x1ca433)});}if(_0x140eb9['length']){const _0x1db79b=_0x140eb9['map'](_0x46ce3b=>this['_attributeLabels']['has'](_0x46ce3b)?this['_attributeLabels']['get'](_0x46ce3b):_0x46ce3b)['join'](',\x20');_0x47c849['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1db79b)});}return _0x47c849;}['_handleCustomCallbackDescription'](_0x51fd18){for(const _0x4fcfa2 of this['_customCallbacks']){const _0x4d68e9=_0x4fcfa2(_0x51fd18);if(_0x4d68e9&&'type'in _0x4d68e9)return _0x4d68e9;}}['_handleAttributeSuggestionDescription'](_0x5be881,_0x21f7a9){const _0x152c3f=_0x21f7a9['data'],_0x5997cc=void 0x0===_0x152c3f['newValue']?'removeFormat':'addFormat';_0x5be881['push']({'type':_0x5997cc,'key':_0x152c3f['key']});}['_handleRenameSuggestionDescription'](_0x2c9661,_0x3c1d04){_0x2c9661['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3c1d04['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x499efa,_0x4714b3,_0x970cd2){if(this['_addDescriptionItems'](_0x499efa,_0x4714b3),_0x970cd2&&_0x970cd2['getFirstRange']()&&!_0x4714b3['getFirstRange']()['end']['isEqual'](_0x970cd2['getFirstRange']()['start'])){const _0x2526d6=_0x499efa[_0x499efa['length']-0x1],_0x283bdc='insertion'==_0x4714b3['type']?'add':'remove';_0x2526d6&&'text'==_0x2526d6['type']&&(_0x2526d6[_0x283bdc]+='\x0a');}}}class U extends _0x497417{['afterInit'](){const _0xd90418=this['editor'],_0x38107d=_0xd90418['plugins']['get']('TrackChangesEditing');_0xd90418['commands']['get']('showAIAssistant')&&_0x38107d['enableCommand']('showAIAssistant');}}class V extends _0x497417{['afterInit'](){const _0x1a589e=this['editor'],_0x325dbb=_0x1a589e['locale'];if(!_0x1a589e['plugins']['has']('AlignmentEditing'))return;const _0x4ae2ee=_0x1a589e['plugins']['get']('TrackChangesEditing');_0x4ae2ee['enableDefaultAttributesIntegration']('alignment'),_0x4ae2ee['registerBlockAttribute']('alignment'),_0x4ae2ee['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x325dbb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x307f50=this['editor'],_0xf01bb=_0x307f50['locale'];_0x307f50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d1be0=>{if('formatBlock'!=_0x3d1be0['type'])return;const {data:_0x1902f3}=_0x3d1be0;if(_0x1902f3&&'alignment'==_0x1902f3['commandName']){const _0x1b6a8d=_0x1902f3['commandParams'][0x0]['value'];return{'type':'format','content':c(_0xf01bb,'*Format:*\x20%0',function(_0x317b1b){switch(_0x317b1b){case'left':return c(_0xf01bb,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0xf01bb,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0xf01bb,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0xf01bb,'FORMAT_JUSTIFY_TEXT');}}(_0x1b6a8d))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x497417{['afterInit'](){const _0xe078c3=this['editor'],_0x519f9a=_0xe078c3['plugins']['get']('TrackChangesEditing'),_0x475915=_0xe078c3['locale'];for(const _0x397b58 of Yt){if(!_0xe078c3['plugins']['has'](_0x397b58))continue;const _0xb03000=_0x397b58['slice'](0x0,-0x7)['toLowerCase'](),_0x36ca12='FORMAT_'+_0xb03000['toUpperCase']();_0x519f9a['enableDefaultAttributesIntegration'](_0xb03000),_0x519f9a['registerInlineAttribute'](_0xb03000),_0x519f9a['descriptionFactory']['registerAttributeLabel'](_0xb03000,c(_0x475915,_0x36ca12));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51f9f2=this['editor'],_0xbee918=_0x51f9f2['locale'],_0x4fbfec=_0x51f9f2['plugins']['get']('TrackChangesEditing');function _0x1de9c4(_0x496f51,_0x2cd611){_0x4fbfec['descriptionFactory']['registerDescriptionCallback'](_0x2c7318=>{if('formatInline'!=_0x2c7318['type'])return;const {data:_0x3ebab3}=_0x2c7318;return _0x3ebab3&&_0x3ebab3['commandName']===_0x496f51?_0x3ebab3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xbee918,'*Format:*\x20%0',_0x2cd611)}:{'type':'format','content':c(_0xbee918,'*Remove\x20format:*\x20%0',_0x2cd611)}:void 0x0;});}_0x1de9c4('bold',c(_0xbee918,'FORMAT_BOLD')),_0x1de9c4('italic',c(_0xbee918,'FORMAT_ITALIC')),_0x1de9c4('underline',c(_0xbee918,'FORMAT_UNDERLINE')),_0x1de9c4('code',c(_0xbee918,'FORMAT_CODE')),_0x1de9c4('strikethrough',c(_0xbee918,'FORMAT_STRIKETHROUGH')),_0x1de9c4('subscript',c(_0xbee918,'FORMAT_SUBSCRIPT')),_0x1de9c4('superscript',c(_0xbee918,'FORMAT_SUPERSCRIPT'));}}class G extends _0x497417{['afterInit'](){const _0xa0b1dd=this['editor'],_0xb92c21=_0xa0b1dd['locale'];if(!_0xa0b1dd['plugins']['has']('BlockQuoteEditing'))return;const _0x5c33a4=_0xa0b1dd['plugins']['get']('TrackChangesEditing'),_0x4fcabb=this['editor']['commands']['get']('blockQuote');_0x5c33a4['enableCommand']('blockQuote',(_0x2c66f5,_0x3da2f4={})=>{const _0x37d3fa=this['editor']['model']['document']['selection'],_0x54f115=_0x3da2f4&&void 0x0!==_0x3da2f4['forceValue']?_0x3da2f4['forceValue']:!_0x4fcabb['value'];let _0x36ee71=[];if(_0x54f115){const _0x564466=Array['from'](_0x37d3fa['getSelectedBlocks']())['filter'](_0x365bba=>to(_0x365bba)||function(_0x5e4dc2,_0x239bee){const _0x442c3c=_0x239bee['checkChild'](_0x5e4dc2['parent'],'blockQuote'),_0x4ca012=_0x239bee['checkChild'](['$root','blockQuote'],_0x5e4dc2);return _0x442c3c&&_0x4ca012;}(_0x365bba,this['editor']['model']['schema']));_0x36ee71=Zt(_0x564466,_0xa0b1dd['model']);}else{const _0x19693d=Array['from'](_0x37d3fa['getSelectedBlocks']())['filter'](_0x5435b3=>to(_0x5435b3));_0x36ee71=Zt(_0x19693d,_0xa0b1dd['model']);}_0xa0b1dd['model']['change'](()=>{for(const _0x26d8ec of _0x36ee71)_0x5c33a4['markBlockFormat'](_0x26d8ec,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x54f115}]});});}),_0x5c33a4['descriptionFactory']['registerDescriptionCallback'](_0x53f1d7=>{const {data:_0x335849}=_0x53f1d7;if(_0x335849&&'blockQuote'==_0x335849['commandName']){const _0x361c4d=c(_0xb92c21,'ELEMENT_BLOCK_QUOTE');return _0x335849['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xb92c21,'*Set\x20format:*\x20%0',_0x361c4d)}:{'type':'format','content':c(_0xb92c21,'*Remove\x20format:*\x20%0',_0x361c4d)};}});}}function to(_0x208b22){return'blockQuote'==_0x208b22['parent']['name'];}class L extends _0x497417{['afterInit'](){const _0x31b626=this['editor'],_0x482bab=_0x31b626['locale'],_0x4d0fc2=_0x31b626['plugins']['get']('TrackChangesEditing');_0x31b626['plugins']['has']('BookmarkEditing')&&(_0x4d0fc2['enableCommand']('insertBookmark'),_0x4d0fc2['enableDefaultAttributesIntegration']('updateBookmark'),_0x4d0fc2['registerBlockAttribute']('bookmarkId'),_0x4d0fc2['descriptionFactory']['registerDescriptionCallback'](_0xb0a656=>{if('insertion'!=_0xb0a656['type']&&'deletion'!=_0xb0a656['type']&&'attribute'!=_0xb0a656['type'])return;const _0x39dd4e=_0xb0a656['getContainedElement']();if(null==_0x39dd4e)return;if(!_0x39dd4e['is']('element','bookmark'))return;const _0x59a3cd=_0x39dd4e['getAttribute']('bookmarkId');if('insertion'==_0xb0a656['type'])return{'type':'insertion','content':c(_0x482bab,'*Insert:*\x20%0','\x22'+_0x59a3cd+'\x22\x20'+c(_0x482bab,'ELEMENT_BOOKMARK'))};if('deletion'==_0xb0a656['type'])return{'type':'deletion','content':c(_0x482bab,'*Remove:*\x20%0','\x22'+_0x59a3cd+'\x22\x20'+c(_0x482bab,'ELEMENT_BOOKMARK'))};const {data:_0x416f8a}=_0xb0a656;if(!_0x416f8a||'bookmarkId'!=_0x416f8a['key'])return;return{'type':'format','content':c(_0x482bab,'*Set\x20bookmark:*\x20%0','\x22'+_0x416f8a['newValue']+'\x22')};}));}}class J extends _0x497417{['afterInit'](){const _0x1e1875=this['editor'];_0x1e1875['plugins']['has']('CaseChange')&&(_0x1e1875['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1e1875['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1e1875['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x497417{['afterInit'](){const _0xaffd5d=this['editor'];_0xaffd5d['commands']['get']('ckbox')&&_0xaffd5d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x497417{['afterInit'](){const _0x1a6158=this['editor'];if(!_0x1a6158['plugins']['has']('CodeBlock'))return;const _0x35ac03=_0x1a6158['plugins']['get']('TrackChangesEditing'),_0x9331ff=_0x1a6158['locale'],_0x2598f3=_0x1a6158['config']['get']('codeBlock')['languages'],_0x4003fe=_0x1a6158['commands']['get']('codeBlock');_0x35ac03['enableCommand']('indentCodeBlock'),_0x35ac03['enableCommand']('outdentCodeBlock'),_0x35ac03['enableCommand']('codeBlock',(_0x4e68b1,_0x581fdc={})=>{const _0x467a42=_0x1a6158['model'],_0x563866=_0x1a6158['model']['document']['selection'],_0x39b02d=_0x581fdc&&void 0x0!==_0x581fdc['forceValue']?_0x581fdc['forceValue']:!_0x4003fe['value'];let _0x4dcd1d;_0x581fdc['language']||(_0x581fdc['language']=_0x2598f3[0x0]['language']),_0x4dcd1d=_0x39b02d?Array['from'](_0x563866['getSelectedBlocks']())['filter'](_0x3701a8=>oo(_0x3701a8)||function(_0xa3735d,_0x5d609c){if(_0xa3735d['is']('rootElement')||_0x5d609c['isLimit'](_0xa3735d))return!0x1;return _0x5d609c['checkChild'](_0xa3735d['parent'],'codeBlock');}(_0x3701a8,_0x467a42['schema'])):Array['from'](_0x563866['getSelectedBlocks']())['filter'](_0x378762=>oo(_0x378762));const _0x398eec=Zt(_0x4dcd1d,_0x467a42);_0x467a42['change'](()=>{for(const _0x5e1ff8 of _0x398eec)_0x35ac03['markBlockFormat'](_0x5e1ff8,{'commandName':'codeBlock','commandParams':[{..._0x581fdc,'forceValue':_0x39b02d}],'formatGroupId':'blockName'});});}),(_0x35ac03['descriptionFactory']['registerElementLabel']('codeBlock',_0x5339b5=>c(_0x9331ff,'ELEMENT_CODE_BLOCK',_0x5339b5)),_0x35ac03['descriptionFactory']['registerDescriptionCallback'](_0x1ffa73=>{if('formatBlock'!=_0x1ffa73['type'])return;const _0x30b21d=_0x9331ff['t'],{data:_0x43f09a}=_0x1ffa73;if(!_0x43f09a||'codeBlock'!=_0x43f09a['commandName'])return;const _0x555bd6=_0x43f09a['commandParams'][0x0]['language'],_0x15dd9e=_0x30b21d(_0x2598f3['find'](_0x8b0a8b=>_0x8b0a8b['language']===_0x555bd6)['label'])['toLowerCase']();return _0x43f09a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x9331ff,'*Set\x20format:*\x20%0',c(_0x9331ff,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x15dd9e+')')}:{'type':'format','content':c(_0x9331ff,'*Remove\x20format:*\x20%0',c(_0x9331ff,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x2e08bf){return'codeBlock'==_0x2e08bf['name'];}class q extends _0x497417{['afterInit'](){const _0x2e9af1=this['editor'];if(!_0x2e9af1['plugins']['has']('CommentsEditing'))return;_0x2e9af1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x35e93f,_0x1a23b9,_0x486c27){const _0x45edc5=[];for(const _0xc8f920 of _0x1a23b9['getItems']())_0xc8f920['hasAttribute'](_0x35e93f)&&_0x45edc5['push'](_0x486c27['createRangeOn'](_0xc8f920));return _0x45edc5;}function De(_0x410f13,_0x4f8982,{showActiveMarker:_0x30c2fb=!0x0}={}){const _0x495ca6=_0x410f13['plugins']['get']('TrackChangesEditing');return(_0x3c776a,_0xb89886,_0x4e0e15)=>{if(!_0x4e0e15['consumable']['test'](_0xb89886['markerRange'],_0x3c776a['name']))return;const _0x3f051a=_0xb89886['markerRange']['getWalker'](),_0xff70d0=_0xb89886['markerRange']['start'],_0xf94acf=_0x410f13['model']['schema'];let _0x18b5e5=null,_0x4b8231=null,_0x4ea1ae=!0x1,_0x147533=!0x1;for(const _0x5a01c6 of _0x3f051a){const _0x56d300=_0x5a01c6['item'];_0x4ea1ae=_0x4ea1ae||_0xf94acf['isContent'](_0x56d300);const _0x2c2f66=_0x4e0e15['mapper']['toViewElement'](_0x56d300);if(_0x2c2f66&&_0x2c2f66['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5a01c6['type']&&(_0xf94acf['isBlock'](_0x56d300)&&!_0xf94acf['isLimit'](_0x56d300)&&(_0x56d300['nextSibling']||_0xff70d0['isAtEnd']?_0x18b5e5&&_0x18b5e5['parent']==_0x56d300||(_0x18b5e5=_0x56d300,_0x333c06(_0x5a01c6['previousPosition']),_0x147533=!0x0):_0x4b8231=_0x4b8231||_0x5a01c6['previousPosition']));}function _0x333c06(_0x52439d){const {authorId:_0x5700bb}=_0x495ca6['_splitMarkerName'](_0xb89886['markerName']),_0x3d2128=_0x4e0e15['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f8982,'data-author-id':_0x5700bb}),_0x5327e9=_0x4e0e15['mapper']['toViewPosition'](_0x52439d);_0x30c2fb&&_0x495ca6['activeMarkers']['includes'](_0xb89886['markerName'])&&_0x4e0e15['writer']['addClass']('ck-suggestion-marker--active',_0x3d2128),_0x4e0e15['writer']['insert'](_0x5327e9,_0x3d2128),_0x4e0e15['mapper']['bindElementToMarker'](_0x3d2128,_0xb89886['markerName']);}_0x4ea1ae||_0x147533||!_0x4b8231||_0x333c06(_0x4b8231);};}class z extends _0x497417{static get['requires'](){return[_0x59b0bd];}['init'](){const _0x31e33c=this['editor'],_0x216c36=_0x31e33c['plugins']['get']('TrackChangesEditing');_0x216c36['enableCommand']('delete');const _0x1d7ef4=_0x31e33c['commands']['get']('deleteForward');_0x216c36['enableCommand']('deleteForward',(_0x1f72cd,_0x46d0e3={})=>{const _0x10717=_0x31e33c['model']['createSelection'](_0x31e33c['model']['document']['selection']);_0x10717['isCollapsed']&&_0x31e33c['model']['modifySelection'](_0x10717,{'direction':'forward','unit':_0x46d0e3['unit']});const _0x5c95b0=_0x10717['getFirstRange'](),_0x528e03=_0x4a3ae4['fromRange'](_0x5c95b0);let _0xd46aac;_0x1f72cd(_0x46d0e3),_0xd46aac='$graveyard'==_0x528e03['root']['rootName']?_0x31e33c['model']['createRange'](_0x5c95b0['start']):_0x31e33c['model']['createRange'](_0x528e03['start'],_0x528e03['end']),_0x528e03['detach'](),_0x31e33c['model']['enqueueChange'](_0x1d7ef4['buffer']['batch'],_0x38d408=>{_0x1d7ef4['buffer']['lock'](),_0x38d408['setSelection'](_0x38d408['createRange'](_0xd46aac['end'])),_0x1d7ef4['buffer']['unlock']();});}),_0x31e33c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x31e33c,'merge'),{'priority':'high'}),_0x31e33c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x33cdef,_0xa303f,_0x58de42)=>{_0x58de42['options']['showSuggestionHighlights']&&De(_0x31e33c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x33cdef,_0xa303f,_0x58de42);},{'priority':'high'}),_0x31e33c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x266421,_0x434296,_0x55111f)=>{const _0x8abddf=_0x55111f['mapper']['markerNameToElements'](_0x434296['markerName']);if(_0x8abddf){for(const _0x3bb504 of _0x8abddf)_0x3bb504['is']('uiElement')&&(_0x55111f['mapper']['unbindElementFromMarkerName'](_0x3bb504,_0x434296['markerName']),_0x55111f['writer']['remove'](_0x3bb504));}},{'priority':'high'});}}class W extends _0x497417{['afterInit'](){const _0x5d021a=this['editor'];if(!_0x5d021a['plugins']['has']('ListEditing'))return;const _0x5bbb98=_0x5d021a['locale'],_0x394cef=_0x5d021a['plugins']['get']('TrackChangesEditing'),_0x256392=_0x5d021a['plugins']['has']('TodoListEditing'),_0x47f74b=!!_0x5d021a['config']['get']('list.multiBlock');function _0x27c325(_0x245126){return{'type':'format','content':''+c(_0x5bbb98,'*Set\x20format:*\x20%0',_0x245126)};}function _0x3e1b03(_0x12fdc7){return{'type':'format','content':''+c(_0x5bbb98,'*Remove\x20format:*\x20%0',_0x12fdc7)};}_0x394cef['enableDefaultAttributesIntegration']('numberedList'),_0x394cef['enableDefaultAttributesIntegration']('bulletedList'),_0x394cef['enableDefaultAttributesIntegration']('customNumberedList'),_0x394cef['enableDefaultAttributesIntegration']('customBulletedList'),_0x394cef['enableDefaultAttributesIntegration']('indentList'),_0x394cef['enableDefaultAttributesIntegration']('outdentList'),_0x394cef['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x394cef['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x394cef['registerBlockAttribute']('listItemId'),_0x394cef['registerBlockAttribute']('listType'),_0x394cef['registerBlockAttribute']('listIndent'),_0x47f74b&&(_0x394cef['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x394cef['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x256392&&(_0x394cef['enableDefaultAttributesIntegration']('todoList'),_0x394cef['enableDefaultAttributesIntegration']('checkTodoList'),_0x394cef['registerBlockAttribute']('todoListChecked'),_0x394cef['descriptionFactory']['registerDescriptionCallback'](_0x4993c2=>{const {data:_0x393207}=_0x4993c2;if(_0x393207&&'todoListChecked'==_0x393207['key'])return{'type':'format','content':_0x393207['newValue']?c(_0x5bbb98,'*Check\x20item*'):c(_0x5bbb98,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2b407d=>{if(_0x2b407d['batch']['isUndo'])return!0x1;let _0x358a20=!0x1;const _0x1c87bc=_0x394cef['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41e7ec=>'todoListChecked'===_0x394cef['_getAttributeKey'](_0x41e7ec));for(const _0x3e9187 of _0x1c87bc){'todo'!=_0x3e9187['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x394cef['_findSuggestions'](_0x3e9187['getFirstRange'](),'attribute')['find'](_0x52eebe=>'listType'===_0x394cef['_getAttributeKey'](_0x52eebe['suggestion']))||(_0x2b407d['removeMarker'](_0x3e9187['getFirstMarker']()),_0x358a20=!0x0));}return _0x358a20;})),_0x394cef['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x5bbb98,'FORMAT_INDENT'));const _0x3e3f90={'type':'format','content':''};_0x394cef['descriptionFactory']['registerDescriptionCallback'](_0x58b293=>{const {data:_0x33eeb9}=_0x58b293;if(!_0x33eeb9||'listType'!=_0x33eeb9['key'])return;let _0x173107=_0x58b293['head'];for(;_0x173107;){if(_0x173107['data']&&(('listStyle'==_0x173107['data']['key']||'listMarkerStyle'==_0x173107['data']['key'])&&(_0x173107['data']['newValue']&&'default'!=_0x173107['data']['newValue']||'default'!=_0x173107['data']['oldValue']&&!_0x33eeb9['newValue'])||!_0x47f74b&&_0x173107['data']['key']==u))return _0x3e3f90;_0x173107=_0x173107['next'];}if(null==_0x33eeb9['newValue'])switch(_0x33eeb9['oldValue']){case'bulleted':return _0x3e1b03(c(_0x5bbb98,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e1b03(c(_0x5bbb98,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e1b03(c(_0x5bbb98,'ELEMENT_TODO_LIST'));}switch(_0x33eeb9['newValue']){case'bulleted':return _0x27c325(c(_0x5bbb98,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x27c325(c(_0x5bbb98,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x27c325(c(_0x5bbb98,'ELEMENT_TODO_LIST'));}}),_0x394cef['descriptionFactory']['registerDescriptionCallback'](_0x5aa04d=>{const {data:_0x165f6d}=_0x5aa04d;if(_0x165f6d&&'listIndent'==_0x165f6d['key'])return null==_0x165f6d['newValue']||null==_0x165f6d['oldValue']&&0x0==_0x165f6d['newValue']?_0x3e3f90:void 0x0;}),_0x394cef['descriptionFactory']['registerDescriptionCallback'](_0x66f312=>{if('attribute'!=_0x66f312['type'])return;const {data:_0x244675}=_0x66f312;if(!_0x244675||'listItemId'!=_0x244675['key'])return;const _0x32ed57=Te(_0x66f312);return'newValue'==_0x32ed57?{'type':'format','content':c(_0x5bbb98,'*Merge:*\x20list\x20item')}:'oldValue'==_0x32ed57?{'type':'format','content':c(_0x5bbb98,'*Split:*\x20list\x20item')}:_0x3e3f90;}),_0x5d021a['model']['document']['registerPostFixer'](_0x8873b8=>this['listItemIdFixer'](_0x8873b8)),_0x5d021a['model']['document']['registerPostFixer'](_0x5365de=>this['noTrackChangesFixer'](_0x5365de)),_0x5d021a['model']['document']['on']('change:data',(_0x5e968c,_0xd70612)=>{if(_0xd70612['isUndo']||!_0xd70612['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x107bdf){if(_0x107bdf['batch']['isUndo']||!_0x107bdf['batch']['isLocal'])return!0x1;let _0x998d44=!0x1;const _0x546feb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cba09=>_0x1cba09['data']&&'listItemId'==_0x1cba09['data']['key'])['filter'](_0x292fb5=>_0x292fb5['data']['newValue']&&_0x292fb5['data']['oldValue']);for(const _0x45b239 of _0x546feb)Te(_0x45b239)||(_0x107bdf['removeMarker'](_0x45b239['getFirstMarker']()),_0x998d44=!0x0);return _0x998d44;}['noTrackChangesFixer'](_0x48bb11){if(_0x48bb11['batch']['isUndo']||!_0x48bb11['batch']['isLocal'])return!0x1;const _0x3ac9bf=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3ac9bf['trackChangesCommand']['value'])return!0x1;let _0x1e4487=!0x1;const _0x4b3241=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x351975=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x523596=>'attribute'==_0x523596['type'])['filter'](_0x16655e=>_0x4b3241['includes'](_0x16655e['attributeKey']));if(0x0==_0x351975['length'])return _0x1e4487;for(const _0x5ae26e of _0x351975){const _0x11ede3=_0x3ac9bf['_findSuggestions'](_0x5ae26e['range'],'attribute')['filter'](_0x1a922b=>!_0x1a922b['meta']['isNextTo'])['map'](_0x5c3637=>_0x5c3637['suggestion'])['filter'](_0xb249f6=>{const _0x743dcd=_0x3ac9bf['_getAttributeKey'](_0xb249f6);return _0x4b3241['includes'](_0x743dcd);});if(_0x11ede3['length']){for(const _0x1ae818 of _0x11ede3)_0x48bb11['removeMarker'](_0x1ae818['getFirstMarker']());_0x1e4487=!0x0;}}return _0x1e4487;}['assureChains'](){const _0x67c012=this['editor']['plugins']['get']('TrackChangesEditing'),_0x353bf6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xf25f81;const _0x453549=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5bab5c=>{if(_0x5bab5c['data']['oldRange']||!_0x5bab5c['data']['newRange'])return null;if(!_0x5bab5c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4e0564}=_0x67c012['_splitMarkerName'](_0x5bab5c['name']);if(!_0x67c012['hasSuggestion'](_0x4e0564))return null;const _0x58fcef=_0x67c012['getSuggestion'](_0x4e0564);return _0x353bf6['includes'](_0x58fcef['data']['key']);})['map'](_0x298885=>{const {id:_0x1612a7}=_0x67c012['_splitMarkerName'](_0x298885['name']),_0x367c31=_0x67c012['getSuggestion'](_0x1612a7);return _0xf25f81=_0x367c31['attributes']['groupId'],_0x367c31['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x453549['size'])return;const _0x37f251=_0x67c012['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56e9b7=>'attribute'==_0x56e9b7['type']&&_0x56e9b7['data']&&_0x353bf6['includes'](_0x56e9b7['data']['key'])&&_0x56e9b7['attributes']['groupId']!=_0xf25f81)['map'](_0x217d31=>({'listItem':_0x217d31['getFirstRange']()['start']['nodeAfter'],'groupId':_0x217d31['attributes']['groupId']})),_0x5d707d=new Set();for(const {groupId:_0x1bdc49,listItem:_0x12c7d1}of _0x37f251)_0x453549['has'](_0x12c7d1)&&_0x5d707d['add'](_0x1bdc49);for(const _0x12b2d3 of _0x67c012['getSuggestions']())_0x5d707d['has'](_0x12b2d3['attributes']['groupId'])&&_0x12b2d3['setAttribute']('groupId',_0xf25f81);}['_supportLegacySuggestions'](){const _0x4bc5ba=this['editor'],_0x48d5dc=_0x4bc5ba['locale'],_0x5d5287=_0x4bc5ba['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5d5287['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3c5f85,_0x2389e0){const _0x401a03=[];for(let _0x7cd5c3 of _0x3c5f85)_0x7cd5c3['start']['nodeAfter']===_0x7cd5c3['end']['parent']&&(_0x7cd5c3=_0x4bc5ba['model']['createRange'](_0x4bc5ba['model']['createPositionAt'](_0x7cd5c3['start']['nodeAfter'],0x0))),_0x401a03['push'](_0x7cd5c3);_0x4bc5ba['model']['change'](_0x4e8ed3=>{const _0x19dae1=_0x4bc5ba['model']['document']['selection'],_0x863760=Array['from'](_0x19dae1['getRanges']())['map'](_0xd7350f=>_0x4a3ae4['fromRange'](_0xd7350f));_0x4e8ed3['setSelection'](_0x401a03),_0x4bc5ba['commands']['get'](_0x2389e0['commandName'])['refresh'](),_0x2389e0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4bc5ba['execute'](_0x2389e0['commandName'],..._0x2389e0['commandParams']),_0x4e8ed3['setSelection'](_0x863760);for(const _0x25c073 of _0x863760)_0x25c073['detach']();});}),_0x5d5287['descriptionFactory']['registerElementLabel'](function(_0x3dcf98){const _0x8cef0f=!_0x4bc5ba['model']['schema']['isObject'](_0x3dcf98),_0x28e395=_0x3dcf98['previousSibling'],_0x5740c8=_0x3dcf98['nextSibling'],_0x26fbe4=_0x3dcf98['getAttribute']('listItemId'),_0x157ef7=!_0x28e395||_0x28e395['getAttribute']('listItemId')!==_0x26fbe4,_0x19286f=!_0x5740c8||_0x5740c8['getAttribute']('listItemId')!==_0x26fbe4;return _0x8cef0f&&Boolean(_0x26fbe4)&&_0x157ef7&&_0x19286f;},_0x3c91ad=>c(_0x48d5dc,'ELEMENT_LIST_ITEM',_0x3c91ad));}['_registerLegacyDescription'](){const _0xc7fc49=this['editor'],_0x73005=_0xc7fc49['locale'];function _0xcfdc5f(_0x519e81){const _0x267c8b=_0xc7fc49['commands']['get']('bulletedList')['value'],_0x12d4d6=_0xc7fc49['commands']['get']('numberedList')['value'];return'numberedList'===_0x519e81?_0x267c8b:_0x12d4d6;}_0xc7fc49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x373fe3){if('formatBlock'!=_0x373fe3['type'])return;const {data:_0x28667e}=_0x373fe3;if(!_0x28667e)return;let _0x4e582f,_0x2bed78,_0x37abd0,_0x3a4c7b;switch(_0x28667e['commandName']){case'bulletedList':_0x37abd0=_0x28667e['commandParams'][0x0]['forceValue'],_0x3a4c7b=_0xcfdc5f(_0x28667e['commandName']),_0x4e582f=_0x37abd0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a4c7b&&_0xc7fc49['config']['get']('list.multiBlock')||(_0x4e582f='*Change\x20to:*\x20%0'),_0x2bed78={'type':'format','content':c(_0x73005,_0x4e582f,c(_0x73005,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x37abd0=_0x28667e['commandParams'][0x0]['forceValue'],_0x3a4c7b=_0xcfdc5f(_0x28667e['commandName']),_0x4e582f=_0x37abd0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a4c7b&&_0xc7fc49['config']['get']('list.multiBlock')||(_0x4e582f='*Change\x20to:*\x20%0'),_0x2bed78={'type':'format','content':c(_0x73005,_0x4e582f,c(_0x73005,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4e582f='*Indent:*\x20%0',_0x2bed78={'type':'format','content':c(_0x73005,_0x4e582f,c(_0x73005,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4e582f=function(_0x2c3453){const _0x1888bc=_0x2c3453['getFirstRange']();let _0x38d2b8=_0x1888bc['start']['nodeAfter'];for(;_0x38d2b8&&_0x1888bc['containsItem'](_0x38d2b8);){if(_0x38d2b8['getAttribute']('listIndent')>0x0)return!0x1;_0x38d2b8=_0x38d2b8['nextSibling'];}return!0x0;}(_0x373fe3)?c(_0x73005,'*Format:*\x20remove\x20from\x20%0',c(_0x73005,function(_0x196016){return'ELEMENT_'+_0x196016['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x373fe3))):c(_0x73005,'*Outdent:*\x20%0',c(_0x73005,'ELEMENT_LIST_ITEM')),_0x2bed78={'type':'format','content':_0x4e582f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x28667e['multipleBlocks']&&(_0x4e582f='*Merge:*\x20%0',_0x2bed78={'type':'deletion','content':c(_0x73005,_0x4e582f,c(_0x73005,'ELEMENT_LIST_ITEM'))});}return _0x2bed78;});}}function Te(_0x241ebf){let _0x4b81fc=_0x241ebf['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b81fc;){const _0x181a44=_0x4b81fc['getAttribute']('listItemId');if(!_0x181a44)return!0x1;if(_0x181a44==_0x241ebf['data']['newValue'])return'newValue';if(_0x181a44==_0x241ebf['data']['oldValue'])return'oldValue';_0x4b81fc=_0x4b81fc['previousSibling'];}return!0x1;}class Se extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x30f352=this['editor']['config']['get']('list.properties'),_0x28da3d=this['editor']['plugins']['get']('TrackChangesEditing');_0x30f352['styles']&&(_0x28da3d['enableDefaultAttributesIntegration']('listStyle'),_0x28da3d['registerBlockAttribute']('listStyle')),_0x30f352['reversed']&&(_0x28da3d['enableDefaultAttributesIntegration']('listReversed'),_0x28da3d['registerBlockAttribute']('listReversed')),_0x30f352['startIndex']&&(_0x28da3d['enableDefaultAttributesIntegration']('listStart'),_0x28da3d['registerBlockAttribute']('listStart'));const _0x335367={'type':'format','content':''};_0x28da3d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4fe731=this['editor']['locale'];_0x28da3d['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4fe731,'FORMAT_LIST_REVERSED')),_0x28da3d['descriptionFactory']['registerDescriptionCallback'](_0x5679c4=>{const {data:_0x473b39}=_0x5679c4;if(_0x473b39&&'listReversed'==_0x473b39['key'])return null==_0x473b39['newValue']||0x0==_0x473b39['newValue']&&null==_0x473b39['oldValue']?_0x335367:void 0x0;}),_0x28da3d['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4fe731,'FORMAT_LIST_START')),_0x28da3d['descriptionFactory']['registerDescriptionCallback'](_0x5b5012=>{const {data:_0x1208ce}=_0x5b5012;if(_0x1208ce&&'listStart'==_0x1208ce['key'])return null==_0x1208ce['newValue']||0x1==_0x1208ce['newValue']&&null==_0x1208ce['oldValue']?_0x335367:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x40ae24=>{if(_0x40ae24['batch']['isUndo'])return!0x1;let _0x5d821f=!0x1;const _0x29d22b=_0x28da3d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf590fd=>{const _0x4313fd=_0x28da3d['_getAttributeKey'](_0xf590fd);return'listStart'==_0x4313fd||'listReversed'==_0x4313fd;});for(const _0x29a8e8 of _0x29d22b){const _0x3edb5a=_0x29a8e8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3edb5a||'customNumbered'==_0x3edb5a)continue;_0x28da3d['_findSuggestions'](_0x29a8e8['getFirstRange'](),'attribute')['find'](_0x1df758=>'listType'==_0x28da3d['_getAttributeKey'](_0x1df758['suggestion']))||(_0x40ae24['removeMarker'](_0x29a8e8['getFirstMarker']()),_0x5d821f=!0x0);}return _0x5d821f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x503578){const _0x483391=this['editor']['locale'],{data:_0x38db9a}=_0x503578,_0x5abe2a={'type':'format','content':''};if(!_0x38db9a||'listStyle'!=_0x38db9a['key'])return;if(!_0x38db9a['oldValue'])return'default'==_0x38db9a['newValue']?_0x5abe2a:{'type':'format','content':''+c(_0x483391,'*Set\x20format:*\x20%0',c(_0x483391,this['_getTranslationKeyForListStyle'](_0x38db9a['newValue'])))};if(!_0x38db9a['newValue']){if('default'==_0x38db9a['oldValue'])return _0x5abe2a;let _0x2e9cc8=_0x503578['head'];for(;_0x2e9cc8;){if(_0x2e9cc8['data']&&'listType'==_0x2e9cc8['data']['key']&&_0x2e9cc8['data']['newValue'])return _0x5abe2a;_0x2e9cc8=_0x2e9cc8['next'];}return{'type':'format','content':''+c(_0x483391,'*Remove\x20format:*\x20%0',c(_0x483391,this['_getTranslationKeyForListStyle'](_0x38db9a['oldValue'])))};}if('default'!=_0x38db9a['newValue'])return{'type':'format','content':''+c(_0x483391,'*Set\x20format:*\x20%0',c(_0x483391,this['_getTranslationKeyForListStyle'](_0x38db9a['newValue'])))};let _0x23ec11=_0x503578['head'];for(;_0x23ec11;){if(_0x23ec11['data']&&'listType'==_0x23ec11['data']['key']&&_0x23ec11['data']['newValue']&&_0x23ec11['data']['oldValue'])return _0x5abe2a;_0x23ec11=_0x23ec11['next'];}return{'type':'format','content':c(_0x483391,'*Set\x20format:*\x20%0',c(_0x483391,'ELEMENT_'+_0x503578['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1cd6eb=this['editor'],_0x520c1d=_0x1cd6eb['locale'];_0x1cd6eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c162c=>{if('formatBlock'!=_0x5c162c['type'])return;const {data:_0x2a079d}=_0x5c162c;if(!_0x2a079d)return;let _0x4e42d1,_0x55208c;switch(_0x2a079d['commandName']){case'listStyle':_0x4e42d1='*Change\x20to:*\x20%0',_0x55208c={'type':'format','content':c(_0x520c1d,_0x4e42d1,c(_0x520c1d,this['_getTranslationKeyForListStyle'](_0x2a079d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e42d1=_0x2a079d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x55208c={'type':'format','content':c(_0x520c1d,_0x4e42d1)};break;case'listStart':_0x4e42d1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x55208c={'type':'format','content':c(_0x520c1d,_0x4e42d1,_0x2a079d['commandParams'][0x0]['startIndex'])};}return _0x55208c;});}['_getTranslationKeyForListStyle'](_0x655ea6){return'ELEMENT_'+function(_0x407a1d){if(_e['includes'](_0x407a1d))return'bulleted';if(Re['includes'](_0x407a1d))return'numbered';return null;}(_0x655ea6)['toUpperCase']()+'_LIST_'+_0x655ea6['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x497417{['afterInit'](){const _0x34fbd7=this['editor'];_0x34fbd7['commands']['get']('emoji')&&_0x34fbd7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x497417{static get['requires'](){return[_0x4709a6];}['init'](){const _0x21faba=this['editor'],_0x11ffb1=_0x21faba['plugins']['get']('TrackChangesEditing'),_0x501b75=_0x21faba['commands']['get']('enter');_0x11ffb1['enableCommand']('enter',()=>{_0x21faba['model']['change'](_0x5a5f27=>{const _0xa5b664=_0x21faba['model']['document']['selection'],_0x13a2af=_0xa5b664['getFirstPosition'](),_0x56de74=_0x4a3ae4['fromRange'](_0xa5b664['getFirstRange']());if(_0x501b75['enterBlock'](_0x5a5f27)){const _0x480efd=_0x21faba['model']['createPositionAt'](_0x13a2af['parent']['nextSibling'],0x0),_0x27d95e=_0x5a5f27['createRange'](_0x13a2af,_0x480efd);_0x11ffb1['markInsertion'](_0x27d95e);}else _0x5a5f27['setSelection'](_0x5a5f27['createRange'](_0x56de74['end']));_0x56de74['detach'](),_0x501b75['fire']('afterExecute',{'writer':_0x5a5f27});});}),_0x21faba['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x21faba,'split'),{'priority':'high'}),_0x21faba['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5be870,_0x1e3b03,_0x1a6a17)=>{const _0x77a3af=_0x1a6a17['mapper']['markerNameToElements'](_0x1e3b03['markerName']);if(_0x77a3af){for(const _0x20839b of _0x77a3af)_0x20839b['hasClass']('ck-suggestion-marker-split')&&(_0x1a6a17['mapper']['unbindElementFromMarkerName'](_0x20839b,_0x1e3b03['markerName']),_0x1a6a17['writer']['remove'](_0x20839b));}},{'priority':'high'}),_0x21faba['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x44cebf,_0x52deff,_0x4ab227)=>{_0x4ab227['options']['showSuggestionHighlights']&&De(_0x21faba,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x44cebf,_0x52deff,_0x4ab227);},{'priority':'high'});}}class Z extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x7d9966=this['editor']['plugins']['get']('TrackChangesEditing');_0x7d9966['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x7d9966['enableCommand']('findNext'),_0x7d9966['enableCommand']('findPrevious'),_0x7d9966['enableCommand']('replace'),_0x7d9966['enableCommand']('replaceAll');}['handleFindCommand'](_0x47d516,_0x2837c7,_0x22f325={}){const _0x598052=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x47d516(_0x3319fd=>{let _0xe931c1=('string'==typeof _0x2837c7?_0x598052['findByTextCallback'](_0x2837c7,_0x22f325):_0x2837c7)(_0x3319fd);Array['isArray'](_0xe931c1)&&(_0xe931c1={'results':_0xe931c1,'searchText':'string'==typeof _0x2837c7?_0x2837c7:''});const _0x36b7a6=_0xe931c1['results']['filter'](_0x87bb11=>!0x1===this['_isInDeletionRange'](_0x87bb11,_0x3319fd['item']));return{..._0xe931c1,'results':_0x36b7a6};},_0x22f325);}['_isInDeletionRange'](_0x47349c,_0x50af8a){const _0x5e57e7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x50af8a,_0x47349c['start']),this['editor']['model']['createPositionAt'](_0x50af8a,_0x47349c['end']));for(const _0x372946 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5e57e7['getIntersection'](_0x372946['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x497417{['afterInit'](){const _0x29ce68=this['editor']['locale'],_0x15d757=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x26ed34,commandName:_0x4aaa5b}of eo)this['editor']['plugins']['has'](_0x26ed34)&&(_0x15d757['enableDefaultAttributesIntegration'](_0x4aaa5b),_0x15d757['registerInlineAttribute'](_0x4aaa5b));_0x15d757['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x29ce68,'FORMAT_FONT_SIZE')),_0x15d757['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x29ce68,'FORMAT_FONT_FAMILY')),_0x15d757['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x29ce68,'FORMAT_FONT_COLOR')),_0x15d757['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x29ce68,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47640e=this['editor'],_0x3a04d2=_0x47640e['locale'];_0x47640e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a938d=>{const _0x386961=_0x3a04d2['t'];if('formatInline'!=_0x1a938d['type'])return;const {data:_0x3bfb6a}=_0x1a938d;if(null!=_0x3bfb6a){if('fontSize'==_0x3bfb6a['commandName']){const _0x1db730=_0x3bfb6a['commandParams'][0x0]['value'];if(_0x1db730){const _0x2209dd=_0x386961(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4007dd=>_0x4007dd['model']==_0x1db730)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3a04d2,'*Set\x20font\x20size:*\x20%0',_0x2209dd)};}return{'type':'format','content':c(_0x3a04d2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3bfb6a['commandName']){const _0x7e547f=_0x3bfb6a['commandParams'][0x0]['value'];return _0x7e547f?{'type':'format','content':c(_0x3a04d2,'*Set\x20font\x20family:*\x20%0',_0x7e547f)}:{'type':'format','content':c(_0x3a04d2,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3bfb6a['commandName']){const _0x2d6dbe=_0x3bfb6a['commandParams'][0x0]['value'];if(_0x2d6dbe){const _0x98a38=_0x2b8a4e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x439a14=>_0x439a14['model']==_0x2d6dbe);let _0x5ead2a=_0x2d6dbe,_0x5be48d='';return _0x98a38&&(_0x5ead2a=_0x98a38['label'],_0x5be48d=_0x386961(_0x5ead2a)['toLowerCase']()),{'type':'format','content':c(_0x3a04d2,'*Set\x20font\x20color:*\x20%0',_0x5be48d)['trim'](),'color':{'value':_0x2d6dbe,'title':_0x5be48d||_0x5ead2a}};}return{'type':'format','content':c(_0x3a04d2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3bfb6a['commandName']){const _0x333b3b=_0x3bfb6a['commandParams'][0x0]['value'];if(_0x333b3b){const _0x5a4254=_0x2b8a4e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x591bfc=>_0x591bfc['model']==_0x333b3b);let _0x2d7359=_0x333b3b,_0x241e77='';return _0x5a4254&&(_0x2d7359=_0x5a4254['label'],_0x241e77=_0x386961(_0x2d7359)['toLowerCase']()),{'type':'format','content':c(_0x3a04d2,'*Set\x20font\x20background\x20color:*\x20%0',_0x241e77)['trim'](),'color':{'value':_0x333b3b,'title':_0x241e77||_0x2d7359}};}return{'type':'format','content':c(_0x3a04d2,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x497417{['afterInit'](){const _0xe582f=this['editor'],_0x561fa0=_0xe582f['plugins']['get']('TrackChangesEditing'),_0x35800d=_0xe582f['commands']['get']('copyFormat'),_0x3637de=_0xe582f['commands']['get']('pasteFormat');_0x35800d&&_0x3637de&&(_0x561fa0['enableDefaultAttributesIntegration']('pasteFormat'),_0x561fa0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x43c8d6=this['editor'],_0x363e49=_0x43c8d6['locale'];_0x43c8d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b4d85=>{if('formatBlock'!=_0x5b4d85['type']&&'formatInline'!=_0x5b4d85['type'])return;const {data:_0x360239}=_0x5b4d85;if(_0x360239&&'pasteFormat'===_0x360239['commandName']){const _0x298d70=[],_0x3f3873=_0x360239['commandParams'][0x0];for(const [_0x2afe21,_0x538377]of Object['entries'](_0x3f3873))_0x298d70['push'](ro(_0x43c8d6,_0x2afe21,_0x538377));return _0x298d70['length']?{'type':'format','content':c(_0x363e49,'*Set\x20format\x20to:*\x20%0',_0x298d70['join'](',\x20'))}:{'type':'format','content':c(_0x363e49,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x13eca1,_0x7261e3,_0x57a85b){const _0x25ddfc=_0x13eca1['locale']['t'],_0x26e8ba=_0x7261e3['split'](/(?=[A-Z])/)['join']('\x20'),_0x3acf72=_0x25ddfc(_0x26e8ba['charAt'](0x0)['toUpperCase']()+_0x26e8ba['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x57a85b)return _0x3acf72;if('fontColor'===_0x7261e3||'fontBackgroundColor'===_0x7261e3){const _0x28b6a1=_0x2b8a4e(_0x13eca1['config']['get']('fontColor.colors'))['find'](_0x183d70=>_0x183d70['model']==_0x57a85b);return _0x3acf72+'\x20('+(_0x28b6a1?_0x25ddfc(_0x28b6a1['label'])['toLowerCase']():_0x57a85b)+')';}if('fontSize'===_0x7261e3&&isNaN(parseFloat(_0x57a85b))){const _0xb193f4=_0x13eca1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x13eca1['config']['get']('fontSize.options'))['find'](_0x45c8c0=>_0x45c8c0['model']==_0x57a85b);return _0x3acf72+'\x20('+(_0xb193f4?_0x25ddfc(_0xb193f4['title'])['toLowerCase']():_0x57a85b)+')';}return _0x3acf72+'\x20('+_0x57a85b+')';}class nt extends _0x497417{['_headingOptions'];['afterInit'](){const _0x1fd968=this['editor'];if(!_0x1fd968['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1fd968['config']['get']('heading.options');const _0x26a846=_0x1fd968['locale'],_0x11bb63=_0x1fd968['plugins']['get']('TrackChangesEditing');_0x11bb63['enableDefaultAttributesIntegration']('heading');for(const _0x311449 of this['_headingOptions'])'paragraph'!=_0x311449['model']&&_0x11bb63['descriptionFactory']['registerElementLabel'](_0x311449['model'],_0x45b198=>{const _0x15d4c6=this['_getHeadingLevel'](_0x311449['model']);return null!==_0x15d4c6?_0x599ad3(_0x45b198,_0x15d4c6):_0x39bcf7(_0x45b198,_0x311449['title']);});function _0x599ad3(_0x3da5e2,_0x318050){return c(_0x26a846,'ELEMENT_HEADING',[_0x3da5e2,_0x318050]);}function _0x39bcf7(_0x19fb3c,_0x18310b){return c(_0x26a846,'ELEMENT_HEADING_CUSTOM',[_0x19fb3c,_0x18310b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cdc1f=this['editor'],_0xe39338=_0x4cdc1f['locale'];function _0x555f7d(_0x1c1b10,_0x58abe9){return c(_0xe39338,'ELEMENT_HEADING_CUSTOM',[_0x1c1b10,_0x58abe9]);}_0x4cdc1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x581bbc=>{if('formatBlock'!=_0x581bbc['type'])return;const {data:_0x4968bf}=_0x581bbc;if(_0x4968bf&&'heading'==_0x4968bf['commandName']){const _0x49d743=_0x4968bf['commandParams'][0x0]['value'],_0x2eb5a2=this['_getHeadingLevel'](_0x49d743);if(null!==_0x2eb5a2)return{'type':'format','content':c(_0xe39338,'*Change\x20to:*\x20%0',(_0x3cb6ac=0x1,_0x10a9ca=_0x2eb5a2,c(_0xe39338,'ELEMENT_HEADING',[_0x3cb6ac,_0x10a9ca])))};const _0x17e393=this['_headingOptions']['find'](_0x54ce8=>_0x54ce8['model']===_0x49d743)['title'];return{'type':'format','content':c(_0xe39338,'*Change\x20to:*\x20%0',_0x555f7d(0x1,_0x17e393))};}var _0x3cb6ac,_0x10a9ca;});}['_getHeadingLevel'](_0x51df3f){const _0x111014=_0x51df3f['match'](/^heading(\d+)/);if(_0x111014)return _0x111014[0x1];const _0x18cd49=this['_headingOptions']?.['find'](_0x5f1adc=>_0x5f1adc['model']==_0x51df3f);if(_0x18cd49&&_0x18cd49['view']){const _0x1cd46f=_0x18cd49['view'],_0x118ffc=(_0x1cd46f['name']??_0x1cd46f)['match'](/^h(\d+)/);if(_0x118ffc)return _0x118ffc[0x1];}return null;}}class it extends _0x497417{['afterInit'](){const _0x36eba6=this['editor'];if(!_0x36eba6['plugins']['has']('HighlightEditing'))return;const _0x200eb0=_0x36eba6['plugins']['get']('TrackChangesEditing'),_0x4fe571=_0x36eba6['locale'];_0x200eb0['enableDefaultAttributesIntegration']('highlight'),_0x200eb0['registerInlineAttribute']('highlight'),_0x200eb0['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x4fe571,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2df12f=this['editor'],_0x23ec56=_0x2df12f['locale'];_0x2df12f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x376654=>{if('formatInline'!=_0x376654['type'])return;const {data:_0x3d4e73}=_0x376654;if(_0x3d4e73&&'highlight'==_0x3d4e73['commandName']){const _0x5c69f1=_0x23ec56['t'],_0x528588=_0x3d4e73['commandParams'][0x0]['value'];if(_0x528588){const _0x5c9567=_0x2df12f['config']['get']('highlight.options')['find'](_0x1ec86c=>_0x1ec86c['model']==_0x528588),_0xb875cc=_0x5c69f1(_0x5c9567['title'])['toLowerCase']();return{'type':'format','content':c(_0x23ec56,'*Set\x20highlight:*\x20%0',_0xb875cc),'color':{'value':_0x5c9567['color'],'title':_0x5c9567['title']}};}return{'type':'format','content':c(_0x23ec56,'*Remove\x20highlight*',c(_0x23ec56,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x497417{['afterInit'](){const _0x2094a2=this['editor'];if(!_0x2094a2['plugins']['has']('HorizontalLineEditing'))return;_0x2094a2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x94e799=_0x2094a2['plugins']['get']('TrackChangesEditing'),_0x3dc907=_0x2094a2['locale'];_0x94e799['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3de609=>c(_0x3dc907,'ELEMENT_HORIZONTAL_LINE',_0x3de609)),_0x2094a2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x40d38e,{writer:_0x4b5a71,options:_0x11667b})=>{if(!_0x11667b['showSuggestionHighlights'])return null;const _0x295b00=_0x4b5a71['createContainerElement']('div'),_0xde3210=_0x4b5a71['createEmptyElement']('hr');return _0x4b5a71['addClass']('ck-horizontal-line',_0x295b00),_0x4b5a71['insert'](_0x4b5a71['createPositionAt'](_0x295b00,0x0),_0xde3210),_0x295b00;},'converterPriority':'high'});}}class ot extends _0x497417{['afterInit'](){const _0xf7f8ff=this['editor'];if(!_0xf7f8ff['plugins']['has']('HtmlEmbed'))return;const _0x504bc4=_0xf7f8ff['plugins']['get']('TrackChangesEditing'),_0x305c53=_0xf7f8ff['locale'];_0x504bc4['descriptionFactory']['registerElementLabel']('rawHtml',_0x55bf57=>c(_0x305c53,'ELEMENT_HTML_EMBED',_0x55bf57)),_0x504bc4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x504bc4['registerBlockAttribute']('value'),_0x504bc4['descriptionFactory']['registerDescriptionCallback'](_0x41980d=>{if('attribute'!=_0x41980d['type'])return;const {data:_0x4d03c4}=_0x41980d;if(_0x4d03c4&&'value'==_0x4d03c4['key']&&_0x41980d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x43435f=c(_0x305c53,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x305c53,'*Change\x20%0\x20content*',_0x43435f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58956a=this['editor'],_0x5844e6=_0x58956a['locale'];_0x58956a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39a720=>{if('formatBlock'!=_0x39a720['type'])return;const {data:_0x10898b}=_0x39a720;if(_0x10898b&&'htmlEmbed'==_0x10898b['commandName']){const _0x43f069=c(_0x5844e6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5844e6,'*Change\x20%0\x20content*',_0x43f069)};}});}}class rt extends _0x497417{['afterInit'](){const _0x2740a5=this['editor'];if(!_0x2740a5['plugins']['has']('ImageEditing'))return;const _0x560543=_0x2740a5['plugins']['get']('TrackChangesEditing'),_0x7f6537=_0x2740a5['plugins']['get']('ImageUtils'),_0xc0af58=_0x2740a5['locale'];_0x560543['enableCommand']('insertImage'),_0x560543['descriptionFactory']['registerElementLabel']('imageBlock',_0x3245fd=>c(_0xc0af58,'ELEMENT_IMAGE',_0x3245fd)),_0x560543['descriptionFactory']['registerElementLabel']('imageInline',_0x56cbca=>c(_0xc0af58,'ELEMENT_INLINE_IMAGE',_0x56cbca)),_0x560543['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xc0af58,'ELEMENT_CAPTION')),_0x2740a5['plugins']['has']('ImageUploadEditing')&&_0x560543['enableCommand']('uploadImage'),_0x2740a5['plugins']['has']('ImageBlockEditing')&&_0x2740a5['plugins']['has']('ImageInlineEditing')&&(_0x560543['enableCommand']('imageTypeInline',(_0xaf3c8c,_0x539fdf)=>{const _0x463556=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']);_0x2740a5['model']['change'](()=>{_0x560543['markBlockFormat'](_0x463556,{'commandName':'imageTypeInline','commandParams':[_0x539fdf]},[],'convertBlockImageToInline');});}),_0x560543['enableCommand']('imageTypeBlock',(_0x3d2c04,_0x2dd6ba)=>{_0x2740a5['model']['change'](_0x4913dc=>{let _0x4ac038=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']),_0x22a925=_0x4913dc['createRangeOn'](_0x4ac038);const _0x5e439c=_0x3bdfd3['fromPosition'](_0x22a925['start'],'toPrevious'),_0x43ff75=_0x3bdfd3['fromPosition'](_0x22a925['end'],'toNext');_0x560543['forceDefaultExecution'](()=>_0x3d2c04(_0x2dd6ba)),_0x4ac038=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']),_0x22a925=_0x4913dc['createRangeOn'](_0x4ac038);const _0x3ce65d=_0x4913dc['createRange'](_0x5e439c,_0x43ff75);_0x5e439c['detach'](),_0x43ff75['detach'](),_0x560543['markBlockFormat'](_0x4ac038,{'commandName':'imageTypeInline','commandParams':[_0x2dd6ba]},[],'convertInlineImageToBlock'),_0x3ce65d['start']['isBefore'](_0x22a925['start'])&&_0x560543['markInsertion'](_0x4913dc['createRange'](_0x3ce65d['start'],_0x22a925['start']),'convertInlineImageToBlock'),_0x22a925['end']['isBefore'](_0x3ce65d['end'])&&_0x560543['markInsertion'](_0x4913dc['createRange'](_0x22a925['end'],_0x3ce65d['end']),'convertInlineImageToBlock');});}),_0x560543['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x560543['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x560543['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x560543['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x560543['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x560543['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x188b8f])=>{const _0x155a26=_0x560543['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4abc0e=_0x188b8f['start'],_0x19a9eb=_0x188b8f['end'];const _0x5cc560=_0x2740a5['model']['schema']['getNearestSelectionRange'](_0x4abc0e,'backward'),_0x1c70fd=_0x2740a5['model']['schema']['getNearestSelectionRange'](_0x19a9eb,'forward');_0x5cc560['isCollapsed']&&(_0x4abc0e=_0x5cc560['start']),_0x1c70fd['isCollapsed']&&(_0x19a9eb=_0x1c70fd['end']),_0x155a26([_0x2740a5['model']['createRange'](_0x4abc0e,_0x19a9eb)]);}),_0x560543['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x16f10c),_0x560543['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x16f10c)),_0x2740a5['plugins']['has']('ImageCaptionEditing')&&(_0x560543['enableCommand']('toggleImageCaption',(_0x6f1640,_0x2d71bc)=>{const _0x65fe04=_0x2740a5['plugins']['get']('ImageCaptionUtils');let _0xad0444=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']),_0x3f6252=_0x65fe04['getCaptionFromImageModelElement'](_0xad0444);_0x2740a5['model']['change'](()=>{if(_0x3f6252)return void _0x560543['markDeletion'](_0x2740a5['model']['createRangeOn'](_0x3f6252));const _0x103220=_0x7f6537['isBlockImage'](_0xad0444);_0x6f1640(_0x2d71bc),_0xad0444=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']),_0x3f6252=_0x65fe04['getCaptionFromImageModelElement'](_0xad0444),_0x560543['markInsertion'](_0x2740a5['model']['createRangeOn'](_0x3f6252),_0x103220?null:'imageCaption');});}),_0x560543['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x16f10c));const _0x390474=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x81eac3(_0x16cac1,_0x4a85a1){const _0x3bc80c=_0x390474['findIndex'](({type:_0x139b82,subType:_0x25cf43})=>_0x16cac1['type']==_0x139b82&&_0x16cac1['subType']==_0x25cf43),_0x38faec=_0x390474['findIndex'](({type:_0x28313e,subType:_0x20a916})=>_0x4a85a1['type']==_0x28313e&&_0x4a85a1['subType']==_0x20a916);if(_0x3bc80c<0x0||_0x38faec<0x0)return!0x1;const _0x1df146=_0x16cac1['getFirstRange'](),_0x21485d=_0x4a85a1['getFirstRange']();if((0x0==_0x3bc80c||0x1==_0x3bc80c)&&0x2==_0x38faec&&_0x1df146['isIntersecting'](_0x21485d))return!0x0;if(0x2==_0x3bc80c&&0x3==_0x38faec){const _0x3ccd52=_0x560543['_findSuggestions'](_0x1df146,'insertion')['filter'](({suggestion:_0x3667ce,meta:_0x2d5bb6})=>_0x2d5bb6['isOwn']&&'convertInlineImageToBlock'==_0x3667ce['subType']);if(_0x3ccd52['length']>0x1&&_0x21485d['end']['isEqual'](_0x1df146['start']))return!0x0;if(0x1==_0x3ccd52['length']&&(_0x1df146['start']['isEqual'](_0x21485d['end'])||_0x1df146['end']['isEqual'](_0x21485d['start'])))return!0x0;}if(0x3==_0x3bc80c&&0x3==_0x38faec&&_0x1df146['start']['isBefore'](_0x21485d['start'])){const _0x43a630=_0x1df146['end']['nodeAfter'],_0x449c46=_0x21485d['start']['nodeBefore'];return _0x7f6537['isBlockImage'](_0x43a630)&&_0x43a630===_0x449c46;}return!0x1;}function _0x16f10c(_0x5961fc,_0x46285e){return _0x81eac3(_0x5961fc,_0x46285e)?[_0x5961fc,_0x46285e]:_0x81eac3(_0x46285e,_0x5961fc)?[_0x46285e,_0x5961fc]:null;}_0x2740a5['plugins']['has']('ImageResize')&&(_0x560543['enableDefaultAttributesIntegration']('resizeImage'),_0x560543['registerBlockAttribute']('resizedWidth'),_0x560543['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xc0af58,'FORMAT_IMAGE_SIZE'))),_0x2740a5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x560543['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x560543['registerBlockAttribute']('alt')),_0x2740a5['plugins']['has']('PictureEditing')&&(_0x560543['registerBlockAttribute']('sources'),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x568f4e=>{if('attribute'!=_0x568f4e['type'])return;const {data:_0x39b7ce}=_0x568f4e;return _0x39b7ce&&'sources'==_0x39b7ce['key']?{'type':'format','content':''}:void 0x0;})),_0x2740a5['plugins']['has']('ImageSizeAttributes')&&(_0x560543['registerBlockAttribute']('width'),_0x560543['registerBlockAttribute']('height'),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x1afde8=>{if('attribute'!=_0x1afde8['type'])return;const {data:_0x521c47}=_0x1afde8;return!_0x521c47||'width'!=_0x521c47['key']&&'height'!=_0x521c47['key']?void 0x0:{'type':'format','content':''};})),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x2c322a=>{if(!!_0x390474['find'](({type:_0x1fa962,subType:_0x3247f5})=>_0x2c322a['type']==_0x1fa962&&_0x2c322a['subType']==_0x3247f5))return _0x2c322a['previous']?{}:void 0x0;}),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x475b2f=>{if('insertion'==_0x475b2f['type']||'deletion'==_0x475b2f['type']){const _0x1cea59=_0x475b2f['getContainedElement']();if(_0x1cea59&&_0x1cea59['is']('element','caption'))return{'type':'insertion'==_0x475b2f['type']?'addObject':'removeObject','element':_0x1cea59,'quantity':0x1};}}),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x58948f=>'formatBlock'==_0x58948f['type']&&'convertInlineImageToBlock'==_0x58948f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58948f['type']&&'convertBlockImageToInline'==_0x58948f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x2d5431=>{if('attribute'!=_0x2d5431['type'])return;const {data:_0x17a8fb}=_0x2d5431;if(!_0x17a8fb||'alt'!=_0x17a8fb['key'])return;const _0x273e1c=_0x17a8fb['newValue'];return _0x273e1c?{'type':'format','content':c(_0xc0af58,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x273e1c+'\x22')}:{'type':'format','content':c(_0xc0af58,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x146bf3=this['editor'],_0x118da2=_0x146bf3['locale'];_0x146bf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2915ce=>{if('formatBlock'!=_0x2915ce['type']&&'formatInline'!=_0x2915ce['type'])return;const {data:_0x4f9152}=_0x2915ce;if(_0x4f9152){if('imageTextAlternative'==_0x4f9152['commandName']){const _0x12ae5e=_0x4f9152['commandParams'][0x0]['newValue'];return _0x12ae5e?{'type':'format','content':c(_0x118da2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x12ae5e+'\x22')}:{'type':'format','content':c(_0x118da2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4f9152['commandName']){const _0x3dda3f=_0x4f9152['commandParams'][0x0]['width'];return _0x3dda3f?{'type':'format','content':c(_0x118da2,'*Set\x20image\x20width:*\x20%0',_0x3dda3f)}:{'type':'format','content':c(_0x118da2,'*Reset\x20image\x20width*')};}}});}}class at extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xebd67f=this['editor']['locale'],_0x53fea9=this['editor']['plugins']['get']('TrackChangesEditing');_0x53fea9['enableDefaultAttributesIntegration']('replaceImageSource'),_0x53fea9['registerBlockAttribute']('src'),_0x53fea9['descriptionFactory']['registerDescriptionCallback'](_0x4556a7=>{if('attribute'!=_0x4556a7['type'])return;const {data:_0x3b7048}=_0x4556a7;return _0x3b7048&&'src'==_0x3b7048['key']?_0x3b7048['newValue']&&_0x3b7048['oldValue']?{'type':'format','content':c(_0xebd67f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xa8e31=this['editor']['plugins']['get']('TrackChangesEditing');_0xa8e31['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xa8e31['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa8e31['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xa8e31['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d5ecb=this['editor'],_0x2d630b=_0x2d5ecb['locale'];_0x2d5ecb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16decd=>{if('formatBlock'!=_0x16decd['type']&&'formatInline'!=_0x16decd['type'])return;const {data:_0x1e3085}=_0x16decd;if(!_0x1e3085||'replaceImageSource'!=_0x1e3085['commandName'])return;return{'type':'format','content':c(_0x2d630b,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x497417{['afterInit'](){const _0x52fba8=this['editor'];if(!_0x52fba8['plugins']['has']('ImageStyleEditing'))return;const _0x50cae9=_0x52fba8['plugins']['get']('TrackChangesEditing'),_0x2cbabc=_0x52fba8['plugins']['get']('ImageUtils'),_0x25091d={};_0x50cae9['enableCommand']('imageStyle',(_0xa64b53,_0x3657e8)=>{const _0x508b51=_0x52fba8['plugins']['get']('Users')['me'],_0x522813=_0x52fba8['commands']['get']('imageStyle');let _0x2d02c9=_0x2cbabc['getClosestSelectedImageElement'](_0x52fba8['model']['document']['selection']),_0x46793d=_0x52fba8['model']['createRangeOn'](_0x2d02c9),_0x2f3e03=_0x522813['value'];if(_0x2f3e03==_0x3657e8['value'])return;const _0x1b2fcc={'commandName':'imageStyle','commandParams':[_0x3657e8],'formatGroupId':_0x437d48()};_0x52fba8['model']['change'](()=>{if(_0x50cae9['getSuggestions']()['filter'](_0x23a8ce=>_0x23a8ce['isInContent']&&_0x508b51==_0x23a8ce['author']&&('formatBlock'==_0x23a8ce['type']||'formatInline'==_0x23a8ce['type'])&&('imageStylePreApply'==_0x23a8ce['subType']||'imageStylePostApply'==_0x23a8ce['subType'])&&_0x23a8ce['getFirstRange']()['isEqual'](_0x46793d))['forEach'](_0x1601ed=>_0x50cae9['discardSuggestion'](_0x1601ed['head'])),_0x2d02c9=_0x2cbabc['getClosestSelectedImageElement'](_0x52fba8['model']['document']['selection']),_0x46793d=_0x52fba8['model']['createRangeOn'](_0x2d02c9),_0x522813['refresh'](),_0x52fba8['commands']['get']('imageTypeInline')['refresh'](),_0x52fba8['commands']['get']('imageTypeBlock')['refresh'](),_0x2f3e03=_0x522813['value'],_0x2f3e03!=_0x3657e8['value'])return _0x2cbabc['isInlineImage'](_0x2d02c9)&&_0x522813['shouldConvertImageType'](_0x3657e8['value'],_0x2d02c9)?(_0xa64b53({..._0x3657e8,'setImageSizes':!0x1}),_0x2d02c9=_0x2cbabc['getClosestSelectedImageElement'](_0x52fba8['model']['document']['selection']),void _0x50cae9['markBlockFormat'](_0x2d02c9,{..._0x1b2fcc,'commandReversedParams':[{'value':_0x2f3e03||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2cbabc['isBlockImage'](_0x2d02c9)?_0x50cae9['markBlockFormat'](_0x2d02c9,_0x1b2fcc,[],'imageStylePostApply'):_0x50cae9['markInlineFormat'](_0x46793d,_0x1b2fcc,'imageStylePostApply'));});});for(const _0x339e88 of _0x52fba8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x25091d[_0x339e88['name']]=_0x339e88['title']['toLowerCase']();_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x574536])=>{_0x2cbabc['setImageNaturalSizeAttributes'](_0x574536['getContainedElement']());}),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x192dcf,_0x3c0ac8)=>{_0x50cae9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x192dcf,{'commandName':_0x3c0ac8['commandName'],'commandParams':_0x3c0ac8['commandReversedParams']});}),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x30f6d8,_0xc42b9d){if(_0x5047dd(_0x30f6d8,_0xc42b9d))return[_0x30f6d8,_0xc42b9d];if(_0x5047dd(_0xc42b9d,_0x30f6d8))return[_0xc42b9d,_0x30f6d8];return null;});const _0x489257=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5047dd(_0x461799,_0x182b14){const _0x9d8456=_0x489257['findIndex'](({type:_0x321771,subType:_0x52c52f})=>_0x461799['type']==_0x321771&&_0x461799['subType']==_0x52c52f),_0x4d4945=_0x489257['findIndex'](({type:_0x31b6c7,subType:_0x1b0b42})=>_0x182b14['type']==_0x31b6c7&&_0x182b14['subType']==_0x1b0b42);if(_0x9d8456<0x0||_0x4d4945<0x0)return!0x1;const _0x46e4ad=_0x461799['getFirstRange'](),_0x3be8f2=_0x182b14['getFirstRange']();if((0x0==_0x9d8456||0x1==_0x9d8456)&&0x2==_0x4d4945&&_0x46e4ad['isIntersecting'](_0x3be8f2))return!0x0;if(0x2==_0x9d8456&&0x3==_0x4d4945){const _0x23a89e=_0x50cae9['_findSuggestions'](_0x46e4ad,'insertion')['filter'](({suggestion:_0x3c89b4,meta:_0x574f93})=>_0x574f93['isOwn']&&'convertInlineImageToBlock'==_0x3c89b4['subType']);if(_0x23a89e['length']>0x1&&_0x3be8f2['end']['isEqual'](_0x46e4ad['start']))return!0x0;if(0x1==_0x23a89e['length']&&(_0x46e4ad['start']['isEqual'](_0x3be8f2['end'])||_0x46e4ad['end']['isEqual'](_0x3be8f2['start'])))return!0x0;}if(0x3==_0x9d8456&&0x3==_0x4d4945&&_0x46e4ad['start']['isBefore'](_0x3be8f2['start'])){const _0x3b96da=_0x46e4ad['end']['nodeAfter'],_0x1ed4dc=_0x3be8f2['start']['nodeBefore'];return _0x2cbabc['isBlockImage'](_0x3b96da)&&_0x3b96da===_0x1ed4dc;}return!0x1;}_0x52fba8['model']['document']['registerPostFixer'](()=>{let _0x4e5d17=!0x1;const _0x4d828c=Array['from'](_0x52fba8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c7aca,data:_0xcda04}of _0x4d828c){const {group:_0x143c57,type:_0x514e23,subType:_0x3c9b7b,id:_0x41f764}=_0x50cae9['_splitMarkerName'](_0x2c7aca);if('suggestion'==_0x143c57&&_0x50cae9['hasSuggestion'](_0x41f764)){if('formatBlock'==_0x514e23&&('imageStylePreApply'==_0x3c9b7b||'imageStylePostApply'==_0x3c9b7b)){const _0x33a9c0=_0x50cae9['getSuggestion'](_0x41f764);if(_0xcda04['newRange']){const _0x2bb90f=_0x33a9c0['getFirstRange']()['getContainedElement']();if(_0x2cbabc['isBlockImage'](_0x2bb90f))continue;_0x50cae9['discardSuggestion'](_0x33a9c0),_0x4e5d17=!0x0;}}if('insertion'==_0x514e23&&'imageCaption'==_0x3c9b7b&&!_0xcda04['newRange']){const _0x44cccb=_0x50cae9['getSuggestion'](_0x41f764);_0x44cccb['next']&&_0x44cccb['next']['isInContent']&&(_0x50cae9['discardSuggestion'](_0x44cccb['next']),_0x4e5d17=!0x0);}}}return _0x4e5d17;}),this['_registerLegacyDescription'](_0x25091d);}['_registerLegacyDescription'](_0x2ebf70){const _0xf5703d=this['editor'],_0x5445ff=_0xf5703d['locale'];_0xf5703d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bdfea=>{if('formatBlock'!=_0x1bdfea['type']&&'formatInline'!=_0x1bdfea['type'])return;const {data:_0xa1fd64}=_0x1bdfea;if(!_0xa1fd64||'imageStyle'!=_0xa1fd64['commandName'])return;const _0x3821fb=_0xa1fd64['commandParams'][0x0]['value'];return _0x336348('side'===_0x3821fb?c(_0x5445ff,'FORMAT_SIDE_IMAGE'):_0x2ebf70[_0x3821fb]||_0x3821fb);function _0x336348(_0x1fa2b3){return{'type':'format','content':c(_0x5445ff,'*Format:*\x20%0',_0x1fa2b3)};}});}}class ut extends _0x497417{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x332d23){super(_0x332d23),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x323dee=this['editor'],_0x431540=_0x323dee['commands']['get']('importWord'),_0x1afb06=_0x323dee['commands']['get']('trackChanges');_0x431540&&(_0x431540['on']('execute',(_0x1cd3d9,[,_0x122ab4])=>{this['_trackChangesValueDuringImport']=_0x1afb06['value'],_0x122ab4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x431540,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x431540,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1afb06['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x323dee['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x356061,_0x3e3039){const {suggestions:_0x583313}=_0x3e3039,_0x405e30=this['editor']['commands']['get']('trackChanges'),_0x33c755=_0x405e30['value'];this['_trackChangesValueDuringImport']!==_0x33c755&&(_0x405e30['execute'](),this['_trackChangesExecuted']=!0x0),_0x583313&&_0x583313['forEach'](({id:_0x3b345e,type:_0x14cc00,author:_0x18bef1,created_at:_0x1d3153})=>{const _0x12e05f={'id':_0x3b345e,'type':_0x14cc00,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x18bef1,'createdAt':_0x1d3153?new Date(_0x1d3153):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x12e05f);});}}class ft extends _0x497417{['afterInit'](){const _0x14f382=this['editor'],_0x4c2e06=_0x14f382['plugins']['get']('TrackChangesEditing');if(_0x14f382['plugins']['has']('IndentEditing')&&(_0x4c2e06['enableCommand']('indent'),_0x4c2e06['enableCommand']('outdent')),_0x14f382['plugins']['has']('IndentBlock')){for(const _0x109ccd of['indentBlock','outdentBlock'])_0x4c2e06['enableDefaultAttributesIntegration'](_0x109ccd);}const _0x119542=_0x14f382['locale'];_0x4c2e06['registerBlockAttribute']('blockIndent'),_0x4c2e06['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x119542,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d29af=this['editor'],_0x58335a=_0x4d29af['locale'],_0xd7995=_0x4d29af['plugins']['get']('TrackChangesEditing');_0xd7995['descriptionFactory']['registerDescriptionCallback'](_0x58f90f=>{if('formatBlock'!=_0x58f90f['type'])return;const {data:_0x937792}=_0x58f90f;if(!_0x937792)return;if('indentBlock'!=_0x937792['commandName']&&'outdentBlock'!=_0x937792['commandName'])return;const _0x250879=_0x58f90f['getItems']()[0x0],_0x26d207=_0xd7995['descriptionFactory']['getItemLabel'](_0x250879);return'indentBlock'==_0x937792['commandName']?{'type':'format','content':c(_0x58335a,'*Indent:*\x20%0',_0x26d207)}:'outdentBlock'==_0x937792['commandName']?{'type':'format','content':c(_0x58335a,'*Outdent:*\x20%0',_0x26d207)}:void 0x0;});}}class ht extends _0x497417{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x497417{['afterInit'](){const _0x5a2d9e=this['editor'];if(!_0x5a2d9e['plugins']['has']('LinkEditing'))return;const _0x3ea2b7=_0x5a2d9e['plugins']['get']('TrackChangesEditing'),_0x209bd2=_0x5a2d9e['commands']['get']('link');_0x3ea2b7['enableDefaultAttributesIntegration']('link'),_0x3ea2b7['enableDefaultAttributesIntegration']('unlink'),_0x3ea2b7['registerInlineAttribute']('linkHref');for(const _0x30f39f of _0x209bd2['manualDecorators'])_0x3ea2b7['registerInlineAttribute'](_0x30f39f['id']),_0x3ea2b7['descriptionFactory']['registerAttributeLabel'](_0x30f39f['id'],'link\x20('+_0x30f39f['label']['toLowerCase']()+')');_0x3ea2b7['descriptionFactory']['registerDescriptionCallback'](_0x1aef97=>{if('attribute'!=_0x1aef97['type'])return;const {data:_0x336f6b}=_0x1aef97;if(!_0x336f6b||'linkHref'!=_0x336f6b['key'])return;const _0x5ab8ea=_0x336f6b['newValue'],_0x115c84=_0x5a2d9e['locale'];return{'type':'format','content':null==_0x5ab8ea?c(_0x115c84,'*Remove\x20link*'):c(_0x115c84,'*Set\x20link:*\x20%0','\x22'+_0x5ab8ea+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd2c4=this['editor'],_0x18267c=_0x4cd2c4['locale'];_0x4cd2c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29d2ba=>{if('formatInline'!=_0x29d2ba['type'])return;const {data:_0x418950}=_0x29d2ba;if(_0x418950){if('link'==_0x418950['commandName']){const _0x28b9ff=_0x418950['commandParams'][0x0];return{'type':'format','content':c(_0x18267c,'*Set\x20link:*\x20%0','\x22'+_0x28b9ff+'\x22')};}return'unlink'==_0x418950['commandName']?{'type':'format','content':c(_0x18267c,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x497417{['afterInit'](){const _0x28220a=this['editor'],_0x5dd332=_0x28220a['locale'];if(!_0x28220a['plugins']['has']('LegacyListEditing'))return;const _0x581fff=_0x28220a['plugins']['get']('TrackChangesEditing'),_0x39bdc2=_0x28220a['plugins']['has']('LegacyTodoListEditing');function _0x5f488e(_0x4db299){return()=>{const _0x14f49f=_0x28220a['model']['document']['selection'],_0x5d62b9=_0x28220a['commands']['get'](_0x4db299);if(_0x5d62b9['value'])return void _0x28220a['execute']('paragraph',{});const _0x164f22=_0x4db299['slice'](0x0,-0x4),_0x45f260=function(_0x230749,_0x482852,_0x23ddb7){let _0x2e3e2e=Array['from'](_0x230749)['filter'](_0x37d10a=>function(_0x14da46,_0xc74728){return _0xc74728['checkChild'](_0x14da46['parent'],'listItem')&&!_0xc74728['isObject'](_0x14da46);}(_0x37d10a,_0x23ddb7));_0x2e3e2e=_0x2e3e2e['filter'](_0x1bb902=>!_0x1bb902['is']('element','listItem')||_0x1bb902['getAttribute']('listType')!=_0x482852);const _0x3b98d5=new Set();for(const _0x55ea6a of _0x2e3e2e)_0x55ea6a['is']('element','listItem')?_0x3b98d5['add'](Le(_0x55ea6a)):_0x3b98d5['add'](_0x55ea6a);return Array['from'](_0x3b98d5);}(_0x14f49f['getSelectedBlocks'](),_0x164f22,_0x28220a['model']['schema']);_0x28220a['model']['change'](()=>{for(const _0x3c5edb of _0x45f260)_0x581fff['markBlockFormat'](_0x3c5edb,{'commandName':_0x4db299,'commandParams':[{'forceValue':!_0x5d62b9['value']}],'formatGroupId':'blockName'},Ee(_0x3c5edb));});};}function _0x5337a7(_0x109d26){return()=>{const _0x1a710f=function(_0x417939){let _0x1f48ed=Array['from'](_0x417939);const _0x461f31=_0x1f48ed['findIndex'](_0x1351d=>'listItem'!=_0x1351d['name']);return _0x461f31>-0x1&&(_0x1f48ed=_0x1f48ed['slice'](0x0,_0x461f31)),_0x1f48ed;}(_0x28220a['model']['document']['selection']['getSelectedBlocks']()),_0x41b469=_0x28220a['model']['createRange'](_0x28220a['model']['createPositionAt'](_0x1a710f[0x0],'before'),_0x28220a['model']['createPositionAt'](_0x1a710f[_0x1a710f['length']-0x1],'end'));_0x28220a['model']['change'](()=>{_0x581fff['markBlockFormat'](_0x41b469,{'commandName':_0x109d26,'commandParams':[],'formatGroupId':'listIndent'},function(_0x331514){const _0xe20851=new Set();for(const _0x521f09 of _0x331514){let _0x4d9c03=_0x521f09['nextSibling'];for(;_0x4d9c03&&_0x4d9c03['getAttribute']('listIndent')>_0x521f09['getAttribute']('listIndent');)_0xe20851['add'](_0x4d9c03),_0x4d9c03=_0x4d9c03['nextSibling'];}return Array['from'](_0xe20851);}(_0x1a710f));});};}_0x581fff['enableCommand']('numberedList',_0x5f488e('numberedList')),_0x581fff['enableCommand']('bulletedList',_0x5f488e('bulletedList')),_0x39bdc2&&_0x581fff['enableCommand']('todoList',_0x5f488e('todoList')),_0x581fff['enableCommand']('indentList',_0x5337a7('indentList')),_0x581fff['enableCommand']('outdentList',_0x5337a7('outdentList')),_0x39bdc2&&_0x581fff['enableCommand']('checkTodoList',()=>{const _0x2a96cb=_0x28220a['commands']['get']('checkTodoList'),_0x5c8fc2=Array['from'](_0x2a96cb['_selectedElements']);_0x5c8fc2['filter'](_0x2a3a0a=>_0x2a3a0a['getAttribute']('todoListChecked')!=_0x2a96cb['value']),_0x28220a['model']['change'](()=>{for(const _0x467c5a of _0x5c8fc2)_0x581fff['markBlockFormat'](_0x467c5a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2a96cb['value']}]});});}),_0x581fff['descriptionFactory']['registerElementLabel']('listItem',_0x10c444=>c(_0x5dd332,'ELEMENT_LIST_ITEM',_0x10c444)),_0x581fff['descriptionFactory']['registerDescriptionCallback'](_0x4608cf=>{if('formatBlock'!=_0x4608cf['type']&&'formatInline'!=_0x4608cf['type'])return;const {data:_0x2fe2ee}=_0x4608cf;if(_0x2fe2ee){if('numberedList'==_0x2fe2ee['commandName']||'bulletedList'==_0x2fe2ee['commandName']||'todoList'==_0x2fe2ee['commandName'])switch(_0x2fe2ee['commandName']['replace']('List','')){case'bulleted':return _0x762c6f(c(_0x5dd332,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x762c6f(c(_0x5dd332,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x762c6f(c(_0x5dd332,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2fe2ee['commandName'])return{'type':'format','content':c(_0x5dd332,'*Indent:*\x20%0',c(_0x5dd332,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2fe2ee['commandName'])return{'type':'format','content':c(_0x5dd332,'*Outdent:*\x20%0',c(_0x5dd332,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2fe2ee['commandName'])return _0x2fe2ee['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5dd332,'*Check\x20item*')}:{'type':'format','content':c(_0x5dd332,'*Uncheck\x20item*')};}function _0x762c6f(_0x330474){return{'type':'format','content':c(_0x5dd332,'*Change\x20to:*\x20%0',_0x330474)};}});}}function Le(_0x2e2c86){const _0x524576=_0x2e2c86['getAttribute']('listIndent');if(0x0==_0x524576)return _0x2e2c86;let _0x143f32=_0x2e2c86;for(;_0x2e2c86['previousSibling']&&_0x2e2c86['previousSibling']['is']('element','listItem');){const _0x17ebd9=_0x2e2c86['previousSibling']['getAttribute']('listIndent');if(_0x17ebd9==_0x524576)_0x143f32=_0x2e2c86['previousSibling'];else{if(_0x17ebd9<_0x524576)break;}_0x2e2c86=_0x2e2c86['previousSibling'];}return _0x143f32;}function Ee(_0x4a5ffb){const _0x324150=[];if(_0x4a5ffb['is']('element','listItem')&&_0x4a5ffb['getAttribute']('listIndent')>0x0){let _0x671fb0=_0x4a5ffb['nextSibling'];for(;_0x671fb0&&'listItem'==_0x671fb0['name']&&_0x671fb0['getAttribute']('listIndent')==_0x4a5ffb['getAttribute']('listIndent');)_0x324150['push'](_0x671fb0),_0x671fb0=_0x671fb0['nextSibling'];}return _0x324150;}class Q extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x56b575=this['editor']['config']['get']('list.properties'),_0x14960f=this['editor']['plugins']['get']('TrackChangesEditing');_0x56b575['styles']&&_0x14960f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x56b575['reversed']&&_0x14960f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x56b575['startIndex']&&_0x14960f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x14960f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x91457e,_0x3b226c={}){const _0x462fcf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bec99=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x462fcf['markMultiRangeBlockFormat'](_0x2bec99,{'commandName':'listStyle','commandParams':[{'type':_0x3b226c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x43cb39,_0x24795e={}){const _0xa53abf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8f2e8=this['_getSuggestionBlocks'](_0x1fb64c=>_0x1fb64c['is']('element','listItem')&&'numbered'===_0x1fb64c['getAttribute']('listType'));if(_0x8f2e8['length']<0x1)return;const _0x226a74=_0x8f2e8['map'](_0x22d1ec=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22d1ec,'before'),this['editor']['model']['createPositionAt'](_0x22d1ec,0x0)));this['editor']['model']['change'](()=>{_0xa53abf['markMultiRangeBlockFormat'](_0x226a74,{'commandName':'listReversed','commandParams':[{'reversed':_0x24795e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x28da4c,_0x25708c={}){const _0x334166=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41641e=this['_getSuggestionBlocks'](_0x234219=>_0x234219['is']('element','listItem')&&'numbered'===_0x234219['getAttribute']('listType'));if(_0x41641e['length']<0x1)return;const _0x2eb365=_0x41641e['map'](_0x3bb46a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bb46a,'before'),this['editor']['model']['createPositionAt'](_0x3bb46a,0x0)));this['editor']['model']['change'](()=>{_0x334166['markMultiRangeBlockFormat'](_0x2eb365,{'commandName':'listStart','commandParams':[{'startIndex':_0x25708c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xd2140b){if('formatBlock'!=_0xd2140b['type']&&'formatInline'!=_0xd2140b['type'])return;const _0x2716be=this['editor']['locale'],{data:_0x295872}=_0xd2140b;if(!_0x295872)return;let _0x13c0df,_0x52fb77;switch(_0x295872['commandName']){case'listStyle':_0x13c0df='*Change\x20to:*\x20%0',_0x52fb77={'type':'format','content':c(_0x2716be,_0x13c0df,c(_0x2716be,this['_getTranslationKeyForListStyle'](_0x295872['commandParams'][0x0]['type'])))};break;case'listReversed':_0x13c0df=_0x295872['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x52fb77={'type':'format','content':c(_0x2716be,_0x13c0df)};break;case'listStart':_0x13c0df='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x52fb77={'type':'format','content':c(_0x2716be,_0x13c0df,_0x295872['commandParams'][0x0]['startIndex'])};}return _0x52fb77;}['_getSuggestionBlocksForListStyle'](){const _0x1c2c20=this['editor']['plugins']['get']('LegacyListUtils');let _0x3e4d90=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3e4d90[0x0]?.['is']('element','listItem')&&_0x3e4d90['unshift'](..._0x1c2c20['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3e4d90[_0x3e4d90['length']-0x1]?.['is']('element','listItem')&&_0x3e4d90['push'](..._0x1c2c20['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3e4d90=[...new Set(_0x3e4d90)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3e4d90=_0x3e4d90['filter'](_0x5d8e6d=>_0x5d8e6d['is']('element','listItem'))),_0x3e4d90;}['_getSuggestionBlocks'](_0x17cef4){const _0x5645a4=this['editor']['plugins']['get']('LegacyListUtils');let _0x304e40=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x17cef4)['map'](_0x148792=>{const _0x373563=this['editor']['model']['createPositionAt'](_0x148792,0x0);return[..._0x5645a4['getSiblingNodes'](_0x373563,'backward'),..._0x5645a4['getSiblingNodes'](_0x373563,'forward')];})['flat']();return _0x304e40=[...new Set(_0x304e40)],_0x304e40;}['_getTranslationKeyForListStyle'](_0x2e5625){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2e5625)||'default')['toUpperCase']()+'_LIST_'+_0x2e5625['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x497417{['afterInit'](){const _0x540935=this['editor'];if(!_0x540935['plugins']['has']('MediaEmbedEditing'))return;const _0x532102=_0x540935['plugins']['get']('TrackChangesEditing'),_0x18649e=_0x540935['locale'];_0x532102['enableCommand']('mediaEmbed'),_0x532102['descriptionFactory']['registerElementLabel']('media',_0x3c563d=>c(_0x18649e,'ELEMENT_MEDIA',_0x3c563d)),_0x540935['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4bca41,{writer:_0x1b84d3,options:_0x43d1b9})=>{if(_0x43d1b9['showSuggestionHighlights'])return _0x1b84d3['createEmptyElement']('div');},'converterPriority':'high'}),_0x540935['data']['downcastDispatcher']['on']('attribute:url:media',(_0x272a10,_0x36f2dd,_0xf9ec3a)=>{_0xf9ec3a['options']['showSuggestionHighlights']&&_0x272a10['stop']();},{'priority':'high'});}}class pt extends _0x497417{['afterInit'](){const _0x93ea4c=this['editor'];_0x93ea4c['plugins']['has']('MentionEditing')&&_0x93ea4c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x497417{['afterInit'](){const _0x39b4a7=this['editor'];if(!_0x39b4a7['plugins']['has']('MergeFieldsEditing'))return;const _0xf7417d=_0x39b4a7['plugins']['get']('TrackChangesEditing'),_0x1a1bf9=_0x39b4a7['locale'];_0xf7417d['enableCommand']('insertMergeField'),_0xf7417d['enableCommand']('insertMergeFieldBlock'),_0xf7417d['enableCommand']('insertMergeFieldImage'),_0xf7417d['descriptionFactory']['registerElementLabel']('mergeField',_0x44ea0e=>c(_0x1a1bf9,'ELEMENT_MERGE_FIELD',_0x44ea0e)),_0xf7417d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4ef31b=>c(_0x1a1bf9,'ELEMENT_MERGE_FIELD',_0x4ef31b)),_0xf7417d['descriptionFactory']['registerDescriptionCallback'](_0x2202ab=>{if('insertion'!=_0x2202ab['type']&&'deletion'!=_0x2202ab['type'])return;const _0x6a03c2=_0x2202ab['getContainedElement']();if(null==_0x6a03c2)return;const _0x15b306=_0x39b4a7['plugins']['get']('MergeFieldsEditing');let _0x510c28;switch(_0x15b306['getMergeFieldType'](_0x6a03c2)){case null:return;case'image':{const _0xe8cbbc=_0x15b306['unwrapAffixes'](_0x6a03c2['getAttribute']('src'));_0x510c28=_0x15b306['getLabel'](_0xe8cbbc)||_0xe8cbbc;break;}default:{const _0x54b6b6=_0x6a03c2['getAttribute']('id');_0x510c28=_0x15b306['getLabel'](_0x54b6b6)||_0x54b6b6;break;}}return'insertion'==_0x2202ab['type']?{'type':'insertion','content':c(_0x1a1bf9,'*Insert:*\x20%0','\x22'+_0x510c28+'\x22\x20'+c(_0x1a1bf9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1a1bf9,'*Remove:*\x20%0','\x22'+_0x510c28+'\x22\x20'+c(_0x1a1bf9,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x497417{['afterInit'](){const _0x292a3d=this['editor'],_0x316493=_0x292a3d['plugins']['get']('TrackChangesEditing');_0x292a3d['plugins']['has']('MultiLevelList')&&(_0x316493['enableDefaultAttributesIntegration']('multiLevelList'),_0x316493['registerBlockAttribute']('listMarkerStyle'),_0x316493['descriptionFactory']['registerDescriptionCallback'](_0x17b035=>this['handleDescriptions'](_0x17b035)));}['handleDescriptions'](_0x55d774){const _0xd73d96=this['editor']['locale'],{data:_0x8d7b28}=_0x55d774,_0x24c426={'type':'format','content':''};if(_0x8d7b28&&'listMarkerStyle'==_0x8d7b28['key']){if(!_0x8d7b28['oldValue'])return{'type':'format','content':c(_0xd73d96,'*Set\x20format:*\x20%0',c(_0xd73d96,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x8d7b28['newValue']+')'};if(!_0x8d7b28['newValue']){let _0x2f27b2=_0x55d774['head'];for(;_0x2f27b2;){if(_0x2f27b2['data']&&'listType'==_0x2f27b2['data']['key']&&_0x2f27b2['data']['newValue'])return _0x24c426;_0x2f27b2=_0x2f27b2['next'];}return{'type':'format','content':c(_0xd73d96,'*Remove\x20format:*\x20%0',c(_0xd73d96,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x8d7b28['oldValue']+')'};}}}}class bt extends _0x497417{['afterInit'](){const _0x1699d4=this['editor'];if(!_0x1699d4['plugins']['has']('PageBreakEditing'))return;_0x1699d4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1417d3=_0x1699d4['plugins']['get']('TrackChangesEditing'),_0x9411a6=_0x1699d4['locale'];_0x1417d3['descriptionFactory']['registerElementLabel']('pageBreak',_0x1355c8=>c(_0x9411a6,'ELEMENT_PAGE_BREAK',_0x1355c8));}}class yt extends _0x497417{['afterInit'](){const _0x35508e=this['editor'];if(!_0x35508e['plugins']['has']('Paragraph'))return;const _0x438045=_0x35508e['locale'],_0x3405c2=_0x35508e['plugins']['get']('TrackChangesEditing');_0x3405c2['descriptionFactory']['registerElementLabel']('paragraph',_0x1bd9eb=>c(_0x438045,'ELEMENT_PARAGRAPH',_0x1bd9eb)),_0x3405c2['enableDefaultAttributesIntegration']('paragraph'),_0x3405c2['enableCommand']('insertParagraph'),_0x35508e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x35508e),{'priority':'highest'}),_0x35508e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xb5426b,_0x5070db,_0x197155)=>{_0x197155['options']['showSuggestionHighlights']&&nr(_0x35508e,{'showActiveMarker':!0x1})(_0xb5426b,_0x5070db,_0x197155);},{'priority':'highest'});const _0x488b45=_0x3405c2['descriptionFactory'];_0x488b45['registerDescriptionCallback'](_0x3f3152=>{if('insertion'!==_0x3f3152['type'])return;const {start:_0x2994df,end:_0x3ce17d}=_0x3f3152['getFirstRange']();if(!_0x2994df['isTouching'](_0x3ce17d)||!_0x2994df['nodeAfter'])return;const _0x4787e7=_0x35508e['model']['schema'],_0x500a2e=_0x2994df['nodeAfter'];return _0x4787e7['isBlock'](_0x500a2e)&&!_0x4787e7['isLimit'](_0x500a2e)&&_0x4787e7['checkChild'](_0x500a2e,'$text')?{'type':'insertion','content':c(_0x438045,'*Insert:*\x20%0',_0x488b45['getItemLabel'](_0x500a2e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa50824=this['editor'],_0x3026f2=_0xa50824['locale'];_0xa50824['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37ac25=>{if('formatBlock'!=_0x37ac25['type'])return;const {data:_0x579744}=_0x37ac25;return _0x579744&&'paragraph'==_0x579744['commandName']?{'type':'format','content':c(_0x3026f2,'*Change\x20to:*\x20%0',c(_0x3026f2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3b22ed,{showActiveMarker:_0x40e101=!0x0}={}){return(_0x29f70b,_0x335fda,_0x5b3c99)=>{const _0x539128=_0x3b22ed['plugins']['get']('TrackChangesEditing'),_0x1ecac0=_0x335fda['markerRange']['start'],_0x575a41=_0x335fda['markerRange']['end'],_0x2e57e9=_0x3b22ed['model']['schema'];if(!_0x1ecac0['isTouching'](_0x575a41)||!_0x1ecac0['nodeAfter'])return;const _0xeb324d=_0x1ecac0['nodeAfter'];if(_0x2e57e9['isBlock'](_0xeb324d)&&!_0x2e57e9['isLimit'](_0xeb324d)&&_0x2e57e9['checkChild'](_0xeb324d,'$text')){if(!_0x5b3c99['consumable']['consume'](_0x335fda['markerRange'],_0x29f70b['name']))return;const {authorId:_0x1183df}=_0x539128['_splitMarkerName'](_0x335fda['markerName']),_0x3417bd=_0x5b3c99['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1183df}),_0x18abec=_0x5b3c99['mapper']['toViewPosition'](_0x575a41);_0x40e101&&_0x539128['activeMarkers']['includes'](_0x335fda['markerName'])&&_0x5b3c99['writer']['addClass']('ck-suggestion-marker--active',_0x3417bd),_0x5b3c99['writer']['insert'](_0x18abec,_0x3417bd),_0x5b3c99['mapper']['bindElementToMarker'](_0x3417bd,_0x335fda['markerName']);}};}class jt extends _0x497417{['afterInit'](){const _0x95d584=this['editor'];_0x95d584['commands']['get']('replaceSource')&&_0x95d584['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x497417{['afterInit'](){const _0xb84cd9=this['editor'];if(!_0xb84cd9['plugins']['has']('RemoveFormatEditing'))return;_0xb84cd9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f432e=this['editor'];_0x4f432e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x195e26=>{if('formatBlock'!=_0x195e26['type']&&'formatInline'!=_0x195e26['type'])return;const {data:_0x55d8d2}=_0x195e26;return _0x55d8d2&&'removeFormat'==_0x55d8d2['commandName']?{'type':'format','content':c(_0x4f432e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x497417{['afterInit'](){const _0x1c71f4=this['editor'];if(!_0x1c71f4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x449c42=_0x1c71f4['plugins']['get']('TrackChangesEditing');_0x449c42['enableCommand']('goToPreviousRestrictedEditingException'),_0x449c42['enableCommand']('goToNextRestrictedEditingException');const _0x5be652=_0x1c71f4['plugins']['get']('RestrictedEditingModeEditing');_0x5be652['enableCommand']('trackChanges'),_0x5be652['enableCommand']('acceptSuggestion'),_0x5be652['enableCommand']('discardSuggestion'),_0x5be652['enableCommand']('acceptAllSuggestions'),_0x5be652['enableCommand']('discardAllSuggestions'),_0x5be652['enableCommand']('acceptSelectedSuggestions'),_0x5be652['enableCommand']('discardSelectedSuggestions');}}class It extends _0x497417{static get['requires'](){return[_0x386113];}['init'](){const _0x302e52=this['editor'],_0x24dbd8=_0x302e52['plugins']['get']('TrackChangesEditing');_0x24dbd8['enableCommand']('shiftEnter'),_0x302e52['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x302e52),{'priority':'high'}),_0x302e52['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x302e52),{'priority':'high'}),_0x302e52['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x37ad9f,_0x41bfbd,_0x3d943a)=>{_0x3d943a['options']['showSuggestionHighlights']&&je(_0x302e52,{'showActiveMarker':!0x1})(_0x37ad9f,_0x41bfbd,_0x3d943a);}),_0x24dbd8['descriptionFactory']['registerElementLabel']('softBreak',_0x5bd8fe=>c(_0x302e52['locale'],'ELEMENT_LINE_BREAK',_0x5bd8fe));}}function je(_0x53250e,{showActiveMarker:_0xecbf9a=!0x0}={}){return(_0xdf344,_0x3e9b48,_0x2e5416)=>{const _0x1de849=_0x53250e['plugins']['get']('TrackChangesEditing');if(!_0x2e5416['consumable']['test'](_0x3e9b48['markerRange'],_0xdf344['name']))return;const _0x1b20b1=_0x53250e['model'];for(const _0x47e400 of _0x3e9b48['markerRange']['getItems']()){if(!_0x47e400['is']('element','softBreak'))continue;const _0x192731='deletion'==_0x3e9b48['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x30edfd}=_0x1de849['_splitMarkerName'](_0x3e9b48['markerName']),_0x100cb2=_0x2e5416['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x192731,'data-author-id':_0x30edfd}),_0x475b22=_0x2e5416['mapper']['toViewPosition'](_0x1b20b1['createPositionBefore'](_0x47e400));_0xecbf9a&&_0x1de849['activeMarkers']['includes'](_0x3e9b48['markerName'])&&_0x2e5416['writer']['addClass']('ck-suggestion-marker--active',_0x100cb2),_0x2e5416['writer']['insert'](_0x475b22,_0x100cb2),_0x2e5416['mapper']['bindElementToMarker'](_0x100cb2,_0x3e9b48['markerName']);}};}class _t extends _0x497417{['afterInit'](){const _0x15aef6=this['editor'],_0x5bb3af=_0x15aef6['model'],_0x3c2bd0=_0x15aef6['locale'];if(!_0x15aef6['plugins']['has']('StandardEditingModeEditing'))return;const _0x424318=_0x15aef6['plugins']['get']('TrackChangesEditing'),_0x520021='restrictedEditingException',_0x348141=_0x15aef6['commands']['get'](_0x520021);_0x424318['enableCommand'](_0x520021,(_0x27c7d5,_0x2708e4={})=>{const _0x449144=_0x5bb3af['document']['selection'];if(_0x449144['isCollapsed'])return void _0x27c7d5(_0x2708e4);const _0x303c2a=void 0x0!==_0x2708e4['forceValue']?_0x2708e4['forceValue']:!_0x348141['value'];_0x5bb3af['change'](()=>{const _0x4bfdc8=Array['from'](_0x449144['getRanges']());for(const _0x56b606 of _0x4bfdc8){const _0x2ee0ac=_0x303c2a?[_0x56b606]:io(_0x520021,_0x56b606,_0x5bb3af);for(const _0x33f34d of _0x2ee0ac)_0x424318['markInlineFormat'](_0x33f34d,{'commandName':_0x520021,'commandParams':[{'forceValue':_0x303c2a}]});}});}),_0x424318['descriptionFactory']['registerDescriptionCallback'](_0x22ca31=>{if('formatBlock'!=_0x22ca31['type']&&'formatInline'!=_0x22ca31['type'])return;const {data:_0x499822}=_0x22ca31;return _0x499822&&_0x499822['commandName']==_0x520021?_0x499822['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3c2bd0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3c2bd0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x497417{['afterInit'](){const _0x535c91=this['editor'];if(!_0x535c91['plugins']['has']('Style')||!_0x535c91['plugins']['has']('DataSchema'))return;const _0x48b89d=_0x535c91['plugins']['get']('TrackChangesEditing'),_0x5e8ee5=_0x535c91['locale'],_0x393866=_0x535c91['config']['get']('style')||{},_0x25ab02=_0x535c91['plugins']['get']('GeneralHtmlSupport'),_0x492e4a=_0x535c91['plugins']['get']('StyleUtils')['normalizeConfig'](_0x535c91['plugins']['get']('DataSchema'),_0x393866['definitions']);_0x48b89d['enableDefaultAttributesIntegration']('style');const _0x27012a=new Set();for(const _0x27b557 of _0x492e4a['block']){const _0x59bf34=_0x25ab02['getGhsAttributeNameForElement'](_0x27b557['element']);_0x27012a['add'](_0x59bf34);}const _0x564812=new Set();for(const _0x86d43e of _0x492e4a['inline']){const _0xf914b6=_0x25ab02['getGhsAttributeNameForElement'](_0x86d43e['element']);_0x564812['add'](_0xf914b6);for(const _0x188521 of _0x86d43e['ghsAttributes'])_0x564812['add'](_0x188521);}for(const _0x1f7557 of _0x27012a)_0x48b89d['registerBlockAttribute'](_0x1f7557),_0x48b89d['descriptionFactory']['registerAttributeLabel'](_0x1f7557,c(_0x5e8ee5,'FORMAT_STYLE'));for(const _0x2425db of _0x564812)_0x48b89d['registerInlineAttribute'](_0x2425db),_0x48b89d['descriptionFactory']['registerAttributeLabel'](_0x2425db,c(_0x5e8ee5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c1b73=this['editor'],_0x5bc995=_0x1c1b73['locale'];_0x1c1b73['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5768dc=>{if('formatBlock'!=_0x5768dc['type']&&'formatInline'!=_0x5768dc['type'])return;const {data:_0x402b2c}=_0x5768dc;return _0x402b2c&&'style'===_0x402b2c['commandName']?_0x402b2c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5bc995,'*Set\x20format:*\x20%0',_0x402b2c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5bc995,'*Remove\x20format:*\x20%0',_0x402b2c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x497417{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x295015){super(_0x295015),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x10d90e=this['editor'],_0x4b6214=_0x10d90e['model']['document']['selection'];if(!_0x10d90e['plugins']['has']('TableEditing'))return;const _0x2fa482=_0x10d90e['locale'],_0x22b2c7=_0x10d90e['plugins']['get']('TrackChangesEditing'),_0x17c520=_0x10d90e['plugins']['get']('TableUtils');_0x22b2c7['descriptionFactory']['registerElementLabel']('table',_0x47854d=>c(_0x2fa482,'ELEMENT_TABLE',_0x47854d)),this['_setupColumnsRowsFixing'](),_0x22b2c7['enableCommand']('insertTable'),_0x22b2c7['enableCommand']('selectTableRow'),_0x22b2c7['enableCommand']('selectTableColumn');for(const _0x17ecba of['insertTableRowAbove','insertTableRowBelow']){const _0x8997a7=_0x10d90e['commands']['get'](_0x17ecba);_0x22b2c7['enableCommand'](_0x17ecba,_0x397074=>{_0x10d90e['model']['change'](_0x37d1af=>{_0x397074();const _0x133378='above'===_0x8997a7['order'],_0x583f8b=_0x17c520['getSelectionAffectedTableCells'](_0x4b6214),_0x6a5293=_0x17c520['getRowIndexes'](_0x583f8b),_0x4d1829=_0x133378?_0x6a5293['first']-0x1:_0x6a5293['last']+0x1,_0x350cd2=_0x583f8b[0x0]['findAncestor']('table'),_0xd2c860=_0x17c520['createTableWalker'](_0x350cd2,{'startRow':_0x4d1829,'endRow':_0x4d1829}),_0x7215bf=Array['from'](_0xd2c860)['map'](_0x44b8fc=>_0x37d1af['createRangeOn'](_0x44b8fc['cell']));_0x22b2c7['markMultiRangeInsertion'](_0x7215bf,'tableRow');});});}for(const _0x4623a3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x267455=_0x10d90e['commands']['get'](_0x4623a3);_0x22b2c7['enableCommand'](_0x4623a3,_0x13c627=>{_0x10d90e['model']['change'](_0x3e7534=>{_0x13c627();const _0x413d6e='left'===_0x267455['order'],_0x482d00=_0x17c520['getSelectionAffectedTableCells'](_0x4b6214),_0x42128b=_0x17c520['getColumnIndexes'](_0x482d00),_0x11e841=_0x413d6e?_0x42128b['first']-0x1:_0x42128b['last']+0x1,_0x5b54cc=_0x482d00[0x0]['findAncestor']('table'),_0x3fd67d=_0x17c520['createTableWalker'](_0x5b54cc,{'startRow':0x0,'column':_0x11e841,'includeAllSlots':!0x1}),_0xf392ab=Array['from'](_0x3fd67d)['map'](_0xd608d1=>_0x3e7534['createRangeOn'](_0xd608d1['cell']));_0x22b2c7['markMultiRangeInsertion'](_0xf392ab,'tableColumn');});});}for(const _0x1f2a11 of['removeTableRow','removeTableColumn']){const _0x92f051=_0x1f2a11['substr'](0xb),_0x48c6ec=_0x92f051['toLowerCase'](),_0x11f8fb=_0x48c6ec['substr'](0x0,0x3)+'span',_0x19d7de='table'+_0x92f051,_0xea9475='min'+_0x92f051,_0x4d2702='max'+_0x92f051;_0x22b2c7['enableCommand'](_0x1f2a11,()=>{_0x10d90e['model']['change'](_0x244d04=>{const _0x3f202e=_0x17c520['getSelectionAffectedTableCells'](_0x4b6214),_0x3ab090=_0x3f202e[0x0]['findAncestor']('table');let _0x1565f1;if('removeTableRow'==_0x1f2a11){const _0x1bd924=_0x17c520['getRowIndexes'](_0x3f202e);_0x1565f1={'startRow':_0x1bd924['first'],'endRow':_0x1bd924['last'],'includeAllSlots':!0x0};}else{const _0x36ea14=_0x17c520['getColumnIndexes'](_0x3f202e);_0x1565f1={'startColumn':_0x36ea14['first'],'endColumn':_0x36ea14['last'],'includeAllSlots':!0x0};}const _0x378ec8=_0x17c520['createTableWalker'](_0x3ab090,_0x1565f1),_0x2bac34=Array['from'](_0x378ec8)['map'](({cell:_0x26a643})=>_0x26a643),_0x5c0d52=Ne(_0x2bac34['filter'](_0x181113=>_0x181113['hasAttribute'](_0x11f8fb))),_0x5c71d8=Ne(_0x2bac34['filter'](_0x5518c3=>!_0x5518c3['hasAttribute'](_0x11f8fb)))['map'](_0x2d2e9b=>_0x244d04['createRangeOn'](_0x2d2e9b)),_0xe9f557=_0x22b2c7['markMultiRangeDeletion'](_0x5c71d8,_0x19d7de);if(_0xe9f557&&('tableRow'==_0xe9f557['subType']||'tableColumn'==_0xe9f557['subType'])){const _0xcead87=this['_getSuggestionCoords'](_0xe9f557);for(const _0x4fcfb8 of _0x5c0d52){const _0x557547=_0x244d04['createRangeOn'](_0x4fcfb8),_0x21292b=_0x17c520['getCellLocation'](_0x4fcfb8),_0x3e10bc=_0x4fcfb8['getAttribute'](_0x11f8fb)-0x1,_0x58501c=_0xcead87[_0xea9475],_0x20d28b=_0xcead87[_0x4d2702];_0x58501c<=_0x21292b[_0x48c6ec]&&_0x21292b[_0x48c6ec]+_0x3e10bc<=_0x20d28b&&_0xe9f557['addRange'](_0x557547);}}});});}function _0x1ace20(_0x37fa2a){const _0x2831ac=Array['from'](_0x4b6214['getRanges']())['map'](_0x4a07c5=>_0x4a3ae4['fromRange'](_0x4a07c5));_0x10d90e['model']['change'](_0x140090=>{const _0x116f37=_0x140090['batch'];_0x37fa2a=_0x37fa2a['filter'](_0x1a556c=>'$graveyard'!=_0x1a556c['root']['rootName']),_0x140090['setSelection'](_0x37fa2a),_0x10d90e['commands']['get']('removeTableRow')['refresh'](),_0x10d90e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x10d90e['model']['enqueueChange'](()=>{_0x10d90e['model']['enqueueChange'](_0x116f37,_0x551208=>{const _0x696c0b=_0x2831ac['filter'](_0x1ff20f=>'$graveyard'!=_0x1ff20f['root']['rootName']);_0x696c0b['length']>0x0&&_0x551208['setSelection'](_0x696c0b);for(const _0x17fe44 of _0x2831ac)_0x17fe44['detach']();});});});}function _0x45518a(_0x2ff8e5){_0x10d90e['model']['change'](_0x3c8a72=>{const _0x386f95=Array['from'](_0x4b6214['getRanges']())['map'](_0x1658d1=>_0x4a3ae4['fromRange'](_0x1658d1)),_0x2c7798=[];for(const _0x5eda56 of _0x2ff8e5)for(const _0x5b211a of _0x5eda56['getItems']({'shallow':!0x0}))_0x2c7798['push'](_0x5b211a);for(const _0x58cbf7 of _0x2c7798)'$graveyard'!=_0x58cbf7['root']['rootName']&&(_0x3c8a72['setSelection'](_0x3c8a72['createPositionAt'](_0x58cbf7,0x0)),_0x10d90e['commands']['get']('removeTableColumn')['refresh'](),_0x10d90e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x49d834=_0x386f95['filter'](_0x4e4dcd=>'$graveyard'!=_0x4e4dcd['root']['rootName']);_0x49d834['length']>0x0&&_0x3c8a72['setSelection'](_0x49d834);for(const _0x1e9bae of _0x386f95)_0x1e9bae['detach']();});}function _0x58c618(_0x5361f0,_0x5bc632){return _0x5bc632['every'](_0x402bd0=>_0x5361f0['some'](_0x8f89e8=>_0x8f89e8['end']['isEqual'](_0x402bd0['start'])||_0x402bd0['end']['isEqual'](_0x8f89e8['start'])));}function _0x2d01c8(_0x2276af,_0x30c4b0){return!_0x2276af['some'](_0x496776=>_0x30c4b0['some'](_0x3edd22=>_0x496776['isIntersecting'](_0x3edd22)))&&_0x2276af['some'](_0x13fcd2=>_0x30c4b0['some'](_0x5351bf=>_0x13fcd2['end']['isTouching'](_0x5351bf['start'])));}_0x10d90e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b3045,_0x3f1c36,_0xb6f349)=>{if(!_0xb6f349['options']['showSuggestionHighlights'])return;const _0x13e86c=_0x3f1c36['item'];if(!_0x13e86c)return;const _0x2b3497=_0xb6f349['mapper']['toViewElement'](_0x13e86c);function _0x1c6b63(_0x467728){return Array['isArray'](_0x467728)?_0x467728:[_0x467728];}_0x2b3497&&'tableCell'===_0x13e86c['name']&&_0x4cb2df(_0x2b3497,_0xb6f349['writer'],(_0x3d1707,_0x37e254,_0x1d7893)=>_0x1d7893['addClass'](_0x1c6b63(_0x37e254['classes']),_0x3d1707),(_0x3680fd,_0xf465ea,_0x296559)=>_0x296559['removeClass'](_0x1c6b63(_0xf465ea['classes']),_0x3680fd));},{'priority':'highest'}),_0x22b2c7['descriptionFactory']['registerDescriptionCallback'](_0x423e2a=>{if('insertion'!=_0x423e2a['type']&&'deletion'!=_0x423e2a['type'])return;const _0x46b62a=_0x423e2a['getContainedElement']();if(null!=_0x46b62a&&_0x46b62a['is']('element','table')){if('insertion'==_0x423e2a['type']){const _0x3987e6=_0x423e2a['getItems']()['filter'](_0xae0fd8=>_0xae0fd8['is']('$textProxy'))['map'](_0x331f29=>_0x331f29['data']);if(_0x3987e6['length'])return{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3987e6['join']('\x20')+'\x22'))};}if('deletion'==_0x423e2a['type']){const _0x26c813=_0x423e2a['getItems']()['filter'](_0x3cb6b6=>_0x3cb6b6['is']('$textProxy'))['map'](_0x21263d=>_0x21263d['data']);if(_0x26c813['length'])return{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x26c813['join']('\x20')+'\x22'))};}}}),_0x22b2c7['descriptionFactory']['registerDescriptionCallback'](_0x5309f6=>{if('tableRow'==_0x5309f6['subType']){const _0x3d5c4a=_0x5309f6['getItems']()['filter'](_0x30571f=>_0x30571f['is']('$textProxy'))['map'](_0x42db3f=>_0x42db3f['data']),_0x304366=this['_getSuggestionCoords'](_0x5309f6),_0x542d19=_0x304366['maxRow']-_0x304366['minRow']+0x1;if('insertion'==_0x5309f6['type'])return _0x3d5c4a['length']?{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x542d19,'\x22'+_0x3d5c4a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_ROW',_0x542d19))};if('deletion'==_0x5309f6['type'])return _0x3d5c4a['length']?{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x542d19,'\x22'+_0x3d5c4a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_ROW',_0x542d19))};}if('tableColumn'==_0x5309f6['subType']){const _0x3f25c1=_0x5309f6['getItems']()['filter'](_0x44a9a4=>_0x44a9a4['is']('$textProxy'))['map'](_0x22a850=>_0x22a850['data']),_0x4a2613=this['_getSuggestionCoords'](_0x5309f6),_0x399caa=_0x4a2613['maxColumn']-_0x4a2613['minColumn']+0x1;if('insertion'==_0x5309f6['type'])return _0x3f25c1['length']?{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x399caa,'\x22'+_0x3f25c1['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_COLUMN',_0x399caa))};if('deletion'==_0x5309f6['type'])return _0x3f25c1['length']?{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x399caa,'\x22'+_0x3f25c1['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_COLUMN',_0x399caa))};}}),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1ace20),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1ace20),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x45518a),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x45518a),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58c618),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58c618),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2d01c8),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2d01c8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3d0b0a=this['editor'],_0x13d5e6=_0x3d0b0a['model']['document']['selection'];return(_0x26d150,_0x38c609)=>{_0x3d0b0a['model']['change'](_0x19d7d2=>{const {commandName:_0x5ef0ab,commandParams:_0x45310a}=_0x38c609;let _0x5461ad=_0x26d150[0x0]['end']['nodeBefore'];_0x45310a&&_0x45310a[0x0]&&!0x1===_0x45310a[0x0]['forceValue']&&(_0x5461ad=_0x26d150[0x0]['start']['nodeAfter']);const _0x576c61=_0x19d7d2['createRangeIn'](_0x5461ad);if('$graveyard'==_0x576c61['root']['rootName'])return;const _0x315b70=Array['from'](_0x13d5e6['getRanges']())['map'](_0x9cc85a=>_0x4a3ae4['fromRange'](_0x9cc85a));_0x19d7d2['setSelection'](_0x576c61),_0x3d0b0a['commands']['get'](_0x5ef0ab)['refresh'](),_0x45310a['push']({'forceDefaultExecution':!0x0}),_0x3d0b0a['execute'](_0x5ef0ab,..._0x45310a);const _0x497be9=_0x315b70['filter'](_0x3160cd=>'$graveyard'!=_0x3160cd['root']['rootName']);_0x497be9['length']>0x0&&_0x19d7d2['setSelection'](_0x497be9);for(const _0x2a06a9 of _0x315b70)_0x2a06a9['detach']();});};}['_getCoordsForCells'](_0x3792a4){const _0x27a45a=this['editor']['plugins']['get']('TableUtils');let _0x5dc8fc=Number['MAX_SAFE_INTEGER'],_0x9f5636=Number['MIN_SAFE_INTEGER'],_0x49576f=Number['MAX_SAFE_INTEGER'],_0x23cc87=Number['MIN_SAFE_INTEGER'];for(const _0x4e6128 of _0x3792a4){if('$graveyard'==_0x4e6128['root']['rootName'])continue;const {row:_0x57b480,column:_0x500c7b}=_0x27a45a['getCellLocation'](_0x4e6128),_0x361cc9=_0x4e6128['hasAttribute']('rowspan')?_0x4e6128['getAttribute']('rowspan')-0x1:0x0,_0xa47726=_0x4e6128['hasAttribute']('colspan')?_0x4e6128['getAttribute']('colspan')-0x1:0x0;_0x5dc8fc=_0x57b480<_0x5dc8fc?_0x57b480:_0x5dc8fc,_0x9f5636=_0x57b480+_0x361cc9>_0x9f5636?_0x57b480+_0x361cc9:_0x9f5636,_0x49576f=_0x500c7b<_0x49576f?_0x500c7b:_0x49576f,_0x23cc87=_0x500c7b+_0xa47726>_0x23cc87?_0x500c7b+_0xa47726:_0x23cc87;}return{'minRow':_0x5dc8fc,'maxRow':_0x9f5636,'minColumn':_0x49576f,'maxColumn':_0x23cc87};}['_setupColumnsRowsFixing'](){const _0x199fe8=this['editor'],_0x1ecf4a=_0x199fe8['plugins']['get']('TrackChangesEditing'),_0x4bb148=_0x199fe8['plugins']['get']('TableUtils');_0x199fe8['model']['document']['on']('change:data',()=>{const _0x41850a=Array['from'](_0x199fe8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4bba8e,data:_0x134d92}of _0x41850a){const {group:_0x32a967,id:_0x3f42e7,subType:_0x3d477b}=_0x1ecf4a['_splitMarkerName'](_0x4bba8e);if('suggestion'!=_0x32a967)continue;if(null!=_0x134d92['oldRange'])continue;const _0xefbc7a=_0x1ecf4a['getSuggestion'](_0x3f42e7);this['_tablePostFixingSubtypes']['includes'](_0x3d477b)&&this['_tableSuggestions']['add'](_0xefbc7a);}},{'priority':'low'});const _0x13b45e=(_0x574a71,_0x5b0f7f)=>{let _0x3f067b=!0x1;const _0x230d80=_0x5b0f7f['createRangeOn'](_0x574a71),_0x8d71cd=_0x574a71['findAncestor']('table'),_0x5826c6=_0x4bb148['getCellLocation'](_0x574a71);for(const _0x2e9b74 of this['_tableSuggestions']){const _0x5b5087=_0x2e9b74['subType'],_0x5ba0eb=_0x5b5087['startsWith']('tablePaste'),_0x641788=_0x5b5087['substr'](_0x5ba0eb?0xa:0x5),_0x2901a3=_0x641788['toLowerCase'](),_0x431c04=_0x2901a3['substr'](0x0,0x3)+'span',_0x2b462c='min'+_0x641788,_0xfd14aa='max'+_0x641788;if(!_0x2e9b74['isInContent'])continue;if(_0x8d71cd!=_0x2e9b74['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2e9b74['isIntersectingWithRange'](_0x230d80))continue;const _0x55877c=_0x574a71['hasAttribute'](_0x431c04)?_0x574a71['getAttribute'](_0x431c04)-0x1:0x0,_0x20372d=this['_getSuggestionCoords'](_0x2e9b74),_0x199fee=_0x20372d[_0x2b462c],_0x135e65=_0x20372d[_0xfd14aa];_0x199fee<=_0x5826c6[_0x2901a3]&&_0x5826c6[_0x2901a3]+_0x55877c<=_0x135e65&&(_0x2e9b74['addRange'](_0x230d80),_0x3f067b=!0x0);}return _0x3f067b;};_0x199fe8['model']['document']['registerPostFixer'](_0x1c2dcf=>{let _0xbfdf52=!0x1;for(const _0x4d38bd of _0x199fe8['model']['document']['differ']['getChanges']())if('insert'==_0x4d38bd['type']){if('tableRow'==_0x4d38bd['name']){for(const _0x5cbe96 of _0x4d38bd['position']['nodeAfter']['getChildren']())_0xbfdf52=_0xbfdf52||_0x13b45e(_0x5cbe96,_0x1c2dcf);}else'tableCell'==_0x4d38bd['name']&&(_0xbfdf52=_0xbfdf52||_0x13b45e(_0x4d38bd['position']['nodeAfter'],_0x1c2dcf));}return _0xbfdf52;});}['_getSuggestionCoords'](_0x221e4c){return this['_getCoordsForCells'](_0x221e4c['getRanges']()['map'](_0x119ae8=>_0x119ae8['start']['nodeAfter']));}}function Ne(_0x35f607){return Array['from'](new Set(_0x35f607)['values']());}class Nt extends _0x497417{static get['requires'](){return[Ct];}['afterInit'](){const _0x255772=this['editor'],_0x19d8f4=_0x255772['model']['document']['selection'],_0x378e07=_0x255772['locale'];if(!_0x255772['plugins']['has']('TableEditing'))return;const _0x5f2279=_0x255772['plugins']['get']('TrackChangesEditing'),_0x21ca12=_0x255772['plugins']['get']('TableUtils'),_0xe0e6a0=_0x255772['plugins']['get'](Ct);_0xe0e6a0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5f2279['enableCommand']('mergeTableCells',()=>{const _0x1512d5=_0x21ca12['getSelectionAffectedTableCells'](_0x255772['model']['document']['selection']);_0x255772['model']['change'](()=>{_0x5f2279['markMultiRangeBlockFormat'](_0x1512d5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x255772['commands']['get']('mergeTableCells')['on']('execute',(_0x1f1435,_0x420db1)=>{_0x255772['commands']['get']('trackChanges')['value']&&(_0x420db1['length']>0x0&&_0x420db1[_0x420db1['length']-0x1]&&_0x420db1[_0x420db1['length']-0x1]['forceDefaultExecution']||_0x5f2279['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1f1435['stop']());},{'priority':'highest'});for(const _0x24a8d3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x358ded=_0x255772['commands']['get'](_0x24a8d3);_0x5f2279['enableCommand'](_0x24a8d3,()=>{const _0x3e400b=_0x255772['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x193d27=>_0x193d27['is']('element','tableCell')),_0x3ce0bb=_0x358ded['value'];_0x255772['model']['change'](()=>{_0x5f2279['markMultiRangeBlockFormat']([_0x3e400b,_0x3ce0bb],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x50621c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x141481=_0x255772['commands']['get'](_0x50621c);_0x5f2279['enableCommand'](_0x50621c,()=>{const _0x59e500=_0x21ca12['getSelectionAffectedTableCells'](_0x255772['model']['document']['selection'])[0x0],_0x2cc027=_0x59e500['findAncestor']('table'),{column:_0x1c0929,row:_0xdaf2a4}=_0x21ca12['getCellLocation'](_0x59e500);let _0x20de0e=[];if('horizontally'==_0x141481['direction']){const _0x5ef3f2=_0x21ca12['createTableWalker'](_0x2cc027,{'startRow':_0xdaf2a4,'endRow':_0xdaf2a4,'includeAllSlots':!0x0});_0x20de0e=Array['from'](_0x5ef3f2)['map'](_0x4e3460=>_0x4e3460['cell']);}else{const _0x43095f=_0x21ca12['createTableWalker'](_0x2cc027,{'column':_0x1c0929,'includeAllSlots':!0x0});_0x20de0e=Array['from'](_0x43095f)['map'](_0x5e3ed6=>_0x5e3ed6['cell']);}_0x255772['model']['change'](_0x1e525c=>{_0x5f2279['markBlockFormat'](_0x1e525c['createRangeOn'](_0x59e500),{'commandName':_0x50621c,'commandParams':[]},_0x20de0e,_0x50621c);});});}_0x5f2279['descriptionFactory']['registerDescriptionCallback'](_0x145d19=>{if('formatBlock'!=_0x145d19['type']&&'formatInline'!=_0x145d19['type'])return;const {data:_0x47b6b3}=_0x145d19;return _0x47b6b3&&'mergeTableCells'==_0x47b6b3['commandName']?{'type':'format','content':c(_0x378e07,'*Merge\x20cells*')}:void 0x0;}),_0x5f2279['descriptionFactory']['registerDescriptionCallback'](_0x5f501e=>{if('formatBlock'!=_0x5f501e['type']&&'formatInline'!=_0x5f501e['type'])return;const {data:_0x4e0f01}=_0x5f501e;return _0x4e0f01?'splitTableCellVertically'==_0x4e0f01['commandName']?{'type':'format','content':c(_0x378e07,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4e0f01['commandName']?{'type':'format','content':c(_0x378e07,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x279617=_0xe0e6a0['_acceptFormatSuggestionCallbackFactory']();for(const _0x5f375d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5f2279['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f375d,'accept',_0x279617);for(const _0x4219d0 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5f2279['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4219d0,'accept',_0x279617);_0x5f2279['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x317630=>{_0x255772['model']['change'](_0xdf2fda=>{const _0x20acf9=Array['from'](_0x19d8f4['getRanges']())['map'](_0x3e00c7=>_0x4a3ae4['fromRange'](_0x3e00c7));_0xdf2fda['setSelection'](_0x317630),_0x255772['commands']['get']('mergeTableCells')['refresh'](),_0x255772['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x55b3a4=_0x20acf9['filter'](_0x245632=>'$graveyard'!=_0x245632['root']['rootName']);_0x55b3a4['length']>0x0&&_0xdf2fda['setSelection'](_0x55b3a4);for(const _0x4470c5 of _0x20acf9)_0x4470c5['detach']();});});for(const _0x415365 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xd4562e=_0x255772['commands']['get'](_0x415365);_0xd4562e['on']('set:isEnabled',(_0x409e3f,_0x3e21db,_0x212e93)=>{if(_0x212e93){const _0x48fe1e=_0x255772['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a2f18=>_0x1a2f18['is']('element','tableCell'));this['_areMergableCells'](_0xd4562e['value'],_0x48fe1e)||(_0x409e3f['return']=!0x1,_0x409e3f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x25f166=this['editor']['commands']['get']('mergeTableCells'),_0x452be7=this['editor']['plugins']['get']('TableUtils');if(!_0x25f166['isEnabled'])return!0x1;const _0x53fc0f=_0x452be7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x52b0a0 of _0x53fc0f)for(const _0x493bcd of _0x53fc0f)if(_0x52b0a0!=_0x493bcd&&!this['_areMergableCells'](_0x52b0a0,_0x493bcd))return!0x1;return!0x0;}['_areMergableCells'](_0x168178,_0x4a814d){const _0xdd3c40=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f0192=this['editor']['model']['createRangeOn'](_0x168178),_0x4da47c=this['editor']['model']['createRangeOn'](_0x4a814d),_0xa5fb88=new Set(),_0x156f92=new Set();for(const _0x5b885d of _0xdd3c40['getSuggestions']())if(('insertion'==_0x5b885d['type']||'deletion'==_0x5b885d['type']||'mergeTableCells'==_0x5b885d['subType'])&&_0x5b885d['isInContent']){for(const _0x4e6b99 of _0x5b885d['getRanges']())_0x4e6b99['containsRange'](_0x5f0192,!0x0)&&_0xa5fb88['add'](_0x5b885d['type']+':'+_0x5b885d['author']['id']),_0x4e6b99['containsRange'](_0x4da47c,!0x0)&&_0x156f92['add'](_0x5b885d['type']+':'+_0x5b885d['author']['id']);}if(_0xa5fb88['size']!=_0x156f92['size'])return!0x1;for(const _0x40c5c1 of _0xa5fb88)if(!_0x156f92['has'](_0x40c5c1))return!0x1;return!0x0;}}class Dt extends _0x497417{static get['requires'](){return[Ct];}['afterInit'](){const _0x2a2c47=this['editor'];if(!_0x2a2c47['plugins']['has']('TableEditing'))return;const _0x16de78=_0x2a2c47['locale'],_0x11bdc2=_0x2a2c47['plugins']['get']('TrackChangesEditing');_0x11bdc2['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x11bdc2['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x11bdc2['registerBlockAttribute']('headingRows'),_0x11bdc2['registerBlockAttribute']('headingColumns'),_0x11bdc2['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x16de78,'FORMAT_HEADER_ROW')),_0x11bdc2['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x16de78,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ccbcb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59cea8=this['editor']['plugins']['get']('TableUtils'),_0x4c1ff1=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0xc724cf({showActiveMarker:_0x2f89ad=!0x0,setDataAttribute:_0x49aeae=!0x0}={}){return(_0x47bdea,_0x1c5310,_0x3dd361)=>{const {type:_0x1a1395,id:_0x20e345}=_0x3ccbcb['_splitMarkerName'](_0x1c5310['markerName']),_0xd231d5=_0x3ccbcb['getSuggestion'](_0x20e345),_0x3c8e6b=_0xd231d5['data'];if('formatBlock'!=_0xd231d5['type']||!_0x3c8e6b||'setTableColumnHeader'!=_0x3c8e6b['commandName'])return;if(_0x1c5310['item'])return void _0x47bdea['stop']();if(!_0x3dd361['consumable']['consume'](_0x1c5310['markerRange'],_0x47bdea['name']))return;const _0x46f9f4=_0x1c5310['markerRange']['start']['nodeAfter'],_0x3b2cb6=_0x1c5310['markerRange']['end']['nodeBefore'],_0x2740bc=_0x46f9f4['parent']['parent'],{column:_0x31d273}=_0x59cea8['getCellLocation'](_0x46f9f4),{column:_0x3797b5}=_0x59cea8['getCellLocation'](_0x3b2cb6);for(let _0x451653=_0x31d273;_0x451653<=_0x3797b5;_0x451653++){const _0x27f919=_0x59cea8['createTableWalker'](_0x2740bc,{'column':_0x451653,'includeAllSlots':!0x1});for(const _0x376c2f of _0x27f919){const _0x2e3ac3=_0x376c2f['cell'],_0x4aec6e=_0x3dd361['mapper']['toViewElement'](_0x2e3ac3);_0x3dd361['writer']['addClass']('ck-suggestion-marker-'+_0x1a1395,_0x4aec6e),_0x49aeae&&_0x3dd361['writer']['setAttribute']('data-suggestion',_0x20e345,_0x4aec6e),_0x3dd361['mapper']['bindElementToMarker'](_0x4aec6e,_0x1c5310['markerName']),_0x2f89ad&&(_0x3ccbcb['activeMarkers']['includes'](_0x1c5310['markerName'])?_0x3dd361['writer']['addClass']('ck-suggestion-marker--active',_0x4aec6e):_0x3dd361['writer']['removeClass']('ck-suggestion-marker--active',_0x4aec6e));}}};}_0x3ccbcb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4c1ff1),_0x3ccbcb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4c1ff1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xc724cf(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a1d,_0x20863f,_0x3ae79f)=>{_0x3ae79f['options']['showSuggestionHighlights']&&_0xc724cf({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3a1d,_0x20863f,_0x3ae79f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1ddc68,_0xf5e8a1,_0x2b79df)=>{const {type:_0x46be74,id:_0x23828f}=_0x3ccbcb['_splitMarkerName'](_0xf5e8a1['markerName']),_0x8119f2=_0x3ccbcb['getSuggestion'](_0x23828f),_0x49ee1e=_0x8119f2['data'];if('formatBlock'!=_0x8119f2['type']||!_0x49ee1e||'setTableColumnHeader'!=_0x49ee1e['commandName'])return;const _0x2bf86b=_0x2b79df['mapper']['markerNameToElements'](_0xf5e8a1['markerName']);if(_0x2bf86b){for(const _0x46512b of _0x2bf86b)_0x2b79df['writer']['removeClass']('ck-suggestion-marker-'+_0x46be74,_0x46512b),_0x2b79df['writer']['removeClass']('ck-suggestion-marker--active',_0x46512b),_0x2b79df['writer']['removeAttribute']('data-suggestion',_0x46512b),_0x2b79df['mapper']['unbindElementFromMarkerName'](_0x46512b,_0xf5e8a1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3776d9=this['editor'],_0x4c2447=_0x3776d9['locale'];function _0x590ee6(_0x2c1920){return{'type':'format','content':c(_0x4c2447,'*Format:*\x20%0',_0x2c1920)};}_0x3776d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a4078=>{if('formatBlock'!=_0x2a4078['type'])return;const {data:_0x2f6bcb}=_0x2a4078;if(_0x2f6bcb){if('setTableRowHeader'==_0x2f6bcb['commandName']){const _0x4e7da9=_0x2f6bcb['commandParams'][0x0]['forceValue'];return _0x590ee6(c(_0x4c2447,_0x4e7da9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2f6bcb['commandName']){const _0x38ec24=_0x2f6bcb['commandParams'][0x0]['forceValue'];return _0x590ee6(c(_0x4c2447,_0x38ec24?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x1c9dbd=>[_0x1c9dbd,null]));class Mt extends _0x497417{static get['requires'](){return[Ct];}['afterInit'](){const _0x41bf85=this['editor'];if(!_0x41bf85['plugins']['has']('TableClipboard'))return;const _0x44ca03=_0x41bf85['plugins']['get']('TrackChangesEditing'),_0x3b715b=_0x41bf85['plugins']['get']('TableUtils'),_0x41d668=_0x41bf85['plugins']['get'](Ct),_0x186375=_0x41bf85['plugins']['get']('TableClipboard');_0x41d668['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x41bf85['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x41bf85['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5805e7=null;_0x41bf85['model']['on']('insertContent',(_0x4b61b6,_0x20282e)=>{const [_0x5942fe,_0x5099a3]=_0x20282e,_0x41eb45=_0x20282e[_0x20282e['length']-0x1];_0x41eb45&&_0x41eb45['forceDefaultExecution']||_0x44ca03['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1c57c2,_0x58aeed,_0x2a9e9b,_0x3b81eb,_0x1f3d1d){if(_0x58aeed&&!_0x58aeed['is']('documentSelection'))return!0x1;const _0x5a5191=_0x1f3d1d['getTableIfOnlyTableInContent'](_0x1c57c2,_0x2a9e9b);if(!_0x5a5191||!Ue(_0x5a5191,void 0x0,_0x3b81eb))return!0x1;const _0x2c3c12=_0x3b81eb['getSelectionAffectedTableCells'](_0x2a9e9b['document']['selection']);if(!_0x2c3c12['length'])return!0x1;const _0x4024ac=_0x2c3c12[0x0]['findAncestor']('table'),_0x459955=_0x3b81eb['getRowIndexes'](_0x2c3c12),_0x57bb30=_0x3b81eb['getColumnIndexes'](_0x2c3c12),_0x3657f8={'startRow':_0x459955['first'],'endRow':_0x459955['last'],'startColumn':_0x57bb30['first'],'endColumn':_0x57bb30['last']};return 0x1==_0x2c3c12['length']&&(_0x3657f8['endRow']+=_0x3b81eb['getRows'](_0x5a5191)-0x1,_0x3657f8['endColumn']+=_0x3b81eb['getColumns'](_0x5a5191)-0x1),Ue(_0x4024ac,_0x3657f8,_0x3b81eb);}(_0x5942fe,_0x5099a3,_0x41bf85['model'],_0x3b715b,_0x186375)&&(_0x4b61b6['stop'](),_0x5805e7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x41bf85['model']['change'](()=>{_0x41bf85['model']['insertContent'](_0x20282e[0x0],_0x20282e[0x1],_0x20282e[0x2],{'forceDefaultExecution':!0x0});const _0x5c9bee=_0x437d48(),{rowInsertionRanges:_0x223b25,columnInsertionRanges:_0x33f89a,insertionRanges:_0x1dcf25,deletionRanges:_0x2690db,cells:_0x534200}=_0x5805e7;_0x223b25['length']&&_0x44ca03['markMultiRangeInsertion'](_0x223b25,'tablePasteRow',{'tablePasteChainId':_0x5c9bee}),_0x33f89a['length']&&_0x44ca03['markMultiRangeInsertion'](_0x33f89a,'tablePasteColumn',{'tablePasteChainId':_0x5c9bee}),_0x1dcf25['length']&&(_0x44ca03['markMultiRangeInsertion'](_0x1dcf25,'tablePaste',{'tablePasteChainId':_0x5c9bee,'skipNestingCheck':!0x0}),_0x1dcf25['forEach'](_0x59335c=>_0x59335c['detach']?.())),_0x2690db['length']&&(_0x44ca03['markMultiRangeDeletion'](_0x2690db,'tablePaste',{'tablePasteChainId':_0x5c9bee,'skipNestingCheck':!0x0}),_0x2690db['forEach'](_0x5a6e63=>_0x5a6e63['detach']?.()));const _0x262b90=_0x44ca03['markMultiRangeBlockFormat'](_0x534200['map'](({element:_0x4000ec})=>_0x4000ec),{'formatGroupId':_0x437d48()},[],'tablePasteCell',{'tablePasteChainId':_0x5c9bee});if(_0x262b90){const _0x2a8a2d=_0x262b90['getMarkers'](),_0x8d023a=[];for(const {element:_0x2b07fc,attributes:_0x117892}of _0x534200){if(!_0x117892)continue;const _0x1cd829=_0x41bf85['model']['createRangeOn'](_0x2b07fc),_0x54e7aa=_0x2a8a2d['find'](_0x3d2cdd=>_0x3d2cdd['getRange']()['isEqual'](_0x1cd829));_0x54e7aa&&_0x8d023a['push']([_0x54e7aa['name'],_0x117892]);}_0x8d023a['length']&&_0x262b90['setAttribute']('markerAttributes',Object['fromEntries'](_0x8d023a));}_0x5805e7=null;}));},{'priority':_0x2c349d['high']+0xa}),_0x41bf85['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x22d65a,_0x21c9a9)=>{const [_0x157e73,_0x16097f,,_0x422f74]=_0x21c9a9;if(!_0x5805e7)return;_0x22d65a['stop']();const _0x59e827=_0x157e73['cell'],_0x5260eb=_0x16097f,_0x194f6e=Oe(_0x59e827),_0x26474d=Oe(_0x5260eb);_0x22d65a['return']=_0x59e827;let _0x569ea4=null,_0x11187b=null;if(_0x26474d||_0x194f6e){if(_0x194f6e&&!_0x26474d){_0x422f74['remove'](_0x59e827['getChild'](0x0));for(const _0x252c23 of Array['from'](_0x5260eb['getChildren']()))_0x422f74['insert'](_0x252c23,_0x59e827,'end');const _0x5b02ac=_0x5805e7['rowInsertionIndexes']['includes'](_0x157e73['row']),_0x1aaedd=_0x5805e7['columnInsertionIndexes']['includes'](_0x157e73['column']);_0x5b02ac||_0x1aaedd||(_0x569ea4=_0x4a3ae4['fromRange'](_0x422f74['createRangeIn'](_0x59e827)));}else _0x26474d&&!_0x194f6e&&(_0x11187b=_0x422f74['createRangeIn'](_0x59e827));}else{const _0x3875b1=_0x422f74['createElement']('tableCellSuggestion'),_0x49d215=_0x422f74['createElement']('tableCellSuggestion');_0x422f74['wrap'](_0x422f74['createRangeIn'](_0x59e827),_0x49d215),_0x422f74['insert'](_0x3875b1,_0x59e827,0x0);for(const _0xf50b56 of Array['from'](_0x5260eb['getChildren']()))_0x422f74['insert'](_0xf50b56,_0x3875b1,'end');_0x569ea4=_0x4a3ae4['fromRange'](_0x422f74['createRangeOn'](_0x3875b1)),_0x11187b=_0x4a3ae4['fromRange'](_0x422f74['createRangeOn'](_0x49d215));}const _0x5f19f0=Array['from'](_0x5260eb['getAttributes']())['filter'](([_0x2223e2])=>Be['includes'](_0x2223e2));_0x5805e7['cells']['push']({'element':_0x59e827,'attributes':_0x5f19f0['length']?Object['fromEntries'](_0x5f19f0):null}),_0x569ea4&&_0x5805e7['insertionRanges']['push'](_0x569ea4),_0x11187b&&_0x5805e7['deletionRanges']['push'](_0x11187b);},{'priority':'high'}),_0x3b715b['on']('insertColumns',(_0x21cc9a,_0x2fe555)=>{const [_0x3663ef,_0x101193={}]=_0x2fe555;if(!_0x5805e7)return;const _0x3778f5=_0x101193['at']||0x0,_0x5da36b=_0x101193['columns']||0x1;_0x5805e7['columnInsertionIndexes']=new Array(_0x5da36b)['fill'](_0x3778f5)['map']((_0x471883,_0x407536)=>_0x471883+_0x407536);for(const {cell:_0x5c109e}of _0x3b715b['createTableWalker'](_0x3663ef,{'startColumn':_0x3778f5,'endColumn':_0x3778f5+_0x5da36b-0x1}))_0x5805e7['columnInsertionRanges']['push'](_0x41bf85['model']['createRangeOn'](_0x5c109e));},{'priority':'low'}),_0x3b715b['on']('insertRows',(_0x50c1ab,_0xf2edbd)=>{const [_0x299e4e,_0x282611={}]=_0xf2edbd;if(!_0x5805e7)return;const _0x2a169d=_0x282611['at']||0x0,_0x209d3f=_0x282611['rows']||0x1;_0x5805e7['rowInsertionIndexes']=new Array(_0x209d3f)['fill'](_0x2a169d)['map']((_0x1ca879,_0x3c75a5)=>_0x1ca879+_0x3c75a5);for(const {cell:_0x4553aa}of _0x3b715b['createTableWalker'](_0x299e4e,{'startRow':_0x2a169d,'endRow':_0x2a169d+_0x209d3f-0x1}))_0x5805e7['rowInsertionRanges']['push'](_0x41bf85['model']['createRangeOn'](_0x4553aa));},{'priority':'low'}),_0x44ca03['descriptionFactory']['registerDescriptionCallback'](_0x19b060=>{if(_0x19b060['subType']&&_0x19b060['subType']['startsWith']('tablePaste'))return _0x19b060['previous']?{}:{'type':'insertion','content':c(_0x41bf85['locale'],'*Replace\x20table\x20cells*')};});const _0x2fcc9d=()=>!0x1;for(const _0x47b933 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x44ca03['_suggestionFactory']['registerCustomCallback']('insertion',_0x47b933,'join',_0x2fcc9d),_0x44ca03['_suggestionFactory']['registerCustomCallback']('deletion',_0x47b933,'join',_0x2fcc9d),_0x44ca03['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47b933,'join',_0x2fcc9d);_0x44ca03['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2fcc9d),_0x44ca03['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x17237b,_0x1b2fb6,_0x2518e9)=>{const _0x4ec44d=_0x17237b['map'](_0x4a0f93=>_0x4a0f93['getContainedElement']())['filter'](_0x3e956e=>_0x3e956e),_0x522421=new Map(_0x4ec44d['map'](_0x1eed45=>[_0x1eed45,null]));if(_0x5805e7){for(const {element:_0x2b4863,attributes:_0x2e7f00}of _0x5805e7['cells'])_0x2e7f00&&_0x522421['set'](_0x2b4863,_0x2e7f00);}else{if(_0x2518e9&&_0x2518e9['markerAttributes'])for(const [_0x13db8f,_0x50651c]of Object['entries'](_0x2518e9['markerAttributes'])){const _0x47f55b=_0x41bf85['model']['markers']['get'](_0x13db8f),_0x332d54=_0x47f55b?_0x47f55b['getRange']()['getContainedElement']():null;_0x332d54&&_0x522421['set'](_0x332d54,_0x50651c);}}_0x41bf85['model']['change'](_0x62ee1c=>{for(const [_0x471828,_0x6249ab]of _0x522421)_0x62ee1c['setAttributes']({...xe,..._0x6249ab},_0x471828);});});const _0xb95a29=(_0x54aaf2,_0x2434f5)=>{_0x44ca03['_suggestionFactory']['registerCustomCallback'](_0x54aaf2,'tablePaste',_0x2434f5,(_0x283535,_0x36eb41,_0xc0b8bf)=>{_0x41bf85['model']['change'](_0x3fb44b=>{const _0xbe6698=[];for(const _0x11a6dc of _0x283535){const _0x816f80=_0x11a6dc['start']['nodeAfter'];_0x816f80['is']('element','tableCellSuggestion')&&_0xbe6698['push'](_0x816f80);}_0x44ca03['_suggestionFactory']['getSuggestionCallback'](_0x54aaf2,null,_0x2434f5)(_0x283535,_0x36eb41,_0xc0b8bf);for(const _0xafee55 of _0xbe6698)'$graveyard'!=_0xafee55['root']['rootName']&&_0x3fb44b['unwrap'](_0xafee55);});});};_0xb95a29('insertion','accept'),_0xb95a29('insertion','discard'),_0xb95a29('deletion','accept'),_0xb95a29('deletion','discard'),_0x44ca03['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x27a06b=>{const _0x235eeb=_0x27a06b['map'](_0x190e8b=>_0x190e8b['getContainedElement']()),_0x2af87f=_0x235eeb[0x0]['findAncestor']('table'),{minRow:_0x5ab5c8,maxRow:_0x2c8a9d}=_0x41d668['_getCoordsForCells'](_0x235eeb);_0x3b715b['removeRows'](_0x2af87f,{'at':_0x5ab5c8,'rows':_0x2c8a9d-_0x5ab5c8+0x1});}),_0x44ca03['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x54f17e=>{const _0x119ccb=_0x54f17e['map'](_0x3a5785=>_0x3a5785['getContainedElement']()),_0x3ae8b7=_0x119ccb[0x0]['findAncestor']('table'),{minColumn:_0x37c177,maxColumn:_0x1a9403}=_0x41d668['_getCoordsForCells'](_0x119ccb);_0x3b715b['removeColumns'](_0x3ae8b7,{'at':_0x37c177,'columns':_0x1a9403-_0x37c177+0x1});});const _0x54ec8b=(_0x4d4c37,_0x15e9ea)=>{if(!_0x15e9ea['subType']||!_0x15e9ea['subType']['startsWith']('tablePaste'))return;const _0x275826=_0x15e9ea['attributes']['tablePasteChainId'],_0x1e47ee=_0x44ca03['getSuggestions']()['filter'](_0x3d4a90=>_0x3d4a90['isInContent']&&_0x3d4a90['attributes']&&_0x3d4a90['attributes']['tablePasteChainId']==_0x275826);_0x1e47ee['length']&&_0x15e9ea['getAllAdjacentSuggestions']()['length']!=_0x1e47ee['length']&&_0x1e47ee['reduce']((_0x50bfa7,_0x37aff0)=>(_0x50bfa7['next']=_0x37aff0,_0x37aff0['previous']=_0x50bfa7,_0x37aff0));};function _0x32b28a(_0x385b02,_0x4fa3e9=!0x0){const {id:_0x158b3e,authorId:_0x3369d4}=_0x44ca03['_splitMarkerName'](_0x385b02['markerName']),_0x6dbbbb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5e3ab8=_0x44ca03['activeMarkers']['includes'](_0x385b02['markerName']);return _0x5e3ab8&&_0x6dbbbb['push']('ck-suggestion-marker--active'),{'classes':_0x6dbbbb,'attributes':{'data-suggestion':_0x158b3e,'data-author-id':_0x3369d4},'priority':_0x5e3ab8&&_0x4fa3e9?0xbc2:0xbb8};}_0x44ca03['on']('suggestionLoaded',_0x54ec8b,{'priority':'high'}),_0x44ca03['on']('suggestionUnloaded',_0x54ec8b,{'priority':'high'}),_0x41bf85['model']['document']['registerPostFixer'](()=>{let _0x1fe455=!0x1;const _0x144024=Array['from'](_0x41bf85['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ea27b,data:_0x3c2baa}of _0x144024){const {group:_0x8686dc,type:_0x491d72,id:_0x115d51}=_0x44ca03['_splitMarkerName'](_0x2ea27b);if('suggestion'!=_0x8686dc||'deletion'!=_0x491d72||_0x3c2baa['oldRange'])continue;if(!_0x44ca03['hasSuggestion'](_0x115d51))continue;const _0x10de32=_0x44ca03['getSuggestion'](_0x115d51)['getRanges'](),_0x288345=_0x41bf85['plugins']['get']('Users')['me'];for(const _0x449618 of _0x44ca03['getSuggestions']()){if(!_0x449618['isInContent']||_0x449618['author']!=_0x288345)continue;if('formatBlock'!=_0x449618['type']||'tablePasteCell'!=_0x449618['subType'])continue;if(_0x449618['getRanges']()['every'](_0x3c209d=>_0x10de32['some'](_0x295c6c=>_0x295c6c['containsRange'](_0x3c209d,!0x0)))){for(const _0x20dd48 of _0x449618['getAllAdjacentSuggestions']())_0x20dd48['isInContent']&&(_0x20dd48['discard'](),_0x1fe455=!0x0);}}}return _0x1fe455;}),_0x41bf85['model']['document']['registerPostFixer'](_0x2477fa=>{const _0x5f3dc2=_0x41bf85['commands']['get']('redo');if(!_0x5f3dc2||!_0x5f3dc2['_createdBatches']['has'](_0x2477fa['batch']))return!0x1;let _0x1ebc12=!0x1;const _0x486106=_0x41bf85['plugins']['get']('Users')['me'],_0x30130e=_0x41bf85['model']['document']['differ']['getChanges'](),_0x28e4c1=Array['from'](_0x41bf85['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xdb23c4,data:_0x6163fb})=>{const {group:_0x396da1,subType:_0x1f0612,authorId:_0x164467}=_0x44ca03['_splitMarkerName'](_0xdb23c4);return'suggestion'==_0x396da1&&'tablePaste'==_0x1f0612&&_0x164467==_0x486106['id']&&!_0x6163fb['oldRange'];});for(const _0x559edb of _0x30130e){if('insert'!=_0x559edb['type']||'tableCellSuggestion'!=_0x559edb['name']||0x1!=_0x559edb['length'])continue;const _0x58af86=_0x2477fa['createRange'](_0x559edb['position'],_0x559edb['position']['getShiftedBy'](0x1));if(!_0x28e4c1['find'](({data:_0x513e0a})=>_0x513e0a['newRange']['isEqual'](_0x58af86))){for(const {name:_0x2c77aa,data:_0xf306da}of _0x28e4c1)if(_0x58af86['containsRange'](_0xf306da['newRange'])){_0x2477fa['updateMarker'](_0x2c77aa,{'range':_0x58af86}),_0x1ebc12=!0x0;break;}}}return _0x1ebc12;}),_0x41bf85['model']['document']['registerPostFixer'](_0x4a090c=>{let _0x36d2f2=!0x1;const _0xd822dd=_0x41bf85['plugins']['get']('Users')['me'],_0x48d845=_0x44ca03['getSuggestions']()['filter'](_0x396dc7=>_0x396dc7['isInContent']&&_0x396dc7['author']==_0xd822dd),_0x265ed8=new Set(),_0x2ba6b2=new Set();for(const _0x35e10a of _0x48d845)if('tablePaste'==_0x35e10a['subType'])for(const _0x5a9e2d of _0x35e10a['getMarkers']()){const _0x4cb35f=_0x5a9e2d['getRange']()['getContainedElement']();if(_0x4cb35f){if(_0x4cb35f['is']('element','tableCellSuggestion')&&Oe(_0x4cb35f)){_0x35e10a['removeMarker'](_0x5a9e2d['name']),_0x265ed8['add'](_0x4cb35f),_0x36d2f2=!0x0;const _0x279b8f=_0x4cb35f['nextSibling'],_0x541daa=_0x4cb35f['previousSibling'],_0x16422b=_0x279b8f&&_0x279b8f['is']('element','tableCellSuggestion'),_0x347c66=_0x541daa&&_0x541daa['is']('element','tableCellSuggestion');_0x16422b&&!_0x265ed8['has'](_0x279b8f)&&_0x2ba6b2['add'](_0x279b8f),_0x347c66&&!_0x265ed8['has'](_0x541daa)&&_0x2ba6b2['add'](_0x541daa);}else _0x4cb35f['is']('element','paragraph')&&_0x4cb35f['isEmpty']&&(_0x35e10a['removeMarker'](_0x5a9e2d['name']),_0x36d2f2=!0x0);}}else{if('tablePasteCell'==_0x35e10a['subType']){if(!_0x35e10a['attributes']||!_0x35e10a['attributes']['tablePasteChainId'])continue;const _0xd53fe9=_0x35e10a['attributes']['markerAttributes'];if(_0xd53fe9&&Object['keys'](_0xd53fe9)['length'])continue;const _0x46ab93=_0x35e10a['attributes']['tablePasteChainId'];let _0x2320b3=!0x0,_0x3d6b6e=!0x0;for(const _0x18f7d2 of _0x48d845)if(_0x18f7d2['subType']&&_0x18f7d2['subType']['startsWith']('tablePaste')){if(!_0x18f7d2['attributes']['tablePasteChainId']){_0x3d6b6e=!0x1;break;}if(_0x18f7d2['id']!=_0x35e10a['id']&&_0x18f7d2['attributes']['tablePasteChainId']==_0x46ab93){_0x2320b3=!0x1;break;}}_0x3d6b6e&&_0x2320b3&&(_0x35e10a['removeMarkers'](),_0x36d2f2=!0x0);}}for(const _0x1051a9 of _0x265ed8)_0x4a090c['remove'](_0x1051a9);for(const _0x5bfa44 of _0x2ba6b2)_0x4a090c['unwrap'](_0x5bfa44);return _0x36d2f2;}),_0x41bf85['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x556eeb=>_0x32b28a(_0x556eeb),'converterPriority':'high'}),_0x41bf85['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2ca812,_0x59f5d9)=>_0x59f5d9['options']['showSuggestionHighlights']?_0x32b28a(_0x2ca812,!0x1):null,'converterPriority':'high'});const _0xcb1a48=_0x41bf85['editing']['view'];this['listenTo'](_0xcb1a48['document'],'clipboardOutput',(_0x293ccf,_0x452bd3)=>{const _0x261aea=[];for(const _0x51d7bd of _0xcb1a48['createRangeIn'](_0x452bd3['content'])['getItems']())_0x51d7bd['is']('element','suggestion-td')&&_0x261aea['push'](_0x51d7bd);_0xcb1a48['change'](_0x502ece=>{for(const _0x2e706d of _0x261aea)_0x502ece['move'](_0x502ece['createRangeIn'](_0x2e706d),_0x502ece['createPositionBefore'](_0x2e706d)),_0x502ece['remove'](_0x2e706d);});});}}function Oe(_0x14c010){if(_0x14c010['isEmpty'])return!0x0;const _0x812f1a=_0x14c010['getChild'](0x0);return _0x812f1a['is']('element','paragraph')&&_0x812f1a['isEmpty'];}function Ue(_0x3cfcba,_0x2fafe0={},_0x51cc3f){for(const {isAnchor:_0x130155,cellHeight:_0x43a278,cellWidth:_0x1dba69}of _0x51cc3f['createTableWalker'](_0x3cfcba,{'includeAllSlots':!0x0,..._0x2fafe0}))if(!_0x130155||0x1!=_0x43a278||0x1!=_0x1dba69)return!0x1;return!0x0;}class $t extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xad4ed5=this['editor']['plugins']['get']('TrackChangesEditing');_0xad4ed5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xad4ed5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xad4ed5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xad4ed5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xad4ed5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xad4ed5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x12a089,_0x5a32d9){const _0x3bd5d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x267edb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x10fe61=_0x5a32d9['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x22f17c=_0x267edb['getColumnGroupElement'](_0x10fe61);let _0x52484b=_0x22f17c?_0x267edb['getTableColumnsWidths'](_0x22f17c):null,_0x202df5=_0x10fe61['getAttribute']('tableWidth')||null;const _0x344354=_0x5a32d9['tableWidth']||_0x202df5,_0x1bfd71=_0x5a32d9['columnWidths']||_0x52484b,_0x2e6a3d=this['editor']['plugins']['get']('Users')['me'];for(const _0x2f7aec of _0x3bd5d2['getSuggestions']()){const _0x52e525=_0x2f7aec['getContainedElement']();if('resizeTable'===_0x2f7aec['subType']&&_0x52e525===_0x10fe61){_0x2f7aec['author']!==_0x2e6a3d&&_0x2f7aec['discard']();const _0x30da5a=_0x2f7aec['data']['commandParams'];_0x202df5=_0x30da5a[0x0]['tableWidth'],_0x52484b=_0x30da5a[0x0]['columnWidths'];break;}}_0x12a089({'table':_0x10fe61,'tableWidth':_0x344354,'columnWidths':_0x1bfd71}),_0x3bd5d2['markBlockFormat'](_0x10fe61,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x202df5,'columnWidths':_0x52484b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x57c927){if('formatBlock'!=_0x57c927['type']&&'formatInline'!=_0x57c927['type'])return;const {data:_0x3b8002}=_0x57c927;if(_0x3b8002&&'resizeTable'===_0x3b8002['formatGroupId']){const _0x37f70a='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x37f70a)};}}}class Bt extends _0x497417{['afterInit'](){const _0xe749f8=this['editor'];_0xe749f8['plugins']['has']('Template')&&_0xe749f8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x497417{['afterInit'](){const _0x3e7ead=this['editor'];if(!_0x3e7ead['commands']['get']('insertTableOfContents'))return;_0x3e7ead['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5c2737=_0x3e7ead['plugins']['get']('TrackChangesEditing'),_0x498fa2=_0x3e7ead['locale'];_0x5c2737['descriptionFactory']['registerElementLabel']('tableOfContents',_0x430a70=>c(_0x498fa2,'ELEMENT_TABLE_OF_CONTENTS',_0x430a70));}}class Rt extends _0x497417{['afterInit'](){const _0x15476e=this['editor'];if(!_0x15476e['plugins']['has']('Title'))return;const _0xc22c38=_0x15476e['plugins']['get']('TrackChangesEditing');_0xc22c38['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x15476e['locale'],'ELEMENT_TITLE')),_0x15476e['model']['document']['registerPostFixer'](_0xa82681=>{let _0x3a4fa3=!0x1;const _0x43b6bc=Array['from'](_0x15476e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58fcaa,data:_0x2c477b}of _0x43b6bc){const {group:_0x18d516}=_0xc22c38['_splitMarkerName'](_0x58fcaa);if('suggestion'!==_0x18d516||!_0x2c477b['newRange'])continue;const _0x28cdb4=_0x2c477b['newRange'],_0x55ce82=_0x28cdb4['end']['nodeBefore'];if(!_0x55ce82||!_0x55ce82['is']('element','title-content'))continue;if(!_0x28cdb4['start']['isTouching'](_0x28cdb4['end']))continue;const _0x4d4ef2=_0x15476e['model']['schema']['getNearestSelectionRange'](_0x28cdb4['end'],'forward');if(_0x4d4ef2&&_0x4d4ef2['isCollapsed']){const _0x3c8252=_0xa82681['createRange'](_0x28cdb4['start'],_0x4d4ef2['start']);_0x3c8252['isEqual'](_0x28cdb4)||(_0xa82681['updateMarker'](_0x58fcaa,{'range':_0x3c8252}),_0x3a4fa3=!0x0);}_0x3a4fa3||(_0xa82681['removeMarker'](_0x58fcaa),_0x3a4fa3=!0x0);}return _0x3a4fa3;});}}class xt extends _0x497417{['afterInit'](){const _0x50f4b8=this['editor'],_0x4b38d7=_0x50f4b8['plugins']['get']('TrackChangesEditing');_0x50f4b8['plugins']['has']('Uploadcare')&&(_0x4b38d7['enableCommand']('uploadcare'),_0x50f4b8['plugins']['has']('UploadcareImageEdit')&&(_0x4b38d7['enableCommand']('uploadcareImageEdit'),_0x4b38d7['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4b38d7['registerBlockAttribute']('uploadcareImageId'),_0x4b38d7['descriptionFactory']['registerDescriptionCallback'](_0x2c91de=>{if('attribute'!=_0x2c91de['type'])return;const {data:_0x33b034}=_0x2c91de;return _0x33b034&&'uploadcareImageId'==_0x33b034['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x497417{['afterInit'](){const _0x1e99a4=this['editor'],_0x32bc15=_0x1e99a4['plugins']['get']('TrackChangesEditing');_0x1e99a4['plugins']['has']('UndoEditing')&&(_0x32bc15['enableCommand']('undo'),_0x32bc15['enableCommand']('redo'));}}class Et extends _0x497417{static get['requires'](){return[Ct];}['afterInit'](){const _0x5ef09c=this['editor'];if(!_0x5ef09c['plugins']['has']('TableCaptionEditing'))return;_0x5ef09c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x497417{['tableProperties'];['tableCellProperties'];constructor(_0x47865b){super(_0x47865b),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 _0x1d45b7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4fa9f2 of this['tableProperties'])_0x1d45b7['enableCommand'](_0x4fa9f2,(_0x5041f4,_0x2fc95a)=>{const _0x5cfdd1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4fa9f2,[_0x5cfdd1],this['tableProperties'],'tableProperties',_0x5041f4,_0x2fc95a);});_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1d45b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x391d53,_0x222397)=>this['handleDiscardAction'](this['tableProperties'],_0x391d53,_0x222397)),_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x48675f of this['tableCellProperties'])_0x1d45b7['enableCommand'](_0x48675f,(_0x19a467,_0x2af7e6)=>{const _0x12b99=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x48675f,_0x12b99,this['tableCellProperties'],'tableCellProperties',_0x19a467,_0x2af7e6);});_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1d45b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5f2aff,_0x4acdbb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5f2aff,_0x4acdbb)),_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1d45b7['descriptionFactory']['registerDescriptionCallback'](_0xf7ba07=>this['handleSuggestionDescription'](_0xf7ba07));}['_handlePropertyChange'](_0x2ed84e,_0x4c009f,_0x2ee711,_0x46d454,_0x199ea1,_0x59c915){const _0x462293=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x59c915['batch'],()=>{for(const _0x201e08 of _0x4c009f){if(this['_getSuggestion'](_0x201e08,_0x46d454))_0x199ea1(_0x59c915);else{const _0x12150c={};for(const _0x54119a of _0x2ee711){const _0x4880a6=_0x201e08['getAttribute'](_0x54119a);void 0x0!==_0x4880a6&&(_0x12150c[_0x54119a]=_0x4880a6);}_0x199ea1(_0x59c915),_0x462293['markBlockFormat'](_0x201e08,{'commandParams':[_0x12150c]},[],_0x46d454);}}});}['handleDiscardAction'](_0x44b79c,_0x5a78f0,_0x4eb0f1){const _0x4bf687=_0x5a78f0[0x0]['start']['nodeAfter'],_0x59e7dc=_0x4eb0f1['commandParams'][0x0];this['editor']['model']['change'](_0x46d41e=>{for(const _0x14a294 of _0x44b79c)void 0x0!==_0x59e7dc[_0x14a294]?_0x46d41e['setAttribute'](_0x14a294,_0x59e7dc[_0x14a294],_0x4bf687):_0x46d41e['removeAttribute'](_0x14a294,_0x4bf687);});}['handleSuggestionDescription'](_0x1f7766){if(_0x1f7766['data'])switch(_0x1f7766['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x508e90,_0x27d3d5){const _0x4ebd56=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2c83a3 of _0x4ebd56['getSuggestions']({'skipNotAttached':!0x0})){const _0x2691c0=_0x2c83a3['getContainedElement']();if(_0x2c83a3['subType']===_0x27d3d5&&_0x2691c0===_0x508e90)return _0x2c83a3;}return null;}}const u='$elementName';class p extends _0x497417{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x508eb0,_0x1b0060,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29a838){super(_0x29a838),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x353465,_0x2879f3,_0x2965a7,_0x1ab6bf)=>{this['_model']['change'](()=>{for(const _0x1e91a5 of[..._0x1ab6bf,..._0x2965a7])this['_model']['markers']['has'](_0x1e91a5)&&_0x29a838['editing']['reconvertMarker'](_0x1e91a5);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x29a838['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x29a838['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x29a838['config']['get']('trackChanges.trackFormatChanges'),_0x29a838['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x29a838['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x29a838,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5deeac=this['editor'],_0x51d895=(_0x328a3a,_0x3b7f1c)=>{if('attribute'!=_0x328a3a)return'ck-suggestion-marker-'+_0x328a3a;const _0x3495dc=_0x3b7f1c['split']('|')[0x0];return this['_isBlockAttribute'](_0x3495dc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5deeac['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x289d5d=>{const {id:_0x51effb,authorId:_0x2bcf9,type:_0x4235f9,subType:_0x3ce50b}=this['_splitMarkerName'](_0x289d5d['markerName']),_0x32de20=['ck-suggestion-marker',_0x51d895(_0x4235f9,_0x3ce50b)];let _0x439827=0xbb8;return this['activeMarkers']['includes'](_0x289d5d['markerName'])&&(_0x32de20['push']('ck-suggestion-marker--active'),_0x439827=0xbc2),'deletion'==_0x4235f9&&(_0x439827+=0x5),{'classes':_0x32de20,'attributes':{'data-suggestion':_0x51effb,'data-author-id':_0x2bcf9},'priority':_0x439827};}}),_0x5deeac['conversion']['for']('dataDowncast')['add'](_0x4320cf=>{_0x4320cf['on']('addMarker:suggestion',(_0x2cd748,_0x58a3bd,_0x25cd6b)=>{if(!_0x25cd6b['options']['showSuggestionHighlights'])return;const _0x56eb67=_0x58a3bd['item'];if(!_0x56eb67)return;const _0x2e70aa=_0x25cd6b['mapper']['toViewElement'](_0x56eb67);_0x5deeac['model']['schema']['isObject'](_0x56eb67)&&_0x2e70aa&&!_0x2e70aa['getCustomProperty']('widget')&&_0x2e70aa['is']('containerElement')&&_0x5667c3(_0x2e70aa,_0x25cd6b['writer']);},{'priority':'high'});}),_0x5deeac['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x58b598,_0x18ebac)=>{if(!_0x18ebac['options']['showSuggestionHighlights'])return null;const {type:_0xaa22ac,subType:_0x318656}=this['_splitMarkerName'](_0x58b598['markerName']);return{'classes':['ck-suggestion-marker',_0x51d895(_0xaa22ac,_0x318656)],'priority':0xbb8};}});const _0x47bf7a=({showActiveMarkers:_0x13938e=!0x0,isAttributeSuggestion:_0x12f9e2=!0x1}={})=>(_0x4ed864,_0x372086,_0x245552)=>{if(!_0x372086['item'])return;const {id:_0x5d4b11,authorId:_0x4cad8c}=this['_splitMarkerName'](_0x372086['markerName']);if(_0x12f9e2){const _0x46e925=this['_suggestions']['get'](_0x5d4b11),_0x4a014f=this['_getAttributeKey'](_0x46e925);if(!this['_isBlockAttribute'](_0x4a014f))return;}if(_0x372086['item']['is']('selection'))return void _0x245552['consumable']['consume'](_0x372086['item'],_0x4ed864['name']);const _0x4f7dcc=_0x245552['mapper']['toViewElement'](_0x372086['item']);if(_0x372086['item']['is']('element')&&_0x5deeac['model']['schema']['isBlock'](_0x372086['item'])&&!_0x4f7dcc['getCustomProperty']('addHighlight')){_0x245552['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f7dcc),_0x245552['writer']['setAttribute']('data-suggestion',_0x5d4b11,_0x4f7dcc),_0x245552['writer']['setAttribute']('data-author-id',_0x4cad8c,_0x4f7dcc),_0x245552['mapper']['bindElementToMarker'](_0x4f7dcc,_0x372086['markerName']),_0x13938e&&(this['activeMarkers']['includes'](_0x372086['markerName'])?_0x245552['writer']['addClass']('ck-suggestion-marker--active',_0x4f7dcc):_0x245552['writer']['removeClass']('ck-suggestion-marker--active',_0x4f7dcc));for(const _0x42da6b of _0x5deeac['model']['createRangeIn'](_0x372086['item'])['getItems']())_0x245552['consumable']['consume'](_0x42da6b,_0x4ed864['name']);_0x245552['consumable']['consume'](_0x372086['item'],_0x4ed864['name']);}};_0x5deeac['conversion']['for']('dataDowncast')['add'](_0x25e5f0=>{_0x25e5f0['on']('addMarker:suggestion:formatBlock',(_0x25143e,_0x4deed1,_0x50f958)=>{_0x50f958['options']['showSuggestionHighlights']&&_0x47bf7a({'showActiveMarkers':!0x1})(_0x25143e,_0x4deed1,_0x50f958);},{'priority':'highest'});}),_0x5deeac['conversion']['for']('dataDowncast')['add'](_0x24e0c7=>{_0x24e0c7['on']('addMarker:suggestion:attribute',(_0x4eb423,_0x543d52,_0x12e22c)=>{_0x12e22c['options']['showSuggestionHighlights']&&_0x47bf7a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4eb423,_0x543d52,_0x12e22c);},{'priority':'highest'});}),_0x5deeac['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x13328f,_0x46f47a)=>_0x46f47a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x13328f['substr'](0xb)}}),_0x5deeac['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5e609f,{writer:_0x99df0d})=>{let _0x3eb24f='suggestion:'+_0x5e609f['getAttribute']('suggestion-type')+':'+_0x5e609f['getAttribute']('id');return _0x5e609f['getAttribute']('marker-count')&&(_0x3eb24f+=':'+_0x5e609f['getAttribute']('marker-count')),_0x99df0d['createElement']('$marker',{'data-name':_0x3eb24f});}}),_0x5deeac['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5deeac['conversion']['for']('editingDowncast')['add'](_0x267b36=>{_0x267b36['on']('addMarker:suggestion:formatBlock',_0x47bf7a(),{'priority':'high'});}),_0x5deeac['conversion']['for']('editingDowncast')['add'](_0x590ca0=>{_0x590ca0['on']('addMarker:suggestion:attribute',_0x47bf7a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5deeac['conversion']['for']('editingDowncast')['add'](_0x32f95f=>{_0x32f95f['on']('removeMarker:suggestion:formatBlock',(_0x33de96,_0x27870c,_0x391f30)=>{const _0x5ba507=_0x391f30['mapper']['markerNameToElements'](_0x27870c['markerName']);if(_0x5ba507){for(const _0x539e92 of _0x5ba507)_0x539e92['getCustomProperty']('addHighlight')||(_0x391f30['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x539e92),_0x391f30['writer']['removeAttribute']('data-suggestion',_0x539e92),_0x391f30['writer']['removeAttribute']('data-author-id',_0x539e92),_0x391f30['mapper']['unbindElementFromMarkerName'](_0x539e92,_0x27870c['markerName']));}},{'priority':'high'});}),_0x5deeac['conversion']['for']('editingDowncast')['add'](_0xbedb4e=>{_0xbedb4e['on']('removeMarker:suggestion:attribute',(_0x4d8cb6,_0x41623f,_0x46deec)=>{const _0x3e23c3=_0x46deec['mapper']['markerNameToElements'](_0x41623f['markerName']);if(!_0x3e23c3)return;const {id:_0x3bad43}=this['_splitMarkerName'](_0x41623f['markerName']),_0x51ffc6=this['_suggestions']['get'](_0x3bad43),_0x444861=this['_getAttributeKey'](_0x51ffc6);if(this['_isBlockAttribute'](_0x444861)){for(const _0x1f9682 of _0x3e23c3)_0x1f9682['getCustomProperty']('addHighlight')||(_0x46deec['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1f9682),_0x46deec['writer']['removeAttribute']('data-suggestion',_0x1f9682),_0x46deec['writer']['removeAttribute']('data-author-id',_0x1f9682),_0x46deec['mapper']['unbindElementFromMarkerName'](_0x1f9682,_0x41623f['markerName']));}},{'priority':'high'});}),_0x5deeac['model']['document']['registerPostFixer'](_0x1dea20=>{let _0x4af7bc=!0x1;const _0x433d8c=Array['from'](_0x5deeac['model']['document']['differ']['getChangedMarkers']()),_0x12f2c3=new Set();for(const {name:_0x420470,data:_0x4f8f50}of _0x433d8c){const {group:_0x3589d6,type:_0x3754ec,subType:_0x121f08,id:_0x3bcd33}=this['_splitMarkerName'](_0x420470);if('suggestion'!==_0x3589d6)continue;const _0xecc204=this['_suggestions']['get'](_0x3bcd33);if(null!=_0x4f8f50['newRange']){'formatInline'==_0x3754ec&&(_0x4af7bc=_0x4af7bc||Lt(_0x4f8f50['newRange'],_0x420470,_0x1dea20,_0x5deeac['model']['schema']));const _0x5b31ef='attribute'==_0x3754ec&&this['_isBlockAttribute'](_0x121f08['split']('|')[0x0]);if(_0x4f8f50['newRange']['isCollapsed']||'$graveyard'==_0x4f8f50['newRange']['root']['rootName']||'formatBlock'==_0x3754ec&&!Kt(_0x4f8f50['newRange'])||_0x5b31ef&&!Kt(_0x4f8f50['newRange'])||'deletion'==_0x3754ec&&!(!Gt(_0x59372e=_0x4f8f50['newRange'])&&!function(_0x1e4a25){return _0x1e4a25['start']['parent']==_0x1e4a25['end']['nodeBefore']&&_0x1e4a25['start']['isAtEnd'];}(_0x59372e)))_0x1dea20['removeMarker'](_0x420470),_0x4af7bc=!0x0;else{if(!_0xecc204||!_0xecc204['isInContent'])continue;if(_0x4f8f50['newRange']&&_0x4f8f50['oldRange']&&_0x4f8f50['newRange']['isEqual'](_0x4f8f50['oldRange']))continue;_0x12f2c3['add'](_0xecc204);}}}var _0x59372e;return _0x12f2c3['size']>0x0&&(_0x4af7bc=!!this['_joinWithAdjacentSuggestions'](_0x12f2c3)||_0x4af7bc),_0x4af7bc;}),_0x5deeac['model']['document']['registerPostFixer'](_0x442b8d=>{let _0x4bd7b0=!0x1;for(const _0x1364ec of _0x5deeac['model']['document']['differ']['getChanges']())if('insert'==_0x1364ec['type'])for(const _0x37cbe3 of this['_suggestions']['values']()){if(_0x37cbe3['isMultiRange']||!_0x37cbe3['isInContent'])continue;const _0x42934b='formatBlock'==_0x37cbe3['type'],_0x250fe2=this['_getAttributeKey'](_0x37cbe3),_0x592882=_0x250fe2&&this['_isBlockAttribute'](_0x250fe2);if(!_0x42934b&&!_0x592882)continue;const _0x317582=_0x37cbe3['getFirstRange']();if(_0x317582['start']['parent']!=_0x317582['end']['parent']&&!_0x317582['end']['isAtEnd']){const _0x32848d=_0x5deeac['model']['createPositionAt'](_0x317582['start']['nodeAfter'],'end'),_0x573bb6=_0x5deeac['model']['createRange'](_0x317582['start'],_0x32848d);_0x442b8d['updateMarker'](_0x37cbe3['getFirstMarker'](),{'range':_0x573bb6}),_0x4bd7b0=!0x0;}}return _0x4bd7b0;}),_0x5deeac['model']['document']['registerPostFixer'](_0x2c2d4c=>this['_processAttributeChanges'](_0x2c2d4c)),_0x5deeac['model']['document']['registerPostFixer'](_0x187d50=>!_0x187d50['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x187d50)),_0x5deeac['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5deeac['model']['document']['on']('change:data',(_0xb398c1,_0x414b37)=>{if(!_0x414b37['isLocal']||_0x414b37['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x39a1a7=_0x5deeac['model']['document']['differ']['getChanges']();if(0x0==_0x39a1a7['length'])return;const _0x52b3c8=[],_0x1200a9=_0x39a1a7['filter'](_0x39c23d=>'attribute'==_0x39c23d['type']),_0x4c5d14=_0x39a1a7['filter'](_0x275e96=>'insert'==_0x275e96['type']&&'$text'!=_0x275e96['name']);for(const _0x4f6653 of _0x1200a9)this['_isRegisteredAttribute'](_0x4f6653['attributeKey'])&&_0x52b3c8['push']({'key':_0x4f6653['attributeKey'],'newValue':_0x4f6653['attributeNewValue'],'oldValue':_0x4f6653['attributeOldValue'],'range':Ht(_0x4f6653['range'],_0x5deeac['model'])});for(const _0x115cd2 of _0x4c5d14){if('rename'!=_0x115cd2['action']&&'refresh'!=_0x115cd2['action'])continue;const _0x419977=qt(_0x115cd2['position']['nodeAfter'],_0x5deeac['model']),_0x5f1a2f=_0x115cd2['before'];'rename'==_0x115cd2['action']&&_0x52b3c8['push']({'key':u,'newValue':_0x115cd2['name'],'oldValue':_0x5f1a2f['name'],'range':_0x419977});for(const [_0x459787,_0x463238]of _0x5f1a2f['attributes']){if(!this['_isRegisteredAttribute'](_0x459787))continue;const _0x36ca2d=_0x115cd2['attributes']['get'](_0x459787);_0x463238!==_0x36ca2d&&_0x52b3c8['push']({'key':_0x459787,'newValue':_0x36ca2d,'oldValue':_0x463238,'range':_0x419977});}for(const [_0x390e87,_0xed09aa]of _0x115cd2['attributes'])this['_isRegisteredAttribute'](_0x390e87)&&(_0x5f1a2f['attributes']['has'](_0x390e87)||_0x52b3c8['push']({'key':_0x390e87,'newValue':_0xed09aa,'oldValue':null,'range':_0x419977}));}0x0!=_0x52b3c8['length']&&_0x5deeac['model']['enqueueChange'](_0x414b37,_0x71aa9f=>{const _0x14da8b=_0x437d48();for(const {range:_0x1f57d6,key:_0xc83f2f,oldValue:_0x55eb5f,newValue:_0x1d873b}of _0x52b3c8)this['markAttributeChange'](_0x1f57d6,_0xc83f2f,_0x55eb5f,_0x1d873b,{'groupId':_0x14da8b});this['_reduceExistingSuggestions'](_0x71aa9f,_0x52b3c8);});},{'priority':'lowest'}),_0x5deeac['model']['markers']['on']('update:suggestion',(_0xdb95d9,_0x412be1,_0x585291)=>{if(null==_0x585291){const {id:_0x41df29}=this['_splitMarkerName'](_0x412be1['name']),_0x1ea4e7=this['_suggestions']['get'](_0x41df29);_0x1ea4e7&&_0x1ea4e7['addMarkerName'](_0x412be1['name']);}}),_0x5deeac['model']['document']['on']('change:data',()=>{const _0x5dad79=Array['from'](_0x5deeac['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2c6321=>'suggestion'===this['_splitMarkerName'](_0x2c6321['name'])['group']);if(0x0===_0x5dad79['length'])return;_0x5dad79['sort']((_0x226686,_0x14be82)=>{const _0x3a2e5b=_0x226686['data']['oldRange'],_0x1bb217=_0x14be82['data']['oldRange'];return null===_0x3a2e5b&&null===_0x1bb217?0x0:null===_0x3a2e5b&&null!==_0x1bb217?-0x1:null!==_0x3a2e5b&&null===_0x1bb217?0x1:_0x3a2e5b['start']['isBefore'](_0x1bb217['start'])?-0x1:0x1;});const _0xc472c3=new Set(),_0x3db215=new Set();for(const {name:_0x10aac0,data:_0x450821}of _0x5dad79){const {id:_0x416335}=this['_splitMarkerName'](_0x10aac0);if(null===_0x450821['oldRange']){const _0xeede1c=this['_handleNewSuggestionMarker'](_0x10aac0);_0x3db215['add'](_0xeede1c);}else{const _0x447f5c=this['_suggestions']['get'](_0x416335);null!==_0x450821['newRange']||_0x447f5c['isInContent']?(_0xc472c3['add'](_0x447f5c['head']),_0x3db215['add'](_0x447f5c)):this['_removeSuggestion'](_0x447f5c);}}_0x3db215['size']>0x0&&this['_refreshSuggestionsChain'](_0x3db215);for(const _0x568095 of _0xc472c3)this['fire']('suggestionChanged',_0x568095);}),_0x5deeac['model']['on']('applyOperation',(_0x19a21b,_0x48948e)=>{const _0x5c6035=_0x48948e[0x0];if(!this['_suggestions']['size'])return;if(!_0x5c6035['isDocumentOperation'])return;if(_0x5c6035['batch']['isUndo']||!_0x5c6035['batch']['isLocal'])return;let _0x419eba,_0xc9a53b;switch(_0x5c6035['type']){case'insert':_0x419eba=_0x5deeac['model']['createPositionAt'](_0x5c6035['position']),_0xc9a53b=_0x419eba['getShiftedBy'](_0x5c6035['howMany']);break;case'split':_0x419eba=_0x5deeac['model']['createPositionAt'](_0x5c6035['splitPosition']),_0xc9a53b=_0x5deeac['model']['createPositionAt'](_0x5c6035['moveTargetPosition']);break;case'move':_0x419eba=_0x5deeac['model']['createPositionAt'](_0x5c6035['targetPosition']),_0xc9a53b=_0x419eba['getShiftedBy'](_0x5c6035['howMany']);break;default:return;}const _0x30b402=_0x5deeac['model']['createRange'](_0x419eba,_0xc9a53b);_0x5deeac['model']['change'](()=>{for(const {suggestion:_0xc76f9a,meta:_0x45e3e7}of this['_findSuggestions'](_0x30b402)){if(_0xc76f9a['isMultiRange'])continue;if('formatInline'==_0xc76f9a['type'])continue;const _0x31d1ad=this['_getAttributeKey'](_0xc76f9a);if(_0x31d1ad&&this['_isBlockAttribute'](_0x31d1ad)&&'split'!=_0x5c6035['type'])continue;const _0x4be939=_0xc76f9a['data']&&_0xc76f9a['data']['multipleBlocks'];('formatBlock'!=_0xc76f9a['type']||'split'==_0x5c6035['type']&&!_0x4be939)&&(_0x45e3e7['containsRangeInObject']||'insertion'==_0xc76f9a['type']&&_0x45e3e7['isOwn']||_0xc76f9a['getFirstRange']()['containsRange'](_0x30b402)&&this['_breakSuggestionMarker'](_0xc76f9a,_0x419eba,_0xc9a53b));}});},{'priority':'lowest'}),_0x5deeac['model']['on']('deleteContent',(_0x4becdc,_0x368651)=>{const _0x28437a=_0x368651[0x0],_0x62f5e2=_0x368651[0x1];if(_0x62f5e2&&_0x62f5e2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x28437a['isCollapsed'])return;const _0x262714=_0x5deeac['model']['schema'],{start:_0x3905e6,end:_0x1e10b6}=_0x28437a['getFirstRange'](),_0x4028d6=_0x3905e6['nodeAfter']&&_0x262714['isLimit'](_0x3905e6['nodeAfter'])?null:_0x262714['getNearestSelectionRange'](_0x3905e6,'forward'),_0x581f1c=_0x1e10b6['nodeBefore']&&_0x262714['isLimit'](_0x1e10b6['nodeBefore'])?null:_0x262714['getNearestSelectionRange'](_0x1e10b6,'backward'),_0x372cd3=_0x5deeac['model']['createRange'](_0x4028d6?_0x4028d6['start']:_0x3905e6,_0x581f1c?_0x581f1c['end']:_0x1e10b6);_0x5deeac['model']['change'](_0x3974dd=>{this['markDeletion'](_0x372cd3);const _0x9e963=_0x5deeac['model']['schema']['getNearestSelectionRange'](_0x372cd3['start']);_0x28437a['is']('documentSelection')?_0x3974dd['setSelection'](_0x9e963):_0x28437a['setTo'](_0x9e963);}),_0x4becdc['stop']();},{'priority':_0x2c349d['normal']+0xa}),_0x5deeac['model']['on']('insertContent',(_0xb1a1c5,_0x37d4db)=>{const _0x143148=_0x37d4db[_0x37d4db['length']-0x1];_0x143148&&_0x143148['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5deeac['model']['change'](()=>{let _0x5b0ae8=_0x5deeac['model']['insertContent'](_0x37d4db[0x0],_0x37d4db[0x1],_0x37d4db[0x2],{'forceDefaultExecution':!0x0});if(!_0x5b0ae8)return;_0xb1a1c5['return']=_0x5b0ae8['clone']();const _0x4b3164=_0x5b0ae8['end']['nodeBefore'],_0xd54f7=_0x5deeac['model']['schema'];_0x4b3164&&_0xd54f7['isBlock'](_0x4b3164)&&!_0xd54f7['isObject'](_0x4b3164)&&(_0x5b0ae8=_0x5deeac['model']['createRange'](_0x5b0ae8['start'],_0x5deeac['model']['createPositionAt'](_0x4b3164,'end'))),this['markInsertion'](_0x5b0ae8);}),_0xb1a1c5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x51b816=new O(_0x5deeac,this['_suggestions']);_0x5deeac['commands']['add']('acceptSuggestion',_0x51b816),this['enableCommand']('acceptSuggestion');const _0x33a2f4=new R(_0x5deeac,this['_suggestions']);_0x5deeac['commands']['add']('discardSuggestion',_0x33a2f4),this['enableCommand']('discardSuggestion'),_0x5deeac['commands']['add']('acceptAllSuggestions',new x(_0x5deeac,_0x51b816,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5deeac['commands']['add']('discardAllSuggestions',new x(_0x5deeac,_0x33a2f4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5deeac['commands']['add']('acceptSelectedSuggestions',new E(_0x5deeac,_0x51b816,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5deeac['commands']['add']('discardSelectedSuggestions',new E(_0x5deeac,_0x33a2f4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3565d5=_0x5deeac['plugins']['get']('CommentsRepository');this['listenTo'](_0x3565d5,'addComment',(_0x5addea,{threadId:_0x35b8fd})=>{const _0x4a34ab=this['_suggestions']['get'](_0x35b8fd);_0x4a34ab&&_0x4a34ab['commentThread']&&0x1===_0x4a34ab['commentThread']['length']&&this['_updateSuggestionData'](_0x35b8fd,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3565d5,'removeComment',(_0x4c9768,{threadId:_0x1096e8})=>{const _0x5b523a=this['_suggestions']['get'](_0x1096e8);_0x5b523a&&_0x5b523a['commentThread']&&!_0x5b523a['commentThread']['length']&&this['_updateSuggestionData'](_0x1096e8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x17f881){const _0xcc8f39=_0x4f2da2([0x53,0x79,0x66,0x72,0x71,0x30,0x6b,0x4d,0x54,0x55,0x31,0x44,0x62,0x36,0x35,0x33,0x69,0x46,0x74,0x50,0x4b,0x4c,0x6c,0x68,0x70,0x78,0x64,0x65,0x63,0x38,0x73,0x6f,0x61,0x37,0x32,0x59,0x34,0x58,0x57,0x39,0x75,0x7a,0x6e,0x51,0x47,0x67,0x52,0x76,0x45,0x43,0x6a,0x77,0x4f,0x4e,0x49,0x4a,0x5a,0x56,0x48,0x41,0x6d,0x42]),_0x1f3de2=0x125a7558,_0x979288=0x125d14d0^_0x1f3de2,_0x20599e=window[_0x4f2da2([0x44,0x61,0x74,0x65])][_0x4f2da2([0x6e,0x6f,0x77])](),_0x52abba=_0x17f881[_0x4f2da2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12d515=new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe3726=>{_0x52abba[_0x4f2da2([0x6f,0x6e,0x63,0x65])](_0x4f2da2([0x72,0x65,0x61,0x64,0x79]),_0xe3726);}),_0x475279={[_0x4f2da2([0x6b,0x74,0x79])]:_0x4f2da2([0x45,0x43]),[_0x4f2da2([0x75,0x73,0x65])]:_0x4f2da2([0x73,0x69,0x67]),[_0x4f2da2([0x63,0x72,0x76])]:_0x4f2da2([0x50,0x2d,0x32,0x35,0x36]),[_0x4f2da2([0x78])]:_0x4f2da2([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4f2da2([0x79])]:_0x4f2da2([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4f2da2([0x61,0x6c,0x67])]:_0x4f2da2([0x45,0x53,0x32,0x35,0x36])},_0x605f97=_0x52abba[_0x4f2da2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f2da2([0x67,0x65,0x74])](_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xfd0252(){let _0x50941c,_0x4bf3e6=null,_0x1c0810=null;try{if(_0x605f97==_0x4f2da2([0x47,0x50,0x4c]))return _0x4f2da2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50941c=_0x280113(),!_0x50941c)return _0x4f2da2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50941c[_0x4f2da2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c0810=_0x1d1a33(_0x50941c[_0x4f2da2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50941c[_0x4f2da2([0x6a,0x74,0x69])])),await _0x31ac81()?_0x58082c()?_0x24c902()?_0x4f2da2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45a842()?(_0x50941c[_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f2da2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4bf3e6=_0x406cf5(_0x4f2da2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50941c[_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f2da2([0x74,0x72,0x69,0x61,0x6c])&&(_0x4bf3e6=_0x406cf5(_0x4f2da2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a1187()):_0x4f2da2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f2da2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f2da2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x52fdba){return _0x4f2da2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x24c902(){const _0xdbd70d=[_0x4f2da2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f2da2([0x74,0x72,0x69,0x61,0x6c])][_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50941c[_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20599e/0x3e8:0xe10*_0x979288;return _0x50941c[_0x4f2da2([0x65,0x78,0x70])]<_0xdbd70d;}function _0x58082c(){const _0x3fd2e4=_0x50941c[_0x4f2da2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3fd2e4)return!0x1;if(_0x3fd2e4[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f2da2([0x2a])))return!0x0;if(_0x3fd2e4[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f2da2([0x54,0x43])))return!0x0;if(_0x3fd2e4[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f2da2([0x52,0x54,0x43]))){if(_0xae7fb6())return!0x0;if(_0x2cc6f7()||_0x27dc66())return!0x0;}return!0x1;}function _0x45a842(){const _0x11dd7d=_0x50941c[_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11dd7d||0x0==_0x11dd7d[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x414171}=new URL(window[_0x4f2da2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11dd7d[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x414171))return!0x0;const _0x11395a=_0x414171[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])](_0x4f2da2([0x2e]));return _0x11dd7d[_0x4f2da2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x448f23=>_0x448f23[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f2da2([0x2a])))[_0x4f2da2([0x6d,0x61,0x70])](_0x14e891=>_0x14e891[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])](_0x4f2da2([0x2e])))[_0x4f2da2([0x73,0x6f,0x6d,0x65])](_0x5ac538=>_0x11395a[_0x4f2da2([0x65,0x76,0x65,0x72,0x79])]((_0x1f4889,_0x36f9dc)=>_0x5ac538[_0x36f9dc]===_0x1f4889||_0x5ac538[_0x36f9dc]===_0x4f2da2([0x2a])));}function _0x3a1187(){return _0x4bf3e6&&_0x1c0810?new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c5e39,_0xa32954)=>{_0x4bf3e6[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x3c5e39,_0xa32954),_0x1c0810[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x5107b9=>{_0x5107b9!=_0x4f2da2([0x56,0x61,0x6c,0x69,0x64])&&_0x3c5e39(_0x5107b9);},_0xa32954);}):_0x4bf3e6||_0x1c0810||_0x4f2da2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d1a33(_0x1a156b,_0x17b964){return new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d9a22=>{if(_0x4aaefa())return _0x4d9a22(_0x4f2da2([0x56,0x61,0x6c,0x69,0x64]));_0x56e51b(),_0x52abba[_0x4f2da2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f2da2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b90da=!0x1;const _0x48fa34=_0x437d48();function _0x2a7974(_0x4fe51e){return!!_0x4fe51e&&(typeof _0x4fe51e===_0x4f2da2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4fe51e===_0x4f2da2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4fe51e[_0x4f2da2([0x74,0x68,0x65,0x6e])]===_0x4f2da2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4fe51e[_0x4f2da2([0x63,0x61,0x74,0x63,0x68])]===_0x4f2da2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x130810(_0x3fa228){_0x2efe17(_0x3fa228)[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x382cdd=>{if(!_0x382cdd||_0x382cdd[_0x4f2da2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f2da2([0x6f,0x6b]))return _0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x463ad4(_0x2509e5(_0x48fa34+_0x17b964))!=_0x382cdd[_0x4f2da2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f2da2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x33b7bf=>(_0x20f740(),_0x33b7bf),()=>{const _0x34ed7e=_0x2fd5b4();return null==_0x34ed7e?(_0x20f740(),_0x4f2da2([0x56,0x61,0x6c,0x69,0x64])):_0x4f2da2(_0x20599e-_0x34ed7e>(0x3656f158^_0x1f3de2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x4d9a22)[_0x4f2da2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d9a22(_0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b37f2=0x126c9bd8^_0x1f3de2;function _0x20f740(){const _0x291df1=_0x4f2da2([0x6c,0x6c,0x63,0x74,0x2d])+_0x463ad4(_0x2509e5(_0x1a156b)),_0x55c090=_0x45b094(_0x463ad4(window[_0x4f2da2([0x4d,0x61,0x74,0x68])][_0x4f2da2([0x63,0x65,0x69,0x6c])](_0x20599e/_0x4b37f2)));window[_0x4f2da2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f2da2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x291df1,_0x55c090);}function _0x2fd5b4(){const _0x93b40a=_0x4f2da2([0x6c,0x6c,0x63,0x74,0x2d])+_0x463ad4(_0x2509e5(_0x1a156b)),_0x2af2a6=window[_0x4f2da2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f2da2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x93b40a);return _0x2af2a6?window[_0x4f2da2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45b094(_0x2af2a6),0x10)*_0x4b37f2:null;}function _0x2efe17(_0xec68b3){return new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58cd99,_0x2ffbfc)=>{_0xec68b3[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x58cd99,_0x2ffbfc),window[_0x4f2da2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ffbfc,0x125ba198^_0x1f3de2);});}}_0x52abba[_0x4f2da2([0x6f,0x6e])](_0x4f2da2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x574834,_0x160bf5)=>{if(_0x160bf5[0x0]!=_0x1a156b)return _0x4d9a22(_0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x160bf5[0x1]={..._0x160bf5[0x1],[_0x4f2da2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x48fa34};},{[_0x4f2da2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f2da2([0x68,0x69,0x67,0x68])}),_0x52abba[_0x4f2da2([0x6f,0x6e])](_0x4f2da2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12d2b7=>{_0x2a7974(_0x12d2b7[_0x4f2da2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b90da=!0x0,_0x130810(_0x12d2b7[_0x4f2da2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f2da2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f2da2([0x6c,0x6f,0x77])}),_0x12d515[_0x4f2da2([0x74,0x68,0x65,0x6e])](()=>{_0x2b90da||_0x4d9a22(_0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4aaefa(){return _0x52abba[_0x4f2da2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f2da2([0x76,0x69,0x65,0x77])][_0x4f2da2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f2da2([0x61,0x75,0x74,0x6f]);}function _0x56e51b(){_0x52abba[_0x4f2da2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f2da2([0x76,0x69,0x65,0x77])][_0x4f2da2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f2da2([0x61,0x75,0x74,0x6f]);}}function _0x406cf5(_0x236f3f){const _0x526519=[new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d93fd=>setTimeout(_0x2d93fd,0x12534b94^_0x1f3de2)),_0x12d515[_0x4f2da2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e07c6=>{let _0x16ca6d=0x0;_0x52abba[_0x4f2da2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f2da2([0x6f,0x6e])](_0x4f2da2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ccae2,_0x397ce5)=>{_0x397ce5[0x0][_0x4f2da2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16ca6d++,_0x16ca6d==(0x125a74a0^_0x1f3de2)&&(_0x4e07c6(),_0x1ccae2[_0x4f2da2([0x6f,0x66,0x66])]());});}))];return window[_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f2da2([0x72,0x61,0x63,0x65])](_0x526519)[_0x4f2da2([0x74,0x68,0x65,0x6e])](()=>_0x236f3f);}async function _0xf6fbfb(){await _0x12d515,_0x52abba[_0x4f2da2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f2da2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e26f2,_0x52abba[_0x4f2da2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f2da2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e26f2,_0x52abba[_0x4f2da2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f2da2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xae7fb6(){return _0x4db4b5(_0x4f2da2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2b78ba(_0x4f2da2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f2da2([0x73,0x74,0x61,0x74,0x65])]==_0x4f2da2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2cc6f7(){return _0x4db4b5(_0x4f2da2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x27dc66(){return _0x4db4b5(_0x4f2da2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x7fad4c(_0x540864){const _0x45b3c8=_0x2e82e7();_0x52abba[_0x45b3c8]=_0x4f2da2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x540864,_0x540864!=_0x4f2da2([0x56,0x61,0x6c,0x69,0x64])&&_0xf6fbfb();}function _0x2e82e7(){const _0xe92774=window[_0x4f2da2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f2da2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f2da2([0x6e,0x6f,0x77])]())[_0x4f2da2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f2da2([0x2e]),'');let _0x22d53a=_0x4f2da2([0x53]);for(let _0x361e14=0x0;_0x361e14<_0xe92774[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x361e14+=0x2){let _0x23c5e3=window[_0x4f2da2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe92774[_0x4f2da2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x361e14,_0x361e14+0x2));_0x23c5e3>=_0xcc8f39[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x23c5e3-=_0xcc8f39[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22d53a+=_0xcc8f39[_0x23c5e3];}return _0x22d53a;}function _0x280113(){const _0x2500bb=_0x605f97[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])](_0x4f2da2([0x2e]));if(0x3!=_0x2500bb[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x258dd4(_0x2500bb[0x1]);function _0x258dd4(_0x5eed21){const _0x6cfb1f=_0x1346f9(_0x5eed21);return _0x6cfb1f&&_0x5536b0()?_0x6cfb1f:null;function _0x5536b0(){const _0x3b1a95=_0x6cfb1f[_0x4f2da2([0x6a,0x74,0x69])],_0x1ff955=window[_0x4f2da2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b1a95[_0x4f2da2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b1a95[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31fbd6={..._0x6cfb1f,[_0x4f2da2([0x6a,0x74,0x69])]:_0x3b1a95[_0x4f2da2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b1a95[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31fbd6[_0x4f2da2([0x76,0x63])],_0x2509e5(_0x31fbd6)==_0x1ff955;}}}async function _0x31ac81(){let _0x5cbffc=!0x0;try{const _0x2ee265=_0x605f97[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])](_0x4f2da2([0x2e])),[_0x5ce15f,_0x350740,_0x54146a]=_0x2ee265;return _0x2f22e8(_0x5ce15f),await _0x520bf3(_0x5ce15f,_0x350740,_0x54146a),_0x5cbffc;}catch(_0x3c6125){return!0x1;}function _0x2f22e8(_0x549fba){const _0x3694da=_0x1346f9(_0x549fba);_0x3694da&&_0x3694da[_0x4f2da2([0x61,0x6c,0x67])]==_0x4f2da2([0x45,0x53,0x32,0x35,0x36])||(_0x5cbffc=!0x1);}async function _0x520bf3(_0x1e43be,_0x3a5f9e,_0x1747f7){const _0xb4d8f0=window[_0x4f2da2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f2da2([0x66,0x72,0x6f,0x6d])](_0xb92a02(_0x1747f7),_0x5b52ee=>_0x5b52ee[_0x4f2da2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ba875=new window[(_0x4f2da2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f2da2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e43be+_0x4f2da2([0x2e])+_0x3a5f9e),_0x58edd5=window[_0x4f2da2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f2da2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58edd5)return;const _0x165606=await _0x58edd5[_0x4f2da2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f2da2([0x6a,0x77,0x6b]),_0x475279,{[_0x4f2da2([0x6e,0x61,0x6d,0x65])]:_0x4f2da2([0x45,0x43,0x44,0x53,0x41]),[_0x4f2da2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f2da2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f2da2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58edd5[_0x4f2da2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f2da2([0x6e,0x61,0x6d,0x65])]:_0x4f2da2([0x45,0x43,0x44,0x53,0x41]),[_0x4f2da2([0x68,0x61,0x73,0x68])]:{[_0x4f2da2([0x6e,0x61,0x6d,0x65])]:_0x4f2da2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x165606,_0xb4d8f0,_0x4ba875)||(_0x5cbffc=!0x1);}}function _0x1346f9(_0x25c537){return _0x25c537[_0x4f2da2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f2da2([0x65,0x79]))?JSON[_0x4f2da2([0x70,0x61,0x72,0x73,0x65])](_0xb92a02(_0x25c537)):null;}function _0xb92a02(_0x19391d){return window[_0x4f2da2([0x61,0x74,0x6f,0x62])](_0x19391d[_0x4f2da2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f2da2([0x2b]))[_0x4f2da2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f2da2([0x2f])));}function _0x2509e5(_0x2a383c){let _0x40c7f4=0x1505;function _0xa72dee(_0x2d23a0){for(let _0x249e61=0x0;_0x249e61<_0x2d23a0[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x249e61++){const _0xe5a327=_0x2d23a0[_0x4f2da2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x249e61);_0x40c7f4=(_0x40c7f4<<0x5)+_0x40c7f4+_0xe5a327,_0x40c7f4&=_0x40c7f4;}}function _0x310d58(_0x23abd4){Array[_0x4f2da2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23abd4)?_0x23abd4[_0x4f2da2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x310d58):_0x23abd4&&typeof _0x23abd4==_0x4f2da2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f2da2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23abd4)[_0x4f2da2([0x73,0x6f,0x72,0x74])]()[_0x4f2da2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x111246,_0x15cf3c])=>{_0xa72dee(_0x111246),_0x310d58(_0x15cf3c);}):_0xa72dee(window[_0x4f2da2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23abd4));}return _0x310d58(_0x2a383c),_0x40c7f4>>>0x0;}function _0x463ad4(_0x5b6930){return _0x5b6930[_0x4f2da2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f2da2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f2da2([0x30]));}function _0x45b094(_0x42e059){return _0x42e059[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f2da2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f2da2([0x6a,0x6f,0x69,0x6e])]('');}function _0x4db4b5(_0x12c2f3){return _0x52abba[_0x4f2da2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f2da2([0x68,0x61,0x73])](_0x12c2f3);}function _0x2b78ba(_0x5cc423){return _0x52abba[_0x4f2da2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f2da2([0x67,0x65,0x74])](_0x5cc423);}function _0x4e26f2(){}function _0x4f2da2(_0x580ffc){return _0x580ffc['map'](_0x273f6b=>String['fromCharCode'](_0x273f6b))['join']('');}_0x7fad4c(await _0xfd0252());}(this);}set['adapter'](_0x3917a8){if(this['_adapter'])throw new _0x3e1147('track-changes-adapter-already-set',this);this['_adapter']=_0x3917a8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x52b9b7=!0x1,toJSON:_0x53398a=!0x1}={}){const _0x2caec0=[];for(const _0x4c024e of this['_suggestions']['values']())_0x52b9b7&&!_0x4c024e['isInContent']||_0x2caec0['push'](_0x4c024e);return _0x53398a?_0x2caec0['map'](_0x2fa74f=>_0x2fa74f['toJSON']()):_0x2caec0;}['getSuggestion'](_0x3bdaf6){const _0x43d145=this['_suggestions']['get'](_0x3bdaf6);if(!_0x43d145)throw new _0x3e1147('track-changes-suggestion-not-found',this);return _0x43d145;}['hasSuggestion'](_0x265ef2){return this['_suggestions']['has'](_0x265ef2);}['addSuggestionData'](_0x30aa57){const {authorId:_0x373aba,id:_0x5bd5b2,attributes:_0x403d6d}=_0x30aa57,[_0x18dff0,_0x55441d]=_0x30aa57['type']['split'](':'),_0x5acb6c=this['_suggestions']['get'](_0x5bd5b2)||this['_createSuggestion'](_0x18dff0,_0x55441d,_0x5bd5b2,_0x373aba,_0x403d6d);if(this['_addThreadToSuggestion'](_0x5acb6c),this['_checkSuggestionCorrectness'](_0x5acb6c,_0x18dff0,_0x55441d||null,_0x373aba),_0x5acb6c['createdAt']=_0x30aa57['createdAt'],_0x5acb6c['_isDataLoaded']=!0x0,_0x403d6d&&_0x403d6d['@external']){const _0x4ba81d=_0x403d6d['@external'],_0x14cc7b=this['_getExternalAuthor'](_0x4ba81d['authorName']);_0x5acb6c['authoredAt']=_0x4ba81d['createdAt'],_0x5acb6c['author']=_0x14cc7b,_0x5acb6c['isExternal']=!0x0;}else _0x5acb6c['authoredAt']=_0x30aa57['createdAt'];switch(_0x30aa57['data']&&(_0x5acb6c['data']=_0x30aa57['data']),_0x30aa57['attributes']&&(_0x5acb6c['attributes']=_0x30aa57['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5acb6c['_saved']=!0x0),this['_suggestionState']['get'](_0x5acb6c)){case'notReady':this['_suggestionState']['set'](_0x5acb6c,'dataReady');break;case'markerReady':_0x5acb6c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5acb6c])),this['_refreshSuggestionsChain'](new Set([_0x5acb6c])),this['_suggestionState']['set'](_0x5acb6c,'ready'),this['fire']('suggestionLoaded',_0x5acb6c)):this['_suggestionState']['set'](_0x5acb6c,'removed');}return _0x5acb6c;}['acceptSuggestion'](_0x3ee8df){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41931f of _0x3ee8df['getAllAdjacentSuggestions']())_0x41931f['accept']();});});}['discardSuggestion'](_0x11c6f8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x45b835 of _0x11c6f8['getAllAdjacentSuggestions']())_0x45b835['discard']();});});}['enableCommand'](_0x3bc312,_0x3df545){const _0x460d17=this['editor']['commands']['get'](_0x3bc312);if(!_0x460d17)throw new _0x3e1147('track-changes-command-not-found',this,{'commandName':_0x3bc312});if(this['_enabledCommands']['has'](_0x460d17))throw new _0x3e1147('track-changes-enable-command-twice',this,{'commandName':_0x3bc312});this['_enabledCommands']['add'](_0x460d17),_0x3df545&&_0x460d17['on']('execute',(_0x125d36,_0x37adb9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x37adb9['length']>0x0&&_0x37adb9[_0x37adb9['length']-0x1]&&_0x37adb9[_0x37adb9['length']-0x1]['forceDefaultExecution']?_0x37adb9['pop']():(_0x125d36['return']=_0x3df545((..._0x5ebc8f)=>_0x460d17['execute'](..._0x5ebc8f,{'forceDefaultExecution':!0x0}),..._0x37adb9),_0x125d36['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3cf525){let _0x40563c,_0x19103e;const _0x3b3093=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x40563c=_0x3cf525();}catch(_0x406f19){_0x19103e=_0x406f19;}return _0x3b3093||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x19103e&&_0x3e1147['rethrowUnexpectedError'](_0x19103e,this),_0x40563c;}['markInsertion'](_0x1238b1,_0x56a853=null,_0xb49a43={}){if(_0x1238b1['isCollapsed'])return null;const _0x127222=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3f3848,meta:_0x50526a}of this['_findSuggestions'](_0x1238b1,'insertion'))if(_0x50526a['isOwn']){if(!_0x50526a['isNextTo']){if(_0x50526a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x3f3848,_0xb49a43))continue;return _0x3f3848;}if(Qt(_0x3f3848,_0xb49a43))return _0x3f3848;this['_breakSuggestionMarker'](_0x3f3848,_0x1238b1['start'],_0x1238b1['end']);break;}if(_0x56a853==_0x3f3848['subType']&&Qt(_0x3f3848,_0xb49a43)){const _0x792c89=_0x3f3848['getFirstRange']();return _0x792c89['start']['isEqual'](_0x1238b1['end'])?this['_setSuggestionRange'](_0x3f3848,this['_model']['createRange'](_0x1238b1['start'],_0x792c89['end'])):this['_setSuggestionRange'](_0x3f3848,this['_model']['createRange'](_0x792c89['start'],_0x1238b1['end'])),_0x3f3848;}}const _0x245e43=_0x437d48(),_0x450f88=_0x127222['id'],_0x34f055=_0x56a853?'insertion:'+_0x56a853:'insertion',_0x756ef2=this['_setSuggestionData']({'id':_0x245e43,'type':_0x34f055,'createdAt':new Date(),'authorId':_0x450f88,'attributes':_0xb49a43});return this['_addSuggestionMarker'](_0x34f055,_0x245e43,_0x450f88,_0x1238b1),_0x756ef2;}['markMultiRangeInsertion'](_0x5c5da0,_0x3e7c71='multi',_0x27c850={}){const _0x1c41ca=this['editor']['plugins']['get']('Users')['me'],_0x3e47eb=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3e7c71,'join');for(const _0x9dc198 of this['getSuggestions']())if(_0x9dc198['author']['id']==_0x1c41ca['id']&&'insertion'==_0x9dc198['type']&&_0x9dc198['subType']==_0x3e7c71&&Qt(_0x9dc198,_0x27c850)&&(_0x3e47eb(_0x9dc198['getRanges'](),_0x5c5da0)||_0x3e47eb(_0x5c5da0,_0x9dc198['getRanges']()))){for(const _0x298273 of _0x5c5da0)_0x9dc198['addRange'](_0x298273);return _0x9dc198;}for(const {suggestion:_0x10955c,meta:_0x153e9b}of this['_findSuggestions'](_0x5c5da0,'insertion')){if(!_0x153e9b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x153e9b['containsRangeInObject'])continue;if(!Qt(_0x10955c,_0x27c850))continue;let _0x3d04a7=!0x0;for(const _0x2d8674 of _0x10955c['getRanges']())for(const _0x437439 of _0x5c5da0)if(!_0x2d8674['containsRange'](_0x437439)){_0x3d04a7=!0x1;break;}if(_0x3d04a7)return _0x10955c;}const _0x311789=_0x437d48(),_0x12c8bd=_0x1c41ca['id'],_0x59eeef='insertion:'+_0x3e7c71,_0x2669a9=this['_setSuggestionData']({'id':_0x311789,'type':_0x59eeef,'createdAt':new Date(),'authorId':_0x12c8bd,'attributes':_0x27c850});for(const _0x4862cb of _0x5c5da0)this['_addSuggestionMarker'](_0x59eeef,_0x311789,_0x12c8bd,_0x4862cb,o['getMultiRangeId']());return _0x2669a9;}['markInlineFormat'](_0x3100d4,_0x4f7301,_0x1f2b53=null,_0x5c0c54={}){if(_0x1f2b53=_0x1f2b53||Jt(_0x4f7301),_0x3100d4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2f085f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f2b53,'accept');return this['forceDefaultExecution'](()=>_0x2f085f([_0x3100d4],_0x4f7301,_0x5c0c54)),null;}const _0x41cac3=this['editor']['plugins']['get']('Users')['me'],_0x5f37f3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x589a60,meta:_0x2ff504}of this['_findSuggestions'](_0x3100d4,'insertion'))_0x2ff504['isOwn']&&!_0x2ff504['isInsideObject']&&_0x5f37f3['push'](..._0x589a60['getRanges']());}const _0x5665d3=function(_0x504e45,_0x3825cf){const _0x49f33b=[];for(const _0x49c99a of _0x3825cf){const _0x563375=_0x504e45['getIntersection'](_0x49c99a);_0x563375&&_0x49f33b['push'](_0x563375);}return _0x49f33b;}(_0x3100d4,_0x5f37f3),_0xbc8520=function(_0x67cadd,_0x114c0d){const _0xf1b2ee=[_0x67cadd];for(const _0x112b0a of _0x114c0d){let _0x1ba8a4=0x0;for(;_0x1ba8a4<_0xf1b2ee['length'];){const _0x5b94e1=_0xf1b2ee[_0x1ba8a4]['getDifference'](_0x112b0a);_0xf1b2ee['splice'](_0x1ba8a4,0x1,..._0x5b94e1),_0x1ba8a4+=_0x5b94e1['length'];}}return _0xf1b2ee;}(_0x3100d4,_0x5f37f3);_0x5665d3['length']&&this['_model']['change'](()=>{for(const _0x5bd2ce of _0x5665d3){const _0x812022=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f2b53,'accept');this['forceDefaultExecution'](()=>_0x812022([_0x5bd2ce],_0x4f7301,_0x5c0c54));}});for(const _0x4e5ac9 of _0xbc8520){let _0x2f8ad2=null,_0x46f38a=_0x4e5ac9['start'],_0x40d58c=_0x4e5ac9['end'];for(const {suggestion:_0x7977b9,meta:_0x39ee3f}of this['_findSuggestions'](_0x4e5ac9,'formatInline')){if(!_0x39ee3f['isOwn'])continue;if(_0x7977b9['subType']!=_0x1f2b53)continue;if(!Qt(_0x7977b9,_0x5c0c54))continue;const _0x190042=_0x7977b9['getFirstRange']();if(_0x190042['containsRange'](_0x4e5ac9,!0x0))return null;_0x46f38a=_0x46f38a['isBefore'](_0x190042['start'])?_0x46f38a:_0x190042['start'],_0x40d58c=_0x40d58c['isAfter'](_0x190042['end'])?_0x40d58c:_0x190042['end'],_0x2f8ad2?_0x190042['start']['isBefore'](_0x2f8ad2['getFirstRange']()['start'])?(_0x2f8ad2['removeMarkers'](),_0x2f8ad2=_0x7977b9):_0x7977b9['removeMarkers']():_0x2f8ad2=_0x7977b9;}const _0x559a98=this['_model']['createRange'](_0x46f38a,_0x40d58c);if(_0x2f8ad2)this['_setSuggestionRange'](_0x2f8ad2,_0x559a98);else{const _0x8041a3=_0x437d48(),_0x3a8590=_0x41cac3['id'];this['_setSuggestionData']({'id':_0x8041a3,'type':'formatInline:'+_0x1f2b53,'data':_0x4f7301,'createdAt':new Date(),'authorId':_0x3a8590,'attributes':_0x5c0c54}),this['_addSuggestionMarker']('formatInline:'+_0x1f2b53,_0x8041a3,_0x3a8590,_0x559a98);}}return null;}['markBlockFormat'](_0x435a67,_0x5cf08e,_0x9e7b09=[],_0x29f871=null,_0x176948={}){_0x5cf08e['formatGroupId']||(_0x5cf08e['formatGroupId']=_0x5cf08e['commandName']),_0x5cf08e['multipleBlocks']=_0x435a67['is']('range'),_0x29f871=_0x29f871||Jt(_0x5cf08e);const _0x1abed7=_0x9e7b09['map'](_0x2a0d02=>qt(_0x2a0d02,this['_model'])),_0x398f1a=_0x435a67['is']('range')?_0x435a67:qt(_0x435a67,this['_model']);if('never'===this['_trackFormatChanges']){const _0x32b96c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29f871,'accept');return this['forceDefaultExecution'](()=>_0x32b96c([_0x398f1a],_0x5cf08e,_0x176948)),null;}_0x1abed7['push'](_0x398f1a);let _0x47081e=!0x0;for(const _0x111721 of _0x1abed7)if(!this['_rangeIsInLocalUserInsertion'](_0x111721)){_0x47081e=!0x1;break;}if(_0x47081e&&'always'!==this['_trackFormatChanges']){const _0x1ac1a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29f871,'accept');return this['forceDefaultExecution'](()=>_0x1ac1a7([_0x398f1a],_0x5cf08e,_0x176948)),null;}let _0x33bc3f=null,_0x3db96b=_0x398f1a['start'],_0x1ff511=_0x398f1a['end'];for(const {suggestion:_0x214e40,meta:_0x574d07}of this['_findSuggestions'](_0x398f1a,'formatBlock')){if(!_0x574d07['isOwn'])continue;if(_0x574d07['isNextTo']||_0x574d07['containsRangeInObject']||_0x574d07['isInsideObject'])continue;if(_0x214e40['data']['formatGroupId']!=_0x5cf08e['formatGroupId'])continue;if(!Qt(_0x214e40,_0x176948))continue;const _0x5a0eec=_0x214e40['getFirstRange']();if(_0x214e40['subType']==_0x29f871){if(_0x5a0eec['containsRange'](_0x398f1a,!0x0))return null;_0x3db96b=_0x3db96b['isBefore'](_0x5a0eec['start'])?_0x3db96b:_0x5a0eec['start'],_0x1ff511=_0x1ff511['isAfter'](_0x5a0eec['end'])?_0x1ff511:_0x5a0eec['end'],_0x33bc3f?_0x5a0eec['start']['isBefore'](_0x33bc3f['getFirstRange']()['start'])?(_0x33bc3f['removeMarkers'](),_0x33bc3f=_0x214e40):_0x214e40['removeMarkers']():_0x33bc3f=_0x214e40;}else{const _0x21094c=_0x398f1a['getIntersection'](_0x5a0eec);this['_cutOutSuggestionMarker'](_0x214e40,_0x21094c);}}const _0xf6d99c=this['editor']['plugins']['get']('Users')['me'],_0x467f15=_0x437d48(),_0x4e3bca=_0xf6d99c['id'];if(_0x33bc3f)return this['_setSuggestionRange'](_0x33bc3f,this['_model']['createRange'](_0x3db96b,_0x1ff511)),_0x33bc3f;{const _0x210b03=this['_setSuggestionData']({'id':_0x467f15,'type':'formatBlock:'+_0x29f871,'data':_0x5cf08e,'createdAt':new Date(),'authorId':_0x4e3bca,'attributes':_0x176948});return this['_addSuggestionMarker']('formatBlock:'+_0x29f871,_0x467f15,_0x4e3bca,this['_model']['createRange'](_0x3db96b,_0x1ff511)),_0x210b03;}}['markMultiRangeBlockFormat'](_0x5caedc,_0x6484be,_0x40818f=[],_0x165c65=null,_0x1dfd29={}){_0x6484be['formatGroupId']||(_0x6484be['formatGroupId']=_0x6484be['commandName']);const _0x3b1aa3=_0x5caedc[0x0];_0x6484be['multipleBlocks']=_0x3b1aa3['is']('range'),_0x165c65=_0x165c65||Jt(_0x6484be);const _0x3b672d=_0x40818f['map'](_0x599061=>qt(_0x599061,this['_model'])),_0xa2755e=_0x3b1aa3['is']('range')?_0x5caedc:_0x5caedc['map'](_0x27574d=>qt(_0x27574d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4a3933=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x165c65,'accept');return this['forceDefaultExecution'](()=>_0x4a3933(_0xa2755e,_0x6484be,_0x1dfd29)),null;}_0x3b672d['push'](..._0xa2755e);let _0x435b70=!0x0;for(const _0x18ce87 of _0x3b672d)if(!this['_rangeIsInLocalUserInsertion'](_0x18ce87)){_0x435b70=!0x1;break;}if(_0x435b70&&'always'!==this['_trackFormatChanges']){const _0x57e43e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x165c65,'accept');return this['forceDefaultExecution'](()=>_0x57e43e(_0xa2755e,_0x6484be,_0x1dfd29)),null;}const _0x3305cd=this['editor']['plugins']['get']('Users')['me'];for(const _0x1e265b of this['getSuggestions']()){if(_0x1e265b['author']['id']!=_0x3305cd['id'])continue;if('formatBlock'!=_0x1e265b['type']||_0x1e265b['data']['formatGroupId']!=_0x6484be['formatGroupId'])continue;if(!Qt(_0x1e265b,_0x1dfd29))continue;const _0x482132=_0x1e265b['subType']==_0x165c65;for(let _0xa6f304=0x0;_0xa6f304<_0xa2755e['length'];_0xa6f304++){const _0x2687f0=_0xa2755e[_0xa6f304];for(const _0x27f3a1 of _0x1e265b['getMarkers']()){const _0x5249d1=_0x27f3a1['getRange']();if(_0x2687f0['isEqual'](_0x5249d1)){_0x482132?(_0xa2755e['splice'](_0xa6f304,0x1),_0xa6f304--):_0x1e265b['removeMarker'](_0x27f3a1['name']);break;}}}}if(0x0==_0xa2755e['length'])return null;const _0x3f0f32=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x165c65,'join');for(const _0x30dcd5 of this['getSuggestions']())if(_0x30dcd5['author']['id']==_0x3305cd['id']&&'formatBlock'==_0x30dcd5['type']&&_0x30dcd5['data']['formatGroupId']==_0x6484be['formatGroupId']&&_0x30dcd5['subType']==_0x165c65&&Qt(_0x30dcd5,_0x1dfd29)&&(_0x3f0f32(_0x30dcd5['getRanges'](),_0xa2755e)||_0x3f0f32(_0xa2755e,_0x30dcd5['getRanges']()))){for(const _0x318d25 of _0xa2755e)_0x30dcd5['addRange'](_0x318d25);return _0x30dcd5;}const _0x59c4d4=_0x437d48(),_0x33cb15=_0x3305cd['id'],_0x4b0a86='formatBlock:'+_0x165c65,_0x3eafad=this['_setSuggestionData']({'id':_0x59c4d4,'type':_0x4b0a86,'data':_0x6484be,'createdAt':new Date(),'authorId':_0x33cb15,'attributes':_0x1dfd29});for(const _0x5177c5 of _0xa2755e)this['_addSuggestionMarker'](_0x4b0a86,_0x59c4d4,_0x33cb15,_0x5177c5,o['getMultiRangeId']());return _0x3eafad;}['markDeletion'](_0x543e67,_0x29ff98=null,_0x6b0e64={}){if(_0x543e67['isCollapsed'])return null;const _0x5551f0=this['editor']['plugins']['get']('Users')['me'],_0x5d12f8=new _0x4a3ae4(_0x543e67['start'],_0x543e67['end']);for(const {suggestion:_0x1c0fc4,meta:_0xeef348}of this['_findSuggestions'](_0x5d12f8,'insertion'))if(_0xeef348['isOwn']&&!_0xeef348['isNextTo']){if(_0x1c0fc4['isMultiRange']){const _0x4626d3=_0x1c0fc4['getRanges']()['filter'](_0x563f18=>'$graveyard'!=_0x563f18['root']['rootName']);_0x4626d3['every'](_0x2773ba=>_0x5d12f8['containsRange'](_0x2773ba,!0x0))&&_0x1c0fc4['discard']();if(_0x4626d3['some'](_0x39b4c3=>_0x39b4c3['containsRange'](_0x5d12f8,!0x0))){const _0x2d9174=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29ff98,'accept');return this['forceDefaultExecution'](()=>_0x2d9174([_0x5d12f8],null,_0x6b0e64)),null;}}else{const _0x542e87=_0x5d12f8['getIntersection'](_0x1c0fc4['getFirstRange']());null!==_0x542e87&&_0x1c0fc4['_onDiscard']([_0x542e87],null,_0x6b0e64);}}if(_0x5d12f8['detach'](),_0x5d12f8['isCollapsed']||'$graveyard'==_0x5d12f8['root']['rootName'])return null;let _0x15199d=null,_0x1781cc=_0x5d12f8['start'],_0x4e8b97=_0x5d12f8['end'];const _0x2c9d41=this['_findSuggestions'](_0x5d12f8,'deletion');for(const {suggestion:_0x3e2892,meta:_0x3afc2b}of _0x2c9d41){const _0x45fb0e=this['_model']['createRange'](_0x1781cc,_0x4e8b97);if(_0x3afc2b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3afc2b['containsRangeInObject']&&!_0x3afc2b['isInsideObject'])){if(_0x3e2892['isMultiRange']){if(!Qt(_0x3e2892,_0x6b0e64))continue;let _0x566820=!0x0;for(const _0xad6a08 of _0x3e2892['getRanges']()){if(_0xad6a08['containsRange'](_0x45fb0e,!0x0))return _0x3e2892;_0x45fb0e['containsRange'](_0xad6a08)||(_0x566820=!0x1);}_0x566820&&_0x3e2892['discard']();}else{const _0x4cfbb2=_0x3e2892['getFirstRange']();if(_0x4cfbb2['containsRange'](_0x45fb0e,!0x0))return _0x3e2892;if(!Qt(_0x3e2892,_0x6b0e64)){_0x45fb0e['containsRange'](_0x4cfbb2)?_0x3e2892['removeMarkers']():_0x4cfbb2['containsPosition'](_0x1781cc)?_0x1781cc=_0x4cfbb2['end']:_0x4cfbb2['containsPosition'](_0x4e8b97)&&(_0x4e8b97=_0x4cfbb2['start']);continue;}_0x1781cc=_0x1781cc['isBefore'](_0x4cfbb2['start'])?_0x1781cc:_0x4cfbb2['start'],_0x4e8b97=_0x4e8b97['isAfter'](_0x4cfbb2['end'])?_0x4e8b97:_0x4cfbb2['end'],_0x6b0e64=Object['assign']({},_0x3e2892['attributes']),_0x15199d?_0x4cfbb2['start']['isBefore'](_0x15199d['getFirstRange']()['start'])?(_0x15199d['removeMarkers'](),_0x15199d=_0x3e2892):_0x3e2892['removeMarkers']():_0x15199d=_0x3e2892;}}}if(_0x15199d)return this['_setSuggestionRange'](_0x15199d,this['_model']['createRange'](_0x1781cc,_0x4e8b97)),_0x15199d;{const _0xc4d184=_0x437d48(),_0x238369=this['_model']['createRange'](_0x1781cc,_0x4e8b97),_0x458950=_0x5551f0['id'],_0x4aa9b5=_0x29ff98?'deletion:'+_0x29ff98:'deletion',_0x5ee797=this['_setSuggestionData']({'id':_0xc4d184,'type':_0x4aa9b5,'createdAt':new Date(),'authorId':_0x458950,'attributes':_0x6b0e64});return this['_addSuggestionMarker'](_0x4aa9b5,_0xc4d184,_0x458950,_0x238369),_0x5ee797;}}['markMultiRangeDeletion'](_0x4a883f,_0x37ce86='multi',_0x146653={}){const _0x52e49b=this['editor']['plugins']['get']('Users')['me'],_0x1ebfdd=_0x4a883f['map'](_0x4feda3=>new _0x4a3ae4(_0x4feda3['start'],_0x4feda3['end'])),_0x1cab5a=new Set();for(const {suggestion:_0x19d5a5,meta:_0x27c0ef}of this['_findSuggestions'](_0x1ebfdd,'insertion'))_0x27c0ef['isOwn']&&!_0x27c0ef['isNextTo']&&_0x1cab5a['add'](_0x19d5a5);for(const _0x179de1 of _0x1cab5a)if(_0x179de1['isMultiRange']){const _0x14d90e=_0x179de1['getRanges']();(!_0x179de1['attributes']||!_0x179de1['attributes']['skipNestingCheck'])&&(_0x14d90e['every'](_0x496829=>_0x1ebfdd['some'](_0x3ea8e7=>_0x3ea8e7['containsRange'](_0x496829,!0x0)))&&_0x179de1['discard']());if(_0x1ebfdd['every'](_0x24dc60=>_0x14d90e['some'](_0x577c2a=>_0x577c2a['containsRange'](_0x24dc60,!0x0)))){const _0x5e8d89=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37ce86,'accept');return this['forceDefaultExecution'](()=>_0x5e8d89(_0x4a883f,null,_0x146653)),null;}}else{const _0x4f7648=_0x179de1['getFirstRange']();_0x1ebfdd['some'](_0x1b678d=>_0x1b678d['containsRange'](_0x4f7648,!0x0))&&_0x179de1['discard']();if(_0x1ebfdd['every'](_0x8de3c2=>_0x4f7648['containsRange'](_0x8de3c2,!0x0))){const _0x48499c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37ce86,'accept');return this['forceDefaultExecution'](()=>_0x48499c(_0x1ebfdd,null,_0x146653)),null;}}const _0x376a78=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37ce86,'join');let _0x3e4e91=null;for(const _0x374412 of this['getSuggestions']())if(_0x374412['author']['id']==_0x52e49b['id']&&_0x374412['isInContent']&&'deletion'==_0x374412['type']&&_0x374412['subType']==_0x37ce86&&Qt(_0x374412,_0x146653)&&(_0x376a78(_0x374412['getRanges'](),_0x1ebfdd)||_0x376a78(_0x1ebfdd,_0x374412['getRanges']()))){if(_0x3e4e91){if(_0x374412['commentThread']&&_0x374412['commentThread']['length'])continue;for(const _0x3532b3 of _0x374412['getRanges']())_0x3e4e91['isIntersectingWithRange'](_0x3532b3)||_0x3e4e91['addRange'](_0x3532b3);_0x374412['removeMarkers']();}else{_0x3e4e91=_0x374412;for(const _0x83250c of _0x1ebfdd)_0x374412['isIntersectingWithRange'](_0x83250c)||_0x374412['addRange'](_0x83250c);}}if(_0x3e4e91)return _0x3e4e91;_0x1cab5a['clear']();for(const {suggestion:_0x5550e4,meta:_0x3762ec}of this['_findSuggestions'](_0x1ebfdd,'deletion'))_0x3762ec['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3762ec['containsRangeInObject']&&!_0x3762ec['isInsideObject'])&&Qt(_0x5550e4,_0x146653)&&_0x1cab5a['add'](_0x5550e4);for(const _0x160ca7 of _0x1cab5a){const _0x3aa97e=_0x160ca7['getRanges']();if(!_0x146653||!_0x146653['skipNestingCheck']){if(_0x1ebfdd['every'](_0x553067=>_0x3aa97e['some'](_0x112217=>_0x112217['containsRange'](_0x553067,!0x0))))return _0x160ca7;}(!_0x160ca7['attributes']||!_0x160ca7['attributes']['skipNestingCheck'])&&(_0x3aa97e['every'](_0x1982a0=>_0x1ebfdd['some'](_0x3ef504=>_0x3ef504['containsRange'](_0x1982a0,!0x0)))&&_0x160ca7['discard']());}const _0x5ae395=_0x437d48(),_0x51ea50=_0x52e49b['id'],_0x574f08='deletion:'+_0x37ce86,_0x325fb0=this['_setSuggestionData']({'id':_0x5ae395,'type':_0x574f08,'createdAt':new Date(),'authorId':_0x51ea50,'attributes':_0x146653});for(const _0x48c37e of _0x1ebfdd)_0x48c37e['detach'](),_0x48c37e['isCollapsed']||'$graveyard'==_0x48c37e['root']['rootName']||this['_addSuggestionMarker'](_0x574f08,_0x5ae395,_0x51ea50,_0x48c37e,o['getMultiRangeId']());return _0x325fb0;}['markAttributeChange'](_0x1a939a,_0x351d2a,_0x360ce1,_0x14db33,_0x40b0b9){if(_0x1a939a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1b3aec=this['editor']['plugins']['get']('Users')['me']['id'],_0x1986e8=Array['from'](this['_suggestions']['values']())['filter'](_0x5e54f8=>'attribute'==_0x5e54f8['type']&&_0x5e54f8['data']['key']==_0x351d2a&&_0x5e54f8['isIntersectingWithRange'](_0x1a939a));if('default'===this['_trackFormatChanges']){const _0x57b3ae=this['_findSuggestions'](_0x1a939a,'insertion')['filter'](({meta:_0x3a0f4e})=>_0x3a0f4e['isOwn']&&!_0x3a0f4e['isInsideObject']&&!_0x3a0f4e['isNextTo'])['map'](({suggestion:_0x1c64b1})=>_0x1c64b1);_0x1986e8['unshift'](..._0x57b3ae);}const _0x18246c=new Map([[_0x1a939a,_0x360ce1]]);for(const _0xd5634b of _0x1986e8){const _0x4dca0f='attribute'==_0xd5634b['type']?_0xd5634b['data']['oldValue']:void 0x0,_0x4650a3=_0xd5634b['getFirstRange'](),_0x52102b=Array['from'](_0x18246c['keys']())['find'](_0x4fa4b3=>_0x4fa4b3['isIntersecting'](_0x4650a3));if(!_0x52102b)continue;const _0x58e452=_0x52102b['getDifference'](_0x4650a3);this['_isBlockAttribute'](_0x351d2a)&&'insertion'==_0xd5634b['type']&&0x0!=_0x58e452['length']||(_0x18246c['delete'](_0x52102b),_0x58e452['forEach'](_0x26583a=>{_0x18246c['set'](_0x26583a,_0x360ce1);}),'insertion'!=_0xd5634b['type']&&_0x4dca0f!=_0x14db33&&_0x18246c['set'](_0x52102b['getIntersection'](_0x4650a3),_0x4dca0f));}const _0x2f8cb5=[];for(const [_0x393c11,_0x31f40c]of _0x18246c){const _0x3e297d=_0x437d48(),_0x5d6c5d={'key':_0x351d2a,'oldValue':_0x31f40c,'newValue':_0x14db33};_0x351d2a['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':_0x351d2a});const _0x3b84de=('attribute:'+(_0x351d2a+'|'+Jt({'newValue':_0x14db33})))['substring'](0x0,0x3c),_0x4fb672=this['_setSuggestionData']({'id':_0x3e297d,'type':_0x3b84de,'data':_0x5d6c5d,'createdAt':new Date(),'authorId':_0x1b3aec,'attributes':_0x40b0b9});_0x2f8cb5['push'](_0x4fb672),this['_addSuggestionMarker'](_0x3b84de,_0x3e297d,_0x1b3aec,_0x393c11);}return _0x2f8cb5;}['enableDefaultAttributesIntegration'](_0x304cb6){this['enableCommand'](_0x304cb6,(_0xb7bc29,..._0x257c92)=>{this['_recordAttributeChanges'](()=>{_0xb7bc29(..._0x257c92);});});}['registerBlockAttribute'](_0x406b53){this['_blockAttributeKeys']['add'](_0x406b53);}['registerInlineAttribute'](_0x369170){this['_inlineAttributeKeys']['add'](_0x369170);}['_getAttributeKey'](_0x2a8ba8){return'attribute'==_0x2a8ba8['type']?_0x2a8ba8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3e675c,_0x4b498c){const _0x48fcc5=_0x3e675c['getFirstMarker']();this['_model']['change'](_0x47008a=>{_0x47008a['updateMarker'](_0x48fcc5,{'range':_0x4b498c});});}['_addThreadToSuggestion'](_0x13d466){const _0x584fe0=_0x13d466['id'],_0x352518=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x584fe0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x352518,'threadId':_0x584fe0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3d0723=this['_commentsRepository']['getCommentThread'](_0x584fe0);_0x3d0723['unbind']('isRemovable'),_0x3d0723['isRemovable']=!0x1,_0x13d466['commentThread']=_0x3d0723;}['_checkSuggestionCorrectness'](_0x3f3725,_0x4f7d88,_0x23c773,_0x15c892){if(_0x3f3725['type']!=_0x4f7d88||_0x3f3725['subType']!=_0x23c773||_0x3f3725['creator']['id']!=_0x15c892)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3e1147('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3f634b,_0x27324f){const _0x4691f6=_0x3f634b['getFirstRange']();if(_0x27324f['isEqual'](_0x4691f6))_0x3f634b['removeMarkers']();else{if(_0x4691f6['containsRange'](_0x27324f)){const _0x124a8c=this['_model']['createPositionAt'](_0x27324f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f634b,this['_model']['createRange'](_0x4691f6['start'],_0x124a8c));const _0x50b1c2=_0x437d48(),_0x56dcb3=_0x3f634b['creator']['id'],_0x22c022=_0x3f634b['type']+':'+_0x3f634b['subType'];this['_setSuggestionData']({'id':_0x50b1c2,'type':_0x22c022,'createdAt':new Date(),'authorId':_0x56dcb3,'data':_0x3f634b['data'],'attributes':_0x3f634b['attributes']});const _0x2bb214=this['_model']['createPositionAt'](_0x27324f['end']['parent'],'after'),_0x3cf8b3=this['_model']['createRange'](_0x2bb214,_0x4691f6['end']);this['_addSuggestionMarker'](_0x22c022,_0x50b1c2,_0x56dcb3,_0x3cf8b3);}else{if(_0x4691f6['containsPosition'](_0x27324f['start'])){const _0x3cbf65=this['_model']['createPositionAt'](_0x27324f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f634b,this['_model']['createRange'](_0x4691f6['start'],_0x3cbf65));}else{const _0x2a7de2=this['_model']['createPositionAt'](_0x27324f['end']['parent'],'after');this['_setSuggestionRange'](_0x3f634b,this['_model']['createRange'](_0x2a7de2,_0x4691f6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x17ee5f){for(const {suggestion:_0x2578b8,meta:_0x44da5e}of this['_findSuggestions'](_0x17ee5f,'insertion')){if(!_0x44da5e['isOwn'])continue;const _0x338862=_0x2578b8['getRanges']();for(const _0x24dac0 of _0x338862)if(!_0x17ee5f['getDifference'](_0x24dac0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x364ca1){const _0x2a8bfb=this['editor']['plugins']['get']('Users')['getUser'](_0x364ca1);if(!_0x2a8bfb)throw new _0x3e1147('track-changes-user-not-found',this);return _0x2a8bfb;}['_getExternalAuthor'](_0x50ee9e){const _0x33823e=this['editor']['plugins']['get']('Users'),_0x556740=_0x255576('external:'+_0x50ee9e),_0x4d9a3b=_0x33823e['getUser'](_0x556740);return _0x4d9a3b||_0x33823e['addUser']({'id':_0x556740,'name':_0x50ee9e});}['_createSuggestion'](_0x23956f,_0x2077a0,_0x20ac92,_0x407ed2,_0x818119){const _0x3c2bcb=this['_getAuthorFromId'](_0x407ed2),_0x4eff96=this['_suggestionFactory']['buildSuggestion'](_0x23956f,_0x2077a0,_0x20ac92,_0x3c2bcb,_0x818119,_0x95af95=>{this['_updateSuggestionData'](_0x20ac92,{'attributes':_0x95af95});const _0x32b61e=this['getSuggestion'](_0x20ac92);this['_joinWithAdjacentSuggestions'](new Set([_0x32b61e])),this['_refreshSuggestionsChain'](new Set([_0x32b61e]));});return this['listenTo'](_0x4eff96,'accept',()=>{this['_updateSuggestionData'](_0x20ac92,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4eff96,'discard',()=>{this['_updateSuggestionData'](_0x20ac92,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x20ac92,_0x4eff96),this['_suggestionState']['set'](_0x4eff96,'notReady'),_0x4eff96;}['_splitMarkerName'](_0x31743b){const _0x30e8f1=_0x31743b['split'](':');return{'group':_0x30e8f1[0x0],'type':_0x30e8f1[0x1],'subType':_0x30e8f1['length']>=0x5?_0x30e8f1[0x2]:null,'id':_0x30e8f1['length']<0x5?_0x30e8f1[0x2]:_0x30e8f1[0x3],'authorId':_0x30e8f1['length']<0x5?_0x30e8f1[0x3]:_0x30e8f1[0x4],'markerCount':0x6==_0x30e8f1['length']?_0x30e8f1[0x5]:null};}['_breakSuggestionMarker'](_0x58ed1f,_0x56db30,_0x18f507){const _0x5cda3f=_0x58ed1f['getFirstRange'](),_0x4aff68=_0x5cda3f['start'],_0x5826d9=_0x5cda3f['end'];this['_setSuggestionRange'](_0x58ed1f,this['_model']['createRange'](_0x4aff68,_0x56db30));const _0x3c9765=_0x437d48(),_0x3b65a7=_0x58ed1f['creator']['id'],_0x6e66be=_0x58ed1f['type']+(_0x58ed1f['subType']?':'+_0x58ed1f['subType']:'');this['_setSuggestionData']({'id':_0x3c9765,'type':_0x6e66be,'createdAt':new Date(),'authorId':_0x3b65a7,'originalSuggestionId':_0x58ed1f['id'],'attributes':_0x58ed1f['attributes'],'data':_0x58ed1f['data']});const _0x58e9a8=this['_getAttributeKey'](_0x58ed1f);('formatBlock'==_0x58ed1f['type']||_0x58e9a8&&this['_isBlockAttribute'](_0x58e9a8))&&(_0x18f507=this['_model']['createPositionBefore'](_0x18f507['parent'])),this['_addSuggestionMarker'](_0x6e66be,_0x3c9765,_0x3b65a7,this['_model']['createRange'](_0x18f507,_0x5826d9));}['_findSuggestions'](_0x47b719,_0x3bcb33=null){const _0x5dbdf9=[],_0xbfc1c7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x47b719)||(_0x47b719=[_0x47b719]);for(const _0x540e2e of this['getSuggestions']()){if(!_0x540e2e['isInContent'])continue;if(_0x3bcb33&&_0x540e2e['type']!=_0x3bcb33)continue;let _0x2b4dcd=!0x1;for(const _0x439f68 of _0x540e2e['getRanges']()){for(const _0x5d6b1f of _0x47b719){const _0x2c380a=_0x5d6b1f['start']['isEqual'](_0x439f68['end'])||_0x5d6b1f['end']['isEqual'](_0x439f68['start']);if(_0x2c380a||_0x5d6b1f['getIntersection'](_0x439f68)){const _0x5841ff=_0x5d6b1f['containsRange'](_0x439f68)&&Pt(this['_model']['schema'],_0x439f68['start'],_0x5d6b1f),_0x2d8b99=_0x439f68['containsRange'](_0x5d6b1f)&&Pt(this['_model']['schema'],_0x5d6b1f['start'],_0x439f68);_0x5dbdf9['push']({'suggestion':_0x540e2e,'meta':{'isOwn':_0xbfc1c7==_0x540e2e['author'],'isNextTo':_0x2c380a,'isInsideObject':_0x5841ff,'containsRangeInObject':_0x2d8b99}}),_0x2b4dcd=!0x0;break;}}if(_0x2b4dcd)break;}}return _0x5dbdf9;}['_addSuggestionMarker'](_0x315750,_0x13d2f3,_0xa50bd8,_0x3a96d1,_0x234124){this['_model']['change'](_0x16f042=>{let _0x57fe0e='suggestion:'+_0x315750+':'+_0x13d2f3+':'+_0xa50bd8;_0x234124&&(_0x57fe0e=_0x57fe0e+':'+_0x234124),_0x16f042['addMarker'](_0x57fe0e,{'range':_0x3a96d1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xc8152){const _0x1e8059=_0xc8152['previous'],_0x39d4b8=_0xc8152['next'];_0xc8152['previous']=null,_0xc8152['next']=null,null!=_0x1e8059&&_0x1e8059['next']==_0xc8152&&(_0x1e8059['next']=_0x39d4b8),null!=_0x39d4b8&&_0x39d4b8['previous']==_0xc8152&&(_0x39d4b8['previous']=_0x1e8059),'ready'==this['_suggestionState']['get'](_0xc8152)&&(this['_suggestionState']['set'](_0xc8152,'removed'),this['fire']('suggestionUnloaded',_0xc8152,_0x1e8059,_0x39d4b8));}['_setSuggestionData'](_0x4b50b9){const _0x14997d=_0x4b50b9['id'],_0x122be8=this['addSuggestionData'](_0x4b50b9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xdd86bc=this['editor']['plugins']['get']('PendingActions'),_0x3bd76b=_0x122be8['hasComments'],_0x12d0bd=_0x122be8['subType']?_0x122be8['type']+':'+_0x122be8['subType']:_0x122be8['type'],_0xc15c69=this['editor']['locale'],_0x57fc72=_0xdd86bc['add'](c(_0xc15c69,'PENDING_ACTION_SUGGESTION')),_0x4e6685={'id':_0x14997d,'type':_0x12d0bd,'hasComments':_0x3bd76b,'data':_0x4b50b9['data']||null,'originalSuggestionId':_0x4b50b9['originalSuggestionId']||null,'attributes':_0x122be8['attributes']};this['_adapter']['addSuggestion'](_0x4e6685)['then'](_0x536009=>{_0x122be8['_saved']=!0x0,_0xdd86bc['remove'](_0x57fc72),_0x536009&&_0x536009['createdAt']&&(this['_suggestions']['get'](_0x14997d)['createdAt']=_0x536009['createdAt']);})['catch'](_0x12ea32=>{throw _0xebf613('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x122be8['discard']();}),_0x122be8['stopListening'](),this['_suggestions']['delete'](_0x122be8['id']),this['_suggestionState']['delete'](_0x122be8),_0x12ea32;});}return _0x122be8;}['_isBlockAttribute'](_0x12db3b){return this['_blockAttributeKeys']['has'](_0x12db3b);}['_updateSuggestionData'](_0x4905c3,_0x12601d){const _0x3ca537=this['editor']['plugins']['get']('PendingActions'),_0x42f927=this['getSuggestion'](_0x4905c3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x42f927['_saved']){const _0x108221=_0x3ca537['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4905c3,_0x12601d)['then'](()=>{_0x3ca537['remove'](_0x108221);});}else _0x42f927['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4905c3,_0x12601d);});}}['_getSuggestionData'](_0x58a850){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3e1147('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x58a850);}['_handleNewSuggestionMarker'](_0x5a0a45){const {id:_0x5df88a,type:_0x2865ce,subType:_0x4b95f9,authorId:_0x5603a4}=this['_splitMarkerName'](_0x5a0a45),_0x4da7e4=this['_suggestions']['get'](_0x5df88a)||this['_createSuggestion'](_0x2865ce,_0x4b95f9,_0x5df88a,_0x5603a4,{});switch(this['_checkSuggestionCorrectness'](_0x4da7e4,_0x2865ce,_0x4b95f9,_0x5603a4),this['_suggestionState']['get'](_0x4da7e4)){case'notReady':this['_getSuggestionData'](_0x5df88a)['then'](_0x570d46=>{let _0x59c211=Promise['resolve']();_0x570d46['hasComments']&&(_0x59c211=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5df88a})),_0x59c211['then'](()=>{this['addSuggestionData'](_0x570d46)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4da7e4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5df88a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4da7e4,'ready'),this['fire']('suggestionLoaded',_0x4da7e4);break;case'ready':this['fire']('suggestionChanged',_0x4da7e4);}return _0x4da7e4['addMarkerName'](_0x5a0a45),_0x4da7e4;}['_refreshSuggestionsChain'](_0x513f2c){const _0x48a4e9=Array['from'](_0x513f2c),_0x471c74=_0x48a4e9['filter'](_0x34d0e7=>'attribute'==_0x34d0e7['type']);this['_refreshAttributeSuggestionsChain'](_0x471c74);const _0x5dcda8=_0x48a4e9['filter'](_0xc90d72=>!_0xc90d72['isMultiRange']&&'attribute'!=_0xc90d72['type']),_0xfba0b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x227837=>!_0x227837['isMultiRange']&&'attribute'!=_0x227837['type']),_0x5e6b11=_0xfba0b['filter'](_0xf05f4e=>!_0x513f2c['has'](_0xf05f4e)),_0x39e703=new Map(_0xfba0b['map'](_0x443be7=>[_0x443be7,this['_suggestionFactory']['getSuggestionCallback'](_0x443be7['type'],_0x443be7['subType'],'chain')])),_0x46cc2d=new Map(_0xfba0b['map'](_0x14af02=>[_0x14af02,_0x14af02['getFirstRange']()])),_0x4e0329=new Set(),_0x10cde3=new Set();for(let _0x5d455c=0x0;_0x5d455c<_0x5dcda8['length'];_0x5d455c++)_0x288ccf(_0x5dcda8[_0x5d455c],_0x5dcda8,_0x5d455c+0x1);for(let _0x4b4750=0x0;_0x4b4750<_0x5dcda8['length'];_0x4b4750++)_0x288ccf(_0x5dcda8[_0x4b4750],_0x5e6b11,0x0);const _0x5131d5=new Set();for(let _0x8be1c=0x0;_0x8be1c<_0x5dcda8['length'];_0x8be1c++){const _0x39410a=_0x5dcda8[_0x8be1c];!_0x10cde3['has'](_0x39410a)&&_0x39410a['previous']&&(_0x5131d5['add'](_0x39410a['previous']),_0x39410a['previous']['next']===_0x39410a&&(_0x39410a['previous']['next']=null),_0x39410a['previous']=null),!_0x4e0329['has'](_0x39410a)&&_0x39410a['next']&&(_0x5131d5['add'](_0x39410a['next']),_0x39410a['next']['previous']===_0x39410a&&(_0x39410a['next']['previous']=null),_0x39410a['next']=null);}function _0x288ccf(_0x2340cb,_0x14e324,_0x34f6fb){for(let _0xf9b653=_0x34f6fb;_0xf9b653<_0x14e324['length'];_0xf9b653++){const _0x3d6193=_0xe6c073(_0x2340cb,_0x14e324[_0xf9b653]);_0x3d6193&&(_0x3d6193[0x0]['next']=_0x3d6193[0x1],_0x3d6193[0x1]['previous']=_0x3d6193[0x0],_0x4e0329['add'](_0x3d6193[0x0]),_0x10cde3['add'](_0x3d6193[0x1]));}}function _0xe6c073(_0x22ffb3,_0x341de3){if(_0x22ffb3['author']['id']!==_0x341de3['author']['id'])return null;const _0x1dce4e=_0x39e703['get'](_0x22ffb3)(_0x22ffb3,_0x341de3,_0x46cc2d['get'](_0x22ffb3),_0x46cc2d['get'](_0x341de3));if(!_0x1dce4e)return null;return _0x39e703['get'](_0x341de3)(_0x22ffb3,_0x341de3,_0x46cc2d['get'](_0x22ffb3),_0x46cc2d['get'](_0x341de3))?_0x1dce4e[0x1]['commentThread']&&_0x1dce4e[0x1]['commentThread']['length']?null:_0x1dce4e:null;}_0x5131d5['size']&&this['_refreshSuggestionsChain'](_0x5131d5);}['_refreshAttributeSuggestionsChain'](_0x581525){if(0x0==_0x581525['length'])return;const _0x1c13fc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a4e59=>'attribute'==_0x4a4e59['type']&&_0x4a4e59['_isDataLoaded']),_0x3b47e3=[],_0x566935=new Map();for(const _0xcced87 of _0x1c13fc){const _0x1a371d=_0x255576(_0xcced87['attributes']);_0x566935['has'](_0x1a371d)||(_0x566935['set'](_0x1a371d,_0x3b47e3['length']),_0x3b47e3['push']([]));const _0x1dfdc0=_0x566935['get'](_0x1a371d);_0x3b47e3[_0x1dfdc0]['push'](_0xcced87);}!(function(){_0x3b47e3['sort']((_0x1d08c1,_0x3ec4c4)=>{const _0x2bd50d=_0x1d08c1[0x0]['createdAt'],_0xd6b5cb=_0x3ec4c4[0x0]['createdAt'];return _0x2bd50d==_0xd6b5cb?_0x1d08c1[0x0]['attributes']['groupId']<_0x3ec4c4[0x0]['attributes']['groupId']?-0x1:0x1:_0x2bd50d<_0xd6b5cb?-0x1:0x1;});for(const _0x4b9cc1 of _0x3b47e3)_0x4b9cc1['sort']((_0x5d8ab0,_0x7504e6)=>_0x5d8ab0['id']<_0x7504e6['id']?-0x1:0x1);}());for(let _0x4d457d=0x0;_0x4d457d<_0x3b47e3['length'];_0x4d457d++){if(0x0==_0x3b47e3[_0x4d457d]['length'])continue;const _0x4b2800=[];for(let _0x59a975=_0x4d457d+0x1;_0x59a975<_0x3b47e3['length'];_0x59a975++)0x0!=_0x3b47e3[_0x59a975]['length']&&_0xee9d72(_0x3b47e3[_0x4d457d],_0x3b47e3[_0x59a975])&&_0x4b2800['push'](_0x59a975);for(const _0x490cd1 of _0x4b2800)_0x3b47e3[_0x4d457d]=_0x3b47e3[_0x4d457d]['concat'](_0x3b47e3[_0x490cd1]),_0x3b47e3[_0x490cd1]=[];}for(const _0x29b897 of _0x3b47e3)for(let _0x3f6b9d=0x0;_0x3f6b9d<_0x29b897['length'];_0x3f6b9d++){const _0xc85e17=_0x29b897[_0x3f6b9d+0x1]||null;_0x29b897[_0x3f6b9d]['next']!==_0xc85e17&&(_0x29b897[_0x3f6b9d]['next']=_0xc85e17);}for(const _0xbe5662 of _0x3b47e3)for(let _0x205362=0x0;_0x205362<_0xbe5662['length'];_0x205362++){const _0x39ed62=_0xbe5662[_0x205362-0x1]||null;_0xbe5662[_0x205362]['previous']!==_0x39ed62&&(_0xbe5662[_0x205362]['previous']=_0x39ed62);}function _0xee9d72(_0x400569,_0x3f850a){if(_0x400569[0x0]['attributes']['groupId']!==_0x3f850a[0x0]['attributes']['groupId']&&_0x400569[0x0]['author']!==_0x3f850a[0x0]['author'])return!0x1;if(!function(_0x3fe990,_0x136dba){if(!_0x3fe990['hasComments']&&!_0x136dba['hasComments'])return!0x0;if(_0x3fe990['hasComments']&&_0x136dba['hasComments'])return!0x1;if(_0x3fe990['hasComments']&&_0x136dba['createdAt']<_0x3fe990['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x136dba['hasComments']&&_0x3fe990['createdAt']<_0x136dba['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x400569[0x0],_0x3f850a[0x0]))return!0x1;const _0x50ee0d=Vt(_0x400569[0x0]['attributes'],'groupId'),_0x167215=Vt(_0x3f850a[0x0]['attributes'],'groupId');if(!_0x36c7b1(_0x50ee0d,_0x167215))return!0x1;return!!_0x400569['every'](_0x2d2b2e=>_0x3f850a['some'](_0x4172b3=>_0x2d2b2e['getFirstRange']()['isEqual'](_0x4172b3['getFirstRange']())))&&_0x3f850a['every'](_0x421fd4=>_0x400569['some'](_0x293ff8=>_0x421fd4['getFirstRange']()['isEqual'](_0x293ff8['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe5e2ca){const _0x40a468=Array['from'](_0xe5e2ca),_0x3bbca4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x11a8a5=_0x3bbca4['filter'](_0x4716c6=>!_0xe5e2ca['has'](_0x4716c6)),_0x3e8fa9=new Map(_0x40a468['map'](_0x16987c=>[_0x16987c,this['_suggestionFactory']['getSuggestionCallback'](_0x16987c['type'],_0x16987c['subType'],'join')])),_0x4e376b=new Map(_0x3bbca4['map'](_0x1eb7a9=>[_0x1eb7a9,_0x1eb7a9['getRanges']()]));for(let _0x501e90=0x0;_0x501e90<_0x40a468['length'];_0x501e90++){if(_0x1405b3(this,_0x40a468[_0x501e90],_0x40a468,_0x501e90+0x1))return!0x0;}for(let _0x4929ad=0x0;_0x4929ad<_0x40a468['length'];_0x4929ad++){if(_0x1405b3(this,_0x40a468[_0x4929ad],_0x11a8a5,0x0))return!0x0;}return!0x1;function _0x1405b3(_0x47aff5,_0x40268a,_0x18d226,_0x36fb0d){for(let _0x4368b4=_0x36fb0d;_0x4368b4<_0x18d226['length'];_0x4368b4++){const _0x197e50=_0x18d226[_0x4368b4];if(_0x197e50['type']!==_0x40268a['type']||_0x197e50['author']['id']!==_0x40268a['author']['id']||_0x197e50['subType']!==_0x40268a['subType'])continue;if(!Wt(_0x40268a,_0x197e50))continue;if('attribute'==_0x40268a['type']&&_0x40268a['data']['oldValue']!=_0x197e50['data']['oldValue'])continue;if('attribute'==_0x40268a['type']&&_0x47aff5['_isBlockAttribute'](_0x40268a['data']['key']))continue;if('formatBlock'==_0x40268a['type']){const _0x4d8036=_0x47aff5['editor']['model'],_0xcc2276=_0x40268a['getContainedElement']();if(_0xcc2276&&(_0x4d8036['schema']['isObject'](_0xcc2276)||_0x4d8036['schema']['isLimit'](_0xcc2276)))continue;}const _0x1a110d=_0x3e8fa9['get'](_0x40268a),_0x5f359d=_0x4e376b['get'](_0x40268a),_0x30534d=_0x4e376b['get'](_0x197e50),_0x24ae7d=_0x40268a['commentThread']&&_0x40268a['commentThread']['length'],_0x318ed5=_0x197e50['commentThread']&&_0x197e50['commentThread']['length'];if(!_0x24ae7d&&_0x1a110d(_0x30534d,_0x5f359d))return _0x47aff5['_joinSuggestions'](_0x197e50,_0x40268a),_0x4e376b['delete'](_0x40268a),!0x0;if(!_0x318ed5&&_0x1a110d(_0x5f359d,_0x30534d))return _0x47aff5['_joinSuggestions'](_0x40268a,_0x197e50),_0x4e376b['delete'](_0x197e50),!0x0;}return!0x1;}}['_joinSuggestions'](_0x35d553,_0x5c4862){if(_0x35d553['isMultiRange']){for(const _0x419b22 of _0x5c4862['getRanges']())_0x35d553['addRange'](_0x419b22);}else{const _0x3f4d9d=_0x5c4862['getFirstRange']()['end'];this['_setSuggestionRange'](_0x35d553,this['_model']['createRange'](_0x35d553['getFirstRange']()['start'],_0x3f4d9d));}_0x5c4862['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2083db,_0x334072,_0x5192f6){const _0x402571=_0x2083db['startsWith']('format')||_0x2083db['startsWith']('attribute')?'FORMATTING':_0x2083db['toUpperCase']();return c(this['editor']['locale'],_0x334072+'_'+_0x402571+'_SUGGESTION_ANNOUNCEMENT',_0x5192f6);}['_initAriaMarkerChangeAnnouncements'](){const _0x11459a=this['editor'];if(!_0x11459a['ui'])return;const {ariaLiveAnnouncer:_0x1f61b6}=_0x11459a['ui'];_0xb9afc5(this['_model'],({left:_0x42485e,entered:_0x27de9d})=>{for(const _0x56e218 of _0x42485e){const {group:_0x560c83,type:_0x20fe0f}=this['_splitMarkerName'](_0x56e218['name']);if('suggestion'===_0x560c83){_0x1f61b6['announce'](this['_getMarkerAnnouncementText'](_0x20fe0f,'LEAVE'));break;}}for(const _0x222602 of _0x27de9d){const {group:_0x5e747a,type:_0x31a84a}=this['_splitMarkerName'](_0x222602['name']);if('suggestion'===_0x5e747a){_0x1f61b6['announce'](this['_getMarkerAnnouncementText'](_0x31a84a,'ENTER',_0x4d9260(_0xc56237)));break;}}});}['_processAttributeChanges'](_0xecd8b0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x12aa3a=this['editor'],_0x5a544a=_0x12aa3a['model']['document']['differ']['getChanges']();if(0x0==_0x5a544a['length'])return!0x1;const _0x1a5f72=[],_0xe6c40b=_0x5a544a['filter'](_0xcc87d5=>'attribute'==_0xcc87d5['type']),_0x30ced9=_0x5a544a['filter'](_0x20b4fd=>'insert'==_0x20b4fd['type']&&'$text'!=_0x20b4fd['name']),_0x2a9d76=_0x5a544a['filter'](_0x515adc=>'remove'==_0x515adc['type']&&'$text'!=_0x515adc['name']);for(const _0x24cd4c of _0xe6c40b)_0x1a5f72['push']({'key':_0x24cd4c['attributeKey'],'newValue':_0x24cd4c['attributeNewValue'],'oldValue':_0x24cd4c['attributeOldValue'],'range':Ht(_0x24cd4c['range'],_0x12aa3a['model'])});for(const _0x256284 of _0x30ced9){const _0x11042e=_0x2a9d76['find'](_0x85c4b1=>_0x85c4b1['position']['isEqual'](_0x256284['position']));_0x11042e&&_0x1a5f72['push']({'key':u,'newValue':_0x256284['name'],'oldValue':_0x11042e['name'],'range':_0x12aa3a['model']['createRangeOn'](_0x256284['position']['nodeAfter'])});}return 0x0!=_0x1a5f72['length']&&this['_reduceExistingSuggestions'](_0xecd8b0,_0x1a5f72);}['_processAttributeSuggestions'](_0x53be6c){let _0x160bef=!0x1;const _0x1d5108=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e32b0=>_0x3e32b0['data']['newRange']&&_0x3e32b0['name']['startsWith']('suggestion:attribute:'));for(const _0x2b1a3a of _0x1d5108){const {subType:_0x438504,id:_0x20fb07}=this['_splitMarkerName'](_0x2b1a3a['name']),_0x994a4=_0x438504['split']('|')[0x0];for(const _0x476bd2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x476bd2['id']!=_0x20fb07&&'attribute'==_0x476bd2['type']&&_0x476bd2['data']&&_0x476bd2['data']['key']==_0x994a4&&_0x476bd2['getFirstRange']()['isIntersecting'](_0x2b1a3a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x476bd2,_0x2b1a3a['data']['newRange'],_0x53be6c),_0x160bef=!0x0);}return _0x160bef;}['_recordAttributeChanges'](_0x5a42af){this['_recordAttributeSuggestions']=!0x0,_0x5a42af();}['_isRegisteredAttribute'](_0x6b4edb){const _0x3622f0=this['_isBlockAttribute'](_0x6b4edb),_0x1bacf3=this['_inlineAttributeKeys']['has'](_0x6b4edb);return _0x3622f0||_0x1bacf3;}['_reduceExistingSuggestions'](_0x3e0e10,_0x353034){if(0x0==_0x353034['length'])return!0x1;let _0x277270=!0x1;for(const _0x5b7253 of _0x353034){const _0x30a8f5=this['_findSuggestions'](_0x5b7253['range'],'attribute')['filter'](_0x209a49=>!_0x209a49['meta']['isNextTo'])['map'](_0x35acd8=>_0x35acd8['suggestion']),_0x6a378e=_0x255576({'newValue':_0x5b7253['newValue']});_0x30a8f5['filter'](_0x33022f=>{const [_0x497fdd,_0x5e4a17]=_0x33022f['subType']['split']('|');return _0x497fdd==_0x5b7253['key']&&_0x5e4a17!=_0x6a378e;})['forEach'](_0x65d79c=>{this['_reduceSuggestionAttributeRange'](_0x65d79c,_0x5b7253['range'],_0x3e0e10),_0x277270=!0x0;});}return _0x277270;}['_reduceSuggestionAttributeRange'](_0x400c22,_0x3e4190,_0x2e2215){const _0x28d9ec=_0x400c22['getFirstRange']()['getDifference'](_0x3e4190);0x0!==_0x28d9ec['length']?0x1!==_0x28d9ec['length']?this['_breakSuggestionMarker'](_0x400c22,_0x3e4190['start'],_0x3e4190['end']):this['_setSuggestionRange'](_0x400c22,_0x28d9ec[0x0]):_0x2e2215['removeMarker'](_0x400c22['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x39cfad){this['_editor']=_0x39cfad,this['_model']=_0x39cfad['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x168d50,_0x4e3fb0,_0xbf9450,_0xe2a9cb,_0x2da1c3,_0x1645ff){return new o(this['_model'],{'type':_0x168d50,'subType':_0x4e3fb0,'id':_0xbf9450,'author':_0xe2a9cb,'creator':_0xe2a9cb,'attributes':_0x2da1c3,'onAttributesChange':_0x1645ff,'onAccept':(..._0x5004f4)=>this['getSuggestionCallback'](_0x168d50,_0x4e3fb0,'accept')(..._0x5004f4),'onDiscard':(..._0x366afb)=>this['getSuggestionCallback'](_0x168d50,_0x4e3fb0,'discard')(..._0x366afb)});}['registerCustomCallback'](_0xae6f84,_0xb52e9e,_0x3464b1,_0x430ff1){const _0x14a863=_0xae6f84+':'+_0xb52e9e+':'+_0x3464b1;this['_customCallbacks']['set'](_0x14a863,_0x430ff1);}['getSuggestionCallback'](_0x46dc5e,_0x1c87bf,_0x174f06){const _0x5b0d3b=_0x46dc5e+':'+_0x1c87bf+':'+_0x174f06;return this['_customCallbacks']['get'](_0x5b0d3b)||this['_defaultCallbacks']['get'](_0x46dc5e+':'+_0x174f06);}['_registerDefaultCallbacks'](){const _0x380899=()=>!0x1,_0x14774f=_0x4ebb63=>{_0x4ebb63['sort']((_0x5aed03,_0x575716)=>_0x5aed03['start']['isBefore'](_0x575716['start'])?0x1:-0x1),this['_model']['change'](_0x301481=>{for(const _0x587c92 of _0x4ebb63){let _0x11626f;_0x11626f=_0x587c92['end']['isAtEnd']&&_0x587c92['end']['parent']==_0x587c92['start']['nodeAfter']?_0x301481['createSelection'](_0x587c92['start']['nodeAfter'],'on'):_0x301481['createSelection'](_0x587c92),this['_model']['deleteContent'](_0x11626f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x24b9b9=(_0x9b91b6,_0x17e2b7)=>{_0x17e2b7&&this['_model']['change'](_0x13f946=>{const {commandName:_0x3777e2,commandParams:_0x27bcc1=[]}=_0x17e2b7,_0xabed50=_0x9b91b6['map'](_0x9ae006=>(Gt(_0x9ae006)&&(_0x9ae006=this['_model']['createRange'](_0x9ae006['end'])),_0x9ae006))['filter'](_0x3da860=>'$graveyard'!==_0x3da860['root']['rootName']);if(_0xabed50['length']<0x1)return;const _0x1990c7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2182b8=>_0x4a3ae4['fromRange'](_0x2182b8));_0x13f946['setSelection'](_0xabed50);for(const _0x53b404 of this['_editor']['commands']['commands']())_0x53b404['refresh']();_0x27bcc1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3777e2,..._0x27bcc1);const _0x3ad409=_0x1990c7['filter'](_0xe41017=>'$graveyard'!=_0xe41017['root']['rootName']);_0x3ad409['length']>0x0&&_0x13f946['setSelection'](_0x3ad409);for(const _0x2f2391 of _0x1990c7)_0x2f2391['detach']();});},_0x680dd3=(_0x28f48a,_0x4f04c5)=>0x1==_0x28f48a['length']&&0x1==_0x4f04c5['length']&&_0x28f48a[0x0]['end']['isEqual'](_0x4f04c5[0x0]['start']),_0x309886=(_0x23f548,_0x189741,_0x30d75c,_0x5b58f2)=>zt(_0x23f548,_0x189741,_0x30d75c,_0x5b58f2)?[_0x23f548,_0x189741]:zt(_0x189741,_0x23f548,_0x5b58f2,_0x30d75c)?[_0x189741,_0x23f548]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x380899),this['_defaultCallbacks']['set']('insertion:discard',_0x14774f),this['_defaultCallbacks']['set']('insertion:join',_0x680dd3),this['_defaultCallbacks']['set']('insertion:chain',_0x309886),this['_defaultCallbacks']['set']('deletion:accept',_0x14774f),this['_defaultCallbacks']['set']('deletion:discard',_0x380899),this['_defaultCallbacks']['set']('deletion:join',_0x680dd3),this['_defaultCallbacks']['set']('deletion:chain',_0x309886),this['_defaultCallbacks']['set']('formatInline:accept',_0x24b9b9),this['_defaultCallbacks']['set']('formatInline:discard',_0x380899),this['_defaultCallbacks']['set']('formatInline:join',_0x680dd3),this['_defaultCallbacks']['set']('formatInline:chain',_0x380899),this['_defaultCallbacks']['set']('formatBlock:accept',_0x24b9b9),this['_defaultCallbacks']['set']('formatBlock:discard',_0x380899),this['_defaultCallbacks']['set']('formatBlock:join',_0x680dd3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x380899),this['_defaultCallbacks']['set']('attribute:accept',_0x380899),this['_defaultCallbacks']['set']('attribute:discard',(_0x3e6f54,_0x58353d)=>{if(!_0x58353d)return;const _0x967fa8=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x50c1c2=>{if(_0x58353d['key']==u)for(const _0x579abb of _0x3e6f54){const _0x1f435a=_0x579abb['start']['nodeAfter'],_0x5b7d48=_0x58353d['oldValue'];_0x50c1c2['rename'](_0x1f435a,_0x5b7d48);}else{if(_0x967fa8['_isBlockAttribute'](_0x58353d['key'])){for(const _0x15008b of _0x3e6f54)void 0x0!==_0x58353d['oldValue']?_0x50c1c2['setAttribute'](_0x58353d['key'],_0x58353d['oldValue'],_0x15008b['start']['nodeAfter']):_0x50c1c2['removeAttribute'](_0x58353d['key'],_0x15008b['start']['nodeAfter']);}else{for(const _0x142f61 of _0x3e6f54)_0x58353d['oldValue']?_0x50c1c2['setAttribute'](_0x58353d['key'],_0x58353d['oldValue'],_0x142f61):_0x50c1c2['removeAttribute'](_0x58353d['key'],_0x142f61);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x680dd3);}}function Pt(_0x255e5c,_0x32570e,_0x3790ce){for(const _0x5f253d of _0x32570e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5f253d['root']==_0x5f253d)return!0x1;if(!_0x3790ce['containsItem'](_0x5f253d))return!0x1;if(_0x255e5c['isObject'](_0x5f253d)||_0x255e5c['isLimit'](_0x5f253d))return!0x0;}return!0x1;}function Gt(_0x24f0d3){return _0x24f0d3['end']['parent']==_0x24f0d3['start']['nodeAfter']&&_0x24f0d3['end']['isAtStart'];}function Lt(_0x15ddea,_0x16c027,_0x14671b,_0x5024ba){const _0x3a288b=_0x5ca522=>!_0x5ca522['item']['is']('$textProxy')&&!_0x5024ba['isObject'](_0x5ca522['item']),_0x24faac=_0x15ddea['start']['getLastMatchingPosition'](_0x3a288b),_0x433076=_0x15ddea['end']['getLastMatchingPosition'](_0x3a288b,{'direction':'backward'});return(!_0x15ddea['start']['isEqual'](_0x24faac)||!_0x15ddea['end']['isEqual'](_0x433076))&&(_0x24faac['isBefore'](_0x433076)?_0x14671b['updateMarker'](_0x16c027,{'range':_0x14671b['createRange'](_0x24faac,_0x433076)}):_0x14671b['removeMarker'](_0x16c027),!0x0);}function Jt(_0x4ae5e6){return _0x255576(_0x4ae5e6);}function Kt(_0x6ae894){const _0x106007=_0x6ae894['start']['nodeAfter'];return _0x106007&&_0x106007['is']('element');}function Ht(_0x5850dd,_0x3b4737){return null==_0x5850dd['end']['nodeBefore']&&_0x5850dd['end']['parent']==_0x5850dd['start']['nodeAfter']?qt(_0x5850dd['start']['nodeAfter'],_0x3b4737):_0x5850dd;}function qt(_0x253dcd,_0x26d1c7){const _0x77a615=_0x26d1c7['schema']['isObject'](_0x253dcd)||_0x26d1c7['schema']['isSelectable'](_0x253dcd);return _0x26d1c7['createRange'](_0x26d1c7['createPositionAt'](_0x253dcd,'before'),_0x77a615?_0x26d1c7['createPositionAfter'](_0x253dcd):_0x26d1c7['createPositionAt'](_0x253dcd,'end'));}function zt(_0x3eef8b,_0x48c434,_0x43f8d7,_0x53ebf5){return!!Wt(_0x3eef8b,_0x48c434)&&_0x43f8d7['end']['isEqual'](_0x53ebf5['start']);}function Wt(_0x55088b,_0x18916f){if(!_0x55088b['_isDataLoaded']||!_0x18916f['_isDataLoaded'])return!0x1;const _0x7d9ed2=new Set(Object['keys'](_0x55088b['attributes'])),_0x24385d=new Set(Object['keys'](_0x18916f['attributes']));if(_0x7d9ed2['delete']('groupId'),_0x24385d['delete']('groupId'),0x0==_0x7d9ed2['size']&&0x0==_0x24385d['size'])return!0x0;if(_0x7d9ed2['size']!=_0x24385d['size'])return!0x1;const _0x31cc68={..._0x55088b['attributes']},_0xb1ffc1={..._0x18916f['attributes']};return delete _0x31cc68['groupId'],delete _0xb1ffc1['groupId'],JSON['stringify'](_0x31cc68)==JSON['stringify'](_0xb1ffc1);}function Qt(_0x1396f4,_0x258a1c){const _0x28a27c=Xt(_0x1396f4['attributes']),_0x3cb0a5=Xt(_0x258a1c);if(!_0x1396f4['_isDataLoaded'])return!0x1;for(const _0xf3637a of Object['keys'](_0x3cb0a5))if(!_0x36c7b1(_0x28a27c[_0xf3637a],_0x3cb0a5[_0xf3637a]))return!0x1;return!0x0;}function Xt(_0xf45741){const _0x5c8721=Object['assign']({},_0xf45741);return delete _0x5c8721['skipNestingCheck'],delete _0x5c8721['tablePasteChainId'],_0x5c8721;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3c6964(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x30e87c,_0x2362be,_0x3da385,_0x16dc40){super(),this['model']=_0x2362be,this['view']=_0x3da385,this['commentThreadController']=_0x16dc40,this['_editor']=_0x30e87c,this['_acceptCommand']=_0x30e87c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x30e87c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1f78b1,_0x3195f9)=>_0x1f78b1||_0x3195f9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2c96c1=>_0x2c96c1&&this['_editor']['model']['canEditAt'](_0x2362be['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x867a1a=>_0x867a1a&&this['_editor']['model']['canEditAt'](_0x2362be['getRanges']())),this['_pendingAction']=null,_0x3da385['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3da385,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3da385,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3da385,'change:isDirty',()=>{_0x3da385['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 _0x4888c3=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4888c3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x21b685{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1427e4,_0x35cf9a,_0x5ab542,_0x1544c9){super(_0x1427e4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5d8842(_0x1427e4,c(_0x1427e4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x35cf9a['authoredAt']),this['bind']('authoredAt')['to'](_0x35cf9a),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',_0x35cf9a,'authoredAt',this,'descriptionParts',(_0x17cc3d,_0x5a5424,_0x4c343b)=>{const _0x17e78c=_0x4c343b['map'](_0x10ab30=>ls(_0x10ab30['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x17cc3d-0x1,_0x35cf9a['author']['name'],_0x5a5424?_0x1544c9['formatDateTime'](_0x5a5424):'',new DOMParser()['parseFromString'](_0x17e78c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x308d50(),this['focusTracker']=new _0x1dba1d(),this['keystrokes']=new _0x124a9a(),this['focusCycler']=new _0x4943f7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x11908a=>_0x11908a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x35cf9a,this['_localUser']=_0x5ab542,this['_config']=_0x1544c9,_0x1544c9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xc54641(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x592f64}=this['_config'];this['commentsListView']=new _0x592f64(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',_0x1e2928=>_0x1e2928+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3f961e,_0x351c0a)=>_0x3f961e||!!_0x351c0a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4d1433}=this['_config'],_0xe26d1a=new _0x4d1433(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x48c02b=_0xe26d1a['commentInputView'];return _0xe26d1a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x48c02b,'value',(_0x1aea98,_0xb734e2,_0x369238)=>!!_0x369238||_0x1aea98&&!_0xb734e2),_0x48c02b['on']('submit',(_0x2daad8,_0x4d1879)=>{this['fire']('addComment',_0x4d1879),_0x48c02b['editor']['setData']('');}),_0x48c02b['on']('cancel',()=>this['focus']()),_0x48c02b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xe26d1a;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1a8599,_0xc7295,_0x545b4f,_0x1a0380){super(_0x1a8599,_0xc7295,_0x545b4f,_0x1a0380),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4c92e0=>_0x4c92e0&&_0x4c92e0[0x0]?_0x4c92e0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x25587a,_0x5b9cae)=>{let _0x57da3e='';for(const _0x36bd73 of _0x25587a)_0x57da3e+='<p>'+ls(_0x36bd73['content'],_0x36bd73['color'])+'</p>';return _0x5b9cae?_0x57da3e:ti(_0x57da3e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1a0380['SuggestionView'](_0x1a8599,_0xc7295,{'formatDateTime':_0x1a0380['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 _0x29ed74=this['bindTemplate'],_0x5b7659=[this['suggestionView']];return this['commentsListView']&&_0x5b7659['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5b7659['push'](this['commentThreadInputView']),_0x5b7659['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x29ed74['if']('isActive','ck-suggestion-wrapper--active'),_0x29ed74['to']('type',_0x3554df=>'ck-suggestion-'+_0x3554df),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':_0x29ed74['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5b7659};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x21b685{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x428443,_0x281e2f,_0x1fd33f){super(_0x428443),this['_model']=_0x281e2f,this['_config']=_0x1fd33f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x281e2f),this['acceptButton']=this['_createButton'](c(_0x428443,'Accept\x20suggestion'),_0x26076b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x428443,'Discard\x20suggestion'),_0x37583a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1b6fe0(_0x428443,_0x281e2f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x308d50([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1dba1d(),this['keystrokes']=new _0x124a9a(),this['focusCycler']=new _0x4943f7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x13c625=>_0x13c625['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5ad924=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5ad924['innerHTML']=this['description'],this['on']('change:description',(_0x56de8b,_0x2989bb,_0x2a987e)=>{_0x5ad924['innerHTML']=_0x2a987e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1316ff=this['bindTemplate'],_0x308f41=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x1316ff['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1316ff['to']('authoredAt',_0x5184db=>this['_config']['formatDateTime'](_0x5184db))}]}]},{'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']&&_0x308f41['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':_0x308f41}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3f6786,_0xb978c4,_0x41504a,_0x1a33e0,_0x3bfe57){const _0x2492e9=new _0x31bf54(this['locale']);return _0x2492e9['set']({'label':_0x3f6786,'icon':_0xb978c4,'tooltip':!0x0,'tooltipPosition':_0x3bfe57}),_0x2492e9['extendTemplate']({'attributes':{'class':_0x41504a}}),_0x2492e9['on']('execute',()=>{this['fire'](_0x1a33e0,this['_model']['id']);}),_0x2492e9;}['_setupKeyboardNavigation'](){const _0x41beaf=this['element'];this['keystrokes']['listenTo'](_0x41beaf);for(const _0x304f40 of this['focusables'])this['focusTracker']['add'](_0x304f40['element']),this['keystrokes']['listenTo'](_0x304f40['element']);this['keystrokes']['set']('enter',(_0x18919d,_0x491dd9)=>{_0x41beaf===_0x18919d['target']&&(this['focusCycler']['focusFirst'](),_0x491dd9());}),this['keystrokes']['set']('esc',(_0x1dea4f,_0xf80dd4)=>{_0x41beaf!==_0x1dea4f['target']&&(this['focus'](),_0xf80dd4());});}}class d extends _0x497417{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x508eb0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48a51c){super(_0x48a51c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4881e8=this['editor']['config'];_0x4881e8['define']('trackChanges.SuggestionThreadView',fe),_0x4881e8['define']('trackChanges.SuggestionView',we),_0x4881e8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4881e8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x27d4d7,_0x26d2c3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3eb036,_0x167a65]of this['_handleControllerBuffer']){const _0x171617=this['_suggestionToController']['has'](_0x3eb036);_0x171617||_0x167a65?_0x171617&&_0x167a65&&this['_destroyController'](_0x3eb036):this['_initializeController'](_0x3eb036);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x27d4d7,_0x26d2c3);}['init'](){const _0x2c4b19=this['editor'],_0x4f1677=_0x2c4b19['plugins']['get']('TrackChangesEditing'),_0x4d9d1b=_0x2c4b19['plugins']['get']('Annotations'),_0x2efaa7=_0x2c4b19['plugins']['get']('EditorAnnotations'),_0x50d990=_0x2c4b19['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2efaa7['addSourceCollector'](()=>{const _0xf46ce7=[];for(const [_0x2ea13d,_0x5ac413]of Array['from'](this['_suggestionToController'])){const _0x3df12b=_0x2ea13d['getAllAdjacentSuggestions'](),_0x48cf6e=[];for(const _0x340b4a of _0x3df12b){if(!_0x340b4a['isInContent'])continue;if(_0x340b4a['isMultiRange']){_0x48cf6e['push'](..._0x340b4a['getRanges']());continue;}const _0x44f75e=_0x340b4a['getFirstRange']();if(_0x48cf6e['length']>0x0){const _0x7bba7=_0x48cf6e[0x0]['getJoined'](_0x44f75e);if(_0x7bba7){_0x48cf6e[0x0]=_0x7bba7;continue;}}_0x48cf6e['push'](_0x44f75e);}_0xf46ce7['push']([_0x5ac413['view'],_0x48cf6e]);}return _0xf46ce7;}),this['listenTo'](_0x4f1677,'suggestionLoaded',(_0x44ce68,_0x26d280)=>{this['listenTo'](_0x26d280,'change:previous',(_0xf87914,_0x3429e2,_0x5f3682,_0x894bc5)=>{_0x26d280['isInContent']&&(null==_0x5f3682?(this['_updateController'](_0x894bc5['head']),this['_handleSuggestionControllerDelayed'](_0x26d280,!0x1)):(this['_updateController'](_0x5f3682['head']),null==_0x894bc5&&this['_handleSuggestionControllerDelayed'](_0x26d280,!0x0)));}),null!==_0x26d280['previous']?this['_updateController'](_0x26d280['head']):this['_handleSuggestionControllerDelayed'](_0x26d280,!0x1);}),this['listenTo'](_0x4f1677,'suggestionUnloaded',(_0x12e2fe,_0x1af1d8,_0x49209a)=>{this['stopListening'](_0x1af1d8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1af1d8),this['_suggestionToController']['has'](_0x1af1d8)&&this['_destroyController'](_0x1af1d8),_0x49209a&&this['_updateController'](_0x49209a['head']);}),this['listenTo'](_0x4f1677,'suggestionChanged',(_0x498026,_0x1aaa18)=>{this['_updateController'](_0x1aaa18);}),this['listenTo'](_0x4d9d1b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x50d990,'addComment',(_0x1216cd,{threadId:_0x5cb319,isFromAdapter:_0x37e195})=>{if(_0x37e195||!_0x4f1677['hasSuggestion'](_0x5cb319))return;const _0x552887=_0x4f1677['getSuggestion'](_0x5cb319);this['_suggestionToController']['get'](_0x552887)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x22fdfe=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e240d;for(const _0x57fb31 in _0x22fdfe){const _0x563b76=_0x57fb31,_0x3f278f=_0x22fdfe[_0x563b76];if('trackChangesLicenseKeyValid'==_0x3f278f||'trackChangesLicenseKeyInvalid'==_0x3f278f||'trackChangesLicenseKeyExpired'==_0x3f278f||'trackChangesLicenseKeyDomainLimit'==_0x3f278f||'trackChangesLicenseKeyNotAllowed'==_0x3f278f||'trackChangesLicenseKeyEvaluationLimit'==_0x3f278f||'trackChangesLicenseKeyTrialLimit'==_0x3f278f||'trackChangesLicenseKeyUsageLimit'==_0x3f278f){delete _0x22fdfe[_0x563b76],_0x3e240d=_0x3f278f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3e240d&&_0x22fdfe['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3e240d&&_0x22fdfe['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3e240d&&_0x22fdfe['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3e240d&&_0x22fdfe['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3e240d&&_0x22fdfe['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3e240d&&_0x22fdfe['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3e240d&&_0x22fdfe['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2ebc27=this['editor']['plugins']['get']('Annotations'),_0x355e90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x457517=Array['from'](_0x2ebc27['activeAnnotations'],_0x6b0105=>_0x6b0105['innerView'])['filter'](_0x18a851=>this['_viewToController']['has'](_0x18a851)),_0x497bd5=[];for(const _0x4ea2ec of _0x457517){const _0x5cc917=this['_viewToController']['get'](_0x4ea2ec)['model']['getAllAdjacentSuggestions']();_0x497bd5['push'](..._0x5cc917['reduce']((_0x2ffe88,_0x3750dd)=>[..._0x2ffe88,..._0x3750dd['getMarkerNames']()],[]));}_0x355e90['activeMarkers']=_0x497bd5;}['_addUIComponentsToFactory'](){const _0x5efd0a=this['editor'],_0x3f50e7=_0x5efd0a['locale'],_0x4cdd5a=c(_0x3f50e7,'Track\x20changes'),_0x12cb3f=new _0x2aba35([{'type':'switchbutton','model':new _0x201032({'withText':!0x0,'isToggleable':!0x0,'label':_0x4cdd5a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5efd0a['plugins']['has']('TrackChangesPreview')&&_0x12cb3f['addMany']([{'type':'separator'},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x38c8b7 of _0x12cb3f)if(ke(_0x38c8b7)){const _0x33e4a2=_0x5efd0a['commands']['get'](_0x38c8b7['model']['commandName']);_0x38c8b7['model']['bind']('isOn','isEnabled')['to'](_0x33e4a2,'value','isEnabled');}_0x5efd0a['ui']['componentFactory']['add']('trackChanges',_0x17eb5=>this['_createToolbarButton'](_0x17eb5,_0x12cb3f,_0x4cdd5a)),_0x5efd0a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4cc57f=>this['_createMenuBarMenu'](_0x4cc57f,_0x12cb3f,_0x4cdd5a));}['_createToolbarButton'](_0x11a67d,_0x23399b,_0x59830e){const _0x2ddd48=_0x532b40(_0x11a67d,_0x8f7f98),_0x1cbb6b=this['editor']['commands']['get']('trackChanges');_0x2ddd48['buttonView']['set']({'tooltip':_0x59830e,'label':_0x59830e,'icon':_0x30a5bc}),_0x2ddd48['buttonView']['bind']('isOn')['to'](_0x1cbb6b,'value'),_0x2ddd48['buttonView']['on']('execute',()=>{_0x1cbb6b['execute'](),this['editor']['editing']['view']['focus']();}),_0x3635e7(_0x2ddd48,_0x23399b,{'role':'menu'});const _0x10bb19=[];for(const _0x1e2806 of _0x23399b)ke(_0x1e2806)&&_0x10bb19['push'](this['editor']['commands']['get'](_0x1e2806['model']['commandName']));const _0x5c7b6d=_0x2ddd48['buttonView'];return _0x5c7b6d['actionView']['unbind']('isEnabled'),_0x5c7b6d['arrowView']['unbind']('isEnabled'),_0x5c7b6d['actionView']['bind']('isEnabled')['to'](_0x1cbb6b,'isEnabled'),_0x5c7b6d['arrowView']['bind']('isEnabled')['toMany'](_0x10bb19,'isEnabled',(..._0x1d6cde)=>_0x1d6cde['some'](_0xaaa6ab=>_0xaaa6ab)),_0x2ddd48['on']('execute',_0x503946=>{this['editor']['execute'](_0x503946['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ddd48;}['_createMenuBarMenu'](_0x2768dd,_0x322f48,_0x307984){const _0x1ec8dc=new _0x1d74c1(_0x2768dd),_0x2d1fd6=this['editor']['commands']['get']('trackChanges');_0x1ec8dc['buttonView']['set']({'label':_0x307984,'icon':_0x30a5bc});const _0x4152bc=new _0x57f2d6(_0x2768dd);for(const _0x6874b4 of _0x322f48){if('separator'==_0x6874b4['type']){_0x4152bc['items']['add'](new _0x5008e8(_0x2768dd));continue;}const _0xa56f3c=new _0x4cd13d(_0x2768dd,_0x1ec8dc),_0x8bb478=new _0x8bc95(_0x2768dd),_0x5f2ca8=_0x6874b4['model'];_0x8bb478['bind'](...Object['keys'](_0x5f2ca8))['to'](_0x5f2ca8),_0x8bb478['delegate']('execute')['to'](_0x1ec8dc),_0x8bb478['on']('execute',()=>{this['editor']['execute'](_0x5f2ca8['commandName']),this['editor']['editing']['view']['focus']();}),_0xa56f3c['children']['add'](_0x8bb478),_0x4152bc['items']['add'](_0xa56f3c);}return _0x1ec8dc['bind']('isEnabled')['to'](_0x2d1fd6,'isEnabled'),_0x1ec8dc['panelView']['children']['add'](_0x4152bc),_0x1ec8dc;}['_initializeController'](_0x2780a8){const _0xdd13f6=this['editor'],_0x4b2e16=_0xdd13f6['config'],_0x562c04=_0xdd13f6['plugins']['get']('Annotations'),_0x39135b=_0xdd13f6['plugins']['get']('CommentsRepository'),_0x2fb9f9=_0xdd13f6['plugins']['get']('EditorAnnotations'),_0x2f7347=_0xdd13f6['plugins']['get'](_0x508eb0)['me'],_0x3a1e59=_0x4b2e16['get']('trackChanges')['SuggestionThreadView'],_0x220416=_0x4b2e16['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x14e371,CommentThreadInputView:_0x2a8f12}=_0xdd13f6['plugins']['get']('CommentsUI');let _0x35521a,_0x1a5f78,_0x44f841;this['_annotationViews']['has'](_0x2780a8['id'])?(_0x1a5f78=this['_annotationViews']['get'](_0x2780a8['id']),_0x35521a=_0x1a5f78['mainView']):(_0x35521a=new _0x3a1e59(_0xdd13f6['locale'],_0x2780a8,_0x2f7347,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4b2e16['get']('comments.editorConfig'),'licenseKey':_0x4b2e16['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4b2e16['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4b2e16['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4b2e16['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x479f58(_0x4b2e16['get']('locale')),'CommentView':_0x4b2e16['get']('comments')['CommentView'],'CommentsListView':_0x14e371,'CommentThreadInputView':_0x2a8f12,'SuggestionView':_0x220416}),_0x35521a['suggestionView']['acceptButton']['on']('execute',()=>{_0xdd13f6['editing']['view']['focus']();}),_0x35521a['suggestionView']['discardButton']['on']('execute',()=>{_0xdd13f6['editing']['view']['focus']();}),_0x1a5f78=_0x562c04['createAnnotationView'](this['editor']['locale'],_0x35521a),_0x1a5f78['bind']('isDirty')['to'](_0x35521a,'isDirty'),_0x1a5f78['bind']('length')['to'](_0x35521a),_0x1a5f78['bind']('type')['to'](_0x35521a,'type',_0x36994f=>'suggestion-'+_0x36994f),_0x35521a['on']('escape',()=>{_0x44f841['fire']('escape');}),this['_annotationViews']['set'](_0x2780a8['id'],_0x1a5f78));const _0x5d7a61=_0x39135b['createCommentThreadController'](_0x2780a8['commentThread'],_0x35521a),_0x7f2ec=new pe(_0xdd13f6,_0x2780a8,_0x35521a,_0x5d7a61),_0x2d5129=_0x2780a8['getAllAdjacentSuggestions']()['filter'](_0x568ef4=>_0x568ef4['isInContent']);_0x35521a['descriptionParts']=_0xdd13f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2d5129),this['_suggestionToController']['set'](_0x2780a8,_0x7f2ec),this['_viewToController']['set'](_0x35521a,_0x7f2ec),_0x44f841=_0x562c04['createAnnotation']({'view':_0x1a5f78,'target':()=>{const _0xcb9ed0=[],_0x566fce=_0x2780a8['getAllAdjacentSuggestions']()['filter'](_0x4072b0=>_0x4072b0['isInContent']);for(const _0x1b419d of _0x566fce)_0xcb9ed0['push'](..._0x1b419d['getMarkers']());return _0x2f9556(_0xdd13f6['editing'],_0xcb9ed0);},'type':()=>'suggestion-'+_0x7f2ec['view']['type']}),_0x39135b['_bindAnnotationToEditors'](_0x35521a,_0x44f841),_0x562c04['add'](_0x44f841),_0x2fb9f9['registerAnnotation'](_0x44f841);}['_destroyController'](_0x598941){const _0x435ec5=this['editor']['plugins']['get']('CommentsRepository'),_0x2c67c0=this['editor']['plugins']['get']('Annotations'),_0x52a0c4=this['_suggestionToController']['get'](_0x598941),_0x4c117a=_0x52a0c4['view'],_0x3b4a14=_0x2c67c0['getByInnerView'](_0x4c117a);_0x435ec5['_unbindEditors'](_0x4c117a),_0x3b4a14&&_0x2c67c0['remove'](_0x3b4a14),this['_suggestionToController']['delete'](_0x598941),this['_viewToController']['delete'](_0x4c117a),_0x52a0c4['destroy']();}['_updateController'](_0x5cbafa){if(!_0x5cbafa['isInContent']||!this['_suggestionToController']['has'](_0x5cbafa))return;const _0x490440=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d3bb9=this['_suggestionToController']['get'](_0x5cbafa),_0x3e0dbc=_0x5cbafa['getAllAdjacentSuggestions']();_0x5d3bb9['view']['descriptionParts']=_0x490440['descriptionFactory']['getDescriptions'](_0x3e0dbc);}['destroy'](){for(const _0x1aa56c of this['_suggestionToController']['keys']())this['_destroyController'](_0x1aa56c);for(const _0x56e260 of this['_annotationViews']['values']())_0x56e260['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x275170){return'model'in _0x275170;}class k extends _0x497417{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3e8bd9){this['editor']['plugins']['get'](p)['adapter']=_0x3e8bd9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x256d8e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x256d8e);}['getSuggestions']({skipNotAttached:_0x1db64a=!0x1,toJSON:_0x180318=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1db64a,'toJSON':_0x180318});}['getSuggestion'](_0x56bee0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x56bee0);}}const w=['Pagination'];class T extends _0x497417{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4ddca1=this['editor'];if(_0x4ddca1['config']['define']('trackChangesData.editorCreator',_0x2d7872=>{const _0x2aa8c9=_0x4ddca1['model']['document']['getRootNames']()['reduce']((_0x540dd3,_0x3666d1)=>(_0x540dd3[_0x3666d1]='',_0x540dd3),{});return _0x4ddca1['constructor']['create'](_0x2aa8c9,_0x2d7872);}),'function'!=typeof _0x4ddca1['config']['get']('trackChangesData')['editorCreator'])throw new _0x3e1147('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x296abb){return N(this['editor'],!0x0,_0x296abb);}['getDataWithDiscardedSuggestions'](_0x709feb){return N(this['editor'],!0x1,_0x709feb);}}class D extends _0x497417{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bfa06){function _0x42f348(_0x5bb65e){return _0x5bb65e['map'](_0x159a03=>String['fromCharCode'](_0x159a03))['join']('');}super(_0x3bfa06),this['result']='end',_0x3bfa06[_0x42f348([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42f348([0x76,0x69,0x65,0x77])][_0x42f348([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42f348([0x61,0x75,0x74,0x6f]),_0x3bfa06[_0x42f348([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x42f348([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42f348([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x42f348([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x42f348([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x4184a1){return void 0x0!==_0x4184a1['getRootsAttributes'];}async function N(_0x5d27f5,_0x858a2f,_0x30216b){const _0x2f16df=_0x241a54(_0x5d27f5,w);_0x2f16df['plugins']['push'](p,D),_0x2f16df['rootsAttributes']=Fe(_0x5d27f5)?_0x5d27f5['getRootsAttributes']():void 0x0;const _0xa0bbcb=document['createDocumentFragment'](),_0x58fd97=_0x5d27f5['config']['get']('trackChangesData')['editorCreator'],_0x1d92a3=await _0x58fd97(_0x2f16df,()=>function(_0x3d1625){const _0x45d092=document['createElement']('div');return _0x3d1625['appendChild'](_0x45d092),_0x45d092;}(_0xa0bbcb));!function(_0x2c6c89,_0x41ae6c){const _0x421264=_0x2c6c89['model']['document']['getRootNames']()['reduce']((_0x1ca8f8,_0x2ed554)=>(_0x1ca8f8[_0x2ed554]=_0x2c6c89['data']['get']({'rootName':_0x2ed554}),_0x1ca8f8),{}),_0x3ac859=_0x2c6c89['plugins']['get']('Users')['users']['map'](_0x2fd59d=>({'id':_0x2fd59d['id'],'name':_0x2fd59d['name']})),_0x400a04=_0x2c6c89['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xa01fb9=_0x2c6c89['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xea7351=_0x41ae6c['plugins']['get']('Users'),_0x1bae8e=_0x41ae6c['plugins']['get']('TrackChangesEditing'),_0x131671=_0x41ae6c['plugins']['get']('CommentsRepository');for(const _0x33fad7 of _0x131671['getCommentThreads']())_0x33fad7['remove']();for(const _0x49f2ca of _0x3ac859)_0xea7351['getUser'](_0x49f2ca['id'])||_0xea7351['addUser'](_0x49f2ca);_0xea7351['me']||_0xea7351['useAnonymousUser']();for(const _0x5a2fdd of _0xa01fb9)_0x131671['addCommentThread'](_0x5a2fdd);for(const _0x213332 of _0x400a04)_0x1bae8e['addSuggestionData'](_0x213332);_0x41ae6c['data']['set'](_0x421264);}(_0x5d27f5,_0x1d92a3),_0x1d92a3['execute'](_0x858a2f?'acceptAllSuggestions':'discardAllSuggestions');const _0x5e43c4=Fe(_0x1d92a3)?_0x1d92a3['getFullData'](_0x30216b):_0x1d92a3['data']['get'](_0x30216b);return await _0x1d92a3['destroy'](),_0x5e43c4;}class Me extends _0x21b685{['options'];constructor(_0x4eca24,_0x427bf6){super(_0x4eca24),this['options']=_0x427bf6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0xbaa00c,_0x2a9c73){if(!this['element'])return;const _0x456533=[];for(const [_0x38ddd1,_0x478e6c]of _0xbaa00c){const _0x4773a6=document['createElement']('div');_0x4773a6['setAttribute']('data-ck-root-name',_0x38ddd1),_0x4773a6['className']=_0x478e6c['classes']+'\x20ck-track-changes-preview__root-container',_0x4773a6['innerHTML']=_0x478e6c['content'],_0x456533['push'](_0x4773a6);}_0x2a9c73(this['element'],_0x456533),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x56aab9{constructor(_0xa814ce){super(_0xa814ce),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x17a285=this['editor'],_0x5099b7=_0x17a285['locale'],_0x24129a=_0x17a285['plugins']['get']('Dialog');let _0xa87373;const _0x38e1e5=function(_0x5c768c){const _0x2efc20={};if('editables'in _0x5c768c['ui']['view']){for(const [_0x583e52,_0x4cea52]of Object['entries'](_0x5c768c['ui']['view']['editables']))_0x2efc20[_0x583e52]=_0x4cea52['element'];}else _0x2efc20[_0x5c768c['model']['document']['getRootNames']()[0x0]]=_0x5c768c['ui']['view']['editable']['element'];return _0x2efc20;}(_0x17a285),_0x1ed7d7=function(_0x286071){let _0x1f2bef=0x0;for(const _0x1a3b37 of Object['values'](_0x286071))_0x1f2bef=Math['max'](_0x1f2bef,_0x1a3b37['getBoundingClientRect']()['width']);let _0x51b884=0x0;for(const _0x5c3cdc of Object['values'](_0x286071))_0x51b884+=_0x5c3cdc['getBoundingClientRect']()['height'];const _0x59a410=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x49f7cd=Math['min'](_0x51b884,_0x59a410);return{'width':_0x1f2bef,'height':_0x49f7cd};}(_0x38e1e5);_0x24129a['show']({'id':'finalContentPreview','title':c(_0x5099b7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5099b7,{'dialogRects':_0x1ed7d7}),'onHide':()=>{_0xa87373['detachFromDom']();},'onShow':()=>{_0x17a285['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x543813=>{const _0x95d9a4=this['_standarizeRootsData'](_0x543813,_0x17a285,_0x38e1e5);_0x24129a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x95d9a4,_0x17a285['config']['get']('trackChanges.preview.renderFunction'));}),_0xa87373=new _0x58d82f(_0x5099b7,[_0x24129a['view']]),_0xa87373['attachToDom'](),_0xa87373['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x17a285['once']('destroy',()=>{_0xa87373['detachFromDom']();});const _0x413b6d=_0x24129a['view']['headerView']['class'];_0x24129a['view']['headerView']['class']=_0x413b6d?_0x413b6d+'\x20ck-reset_all':'ck-reset_all',_0x24129a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x24129a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x267337=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5209af=_0x267337['previewMode'],_0x4a4703={};if('$labels'===_0x5209af){for(const _0x35b0ee of _0x267337['getMergeFieldsIds']())_0x4a4703[_0x35b0ee]=_0x267337['getLabel'](_0x35b0ee)||_0x35b0ee;}else{const _0x24c1f8='$defaultValues'===_0x5209af?_0x267337['getDefaultValues']():_0x267337['getDataSetValues'](_0x5209af,!0x0);for(const _0xc19797 of Object['entries'](_0x24c1f8)){const [_0xa6d44e,_0x73b40]=_0xc19797;_0x4a4703[_0xa6d44e]=null!==_0x73b40?_0x73b40:_0x267337['getLabel'](_0xa6d44e)||_0xa6d44e;}}return{'mergeFieldsData':_0x4a4703};}['_standarizeRootsData'](_0x66b0d2,_0x448981,_0x5afdcf){let _0x377212;if('string'==typeof _0x66b0d2){const _0x9d4a27=_0x448981['model']['document']['getRootNames']()[0x0];_0x377212={[_0x9d4a27]:_0x66b0d2};}else _0x377212=_0x66b0d2;const _0x542b0d=this['_fixMediaEmbeds'](_0x377212,_0x448981),_0x295c49=function(_0x3288a3,_0x1045cd){for(const [_0x22f4cd,_0x3d5863]of _0x3288a3)_0x3d5863['classes']=_0x1045cd[_0x22f4cd]['classList']['value']['replace']('ck-focused','');return _0x3288a3;}(this['_sortRoots'](_0x448981)['reduce']((_0x4b1b6e,_0x1ce914)=>(_0x4b1b6e['push']([_0x1ce914,{'content':_0x542b0d[_0x1ce914],'classes':''}]),_0x4b1b6e),[]),_0x5afdcf);return _0x295c49;}['_fixMediaEmbeds'](_0x8da6b5,_0x4bdc49){if(!_0x4bdc49['plugins']['has']('MediaEmbedEditing'))return _0x8da6b5;const _0x408d28=_0x4bdc49['plugins']['get']('MediaEmbedEditing');for(const [_0x3efb35,_0x2b60e5]of Object['entries'](_0x8da6b5)){const _0x24fca5=document['createElement']('div');_0x24fca5['innerHTML']=_0x2b60e5,(_0x24fca5['querySelectorAll']('figure.media')['forEach'](_0x1cdf4f=>{const _0x139eb9=_0x1cdf4f['querySelector']('oembed');if(_0x139eb9){const _0x2cc036=_0x139eb9['getAttribute']('url');if(_0x2cc036){const _0x4d8b23=_0x408d28['registry']['getMediaViewElement'](new _0x5a1ade(_0x4bdc49['editing']['view']['document']),_0x2cc036,{'elementName':'','renderForEditingView':!0x0}),_0x4fc755=document['createElement']('div');_0x4fc755['classList']['add']('ck-media__wrapper'),_0x4d8b23['render'](_0x4fc755,_0x4bdc49['editing']['view']['domConverter']),_0x139eb9['replaceWith'](_0x4fc755);}}}),_0x8da6b5[_0x3efb35]=_0x24fca5['innerHTML']);}return _0x8da6b5;}['_sortRoots'](_0x1b3fde){if(!function(_0x3e918d){return void 0x0!==_0x3e918d['getRootsAttributes'];}(_0x1b3fde))return _0x1b3fde['model']['document']['getRootNames']();const _0x1a2dcc=[],_0xc585b6=new Map();for(const _0x2c4544 of _0x1b3fde['model']['document']['getRootNames']()){const _0x1ca24a=_0x1b3fde['editing']['view']['getDomRoot'](_0x2c4544)['getClientRects']()['item'](0x0);_0x1a2dcc['push'](_0x2c4544),_0xc585b6['set'](_0x2c4544,_0x1ca24a);}return _0x1a2dcc['sort']((_0x1ff36f,_0x4b4696)=>{const _0x5a5027=_0xc585b6['get'](_0x1ff36f),_0x4884a1=_0xc585b6['get'](_0x4b4696);return _0x5a5027['y']-_0x4884a1['y']||_0x5a5027['x']-_0x4884a1['x'];}),_0x1a2dcc;}}class te extends _0x497417{static get['requires'](){return[T,_0x2dc774];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51eca5){super(_0x51eca5),_0x51eca5['commands']['add']('previewFinalContent',new re(this['editor'])),_0x51eca5['config']['define']('trackChanges.preview.renderFunction',(_0x5e28e8,_0x2fb9be)=>{for(const _0x232c77 of _0x2fb9be)_0x5e28e8['appendChild'](_0x232c77);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x2d43ff,Plugin as _0x17923f,PendingActions as _0x261249}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x229c91,ObservableMixin as _0x206eb2,uid as _0x27c213,priorities as _0x3439c8,insertToPriorityArray as _0xe8499d,logWarning as _0x364c5a,getEnvKeystrokeText as _0x78bae4,FocusTracker as _0x5b8e52,KeystrokeHandler as _0x528558,Collection as _0x140aba}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5a3bd2,IconCancel as _0x1a4713,IconTrackChanges as _0x26b680}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5a580c,View as _0x38fe6e,ViewCollection as _0x2ca1c4,FocusCycler as _0x43f9ca,ViewModel as _0xc028d4,createDropdown as _0x429f42,SplitButtonView as _0x58dc25,addListToDropdown as _0x281755,MenuBarMenuView as _0x557ccb,MenuBarMenuListView as _0x222343,ListSeparatorView as _0x4b09d7,MenuBarMenuListItemView as _0x250cec,MenuBarMenuListItemButtonView as _0x41896c,BodyCollection as _0x90204a,Dialog as _0x2189eb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1cb8da,hashObject as _0x3be52a,surroundingMarkersDetector as _0x30ec90,FOCUS_ANNOTATION_KEYSTROKE as _0xd67725,AriaDescriptionView as _0x10d50b,setupThreadKeyboardNavigation as _0xb3198a,trimHtml as ti,UserView as _0x3e2e68,LateFocusButtonView as _0x3950c3,getDateTimeFormatter as _0xb46e2b,getAllMarkersDomElementsSorted as _0x3806c9,sanitizeEditorConfig as _0x3fa26d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2e6b85,LiveRange as _0x159dcb,LivePosition as _0xec0a31,DowncastWriter as _0x5cf3f4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x243101,toWidget as _0x306276}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4a214c,set as _0x39f390,isEqual as _0x1d8f67,unset as _0x3f4196,omit as Vt}from'es-toolkit/compat';import{Delete as _0x54efd2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x21d71c,ShiftEnter as _0x37414b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x2d43ff{['_enabledCommands'];constructor(_0x587b5a,_0x1601a0){super(_0x587b5a),this['_enabledCommands']=_0x1601a0,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 _0x363678 of this['editor']['commands']['commands']())_0x363678['affectsData']&&!this['_enabledCommands']['has'](_0x363678)&&_0x363678['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1e43e1 of this['editor']['commands']['commands']())_0x1e43e1['affectsData']&&!this['_enabledCommands']['has'](_0x1e43e1)&&_0x1e43e1['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x2d43ff{['_suggestions'];constructor(_0x3af1ea,_0x12530c){super(_0x3af1ea),this['_suggestions']=_0x12530c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2862ec){const _0x3a0526=this['_suggestions']['get'](_0x2862ec);if(!_0x3a0526)throw new _0x229c91('track-changes-accept-suggestion-not-found',this);const _0x5cd6d2=_0x3a0526['getRanges']();this['editor']['model']['canEditAt'](_0x5cd6d2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3a0526);}}class R extends _0x2d43ff{['_suggestions'];constructor(_0x169bb9,_0x4f4be6){super(_0x169bb9),this['_suggestions']=_0x4f4be6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3db072){const _0x1b17cb=this['_suggestions']['get'](_0x3db072);if(!_0x1b17cb)throw new _0x229c91('track-changes-discard-suggestion-not-found',this);const _0x5df9aa=_0x1b17cb['getRanges']();this['editor']['model']['canEditAt'](_0x5df9aa)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1b17cb);}}function ls(_0x1896dd,_0x27daf2){let _0x2ae7e9='';return _0x2ae7e9+=_0x1896dd['split']('*')['map']((_0x525c21,_0x4086d3)=>_0x4086d3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x525c21)+'</span>':nn(_0x525c21))['join'](''),_0x27daf2&&(_0x2ae7e9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x27daf2['value']+'\x22\x20title=\x22'+_0x27daf2['title']+'\x22></span>'),_0x2ae7e9;}function nn(_0x4472cb){const _0x5da716=document['createElement']('span');return _0x5da716['innerText']=_0x4472cb,_0x5da716['innerHTML'];}function ts(_0x52f10b){return _0x52f10b['sort']((_0x53296f,_0x5b4e64)=>'deletion'==_0x53296f['type']&&'deletion'!=_0x5b4e64['type']?-0x1:'deletion'!=_0x53296f['type']&&'deletion'==_0x5b4e64['type']?0x1:0x0);}function Zt(_0x1fc836,_0x4a585c){let _0x1e3328,_0x3cf15d=0x0;const _0x5834f4=[],_0x51e705=_0x4a585c['schema'];for(;_0x3cf15d<_0x1fc836['length'];){const _0x505ace=_0x1fc836[_0x3cf15d],_0x3b7855=_0x1fc836[_0x3cf15d+0x1];_0x1e3328||(_0x1e3328=_0x4a585c['createPositionBefore'](_0x505ace)),on(_0x4a585c,_0x505ace,_0x3b7855)||(_0x5834f4['push'](_0x4a585c['createRange'](_0x1e3328,_0x51e705['isObject'](_0x505ace)?_0x4a585c['createPositionAfter'](_0x505ace):_0x4a585c['createPositionAt'](_0x505ace,'end'))),_0x1e3328=null),_0x3cf15d++;}return _0x5834f4;}function on(_0x7b1bfe,_0x4057ae,_0x260f81){if(!_0x260f81)return!0x1;const _0x545394=_0x7b1bfe['createPositionAfter'](_0x4057ae),_0x12f307=_0x7b1bfe['createPositionBefore'](_0x260f81);return _0x545394['isTouching'](_0x12f307);}function rs(_0x380190,_0x6e6619,_0x2aea23){for(;_0x2aea23['length'];){const _0x50281d=_0x2aea23['splice'](0x0,0x64);_0x380190['change'](()=>{for(const _0x11ccef of _0x50281d)_0x11ccef['isInContent']&&_0x6e6619['execute'](_0x11ccef['id']);});}}class x extends _0x2d43ff{['_command'];['_suggestions'];constructor(_0x2bf606,_0x160011,_0x2964d8){super(_0x2bf606),this['_command']=_0x160011,this['_suggestions']=_0x2964d8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4c2103=Array['from'](this['_suggestions']['values']())['some'](_0x40c7cb=>_0x40c7cb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4c2103;}['execute'](){const _0x308c2d=ts(Array['from'](this['_suggestions']['values']()));for(const _0x19711f of _0x308c2d){const _0x2b83d7=_0x19711f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2b83d7))return;}rs(this['editor']['model'],this['_command'],_0x308c2d);}}class E extends _0x2d43ff{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xb8f3aa,_0x299dc2,_0x2f180f){super(_0xb8f3aa),this['_command']=_0x299dc2,this['_suggestions']=_0x2f180f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x7995d8=this['editor']['model']['document']['selection'],_0x4654a1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2c7b0f,_0x3a734d){const _0x52e871=Array['from'](_0x2c7b0f['getRanges']()),_0x1a412c=new Set();for(const _0x142c73 of _0x3a734d)if(_0x142c73['isInContent']){for(const _0x225f26 of _0x52e871)for(const _0x1c8a5c of _0x142c73['getRanges']())(_0x225f26['isIntersecting'](_0x1c8a5c)||_0x2c7b0f['isCollapsed']&&!_0x142c73['isMultiRange']&&_0x142c73['next']&&_0x1c8a5c['end']['isTouching'](_0x225f26['start']))&&_0x1a412c['add'](_0x142c73);}return _0x1a412c;}(_0x7995d8,_0x4654a1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x57b3ae=ts(Array['from'](this['_selectedSuggestions']));for(const _0xb37123 of _0x57b3ae){const _0x2f47f6=_0xb37123['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2f47f6))return;}rs(this['editor']['model'],this['_command'],_0x57b3ae);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x206eb2(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2cf8c5,_0x9218bd){super(),this['id']=_0x9218bd['id'],this['type']=_0x9218bd['type'],this['subType']=_0x9218bd['subType']||null,this['author']=_0x9218bd['author'],this['creator']=_0x9218bd['creator']||_0x9218bd['author'],this['isExternal']=Boolean(_0x9218bd['attributes']&&_0x9218bd['attributes']['@external']),this['data']=null,this['_model']=_0x2cf8c5,this['_onAccept']=_0x9218bd['onAccept'],this['_onDiscard']=_0x9218bd['onDiscard'],this['_onAttributesChange']=_0x9218bd['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x9218bd['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 _0x58e85d=this;for(;_0x58e85d['previous'];)_0x58e85d=_0x58e85d['previous'];return _0x58e85d;}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'](_0x116884){this['_markerNames']['add'](_0x116884);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5050bf=>this['_model']['markers']['get'](_0x5050bf))['filter'](_0xb6a4ab=>_0xb6a4ab);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4404e8=>{for(const _0x382f4c of this['getMarkers']())_0x4404e8['removeMarker'](_0x382f4c);}),this['_markerNames']['clear']();}['removeMarker'](_0xdea050){this['_model']['change'](_0x228c9a=>{_0x228c9a['removeMarker'](_0xdea050);}),this['_markerNames']['delete'](_0xdea050);}['addRange'](_0xa22ee1){const _0x4fda08='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x4fda08),this['_model']['change'](_0x207cef=>{_0x207cef['addMarker'](_0x4fda08,{'range':_0xa22ee1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3831ca){for(const _0x1fe179 of this['getRanges']())if(_0x1fe179['isIntersecting'](_0x3831ca))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4e85da=>_0x4e85da['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2cefd9,_0x43f1b0)=>[..._0x2cefd9,..._0x43f1b0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1d51ce=this['getRanges']();if(0x1!=_0x1d51ce['length'])return null;const _0x14aaec=_0x1d51ce[0x0],_0x2b7416=_0x14aaec['start']['nodeAfter'],_0x101054=_0x14aaec['end']['nodeBefore'];return _0x2b7416 instanceof _0x2e6b85?_0x2b7416!=_0x101054?null:_0x2b7416: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 _0x5e7525=[];let _0x47cd8d=this['head'];for(;_0x47cd8d;)_0x5e7525['push'](_0x47cd8d),_0x47cd8d=_0x47cd8d['next'];return _0x5e7525;}['setAttribute'](_0x4a9f5a,_0x1dc774){const _0x1751f0=_0x4a214c(this['attributes']);_0x39f390(_0x1751f0,_0x4a9f5a,_0x1dc774),_0x1d8f67(_0x1751f0,this['attributes'])||(this['attributes']=_0x1751f0,this['_onAttributesChange'](_0x1751f0));}['removeAttribute'](_0x2f2b9d){const _0x348130=_0x4a214c(this['attributes']);_0x3f4196(_0x348130,_0x2f2b9d),_0x1d8f67(_0x348130,this['attributes'])||(this['attributes']=_0x348130,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 _0x27c213()['substr'](0x1,0x5);}}function c(_0x1f0890,_0x34e940,_0x325356){const _0x2f6a9f=_0x1f0890['t'],t=_0x1f0890['t'];switch(_0x34e940){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x325356);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x325356);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x325356);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x325356);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x325356);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',_0x325356);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x325356);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x325356);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x325356);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x325356);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x325356);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x325356);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x325356);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x325356);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x325356);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x325356);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x325356);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x325356);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x325356);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x325356);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x325356);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x325356);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x325356);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x325356);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'},_0x325356);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x325356);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x325356);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x325356);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x325356);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x325356);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'},_0x325356);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x325356);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x325356);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x325356);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x325356);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'},_0x325356);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x325356);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'},_0x325356);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'},_0x325356);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x325356);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'},_0x325356);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x325356);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'},_0x325356);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x325356);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x325356);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'},_0x325356);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x325356);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 _0x2f6a9f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x325356);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2f6a9f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x325356);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x325356);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'},_0x325356);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'},_0x325356);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'},_0x325356);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x34e940;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2f164f,_0x5e21f2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2f164f,this['_locale']=_0x5e21f2;}['getDescriptions'](_0x3610c3){const _0x4e3b4c=[],_0x1f07cf=new Set(),_0x42c489=new Set();for(let _0x4e0042=0x0;_0x4e0042<_0x3610c3['length'];_0x4e0042++){const _0x4a1291=_0x3610c3[_0x4e0042];if(!_0x4a1291['isInContent'])continue;const _0x131be1=this['_handleCustomCallbackDescription'](_0x4a1291);if(_0x131be1){if(null!=_0x4a1291['subType']){if(_0x1f07cf['has'](_0x4a1291['subType']))continue;_0x1f07cf['add'](_0x4a1291['subType']);}_0x4e3b4c['push'](_0x131be1);}else{if('attribute'!=_0x4a1291['type'])'insertion'!=_0x4a1291['type']&&'deletion'!=_0x4a1291['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4e3b4c,_0x4a1291,_0x3610c3[_0x4e0042+0x1]);else{const _0x4da69b=_0x4a1291['data']['key'];if(_0x42c489['has'](_0x4da69b))continue;_0x42c489['add'](_0x4a1291['data']['key']),_0x4da69b==u?this['_handleRenameSuggestionDescription'](_0x4e3b4c,_0x4a1291):this['_handleAttributeSuggestionDescription'](_0x4e3b4c,_0x4a1291);}}}return this['_resolveDescriptionItems'](_0x4e3b4c);}['registerDescriptionCallback'](_0x123ae5){this['_customCallbacks']['push'](_0x123ae5);}['registerElementLabel'](_0x5ca388,_0x518fa8,_0x5f369d=_0x3439c8['normal']){'function'==typeof _0x5ca388?_0xe8499d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5ca388,'label':_0x518fa8,'priority':_0x5f369d}):this['_itemLabels']['set'](_0x5ca388,_0x518fa8);}['registerAttributeLabel'](_0x59eb51,_0x1f93fd){this['_attributeLabels']['set'](_0x59eb51,_0x1f93fd);}['getItemLabel'](_0x9ae024,_0x2e340a=0x1){let _0x16e6c8;for(const _0xbd45d1 of this['_itemLabelsCallbacks'])if(_0xbd45d1['matchingCallback'](_0x9ae024)){_0x16e6c8=_0xbd45d1['label'];break;}return _0x16e6c8||(_0x16e6c8=this['_itemLabels']['get'](_0x9ae024['name'])),_0x16e6c8?_0x16e6c8(_0x2e340a):0x1!==_0x2e340a?_0x2e340a+'\x20'+_0x9ae024['name']+'s':''+_0x9ae024['name'];}['_addDescriptionItems'](_0x4370d1,_0x436a91){const _0x5785cf=_0x436a91['getFirstRange']()['getWalker'](),_0xd35501='insertion'==_0x436a91['type']?'add':'remove';for(const _0x41e927 of _0x5785cf){const _0x4b27a6=_0x41e927['item'],_0x2cd392=_0x4370d1[_0x4370d1['length']-0x1];if(_0x4b27a6['is']('$textProxy'))_0x2cd392&&_0x2cd392['type']['indexOf']('Container')>-0x1&&_0x4370d1['pop'](),_0x2cd392&&'text'==_0x2cd392['type']?_0x2cd392[_0xd35501]+=_0x4b27a6['data']:_0x4370d1['push']({'type':'text','add':'add'==_0xd35501?_0x4b27a6['data']:'','remove':'remove'==_0xd35501?_0x4b27a6['data']:''});else{if(this['_schema']['isObject'](_0x4b27a6)){const _0x5d5779=_0x4b27a6;if(_0x2cd392&&_0x2cd392['type']['indexOf']('Container')>-0x1&&_0x4370d1['pop'](),'elementEnd'==_0x41e927['type'])continue;_0x2cd392&&_0x2cd392['type']==_0xd35501+'Object'&&_0x2cd392['element']['name']==_0x5d5779['name']?_0x2cd392['quantity']++:_0x4370d1['push']({'type':_0xd35501+'Object','element':_0x5d5779,'quantity':0x1}),_0x5785cf['skip'](_0x1e2e5c=>!('elementEnd'==_0x1e2e5c['type']&&_0x1e2e5c['item']==_0x4b27a6));}else{if(this['_schema']['checkChild'](_0x4b27a6,'$text')||_0x4b27a6['is']('element','softBreak')){const _0x3fa353=_0x4b27a6;if('add'==_0xd35501&&'elementStart'==_0x41e927['type']||'remove'==_0xd35501&&'elementEnd'==_0x41e927['type'])continue;if(_0x2cd392&&-0x1==_0x2cd392['type']['indexOf']('Container')){'text'==_0x2cd392['type']&&(_0x2cd392[_0xd35501]+='\x0a');continue;}let _0x381f2c;if(_0x381f2c='add'==_0xd35501?_0x3fa353['nextSibling']&&!this['_schema']['isObject'](_0x3fa353['nextSibling'])?_0x3fa353['nextSibling']:null:_0x3fa353['previousSibling']&&!this['_schema']['isObject'](_0x3fa353['previousSibling'])?_0x3fa353['previousSibling']:null,_0x3fa353['isEmpty']||_0x381f2c&&_0x381f2c['isEmpty']){const _0xc0b48e=_0x381f2c&&_0x381f2c['isEmpty']?_0x381f2c:_0x3fa353;_0x2cd392&&_0x2cd392['type']==_0xd35501+'EmptyContainer'&&_0x2cd392['element']['name']==_0xc0b48e['name']?_0x2cd392['quantity']++:_0x4370d1['push']({'type':_0xd35501+'EmptyContainer','element':_0xc0b48e,'quantity':0x1});}else _0x4370d1['push']({'type':_0xd35501+'Container','element':_0x3fa353});}}}}}['_resolveDescriptionItems'](_0x14fcff){const _0x27726e=this['_locale'],_0x48b636=[],_0x4d2795=[],_0x174c95=[];for(const _0x110915 of _0x14fcff)switch(_0x110915['type']){case'text':if(_0x110915['add']=_0x110915['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x110915['remove']=_0x110915['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x110915['add']&&''!=_0x110915['remove']){_0x48b636['push']({'type':'replace','content':c(_0x27726e,'REPLACE_TEXT',['\x22'+_0x110915['remove']+'\x22','\x22'+_0x110915['add']+'\x22'])});continue;}if(null!=_0x110915['add']['match'](/^ +$/)){_0x48b636['push']({'type':'insertion','content':c(_0x27726e,'*Insert:*\x20%0',c(_0x27726e,'ELEMENT_SPACE',_0x110915['add']['length']))});continue;}if(null!=_0x110915['remove']['match'](/^ +$/)){_0x48b636['push']({'type':'deletion','content':c(_0x27726e,'*Remove:*\x20%0',c(_0x27726e,'ELEMENT_SPACE',_0x110915['remove']['length']))});continue;}if(''!=_0x110915['add']){_0x48b636['push']({'type':'insertion','content':c(_0x27726e,'*Insert:*\x20%0','\x22'+_0x110915['add']+'\x22')});continue;}_0x48b636['push']({'type':'deletion','content':c(_0x27726e,'*Remove:*\x20%0','\x22'+_0x110915['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x48b636['push']({'type':'insertion','content':c(_0x27726e,'*Insert:*\x20%0',this['getItemLabel'](_0x110915['element'],_0x110915['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x48b636['push']({'type':'deletion','content':c(_0x27726e,'*Remove:*\x20%0',this['getItemLabel'](_0x110915['element'],_0x110915['quantity']))});continue;case'addContainer':_0x48b636['push']({'type':'insertion','content':c(_0x27726e,'*Split:*\x20%0',this['getItemLabel'](_0x110915['element'],_0x110915['quantity']))});continue;case'removeContainer':_0x48b636['push']({'type':'deletion','content':c(_0x27726e,'*Merge:*\x20%0',this['getItemLabel'](_0x110915['element'],_0x110915['quantity']))});continue;case'addFormat':_0x4d2795['push'](_0x110915['key']);continue;case'removeFormat':_0x174c95['push'](_0x110915['key']);continue;default:_0x48b636['push'](_0x110915);}if(_0x4d2795['length']){const _0xe7e81b=_0x4d2795['map'](_0x5107b9=>this['_attributeLabels']['has'](_0x5107b9)?this['_attributeLabels']['get'](_0x5107b9):_0x5107b9)['join'](',\x20');_0x48b636['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0xe7e81b)});}if(_0x174c95['length']){const _0xe970de=_0x174c95['map'](_0x8226de=>this['_attributeLabels']['has'](_0x8226de)?this['_attributeLabels']['get'](_0x8226de):_0x8226de)['join'](',\x20');_0x48b636['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0xe970de)});}return _0x48b636;}['_handleCustomCallbackDescription'](_0x3bfe8e){for(const _0x1989c4 of this['_customCallbacks']){const _0x41551b=_0x1989c4(_0x3bfe8e);if(_0x41551b&&'type'in _0x41551b)return _0x41551b;}}['_handleAttributeSuggestionDescription'](_0x16568b,_0x247ae5){const _0x48811e=_0x247ae5['data'],_0x6d829d=void 0x0===_0x48811e['newValue']?'removeFormat':'addFormat';_0x16568b['push']({'type':_0x6d829d,'key':_0x48811e['key']});}['_handleRenameSuggestionDescription'](_0x5d427c,_0x23b8d1){_0x5d427c['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x23b8d1['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2c29ea,_0x2695f3,_0x579cba){if(this['_addDescriptionItems'](_0x2c29ea,_0x2695f3),_0x579cba&&_0x579cba['getFirstRange']()&&!_0x2695f3['getFirstRange']()['end']['isEqual'](_0x579cba['getFirstRange']()['start'])){const _0x895509=_0x2c29ea[_0x2c29ea['length']-0x1],_0x1d1d0f='insertion'==_0x2695f3['type']?'add':'remove';_0x895509&&'text'==_0x895509['type']&&(_0x895509[_0x1d1d0f]+='\x0a');}}}class U extends _0x17923f{['afterInit'](){const _0x4981b5=this['editor'],_0x1547c5=_0x4981b5['plugins']['get']('TrackChangesEditing');_0x4981b5['commands']['get']('showAIAssistant')&&_0x1547c5['enableCommand']('showAIAssistant');}}class V extends _0x17923f{['afterInit'](){const _0x5bf42a=this['editor'],_0x14fa8c=_0x5bf42a['locale'];if(!_0x5bf42a['plugins']['has']('AlignmentEditing'))return;const _0x1c3bc6=_0x5bf42a['plugins']['get']('TrackChangesEditing');_0x1c3bc6['enableDefaultAttributesIntegration']('alignment'),_0x1c3bc6['registerBlockAttribute']('alignment'),_0x1c3bc6['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x14fa8c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b597e=this['editor'],_0xd66111=_0x3b597e['locale'];_0x3b597e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x811578=>{if('formatBlock'!=_0x811578['type'])return;const {data:_0x3987c2}=_0x811578;if(_0x3987c2&&'alignment'==_0x3987c2['commandName']){const _0x289c99=_0x3987c2['commandParams'][0x0]['value'];return{'type':'format','content':c(_0xd66111,'*Format:*\x20%0',function(_0x5ad9e9){switch(_0x5ad9e9){case'left':return c(_0xd66111,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0xd66111,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0xd66111,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0xd66111,'FORMAT_JUSTIFY_TEXT');}}(_0x289c99))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x17923f{['afterInit'](){const _0x455744=this['editor'],_0x146a41=_0x455744['plugins']['get']('TrackChangesEditing'),_0x35e0f4=_0x455744['locale'];for(const _0x434977 of Yt){if(!_0x455744['plugins']['has'](_0x434977))continue;const _0x35a631=_0x434977['slice'](0x0,-0x7)['toLowerCase'](),_0x3bb4f4='FORMAT_'+_0x35a631['toUpperCase']();_0x146a41['enableDefaultAttributesIntegration'](_0x35a631),_0x146a41['registerInlineAttribute'](_0x35a631),_0x146a41['descriptionFactory']['registerAttributeLabel'](_0x35a631,c(_0x35e0f4,_0x3bb4f4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb7a27c=this['editor'],_0x521e3e=_0xb7a27c['locale'],_0x476ddc=_0xb7a27c['plugins']['get']('TrackChangesEditing');function _0x3cb982(_0x2f3d13,_0x3faa20){_0x476ddc['descriptionFactory']['registerDescriptionCallback'](_0x184d3e=>{if('formatInline'!=_0x184d3e['type'])return;const {data:_0x5e2e44}=_0x184d3e;return _0x5e2e44&&_0x5e2e44['commandName']===_0x2f3d13?_0x5e2e44['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x521e3e,'*Format:*\x20%0',_0x3faa20)}:{'type':'format','content':c(_0x521e3e,'*Remove\x20format:*\x20%0',_0x3faa20)}:void 0x0;});}_0x3cb982('bold',c(_0x521e3e,'FORMAT_BOLD')),_0x3cb982('italic',c(_0x521e3e,'FORMAT_ITALIC')),_0x3cb982('underline',c(_0x521e3e,'FORMAT_UNDERLINE')),_0x3cb982('code',c(_0x521e3e,'FORMAT_CODE')),_0x3cb982('strikethrough',c(_0x521e3e,'FORMAT_STRIKETHROUGH')),_0x3cb982('subscript',c(_0x521e3e,'FORMAT_SUBSCRIPT')),_0x3cb982('superscript',c(_0x521e3e,'FORMAT_SUPERSCRIPT'));}}class G extends _0x17923f{['afterInit'](){const _0x3cc151=this['editor'],_0xfd4c07=_0x3cc151['locale'];if(!_0x3cc151['plugins']['has']('BlockQuoteEditing'))return;const _0x15cd2f=_0x3cc151['plugins']['get']('TrackChangesEditing'),_0x435099=this['editor']['commands']['get']('blockQuote');_0x15cd2f['enableCommand']('blockQuote',(_0x335a75,_0xa4ed19={})=>{const _0x338982=this['editor']['model']['document']['selection'],_0x4de05d=_0xa4ed19&&void 0x0!==_0xa4ed19['forceValue']?_0xa4ed19['forceValue']:!_0x435099['value'];let _0x4cd86a=[];if(_0x4de05d){const _0x36da69=Array['from'](_0x338982['getSelectedBlocks']())['filter'](_0x1eddd8=>to(_0x1eddd8)||function(_0x2f1ba7,_0x5e92b3){const _0x3c702e=_0x5e92b3['checkChild'](_0x2f1ba7['parent'],'blockQuote'),_0x2ca77e=_0x5e92b3['checkChild'](['$root','blockQuote'],_0x2f1ba7);return _0x3c702e&&_0x2ca77e;}(_0x1eddd8,this['editor']['model']['schema']));_0x4cd86a=Zt(_0x36da69,_0x3cc151['model']);}else{const _0x4ee101=Array['from'](_0x338982['getSelectedBlocks']())['filter'](_0x12f254=>to(_0x12f254));_0x4cd86a=Zt(_0x4ee101,_0x3cc151['model']);}_0x3cc151['model']['change'](()=>{for(const _0x13c2e5 of _0x4cd86a)_0x15cd2f['markBlockFormat'](_0x13c2e5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4de05d}]});});}),_0x15cd2f['descriptionFactory']['registerDescriptionCallback'](_0x1f0339=>{const {data:_0x1099ef}=_0x1f0339;if(_0x1099ef&&'blockQuote'==_0x1099ef['commandName']){const _0x5d1596=c(_0xfd4c07,'ELEMENT_BLOCK_QUOTE');return _0x1099ef['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xfd4c07,'*Set\x20format:*\x20%0',_0x5d1596)}:{'type':'format','content':c(_0xfd4c07,'*Remove\x20format:*\x20%0',_0x5d1596)};}});}}function to(_0x4f9013){return'blockQuote'==_0x4f9013['parent']['name'];}class L extends _0x17923f{['afterInit'](){const _0x49d4da=this['editor'],_0xbd308b=_0x49d4da['locale'],_0x41d951=_0x49d4da['plugins']['get']('TrackChangesEditing');_0x49d4da['plugins']['has']('BookmarkEditing')&&(_0x41d951['enableCommand']('insertBookmark'),_0x41d951['enableDefaultAttributesIntegration']('updateBookmark'),_0x41d951['registerBlockAttribute']('bookmarkId'),_0x41d951['descriptionFactory']['registerDescriptionCallback'](_0x28b03c=>{if('insertion'!=_0x28b03c['type']&&'deletion'!=_0x28b03c['type']&&'attribute'!=_0x28b03c['type'])return;const _0x2158e9=_0x28b03c['getContainedElement']();if(null==_0x2158e9)return;if(!_0x2158e9['is']('element','bookmark'))return;const _0x1c464c=_0x2158e9['getAttribute']('bookmarkId');if('insertion'==_0x28b03c['type'])return{'type':'insertion','content':c(_0xbd308b,'*Insert:*\x20%0','\x22'+_0x1c464c+'\x22\x20'+c(_0xbd308b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x28b03c['type'])return{'type':'deletion','content':c(_0xbd308b,'*Remove:*\x20%0','\x22'+_0x1c464c+'\x22\x20'+c(_0xbd308b,'ELEMENT_BOOKMARK'))};const {data:_0x2bc70e}=_0x28b03c;if(!_0x2bc70e||'bookmarkId'!=_0x2bc70e['key'])return;return{'type':'format','content':c(_0xbd308b,'*Set\x20bookmark:*\x20%0','\x22'+_0x2bc70e['newValue']+'\x22')};}));}}class J extends _0x17923f{['afterInit'](){const _0x4a1fac=this['editor'];_0x4a1fac['plugins']['has']('CaseChange')&&(_0x4a1fac['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4a1fac['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4a1fac['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x17923f{['afterInit'](){const _0x22ade2=this['editor'];_0x22ade2['commands']['get']('ckbox')&&_0x22ade2['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x17923f{['afterInit'](){const _0x2318f2=this['editor'];if(!_0x2318f2['plugins']['has']('CodeBlock'))return;const _0x1e99d6=_0x2318f2['plugins']['get']('TrackChangesEditing'),_0x2ffb7a=_0x2318f2['locale'],_0x5fc3ae=_0x2318f2['config']['get']('codeBlock')['languages'],_0x34e791=_0x2318f2['commands']['get']('codeBlock');_0x1e99d6['enableCommand']('indentCodeBlock'),_0x1e99d6['enableCommand']('outdentCodeBlock'),_0x1e99d6['enableCommand']('codeBlock',(_0x45b5d2,_0x5975a3={})=>{const _0xed4711=_0x2318f2['model'],_0x3296a3=_0x2318f2['model']['document']['selection'],_0x5e1a46=_0x5975a3&&void 0x0!==_0x5975a3['forceValue']?_0x5975a3['forceValue']:!_0x34e791['value'];let _0x23db22;_0x5975a3['language']||(_0x5975a3['language']=_0x5fc3ae[0x0]['language']),_0x23db22=_0x5e1a46?Array['from'](_0x3296a3['getSelectedBlocks']())['filter'](_0x200edf=>oo(_0x200edf)||function(_0x12969d,_0x1fbdfa){if(_0x12969d['is']('rootElement')||_0x1fbdfa['isLimit'](_0x12969d))return!0x1;return _0x1fbdfa['checkChild'](_0x12969d['parent'],'codeBlock');}(_0x200edf,_0xed4711['schema'])):Array['from'](_0x3296a3['getSelectedBlocks']())['filter'](_0x47e2f3=>oo(_0x47e2f3));const _0x1e648e=Zt(_0x23db22,_0xed4711);_0xed4711['change'](()=>{for(const _0xc6b9c2 of _0x1e648e)_0x1e99d6['markBlockFormat'](_0xc6b9c2,{'commandName':'codeBlock','commandParams':[{..._0x5975a3,'forceValue':_0x5e1a46}],'formatGroupId':'blockName'});});}),(_0x1e99d6['descriptionFactory']['registerElementLabel']('codeBlock',_0x4a0684=>c(_0x2ffb7a,'ELEMENT_CODE_BLOCK',_0x4a0684)),_0x1e99d6['descriptionFactory']['registerDescriptionCallback'](_0x53d143=>{if('formatBlock'!=_0x53d143['type'])return;const _0x48c5ff=_0x2ffb7a['t'],{data:_0x3ec06d}=_0x53d143;if(!_0x3ec06d||'codeBlock'!=_0x3ec06d['commandName'])return;const _0x3c36e9=_0x3ec06d['commandParams'][0x0]['language'],_0x5608eb=_0x48c5ff(_0x5fc3ae['find'](_0x108a82=>_0x108a82['language']===_0x3c36e9)['label'])['toLowerCase']();return _0x3ec06d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2ffb7a,'*Set\x20format:*\x20%0',c(_0x2ffb7a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5608eb+')')}:{'type':'format','content':c(_0x2ffb7a,'*Remove\x20format:*\x20%0',c(_0x2ffb7a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x5da7ed){return'codeBlock'==_0x5da7ed['name'];}class q extends _0x17923f{['afterInit'](){const _0x237e24=this['editor'];if(!_0x237e24['plugins']['has']('CommentsEditing'))return;_0x237e24['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3d186a,_0x2848ab,_0x51d4f8){const _0xefa10a=[];for(const _0x2b5ed3 of _0x2848ab['getItems']())_0x2b5ed3['hasAttribute'](_0x3d186a)&&_0xefa10a['push'](_0x51d4f8['createRangeOn'](_0x2b5ed3));return _0xefa10a;}function De(_0x49d1ed,_0x29241c,{showActiveMarker:_0x5cdea9=!0x0}={}){const _0x104b46=_0x49d1ed['plugins']['get']('TrackChangesEditing');return(_0x305d6f,_0x51e4c1,_0x432e49)=>{if(!_0x432e49['consumable']['test'](_0x51e4c1['markerRange'],_0x305d6f['name']))return;const _0x777b85=_0x51e4c1['markerRange']['getWalker'](),_0x51aa69=_0x51e4c1['markerRange']['start'],_0x38acd1=_0x49d1ed['model']['schema'];let _0x1e5e7f=null,_0x1e2c40=null,_0x18b286=!0x1,_0x420a8a=!0x1;for(const _0x5641c4 of _0x777b85){const _0x1c6a64=_0x5641c4['item'];_0x18b286=_0x18b286||_0x38acd1['isContent'](_0x1c6a64);const _0x17815e=_0x432e49['mapper']['toViewElement'](_0x1c6a64);if(_0x17815e&&_0x17815e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5641c4['type']&&(_0x38acd1['isBlock'](_0x1c6a64)&&!_0x38acd1['isLimit'](_0x1c6a64)&&(_0x1c6a64['nextSibling']||_0x51aa69['isAtEnd']?_0x1e5e7f&&_0x1e5e7f['parent']==_0x1c6a64||(_0x1e5e7f=_0x1c6a64,_0x54b478(_0x5641c4['previousPosition']),_0x420a8a=!0x0):_0x1e2c40=_0x1e2c40||_0x5641c4['previousPosition']));}function _0x54b478(_0x4f283b){const {authorId:_0x4220df}=_0x104b46['_splitMarkerName'](_0x51e4c1['markerName']),_0x186ad4=_0x432e49['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x29241c,'data-author-id':_0x4220df}),_0xe1e654=_0x432e49['mapper']['toViewPosition'](_0x4f283b);_0x5cdea9&&_0x104b46['activeMarkers']['includes'](_0x51e4c1['markerName'])&&_0x432e49['writer']['addClass']('ck-suggestion-marker--active',_0x186ad4),_0x432e49['writer']['insert'](_0xe1e654,_0x186ad4),_0x432e49['mapper']['bindElementToMarker'](_0x186ad4,_0x51e4c1['markerName']);}_0x18b286||_0x420a8a||!_0x1e2c40||_0x54b478(_0x1e2c40);};}class z extends _0x17923f{static get['requires'](){return[_0x54efd2];}['init'](){const _0x1c9b42=this['editor'],_0x47a068=_0x1c9b42['plugins']['get']('TrackChangesEditing');_0x47a068['enableCommand']('delete');const _0x2716c5=_0x1c9b42['commands']['get']('deleteForward');_0x47a068['enableCommand']('deleteForward',(_0x171083,_0x496418={})=>{const _0x427ea8=_0x1c9b42['model']['createSelection'](_0x1c9b42['model']['document']['selection']);_0x427ea8['isCollapsed']&&_0x1c9b42['model']['modifySelection'](_0x427ea8,{'direction':'forward','unit':_0x496418['unit']});const _0xf05c48=_0x427ea8['getFirstRange'](),_0x1e62f8=_0x159dcb['fromRange'](_0xf05c48);let _0x133f18;_0x171083(_0x496418),_0x133f18='$graveyard'==_0x1e62f8['root']['rootName']?_0x1c9b42['model']['createRange'](_0xf05c48['start']):_0x1c9b42['model']['createRange'](_0x1e62f8['start'],_0x1e62f8['end']),_0x1e62f8['detach'](),_0x1c9b42['model']['enqueueChange'](_0x2716c5['buffer']['batch'],_0xe818e8=>{_0x2716c5['buffer']['lock'](),_0xe818e8['setSelection'](_0xe818e8['createRange'](_0x133f18['end'])),_0x2716c5['buffer']['unlock']();});}),_0x1c9b42['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1c9b42,'merge'),{'priority':'high'}),_0x1c9b42['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4d37fa,_0x2e497e,_0xfe0fbb)=>{_0xfe0fbb['options']['showSuggestionHighlights']&&De(_0x1c9b42,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4d37fa,_0x2e497e,_0xfe0fbb);},{'priority':'high'}),_0x1c9b42['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x271f18,_0x4ad678,_0x44f9ed)=>{const _0xc8f48b=_0x44f9ed['mapper']['markerNameToElements'](_0x4ad678['markerName']);if(_0xc8f48b){for(const _0x3dc4fc of _0xc8f48b)_0x3dc4fc['is']('uiElement')&&(_0x44f9ed['mapper']['unbindElementFromMarkerName'](_0x3dc4fc,_0x4ad678['markerName']),_0x44f9ed['writer']['remove'](_0x3dc4fc));}},{'priority':'high'});}}class W extends _0x17923f{['afterInit'](){const _0x4f567b=this['editor'];if(!_0x4f567b['plugins']['has']('ListEditing'))return;const _0x4b390f=_0x4f567b['locale'],_0xb3ec39=_0x4f567b['plugins']['get']('TrackChangesEditing'),_0x279d6c=_0x4f567b['plugins']['has']('TodoListEditing'),_0x3677b6=!!_0x4f567b['config']['get']('list.multiBlock');function _0x93de39(_0x37c963){return{'type':'format','content':''+c(_0x4b390f,'*Set\x20format:*\x20%0',_0x37c963)};}function _0x3e7bb9(_0x10d4bd){return{'type':'format','content':''+c(_0x4b390f,'*Remove\x20format:*\x20%0',_0x10d4bd)};}_0xb3ec39['enableDefaultAttributesIntegration']('numberedList'),_0xb3ec39['enableDefaultAttributesIntegration']('bulletedList'),_0xb3ec39['enableDefaultAttributesIntegration']('customNumberedList'),_0xb3ec39['enableDefaultAttributesIntegration']('customBulletedList'),_0xb3ec39['enableDefaultAttributesIntegration']('indentList'),_0xb3ec39['enableDefaultAttributesIntegration']('outdentList'),_0xb3ec39['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xb3ec39['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xb3ec39['registerBlockAttribute']('listItemId'),_0xb3ec39['registerBlockAttribute']('listType'),_0xb3ec39['registerBlockAttribute']('listIndent'),_0x3677b6&&(_0xb3ec39['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xb3ec39['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x279d6c&&(_0xb3ec39['enableDefaultAttributesIntegration']('todoList'),_0xb3ec39['enableDefaultAttributesIntegration']('checkTodoList'),_0xb3ec39['registerBlockAttribute']('todoListChecked'),_0xb3ec39['descriptionFactory']['registerDescriptionCallback'](_0x30d618=>{const {data:_0x555905}=_0x30d618;if(_0x555905&&'todoListChecked'==_0x555905['key'])return{'type':'format','content':_0x555905['newValue']?c(_0x4b390f,'*Check\x20item*'):c(_0x4b390f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x59dfa0=>{if(_0x59dfa0['batch']['isUndo'])return!0x1;let _0x221059=!0x1;const _0x501b07=_0xb3ec39['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x415b5d=>'todoListChecked'===_0xb3ec39['_getAttributeKey'](_0x415b5d));for(const _0x27ed30 of _0x501b07){'todo'!=_0x27ed30['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xb3ec39['_findSuggestions'](_0x27ed30['getFirstRange'](),'attribute')['find'](_0x4152d7=>'listType'===_0xb3ec39['_getAttributeKey'](_0x4152d7['suggestion']))||(_0x59dfa0['removeMarker'](_0x27ed30['getFirstMarker']()),_0x221059=!0x0));}return _0x221059;})),_0xb3ec39['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x4b390f,'FORMAT_INDENT'));const _0x5a7d76={'type':'format','content':''};_0xb3ec39['descriptionFactory']['registerDescriptionCallback'](_0x560b21=>{const {data:_0x3aab29}=_0x560b21;if(!_0x3aab29||'listType'!=_0x3aab29['key'])return;let _0x12be22=_0x560b21['head'];for(;_0x12be22;){if(_0x12be22['data']&&(('listStyle'==_0x12be22['data']['key']||'listMarkerStyle'==_0x12be22['data']['key'])&&(_0x12be22['data']['newValue']&&'default'!=_0x12be22['data']['newValue']||'default'!=_0x12be22['data']['oldValue']&&!_0x3aab29['newValue'])||!_0x3677b6&&_0x12be22['data']['key']==u))return _0x5a7d76;_0x12be22=_0x12be22['next'];}if(null==_0x3aab29['newValue'])switch(_0x3aab29['oldValue']){case'bulleted':return _0x3e7bb9(c(_0x4b390f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e7bb9(c(_0x4b390f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e7bb9(c(_0x4b390f,'ELEMENT_TODO_LIST'));}switch(_0x3aab29['newValue']){case'bulleted':return _0x93de39(c(_0x4b390f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x93de39(c(_0x4b390f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x93de39(c(_0x4b390f,'ELEMENT_TODO_LIST'));}}),_0xb3ec39['descriptionFactory']['registerDescriptionCallback'](_0x54a978=>{const {data:_0x25a2d7}=_0x54a978;if(_0x25a2d7&&'listIndent'==_0x25a2d7['key'])return null==_0x25a2d7['newValue']||null==_0x25a2d7['oldValue']&&0x0==_0x25a2d7['newValue']?_0x5a7d76:void 0x0;}),_0xb3ec39['descriptionFactory']['registerDescriptionCallback'](_0x2760e3=>{if('attribute'!=_0x2760e3['type'])return;const {data:_0x5b21d2}=_0x2760e3;if(!_0x5b21d2||'listItemId'!=_0x5b21d2['key'])return;const _0x271699=Te(_0x2760e3);return'newValue'==_0x271699?{'type':'format','content':c(_0x4b390f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x271699?{'type':'format','content':c(_0x4b390f,'*Split:*\x20list\x20item')}:_0x5a7d76;}),_0x4f567b['model']['document']['registerPostFixer'](_0x46ef55=>this['listItemIdFixer'](_0x46ef55)),_0x4f567b['model']['document']['registerPostFixer'](_0xb966f7=>this['noTrackChangesFixer'](_0xb966f7)),_0x4f567b['model']['document']['on']('change:data',(_0x37f9d4,_0x7e26b7)=>{if(_0x7e26b7['isUndo']||!_0x7e26b7['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2dd8c5){if(_0x2dd8c5['batch']['isUndo']||!_0x2dd8c5['batch']['isLocal'])return!0x1;let _0x4bb7c5=!0x1;const _0x4f2a7b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e6fd8=>_0x3e6fd8['data']&&'listItemId'==_0x3e6fd8['data']['key'])['filter'](_0x4b771f=>_0x4b771f['data']['newValue']&&_0x4b771f['data']['oldValue']);for(const _0x15d31f of _0x4f2a7b)Te(_0x15d31f)||(_0x2dd8c5['removeMarker'](_0x15d31f['getFirstMarker']()),_0x4bb7c5=!0x0);return _0x4bb7c5;}['noTrackChangesFixer'](_0x3e1569){if(_0x3e1569['batch']['isUndo']||!_0x3e1569['batch']['isLocal'])return!0x1;const _0x5bd040=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5bd040['trackChangesCommand']['value'])return!0x1;let _0x26f9ee=!0x1;const _0x2fbbae=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x57bad5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x81a9c4=>'attribute'==_0x81a9c4['type'])['filter'](_0x632ba=>_0x2fbbae['includes'](_0x632ba['attributeKey']));if(0x0==_0x57bad5['length'])return _0x26f9ee;for(const _0x3f320e of _0x57bad5){const _0x5b9173=_0x5bd040['_findSuggestions'](_0x3f320e['range'],'attribute')['filter'](_0x58b9c4=>!_0x58b9c4['meta']['isNextTo'])['map'](_0x3b1396=>_0x3b1396['suggestion'])['filter'](_0x2dd9c0=>{const _0x559359=_0x5bd040['_getAttributeKey'](_0x2dd9c0);return _0x2fbbae['includes'](_0x559359);});if(_0x5b9173['length']){for(const _0x2a4585 of _0x5b9173)_0x3e1569['removeMarker'](_0x2a4585['getFirstMarker']());_0x26f9ee=!0x0;}}return _0x26f9ee;}['assureChains'](){const _0x24df4b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fd530=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5b1f68;const _0x44e9d0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2ae0ea=>{if(_0x2ae0ea['data']['oldRange']||!_0x2ae0ea['data']['newRange'])return null;if(!_0x2ae0ea['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x33de18}=_0x24df4b['_splitMarkerName'](_0x2ae0ea['name']);if(!_0x24df4b['hasSuggestion'](_0x33de18))return null;const _0x2ec6e9=_0x24df4b['getSuggestion'](_0x33de18);return _0x3fd530['includes'](_0x2ec6e9['data']['key']);})['map'](_0x5e6ed0=>{const {id:_0x29303e}=_0x24df4b['_splitMarkerName'](_0x5e6ed0['name']),_0x10e7c8=_0x24df4b['getSuggestion'](_0x29303e);return _0x5b1f68=_0x10e7c8['attributes']['groupId'],_0x10e7c8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x44e9d0['size'])return;const _0x47590b=_0x24df4b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1eff9e=>'attribute'==_0x1eff9e['type']&&_0x1eff9e['data']&&_0x3fd530['includes'](_0x1eff9e['data']['key'])&&_0x1eff9e['attributes']['groupId']!=_0x5b1f68)['map'](_0x7b50a7=>({'listItem':_0x7b50a7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x7b50a7['attributes']['groupId']})),_0xd27d57=new Set();for(const {groupId:_0x2c5486,listItem:_0x396c24}of _0x47590b)_0x44e9d0['has'](_0x396c24)&&_0xd27d57['add'](_0x2c5486);for(const _0x397b6f of _0x24df4b['getSuggestions']())_0xd27d57['has'](_0x397b6f['attributes']['groupId'])&&_0x397b6f['setAttribute']('groupId',_0x5b1f68);}['_supportLegacySuggestions'](){const _0x47f819=this['editor'],_0x1240f6=_0x47f819['locale'],_0x4a4c53=_0x47f819['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4a4c53['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x12db6d,_0x1c1207){const _0x22aa56=[];for(let _0x933c04 of _0x12db6d)_0x933c04['start']['nodeAfter']===_0x933c04['end']['parent']&&(_0x933c04=_0x47f819['model']['createRange'](_0x47f819['model']['createPositionAt'](_0x933c04['start']['nodeAfter'],0x0))),_0x22aa56['push'](_0x933c04);_0x47f819['model']['change'](_0x453a2e=>{const _0x24b805=_0x47f819['model']['document']['selection'],_0x3e162c=Array['from'](_0x24b805['getRanges']())['map'](_0x231412=>_0x159dcb['fromRange'](_0x231412));_0x453a2e['setSelection'](_0x22aa56),_0x47f819['commands']['get'](_0x1c1207['commandName'])['refresh'](),_0x1c1207['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x47f819['execute'](_0x1c1207['commandName'],..._0x1c1207['commandParams']),_0x453a2e['setSelection'](_0x3e162c);for(const _0x202545 of _0x3e162c)_0x202545['detach']();});}),_0x4a4c53['descriptionFactory']['registerElementLabel'](function(_0x136e6d){const _0x5547b9=!_0x47f819['model']['schema']['isObject'](_0x136e6d),_0x3b8c0f=_0x136e6d['previousSibling'],_0x40d658=_0x136e6d['nextSibling'],_0x1b957c=_0x136e6d['getAttribute']('listItemId'),_0x2d4497=!_0x3b8c0f||_0x3b8c0f['getAttribute']('listItemId')!==_0x1b957c,_0x1781d4=!_0x40d658||_0x40d658['getAttribute']('listItemId')!==_0x1b957c;return _0x5547b9&&Boolean(_0x1b957c)&&_0x2d4497&&_0x1781d4;},_0x5865c6=>c(_0x1240f6,'ELEMENT_LIST_ITEM',_0x5865c6));}['_registerLegacyDescription'](){const _0x3ff3a2=this['editor'],_0x31fac9=_0x3ff3a2['locale'];function _0x409cdc(_0x33e490){const _0x24a29f=_0x3ff3a2['commands']['get']('bulletedList')['value'],_0x3501a6=_0x3ff3a2['commands']['get']('numberedList')['value'];return'numberedList'===_0x33e490?_0x24a29f:_0x3501a6;}_0x3ff3a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x583644){if('formatBlock'!=_0x583644['type'])return;const {data:_0x4346cc}=_0x583644;if(!_0x4346cc)return;let _0x588875,_0x50bec7,_0x3fe901,_0x49d4c0;switch(_0x4346cc['commandName']){case'bulletedList':_0x3fe901=_0x4346cc['commandParams'][0x0]['forceValue'],_0x49d4c0=_0x409cdc(_0x4346cc['commandName']),_0x588875=_0x3fe901?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x49d4c0&&_0x3ff3a2['config']['get']('list.multiBlock')||(_0x588875='*Change\x20to:*\x20%0'),_0x50bec7={'type':'format','content':c(_0x31fac9,_0x588875,c(_0x31fac9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3fe901=_0x4346cc['commandParams'][0x0]['forceValue'],_0x49d4c0=_0x409cdc(_0x4346cc['commandName']),_0x588875=_0x3fe901?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x49d4c0&&_0x3ff3a2['config']['get']('list.multiBlock')||(_0x588875='*Change\x20to:*\x20%0'),_0x50bec7={'type':'format','content':c(_0x31fac9,_0x588875,c(_0x31fac9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x588875='*Indent:*\x20%0',_0x50bec7={'type':'format','content':c(_0x31fac9,_0x588875,c(_0x31fac9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x588875=function(_0x383d29){const _0x16c9bc=_0x383d29['getFirstRange']();let _0x11badd=_0x16c9bc['start']['nodeAfter'];for(;_0x11badd&&_0x16c9bc['containsItem'](_0x11badd);){if(_0x11badd['getAttribute']('listIndent')>0x0)return!0x1;_0x11badd=_0x11badd['nextSibling'];}return!0x0;}(_0x583644)?c(_0x31fac9,'*Format:*\x20remove\x20from\x20%0',c(_0x31fac9,function(_0x3b765d){return'ELEMENT_'+_0x3b765d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x583644))):c(_0x31fac9,'*Outdent:*\x20%0',c(_0x31fac9,'ELEMENT_LIST_ITEM')),_0x50bec7={'type':'format','content':_0x588875};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4346cc['multipleBlocks']&&(_0x588875='*Merge:*\x20%0',_0x50bec7={'type':'deletion','content':c(_0x31fac9,_0x588875,c(_0x31fac9,'ELEMENT_LIST_ITEM'))});}return _0x50bec7;});}}function Te(_0x24448d){let _0x31c7ba=_0x24448d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x31c7ba;){const _0x2a7373=_0x31c7ba['getAttribute']('listItemId');if(!_0x2a7373)return!0x1;if(_0x2a7373==_0x24448d['data']['newValue'])return'newValue';if(_0x2a7373==_0x24448d['data']['oldValue'])return'oldValue';_0x31c7ba=_0x31c7ba['previousSibling'];}return!0x1;}class Se extends _0x17923f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xf40259=this['editor']['config']['get']('list.properties'),_0x599d9c=this['editor']['plugins']['get']('TrackChangesEditing');_0xf40259['styles']&&(_0x599d9c['enableDefaultAttributesIntegration']('listStyle'),_0x599d9c['registerBlockAttribute']('listStyle')),_0xf40259['reversed']&&(_0x599d9c['enableDefaultAttributesIntegration']('listReversed'),_0x599d9c['registerBlockAttribute']('listReversed')),_0xf40259['startIndex']&&(_0x599d9c['enableDefaultAttributesIntegration']('listStart'),_0x599d9c['registerBlockAttribute']('listStart'));const _0x593b7f={'type':'format','content':''};_0x599d9c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x253a9d=this['editor']['locale'];_0x599d9c['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x253a9d,'FORMAT_LIST_REVERSED')),_0x599d9c['descriptionFactory']['registerDescriptionCallback'](_0x46cbdb=>{const {data:_0x369487}=_0x46cbdb;if(_0x369487&&'listReversed'==_0x369487['key'])return null==_0x369487['newValue']||0x0==_0x369487['newValue']&&null==_0x369487['oldValue']?_0x593b7f:void 0x0;}),_0x599d9c['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x253a9d,'FORMAT_LIST_START')),_0x599d9c['descriptionFactory']['registerDescriptionCallback'](_0x468720=>{const {data:_0x111362}=_0x468720;if(_0x111362&&'listStart'==_0x111362['key'])return null==_0x111362['newValue']||0x1==_0x111362['newValue']&&null==_0x111362['oldValue']?_0x593b7f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x23ea17=>{if(_0x23ea17['batch']['isUndo'])return!0x1;let _0x3e7e3c=!0x1;const _0x2331cb=_0x599d9c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39d770=>{const _0x238cda=_0x599d9c['_getAttributeKey'](_0x39d770);return'listStart'==_0x238cda||'listReversed'==_0x238cda;});for(const _0x23aa1c of _0x2331cb){const _0x4846b0=_0x23aa1c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4846b0||'customNumbered'==_0x4846b0)continue;_0x599d9c['_findSuggestions'](_0x23aa1c['getFirstRange'](),'attribute')['find'](_0x163e95=>'listType'==_0x599d9c['_getAttributeKey'](_0x163e95['suggestion']))||(_0x23ea17['removeMarker'](_0x23aa1c['getFirstMarker']()),_0x3e7e3c=!0x0);}return _0x3e7e3c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x221c82){const _0xb57aab=this['editor']['locale'],{data:_0x470679}=_0x221c82,_0x532919={'type':'format','content':''};if(!_0x470679||'listStyle'!=_0x470679['key'])return;if(!_0x470679['oldValue'])return'default'==_0x470679['newValue']?_0x532919:{'type':'format','content':''+c(_0xb57aab,'*Set\x20format:*\x20%0',c(_0xb57aab,this['_getTranslationKeyForListStyle'](_0x470679['newValue'])))};if(!_0x470679['newValue']){if('default'==_0x470679['oldValue'])return _0x532919;let _0x3769b3=_0x221c82['head'];for(;_0x3769b3;){if(_0x3769b3['data']&&'listType'==_0x3769b3['data']['key']&&_0x3769b3['data']['newValue'])return _0x532919;_0x3769b3=_0x3769b3['next'];}return{'type':'format','content':''+c(_0xb57aab,'*Remove\x20format:*\x20%0',c(_0xb57aab,this['_getTranslationKeyForListStyle'](_0x470679['oldValue'])))};}if('default'!=_0x470679['newValue'])return{'type':'format','content':''+c(_0xb57aab,'*Set\x20format:*\x20%0',c(_0xb57aab,this['_getTranslationKeyForListStyle'](_0x470679['newValue'])))};let _0x5d8a13=_0x221c82['head'];for(;_0x5d8a13;){if(_0x5d8a13['data']&&'listType'==_0x5d8a13['data']['key']&&_0x5d8a13['data']['newValue']&&_0x5d8a13['data']['oldValue'])return _0x532919;_0x5d8a13=_0x5d8a13['next'];}return{'type':'format','content':c(_0xb57aab,'*Set\x20format:*\x20%0',c(_0xb57aab,'ELEMENT_'+_0x221c82['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1014ac=this['editor'],_0x1b6cfe=_0x1014ac['locale'];_0x1014ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13abb9=>{if('formatBlock'!=_0x13abb9['type'])return;const {data:_0x5b7d35}=_0x13abb9;if(!_0x5b7d35)return;let _0x7e497c,_0x20f949;switch(_0x5b7d35['commandName']){case'listStyle':_0x7e497c='*Change\x20to:*\x20%0',_0x20f949={'type':'format','content':c(_0x1b6cfe,_0x7e497c,c(_0x1b6cfe,this['_getTranslationKeyForListStyle'](_0x5b7d35['commandParams'][0x0]['type'])))};break;case'listReversed':_0x7e497c=_0x5b7d35['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x20f949={'type':'format','content':c(_0x1b6cfe,_0x7e497c)};break;case'listStart':_0x7e497c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x20f949={'type':'format','content':c(_0x1b6cfe,_0x7e497c,_0x5b7d35['commandParams'][0x0]['startIndex'])};}return _0x20f949;});}['_getTranslationKeyForListStyle'](_0x5d889e){return'ELEMENT_'+function(_0x3a69e5){if(_e['includes'](_0x3a69e5))return'bulleted';if(Re['includes'](_0x3a69e5))return'numbered';return null;}(_0x5d889e)['toUpperCase']()+'_LIST_'+_0x5d889e['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x17923f{['afterInit'](){const _0x245599=this['editor'];_0x245599['commands']['get']('emoji')&&_0x245599['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x17923f{static get['requires'](){return[_0x21d71c];}['init'](){const _0xcc0796=this['editor'],_0x3c347a=_0xcc0796['plugins']['get']('TrackChangesEditing'),_0x22d9e3=_0xcc0796['commands']['get']('enter');_0x3c347a['enableCommand']('enter',()=>{_0xcc0796['model']['change'](_0x11786e=>{const _0xd0ef11=_0xcc0796['model']['document']['selection'],_0xe89a96=_0xd0ef11['getFirstPosition'](),_0x3388e0=_0x159dcb['fromRange'](_0xd0ef11['getFirstRange']());if(_0x22d9e3['enterBlock'](_0x11786e)){const _0x48e340=_0xcc0796['model']['createPositionAt'](_0xe89a96['parent']['nextSibling'],0x0),_0x42c637=_0x11786e['createRange'](_0xe89a96,_0x48e340);_0x3c347a['markInsertion'](_0x42c637);}else _0x11786e['setSelection'](_0x11786e['createRange'](_0x3388e0['end']));_0x3388e0['detach'](),_0x22d9e3['fire']('afterExecute',{'writer':_0x11786e});});}),_0xcc0796['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xcc0796,'split'),{'priority':'high'}),_0xcc0796['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xdef57b,_0x11dc12,_0x16967f)=>{const _0x543049=_0x16967f['mapper']['markerNameToElements'](_0x11dc12['markerName']);if(_0x543049){for(const _0x102f0f of _0x543049)_0x102f0f['hasClass']('ck-suggestion-marker-split')&&(_0x16967f['mapper']['unbindElementFromMarkerName'](_0x102f0f,_0x11dc12['markerName']),_0x16967f['writer']['remove'](_0x102f0f));}},{'priority':'high'}),_0xcc0796['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5947b3,_0x39e781,_0x533a6a)=>{_0x533a6a['options']['showSuggestionHighlights']&&De(_0xcc0796,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5947b3,_0x39e781,_0x533a6a);},{'priority':'high'});}}class Z extends _0x17923f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4c8fa6=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c8fa6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4c8fa6['enableCommand']('findNext'),_0x4c8fa6['enableCommand']('findPrevious'),_0x4c8fa6['enableCommand']('replace'),_0x4c8fa6['enableCommand']('replaceAll');}['handleFindCommand'](_0x1daaee,_0x4ba0f0,_0x12f193={}){const _0x5b4e5e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1daaee(_0x2ecc2b=>{let _0x2e36da=('string'==typeof _0x4ba0f0?_0x5b4e5e['findByTextCallback'](_0x4ba0f0,_0x12f193):_0x4ba0f0)(_0x2ecc2b);Array['isArray'](_0x2e36da)&&(_0x2e36da={'results':_0x2e36da,'searchText':'string'==typeof _0x4ba0f0?_0x4ba0f0:''});const _0x39a7d3=_0x2e36da['results']['filter'](_0x42b454=>!0x1===this['_isInDeletionRange'](_0x42b454,_0x2ecc2b['item']));return{..._0x2e36da,'results':_0x39a7d3};},_0x12f193);}['_isInDeletionRange'](_0x2a2a0b,_0x31a85c){const _0x267b0c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31a85c,_0x2a2a0b['start']),this['editor']['model']['createPositionAt'](_0x31a85c,_0x2a2a0b['end']));for(const _0x16b722 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x267b0c['getIntersection'](_0x16b722['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x17923f{['afterInit'](){const _0xd089ef=this['editor']['locale'],_0x59d453=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4f48fa,commandName:_0x37d178}of eo)this['editor']['plugins']['has'](_0x4f48fa)&&(_0x59d453['enableDefaultAttributesIntegration'](_0x37d178),_0x59d453['registerInlineAttribute'](_0x37d178));_0x59d453['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0xd089ef,'FORMAT_FONT_SIZE')),_0x59d453['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0xd089ef,'FORMAT_FONT_FAMILY')),_0x59d453['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0xd089ef,'FORMAT_FONT_COLOR')),_0x59d453['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0xd089ef,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e2ff8=this['editor'],_0x3658d6=_0x1e2ff8['locale'];_0x1e2ff8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x224e5d=>{const _0x3e6e13=_0x3658d6['t'];if('formatInline'!=_0x224e5d['type'])return;const {data:_0x56df07}=_0x224e5d;if(null!=_0x56df07){if('fontSize'==_0x56df07['commandName']){const _0x282487=_0x56df07['commandParams'][0x0]['value'];if(_0x282487){const _0x2796c4=_0x3e6e13(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x21aff3=>_0x21aff3['model']==_0x282487)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3658d6,'*Set\x20font\x20size:*\x20%0',_0x2796c4)};}return{'type':'format','content':c(_0x3658d6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x56df07['commandName']){const _0x29ee14=_0x56df07['commandParams'][0x0]['value'];return _0x29ee14?{'type':'format','content':c(_0x3658d6,'*Set\x20font\x20family:*\x20%0',_0x29ee14)}:{'type':'format','content':c(_0x3658d6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x56df07['commandName']){const _0xf943a4=_0x56df07['commandParams'][0x0]['value'];if(_0xf943a4){const _0x54403e=_0x5a580c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3705e6=>_0x3705e6['model']==_0xf943a4);let _0x632ef1=_0xf943a4,_0x3358f9='';return _0x54403e&&(_0x632ef1=_0x54403e['label'],_0x3358f9=_0x3e6e13(_0x632ef1)['toLowerCase']()),{'type':'format','content':c(_0x3658d6,'*Set\x20font\x20color:*\x20%0',_0x3358f9)['trim'](),'color':{'value':_0xf943a4,'title':_0x3358f9||_0x632ef1}};}return{'type':'format','content':c(_0x3658d6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x56df07['commandName']){const _0x50e3e4=_0x56df07['commandParams'][0x0]['value'];if(_0x50e3e4){const _0x4d0892=_0x5a580c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x9048fe=>_0x9048fe['model']==_0x50e3e4);let _0x15b5c4=_0x50e3e4,_0x136be3='';return _0x4d0892&&(_0x15b5c4=_0x4d0892['label'],_0x136be3=_0x3e6e13(_0x15b5c4)['toLowerCase']()),{'type':'format','content':c(_0x3658d6,'*Set\x20font\x20background\x20color:*\x20%0',_0x136be3)['trim'](),'color':{'value':_0x50e3e4,'title':_0x136be3||_0x15b5c4}};}return{'type':'format','content':c(_0x3658d6,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x17923f{['afterInit'](){const _0x19da14=this['editor'],_0x5302d1=_0x19da14['plugins']['get']('TrackChangesEditing'),_0x5bc53b=_0x19da14['commands']['get']('copyFormat'),_0x40c447=_0x19da14['commands']['get']('pasteFormat');_0x5bc53b&&_0x40c447&&(_0x5302d1['enableDefaultAttributesIntegration']('pasteFormat'),_0x5302d1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x513f3d=this['editor'],_0x9cc8fd=_0x513f3d['locale'];_0x513f3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8447d1=>{if('formatBlock'!=_0x8447d1['type']&&'formatInline'!=_0x8447d1['type'])return;const {data:_0x183367}=_0x8447d1;if(_0x183367&&'pasteFormat'===_0x183367['commandName']){const _0x4dd991=[],_0x4457f6=_0x183367['commandParams'][0x0];for(const [_0x44867d,_0x136285]of Object['entries'](_0x4457f6))_0x4dd991['push'](ro(_0x513f3d,_0x44867d,_0x136285));return _0x4dd991['length']?{'type':'format','content':c(_0x9cc8fd,'*Set\x20format\x20to:*\x20%0',_0x4dd991['join'](',\x20'))}:{'type':'format','content':c(_0x9cc8fd,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1645d0,_0x4e6c32,_0x331505){const _0x1393a3=_0x1645d0['locale']['t'],_0x10a812=_0x4e6c32['split'](/(?=[A-Z])/)['join']('\x20'),_0xf9bccf=_0x1393a3(_0x10a812['charAt'](0x0)['toUpperCase']()+_0x10a812['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x331505)return _0xf9bccf;if('fontColor'===_0x4e6c32||'fontBackgroundColor'===_0x4e6c32){const _0x37299e=_0x5a580c(_0x1645d0['config']['get']('fontColor.colors'))['find'](_0x55359c=>_0x55359c['model']==_0x331505);return _0xf9bccf+'\x20('+(_0x37299e?_0x1393a3(_0x37299e['label'])['toLowerCase']():_0x331505)+')';}if('fontSize'===_0x4e6c32&&isNaN(parseFloat(_0x331505))){const _0x317c30=_0x1645d0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1645d0['config']['get']('fontSize.options'))['find'](_0x4b9871=>_0x4b9871['model']==_0x331505);return _0xf9bccf+'\x20('+(_0x317c30?_0x1393a3(_0x317c30['title'])['toLowerCase']():_0x331505)+')';}return _0xf9bccf+'\x20('+_0x331505+')';}class nt extends _0x17923f{['_headingOptions'];['afterInit'](){const _0x559e5e=this['editor'];if(!_0x559e5e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x559e5e['config']['get']('heading.options');const _0x2fd9eb=_0x559e5e['locale'],_0x5408a2=_0x559e5e['plugins']['get']('TrackChangesEditing');_0x5408a2['enableDefaultAttributesIntegration']('heading');for(const _0x5a19ef of this['_headingOptions'])'paragraph'!=_0x5a19ef['model']&&_0x5408a2['descriptionFactory']['registerElementLabel'](_0x5a19ef['model'],_0x233758=>{const _0x8ee5fd=this['_getHeadingLevel'](_0x5a19ef['model']);return null!==_0x8ee5fd?_0x2bb240(_0x233758,_0x8ee5fd):_0xe23552(_0x233758,_0x5a19ef['title']);});function _0x2bb240(_0x119213,_0x3e5bda){return c(_0x2fd9eb,'ELEMENT_HEADING',[_0x119213,_0x3e5bda]);}function _0xe23552(_0x3ef54f,_0x50591d){return c(_0x2fd9eb,'ELEMENT_HEADING_CUSTOM',[_0x3ef54f,_0x50591d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x131d69=this['editor'],_0x2f825c=_0x131d69['locale'];function _0x1cbba3(_0x4c2985,_0x5a22cd){return c(_0x2f825c,'ELEMENT_HEADING_CUSTOM',[_0x4c2985,_0x5a22cd]);}_0x131d69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf9758f=>{if('formatBlock'!=_0xf9758f['type'])return;const {data:_0x2cf731}=_0xf9758f;if(_0x2cf731&&'heading'==_0x2cf731['commandName']){const _0xa297bb=_0x2cf731['commandParams'][0x0]['value'],_0x101b4f=this['_getHeadingLevel'](_0xa297bb);if(null!==_0x101b4f)return{'type':'format','content':c(_0x2f825c,'*Change\x20to:*\x20%0',(_0x44becf=0x1,_0x325ac2=_0x101b4f,c(_0x2f825c,'ELEMENT_HEADING',[_0x44becf,_0x325ac2])))};const _0x28808c=this['_headingOptions']['find'](_0x31ac38=>_0x31ac38['model']===_0xa297bb)['title'];return{'type':'format','content':c(_0x2f825c,'*Change\x20to:*\x20%0',_0x1cbba3(0x1,_0x28808c))};}var _0x44becf,_0x325ac2;});}['_getHeadingLevel'](_0x1018f6){const _0x2d83d6=_0x1018f6['match'](/^heading(\d+)/);if(_0x2d83d6)return _0x2d83d6[0x1];const _0x510923=this['_headingOptions']?.['find'](_0x15e41b=>_0x15e41b['model']==_0x1018f6);if(_0x510923&&_0x510923['view']){const _0x5113ec=_0x510923['view'],_0x5cc960=(_0x5113ec['name']??_0x5113ec)['match'](/^h(\d+)/);if(_0x5cc960)return _0x5cc960[0x1];}return null;}}class it extends _0x17923f{['afterInit'](){const _0xe83919=this['editor'];if(!_0xe83919['plugins']['has']('HighlightEditing'))return;const _0xefb89b=_0xe83919['plugins']['get']('TrackChangesEditing'),_0x22eae1=_0xe83919['locale'];_0xefb89b['enableDefaultAttributesIntegration']('highlight'),_0xefb89b['registerInlineAttribute']('highlight'),_0xefb89b['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x22eae1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43fbc4=this['editor'],_0x155b2f=_0x43fbc4['locale'];_0x43fbc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x214781=>{if('formatInline'!=_0x214781['type'])return;const {data:_0x336320}=_0x214781;if(_0x336320&&'highlight'==_0x336320['commandName']){const _0x3eeee1=_0x155b2f['t'],_0x565b10=_0x336320['commandParams'][0x0]['value'];if(_0x565b10){const _0x1d7d7c=_0x43fbc4['config']['get']('highlight.options')['find'](_0x58efe5=>_0x58efe5['model']==_0x565b10),_0x4b754b=_0x3eeee1(_0x1d7d7c['title'])['toLowerCase']();return{'type':'format','content':c(_0x155b2f,'*Set\x20highlight:*\x20%0',_0x4b754b),'color':{'value':_0x1d7d7c['color'],'title':_0x1d7d7c['title']}};}return{'type':'format','content':c(_0x155b2f,'*Remove\x20highlight*',c(_0x155b2f,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x17923f{['afterInit'](){const _0x3db2ef=this['editor'];if(!_0x3db2ef['plugins']['has']('HorizontalLineEditing'))return;_0x3db2ef['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x164cfb=_0x3db2ef['plugins']['get']('TrackChangesEditing'),_0x134d5d=_0x3db2ef['locale'];_0x164cfb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3e4b19=>c(_0x134d5d,'ELEMENT_HORIZONTAL_LINE',_0x3e4b19)),_0x3db2ef['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x242ecb,{writer:_0x1fdd9e,options:_0x933418})=>{if(!_0x933418['showSuggestionHighlights'])return null;const _0x5cd053=_0x1fdd9e['createContainerElement']('div'),_0x483466=_0x1fdd9e['createEmptyElement']('hr');return _0x1fdd9e['addClass']('ck-horizontal-line',_0x5cd053),_0x1fdd9e['insert'](_0x1fdd9e['createPositionAt'](_0x5cd053,0x0),_0x483466),_0x5cd053;},'converterPriority':'high'});}}class ot extends _0x17923f{['afterInit'](){const _0x2307bb=this['editor'];if(!_0x2307bb['plugins']['has']('HtmlEmbed'))return;const _0x547de6=_0x2307bb['plugins']['get']('TrackChangesEditing'),_0x5015bc=_0x2307bb['locale'];_0x547de6['descriptionFactory']['registerElementLabel']('rawHtml',_0x1e894f=>c(_0x5015bc,'ELEMENT_HTML_EMBED',_0x1e894f)),_0x547de6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x547de6['registerBlockAttribute']('value'),_0x547de6['descriptionFactory']['registerDescriptionCallback'](_0x38b1dc=>{if('attribute'!=_0x38b1dc['type'])return;const {data:_0xbc563d}=_0x38b1dc;if(_0xbc563d&&'value'==_0xbc563d['key']&&_0x38b1dc['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x106982=c(_0x5015bc,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5015bc,'*Change\x20%0\x20content*',_0x106982)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57d41e=this['editor'],_0x36b289=_0x57d41e['locale'];_0x57d41e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2227fa=>{if('formatBlock'!=_0x2227fa['type'])return;const {data:_0x18c44a}=_0x2227fa;if(_0x18c44a&&'htmlEmbed'==_0x18c44a['commandName']){const _0x4dc8f1=c(_0x36b289,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x36b289,'*Change\x20%0\x20content*',_0x4dc8f1)};}});}}class rt extends _0x17923f{['afterInit'](){const _0x1dff74=this['editor'];if(!_0x1dff74['plugins']['has']('ImageEditing'))return;const _0x48d69e=_0x1dff74['plugins']['get']('TrackChangesEditing'),_0x425057=_0x1dff74['plugins']['get']('ImageUtils'),_0x134145=_0x1dff74['locale'];_0x48d69e['enableCommand']('insertImage'),_0x48d69e['descriptionFactory']['registerElementLabel']('imageBlock',_0x1a194f=>c(_0x134145,'ELEMENT_IMAGE',_0x1a194f)),_0x48d69e['descriptionFactory']['registerElementLabel']('imageInline',_0xa66c76=>c(_0x134145,'ELEMENT_INLINE_IMAGE',_0xa66c76)),_0x48d69e['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x134145,'ELEMENT_CAPTION')),_0x1dff74['plugins']['has']('ImageUploadEditing')&&_0x48d69e['enableCommand']('uploadImage'),_0x1dff74['plugins']['has']('ImageBlockEditing')&&_0x1dff74['plugins']['has']('ImageInlineEditing')&&(_0x48d69e['enableCommand']('imageTypeInline',(_0x4a33d5,_0xc9b72d)=>{const _0xcdc0a2=_0x425057['getClosestSelectedImageElement'](_0x1dff74['model']['document']['selection']);_0x1dff74['model']['change'](()=>{_0x48d69e['markBlockFormat'](_0xcdc0a2,{'commandName':'imageTypeInline','commandParams':[_0xc9b72d]},[],'convertBlockImageToInline');});}),_0x48d69e['enableCommand']('imageTypeBlock',(_0x352bd5,_0x2049a6)=>{_0x1dff74['model']['change'](_0x4624a8=>{let _0x8b117c=_0x425057['getClosestSelectedImageElement'](_0x1dff74['model']['document']['selection']),_0x1998a0=_0x4624a8['createRangeOn'](_0x8b117c);const _0x25e951=_0xec0a31['fromPosition'](_0x1998a0['start'],'toPrevious'),_0x5b9e75=_0xec0a31['fromPosition'](_0x1998a0['end'],'toNext');_0x48d69e['forceDefaultExecution'](()=>_0x352bd5(_0x2049a6)),_0x8b117c=_0x425057['getClosestSelectedImageElement'](_0x1dff74['model']['document']['selection']),_0x1998a0=_0x4624a8['createRangeOn'](_0x8b117c);const _0x5206b1=_0x4624a8['createRange'](_0x25e951,_0x5b9e75);_0x25e951['detach'](),_0x5b9e75['detach'](),_0x48d69e['markBlockFormat'](_0x8b117c,{'commandName':'imageTypeInline','commandParams':[_0x2049a6]},[],'convertInlineImageToBlock'),_0x5206b1['start']['isBefore'](_0x1998a0['start'])&&_0x48d69e['markInsertion'](_0x4624a8['createRange'](_0x5206b1['start'],_0x1998a0['start']),'convertInlineImageToBlock'),_0x1998a0['end']['isBefore'](_0x5206b1['end'])&&_0x48d69e['markInsertion'](_0x4624a8['createRange'](_0x1998a0['end'],_0x5206b1['end']),'convertInlineImageToBlock');});}),_0x48d69e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x48d69e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x48d69e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x48d69e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x48d69e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x48d69e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1c2452])=>{const _0x7d17f5=_0x48d69e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2376db=_0x1c2452['start'],_0x1460c5=_0x1c2452['end'];const _0x26b3ab=_0x1dff74['model']['schema']['getNearestSelectionRange'](_0x2376db,'backward'),_0x3be78b=_0x1dff74['model']['schema']['getNearestSelectionRange'](_0x1460c5,'forward');_0x26b3ab['isCollapsed']&&(_0x2376db=_0x26b3ab['start']),_0x3be78b['isCollapsed']&&(_0x1460c5=_0x3be78b['end']),_0x7d17f5([_0x1dff74['model']['createRange'](_0x2376db,_0x1460c5)]);}),_0x48d69e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3cd60f),_0x48d69e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3cd60f)),_0x1dff74['plugins']['has']('ImageCaptionEditing')&&(_0x48d69e['enableCommand']('toggleImageCaption',(_0x46d222,_0x5713b7)=>{const _0x4c06c1=_0x1dff74['plugins']['get']('ImageCaptionUtils');let _0x1d4822=_0x425057['getClosestSelectedImageElement'](_0x1dff74['model']['document']['selection']),_0x585c36=_0x4c06c1['getCaptionFromImageModelElement'](_0x1d4822);_0x1dff74['model']['change'](()=>{if(_0x585c36)return void _0x48d69e['markDeletion'](_0x1dff74['model']['createRangeOn'](_0x585c36));const _0x47fade=_0x425057['isBlockImage'](_0x1d4822);_0x46d222(_0x5713b7),_0x1d4822=_0x425057['getClosestSelectedImageElement'](_0x1dff74['model']['document']['selection']),_0x585c36=_0x4c06c1['getCaptionFromImageModelElement'](_0x1d4822),_0x48d69e['markInsertion'](_0x1dff74['model']['createRangeOn'](_0x585c36),_0x47fade?null:'imageCaption');});}),_0x48d69e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3cd60f));const _0x1c774f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xdfd235(_0x47173d,_0x19ac43){const _0x383370=_0x1c774f['findIndex'](({type:_0x7493b7,subType:_0xd5a414})=>_0x47173d['type']==_0x7493b7&&_0x47173d['subType']==_0xd5a414),_0x1af425=_0x1c774f['findIndex'](({type:_0x4dd330,subType:_0x33d2f0})=>_0x19ac43['type']==_0x4dd330&&_0x19ac43['subType']==_0x33d2f0);if(_0x383370<0x0||_0x1af425<0x0)return!0x1;const _0x49fd71=_0x47173d['getFirstRange'](),_0xa5c8d5=_0x19ac43['getFirstRange']();if((0x0==_0x383370||0x1==_0x383370)&&0x2==_0x1af425&&_0x49fd71['isIntersecting'](_0xa5c8d5))return!0x0;if(0x2==_0x383370&&0x3==_0x1af425){const _0x29fc2f=_0x48d69e['_findSuggestions'](_0x49fd71,'insertion')['filter'](({suggestion:_0x423646,meta:_0x4e270a})=>_0x4e270a['isOwn']&&'convertInlineImageToBlock'==_0x423646['subType']);if(_0x29fc2f['length']>0x1&&_0xa5c8d5['end']['isEqual'](_0x49fd71['start']))return!0x0;if(0x1==_0x29fc2f['length']&&(_0x49fd71['start']['isEqual'](_0xa5c8d5['end'])||_0x49fd71['end']['isEqual'](_0xa5c8d5['start'])))return!0x0;}if(0x3==_0x383370&&0x3==_0x1af425&&_0x49fd71['start']['isBefore'](_0xa5c8d5['start'])){const _0x3f1f44=_0x49fd71['end']['nodeAfter'],_0x383bd8=_0xa5c8d5['start']['nodeBefore'];return _0x425057['isBlockImage'](_0x3f1f44)&&_0x3f1f44===_0x383bd8;}return!0x1;}function _0x3cd60f(_0x308532,_0x1a41ef){return _0xdfd235(_0x308532,_0x1a41ef)?[_0x308532,_0x1a41ef]:_0xdfd235(_0x1a41ef,_0x308532)?[_0x1a41ef,_0x308532]:null;}_0x1dff74['plugins']['has']('ImageResize')&&(_0x48d69e['enableDefaultAttributesIntegration']('resizeImage'),_0x48d69e['registerBlockAttribute']('resizedWidth'),_0x48d69e['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x134145,'FORMAT_IMAGE_SIZE'))),_0x1dff74['plugins']['has']('ImageTextAlternativeEditing')&&(_0x48d69e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x48d69e['registerBlockAttribute']('alt')),_0x1dff74['plugins']['has']('PictureEditing')&&(_0x48d69e['registerBlockAttribute']('sources'),_0x48d69e['descriptionFactory']['registerDescriptionCallback'](_0x3e33ec=>{if('attribute'!=_0x3e33ec['type'])return;const {data:_0x48b6fd}=_0x3e33ec;return _0x48b6fd&&'sources'==_0x48b6fd['key']?{'type':'format','content':''}:void 0x0;})),_0x1dff74['plugins']['has']('ImageSizeAttributes')&&(_0x48d69e['registerBlockAttribute']('width'),_0x48d69e['registerBlockAttribute']('height'),_0x48d69e['descriptionFactory']['registerDescriptionCallback'](_0x5db1a6=>{if('attribute'!=_0x5db1a6['type'])return;const {data:_0x43fafd}=_0x5db1a6;return!_0x43fafd||'width'!=_0x43fafd['key']&&'height'!=_0x43fafd['key']?void 0x0:{'type':'format','content':''};})),_0x48d69e['descriptionFactory']['registerDescriptionCallback'](_0x46c1b9=>{if(!!_0x1c774f['find'](({type:_0x4249e0,subType:_0xab9eaf})=>_0x46c1b9['type']==_0x4249e0&&_0x46c1b9['subType']==_0xab9eaf))return _0x46c1b9['previous']?{}:void 0x0;}),_0x48d69e['descriptionFactory']['registerDescriptionCallback'](_0x6d0d3=>{if('insertion'==_0x6d0d3['type']||'deletion'==_0x6d0d3['type']){const _0xddd94=_0x6d0d3['getContainedElement']();if(_0xddd94&&_0xddd94['is']('element','caption'))return{'type':'insertion'==_0x6d0d3['type']?'addObject':'removeObject','element':_0xddd94,'quantity':0x1};}}),_0x48d69e['descriptionFactory']['registerDescriptionCallback'](_0x4d6eea=>'formatBlock'==_0x4d6eea['type']&&'convertInlineImageToBlock'==_0x4d6eea['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4d6eea['type']&&'convertBlockImageToInline'==_0x4d6eea['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x48d69e['descriptionFactory']['registerDescriptionCallback'](_0xe0e193=>{if('attribute'!=_0xe0e193['type'])return;const {data:_0x5c2f72}=_0xe0e193;if(!_0x5c2f72||'alt'!=_0x5c2f72['key'])return;const _0x4030a5=_0x5c2f72['newValue'];return _0x4030a5?{'type':'format','content':c(_0x134145,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4030a5+'\x22')}:{'type':'format','content':c(_0x134145,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x77822=this['editor'],_0x4f7729=_0x77822['locale'];_0x77822['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b6669=>{if('formatBlock'!=_0x1b6669['type']&&'formatInline'!=_0x1b6669['type'])return;const {data:_0xaeb7b7}=_0x1b6669;if(_0xaeb7b7){if('imageTextAlternative'==_0xaeb7b7['commandName']){const _0x39b6d8=_0xaeb7b7['commandParams'][0x0]['newValue'];return _0x39b6d8?{'type':'format','content':c(_0x4f7729,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x39b6d8+'\x22')}:{'type':'format','content':c(_0x4f7729,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xaeb7b7['commandName']){const _0x2eddc6=_0xaeb7b7['commandParams'][0x0]['width'];return _0x2eddc6?{'type':'format','content':c(_0x4f7729,'*Set\x20image\x20width:*\x20%0',_0x2eddc6)}:{'type':'format','content':c(_0x4f7729,'*Reset\x20image\x20width*')};}}});}}class at extends _0x17923f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5455f1=this['editor']['locale'],_0x514968=this['editor']['plugins']['get']('TrackChangesEditing');_0x514968['enableDefaultAttributesIntegration']('replaceImageSource'),_0x514968['registerBlockAttribute']('src'),_0x514968['descriptionFactory']['registerDescriptionCallback'](_0x43198b=>{if('attribute'!=_0x43198b['type'])return;const {data:_0x43c706}=_0x43198b;return _0x43c706&&'src'==_0x43c706['key']?_0x43c706['newValue']&&_0x43c706['oldValue']?{'type':'format','content':c(_0x5455f1,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x129a14=this['editor']['plugins']['get']('TrackChangesEditing');_0x129a14['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x129a14['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x129a14['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x129a14['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c7af7=this['editor'],_0x274013=_0x3c7af7['locale'];_0x3c7af7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ab09a=>{if('formatBlock'!=_0x3ab09a['type']&&'formatInline'!=_0x3ab09a['type'])return;const {data:_0x5ac73a}=_0x3ab09a;if(!_0x5ac73a||'replaceImageSource'!=_0x5ac73a['commandName'])return;return{'type':'format','content':c(_0x274013,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x17923f{['afterInit'](){const _0xe0089=this['editor'];if(!_0xe0089['plugins']['has']('ImageStyleEditing'))return;const _0x3dd429=_0xe0089['plugins']['get']('TrackChangesEditing'),_0x34985f=_0xe0089['plugins']['get']('ImageUtils'),_0x3019ba={};_0x3dd429['enableCommand']('imageStyle',(_0x494a22,_0x482ed6)=>{const _0x50e804=_0xe0089['plugins']['get']('Users')['me'],_0x111624=_0xe0089['commands']['get']('imageStyle');let _0x18609d=_0x34985f['getClosestSelectedImageElement'](_0xe0089['model']['document']['selection']),_0x567654=_0xe0089['model']['createRangeOn'](_0x18609d),_0x564691=_0x111624['value'];if(_0x564691==_0x482ed6['value'])return;const _0x37d905={'commandName':'imageStyle','commandParams':[_0x482ed6],'formatGroupId':_0x27c213()};_0xe0089['model']['change'](()=>{if(_0x3dd429['getSuggestions']()['filter'](_0x32e573=>_0x32e573['isInContent']&&_0x50e804==_0x32e573['author']&&('formatBlock'==_0x32e573['type']||'formatInline'==_0x32e573['type'])&&('imageStylePreApply'==_0x32e573['subType']||'imageStylePostApply'==_0x32e573['subType'])&&_0x32e573['getFirstRange']()['isEqual'](_0x567654))['forEach'](_0x4fa643=>_0x3dd429['discardSuggestion'](_0x4fa643['head'])),_0x18609d=_0x34985f['getClosestSelectedImageElement'](_0xe0089['model']['document']['selection']),_0x567654=_0xe0089['model']['createRangeOn'](_0x18609d),_0x111624['refresh'](),_0xe0089['commands']['get']('imageTypeInline')['refresh'](),_0xe0089['commands']['get']('imageTypeBlock')['refresh'](),_0x564691=_0x111624['value'],_0x564691!=_0x482ed6['value'])return _0x34985f['isInlineImage'](_0x18609d)&&_0x111624['shouldConvertImageType'](_0x482ed6['value'],_0x18609d)?(_0x494a22({..._0x482ed6,'setImageSizes':!0x1}),_0x18609d=_0x34985f['getClosestSelectedImageElement'](_0xe0089['model']['document']['selection']),void _0x3dd429['markBlockFormat'](_0x18609d,{..._0x37d905,'commandReversedParams':[{'value':_0x564691||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x34985f['isBlockImage'](_0x18609d)?_0x3dd429['markBlockFormat'](_0x18609d,_0x37d905,[],'imageStylePostApply'):_0x3dd429['markInlineFormat'](_0x567654,_0x37d905,'imageStylePostApply'));});});for(const _0x277ef8 of _0xe0089['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3019ba[_0x277ef8['name']]=_0x277ef8['title']['toLowerCase']();_0x3dd429['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3dd429['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3dd429['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3dd429['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1d8eea])=>{_0x34985f['setImageNaturalSizeAttributes'](_0x1d8eea['getContainedElement']());}),_0x3dd429['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x12a070,_0x378e7c)=>{_0x3dd429['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x12a070,{'commandName':_0x378e7c['commandName'],'commandParams':_0x378e7c['commandReversedParams']});}),_0x3dd429['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x15e7fe,_0x4917e9){if(_0x3a8da7(_0x15e7fe,_0x4917e9))return[_0x15e7fe,_0x4917e9];if(_0x3a8da7(_0x4917e9,_0x15e7fe))return[_0x4917e9,_0x15e7fe];return null;});const _0x2d882b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3a8da7(_0x48c6e6,_0x68478c){const _0x419ce7=_0x2d882b['findIndex'](({type:_0x4b210c,subType:_0x1258d5})=>_0x48c6e6['type']==_0x4b210c&&_0x48c6e6['subType']==_0x1258d5),_0x28570f=_0x2d882b['findIndex'](({type:_0x5c48c7,subType:_0x36da09})=>_0x68478c['type']==_0x5c48c7&&_0x68478c['subType']==_0x36da09);if(_0x419ce7<0x0||_0x28570f<0x0)return!0x1;const _0x14d9f9=_0x48c6e6['getFirstRange'](),_0x205bc1=_0x68478c['getFirstRange']();if((0x0==_0x419ce7||0x1==_0x419ce7)&&0x2==_0x28570f&&_0x14d9f9['isIntersecting'](_0x205bc1))return!0x0;if(0x2==_0x419ce7&&0x3==_0x28570f){const _0x203ae7=_0x3dd429['_findSuggestions'](_0x14d9f9,'insertion')['filter'](({suggestion:_0x127465,meta:_0xde604})=>_0xde604['isOwn']&&'convertInlineImageToBlock'==_0x127465['subType']);if(_0x203ae7['length']>0x1&&_0x205bc1['end']['isEqual'](_0x14d9f9['start']))return!0x0;if(0x1==_0x203ae7['length']&&(_0x14d9f9['start']['isEqual'](_0x205bc1['end'])||_0x14d9f9['end']['isEqual'](_0x205bc1['start'])))return!0x0;}if(0x3==_0x419ce7&&0x3==_0x28570f&&_0x14d9f9['start']['isBefore'](_0x205bc1['start'])){const _0x555173=_0x14d9f9['end']['nodeAfter'],_0x37bdef=_0x205bc1['start']['nodeBefore'];return _0x34985f['isBlockImage'](_0x555173)&&_0x555173===_0x37bdef;}return!0x1;}_0xe0089['model']['document']['registerPostFixer'](()=>{let _0x238e40=!0x1;const _0x4276c0=Array['from'](_0xe0089['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x29be82,data:_0x17a0d7}of _0x4276c0){const {group:_0x2d0b9b,type:_0x20d915,subType:_0x29abe8,id:_0x3935ab}=_0x3dd429['_splitMarkerName'](_0x29be82);if('suggestion'==_0x2d0b9b&&_0x3dd429['hasSuggestion'](_0x3935ab)){if('formatBlock'==_0x20d915&&('imageStylePreApply'==_0x29abe8||'imageStylePostApply'==_0x29abe8)){const _0x5e7658=_0x3dd429['getSuggestion'](_0x3935ab);if(_0x17a0d7['newRange']){const _0x12ff67=_0x5e7658['getFirstRange']()['getContainedElement']();if(_0x34985f['isBlockImage'](_0x12ff67))continue;_0x3dd429['discardSuggestion'](_0x5e7658),_0x238e40=!0x0;}}if('insertion'==_0x20d915&&'imageCaption'==_0x29abe8&&!_0x17a0d7['newRange']){const _0x2ce922=_0x3dd429['getSuggestion'](_0x3935ab);_0x2ce922['next']&&_0x2ce922['next']['isInContent']&&(_0x3dd429['discardSuggestion'](_0x2ce922['next']),_0x238e40=!0x0);}}}return _0x238e40;}),this['_registerLegacyDescription'](_0x3019ba);}['_registerLegacyDescription'](_0x186d6f){const _0x17a343=this['editor'],_0x9f3064=_0x17a343['locale'];_0x17a343['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x66da7=>{if('formatBlock'!=_0x66da7['type']&&'formatInline'!=_0x66da7['type'])return;const {data:_0x5f0e84}=_0x66da7;if(!_0x5f0e84||'imageStyle'!=_0x5f0e84['commandName'])return;const _0x159a95=_0x5f0e84['commandParams'][0x0]['value'];return _0x66bead('side'===_0x159a95?c(_0x9f3064,'FORMAT_SIDE_IMAGE'):_0x186d6f[_0x159a95]||_0x159a95);function _0x66bead(_0xdea0c){return{'type':'format','content':c(_0x9f3064,'*Format:*\x20%0',_0xdea0c)};}});}}class ut extends _0x17923f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1e99cc){super(_0x1e99cc),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x592001=this['editor'],_0x763ce0=_0x592001['commands']['get']('importWord'),_0x17abb4=_0x592001['commands']['get']('trackChanges');_0x763ce0&&(_0x763ce0['on']('execute',(_0x4c83c8,[,_0x1d2c21])=>{this['_trackChangesValueDuringImport']=_0x17abb4['value'],_0x1d2c21['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x763ce0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x763ce0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x17abb4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x592001['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5699a8,_0x623f95){const {suggestions:_0x3c4e4d}=_0x623f95,_0x34b457=this['editor']['commands']['get']('trackChanges'),_0x4a3181=_0x34b457['value'];this['_trackChangesValueDuringImport']!==_0x4a3181&&(_0x34b457['execute'](),this['_trackChangesExecuted']=!0x0),_0x3c4e4d&&_0x3c4e4d['forEach'](({id:_0x58bd7a,type:_0xe7bd6b,author:_0x4fad7f,created_at:_0x3e09a9})=>{const _0x285779={'id':_0x58bd7a,'type':_0xe7bd6b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4fad7f,'createdAt':_0x3e09a9?new Date(_0x3e09a9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x285779);});}}class ft extends _0x17923f{['afterInit'](){const _0x426a98=this['editor'],_0x6e516=_0x426a98['plugins']['get']('TrackChangesEditing');if(_0x426a98['plugins']['has']('IndentEditing')&&(_0x6e516['enableCommand']('indent'),_0x6e516['enableCommand']('outdent')),_0x426a98['plugins']['has']('IndentBlock')){for(const _0xd7a936 of['indentBlock','outdentBlock'])_0x6e516['enableDefaultAttributesIntegration'](_0xd7a936);}const _0x22d6eb=_0x426a98['locale'];_0x6e516['registerBlockAttribute']('blockIndent'),_0x6e516['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x22d6eb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4582c5=this['editor'],_0x18f42f=_0x4582c5['locale'],_0x343c46=_0x4582c5['plugins']['get']('TrackChangesEditing');_0x343c46['descriptionFactory']['registerDescriptionCallback'](_0x5ea6b4=>{if('formatBlock'!=_0x5ea6b4['type'])return;const {data:_0x4573c1}=_0x5ea6b4;if(!_0x4573c1)return;if('indentBlock'!=_0x4573c1['commandName']&&'outdentBlock'!=_0x4573c1['commandName'])return;const _0x26c89c=_0x5ea6b4['getItems']()[0x0],_0x38a6eb=_0x343c46['descriptionFactory']['getItemLabel'](_0x26c89c);return'indentBlock'==_0x4573c1['commandName']?{'type':'format','content':c(_0x18f42f,'*Indent:*\x20%0',_0x38a6eb)}:'outdentBlock'==_0x4573c1['commandName']?{'type':'format','content':c(_0x18f42f,'*Outdent:*\x20%0',_0x38a6eb)}:void 0x0;});}}class ht extends _0x17923f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x17923f{['afterInit'](){const _0x58cbfd=this['editor'];if(!_0x58cbfd['plugins']['has']('LinkEditing'))return;const _0x439df4=_0x58cbfd['plugins']['get']('TrackChangesEditing'),_0x2df9dd=_0x58cbfd['commands']['get']('link');_0x439df4['enableDefaultAttributesIntegration']('link'),_0x439df4['enableDefaultAttributesIntegration']('unlink'),_0x439df4['registerInlineAttribute']('linkHref');for(const _0x5b4e60 of _0x2df9dd['manualDecorators'])_0x439df4['registerInlineAttribute'](_0x5b4e60['id']),_0x439df4['descriptionFactory']['registerAttributeLabel'](_0x5b4e60['id'],'link\x20('+_0x5b4e60['label']['toLowerCase']()+')');_0x439df4['descriptionFactory']['registerDescriptionCallback'](_0x316f32=>{if('attribute'!=_0x316f32['type'])return;const {data:_0x169dbf}=_0x316f32;if(!_0x169dbf||'linkHref'!=_0x169dbf['key'])return;const _0x203696=_0x169dbf['newValue'],_0x516a61=_0x58cbfd['locale'];return{'type':'format','content':null==_0x203696?c(_0x516a61,'*Remove\x20link*'):c(_0x516a61,'*Set\x20link:*\x20%0','\x22'+_0x203696+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1809ce=this['editor'],_0x416c62=_0x1809ce['locale'];_0x1809ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c3681=>{if('formatInline'!=_0x5c3681['type'])return;const {data:_0x4481f8}=_0x5c3681;if(_0x4481f8){if('link'==_0x4481f8['commandName']){const _0x211fcd=_0x4481f8['commandParams'][0x0];return{'type':'format','content':c(_0x416c62,'*Set\x20link:*\x20%0','\x22'+_0x211fcd+'\x22')};}return'unlink'==_0x4481f8['commandName']?{'type':'format','content':c(_0x416c62,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x17923f{['afterInit'](){const _0xac3a0e=this['editor'],_0x3230b5=_0xac3a0e['locale'];if(!_0xac3a0e['plugins']['has']('LegacyListEditing'))return;const _0x41f228=_0xac3a0e['plugins']['get']('TrackChangesEditing'),_0xc496b6=_0xac3a0e['plugins']['has']('LegacyTodoListEditing');function _0x4ad473(_0x4c3ef9){return()=>{const _0x5e7363=_0xac3a0e['model']['document']['selection'],_0x5e19fb=_0xac3a0e['commands']['get'](_0x4c3ef9);if(_0x5e19fb['value'])return void _0xac3a0e['execute']('paragraph',{});const _0x14cba9=_0x4c3ef9['slice'](0x0,-0x4),_0x35ca77=function(_0x3f1679,_0x105445,_0x2ee433){let _0x256aa5=Array['from'](_0x3f1679)['filter'](_0x1901c3=>function(_0x1968be,_0x2d6c0c){return _0x2d6c0c['checkChild'](_0x1968be['parent'],'listItem')&&!_0x2d6c0c['isObject'](_0x1968be);}(_0x1901c3,_0x2ee433));_0x256aa5=_0x256aa5['filter'](_0x4177e5=>!_0x4177e5['is']('element','listItem')||_0x4177e5['getAttribute']('listType')!=_0x105445);const _0x155cea=new Set();for(const _0x230451 of _0x256aa5)_0x230451['is']('element','listItem')?_0x155cea['add'](Le(_0x230451)):_0x155cea['add'](_0x230451);return Array['from'](_0x155cea);}(_0x5e7363['getSelectedBlocks'](),_0x14cba9,_0xac3a0e['model']['schema']);_0xac3a0e['model']['change'](()=>{for(const _0x1be43c of _0x35ca77)_0x41f228['markBlockFormat'](_0x1be43c,{'commandName':_0x4c3ef9,'commandParams':[{'forceValue':!_0x5e19fb['value']}],'formatGroupId':'blockName'},Ee(_0x1be43c));});};}function _0x274a3c(_0x24a964){return()=>{const _0x217aed=function(_0x4a6f11){let _0x148848=Array['from'](_0x4a6f11);const _0xde88cd=_0x148848['findIndex'](_0x29fe5c=>'listItem'!=_0x29fe5c['name']);return _0xde88cd>-0x1&&(_0x148848=_0x148848['slice'](0x0,_0xde88cd)),_0x148848;}(_0xac3a0e['model']['document']['selection']['getSelectedBlocks']()),_0x1b62d4=_0xac3a0e['model']['createRange'](_0xac3a0e['model']['createPositionAt'](_0x217aed[0x0],'before'),_0xac3a0e['model']['createPositionAt'](_0x217aed[_0x217aed['length']-0x1],'end'));_0xac3a0e['model']['change'](()=>{_0x41f228['markBlockFormat'](_0x1b62d4,{'commandName':_0x24a964,'commandParams':[],'formatGroupId':'listIndent'},function(_0x47cfd1){const _0x453756=new Set();for(const _0x1c39ce of _0x47cfd1){let _0x1a166f=_0x1c39ce['nextSibling'];for(;_0x1a166f&&_0x1a166f['getAttribute']('listIndent')>_0x1c39ce['getAttribute']('listIndent');)_0x453756['add'](_0x1a166f),_0x1a166f=_0x1a166f['nextSibling'];}return Array['from'](_0x453756);}(_0x217aed));});};}_0x41f228['enableCommand']('numberedList',_0x4ad473('numberedList')),_0x41f228['enableCommand']('bulletedList',_0x4ad473('bulletedList')),_0xc496b6&&_0x41f228['enableCommand']('todoList',_0x4ad473('todoList')),_0x41f228['enableCommand']('indentList',_0x274a3c('indentList')),_0x41f228['enableCommand']('outdentList',_0x274a3c('outdentList')),_0xc496b6&&_0x41f228['enableCommand']('checkTodoList',()=>{const _0x3e3604=_0xac3a0e['commands']['get']('checkTodoList'),_0x54ab9d=Array['from'](_0x3e3604['_selectedElements']);_0x54ab9d['filter'](_0x4cbb3e=>_0x4cbb3e['getAttribute']('todoListChecked')!=_0x3e3604['value']),_0xac3a0e['model']['change'](()=>{for(const _0xde040 of _0x54ab9d)_0x41f228['markBlockFormat'](_0xde040,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3e3604['value']}]});});}),_0x41f228['descriptionFactory']['registerElementLabel']('listItem',_0x2cea24=>c(_0x3230b5,'ELEMENT_LIST_ITEM',_0x2cea24)),_0x41f228['descriptionFactory']['registerDescriptionCallback'](_0xcd4ecb=>{if('formatBlock'!=_0xcd4ecb['type']&&'formatInline'!=_0xcd4ecb['type'])return;const {data:_0x2de9df}=_0xcd4ecb;if(_0x2de9df){if('numberedList'==_0x2de9df['commandName']||'bulletedList'==_0x2de9df['commandName']||'todoList'==_0x2de9df['commandName'])switch(_0x2de9df['commandName']['replace']('List','')){case'bulleted':return _0x3a5ff4(c(_0x3230b5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a5ff4(c(_0x3230b5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a5ff4(c(_0x3230b5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2de9df['commandName'])return{'type':'format','content':c(_0x3230b5,'*Indent:*\x20%0',c(_0x3230b5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2de9df['commandName'])return{'type':'format','content':c(_0x3230b5,'*Outdent:*\x20%0',c(_0x3230b5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2de9df['commandName'])return _0x2de9df['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3230b5,'*Check\x20item*')}:{'type':'format','content':c(_0x3230b5,'*Uncheck\x20item*')};}function _0x3a5ff4(_0x1309a2){return{'type':'format','content':c(_0x3230b5,'*Change\x20to:*\x20%0',_0x1309a2)};}});}}function Le(_0x4028b9){const _0x1b5e38=_0x4028b9['getAttribute']('listIndent');if(0x0==_0x1b5e38)return _0x4028b9;let _0x52ed19=_0x4028b9;for(;_0x4028b9['previousSibling']&&_0x4028b9['previousSibling']['is']('element','listItem');){const _0x2c5d59=_0x4028b9['previousSibling']['getAttribute']('listIndent');if(_0x2c5d59==_0x1b5e38)_0x52ed19=_0x4028b9['previousSibling'];else{if(_0x2c5d59<_0x1b5e38)break;}_0x4028b9=_0x4028b9['previousSibling'];}return _0x52ed19;}function Ee(_0x3f6148){const _0x463908=[];if(_0x3f6148['is']('element','listItem')&&_0x3f6148['getAttribute']('listIndent')>0x0){let _0x1a7eda=_0x3f6148['nextSibling'];for(;_0x1a7eda&&'listItem'==_0x1a7eda['name']&&_0x1a7eda['getAttribute']('listIndent')==_0x3f6148['getAttribute']('listIndent');)_0x463908['push'](_0x1a7eda),_0x1a7eda=_0x1a7eda['nextSibling'];}return _0x463908;}class Q extends _0x17923f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x46d6f4=this['editor']['config']['get']('list.properties'),_0xab619e=this['editor']['plugins']['get']('TrackChangesEditing');_0x46d6f4['styles']&&_0xab619e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x46d6f4['reversed']&&_0xab619e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x46d6f4['startIndex']&&_0xab619e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xab619e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x11bba5,_0x34417a={}){const _0x52e711=this['editor']['plugins']['get']('TrackChangesEditing'),_0x535f58=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x52e711['markMultiRangeBlockFormat'](_0x535f58,{'commandName':'listStyle','commandParams':[{'type':_0x34417a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4a84cf,_0x2cff7d={}){const _0x1e0f8f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x413e41=this['_getSuggestionBlocks'](_0x5c9c80=>_0x5c9c80['is']('element','listItem')&&'numbered'===_0x5c9c80['getAttribute']('listType'));if(_0x413e41['length']<0x1)return;const _0x179573=_0x413e41['map'](_0x5ec784=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5ec784,'before'),this['editor']['model']['createPositionAt'](_0x5ec784,0x0)));this['editor']['model']['change'](()=>{_0x1e0f8f['markMultiRangeBlockFormat'](_0x179573,{'commandName':'listReversed','commandParams':[{'reversed':_0x2cff7d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x138b20,_0xe00323={}){const _0x174fff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47e6d1=this['_getSuggestionBlocks'](_0x1eff0d=>_0x1eff0d['is']('element','listItem')&&'numbered'===_0x1eff0d['getAttribute']('listType'));if(_0x47e6d1['length']<0x1)return;const _0x57acdf=_0x47e6d1['map'](_0x2c68a8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c68a8,'before'),this['editor']['model']['createPositionAt'](_0x2c68a8,0x0)));this['editor']['model']['change'](()=>{_0x174fff['markMultiRangeBlockFormat'](_0x57acdf,{'commandName':'listStart','commandParams':[{'startIndex':_0xe00323['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4816a2){if('formatBlock'!=_0x4816a2['type']&&'formatInline'!=_0x4816a2['type'])return;const _0x14b486=this['editor']['locale'],{data:_0x49e831}=_0x4816a2;if(!_0x49e831)return;let _0x39594f,_0x3cb139;switch(_0x49e831['commandName']){case'listStyle':_0x39594f='*Change\x20to:*\x20%0',_0x3cb139={'type':'format','content':c(_0x14b486,_0x39594f,c(_0x14b486,this['_getTranslationKeyForListStyle'](_0x49e831['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39594f=_0x49e831['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3cb139={'type':'format','content':c(_0x14b486,_0x39594f)};break;case'listStart':_0x39594f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3cb139={'type':'format','content':c(_0x14b486,_0x39594f,_0x49e831['commandParams'][0x0]['startIndex'])};}return _0x3cb139;}['_getSuggestionBlocksForListStyle'](){const _0x20f99e=this['editor']['plugins']['get']('LegacyListUtils');let _0x2ee380=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2ee380[0x0]?.['is']('element','listItem')&&_0x2ee380['unshift'](..._0x20f99e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2ee380[_0x2ee380['length']-0x1]?.['is']('element','listItem')&&_0x2ee380['push'](..._0x20f99e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2ee380=[...new Set(_0x2ee380)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2ee380=_0x2ee380['filter'](_0x303639=>_0x303639['is']('element','listItem'))),_0x2ee380;}['_getSuggestionBlocks'](_0x37e2e6){const _0x2c9bc8=this['editor']['plugins']['get']('LegacyListUtils');let _0x41bc04=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x37e2e6)['map'](_0x2fc69c=>{const _0x50dbf9=this['editor']['model']['createPositionAt'](_0x2fc69c,0x0);return[..._0x2c9bc8['getSiblingNodes'](_0x50dbf9,'backward'),..._0x2c9bc8['getSiblingNodes'](_0x50dbf9,'forward')];})['flat']();return _0x41bc04=[...new Set(_0x41bc04)],_0x41bc04;}['_getTranslationKeyForListStyle'](_0xddb994){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xddb994)||'default')['toUpperCase']()+'_LIST_'+_0xddb994['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x17923f{['afterInit'](){const _0x4396b0=this['editor'];if(!_0x4396b0['plugins']['has']('MediaEmbedEditing'))return;const _0x54e8f4=_0x4396b0['plugins']['get']('TrackChangesEditing'),_0x66aed4=_0x4396b0['locale'];_0x54e8f4['enableCommand']('mediaEmbed'),_0x54e8f4['descriptionFactory']['registerElementLabel']('media',_0x4cfb57=>c(_0x66aed4,'ELEMENT_MEDIA',_0x4cfb57)),_0x4396b0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5951eb,{writer:_0x5d4992,options:_0x5bd0a6})=>{if(_0x5bd0a6['showSuggestionHighlights'])return _0x5d4992['createEmptyElement']('div');},'converterPriority':'high'}),_0x4396b0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x138b99,_0x28c01c,_0x1d809b)=>{_0x1d809b['options']['showSuggestionHighlights']&&_0x138b99['stop']();},{'priority':'high'});}}class pt extends _0x17923f{['afterInit'](){const _0x24cf9d=this['editor'];_0x24cf9d['plugins']['has']('MentionEditing')&&_0x24cf9d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x17923f{['afterInit'](){const _0x2bca33=this['editor'];if(!_0x2bca33['plugins']['has']('MergeFieldsEditing'))return;const _0x3b8c9d=_0x2bca33['plugins']['get']('TrackChangesEditing'),_0x4a2a0b=_0x2bca33['locale'];_0x3b8c9d['enableCommand']('insertMergeField'),_0x3b8c9d['enableCommand']('insertMergeFieldBlock'),_0x3b8c9d['enableCommand']('insertMergeFieldImage'),_0x3b8c9d['descriptionFactory']['registerElementLabel']('mergeField',_0x3c0bf0=>c(_0x4a2a0b,'ELEMENT_MERGE_FIELD',_0x3c0bf0)),_0x3b8c9d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x44beac=>c(_0x4a2a0b,'ELEMENT_MERGE_FIELD',_0x44beac)),_0x3b8c9d['descriptionFactory']['registerDescriptionCallback'](_0x44eab6=>{if('insertion'!=_0x44eab6['type']&&'deletion'!=_0x44eab6['type'])return;const _0x557e48=_0x44eab6['getContainedElement']();if(null==_0x557e48)return;const _0x39b0ca=_0x2bca33['plugins']['get']('MergeFieldsEditing');let _0x3f6655;switch(_0x39b0ca['getMergeFieldType'](_0x557e48)){case null:return;case'image':{const _0x5a0c4e=_0x39b0ca['unwrapAffixes'](_0x557e48['getAttribute']('src'));_0x3f6655=_0x39b0ca['getLabel'](_0x5a0c4e)||_0x5a0c4e;break;}default:{const _0x29aefe=_0x557e48['getAttribute']('id');_0x3f6655=_0x39b0ca['getLabel'](_0x29aefe)||_0x29aefe;break;}}return'insertion'==_0x44eab6['type']?{'type':'insertion','content':c(_0x4a2a0b,'*Insert:*\x20%0','\x22'+_0x3f6655+'\x22\x20'+c(_0x4a2a0b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x4a2a0b,'*Remove:*\x20%0','\x22'+_0x3f6655+'\x22\x20'+c(_0x4a2a0b,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x17923f{['afterInit'](){const _0x3407de=this['editor'],_0x3976d8=_0x3407de['plugins']['get']('TrackChangesEditing');_0x3407de['plugins']['has']('MultiLevelList')&&(_0x3976d8['enableDefaultAttributesIntegration']('multiLevelList'),_0x3976d8['registerBlockAttribute']('listMarkerStyle'),_0x3976d8['descriptionFactory']['registerDescriptionCallback'](_0x432ef6=>this['handleDescriptions'](_0x432ef6)));}['handleDescriptions'](_0x14809c){const _0x2a5780=this['editor']['locale'],{data:_0xebae4d}=_0x14809c,_0x1e358b={'type':'format','content':''};if(_0xebae4d&&'listMarkerStyle'==_0xebae4d['key']){if(!_0xebae4d['oldValue'])return{'type':'format','content':c(_0x2a5780,'*Set\x20format:*\x20%0',c(_0x2a5780,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xebae4d['newValue']+')'};if(!_0xebae4d['newValue']){let _0x3d4643=_0x14809c['head'];for(;_0x3d4643;){if(_0x3d4643['data']&&'listType'==_0x3d4643['data']['key']&&_0x3d4643['data']['newValue'])return _0x1e358b;_0x3d4643=_0x3d4643['next'];}return{'type':'format','content':c(_0x2a5780,'*Remove\x20format:*\x20%0',c(_0x2a5780,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xebae4d['oldValue']+')'};}}}}class bt extends _0x17923f{['afterInit'](){const _0x4dc7a1=this['editor'];if(!_0x4dc7a1['plugins']['has']('PageBreakEditing'))return;_0x4dc7a1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x318753=_0x4dc7a1['plugins']['get']('TrackChangesEditing'),_0x21f4b0=_0x4dc7a1['locale'];_0x318753['descriptionFactory']['registerElementLabel']('pageBreak',_0x4d037f=>c(_0x21f4b0,'ELEMENT_PAGE_BREAK',_0x4d037f));}}class yt extends _0x17923f{['afterInit'](){const _0x1aa3b0=this['editor'];if(!_0x1aa3b0['plugins']['has']('Paragraph'))return;const _0x367c9c=_0x1aa3b0['locale'],_0x139213=_0x1aa3b0['plugins']['get']('TrackChangesEditing');_0x139213['descriptionFactory']['registerElementLabel']('paragraph',_0x2e30fa=>c(_0x367c9c,'ELEMENT_PARAGRAPH',_0x2e30fa)),_0x139213['enableDefaultAttributesIntegration']('paragraph'),_0x139213['enableCommand']('insertParagraph'),_0x1aa3b0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1aa3b0),{'priority':'highest'}),_0x1aa3b0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1221f6,_0x5d5060,_0xabd0b1)=>{_0xabd0b1['options']['showSuggestionHighlights']&&nr(_0x1aa3b0,{'showActiveMarker':!0x1})(_0x1221f6,_0x5d5060,_0xabd0b1);},{'priority':'highest'});const _0x191047=_0x139213['descriptionFactory'];_0x191047['registerDescriptionCallback'](_0x2d0963=>{if('insertion'!==_0x2d0963['type'])return;const {start:_0x2af9fc,end:_0xc6205f}=_0x2d0963['getFirstRange']();if(!_0x2af9fc['isTouching'](_0xc6205f)||!_0x2af9fc['nodeAfter'])return;const _0x1f5733=_0x1aa3b0['model']['schema'],_0x4873dd=_0x2af9fc['nodeAfter'];return _0x1f5733['isBlock'](_0x4873dd)&&!_0x1f5733['isLimit'](_0x4873dd)&&_0x1f5733['checkChild'](_0x4873dd,'$text')?{'type':'insertion','content':c(_0x367c9c,'*Insert:*\x20%0',_0x191047['getItemLabel'](_0x4873dd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d550f=this['editor'],_0x156a0c=_0x4d550f['locale'];_0x4d550f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b525f=>{if('formatBlock'!=_0x4b525f['type'])return;const {data:_0x6b4ff7}=_0x4b525f;return _0x6b4ff7&&'paragraph'==_0x6b4ff7['commandName']?{'type':'format','content':c(_0x156a0c,'*Change\x20to:*\x20%0',c(_0x156a0c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4eb237,{showActiveMarker:_0x4485fe=!0x0}={}){return(_0xe283f0,_0x20da47,_0x5cefa7)=>{const _0x1131eb=_0x4eb237['plugins']['get']('TrackChangesEditing'),_0x1520e1=_0x20da47['markerRange']['start'],_0x4ea910=_0x20da47['markerRange']['end'],_0xfe1729=_0x4eb237['model']['schema'];if(!_0x1520e1['isTouching'](_0x4ea910)||!_0x1520e1['nodeAfter'])return;const _0x9d54dc=_0x1520e1['nodeAfter'];if(_0xfe1729['isBlock'](_0x9d54dc)&&!_0xfe1729['isLimit'](_0x9d54dc)&&_0xfe1729['checkChild'](_0x9d54dc,'$text')){if(!_0x5cefa7['consumable']['consume'](_0x20da47['markerRange'],_0xe283f0['name']))return;const {authorId:_0x55ab39}=_0x1131eb['_splitMarkerName'](_0x20da47['markerName']),_0x5df73e=_0x5cefa7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x55ab39}),_0x2b9940=_0x5cefa7['mapper']['toViewPosition'](_0x4ea910);_0x4485fe&&_0x1131eb['activeMarkers']['includes'](_0x20da47['markerName'])&&_0x5cefa7['writer']['addClass']('ck-suggestion-marker--active',_0x5df73e),_0x5cefa7['writer']['insert'](_0x2b9940,_0x5df73e),_0x5cefa7['mapper']['bindElementToMarker'](_0x5df73e,_0x20da47['markerName']);}};}class jt extends _0x17923f{['afterInit'](){const _0x5d3220=this['editor'];_0x5d3220['commands']['get']('replaceSource')&&_0x5d3220['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x17923f{['afterInit'](){const _0x43a2b7=this['editor'];if(!_0x43a2b7['plugins']['has']('RemoveFormatEditing'))return;_0x43a2b7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28d389=this['editor'];_0x28d389['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58bf2a=>{if('formatBlock'!=_0x58bf2a['type']&&'formatInline'!=_0x58bf2a['type'])return;const {data:_0x513efe}=_0x58bf2a;return _0x513efe&&'removeFormat'==_0x513efe['commandName']?{'type':'format','content':c(_0x28d389['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x17923f{['afterInit'](){const _0x1e6dca=this['editor'];if(!_0x1e6dca['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3c9935=_0x1e6dca['plugins']['get']('TrackChangesEditing');_0x3c9935['enableCommand']('goToPreviousRestrictedEditingException'),_0x3c9935['enableCommand']('goToNextRestrictedEditingException');const _0x511406=_0x1e6dca['plugins']['get']('RestrictedEditingModeEditing');_0x511406['enableCommand']('trackChanges'),_0x511406['enableCommand']('acceptSuggestion'),_0x511406['enableCommand']('discardSuggestion'),_0x511406['enableCommand']('acceptAllSuggestions'),_0x511406['enableCommand']('discardAllSuggestions'),_0x511406['enableCommand']('acceptSelectedSuggestions'),_0x511406['enableCommand']('discardSelectedSuggestions');}}class It extends _0x17923f{static get['requires'](){return[_0x37414b];}['init'](){const _0x3655c4=this['editor'],_0x4d5559=_0x3655c4['plugins']['get']('TrackChangesEditing');_0x4d5559['enableCommand']('shiftEnter'),_0x3655c4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3655c4),{'priority':'high'}),_0x3655c4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3655c4),{'priority':'high'}),_0x3655c4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x13e7a0,_0x4dd0ea,_0x239738)=>{_0x239738['options']['showSuggestionHighlights']&&je(_0x3655c4,{'showActiveMarker':!0x1})(_0x13e7a0,_0x4dd0ea,_0x239738);}),_0x4d5559['descriptionFactory']['registerElementLabel']('softBreak',_0x1ab4c2=>c(_0x3655c4['locale'],'ELEMENT_LINE_BREAK',_0x1ab4c2));}}function je(_0x21374c,{showActiveMarker:_0x59e0ea=!0x0}={}){return(_0x13de72,_0x4016f1,_0x503e96)=>{const _0x53cdcb=_0x21374c['plugins']['get']('TrackChangesEditing');if(!_0x503e96['consumable']['test'](_0x4016f1['markerRange'],_0x13de72['name']))return;const _0x2cb005=_0x21374c['model'];for(const _0x39b3fe of _0x4016f1['markerRange']['getItems']()){if(!_0x39b3fe['is']('element','softBreak'))continue;const _0x35eba7='deletion'==_0x4016f1['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xc3a43a}=_0x53cdcb['_splitMarkerName'](_0x4016f1['markerName']),_0x43c8fb=_0x503e96['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35eba7,'data-author-id':_0xc3a43a}),_0x2214fc=_0x503e96['mapper']['toViewPosition'](_0x2cb005['createPositionBefore'](_0x39b3fe));_0x59e0ea&&_0x53cdcb['activeMarkers']['includes'](_0x4016f1['markerName'])&&_0x503e96['writer']['addClass']('ck-suggestion-marker--active',_0x43c8fb),_0x503e96['writer']['insert'](_0x2214fc,_0x43c8fb),_0x503e96['mapper']['bindElementToMarker'](_0x43c8fb,_0x4016f1['markerName']);}};}class _t extends _0x17923f{['afterInit'](){const _0x2e2ac5=this['editor'],_0x1664e7=_0x2e2ac5['model'],_0x31678a=_0x2e2ac5['locale'];if(!_0x2e2ac5['plugins']['has']('StandardEditingModeEditing'))return;const _0x1a3916=_0x2e2ac5['plugins']['get']('TrackChangesEditing'),_0x318f11='restrictedEditingException',_0x3f1b52=_0x2e2ac5['commands']['get'](_0x318f11);_0x1a3916['enableCommand'](_0x318f11,(_0x3ffc6c,_0x54f904={})=>{const _0x5f0856=_0x1664e7['document']['selection'];if(_0x5f0856['isCollapsed'])return void _0x3ffc6c(_0x54f904);const _0x144b98=void 0x0!==_0x54f904['forceValue']?_0x54f904['forceValue']:!_0x3f1b52['value'];_0x1664e7['change'](()=>{const _0x189a39=Array['from'](_0x5f0856['getRanges']());for(const _0x1cad79 of _0x189a39){const _0x5b5c90=_0x144b98?[_0x1cad79]:io(_0x318f11,_0x1cad79,_0x1664e7);for(const _0xf2174c of _0x5b5c90)_0x1a3916['markInlineFormat'](_0xf2174c,{'commandName':_0x318f11,'commandParams':[{'forceValue':_0x144b98}]});}});}),_0x1a3916['descriptionFactory']['registerDescriptionCallback'](_0xce89bb=>{if('formatBlock'!=_0xce89bb['type']&&'formatInline'!=_0xce89bb['type'])return;const {data:_0x8ef38e}=_0xce89bb;return _0x8ef38e&&_0x8ef38e['commandName']==_0x318f11?_0x8ef38e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x31678a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x31678a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x17923f{['afterInit'](){const _0x54d8f6=this['editor'];if(!_0x54d8f6['plugins']['has']('Style')||!_0x54d8f6['plugins']['has']('DataSchema'))return;const _0x97378=_0x54d8f6['plugins']['get']('TrackChangesEditing'),_0x55b324=_0x54d8f6['locale'],_0x537fbb=_0x54d8f6['config']['get']('style')||{},_0x5b9b3d=_0x54d8f6['plugins']['get']('GeneralHtmlSupport'),_0xbedd40=_0x54d8f6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x54d8f6['plugins']['get']('DataSchema'),_0x537fbb['definitions']);_0x97378['enableDefaultAttributesIntegration']('style');const _0x17d32a=new Set();for(const _0x107a59 of _0xbedd40['block']){const _0xf26fdb=_0x5b9b3d['getGhsAttributeNameForElement'](_0x107a59['element']);_0x17d32a['add'](_0xf26fdb);}const _0x2d555e=new Set();for(const _0x2b436d of _0xbedd40['inline']){const _0x255e07=_0x5b9b3d['getGhsAttributeNameForElement'](_0x2b436d['element']);_0x2d555e['add'](_0x255e07);for(const _0x3ab6 of _0x2b436d['ghsAttributes'])_0x2d555e['add'](_0x3ab6);}for(const _0x138bc2 of _0x17d32a)_0x97378['registerBlockAttribute'](_0x138bc2),_0x97378['descriptionFactory']['registerAttributeLabel'](_0x138bc2,c(_0x55b324,'FORMAT_STYLE'));for(const _0x27fc7e of _0x2d555e)_0x97378['registerInlineAttribute'](_0x27fc7e),_0x97378['descriptionFactory']['registerAttributeLabel'](_0x27fc7e,c(_0x55b324,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ba4c2=this['editor'],_0x164661=_0x5ba4c2['locale'];_0x5ba4c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26ffeb=>{if('formatBlock'!=_0x26ffeb['type']&&'formatInline'!=_0x26ffeb['type'])return;const {data:_0x3c7876}=_0x26ffeb;return _0x3c7876&&'style'===_0x3c7876['commandName']?_0x3c7876['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x164661,'*Set\x20format:*\x20%0',_0x3c7876['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x164661,'*Remove\x20format:*\x20%0',_0x3c7876['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x17923f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x531a64){super(_0x531a64),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x11f68d=this['editor'],_0x25b1c6=_0x11f68d['model']['document']['selection'];if(!_0x11f68d['plugins']['has']('TableEditing'))return;const _0x34ef5a=_0x11f68d['locale'],_0x6e8a06=_0x11f68d['plugins']['get']('TrackChangesEditing'),_0x523a77=_0x11f68d['plugins']['get']('TableUtils');_0x6e8a06['descriptionFactory']['registerElementLabel']('table',_0x3aeab9=>c(_0x34ef5a,'ELEMENT_TABLE',_0x3aeab9)),this['_setupColumnsRowsFixing'](),_0x6e8a06['enableCommand']('insertTable'),_0x6e8a06['enableCommand']('selectTableRow'),_0x6e8a06['enableCommand']('selectTableColumn');for(const _0x1a1561 of['insertTableRowAbove','insertTableRowBelow']){const _0x4118df=_0x11f68d['commands']['get'](_0x1a1561);_0x6e8a06['enableCommand'](_0x1a1561,_0x516c7b=>{_0x11f68d['model']['change'](_0x46d9b5=>{_0x516c7b();const _0x3cca46='above'===_0x4118df['order'],_0x2162b4=_0x523a77['getSelectionAffectedTableCells'](_0x25b1c6),_0x137c5a=_0x523a77['getRowIndexes'](_0x2162b4),_0x21755d=_0x3cca46?_0x137c5a['first']-0x1:_0x137c5a['last']+0x1,_0x2e63bd=_0x2162b4[0x0]['findAncestor']('table'),_0x11f536=_0x523a77['createTableWalker'](_0x2e63bd,{'startRow':_0x21755d,'endRow':_0x21755d}),_0x1105c9=Array['from'](_0x11f536)['map'](_0x46030b=>_0x46d9b5['createRangeOn'](_0x46030b['cell']));_0x6e8a06['markMultiRangeInsertion'](_0x1105c9,'tableRow');});});}for(const _0x5b7307 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3cae15=_0x11f68d['commands']['get'](_0x5b7307);_0x6e8a06['enableCommand'](_0x5b7307,_0x32008c=>{_0x11f68d['model']['change'](_0x5a4e5e=>{_0x32008c();const _0xfd6a81='left'===_0x3cae15['order'],_0x330cfa=_0x523a77['getSelectionAffectedTableCells'](_0x25b1c6),_0x4cfa0d=_0x523a77['getColumnIndexes'](_0x330cfa),_0x46412d=_0xfd6a81?_0x4cfa0d['first']-0x1:_0x4cfa0d['last']+0x1,_0x44cf63=_0x330cfa[0x0]['findAncestor']('table'),_0x4f9a56=_0x523a77['createTableWalker'](_0x44cf63,{'startRow':0x0,'column':_0x46412d,'includeAllSlots':!0x1}),_0x1152d0=Array['from'](_0x4f9a56)['map'](_0x341fbc=>_0x5a4e5e['createRangeOn'](_0x341fbc['cell']));_0x6e8a06['markMultiRangeInsertion'](_0x1152d0,'tableColumn');});});}for(const _0x386c73 of['removeTableRow','removeTableColumn']){const _0x4b7aef=_0x386c73['substr'](0xb),_0x5c9466=_0x4b7aef['toLowerCase'](),_0x379726=_0x5c9466['substr'](0x0,0x3)+'span',_0xbbd1af='table'+_0x4b7aef,_0x284ddb='min'+_0x4b7aef,_0x1b1588='max'+_0x4b7aef;_0x6e8a06['enableCommand'](_0x386c73,()=>{_0x11f68d['model']['change'](_0x128a47=>{const _0xc85d9=_0x523a77['getSelectionAffectedTableCells'](_0x25b1c6),_0x2f4d73=_0xc85d9[0x0]['findAncestor']('table');let _0x43190b;if('removeTableRow'==_0x386c73){const _0x31e089=_0x523a77['getRowIndexes'](_0xc85d9);_0x43190b={'startRow':_0x31e089['first'],'endRow':_0x31e089['last'],'includeAllSlots':!0x0};}else{const _0xc56558=_0x523a77['getColumnIndexes'](_0xc85d9);_0x43190b={'startColumn':_0xc56558['first'],'endColumn':_0xc56558['last'],'includeAllSlots':!0x0};}const _0x493154=_0x523a77['createTableWalker'](_0x2f4d73,_0x43190b),_0x518a67=Array['from'](_0x493154)['map'](({cell:_0x80fb2e})=>_0x80fb2e),_0x16504d=Ne(_0x518a67['filter'](_0x109937=>_0x109937['hasAttribute'](_0x379726))),_0x5e3f7e=Ne(_0x518a67['filter'](_0x13190f=>!_0x13190f['hasAttribute'](_0x379726)))['map'](_0x1bfb07=>_0x128a47['createRangeOn'](_0x1bfb07)),_0x2b584b=_0x6e8a06['markMultiRangeDeletion'](_0x5e3f7e,_0xbbd1af);if(_0x2b584b&&('tableRow'==_0x2b584b['subType']||'tableColumn'==_0x2b584b['subType'])){const _0x4e0e73=this['_getSuggestionCoords'](_0x2b584b);for(const _0x3affe7 of _0x16504d){const _0x5da768=_0x128a47['createRangeOn'](_0x3affe7),_0x1cc79a=_0x523a77['getCellLocation'](_0x3affe7),_0x1aba3c=_0x3affe7['getAttribute'](_0x379726)-0x1,_0x539a35=_0x4e0e73[_0x284ddb],_0x4d6943=_0x4e0e73[_0x1b1588];_0x539a35<=_0x1cc79a[_0x5c9466]&&_0x1cc79a[_0x5c9466]+_0x1aba3c<=_0x4d6943&&_0x2b584b['addRange'](_0x5da768);}}});});}function _0x437631(_0x2280ac){const _0x1896e6=Array['from'](_0x25b1c6['getRanges']())['map'](_0x1b1eea=>_0x159dcb['fromRange'](_0x1b1eea));_0x11f68d['model']['change'](_0x451c9c=>{const _0x4d7c43=_0x451c9c['batch'];_0x2280ac=_0x2280ac['filter'](_0x34f17e=>'$graveyard'!=_0x34f17e['root']['rootName']),_0x451c9c['setSelection'](_0x2280ac),_0x11f68d['commands']['get']('removeTableRow')['refresh'](),_0x11f68d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x11f68d['model']['enqueueChange'](()=>{_0x11f68d['model']['enqueueChange'](_0x4d7c43,_0x27af89=>{const _0x10fad2=_0x1896e6['filter'](_0x36a325=>'$graveyard'!=_0x36a325['root']['rootName']);_0x10fad2['length']>0x0&&_0x27af89['setSelection'](_0x10fad2);for(const _0x37bdaa of _0x1896e6)_0x37bdaa['detach']();});});});}function _0x14ae0c(_0x408d4f){_0x11f68d['model']['change'](_0x53441a=>{const _0x19782e=Array['from'](_0x25b1c6['getRanges']())['map'](_0x4f991b=>_0x159dcb['fromRange'](_0x4f991b)),_0x42c886=[];for(const _0x5f52ed of _0x408d4f)for(const _0x22f733 of _0x5f52ed['getItems']({'shallow':!0x0}))_0x42c886['push'](_0x22f733);for(const _0x5b78b1 of _0x42c886)'$graveyard'!=_0x5b78b1['root']['rootName']&&(_0x53441a['setSelection'](_0x53441a['createPositionAt'](_0x5b78b1,0x0)),_0x11f68d['commands']['get']('removeTableColumn')['refresh'](),_0x11f68d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2ff6ec=_0x19782e['filter'](_0x4140db=>'$graveyard'!=_0x4140db['root']['rootName']);_0x2ff6ec['length']>0x0&&_0x53441a['setSelection'](_0x2ff6ec);for(const _0x264c34 of _0x19782e)_0x264c34['detach']();});}function _0x4ad52b(_0x251f43,_0x228558){return _0x228558['every'](_0x5212b6=>_0x251f43['some'](_0xac29f1=>_0xac29f1['end']['isEqual'](_0x5212b6['start'])||_0x5212b6['end']['isEqual'](_0xac29f1['start'])));}function _0x11c8ef(_0x549d9e,_0x2d4bef){return!_0x549d9e['some'](_0x4320bc=>_0x2d4bef['some'](_0x3d233a=>_0x4320bc['isIntersecting'](_0x3d233a)))&&_0x549d9e['some'](_0x5a8fed=>_0x2d4bef['some'](_0x182659=>_0x5a8fed['end']['isTouching'](_0x182659['start'])));}_0x11f68d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x395f5d,_0x44477c,_0x4103a4)=>{if(!_0x4103a4['options']['showSuggestionHighlights'])return;const _0x2bd7a5=_0x44477c['item'];if(!_0x2bd7a5)return;const _0x1dc3e0=_0x4103a4['mapper']['toViewElement'](_0x2bd7a5);function _0x3ea0c7(_0x53943d){return Array['isArray'](_0x53943d)?_0x53943d:[_0x53943d];}_0x1dc3e0&&'tableCell'===_0x2bd7a5['name']&&_0x243101(_0x1dc3e0,_0x4103a4['writer'],(_0xc8255f,_0x5a028b,_0x393f66)=>_0x393f66['addClass'](_0x3ea0c7(_0x5a028b['classes']),_0xc8255f),(_0x475c5d,_0x32c651,_0x3ea8a5)=>_0x3ea8a5['removeClass'](_0x3ea0c7(_0x32c651['classes']),_0x475c5d));},{'priority':'highest'}),_0x6e8a06['descriptionFactory']['registerDescriptionCallback'](_0x3ccb04=>{if('insertion'!=_0x3ccb04['type']&&'deletion'!=_0x3ccb04['type'])return;const _0x338401=_0x3ccb04['getContainedElement']();if(null!=_0x338401&&_0x338401['is']('element','table')){if('insertion'==_0x3ccb04['type']){const _0x290afc=_0x3ccb04['getItems']()['filter'](_0xb83d06=>_0xb83d06['is']('$textProxy'))['map'](_0x996f33=>_0x996f33['data']);if(_0x290afc['length'])return{'type':'insertion','content':c(_0x34ef5a,'*Insert:*\x20%0',c(_0x34ef5a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x290afc['join']('\x20')+'\x22'))};}if('deletion'==_0x3ccb04['type']){const _0x28fe53=_0x3ccb04['getItems']()['filter'](_0x19fa39=>_0x19fa39['is']('$textProxy'))['map'](_0x22ef6d=>_0x22ef6d['data']);if(_0x28fe53['length'])return{'type':'deletion','content':c(_0x34ef5a,'*Remove:*\x20%0',c(_0x34ef5a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x28fe53['join']('\x20')+'\x22'))};}}}),_0x6e8a06['descriptionFactory']['registerDescriptionCallback'](_0xd083e6=>{if('tableRow'==_0xd083e6['subType']){const _0x1b2607=_0xd083e6['getItems']()['filter'](_0x4bbc25=>_0x4bbc25['is']('$textProxy'))['map'](_0xd25918=>_0xd25918['data']),_0x5c25c6=this['_getSuggestionCoords'](_0xd083e6),_0x416bca=_0x5c25c6['maxRow']-_0x5c25c6['minRow']+0x1;if('insertion'==_0xd083e6['type'])return _0x1b2607['length']?{'type':'insertion','content':c(_0x34ef5a,'*Insert:*\x20%0',c(_0x34ef5a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x416bca,'\x22'+_0x1b2607['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x34ef5a,'*Insert:*\x20%0',c(_0x34ef5a,'ELEMENT_TABLE_ROW',_0x416bca))};if('deletion'==_0xd083e6['type'])return _0x1b2607['length']?{'type':'deletion','content':c(_0x34ef5a,'*Remove:*\x20%0',c(_0x34ef5a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x416bca,'\x22'+_0x1b2607['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x34ef5a,'*Remove:*\x20%0',c(_0x34ef5a,'ELEMENT_TABLE_ROW',_0x416bca))};}if('tableColumn'==_0xd083e6['subType']){const _0x112952=_0xd083e6['getItems']()['filter'](_0x418d50=>_0x418d50['is']('$textProxy'))['map'](_0x1b6dce=>_0x1b6dce['data']),_0x1cd25f=this['_getSuggestionCoords'](_0xd083e6),_0x522889=_0x1cd25f['maxColumn']-_0x1cd25f['minColumn']+0x1;if('insertion'==_0xd083e6['type'])return _0x112952['length']?{'type':'insertion','content':c(_0x34ef5a,'*Insert:*\x20%0',c(_0x34ef5a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x522889,'\x22'+_0x112952['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x34ef5a,'*Insert:*\x20%0',c(_0x34ef5a,'ELEMENT_TABLE_COLUMN',_0x522889))};if('deletion'==_0xd083e6['type'])return _0x112952['length']?{'type':'deletion','content':c(_0x34ef5a,'*Remove:*\x20%0',c(_0x34ef5a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x522889,'\x22'+_0x112952['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x34ef5a,'*Remove:*\x20%0',c(_0x34ef5a,'ELEMENT_TABLE_COLUMN',_0x522889))};}}),_0x6e8a06['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x437631),_0x6e8a06['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x437631),_0x6e8a06['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x14ae0c),_0x6e8a06['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x14ae0c),_0x6e8a06['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4ad52b),_0x6e8a06['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4ad52b),_0x6e8a06['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x11c8ef),_0x6e8a06['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x11c8ef);}['_acceptFormatSuggestionCallbackFactory'](){const _0x358daa=this['editor'],_0x22c212=_0x358daa['model']['document']['selection'];return(_0x42aed1,_0x48f419)=>{_0x358daa['model']['change'](_0x39ad8a=>{const {commandName:_0x3f28cf,commandParams:_0x1fe106}=_0x48f419;let _0x53cd32=_0x42aed1[0x0]['end']['nodeBefore'];_0x1fe106&&_0x1fe106[0x0]&&!0x1===_0x1fe106[0x0]['forceValue']&&(_0x53cd32=_0x42aed1[0x0]['start']['nodeAfter']);const _0x3980a6=_0x39ad8a['createRangeIn'](_0x53cd32);if('$graveyard'==_0x3980a6['root']['rootName'])return;const _0x4dec4f=Array['from'](_0x22c212['getRanges']())['map'](_0x165846=>_0x159dcb['fromRange'](_0x165846));_0x39ad8a['setSelection'](_0x3980a6),_0x358daa['commands']['get'](_0x3f28cf)['refresh'](),_0x1fe106['push']({'forceDefaultExecution':!0x0}),_0x358daa['execute'](_0x3f28cf,..._0x1fe106);const _0x554927=_0x4dec4f['filter'](_0x3a5a13=>'$graveyard'!=_0x3a5a13['root']['rootName']);_0x554927['length']>0x0&&_0x39ad8a['setSelection'](_0x554927);for(const _0x1fc6ce of _0x4dec4f)_0x1fc6ce['detach']();});};}['_getCoordsForCells'](_0x4875ca){const _0x36bca2=this['editor']['plugins']['get']('TableUtils');let _0x3c51e8=Number['MAX_SAFE_INTEGER'],_0x34de6d=Number['MIN_SAFE_INTEGER'],_0x3f54d8=Number['MAX_SAFE_INTEGER'],_0x584dc6=Number['MIN_SAFE_INTEGER'];for(const _0x439d36 of _0x4875ca){if('$graveyard'==_0x439d36['root']['rootName'])continue;const {row:_0x539828,column:_0x2f0106}=_0x36bca2['getCellLocation'](_0x439d36),_0x5e478c=_0x439d36['hasAttribute']('rowspan')?_0x439d36['getAttribute']('rowspan')-0x1:0x0,_0x329fc3=_0x439d36['hasAttribute']('colspan')?_0x439d36['getAttribute']('colspan')-0x1:0x0;_0x3c51e8=_0x539828<_0x3c51e8?_0x539828:_0x3c51e8,_0x34de6d=_0x539828+_0x5e478c>_0x34de6d?_0x539828+_0x5e478c:_0x34de6d,_0x3f54d8=_0x2f0106<_0x3f54d8?_0x2f0106:_0x3f54d8,_0x584dc6=_0x2f0106+_0x329fc3>_0x584dc6?_0x2f0106+_0x329fc3:_0x584dc6;}return{'minRow':_0x3c51e8,'maxRow':_0x34de6d,'minColumn':_0x3f54d8,'maxColumn':_0x584dc6};}['_setupColumnsRowsFixing'](){const _0x52d46e=this['editor'],_0x393ff2=_0x52d46e['plugins']['get']('TrackChangesEditing'),_0x35518b=_0x52d46e['plugins']['get']('TableUtils');_0x52d46e['model']['document']['on']('change:data',()=>{const _0x526311=Array['from'](_0x52d46e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x11aec2,data:_0x3f8571}of _0x526311){const {group:_0x40484c,id:_0x6d6456,subType:_0x55eb09}=_0x393ff2['_splitMarkerName'](_0x11aec2);if('suggestion'!=_0x40484c)continue;if(null!=_0x3f8571['oldRange'])continue;const _0x3896bb=_0x393ff2['getSuggestion'](_0x6d6456);this['_tablePostFixingSubtypes']['includes'](_0x55eb09)&&this['_tableSuggestions']['add'](_0x3896bb);}},{'priority':'low'});const _0x173730=(_0x3fb9bc,_0x39e7de)=>{let _0x533384=!0x1;const _0x95257e=_0x39e7de['createRangeOn'](_0x3fb9bc),_0x3710b7=_0x3fb9bc['findAncestor']('table'),_0x15ae26=_0x35518b['getCellLocation'](_0x3fb9bc);for(const _0x2af969 of this['_tableSuggestions']){const _0x2ff80d=_0x2af969['subType'],_0x1b45ce=_0x2ff80d['startsWith']('tablePaste'),_0x31d827=_0x2ff80d['substr'](_0x1b45ce?0xa:0x5),_0x5f63eb=_0x31d827['toLowerCase'](),_0x2ece81=_0x5f63eb['substr'](0x0,0x3)+'span',_0x5a285d='min'+_0x31d827,_0x44c979='max'+_0x31d827;if(!_0x2af969['isInContent'])continue;if(_0x3710b7!=_0x2af969['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2af969['isIntersectingWithRange'](_0x95257e))continue;const _0x40ad59=_0x3fb9bc['hasAttribute'](_0x2ece81)?_0x3fb9bc['getAttribute'](_0x2ece81)-0x1:0x0,_0x56c781=this['_getSuggestionCoords'](_0x2af969),_0x436ef9=_0x56c781[_0x5a285d],_0x5237c6=_0x56c781[_0x44c979];_0x436ef9<=_0x15ae26[_0x5f63eb]&&_0x15ae26[_0x5f63eb]+_0x40ad59<=_0x5237c6&&(_0x2af969['addRange'](_0x95257e),_0x533384=!0x0);}return _0x533384;};_0x52d46e['model']['document']['registerPostFixer'](_0x57abc3=>{let _0x206ca9=!0x1;for(const _0x168c47 of _0x52d46e['model']['document']['differ']['getChanges']())if('insert'==_0x168c47['type']){if('tableRow'==_0x168c47['name']){for(const _0x542ad of _0x168c47['position']['nodeAfter']['getChildren']())_0x206ca9=_0x206ca9||_0x173730(_0x542ad,_0x57abc3);}else'tableCell'==_0x168c47['name']&&(_0x206ca9=_0x206ca9||_0x173730(_0x168c47['position']['nodeAfter'],_0x57abc3));}return _0x206ca9;});}['_getSuggestionCoords'](_0xb51b47){return this['_getCoordsForCells'](_0xb51b47['getRanges']()['map'](_0x3e28f0=>_0x3e28f0['start']['nodeAfter']));}}function Ne(_0x4d707e){return Array['from'](new Set(_0x4d707e)['values']());}class Nt extends _0x17923f{static get['requires'](){return[Ct];}['afterInit'](){const _0xe20a69=this['editor'],_0x410e62=_0xe20a69['model']['document']['selection'],_0x56552c=_0xe20a69['locale'];if(!_0xe20a69['plugins']['has']('TableEditing'))return;const _0x26017f=_0xe20a69['plugins']['get']('TrackChangesEditing'),_0x23ea3a=_0xe20a69['plugins']['get']('TableUtils'),_0x56b661=_0xe20a69['plugins']['get'](Ct);_0x56b661['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x26017f['enableCommand']('mergeTableCells',()=>{const _0x5a81e9=_0x23ea3a['getSelectionAffectedTableCells'](_0xe20a69['model']['document']['selection']);_0xe20a69['model']['change'](()=>{_0x26017f['markMultiRangeBlockFormat'](_0x5a81e9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xe20a69['commands']['get']('mergeTableCells')['on']('execute',(_0x438321,_0x33c15b)=>{_0xe20a69['commands']['get']('trackChanges')['value']&&(_0x33c15b['length']>0x0&&_0x33c15b[_0x33c15b['length']-0x1]&&_0x33c15b[_0x33c15b['length']-0x1]['forceDefaultExecution']||_0x26017f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x438321['stop']());},{'priority':'highest'});for(const _0xb6c050 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x14ffb3=_0xe20a69['commands']['get'](_0xb6c050);_0x26017f['enableCommand'](_0xb6c050,()=>{const _0x57889c=_0xe20a69['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3e0e95=>_0x3e0e95['is']('element','tableCell')),_0x2bde75=_0x14ffb3['value'];_0xe20a69['model']['change'](()=>{_0x26017f['markMultiRangeBlockFormat']([_0x57889c,_0x2bde75],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x140a64 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xc43c56=_0xe20a69['commands']['get'](_0x140a64);_0x26017f['enableCommand'](_0x140a64,()=>{const _0x3d1af2=_0x23ea3a['getSelectionAffectedTableCells'](_0xe20a69['model']['document']['selection'])[0x0],_0x284b4b=_0x3d1af2['findAncestor']('table'),{column:_0x2774b7,row:_0x23dbe4}=_0x23ea3a['getCellLocation'](_0x3d1af2);let _0x493203=[];if('horizontally'==_0xc43c56['direction']){const _0x73887d=_0x23ea3a['createTableWalker'](_0x284b4b,{'startRow':_0x23dbe4,'endRow':_0x23dbe4,'includeAllSlots':!0x0});_0x493203=Array['from'](_0x73887d)['map'](_0xcaf8c0=>_0xcaf8c0['cell']);}else{const _0xf0b472=_0x23ea3a['createTableWalker'](_0x284b4b,{'column':_0x2774b7,'includeAllSlots':!0x0});_0x493203=Array['from'](_0xf0b472)['map'](_0x3869c8=>_0x3869c8['cell']);}_0xe20a69['model']['change'](_0x21d57d=>{_0x26017f['markBlockFormat'](_0x21d57d['createRangeOn'](_0x3d1af2),{'commandName':_0x140a64,'commandParams':[]},_0x493203,_0x140a64);});});}_0x26017f['descriptionFactory']['registerDescriptionCallback'](_0x2b20ec=>{if('formatBlock'!=_0x2b20ec['type']&&'formatInline'!=_0x2b20ec['type'])return;const {data:_0x160e46}=_0x2b20ec;return _0x160e46&&'mergeTableCells'==_0x160e46['commandName']?{'type':'format','content':c(_0x56552c,'*Merge\x20cells*')}:void 0x0;}),_0x26017f['descriptionFactory']['registerDescriptionCallback'](_0x3c5c78=>{if('formatBlock'!=_0x3c5c78['type']&&'formatInline'!=_0x3c5c78['type'])return;const {data:_0x193753}=_0x3c5c78;return _0x193753?'splitTableCellVertically'==_0x193753['commandName']?{'type':'format','content':c(_0x56552c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x193753['commandName']?{'type':'format','content':c(_0x56552c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x299874=_0x56b661['_acceptFormatSuggestionCallbackFactory']();for(const _0x4b7538 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x26017f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b7538,'accept',_0x299874);for(const _0x319505 of['splitTableCellVertically','splitTableCellHorizontally'])_0x26017f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x319505,'accept',_0x299874);_0x26017f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x56529b=>{_0xe20a69['model']['change'](_0x4e9658=>{const _0x2f217d=Array['from'](_0x410e62['getRanges']())['map'](_0x76a369=>_0x159dcb['fromRange'](_0x76a369));_0x4e9658['setSelection'](_0x56529b),_0xe20a69['commands']['get']('mergeTableCells')['refresh'](),_0xe20a69['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x216c76=_0x2f217d['filter'](_0x54711d=>'$graveyard'!=_0x54711d['root']['rootName']);_0x216c76['length']>0x0&&_0x4e9658['setSelection'](_0x216c76);for(const _0x449d93 of _0x2f217d)_0x449d93['detach']();});});for(const _0x3a2d96 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4d6aec=_0xe20a69['commands']['get'](_0x3a2d96);_0x4d6aec['on']('set:isEnabled',(_0x486fec,_0x136f8c,_0x32f4df)=>{if(_0x32f4df){const _0x33defc=_0xe20a69['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x31bd6d=>_0x31bd6d['is']('element','tableCell'));this['_areMergableCells'](_0x4d6aec['value'],_0x33defc)||(_0x486fec['return']=!0x1,_0x486fec['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1bcf82=this['editor']['commands']['get']('mergeTableCells'),_0x43d1e8=this['editor']['plugins']['get']('TableUtils');if(!_0x1bcf82['isEnabled'])return!0x1;const _0xc63810=_0x43d1e8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x39e680 of _0xc63810)for(const _0x2d4ef0 of _0xc63810)if(_0x39e680!=_0x2d4ef0&&!this['_areMergableCells'](_0x39e680,_0x2d4ef0))return!0x1;return!0x0;}['_areMergableCells'](_0x15141f,_0x21fcff){const _0x14b02d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aba5d=this['editor']['model']['createRangeOn'](_0x15141f),_0x24bad8=this['editor']['model']['createRangeOn'](_0x21fcff),_0x27c05d=new Set(),_0x11db4b=new Set();for(const _0x538ce0 of _0x14b02d['getSuggestions']())if(('insertion'==_0x538ce0['type']||'deletion'==_0x538ce0['type']||'mergeTableCells'==_0x538ce0['subType'])&&_0x538ce0['isInContent']){for(const _0x9b41ac of _0x538ce0['getRanges']())_0x9b41ac['containsRange'](_0x1aba5d,!0x0)&&_0x27c05d['add'](_0x538ce0['type']+':'+_0x538ce0['author']['id']),_0x9b41ac['containsRange'](_0x24bad8,!0x0)&&_0x11db4b['add'](_0x538ce0['type']+':'+_0x538ce0['author']['id']);}if(_0x27c05d['size']!=_0x11db4b['size'])return!0x1;for(const _0x526400 of _0x27c05d)if(!_0x11db4b['has'](_0x526400))return!0x1;return!0x0;}}class Dt extends _0x17923f{static get['requires'](){return[Ct];}['afterInit'](){const _0x35f4ec=this['editor'];if(!_0x35f4ec['plugins']['has']('TableEditing'))return;const _0x10e143=_0x35f4ec['locale'],_0x214738=_0x35f4ec['plugins']['get']('TrackChangesEditing');_0x214738['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x214738['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x214738['registerBlockAttribute']('headingRows'),_0x214738['registerBlockAttribute']('headingColumns'),_0x214738['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x10e143,'FORMAT_HEADER_ROW')),_0x214738['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x10e143,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x36c9f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57bbae=this['editor']['plugins']['get']('TableUtils'),_0x5c88d0=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x45a918({showActiveMarker:_0x5543bb=!0x0,setDataAttribute:_0x45ef59=!0x0}={}){return(_0x1e57ab,_0x6a5059,_0x3ad835)=>{const {type:_0x56f41f,id:_0x4b28f4}=_0x36c9f5['_splitMarkerName'](_0x6a5059['markerName']),_0x152726=_0x36c9f5['getSuggestion'](_0x4b28f4),_0x251e5e=_0x152726['data'];if('formatBlock'!=_0x152726['type']||!_0x251e5e||'setTableColumnHeader'!=_0x251e5e['commandName'])return;if(_0x6a5059['item'])return void _0x1e57ab['stop']();if(!_0x3ad835['consumable']['consume'](_0x6a5059['markerRange'],_0x1e57ab['name']))return;const _0x311ecf=_0x6a5059['markerRange']['start']['nodeAfter'],_0x40f16c=_0x6a5059['markerRange']['end']['nodeBefore'],_0x2a18a0=_0x311ecf['parent']['parent'],{column:_0x456a26}=_0x57bbae['getCellLocation'](_0x311ecf),{column:_0x188e56}=_0x57bbae['getCellLocation'](_0x40f16c);for(let _0x458069=_0x456a26;_0x458069<=_0x188e56;_0x458069++){const _0x577e56=_0x57bbae['createTableWalker'](_0x2a18a0,{'column':_0x458069,'includeAllSlots':!0x1});for(const _0x17da2e of _0x577e56){const _0xe7464a=_0x17da2e['cell'],_0x15abf0=_0x3ad835['mapper']['toViewElement'](_0xe7464a);_0x3ad835['writer']['addClass']('ck-suggestion-marker-'+_0x56f41f,_0x15abf0),_0x45ef59&&_0x3ad835['writer']['setAttribute']('data-suggestion',_0x4b28f4,_0x15abf0),_0x3ad835['mapper']['bindElementToMarker'](_0x15abf0,_0x6a5059['markerName']),_0x5543bb&&(_0x36c9f5['activeMarkers']['includes'](_0x6a5059['markerName'])?_0x3ad835['writer']['addClass']('ck-suggestion-marker--active',_0x15abf0):_0x3ad835['writer']['removeClass']('ck-suggestion-marker--active',_0x15abf0));}}};}_0x36c9f5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5c88d0),_0x36c9f5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5c88d0),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x45a918(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x442d25,_0x2d4b19,_0x748a29)=>{_0x748a29['options']['showSuggestionHighlights']&&_0x45a918({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x442d25,_0x2d4b19,_0x748a29);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x20c79d,_0xae9760,_0x1a7ea0)=>{const {type:_0x45d807,id:_0x291410}=_0x36c9f5['_splitMarkerName'](_0xae9760['markerName']),_0x418d47=_0x36c9f5['getSuggestion'](_0x291410),_0x27b358=_0x418d47['data'];if('formatBlock'!=_0x418d47['type']||!_0x27b358||'setTableColumnHeader'!=_0x27b358['commandName'])return;const _0x33568a=_0x1a7ea0['mapper']['markerNameToElements'](_0xae9760['markerName']);if(_0x33568a){for(const _0x267c22 of _0x33568a)_0x1a7ea0['writer']['removeClass']('ck-suggestion-marker-'+_0x45d807,_0x267c22),_0x1a7ea0['writer']['removeClass']('ck-suggestion-marker--active',_0x267c22),_0x1a7ea0['writer']['removeAttribute']('data-suggestion',_0x267c22),_0x1a7ea0['mapper']['unbindElementFromMarkerName'](_0x267c22,_0xae9760['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x542e79=this['editor'],_0x42311e=_0x542e79['locale'];function _0x1f6aea(_0x5acd30){return{'type':'format','content':c(_0x42311e,'*Format:*\x20%0',_0x5acd30)};}_0x542e79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x143e95=>{if('formatBlock'!=_0x143e95['type'])return;const {data:_0x54d413}=_0x143e95;if(_0x54d413){if('setTableRowHeader'==_0x54d413['commandName']){const _0xc47089=_0x54d413['commandParams'][0x0]['forceValue'];return _0x1f6aea(c(_0x42311e,_0xc47089?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x54d413['commandName']){const _0x475e8d=_0x54d413['commandParams'][0x0]['forceValue'];return _0x1f6aea(c(_0x42311e,_0x475e8d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x222dcc=>[_0x222dcc,null]));class Mt extends _0x17923f{static get['requires'](){return[Ct];}['afterInit'](){const _0x315a37=this['editor'];if(!_0x315a37['plugins']['has']('TableClipboard'))return;const _0x50388c=_0x315a37['plugins']['get']('TrackChangesEditing'),_0x160393=_0x315a37['plugins']['get']('TableUtils'),_0x214418=_0x315a37['plugins']['get'](Ct),_0x4a9d49=_0x315a37['plugins']['get']('TableClipboard');_0x214418['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x315a37['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x315a37['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x7ace8e=null;_0x315a37['model']['on']('insertContent',(_0x578bb9,_0x517652)=>{const [_0x432430,_0x112f5b]=_0x517652,_0xd04a83=_0x517652[_0x517652['length']-0x1];_0xd04a83&&_0xd04a83['forceDefaultExecution']||_0x50388c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x8e976b,_0x10aef,_0xb161bf,_0xcca6d3,_0x1e5061){if(_0x10aef&&!_0x10aef['is']('documentSelection'))return!0x1;const _0x5307da=_0x1e5061['getTableIfOnlyTableInContent'](_0x8e976b,_0xb161bf);if(!_0x5307da||!Ue(_0x5307da,void 0x0,_0xcca6d3))return!0x1;const _0x4532ea=_0xcca6d3['getSelectionAffectedTableCells'](_0xb161bf['document']['selection']);if(!_0x4532ea['length'])return!0x1;const _0x1a1c7d=_0x4532ea[0x0]['findAncestor']('table'),_0x56afea=_0xcca6d3['getRowIndexes'](_0x4532ea),_0x2a0fb8=_0xcca6d3['getColumnIndexes'](_0x4532ea),_0x4cd942={'startRow':_0x56afea['first'],'endRow':_0x56afea['last'],'startColumn':_0x2a0fb8['first'],'endColumn':_0x2a0fb8['last']};return 0x1==_0x4532ea['length']&&(_0x4cd942['endRow']+=_0xcca6d3['getRows'](_0x5307da)-0x1,_0x4cd942['endColumn']+=_0xcca6d3['getColumns'](_0x5307da)-0x1),Ue(_0x1a1c7d,_0x4cd942,_0xcca6d3);}(_0x432430,_0x112f5b,_0x315a37['model'],_0x160393,_0x4a9d49)&&(_0x578bb9['stop'](),_0x7ace8e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x315a37['model']['change'](()=>{_0x315a37['model']['insertContent'](_0x517652[0x0],_0x517652[0x1],_0x517652[0x2],{'forceDefaultExecution':!0x0});const _0x95d368=_0x27c213(),{rowInsertionRanges:_0x1fca65,columnInsertionRanges:_0x257f48,insertionRanges:_0x9f57a1,deletionRanges:_0x71f653,cells:_0x1e31ff}=_0x7ace8e;_0x1fca65['length']&&_0x50388c['markMultiRangeInsertion'](_0x1fca65,'tablePasteRow',{'tablePasteChainId':_0x95d368}),_0x257f48['length']&&_0x50388c['markMultiRangeInsertion'](_0x257f48,'tablePasteColumn',{'tablePasteChainId':_0x95d368}),_0x9f57a1['length']&&(_0x50388c['markMultiRangeInsertion'](_0x9f57a1,'tablePaste',{'tablePasteChainId':_0x95d368,'skipNestingCheck':!0x0}),_0x9f57a1['forEach'](_0x4fb99b=>_0x4fb99b['detach']?.())),_0x71f653['length']&&(_0x50388c['markMultiRangeDeletion'](_0x71f653,'tablePaste',{'tablePasteChainId':_0x95d368,'skipNestingCheck':!0x0}),_0x71f653['forEach'](_0x386374=>_0x386374['detach']?.()));const _0x2765ef=_0x50388c['markMultiRangeBlockFormat'](_0x1e31ff['map'](({element:_0x128a64})=>_0x128a64),{'formatGroupId':_0x27c213()},[],'tablePasteCell',{'tablePasteChainId':_0x95d368});if(_0x2765ef){const _0x388325=_0x2765ef['getMarkers'](),_0xacb0e7=[];for(const {element:_0x1acb5d,attributes:_0x51cdc0}of _0x1e31ff){if(!_0x51cdc0)continue;const _0xe129=_0x315a37['model']['createRangeOn'](_0x1acb5d),_0x16f3ea=_0x388325['find'](_0x254e79=>_0x254e79['getRange']()['isEqual'](_0xe129));_0x16f3ea&&_0xacb0e7['push']([_0x16f3ea['name'],_0x51cdc0]);}_0xacb0e7['length']&&_0x2765ef['setAttribute']('markerAttributes',Object['fromEntries'](_0xacb0e7));}_0x7ace8e=null;}));},{'priority':_0x3439c8['high']+0xa}),_0x315a37['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x556163,_0x2dfd46)=>{const [_0x1c4b2a,_0x5cc24a,,_0x3fbc70]=_0x2dfd46;if(!_0x7ace8e)return;_0x556163['stop']();const _0x4621fe=_0x1c4b2a['cell'],_0x4984da=_0x5cc24a,_0x3c628b=Oe(_0x4621fe),_0x307488=Oe(_0x4984da);_0x556163['return']=_0x4621fe;let _0xda805=null,_0x5b0a5e=null;if(_0x307488||_0x3c628b){if(_0x3c628b&&!_0x307488){_0x3fbc70['remove'](_0x4621fe['getChild'](0x0));for(const _0x166615 of Array['from'](_0x4984da['getChildren']()))_0x3fbc70['insert'](_0x166615,_0x4621fe,'end');const _0x2bb93c=_0x7ace8e['rowInsertionIndexes']['includes'](_0x1c4b2a['row']),_0x5938fc=_0x7ace8e['columnInsertionIndexes']['includes'](_0x1c4b2a['column']);_0x2bb93c||_0x5938fc||(_0xda805=_0x159dcb['fromRange'](_0x3fbc70['createRangeIn'](_0x4621fe)));}else _0x307488&&!_0x3c628b&&(_0x5b0a5e=_0x3fbc70['createRangeIn'](_0x4621fe));}else{const _0x160322=_0x3fbc70['createElement']('tableCellSuggestion'),_0x28cbb9=_0x3fbc70['createElement']('tableCellSuggestion');_0x3fbc70['wrap'](_0x3fbc70['createRangeIn'](_0x4621fe),_0x28cbb9),_0x3fbc70['insert'](_0x160322,_0x4621fe,0x0);for(const _0x411bec of Array['from'](_0x4984da['getChildren']()))_0x3fbc70['insert'](_0x411bec,_0x160322,'end');_0xda805=_0x159dcb['fromRange'](_0x3fbc70['createRangeOn'](_0x160322)),_0x5b0a5e=_0x159dcb['fromRange'](_0x3fbc70['createRangeOn'](_0x28cbb9));}const _0xc64f32=Array['from'](_0x4984da['getAttributes']())['filter'](([_0x3138ca])=>Be['includes'](_0x3138ca));_0x7ace8e['cells']['push']({'element':_0x4621fe,'attributes':_0xc64f32['length']?Object['fromEntries'](_0xc64f32):null}),_0xda805&&_0x7ace8e['insertionRanges']['push'](_0xda805),_0x5b0a5e&&_0x7ace8e['deletionRanges']['push'](_0x5b0a5e);},{'priority':'high'}),_0x160393['on']('insertColumns',(_0x3d9d76,_0x577469)=>{const [_0x21a51a,_0x1d8428={}]=_0x577469;if(!_0x7ace8e)return;const _0x1754c1=_0x1d8428['at']||0x0,_0x710011=_0x1d8428['columns']||0x1;_0x7ace8e['columnInsertionIndexes']=new Array(_0x710011)['fill'](_0x1754c1)['map']((_0x5d7c8b,_0x132399)=>_0x5d7c8b+_0x132399);for(const {cell:_0xec59cf}of _0x160393['createTableWalker'](_0x21a51a,{'startColumn':_0x1754c1,'endColumn':_0x1754c1+_0x710011-0x1}))_0x7ace8e['columnInsertionRanges']['push'](_0x315a37['model']['createRangeOn'](_0xec59cf));},{'priority':'low'}),_0x160393['on']('insertRows',(_0xbee320,_0x240211)=>{const [_0x502c03,_0x467cf3={}]=_0x240211;if(!_0x7ace8e)return;const _0x5c0733=_0x467cf3['at']||0x0,_0x14a14d=_0x467cf3['rows']||0x1;_0x7ace8e['rowInsertionIndexes']=new Array(_0x14a14d)['fill'](_0x5c0733)['map']((_0x301cfe,_0x46bd52)=>_0x301cfe+_0x46bd52);for(const {cell:_0x44c5c3}of _0x160393['createTableWalker'](_0x502c03,{'startRow':_0x5c0733,'endRow':_0x5c0733+_0x14a14d-0x1}))_0x7ace8e['rowInsertionRanges']['push'](_0x315a37['model']['createRangeOn'](_0x44c5c3));},{'priority':'low'}),_0x50388c['descriptionFactory']['registerDescriptionCallback'](_0x46035b=>{if(_0x46035b['subType']&&_0x46035b['subType']['startsWith']('tablePaste'))return _0x46035b['previous']?{}:{'type':'insertion','content':c(_0x315a37['locale'],'*Replace\x20table\x20cells*')};});const _0x46eba9=()=>!0x1;for(const _0x1ff65e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x50388c['_suggestionFactory']['registerCustomCallback']('insertion',_0x1ff65e,'join',_0x46eba9),_0x50388c['_suggestionFactory']['registerCustomCallback']('deletion',_0x1ff65e,'join',_0x46eba9),_0x50388c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ff65e,'join',_0x46eba9);_0x50388c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x46eba9),_0x50388c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x54dffb,_0x3d4488,_0x3716fd)=>{const _0x411116=_0x54dffb['map'](_0x25efc9=>_0x25efc9['getContainedElement']())['filter'](_0x4b56d6=>_0x4b56d6),_0xb7e479=new Map(_0x411116['map'](_0x1e57cf=>[_0x1e57cf,null]));if(_0x7ace8e){for(const {element:_0x586166,attributes:_0x4c26d4}of _0x7ace8e['cells'])_0x4c26d4&&_0xb7e479['set'](_0x586166,_0x4c26d4);}else{if(_0x3716fd&&_0x3716fd['markerAttributes'])for(const [_0x2bc4c3,_0x126abc]of Object['entries'](_0x3716fd['markerAttributes'])){const _0x24d45c=_0x315a37['model']['markers']['get'](_0x2bc4c3),_0x2394d2=_0x24d45c?_0x24d45c['getRange']()['getContainedElement']():null;_0x2394d2&&_0xb7e479['set'](_0x2394d2,_0x126abc);}}_0x315a37['model']['change'](_0x20e940=>{for(const [_0x127cfe,_0x4e900f]of _0xb7e479)_0x20e940['setAttributes']({...xe,..._0x4e900f},_0x127cfe);});});const _0x4eaab9=(_0x3cc62e,_0x58ad1b)=>{_0x50388c['_suggestionFactory']['registerCustomCallback'](_0x3cc62e,'tablePaste',_0x58ad1b,(_0x353046,_0x17bac9,_0x19d7be)=>{_0x315a37['model']['change'](_0x2df3cc=>{const _0x525369=[];for(const _0x92a358 of _0x353046){const _0x340cbc=_0x92a358['start']['nodeAfter'];_0x340cbc['is']('element','tableCellSuggestion')&&_0x525369['push'](_0x340cbc);}_0x50388c['_suggestionFactory']['getSuggestionCallback'](_0x3cc62e,null,_0x58ad1b)(_0x353046,_0x17bac9,_0x19d7be);for(const _0xfa8c29 of _0x525369)'$graveyard'!=_0xfa8c29['root']['rootName']&&_0x2df3cc['unwrap'](_0xfa8c29);});});};_0x4eaab9('insertion','accept'),_0x4eaab9('insertion','discard'),_0x4eaab9('deletion','accept'),_0x4eaab9('deletion','discard'),_0x50388c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x165ad6=>{const _0x3f08f4=_0x165ad6['map'](_0x25db3a=>_0x25db3a['getContainedElement']()),_0x499e2a=_0x3f08f4[0x0]['findAncestor']('table'),{minRow:_0x8e73a,maxRow:_0x3de0e5}=_0x214418['_getCoordsForCells'](_0x3f08f4);_0x160393['removeRows'](_0x499e2a,{'at':_0x8e73a,'rows':_0x3de0e5-_0x8e73a+0x1});}),_0x50388c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1dfd31=>{const _0x40ae64=_0x1dfd31['map'](_0x112e1f=>_0x112e1f['getContainedElement']()),_0x412c0a=_0x40ae64[0x0]['findAncestor']('table'),{minColumn:_0x40c73c,maxColumn:_0x1d6aa3}=_0x214418['_getCoordsForCells'](_0x40ae64);_0x160393['removeColumns'](_0x412c0a,{'at':_0x40c73c,'columns':_0x1d6aa3-_0x40c73c+0x1});});const _0x297d51=(_0xf42fa4,_0x2fdc7b)=>{if(!_0x2fdc7b['subType']||!_0x2fdc7b['subType']['startsWith']('tablePaste'))return;const _0x3a6952=_0x2fdc7b['attributes']['tablePasteChainId'],_0x96e071=_0x50388c['getSuggestions']()['filter'](_0x380403=>_0x380403['isInContent']&&_0x380403['attributes']&&_0x380403['attributes']['tablePasteChainId']==_0x3a6952);_0x96e071['length']&&_0x2fdc7b['getAllAdjacentSuggestions']()['length']!=_0x96e071['length']&&_0x96e071['reduce']((_0x145cc1,_0x24748a)=>(_0x145cc1['next']=_0x24748a,_0x24748a['previous']=_0x145cc1,_0x24748a));};function _0x2457d8(_0xff3241,_0xf0f46f=!0x0){const {id:_0x2db90a,authorId:_0x548c66}=_0x50388c['_splitMarkerName'](_0xff3241['markerName']),_0x375c86=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x7ac236=_0x50388c['activeMarkers']['includes'](_0xff3241['markerName']);return _0x7ac236&&_0x375c86['push']('ck-suggestion-marker--active'),{'classes':_0x375c86,'attributes':{'data-suggestion':_0x2db90a,'data-author-id':_0x548c66},'priority':_0x7ac236&&_0xf0f46f?0xbc2:0xbb8};}_0x50388c['on']('suggestionLoaded',_0x297d51,{'priority':'high'}),_0x50388c['on']('suggestionUnloaded',_0x297d51,{'priority':'high'}),_0x315a37['model']['document']['registerPostFixer'](()=>{let _0x5106e8=!0x1;const _0x1f57be=Array['from'](_0x315a37['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x438255,data:_0x281ec6}of _0x1f57be){const {group:_0x23d5b0,type:_0x29c317,id:_0x41c8c8}=_0x50388c['_splitMarkerName'](_0x438255);if('suggestion'!=_0x23d5b0||'deletion'!=_0x29c317||_0x281ec6['oldRange'])continue;if(!_0x50388c['hasSuggestion'](_0x41c8c8))continue;const _0x3aea4e=_0x50388c['getSuggestion'](_0x41c8c8)['getRanges'](),_0x3c30f0=_0x315a37['plugins']['get']('Users')['me'];for(const _0x1e4ca8 of _0x50388c['getSuggestions']()){if(!_0x1e4ca8['isInContent']||_0x1e4ca8['author']!=_0x3c30f0)continue;if('formatBlock'!=_0x1e4ca8['type']||'tablePasteCell'!=_0x1e4ca8['subType'])continue;if(_0x1e4ca8['getRanges']()['every'](_0xdad88c=>_0x3aea4e['some'](_0xa3f48=>_0xa3f48['containsRange'](_0xdad88c,!0x0)))){for(const _0x109282 of _0x1e4ca8['getAllAdjacentSuggestions']())_0x109282['isInContent']&&(_0x109282['discard'](),_0x5106e8=!0x0);}}}return _0x5106e8;}),_0x315a37['model']['document']['registerPostFixer'](_0x10d295=>{const _0x5936b9=_0x315a37['commands']['get']('redo');if(!_0x5936b9||!_0x5936b9['_createdBatches']['has'](_0x10d295['batch']))return!0x1;let _0x45d9e2=!0x1;const _0x540657=_0x315a37['plugins']['get']('Users')['me'],_0x486462=_0x315a37['model']['document']['differ']['getChanges'](),_0x2a1984=Array['from'](_0x315a37['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x8a5505,data:_0x42ef0b})=>{const {group:_0xa89be0,subType:_0x46426f,authorId:_0x443075}=_0x50388c['_splitMarkerName'](_0x8a5505);return'suggestion'==_0xa89be0&&'tablePaste'==_0x46426f&&_0x443075==_0x540657['id']&&!_0x42ef0b['oldRange'];});for(const _0x4ab17d of _0x486462){if('insert'!=_0x4ab17d['type']||'tableCellSuggestion'!=_0x4ab17d['name']||0x1!=_0x4ab17d['length'])continue;const _0x383419=_0x10d295['createRange'](_0x4ab17d['position'],_0x4ab17d['position']['getShiftedBy'](0x1));if(!_0x2a1984['find'](({data:_0x547d5b})=>_0x547d5b['newRange']['isEqual'](_0x383419))){for(const {name:_0x17aca3,data:_0x108b8f}of _0x2a1984)if(_0x383419['containsRange'](_0x108b8f['newRange'])){_0x10d295['updateMarker'](_0x17aca3,{'range':_0x383419}),_0x45d9e2=!0x0;break;}}}return _0x45d9e2;}),_0x315a37['model']['document']['registerPostFixer'](_0x458163=>{let _0xae2de3=!0x1;const _0x27c88d=_0x315a37['plugins']['get']('Users')['me'],_0x2fe13f=_0x50388c['getSuggestions']()['filter'](_0x31ba40=>_0x31ba40['isInContent']&&_0x31ba40['author']==_0x27c88d),_0x37fa29=new Set(),_0x1db40f=new Set();for(const _0x5ac649 of _0x2fe13f)if('tablePaste'==_0x5ac649['subType'])for(const _0x30d1e8 of _0x5ac649['getMarkers']()){const _0x1689c5=_0x30d1e8['getRange']()['getContainedElement']();if(_0x1689c5){if(_0x1689c5['is']('element','tableCellSuggestion')&&Oe(_0x1689c5)){_0x5ac649['removeMarker'](_0x30d1e8['name']),_0x37fa29['add'](_0x1689c5),_0xae2de3=!0x0;const _0x196e30=_0x1689c5['nextSibling'],_0x318272=_0x1689c5['previousSibling'],_0x1781f6=_0x196e30&&_0x196e30['is']('element','tableCellSuggestion'),_0x4f3cb4=_0x318272&&_0x318272['is']('element','tableCellSuggestion');_0x1781f6&&!_0x37fa29['has'](_0x196e30)&&_0x1db40f['add'](_0x196e30),_0x4f3cb4&&!_0x37fa29['has'](_0x318272)&&_0x1db40f['add'](_0x318272);}else _0x1689c5['is']('element','paragraph')&&_0x1689c5['isEmpty']&&(_0x5ac649['removeMarker'](_0x30d1e8['name']),_0xae2de3=!0x0);}}else{if('tablePasteCell'==_0x5ac649['subType']){if(!_0x5ac649['attributes']||!_0x5ac649['attributes']['tablePasteChainId'])continue;const _0x46fdba=_0x5ac649['attributes']['markerAttributes'];if(_0x46fdba&&Object['keys'](_0x46fdba)['length'])continue;const _0x38646e=_0x5ac649['attributes']['tablePasteChainId'];let _0x3e4dd8=!0x0,_0x3fcf09=!0x0;for(const _0x4204ea of _0x2fe13f)if(_0x4204ea['subType']&&_0x4204ea['subType']['startsWith']('tablePaste')){if(!_0x4204ea['attributes']['tablePasteChainId']){_0x3fcf09=!0x1;break;}if(_0x4204ea['id']!=_0x5ac649['id']&&_0x4204ea['attributes']['tablePasteChainId']==_0x38646e){_0x3e4dd8=!0x1;break;}}_0x3fcf09&&_0x3e4dd8&&(_0x5ac649['removeMarkers'](),_0xae2de3=!0x0);}}for(const _0x3a8ffe of _0x37fa29)_0x458163['remove'](_0x3a8ffe);for(const _0x4daae7 of _0x1db40f)_0x458163['unwrap'](_0x4daae7);return _0xae2de3;}),_0x315a37['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xf9aaa2=>_0x2457d8(_0xf9aaa2),'converterPriority':'high'}),_0x315a37['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x216044,_0x231695)=>_0x231695['options']['showSuggestionHighlights']?_0x2457d8(_0x216044,!0x1):null,'converterPriority':'high'});const _0x5d6c0d=_0x315a37['editing']['view'];this['listenTo'](_0x5d6c0d['document'],'clipboardOutput',(_0x1aaa77,_0x536a4)=>{const _0x46f876=[];for(const _0x2f7e79 of _0x5d6c0d['createRangeIn'](_0x536a4['content'])['getItems']())_0x2f7e79['is']('element','suggestion-td')&&_0x46f876['push'](_0x2f7e79);_0x5d6c0d['change'](_0x1f6952=>{for(const _0x3aa209 of _0x46f876)_0x1f6952['move'](_0x1f6952['createRangeIn'](_0x3aa209),_0x1f6952['createPositionBefore'](_0x3aa209)),_0x1f6952['remove'](_0x3aa209);});});}}function Oe(_0x35e887){if(_0x35e887['isEmpty'])return!0x0;const _0xe4db00=_0x35e887['getChild'](0x0);return _0xe4db00['is']('element','paragraph')&&_0xe4db00['isEmpty'];}function Ue(_0x426b05,_0x29ff97={},_0x44a5ad){for(const {isAnchor:_0x375976,cellHeight:_0x2f8d20,cellWidth:_0x993c0}of _0x44a5ad['createTableWalker'](_0x426b05,{'includeAllSlots':!0x0,..._0x29ff97}))if(!_0x375976||0x1!=_0x2f8d20||0x1!=_0x993c0)return!0x1;return!0x0;}class $t extends _0x17923f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x44e031=this['editor']['plugins']['get']('TrackChangesEditing');_0x44e031['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x44e031['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x44e031['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44e031['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x44e031['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x44e031['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x165916,_0xcd37b3){const _0x3c3686=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20edbe=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x250758=_0xcd37b3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5b79e2=_0x20edbe['getColumnGroupElement'](_0x250758);let _0x4269c0=_0x5b79e2?_0x20edbe['getTableColumnsWidths'](_0x5b79e2):null,_0x4b1b8c=_0x250758['getAttribute']('tableWidth')||null;const _0x19f52d=_0xcd37b3['tableWidth']||_0x4b1b8c,_0x300044=_0xcd37b3['columnWidths']||_0x4269c0,_0x394ac7=this['editor']['plugins']['get']('Users')['me'];for(const _0x2d60d8 of _0x3c3686['getSuggestions']()){const _0x5805fb=_0x2d60d8['getContainedElement']();if('resizeTable'===_0x2d60d8['subType']&&_0x5805fb===_0x250758){_0x2d60d8['author']!==_0x394ac7&&_0x2d60d8['discard']();const _0x2918b5=_0x2d60d8['data']['commandParams'];_0x4b1b8c=_0x2918b5[0x0]['tableWidth'],_0x4269c0=_0x2918b5[0x0]['columnWidths'];break;}}_0x165916({'table':_0x250758,'tableWidth':_0x19f52d,'columnWidths':_0x300044}),_0x3c3686['markBlockFormat'](_0x250758,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4b1b8c,'columnWidths':_0x4269c0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xb0b56a){if('formatBlock'!=_0xb0b56a['type']&&'formatInline'!=_0xb0b56a['type'])return;const {data:_0x1e6120}=_0xb0b56a;if(_0x1e6120&&'resizeTable'===_0x1e6120['formatGroupId']){const _0x2ec895='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2ec895)};}}}class Bt extends _0x17923f{['afterInit'](){const _0x2f00e1=this['editor'];_0x2f00e1['plugins']['has']('Template')&&_0x2f00e1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x17923f{['afterInit'](){const _0x1c40be=this['editor'];if(!_0x1c40be['commands']['get']('insertTableOfContents'))return;_0x1c40be['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x551b88=_0x1c40be['plugins']['get']('TrackChangesEditing'),_0xd20cfb=_0x1c40be['locale'];_0x551b88['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4e2b21=>c(_0xd20cfb,'ELEMENT_TABLE_OF_CONTENTS',_0x4e2b21));}}class Rt extends _0x17923f{['afterInit'](){const _0x1e3af7=this['editor'];if(!_0x1e3af7['plugins']['has']('Title'))return;const _0x38eacf=_0x1e3af7['plugins']['get']('TrackChangesEditing');_0x38eacf['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1e3af7['locale'],'ELEMENT_TITLE')),_0x1e3af7['model']['document']['registerPostFixer'](_0x1c94d3=>{let _0x376388=!0x1;const _0x389784=Array['from'](_0x1e3af7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x336553,data:_0x135a50}of _0x389784){const {group:_0x19cdd7}=_0x38eacf['_splitMarkerName'](_0x336553);if('suggestion'!==_0x19cdd7||!_0x135a50['newRange'])continue;const _0xdf68d1=_0x135a50['newRange'],_0x272f62=_0xdf68d1['end']['nodeBefore'];if(!_0x272f62||!_0x272f62['is']('element','title-content'))continue;if(!_0xdf68d1['start']['isTouching'](_0xdf68d1['end']))continue;const _0x22f102=_0x1e3af7['model']['schema']['getNearestSelectionRange'](_0xdf68d1['end'],'forward');if(_0x22f102&&_0x22f102['isCollapsed']){const _0x5e858e=_0x1c94d3['createRange'](_0xdf68d1['start'],_0x22f102['start']);_0x5e858e['isEqual'](_0xdf68d1)||(_0x1c94d3['updateMarker'](_0x336553,{'range':_0x5e858e}),_0x376388=!0x0);}_0x376388||(_0x1c94d3['removeMarker'](_0x336553),_0x376388=!0x0);}return _0x376388;});}}class xt extends _0x17923f{['afterInit'](){const _0xc727a8=this['editor'],_0x5bbd97=_0xc727a8['plugins']['get']('TrackChangesEditing');_0xc727a8['plugins']['has']('Uploadcare')&&(_0x5bbd97['enableCommand']('uploadcare'),_0xc727a8['plugins']['has']('UploadcareImageEdit')&&(_0x5bbd97['enableCommand']('uploadcareImageEdit'),_0x5bbd97['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5bbd97['registerBlockAttribute']('uploadcareImageId'),_0x5bbd97['descriptionFactory']['registerDescriptionCallback'](_0x45140e=>{if('attribute'!=_0x45140e['type'])return;const {data:_0x3bb28e}=_0x45140e;return _0x3bb28e&&'uploadcareImageId'==_0x3bb28e['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x17923f{['afterInit'](){const _0x55ade4=this['editor'],_0x13473a=_0x55ade4['plugins']['get']('TrackChangesEditing');_0x55ade4['plugins']['has']('UndoEditing')&&(_0x13473a['enableCommand']('undo'),_0x13473a['enableCommand']('redo'));}}class Et extends _0x17923f{static get['requires'](){return[Ct];}['afterInit'](){const _0x4c2cfe=this['editor'];if(!_0x4c2cfe['plugins']['has']('TableCaptionEditing'))return;_0x4c2cfe['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x17923f{['tableProperties'];['tableCellProperties'];constructor(_0x73f381){super(_0x73f381),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 _0x463cc9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x33f5aa of this['tableProperties'])_0x463cc9['enableCommand'](_0x33f5aa,(_0xb70b2e,_0x58c2e7)=>{const _0x18ea23=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x33f5aa,[_0x18ea23],this['tableProperties'],'tableProperties',_0xb70b2e,_0x58c2e7);});_0x463cc9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x463cc9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x463cc9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x14473c,_0x527a78)=>this['handleDiscardAction'](this['tableProperties'],_0x14473c,_0x527a78)),_0x463cc9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3c3c9a of this['tableCellProperties'])_0x463cc9['enableCommand'](_0x3c3c9a,(_0x371ec2,_0x45d935)=>{const _0x25e621=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3c3c9a,_0x25e621,this['tableCellProperties'],'tableCellProperties',_0x371ec2,_0x45d935);});_0x463cc9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x463cc9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x463cc9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xee6ba7,_0x36678c)=>this['handleDiscardAction'](this['tableCellProperties'],_0xee6ba7,_0x36678c)),_0x463cc9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x463cc9['descriptionFactory']['registerDescriptionCallback'](_0xea33fb=>this['handleSuggestionDescription'](_0xea33fb));}['_handlePropertyChange'](_0x1553c9,_0x53bf5e,_0x21ed0a,_0x357680,_0x268ef4,_0x1a4774){const _0x38931a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1a4774['batch'],()=>{for(const _0x28bca1 of _0x53bf5e){if(this['_getSuggestion'](_0x28bca1,_0x357680))_0x268ef4(_0x1a4774);else{const _0x50bc85={};for(const _0x58cdb3 of _0x21ed0a){const _0x4b077d=_0x28bca1['getAttribute'](_0x58cdb3);void 0x0!==_0x4b077d&&(_0x50bc85[_0x58cdb3]=_0x4b077d);}_0x268ef4(_0x1a4774),_0x38931a['markBlockFormat'](_0x28bca1,{'commandParams':[_0x50bc85]},[],_0x357680);}}});}['handleDiscardAction'](_0x1b1c3a,_0x25ea6e,_0x366cdd){const _0x28f825=_0x25ea6e[0x0]['start']['nodeAfter'],_0x9a2e02=_0x366cdd['commandParams'][0x0];this['editor']['model']['change'](_0x417b9d=>{for(const _0x495e1f of _0x1b1c3a)void 0x0!==_0x9a2e02[_0x495e1f]?_0x417b9d['setAttribute'](_0x495e1f,_0x9a2e02[_0x495e1f],_0x28f825):_0x417b9d['removeAttribute'](_0x495e1f,_0x28f825);});}['handleSuggestionDescription'](_0x225ad7){if(_0x225ad7['data'])switch(_0x225ad7['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x43e881,_0x18d612){const _0x2cfe92=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5cde60 of _0x2cfe92['getSuggestions']({'skipNotAttached':!0x0})){const _0x4beaa1=_0x5cde60['getContainedElement']();if(_0x5cde60['subType']===_0x18d612&&_0x4beaa1===_0x43e881)return _0x5cde60;}return null;}}const u='$elementName';class p extends _0x17923f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1cb8da,_0x261249,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x458d41){super(_0x458d41),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x576ed2,_0x4f2d9e,_0x35a966,_0x111f0d)=>{this['_model']['change'](()=>{for(const _0x3e74b5 of[..._0x111f0d,..._0x35a966])this['_model']['markers']['has'](_0x3e74b5)&&_0x458d41['editing']['reconvertMarker'](_0x3e74b5);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x458d41['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x458d41['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x458d41['config']['get']('trackChanges.trackFormatChanges'),_0x458d41['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x458d41['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x458d41,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x47f6d3=this['editor'],_0x479b97=(_0xfd64d5,_0x5abc5d)=>{if('attribute'!=_0xfd64d5)return'ck-suggestion-marker-'+_0xfd64d5;const _0x355089=_0x5abc5d['split']('|')[0x0];return this['_isBlockAttribute'](_0x355089)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x47f6d3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x35bd2c=>{const {id:_0x59f45c,authorId:_0x30ced4,type:_0x285e5b,subType:_0x2b5cc5}=this['_splitMarkerName'](_0x35bd2c['markerName']),_0x54277d=['ck-suggestion-marker',_0x479b97(_0x285e5b,_0x2b5cc5)];let _0x1aef44=0xbb8;return this['activeMarkers']['includes'](_0x35bd2c['markerName'])&&(_0x54277d['push']('ck-suggestion-marker--active'),_0x1aef44=0xbc2),'deletion'==_0x285e5b&&(_0x1aef44+=0x5),{'classes':_0x54277d,'attributes':{'data-suggestion':_0x59f45c,'data-author-id':_0x30ced4},'priority':_0x1aef44};}}),_0x47f6d3['conversion']['for']('dataDowncast')['add'](_0x8baee8=>{_0x8baee8['on']('addMarker:suggestion',(_0xe70f8d,_0x477de5,_0x204562)=>{if(!_0x204562['options']['showSuggestionHighlights'])return;const _0x54efe7=_0x477de5['item'];if(!_0x54efe7)return;const _0x42e1ec=_0x204562['mapper']['toViewElement'](_0x54efe7);_0x47f6d3['model']['schema']['isObject'](_0x54efe7)&&_0x42e1ec&&!_0x42e1ec['getCustomProperty']('widget')&&_0x42e1ec['is']('containerElement')&&_0x306276(_0x42e1ec,_0x204562['writer']);},{'priority':'high'});}),_0x47f6d3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xdcad93,_0x140854)=>{if(!_0x140854['options']['showSuggestionHighlights'])return null;const {type:_0x47ffe7,subType:_0x32227d}=this['_splitMarkerName'](_0xdcad93['markerName']);return{'classes':['ck-suggestion-marker',_0x479b97(_0x47ffe7,_0x32227d)],'priority':0xbb8};}});const _0x3c82bc=({showActiveMarkers:_0x1e0aaf=!0x0,isAttributeSuggestion:_0x16420c=!0x1}={})=>(_0x449fa3,_0x5e938f,_0x24f3fb)=>{if(!_0x5e938f['item'])return;const {id:_0x34374d,authorId:_0x5f1efc}=this['_splitMarkerName'](_0x5e938f['markerName']);if(_0x16420c){const _0x2b5168=this['_suggestions']['get'](_0x34374d),_0x5878f6=this['_getAttributeKey'](_0x2b5168);if(!this['_isBlockAttribute'](_0x5878f6))return;}if(_0x5e938f['item']['is']('selection'))return void _0x24f3fb['consumable']['consume'](_0x5e938f['item'],_0x449fa3['name']);const _0x42723c=_0x24f3fb['mapper']['toViewElement'](_0x5e938f['item']);if(_0x5e938f['item']['is']('element')&&_0x47f6d3['model']['schema']['isBlock'](_0x5e938f['item'])&&!_0x42723c['getCustomProperty']('addHighlight')){_0x24f3fb['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x42723c),_0x24f3fb['writer']['setAttribute']('data-suggestion',_0x34374d,_0x42723c),_0x24f3fb['writer']['setAttribute']('data-author-id',_0x5f1efc,_0x42723c),_0x24f3fb['mapper']['bindElementToMarker'](_0x42723c,_0x5e938f['markerName']),_0x1e0aaf&&(this['activeMarkers']['includes'](_0x5e938f['markerName'])?_0x24f3fb['writer']['addClass']('ck-suggestion-marker--active',_0x42723c):_0x24f3fb['writer']['removeClass']('ck-suggestion-marker--active',_0x42723c));for(const _0x239bbd of _0x47f6d3['model']['createRangeIn'](_0x5e938f['item'])['getItems']())_0x24f3fb['consumable']['consume'](_0x239bbd,_0x449fa3['name']);_0x24f3fb['consumable']['consume'](_0x5e938f['item'],_0x449fa3['name']);}};_0x47f6d3['conversion']['for']('dataDowncast')['add'](_0x61bdd9=>{_0x61bdd9['on']('addMarker:suggestion:formatBlock',(_0x13e04c,_0x2e7337,_0x353d3a)=>{_0x353d3a['options']['showSuggestionHighlights']&&_0x3c82bc({'showActiveMarkers':!0x1})(_0x13e04c,_0x2e7337,_0x353d3a);},{'priority':'highest'});}),_0x47f6d3['conversion']['for']('dataDowncast')['add'](_0x2b119c=>{_0x2b119c['on']('addMarker:suggestion:attribute',(_0x3f64cc,_0x5e5174,_0x1c258d)=>{_0x1c258d['options']['showSuggestionHighlights']&&_0x3c82bc({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3f64cc,_0x5e5174,_0x1c258d);},{'priority':'highest'});}),_0x47f6d3['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5e5e61,_0x479938)=>_0x479938['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5e5e61['substr'](0xb)}}),_0x47f6d3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x118621,{writer:_0x1672ae})=>{let _0x56c05c='suggestion:'+_0x118621['getAttribute']('suggestion-type')+':'+_0x118621['getAttribute']('id');return _0x118621['getAttribute']('marker-count')&&(_0x56c05c+=':'+_0x118621['getAttribute']('marker-count')),_0x1672ae['createElement']('$marker',{'data-name':_0x56c05c});}}),_0x47f6d3['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x47f6d3['conversion']['for']('editingDowncast')['add'](_0x3b78b2=>{_0x3b78b2['on']('addMarker:suggestion:formatBlock',_0x3c82bc(),{'priority':'high'});}),_0x47f6d3['conversion']['for']('editingDowncast')['add'](_0x29f3b9=>{_0x29f3b9['on']('addMarker:suggestion:attribute',_0x3c82bc({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x47f6d3['conversion']['for']('editingDowncast')['add'](_0x8fc3df=>{_0x8fc3df['on']('removeMarker:suggestion:formatBlock',(_0x2c45b0,_0x536282,_0x824466)=>{const _0x7d8760=_0x824466['mapper']['markerNameToElements'](_0x536282['markerName']);if(_0x7d8760){for(const _0x45d991 of _0x7d8760)_0x45d991['getCustomProperty']('addHighlight')||(_0x824466['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45d991),_0x824466['writer']['removeAttribute']('data-suggestion',_0x45d991),_0x824466['writer']['removeAttribute']('data-author-id',_0x45d991),_0x824466['mapper']['unbindElementFromMarkerName'](_0x45d991,_0x536282['markerName']));}},{'priority':'high'});}),_0x47f6d3['conversion']['for']('editingDowncast')['add'](_0x2a590f=>{_0x2a590f['on']('removeMarker:suggestion:attribute',(_0x12982c,_0x5deb2e,_0x1d8430)=>{const _0x2dd23a=_0x1d8430['mapper']['markerNameToElements'](_0x5deb2e['markerName']);if(!_0x2dd23a)return;const {id:_0x33567b}=this['_splitMarkerName'](_0x5deb2e['markerName']),_0x5c9dfb=this['_suggestions']['get'](_0x33567b),_0xc0f358=this['_getAttributeKey'](_0x5c9dfb);if(this['_isBlockAttribute'](_0xc0f358)){for(const _0x374444 of _0x2dd23a)_0x374444['getCustomProperty']('addHighlight')||(_0x1d8430['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x374444),_0x1d8430['writer']['removeAttribute']('data-suggestion',_0x374444),_0x1d8430['writer']['removeAttribute']('data-author-id',_0x374444),_0x1d8430['mapper']['unbindElementFromMarkerName'](_0x374444,_0x5deb2e['markerName']));}},{'priority':'high'});}),_0x47f6d3['model']['document']['registerPostFixer'](_0x3d5ad5=>{let _0x38d77e=!0x1;const _0x28fe55=Array['from'](_0x47f6d3['model']['document']['differ']['getChangedMarkers']()),_0x5e1345=new Set();for(const {name:_0x27940e,data:_0x3c616d}of _0x28fe55){const {group:_0x1c490b,type:_0x14f9d3,subType:_0x517324,id:_0x2d5d63}=this['_splitMarkerName'](_0x27940e);if('suggestion'!==_0x1c490b)continue;const _0x4e9168=this['_suggestions']['get'](_0x2d5d63);if(null!=_0x3c616d['newRange']){'formatInline'==_0x14f9d3&&(_0x38d77e=_0x38d77e||Lt(_0x3c616d['newRange'],_0x27940e,_0x3d5ad5,_0x47f6d3['model']['schema']));const _0x4e4faa='attribute'==_0x14f9d3&&this['_isBlockAttribute'](_0x517324['split']('|')[0x0]);if(_0x3c616d['newRange']['isCollapsed']||'$graveyard'==_0x3c616d['newRange']['root']['rootName']||'formatBlock'==_0x14f9d3&&!Kt(_0x3c616d['newRange'])||_0x4e4faa&&!Kt(_0x3c616d['newRange'])||'deletion'==_0x14f9d3&&!(!Gt(_0x5e197b=_0x3c616d['newRange'])&&!function(_0x254806){return _0x254806['start']['parent']==_0x254806['end']['nodeBefore']&&_0x254806['start']['isAtEnd'];}(_0x5e197b)))_0x3d5ad5['removeMarker'](_0x27940e),_0x38d77e=!0x0;else{if(!_0x4e9168||!_0x4e9168['isInContent'])continue;if(_0x3c616d['newRange']&&_0x3c616d['oldRange']&&_0x3c616d['newRange']['isEqual'](_0x3c616d['oldRange']))continue;_0x5e1345['add'](_0x4e9168);}}}var _0x5e197b;return _0x5e1345['size']>0x0&&(_0x38d77e=!!this['_joinWithAdjacentSuggestions'](_0x5e1345)||_0x38d77e),_0x38d77e;}),_0x47f6d3['model']['document']['registerPostFixer'](_0x114744=>{let _0x4a2651=!0x1;for(const _0x5d0b80 of _0x47f6d3['model']['document']['differ']['getChanges']())if('insert'==_0x5d0b80['type'])for(const _0x24381f of this['_suggestions']['values']()){if(_0x24381f['isMultiRange']||!_0x24381f['isInContent'])continue;const _0x2385a7='formatBlock'==_0x24381f['type'],_0x17f1fd=this['_getAttributeKey'](_0x24381f),_0x428d38=_0x17f1fd&&this['_isBlockAttribute'](_0x17f1fd);if(!_0x2385a7&&!_0x428d38)continue;const _0x5ef9bb=_0x24381f['getFirstRange']();if(_0x5ef9bb['start']['parent']!=_0x5ef9bb['end']['parent']&&!_0x5ef9bb['end']['isAtEnd']){const _0xe7f586=_0x47f6d3['model']['createPositionAt'](_0x5ef9bb['start']['nodeAfter'],'end'),_0x465bc8=_0x47f6d3['model']['createRange'](_0x5ef9bb['start'],_0xe7f586);_0x114744['updateMarker'](_0x24381f['getFirstMarker'](),{'range':_0x465bc8}),_0x4a2651=!0x0;}}return _0x4a2651;}),_0x47f6d3['model']['document']['registerPostFixer'](_0x50fe7c=>this['_processAttributeChanges'](_0x50fe7c)),_0x47f6d3['model']['document']['registerPostFixer'](_0x3618c2=>!_0x3618c2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3618c2)),_0x47f6d3['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x47f6d3['model']['document']['on']('change:data',(_0x3bda09,_0x4ab6a9)=>{if(!_0x4ab6a9['isLocal']||_0x4ab6a9['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x421270=_0x47f6d3['model']['document']['differ']['getChanges']();if(0x0==_0x421270['length'])return;const _0x2c579c=[],_0x3d8c1e=_0x421270['filter'](_0x5e769b=>'attribute'==_0x5e769b['type']),_0x15bdd8=_0x421270['filter'](_0x319dc1=>'insert'==_0x319dc1['type']&&'$text'!=_0x319dc1['name']);for(const _0x48b69d of _0x3d8c1e)this['_isRegisteredAttribute'](_0x48b69d['attributeKey'])&&_0x2c579c['push']({'key':_0x48b69d['attributeKey'],'newValue':_0x48b69d['attributeNewValue'],'oldValue':_0x48b69d['attributeOldValue'],'range':Ht(_0x48b69d['range'],_0x47f6d3['model'])});for(const _0x4c9a30 of _0x15bdd8){if('rename'!=_0x4c9a30['action']&&'refresh'!=_0x4c9a30['action'])continue;const _0x115b92=qt(_0x4c9a30['position']['nodeAfter'],_0x47f6d3['model']),_0x1ce286=_0x4c9a30['before'];'rename'==_0x4c9a30['action']&&_0x2c579c['push']({'key':u,'newValue':_0x4c9a30['name'],'oldValue':_0x1ce286['name'],'range':_0x115b92});for(const [_0x1e958c,_0x361f47]of _0x1ce286['attributes']){if(!this['_isRegisteredAttribute'](_0x1e958c))continue;const _0x3a5169=_0x4c9a30['attributes']['get'](_0x1e958c);_0x361f47!==_0x3a5169&&_0x2c579c['push']({'key':_0x1e958c,'newValue':_0x3a5169,'oldValue':_0x361f47,'range':_0x115b92});}for(const [_0x2f9b23,_0x2dd774]of _0x4c9a30['attributes'])this['_isRegisteredAttribute'](_0x2f9b23)&&(_0x1ce286['attributes']['has'](_0x2f9b23)||_0x2c579c['push']({'key':_0x2f9b23,'newValue':_0x2dd774,'oldValue':null,'range':_0x115b92}));}0x0!=_0x2c579c['length']&&_0x47f6d3['model']['enqueueChange'](_0x4ab6a9,_0x3d6064=>{const _0x7cac34=_0x27c213();for(const {range:_0x1c8c61,key:_0x55f83d,oldValue:_0x335f0d,newValue:_0x5bbae7}of _0x2c579c)this['markAttributeChange'](_0x1c8c61,_0x55f83d,_0x335f0d,_0x5bbae7,{'groupId':_0x7cac34});this['_reduceExistingSuggestions'](_0x3d6064,_0x2c579c);});},{'priority':'lowest'}),_0x47f6d3['model']['markers']['on']('update:suggestion',(_0x30bc74,_0x4d64b1,_0x55ed2e)=>{if(null==_0x55ed2e){const {id:_0x2b13a1}=this['_splitMarkerName'](_0x4d64b1['name']),_0x1c33e8=this['_suggestions']['get'](_0x2b13a1);_0x1c33e8&&_0x1c33e8['addMarkerName'](_0x4d64b1['name']);}}),_0x47f6d3['model']['document']['on']('change:data',()=>{const _0x54e445=Array['from'](_0x47f6d3['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4d3694=>'suggestion'===this['_splitMarkerName'](_0x4d3694['name'])['group']);if(0x0===_0x54e445['length'])return;_0x54e445['sort']((_0x3d71fd,_0x466769)=>{const _0x364c01=_0x3d71fd['data']['oldRange'],_0x348c21=_0x466769['data']['oldRange'];return null===_0x364c01&&null===_0x348c21?0x0:null===_0x364c01&&null!==_0x348c21?-0x1:null!==_0x364c01&&null===_0x348c21?0x1:_0x364c01['start']['isBefore'](_0x348c21['start'])?-0x1:0x1;});const _0x570170=new Set(),_0x329b2d=new Set();for(const {name:_0x475943,data:_0x16cc75}of _0x54e445){const {id:_0x4abe3c}=this['_splitMarkerName'](_0x475943);if(null===_0x16cc75['oldRange']){const _0xe94821=this['_handleNewSuggestionMarker'](_0x475943);_0x329b2d['add'](_0xe94821);}else{const _0x4cdc14=this['_suggestions']['get'](_0x4abe3c);null!==_0x16cc75['newRange']||_0x4cdc14['isInContent']?(_0x570170['add'](_0x4cdc14['head']),_0x329b2d['add'](_0x4cdc14)):this['_removeSuggestion'](_0x4cdc14);}}_0x329b2d['size']>0x0&&this['_refreshSuggestionsChain'](_0x329b2d);for(const _0x32b559 of _0x570170)this['fire']('suggestionChanged',_0x32b559);}),_0x47f6d3['model']['on']('applyOperation',(_0x276622,_0x373689)=>{const _0xe8ff59=_0x373689[0x0];if(!this['_suggestions']['size'])return;if(!_0xe8ff59['isDocumentOperation'])return;if(_0xe8ff59['batch']['isUndo']||!_0xe8ff59['batch']['isLocal'])return;let _0x4f066c,_0x5a41a6;switch(_0xe8ff59['type']){case'insert':_0x4f066c=_0x47f6d3['model']['createPositionAt'](_0xe8ff59['position']),_0x5a41a6=_0x4f066c['getShiftedBy'](_0xe8ff59['howMany']);break;case'split':_0x4f066c=_0x47f6d3['model']['createPositionAt'](_0xe8ff59['splitPosition']),_0x5a41a6=_0x47f6d3['model']['createPositionAt'](_0xe8ff59['moveTargetPosition']);break;case'move':_0x4f066c=_0x47f6d3['model']['createPositionAt'](_0xe8ff59['targetPosition']),_0x5a41a6=_0x4f066c['getShiftedBy'](_0xe8ff59['howMany']);break;default:return;}const _0x20a319=_0x47f6d3['model']['createRange'](_0x4f066c,_0x5a41a6);_0x47f6d3['model']['change'](()=>{for(const {suggestion:_0x35ec1b,meta:_0x489164}of this['_findSuggestions'](_0x20a319)){if(_0x35ec1b['isMultiRange'])continue;if('formatInline'==_0x35ec1b['type'])continue;const _0x3b7e73=this['_getAttributeKey'](_0x35ec1b);if(_0x3b7e73&&this['_isBlockAttribute'](_0x3b7e73)&&'split'!=_0xe8ff59['type'])continue;const _0x566d5e=_0x35ec1b['data']&&_0x35ec1b['data']['multipleBlocks'];('formatBlock'!=_0x35ec1b['type']||'split'==_0xe8ff59['type']&&!_0x566d5e)&&(_0x489164['containsRangeInObject']||'insertion'==_0x35ec1b['type']&&_0x489164['isOwn']||_0x35ec1b['getFirstRange']()['containsRange'](_0x20a319)&&this['_breakSuggestionMarker'](_0x35ec1b,_0x4f066c,_0x5a41a6));}});},{'priority':'lowest'}),_0x47f6d3['model']['on']('deleteContent',(_0x2261a9,_0xd70c1f)=>{const _0x206a5c=_0xd70c1f[0x0],_0x4248ed=_0xd70c1f[0x1];if(_0x4248ed&&_0x4248ed['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x206a5c['isCollapsed'])return;const _0x50423f=_0x47f6d3['model']['schema'],{start:_0x1ecf75,end:_0xc22ccf}=_0x206a5c['getFirstRange'](),_0x573112=_0x1ecf75['nodeAfter']&&_0x50423f['isLimit'](_0x1ecf75['nodeAfter'])?null:_0x50423f['getNearestSelectionRange'](_0x1ecf75,'forward'),_0x40b587=_0xc22ccf['nodeBefore']&&_0x50423f['isLimit'](_0xc22ccf['nodeBefore'])?null:_0x50423f['getNearestSelectionRange'](_0xc22ccf,'backward'),_0x3818c3=_0x47f6d3['model']['createRange'](_0x573112?_0x573112['start']:_0x1ecf75,_0x40b587?_0x40b587['end']:_0xc22ccf);_0x47f6d3['model']['change'](_0x24e0df=>{this['markDeletion'](_0x3818c3);const _0xae9856=_0x47f6d3['model']['schema']['getNearestSelectionRange'](_0x3818c3['start']);_0x206a5c['is']('documentSelection')?_0x24e0df['setSelection'](_0xae9856):_0x206a5c['setTo'](_0xae9856);}),_0x2261a9['stop']();},{'priority':_0x3439c8['normal']+0xa}),_0x47f6d3['model']['on']('insertContent',(_0x2bfa86,_0x54c795)=>{const _0x56fe91=_0x54c795[_0x54c795['length']-0x1];_0x56fe91&&_0x56fe91['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x47f6d3['model']['change'](()=>{let _0x509a47=_0x47f6d3['model']['insertContent'](_0x54c795[0x0],_0x54c795[0x1],_0x54c795[0x2],{'forceDefaultExecution':!0x0});if(!_0x509a47)return;_0x2bfa86['return']=_0x509a47['clone']();const _0x2ef55b=_0x509a47['end']['nodeBefore'],_0x494685=_0x47f6d3['model']['schema'];_0x2ef55b&&_0x494685['isBlock'](_0x2ef55b)&&!_0x494685['isObject'](_0x2ef55b)&&(_0x509a47=_0x47f6d3['model']['createRange'](_0x509a47['start'],_0x47f6d3['model']['createPositionAt'](_0x2ef55b,'end'))),this['markInsertion'](_0x509a47);}),_0x2bfa86['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x11210f=new O(_0x47f6d3,this['_suggestions']);_0x47f6d3['commands']['add']('acceptSuggestion',_0x11210f),this['enableCommand']('acceptSuggestion');const _0x252b2c=new R(_0x47f6d3,this['_suggestions']);_0x47f6d3['commands']['add']('discardSuggestion',_0x252b2c),this['enableCommand']('discardSuggestion'),_0x47f6d3['commands']['add']('acceptAllSuggestions',new x(_0x47f6d3,_0x11210f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x47f6d3['commands']['add']('discardAllSuggestions',new x(_0x47f6d3,_0x252b2c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x47f6d3['commands']['add']('acceptSelectedSuggestions',new E(_0x47f6d3,_0x11210f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x47f6d3['commands']['add']('discardSelectedSuggestions',new E(_0x47f6d3,_0x252b2c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2242fc=_0x47f6d3['plugins']['get']('CommentsRepository');this['listenTo'](_0x2242fc,'addComment',(_0x2ec57b,{threadId:_0x64f9d6})=>{const _0x203ccc=this['_suggestions']['get'](_0x64f9d6);_0x203ccc&&_0x203ccc['commentThread']&&0x1===_0x203ccc['commentThread']['length']&&this['_updateSuggestionData'](_0x64f9d6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2242fc,'removeComment',(_0x2010dd,{threadId:_0x5425d4})=>{const _0x538167=this['_suggestions']['get'](_0x5425d4);_0x538167&&_0x538167['commentThread']&&!_0x538167['commentThread']['length']&&this['_updateSuggestionData'](_0x5425d4,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x24fe54){const _0x446191=_0x28d2f2([0x6f,0x63,0x66,0x52,0x75,0x49,0x30,0x4e,0x6e,0x56,0x64,0x5a,0x50,0x33,0x35,0x4b,0x43,0x7a,0x44,0x68,0x58,0x36,0x67,0x6d,0x74,0x55,0x4a,0x4f,0x62,0x45,0x34,0x61,0x32,0x48,0x73,0x78,0x65,0x77,0x6c,0x51,0x72,0x37,0x53,0x6a,0x31,0x54,0x71,0x76,0x69,0x6b,0x46,0x41,0x70,0x57,0x59,0x79,0x4c,0x4d,0x47,0x42,0x38,0x39]),_0x270ad0=0x2e4dc275,_0x4fbbea=0x2e4aa3cd^_0x270ad0,_0x528ffd=window[_0x28d2f2([0x44,0x61,0x74,0x65])][_0x28d2f2([0x6e,0x6f,0x77])](),_0x8fc180=_0x24fe54[_0x28d2f2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b388d=new window[(_0x28d2f2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bab6e=>{_0x8fc180[_0x28d2f2([0x6f,0x6e,0x63,0x65])](_0x28d2f2([0x72,0x65,0x61,0x64,0x79]),_0x4bab6e);}),_0x15ae0b={[_0x28d2f2([0x6b,0x74,0x79])]:_0x28d2f2([0x45,0x43]),[_0x28d2f2([0x75,0x73,0x65])]:_0x28d2f2([0x73,0x69,0x67]),[_0x28d2f2([0x63,0x72,0x76])]:_0x28d2f2([0x50,0x2d,0x32,0x35,0x36]),[_0x28d2f2([0x78])]:_0x28d2f2([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x28d2f2([0x79])]:_0x28d2f2([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x28d2f2([0x61,0x6c,0x67])]:_0x28d2f2([0x45,0x53,0x32,0x35,0x36])},_0x4ecf41=_0x8fc180[_0x28d2f2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x28d2f2([0x67,0x65,0x74])](_0x28d2f2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x110b1d(){let _0x1d527d,_0x1609a7=null,_0x350225=null;try{if(_0x4ecf41==_0x28d2f2([0x47,0x50,0x4c]))return _0x28d2f2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d527d=_0x1ff391(),!_0x1d527d)return _0x28d2f2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d527d[_0x28d2f2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x350225=_0x4ec7d1(_0x1d527d[_0x28d2f2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d527d[_0x28d2f2([0x6a,0x74,0x69])])),await _0x1dc526()?_0x1c6140()?_0x2b478a()?_0x28d2f2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3828d5()?(_0x1d527d[_0x28d2f2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28d2f2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1609a7=_0x11ce9a(_0x28d2f2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d527d[_0x28d2f2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28d2f2([0x74,0x72,0x69,0x61,0x6c])&&(_0x1609a7=_0x11ce9a(_0x28d2f2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x436b47()):_0x28d2f2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x28d2f2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x28d2f2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1c9eb3){return _0x28d2f2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b478a(){const _0x168a06=[_0x28d2f2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x28d2f2([0x74,0x72,0x69,0x61,0x6c])][_0x28d2f2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d527d[_0x28d2f2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x528ffd/0x3e8:0xe10*_0x4fbbea;return _0x1d527d[_0x28d2f2([0x65,0x78,0x70])]<_0x168a06;}function _0x1c6140(){const _0x3b4a3a=_0x1d527d[_0x28d2f2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3b4a3a)return!0x1;if(_0x3b4a3a[_0x28d2f2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28d2f2([0x2a])))return!0x0;if(_0x3b4a3a[_0x28d2f2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28d2f2([0x54,0x43])))return!0x0;if(_0x3b4a3a[_0x28d2f2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28d2f2([0x52,0x54,0x43]))){if(_0x40f91f())return!0x0;if(_0x5424c9()||_0xec3d3b())return!0x0;}return!0x1;}function _0x3828d5(){const _0x3a7cbf=_0x1d527d[_0x28d2f2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a7cbf||0x0==_0x3a7cbf[_0x28d2f2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15a078}=new URL(window[_0x28d2f2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a7cbf[_0x28d2f2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15a078))return!0x0;const _0x37656d=_0x15a078[_0x28d2f2([0x73,0x70,0x6c,0x69,0x74])](_0x28d2f2([0x2e]));return _0x3a7cbf[_0x28d2f2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5950aa=>_0x5950aa[_0x28d2f2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28d2f2([0x2a])))[_0x28d2f2([0x6d,0x61,0x70])](_0x162819=>_0x162819[_0x28d2f2([0x73,0x70,0x6c,0x69,0x74])](_0x28d2f2([0x2e])))[_0x28d2f2([0x73,0x6f,0x6d,0x65])](_0x2d60a8=>_0x37656d[_0x28d2f2([0x65,0x76,0x65,0x72,0x79])]((_0x3bf106,_0xd2b010)=>_0x2d60a8[_0xd2b010]===_0x3bf106||_0x2d60a8[_0xd2b010]===_0x28d2f2([0x2a])));}function _0x436b47(){return _0x1609a7&&_0x350225?new window[(_0x28d2f2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x430ea9,_0x5f231d)=>{_0x1609a7[_0x28d2f2([0x74,0x68,0x65,0x6e])](_0x430ea9,_0x5f231d),_0x350225[_0x28d2f2([0x74,0x68,0x65,0x6e])](_0x46480b=>{_0x46480b!=_0x28d2f2([0x56,0x61,0x6c,0x69,0x64])&&_0x430ea9(_0x46480b);},_0x5f231d);}):_0x1609a7||_0x350225||_0x28d2f2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4ec7d1(_0x26b69c,_0x39f42c){return new window[(_0x28d2f2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51deaa=>{if(_0x292233())return _0x51deaa(_0x28d2f2([0x56,0x61,0x6c,0x69,0x64]));_0x1c5cd1(),_0x8fc180[_0x28d2f2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x28d2f2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5916fa=!0x1;const _0x49909a=_0x27c213();function _0x231a8d(_0x38863f){return!!_0x38863f&&(typeof _0x38863f===_0x28d2f2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38863f===_0x28d2f2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38863f[_0x28d2f2([0x74,0x68,0x65,0x6e])]===_0x28d2f2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38863f[_0x28d2f2([0x63,0x61,0x74,0x63,0x68])]===_0x28d2f2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11713e(_0x1cbd0c){_0x38623c(_0x1cbd0c)[_0x28d2f2([0x74,0x68,0x65,0x6e])](_0x3c55bf=>{if(!_0x3c55bf||_0x3c55bf[_0x28d2f2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x28d2f2([0x6f,0x6b]))return _0x28d2f2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x13295d(_0x4e5501(_0x49909a+_0x39f42c))!=_0x3c55bf[_0x28d2f2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x28d2f2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x28d2f2([0x56,0x61,0x6c,0x69,0x64]);})[_0x28d2f2([0x74,0x68,0x65,0x6e])](_0x8ebc2b=>(_0x96adf5(),_0x8ebc2b),()=>{const _0x201241=_0x7dc95e();return null==_0x201241?(_0x96adf5(),_0x28d2f2([0x56,0x61,0x6c,0x69,0x64])):_0x28d2f2(_0x528ffd-_0x201241>(0xa414675^_0x270ad0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x28d2f2([0x74,0x68,0x65,0x6e])](_0x51deaa)[_0x28d2f2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51deaa(_0x28d2f2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5378a8=0x2e7b2cf5^_0x270ad0;function _0x96adf5(){const _0x28e436=_0x28d2f2([0x6c,0x6c,0x63,0x74,0x2d])+_0x13295d(_0x4e5501(_0x26b69c)),_0x1495b6=_0x3b4b4a(_0x13295d(window[_0x28d2f2([0x4d,0x61,0x74,0x68])][_0x28d2f2([0x63,0x65,0x69,0x6c])](_0x528ffd/_0x5378a8)));window[_0x28d2f2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28d2f2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28e436,_0x1495b6);}function _0x7dc95e(){const _0x425256=_0x28d2f2([0x6c,0x6c,0x63,0x74,0x2d])+_0x13295d(_0x4e5501(_0x26b69c)),_0x9338c7=window[_0x28d2f2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28d2f2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x425256);return _0x9338c7?window[_0x28d2f2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b4b4a(_0x9338c7),0x10)*_0x5378a8:null;}function _0x38623c(_0x77f942){return new window[(_0x28d2f2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39494c,_0x36bfb9)=>{_0x77f942[_0x28d2f2([0x74,0x68,0x65,0x6e])](_0x39494c,_0x36bfb9),window[_0x28d2f2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36bfb9,0x2e4c16b5^_0x270ad0);});}}_0x8fc180[_0x28d2f2([0x6f,0x6e])](_0x28d2f2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40af26,_0xd2925a)=>{if(_0xd2925a[0x0]!=_0x26b69c)return _0x51deaa(_0x28d2f2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd2925a[0x1]={..._0xd2925a[0x1],[_0x28d2f2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49909a};},{[_0x28d2f2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28d2f2([0x68,0x69,0x67,0x68])}),_0x8fc180[_0x28d2f2([0x6f,0x6e])](_0x28d2f2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1eaffd=>{_0x231a8d(_0x1eaffd[_0x28d2f2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5916fa=!0x0,_0x11713e(_0x1eaffd[_0x28d2f2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x28d2f2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28d2f2([0x6c,0x6f,0x77])}),_0x4b388d[_0x28d2f2([0x74,0x68,0x65,0x6e])](()=>{_0x5916fa||_0x51deaa(_0x28d2f2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x292233(){return _0x8fc180[_0x28d2f2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28d2f2([0x76,0x69,0x65,0x77])][_0x28d2f2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x28d2f2([0x61,0x75,0x74,0x6f]);}function _0x1c5cd1(){_0x8fc180[_0x28d2f2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28d2f2([0x76,0x69,0x65,0x77])][_0x28d2f2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28d2f2([0x61,0x75,0x74,0x6f]);}}function _0x11ce9a(_0x150517){const _0x4c4154=[new window[(_0x28d2f2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x612c70=>setTimeout(_0x612c70,0x2e44fcb9^_0x270ad0)),_0x4b388d[_0x28d2f2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x28d2f2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe35ca6=>{let _0x2052e8=0x0;_0x8fc180[_0x28d2f2([0x6d,0x6f,0x64,0x65,0x6c])][_0x28d2f2([0x6f,0x6e])](_0x28d2f2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3bcbf3,_0x3ebf23)=>{_0x3ebf23[0x0][_0x28d2f2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2052e8++,_0x2052e8==(0x2e4dc38d^_0x270ad0)&&(_0xe35ca6(),_0x3bcbf3[_0x28d2f2([0x6f,0x66,0x66])]());});}))];return window[_0x28d2f2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28d2f2([0x72,0x61,0x63,0x65])](_0x4c4154)[_0x28d2f2([0x74,0x68,0x65,0x6e])](()=>_0x150517);}async function _0x5c6e94(){await _0x4b388d,_0x8fc180[_0x28d2f2([0x6d,0x6f,0x64,0x65,0x6c])][_0x28d2f2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36b090,_0x8fc180[_0x28d2f2([0x6d,0x6f,0x64,0x65,0x6c])][_0x28d2f2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36b090,_0x8fc180[_0x28d2f2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x28d2f2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40f91f(){return _0x16ccb1(_0x28d2f2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3c2a1c(_0x28d2f2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x28d2f2([0x73,0x74,0x61,0x74,0x65])]==_0x28d2f2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5424c9(){return _0x16ccb1(_0x28d2f2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0xec3d3b(){return _0x16ccb1(_0x28d2f2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2a2f80(_0x10f3e2){const _0xa7a03b=_0x2855d4();_0x8fc180[_0xa7a03b]=_0x28d2f2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x10f3e2,_0x10f3e2!=_0x28d2f2([0x56,0x61,0x6c,0x69,0x64])&&_0x5c6e94();}function _0x2855d4(){const _0x2cac99=window[_0x28d2f2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x28d2f2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28d2f2([0x6e,0x6f,0x77])]())[_0x28d2f2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x28d2f2([0x2e]),'');let _0x382f6e=_0x28d2f2([0x6f]);for(let _0x2c0802=0x0;_0x2c0802<_0x2cac99[_0x28d2f2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c0802+=0x2){let _0x5ceeaf=window[_0x28d2f2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cac99[_0x28d2f2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c0802,_0x2c0802+0x2));_0x5ceeaf>=_0x446191[_0x28d2f2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ceeaf-=_0x446191[_0x28d2f2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x382f6e+=_0x446191[_0x5ceeaf];}return _0x382f6e;}function _0x1ff391(){const _0x151fb8=_0x4ecf41[_0x28d2f2([0x73,0x70,0x6c,0x69,0x74])](_0x28d2f2([0x2e]));if(0x3!=_0x151fb8[_0x28d2f2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x61960d(_0x151fb8[0x1]);function _0x61960d(_0x336b68){const _0x3c9703=_0x1d3220(_0x336b68);return _0x3c9703&&_0x4fa011()?_0x3c9703:null;function _0x4fa011(){const _0x10e4b9=_0x3c9703[_0x28d2f2([0x6a,0x74,0x69])],_0x258525=window[_0x28d2f2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10e4b9[_0x28d2f2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10e4b9[_0x28d2f2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d8d56={..._0x3c9703,[_0x28d2f2([0x6a,0x74,0x69])]:_0x10e4b9[_0x28d2f2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x10e4b9[_0x28d2f2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d8d56[_0x28d2f2([0x76,0x63])],_0x4e5501(_0x4d8d56)==_0x258525;}}}async function _0x1dc526(){let _0x3df914=!0x0;try{const _0x2fe515=_0x4ecf41[_0x28d2f2([0x73,0x70,0x6c,0x69,0x74])](_0x28d2f2([0x2e])),[_0x39e437,_0x391727,_0x552401]=_0x2fe515;return _0x32fbb2(_0x39e437),await _0x4b9d06(_0x39e437,_0x391727,_0x552401),_0x3df914;}catch(_0x4823ad){return!0x1;}function _0x32fbb2(_0x5abe13){const _0xbdaf8e=_0x1d3220(_0x5abe13);_0xbdaf8e&&_0xbdaf8e[_0x28d2f2([0x61,0x6c,0x67])]==_0x28d2f2([0x45,0x53,0x32,0x35,0x36])||(_0x3df914=!0x1);}async function _0x4b9d06(_0x4e8138,_0x425831,_0x45e0c8){const _0x124c45=window[_0x28d2f2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x28d2f2([0x66,0x72,0x6f,0x6d])](_0x36fa7f(_0x45e0c8),_0x334d2c=>_0x334d2c[_0x28d2f2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3c56fa=new window[(_0x28d2f2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x28d2f2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e8138+_0x28d2f2([0x2e])+_0x425831),_0x2d1196=window[_0x28d2f2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x28d2f2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d1196)return;const _0x505a7a=await _0x2d1196[_0x28d2f2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x28d2f2([0x6a,0x77,0x6b]),_0x15ae0b,{[_0x28d2f2([0x6e,0x61,0x6d,0x65])]:_0x28d2f2([0x45,0x43,0x44,0x53,0x41]),[_0x28d2f2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x28d2f2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x28d2f2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d1196[_0x28d2f2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x28d2f2([0x6e,0x61,0x6d,0x65])]:_0x28d2f2([0x45,0x43,0x44,0x53,0x41]),[_0x28d2f2([0x68,0x61,0x73,0x68])]:{[_0x28d2f2([0x6e,0x61,0x6d,0x65])]:_0x28d2f2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x505a7a,_0x124c45,_0x3c56fa)||(_0x3df914=!0x1);}}function _0x1d3220(_0x10a804){return _0x10a804[_0x28d2f2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x28d2f2([0x65,0x79]))?JSON[_0x28d2f2([0x70,0x61,0x72,0x73,0x65])](_0x36fa7f(_0x10a804)):null;}function _0x36fa7f(_0x275d8d){return window[_0x28d2f2([0x61,0x74,0x6f,0x62])](_0x275d8d[_0x28d2f2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x28d2f2([0x2b]))[_0x28d2f2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x28d2f2([0x2f])));}function _0x4e5501(_0x95a182){let _0x3c473f=0x1505;function _0x5418fb(_0x5197d2){for(let _0x5559d2=0x0;_0x5559d2<_0x5197d2[_0x28d2f2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5559d2++){const _0x5476f4=_0x5197d2[_0x28d2f2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5559d2);_0x3c473f=(_0x3c473f<<0x5)+_0x3c473f+_0x5476f4,_0x3c473f&=_0x3c473f;}}function _0x20a7e4(_0x25e62d){Array[_0x28d2f2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x25e62d)?_0x25e62d[_0x28d2f2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20a7e4):_0x25e62d&&typeof _0x25e62d==_0x28d2f2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x28d2f2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x25e62d)[_0x28d2f2([0x73,0x6f,0x72,0x74])]()[_0x28d2f2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55bce6,_0x4f1c50])=>{_0x5418fb(_0x55bce6),_0x20a7e4(_0x4f1c50);}):_0x5418fb(window[_0x28d2f2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x25e62d));}return _0x20a7e4(_0x95a182),_0x3c473f>>>0x0;}function _0x13295d(_0x348165){return _0x348165[_0x28d2f2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x28d2f2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x28d2f2([0x30]));}function _0x3b4b4a(_0x30cc13){return _0x30cc13[_0x28d2f2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x28d2f2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x28d2f2([0x6a,0x6f,0x69,0x6e])]('');}function _0x16ccb1(_0x4d5cd6){return _0x8fc180[_0x28d2f2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x28d2f2([0x68,0x61,0x73])](_0x4d5cd6);}function _0x3c2a1c(_0x8eb9f9){return _0x8fc180[_0x28d2f2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x28d2f2([0x67,0x65,0x74])](_0x8eb9f9);}function _0x36b090(){}function _0x28d2f2(_0x58b55b){return _0x58b55b['map'](_0x32169b=>String['fromCharCode'](_0x32169b))['join']('');}_0x2a2f80(await _0x110b1d());}(this);}set['adapter'](_0x5a0d5a){if(this['_adapter'])throw new _0x229c91('track-changes-adapter-already-set',this);this['_adapter']=_0x5a0d5a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x137e7a=!0x1,toJSON:_0x122890=!0x1}={}){const _0x365b60=[];for(const _0x23b7ed of this['_suggestions']['values']())_0x137e7a&&!_0x23b7ed['isInContent']||_0x365b60['push'](_0x23b7ed);return _0x122890?_0x365b60['map'](_0x855c74=>_0x855c74['toJSON']()):_0x365b60;}['getSuggestion'](_0x3d711d){const _0x1adeb0=this['_suggestions']['get'](_0x3d711d);if(!_0x1adeb0)throw new _0x229c91('track-changes-suggestion-not-found',this);return _0x1adeb0;}['hasSuggestion'](_0x1e97d6){return this['_suggestions']['has'](_0x1e97d6);}['addSuggestionData'](_0x228c79){const {authorId:_0x2f058d,id:_0x5082e9,attributes:_0x5356a1}=_0x228c79,[_0x294061,_0x41c62e]=_0x228c79['type']['split'](':'),_0x391e7c=this['_suggestions']['get'](_0x5082e9)||this['_createSuggestion'](_0x294061,_0x41c62e,_0x5082e9,_0x2f058d,_0x5356a1);if(this['_addThreadToSuggestion'](_0x391e7c),this['_checkSuggestionCorrectness'](_0x391e7c,_0x294061,_0x41c62e||null,_0x2f058d),_0x391e7c['createdAt']=_0x228c79['createdAt'],_0x391e7c['_isDataLoaded']=!0x0,_0x5356a1&&_0x5356a1['@external']){const _0x15fa3b=_0x5356a1['@external'],_0x5313ef=this['_getExternalAuthor'](_0x15fa3b['authorName']);_0x391e7c['authoredAt']=_0x15fa3b['createdAt'],_0x391e7c['author']=_0x5313ef,_0x391e7c['isExternal']=!0x0;}else _0x391e7c['authoredAt']=_0x228c79['createdAt'];switch(_0x228c79['data']&&(_0x391e7c['data']=_0x228c79['data']),_0x228c79['attributes']&&(_0x391e7c['attributes']=_0x228c79['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x391e7c['_saved']=!0x0),this['_suggestionState']['get'](_0x391e7c)){case'notReady':this['_suggestionState']['set'](_0x391e7c,'dataReady');break;case'markerReady':_0x391e7c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x391e7c])),this['_refreshSuggestionsChain'](new Set([_0x391e7c])),this['_suggestionState']['set'](_0x391e7c,'ready'),this['fire']('suggestionLoaded',_0x391e7c)):this['_suggestionState']['set'](_0x391e7c,'removed');}return _0x391e7c;}['acceptSuggestion'](_0x2f4b68){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xe631f7 of _0x2f4b68['getAllAdjacentSuggestions']())_0xe631f7['accept']();});});}['discardSuggestion'](_0x10ddda){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4318d9 of _0x10ddda['getAllAdjacentSuggestions']())_0x4318d9['discard']();});});}['enableCommand'](_0x248e01,_0x32ea3e){const _0x3a0a05=this['editor']['commands']['get'](_0x248e01);if(!_0x3a0a05)throw new _0x229c91('track-changes-command-not-found',this,{'commandName':_0x248e01});if(this['_enabledCommands']['has'](_0x3a0a05))throw new _0x229c91('track-changes-enable-command-twice',this,{'commandName':_0x248e01});this['_enabledCommands']['add'](_0x3a0a05),_0x32ea3e&&_0x3a0a05['on']('execute',(_0x366f65,_0x4f6f62)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4f6f62['length']>0x0&&_0x4f6f62[_0x4f6f62['length']-0x1]&&_0x4f6f62[_0x4f6f62['length']-0x1]['forceDefaultExecution']?_0x4f6f62['pop']():(_0x366f65['return']=_0x32ea3e((..._0xfe44e2)=>_0x3a0a05['execute'](..._0xfe44e2,{'forceDefaultExecution':!0x0}),..._0x4f6f62),_0x366f65['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2c8beb){let _0x1d794b,_0xf56886;const _0x2f7d23=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1d794b=_0x2c8beb();}catch(_0x2160af){_0xf56886=_0x2160af;}return _0x2f7d23||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xf56886&&_0x229c91['rethrowUnexpectedError'](_0xf56886,this),_0x1d794b;}['markInsertion'](_0x19dca,_0x219ea6=null,_0xd1786d={}){if(_0x19dca['isCollapsed'])return null;const _0x54ff84=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3290cd,meta:_0x4e6f31}of this['_findSuggestions'](_0x19dca,'insertion'))if(_0x4e6f31['isOwn']){if(!_0x4e6f31['isNextTo']){if(_0x4e6f31['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x3290cd,_0xd1786d))continue;return _0x3290cd;}if(Qt(_0x3290cd,_0xd1786d))return _0x3290cd;this['_breakSuggestionMarker'](_0x3290cd,_0x19dca['start'],_0x19dca['end']);break;}if(_0x219ea6==_0x3290cd['subType']&&Qt(_0x3290cd,_0xd1786d)){const _0x46cfdb=_0x3290cd['getFirstRange']();return _0x46cfdb['start']['isEqual'](_0x19dca['end'])?this['_setSuggestionRange'](_0x3290cd,this['_model']['createRange'](_0x19dca['start'],_0x46cfdb['end'])):this['_setSuggestionRange'](_0x3290cd,this['_model']['createRange'](_0x46cfdb['start'],_0x19dca['end'])),_0x3290cd;}}const _0x5d0ae1=_0x27c213(),_0x25fd66=_0x54ff84['id'],_0xaba5b5=_0x219ea6?'insertion:'+_0x219ea6:'insertion',_0x2cb175=this['_setSuggestionData']({'id':_0x5d0ae1,'type':_0xaba5b5,'createdAt':new Date(),'authorId':_0x25fd66,'attributes':_0xd1786d});return this['_addSuggestionMarker'](_0xaba5b5,_0x5d0ae1,_0x25fd66,_0x19dca),_0x2cb175;}['markMultiRangeInsertion'](_0x395dd9,_0x57c86a='multi',_0x2d7930={}){const _0xfa3d97=this['editor']['plugins']['get']('Users')['me'],_0x412900=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x57c86a,'join');for(const _0x1429a7 of this['getSuggestions']())if(_0x1429a7['author']['id']==_0xfa3d97['id']&&'insertion'==_0x1429a7['type']&&_0x1429a7['subType']==_0x57c86a&&Qt(_0x1429a7,_0x2d7930)&&(_0x412900(_0x1429a7['getRanges'](),_0x395dd9)||_0x412900(_0x395dd9,_0x1429a7['getRanges']()))){for(const _0x50e641 of _0x395dd9)_0x1429a7['addRange'](_0x50e641);return _0x1429a7;}for(const {suggestion:_0xb11b28,meta:_0x657a9c}of this['_findSuggestions'](_0x395dd9,'insertion')){if(!_0x657a9c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x657a9c['containsRangeInObject'])continue;if(!Qt(_0xb11b28,_0x2d7930))continue;let _0x391b12=!0x0;for(const _0x901ab0 of _0xb11b28['getRanges']())for(const _0x1a113c of _0x395dd9)if(!_0x901ab0['containsRange'](_0x1a113c)){_0x391b12=!0x1;break;}if(_0x391b12)return _0xb11b28;}const _0x3b55ab=_0x27c213(),_0x2d13c4=_0xfa3d97['id'],_0x2a9db9='insertion:'+_0x57c86a,_0x39d7d4=this['_setSuggestionData']({'id':_0x3b55ab,'type':_0x2a9db9,'createdAt':new Date(),'authorId':_0x2d13c4,'attributes':_0x2d7930});for(const _0x26b5e1 of _0x395dd9)this['_addSuggestionMarker'](_0x2a9db9,_0x3b55ab,_0x2d13c4,_0x26b5e1,o['getMultiRangeId']());return _0x39d7d4;}['markInlineFormat'](_0x23a1fa,_0x68ba52,_0x516bb5=null,_0x58e37c={}){if(_0x516bb5=_0x516bb5||Jt(_0x68ba52),_0x23a1fa['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x51f6dd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x516bb5,'accept');return this['forceDefaultExecution'](()=>_0x51f6dd([_0x23a1fa],_0x68ba52,_0x58e37c)),null;}const _0x4727e7=this['editor']['plugins']['get']('Users')['me'],_0xdb0442=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x42a422,meta:_0x3c468a}of this['_findSuggestions'](_0x23a1fa,'insertion'))_0x3c468a['isOwn']&&!_0x3c468a['isInsideObject']&&_0xdb0442['push'](..._0x42a422['getRanges']());}const _0x58aa54=function(_0xcd0370,_0x423bff){const _0x52db95=[];for(const _0x3c22f3 of _0x423bff){const _0x28982d=_0xcd0370['getIntersection'](_0x3c22f3);_0x28982d&&_0x52db95['push'](_0x28982d);}return _0x52db95;}(_0x23a1fa,_0xdb0442),_0x1d8df7=function(_0x9a603,_0x42fc1f){const _0x4e3be7=[_0x9a603];for(const _0x4ea9a2 of _0x42fc1f){let _0x35f670=0x0;for(;_0x35f670<_0x4e3be7['length'];){const _0x24d1e5=_0x4e3be7[_0x35f670]['getDifference'](_0x4ea9a2);_0x4e3be7['splice'](_0x35f670,0x1,..._0x24d1e5),_0x35f670+=_0x24d1e5['length'];}}return _0x4e3be7;}(_0x23a1fa,_0xdb0442);_0x58aa54['length']&&this['_model']['change'](()=>{for(const _0x234e26 of _0x58aa54){const _0x2bbe71=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x516bb5,'accept');this['forceDefaultExecution'](()=>_0x2bbe71([_0x234e26],_0x68ba52,_0x58e37c));}});for(const _0x2df433 of _0x1d8df7){let _0x18df21=null,_0x4c2c5e=_0x2df433['start'],_0x48e1e1=_0x2df433['end'];for(const {suggestion:_0xe9bfe6,meta:_0x5bf543}of this['_findSuggestions'](_0x2df433,'formatInline')){if(!_0x5bf543['isOwn'])continue;if(_0xe9bfe6['subType']!=_0x516bb5)continue;if(!Qt(_0xe9bfe6,_0x58e37c))continue;const _0xe508d0=_0xe9bfe6['getFirstRange']();if(_0xe508d0['containsRange'](_0x2df433,!0x0))return null;_0x4c2c5e=_0x4c2c5e['isBefore'](_0xe508d0['start'])?_0x4c2c5e:_0xe508d0['start'],_0x48e1e1=_0x48e1e1['isAfter'](_0xe508d0['end'])?_0x48e1e1:_0xe508d0['end'],_0x18df21?_0xe508d0['start']['isBefore'](_0x18df21['getFirstRange']()['start'])?(_0x18df21['removeMarkers'](),_0x18df21=_0xe9bfe6):_0xe9bfe6['removeMarkers']():_0x18df21=_0xe9bfe6;}const _0x426bf8=this['_model']['createRange'](_0x4c2c5e,_0x48e1e1);if(_0x18df21)this['_setSuggestionRange'](_0x18df21,_0x426bf8);else{const _0x1836ee=_0x27c213(),_0x18ec4a=_0x4727e7['id'];this['_setSuggestionData']({'id':_0x1836ee,'type':'formatInline:'+_0x516bb5,'data':_0x68ba52,'createdAt':new Date(),'authorId':_0x18ec4a,'attributes':_0x58e37c}),this['_addSuggestionMarker']('formatInline:'+_0x516bb5,_0x1836ee,_0x18ec4a,_0x426bf8);}}return null;}['markBlockFormat'](_0x2b29ba,_0x2fbbf6,_0x2f1d7a=[],_0x2a5ec4=null,_0x27a231={}){_0x2fbbf6['formatGroupId']||(_0x2fbbf6['formatGroupId']=_0x2fbbf6['commandName']),_0x2fbbf6['multipleBlocks']=_0x2b29ba['is']('range'),_0x2a5ec4=_0x2a5ec4||Jt(_0x2fbbf6);const _0x3f90c3=_0x2f1d7a['map'](_0x579a6a=>qt(_0x579a6a,this['_model'])),_0x1db9aa=_0x2b29ba['is']('range')?_0x2b29ba:qt(_0x2b29ba,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4272b3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a5ec4,'accept');return this['forceDefaultExecution'](()=>_0x4272b3([_0x1db9aa],_0x2fbbf6,_0x27a231)),null;}_0x3f90c3['push'](_0x1db9aa);let _0x2dd8c7=!0x0;for(const _0x592d26 of _0x3f90c3)if(!this['_rangeIsInLocalUserInsertion'](_0x592d26)){_0x2dd8c7=!0x1;break;}if(_0x2dd8c7&&'always'!==this['_trackFormatChanges']){const _0x144649=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a5ec4,'accept');return this['forceDefaultExecution'](()=>_0x144649([_0x1db9aa],_0x2fbbf6,_0x27a231)),null;}let _0x2753cd=null,_0x2f1cc6=_0x1db9aa['start'],_0x20e392=_0x1db9aa['end'];for(const {suggestion:_0x10191f,meta:_0x478691}of this['_findSuggestions'](_0x1db9aa,'formatBlock')){if(!_0x478691['isOwn'])continue;if(_0x478691['isNextTo']||_0x478691['containsRangeInObject']||_0x478691['isInsideObject'])continue;if(_0x10191f['data']['formatGroupId']!=_0x2fbbf6['formatGroupId'])continue;if(!Qt(_0x10191f,_0x27a231))continue;const _0x15bbe0=_0x10191f['getFirstRange']();if(_0x10191f['subType']==_0x2a5ec4){if(_0x15bbe0['containsRange'](_0x1db9aa,!0x0))return null;_0x2f1cc6=_0x2f1cc6['isBefore'](_0x15bbe0['start'])?_0x2f1cc6:_0x15bbe0['start'],_0x20e392=_0x20e392['isAfter'](_0x15bbe0['end'])?_0x20e392:_0x15bbe0['end'],_0x2753cd?_0x15bbe0['start']['isBefore'](_0x2753cd['getFirstRange']()['start'])?(_0x2753cd['removeMarkers'](),_0x2753cd=_0x10191f):_0x10191f['removeMarkers']():_0x2753cd=_0x10191f;}else{const _0x420858=_0x1db9aa['getIntersection'](_0x15bbe0);this['_cutOutSuggestionMarker'](_0x10191f,_0x420858);}}const _0x2b5bed=this['editor']['plugins']['get']('Users')['me'],_0x105e81=_0x27c213(),_0x10dc0b=_0x2b5bed['id'];if(_0x2753cd)return this['_setSuggestionRange'](_0x2753cd,this['_model']['createRange'](_0x2f1cc6,_0x20e392)),_0x2753cd;{const _0x4bf060=this['_setSuggestionData']({'id':_0x105e81,'type':'formatBlock:'+_0x2a5ec4,'data':_0x2fbbf6,'createdAt':new Date(),'authorId':_0x10dc0b,'attributes':_0x27a231});return this['_addSuggestionMarker']('formatBlock:'+_0x2a5ec4,_0x105e81,_0x10dc0b,this['_model']['createRange'](_0x2f1cc6,_0x20e392)),_0x4bf060;}}['markMultiRangeBlockFormat'](_0x16cc7d,_0x3276c6,_0x5b3d9f=[],_0x2bb4f9=null,_0x23c2c2={}){_0x3276c6['formatGroupId']||(_0x3276c6['formatGroupId']=_0x3276c6['commandName']);const _0x136d09=_0x16cc7d[0x0];_0x3276c6['multipleBlocks']=_0x136d09['is']('range'),_0x2bb4f9=_0x2bb4f9||Jt(_0x3276c6);const _0x4bd72f=_0x5b3d9f['map'](_0x3d7b6c=>qt(_0x3d7b6c,this['_model'])),_0x4491a9=_0x136d09['is']('range')?_0x16cc7d:_0x16cc7d['map'](_0x41a5e1=>qt(_0x41a5e1,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2843b9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bb4f9,'accept');return this['forceDefaultExecution'](()=>_0x2843b9(_0x4491a9,_0x3276c6,_0x23c2c2)),null;}_0x4bd72f['push'](..._0x4491a9);let _0x3f2b2d=!0x0;for(const _0x302a18 of _0x4bd72f)if(!this['_rangeIsInLocalUserInsertion'](_0x302a18)){_0x3f2b2d=!0x1;break;}if(_0x3f2b2d&&'always'!==this['_trackFormatChanges']){const _0x1dc34b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bb4f9,'accept');return this['forceDefaultExecution'](()=>_0x1dc34b(_0x4491a9,_0x3276c6,_0x23c2c2)),null;}const _0x3053fa=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f8e3d of this['getSuggestions']()){if(_0x3f8e3d['author']['id']!=_0x3053fa['id'])continue;if('formatBlock'!=_0x3f8e3d['type']||_0x3f8e3d['data']['formatGroupId']!=_0x3276c6['formatGroupId'])continue;if(!Qt(_0x3f8e3d,_0x23c2c2))continue;const _0x184b41=_0x3f8e3d['subType']==_0x2bb4f9;for(let _0x4c0f3b=0x0;_0x4c0f3b<_0x4491a9['length'];_0x4c0f3b++){const _0x54a38c=_0x4491a9[_0x4c0f3b];for(const _0x24e1ec of _0x3f8e3d['getMarkers']()){const _0x532724=_0x24e1ec['getRange']();if(_0x54a38c['isEqual'](_0x532724)){_0x184b41?(_0x4491a9['splice'](_0x4c0f3b,0x1),_0x4c0f3b--):_0x3f8e3d['removeMarker'](_0x24e1ec['name']);break;}}}}if(0x0==_0x4491a9['length'])return null;const _0x2fdbc6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bb4f9,'join');for(const _0xfbccea of this['getSuggestions']())if(_0xfbccea['author']['id']==_0x3053fa['id']&&'formatBlock'==_0xfbccea['type']&&_0xfbccea['data']['formatGroupId']==_0x3276c6['formatGroupId']&&_0xfbccea['subType']==_0x2bb4f9&&Qt(_0xfbccea,_0x23c2c2)&&(_0x2fdbc6(_0xfbccea['getRanges'](),_0x4491a9)||_0x2fdbc6(_0x4491a9,_0xfbccea['getRanges']()))){for(const _0xcd8aed of _0x4491a9)_0xfbccea['addRange'](_0xcd8aed);return _0xfbccea;}const _0x926a26=_0x27c213(),_0x140b5c=_0x3053fa['id'],_0x1017b4='formatBlock:'+_0x2bb4f9,_0x27cdbb=this['_setSuggestionData']({'id':_0x926a26,'type':_0x1017b4,'data':_0x3276c6,'createdAt':new Date(),'authorId':_0x140b5c,'attributes':_0x23c2c2});for(const _0x5d379f of _0x4491a9)this['_addSuggestionMarker'](_0x1017b4,_0x926a26,_0x140b5c,_0x5d379f,o['getMultiRangeId']());return _0x27cdbb;}['markDeletion'](_0x4f0a49,_0x2f4c20=null,_0x2f1747={}){if(_0x4f0a49['isCollapsed'])return null;const _0xe5308f=this['editor']['plugins']['get']('Users')['me'],_0x3238d5=new _0x159dcb(_0x4f0a49['start'],_0x4f0a49['end']);for(const {suggestion:_0x5b51b6,meta:_0x293698}of this['_findSuggestions'](_0x3238d5,'insertion'))if(_0x293698['isOwn']&&!_0x293698['isNextTo']){if(_0x5b51b6['isMultiRange']){const _0x5bc1ba=_0x5b51b6['getRanges']()['filter'](_0x54e77e=>'$graveyard'!=_0x54e77e['root']['rootName']);_0x5bc1ba['every'](_0x40d7d7=>_0x3238d5['containsRange'](_0x40d7d7,!0x0))&&_0x5b51b6['discard']();if(_0x5bc1ba['some'](_0x112855=>_0x112855['containsRange'](_0x3238d5,!0x0))){const _0x447edd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f4c20,'accept');return this['forceDefaultExecution'](()=>_0x447edd([_0x3238d5],null,_0x2f1747)),null;}}else{const _0x2d24fa=_0x3238d5['getIntersection'](_0x5b51b6['getFirstRange']());null!==_0x2d24fa&&_0x5b51b6['_onDiscard']([_0x2d24fa],null,_0x2f1747);}}if(_0x3238d5['detach'](),_0x3238d5['isCollapsed']||'$graveyard'==_0x3238d5['root']['rootName'])return null;let _0x49edf7=null,_0xd7cbc4=_0x3238d5['start'],_0x53ff5e=_0x3238d5['end'];const _0x4ad99e=this['_findSuggestions'](_0x3238d5,'deletion');for(const {suggestion:_0x1d58e2,meta:_0x5af097}of _0x4ad99e){const _0x117fd7=this['_model']['createRange'](_0xd7cbc4,_0x53ff5e);if(_0x5af097['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5af097['containsRangeInObject']&&!_0x5af097['isInsideObject'])){if(_0x1d58e2['isMultiRange']){if(!Qt(_0x1d58e2,_0x2f1747))continue;let _0x244378=!0x0;for(const _0x30b227 of _0x1d58e2['getRanges']()){if(_0x30b227['containsRange'](_0x117fd7,!0x0))return _0x1d58e2;_0x117fd7['containsRange'](_0x30b227)||(_0x244378=!0x1);}_0x244378&&_0x1d58e2['discard']();}else{const _0xd571d2=_0x1d58e2['getFirstRange']();if(_0xd571d2['containsRange'](_0x117fd7,!0x0))return _0x1d58e2;if(!Qt(_0x1d58e2,_0x2f1747)){_0x117fd7['containsRange'](_0xd571d2)?_0x1d58e2['removeMarkers']():_0xd571d2['containsPosition'](_0xd7cbc4)?_0xd7cbc4=_0xd571d2['end']:_0xd571d2['containsPosition'](_0x53ff5e)&&(_0x53ff5e=_0xd571d2['start']);continue;}_0xd7cbc4=_0xd7cbc4['isBefore'](_0xd571d2['start'])?_0xd7cbc4:_0xd571d2['start'],_0x53ff5e=_0x53ff5e['isAfter'](_0xd571d2['end'])?_0x53ff5e:_0xd571d2['end'],_0x2f1747=Object['assign']({},_0x1d58e2['attributes']),_0x49edf7?_0xd571d2['start']['isBefore'](_0x49edf7['getFirstRange']()['start'])?(_0x49edf7['removeMarkers'](),_0x49edf7=_0x1d58e2):_0x1d58e2['removeMarkers']():_0x49edf7=_0x1d58e2;}}}if(_0x49edf7)return this['_setSuggestionRange'](_0x49edf7,this['_model']['createRange'](_0xd7cbc4,_0x53ff5e)),_0x49edf7;{const _0x2a8705=_0x27c213(),_0x2ddb65=this['_model']['createRange'](_0xd7cbc4,_0x53ff5e),_0x4d3e83=_0xe5308f['id'],_0x4c7e70=_0x2f4c20?'deletion:'+_0x2f4c20:'deletion',_0x354ee3=this['_setSuggestionData']({'id':_0x2a8705,'type':_0x4c7e70,'createdAt':new Date(),'authorId':_0x4d3e83,'attributes':_0x2f1747});return this['_addSuggestionMarker'](_0x4c7e70,_0x2a8705,_0x4d3e83,_0x2ddb65),_0x354ee3;}}['markMultiRangeDeletion'](_0x15fee9,_0x3f4762='multi',_0x3cc449={}){const _0x3a08bd=this['editor']['plugins']['get']('Users')['me'],_0x1ae6f2=_0x15fee9['map'](_0x5454c2=>new _0x159dcb(_0x5454c2['start'],_0x5454c2['end'])),_0x286dc0=new Set();for(const {suggestion:_0x6eb78b,meta:_0x382cf8}of this['_findSuggestions'](_0x1ae6f2,'insertion'))_0x382cf8['isOwn']&&!_0x382cf8['isNextTo']&&_0x286dc0['add'](_0x6eb78b);for(const _0xdea382 of _0x286dc0)if(_0xdea382['isMultiRange']){const _0x108f86=_0xdea382['getRanges']();(!_0xdea382['attributes']||!_0xdea382['attributes']['skipNestingCheck'])&&(_0x108f86['every'](_0x23874c=>_0x1ae6f2['some'](_0x20b437=>_0x20b437['containsRange'](_0x23874c,!0x0)))&&_0xdea382['discard']());if(_0x1ae6f2['every'](_0x43b2c7=>_0x108f86['some'](_0x1c0c87=>_0x1c0c87['containsRange'](_0x43b2c7,!0x0)))){const _0x49416b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f4762,'accept');return this['forceDefaultExecution'](()=>_0x49416b(_0x15fee9,null,_0x3cc449)),null;}}else{const _0x1ebf39=_0xdea382['getFirstRange']();_0x1ae6f2['some'](_0x63b832=>_0x63b832['containsRange'](_0x1ebf39,!0x0))&&_0xdea382['discard']();if(_0x1ae6f2['every'](_0x12cf00=>_0x1ebf39['containsRange'](_0x12cf00,!0x0))){const _0x2d0198=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f4762,'accept');return this['forceDefaultExecution'](()=>_0x2d0198(_0x1ae6f2,null,_0x3cc449)),null;}}const _0x1c446e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f4762,'join');let _0x57c0e9=null;for(const _0x3bbf9a of this['getSuggestions']())if(_0x3bbf9a['author']['id']==_0x3a08bd['id']&&_0x3bbf9a['isInContent']&&'deletion'==_0x3bbf9a['type']&&_0x3bbf9a['subType']==_0x3f4762&&Qt(_0x3bbf9a,_0x3cc449)&&(_0x1c446e(_0x3bbf9a['getRanges'](),_0x1ae6f2)||_0x1c446e(_0x1ae6f2,_0x3bbf9a['getRanges']()))){if(_0x57c0e9){if(_0x3bbf9a['commentThread']&&_0x3bbf9a['commentThread']['length'])continue;for(const _0x3d2c54 of _0x3bbf9a['getRanges']())_0x57c0e9['isIntersectingWithRange'](_0x3d2c54)||_0x57c0e9['addRange'](_0x3d2c54);_0x3bbf9a['removeMarkers']();}else{_0x57c0e9=_0x3bbf9a;for(const _0x3a1465 of _0x1ae6f2)_0x3bbf9a['isIntersectingWithRange'](_0x3a1465)||_0x3bbf9a['addRange'](_0x3a1465);}}if(_0x57c0e9)return _0x57c0e9;_0x286dc0['clear']();for(const {suggestion:_0x138454,meta:_0x42afae}of this['_findSuggestions'](_0x1ae6f2,'deletion'))_0x42afae['isOwn']&&(this['_mergeNestedSuggestions']||!_0x42afae['containsRangeInObject']&&!_0x42afae['isInsideObject'])&&Qt(_0x138454,_0x3cc449)&&_0x286dc0['add'](_0x138454);for(const _0x11f936 of _0x286dc0){const _0x41ef51=_0x11f936['getRanges']();if(!_0x3cc449||!_0x3cc449['skipNestingCheck']){if(_0x1ae6f2['every'](_0x1c451c=>_0x41ef51['some'](_0x4b3302=>_0x4b3302['containsRange'](_0x1c451c,!0x0))))return _0x11f936;}(!_0x11f936['attributes']||!_0x11f936['attributes']['skipNestingCheck'])&&(_0x41ef51['every'](_0xa8a447=>_0x1ae6f2['some'](_0x3324c4=>_0x3324c4['containsRange'](_0xa8a447,!0x0)))&&_0x11f936['discard']());}const _0x23794a=_0x27c213(),_0x3bafe7=_0x3a08bd['id'],_0x3d2e14='deletion:'+_0x3f4762,_0x5b26d0=this['_setSuggestionData']({'id':_0x23794a,'type':_0x3d2e14,'createdAt':new Date(),'authorId':_0x3bafe7,'attributes':_0x3cc449});for(const _0x4410e4 of _0x1ae6f2)_0x4410e4['detach'](),_0x4410e4['isCollapsed']||'$graveyard'==_0x4410e4['root']['rootName']||this['_addSuggestionMarker'](_0x3d2e14,_0x23794a,_0x3bafe7,_0x4410e4,o['getMultiRangeId']());return _0x5b26d0;}['markAttributeChange'](_0x111bdb,_0x41bbe5,_0x18b1ae,_0x253d9c,_0x3e9481){if(_0x111bdb['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x372aaa=this['editor']['plugins']['get']('Users')['me']['id'],_0xe28356=Array['from'](this['_suggestions']['values']())['filter'](_0x2915ff=>'attribute'==_0x2915ff['type']&&_0x2915ff['data']['key']==_0x41bbe5&&_0x2915ff['isIntersectingWithRange'](_0x111bdb));if('default'===this['_trackFormatChanges']){const _0x595f8b=this['_findSuggestions'](_0x111bdb,'insertion')['filter'](({meta:_0x99e261})=>_0x99e261['isOwn']&&!_0x99e261['isInsideObject']&&!_0x99e261['isNextTo'])['map'](({suggestion:_0x39be54})=>_0x39be54);_0xe28356['unshift'](..._0x595f8b);}const _0x3f1c0c=new Map([[_0x111bdb,_0x18b1ae]]);for(const _0x236d7a of _0xe28356){const _0x4cbc69='attribute'==_0x236d7a['type']?_0x236d7a['data']['oldValue']:void 0x0,_0x3dca5d=_0x236d7a['getFirstRange'](),_0x3890f9=Array['from'](_0x3f1c0c['keys']())['find'](_0x31c5fd=>_0x31c5fd['isIntersecting'](_0x3dca5d));if(!_0x3890f9)continue;const _0x2423e1=_0x3890f9['getDifference'](_0x3dca5d);this['_isBlockAttribute'](_0x41bbe5)&&'insertion'==_0x236d7a['type']&&0x0!=_0x2423e1['length']||(_0x3f1c0c['delete'](_0x3890f9),_0x2423e1['forEach'](_0x2e9f44=>{_0x3f1c0c['set'](_0x2e9f44,_0x18b1ae);}),'insertion'!=_0x236d7a['type']&&_0x4cbc69!=_0x253d9c&&_0x3f1c0c['set'](_0x3890f9['getIntersection'](_0x3dca5d),_0x4cbc69));}const _0x531aff=[];for(const [_0x4f8821,_0x219957]of _0x3f1c0c){const _0x16fed9=_0x27c213(),_0x28cd38={'key':_0x41bbe5,'oldValue':_0x219957,'newValue':_0x253d9c};_0x41bbe5['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':_0x41bbe5});const _0x4677f9=('attribute:'+(_0x41bbe5+'|'+Jt({'newValue':_0x253d9c})))['substring'](0x0,0x3c),_0xbaabf5=this['_setSuggestionData']({'id':_0x16fed9,'type':_0x4677f9,'data':_0x28cd38,'createdAt':new Date(),'authorId':_0x372aaa,'attributes':_0x3e9481});_0x531aff['push'](_0xbaabf5),this['_addSuggestionMarker'](_0x4677f9,_0x16fed9,_0x372aaa,_0x4f8821);}return _0x531aff;}['enableDefaultAttributesIntegration'](_0x3130d9){this['enableCommand'](_0x3130d9,(_0x244c33,..._0x2a922a)=>{this['_recordAttributeChanges'](()=>{_0x244c33(..._0x2a922a);});});}['registerBlockAttribute'](_0x3c2800){this['_blockAttributeKeys']['add'](_0x3c2800);}['registerInlineAttribute'](_0x25c236){this['_inlineAttributeKeys']['add'](_0x25c236);}['_getAttributeKey'](_0x549f6b){return'attribute'==_0x549f6b['type']?_0x549f6b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x212a91,_0x46882d){const _0x23d6e4=_0x212a91['getFirstMarker']();this['_model']['change'](_0x29a016=>{_0x29a016['updateMarker'](_0x23d6e4,{'range':_0x46882d});});}['_addThreadToSuggestion'](_0x63cc3f){const _0x4f7a6f=_0x63cc3f['id'],_0x3fde25=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4f7a6f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3fde25,'threadId':_0x4f7a6f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3cd32e=this['_commentsRepository']['getCommentThread'](_0x4f7a6f);_0x3cd32e['unbind']('isRemovable'),_0x3cd32e['isRemovable']=!0x1,_0x63cc3f['commentThread']=_0x3cd32e;}['_checkSuggestionCorrectness'](_0x44f9b3,_0xbbc911,_0x4b3535,_0x4912a7){if(_0x44f9b3['type']!=_0xbbc911||_0x44f9b3['subType']!=_0x4b3535||_0x44f9b3['creator']['id']!=_0x4912a7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x229c91('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x30f87b,_0x4f29ea){const _0x5aba90=_0x30f87b['getFirstRange']();if(_0x4f29ea['isEqual'](_0x5aba90))_0x30f87b['removeMarkers']();else{if(_0x5aba90['containsRange'](_0x4f29ea)){const _0x2b53cf=this['_model']['createPositionAt'](_0x4f29ea['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x30f87b,this['_model']['createRange'](_0x5aba90['start'],_0x2b53cf));const _0x31b408=_0x27c213(),_0x4c5a2b=_0x30f87b['creator']['id'],_0x22dadc=_0x30f87b['type']+':'+_0x30f87b['subType'];this['_setSuggestionData']({'id':_0x31b408,'type':_0x22dadc,'createdAt':new Date(),'authorId':_0x4c5a2b,'data':_0x30f87b['data'],'attributes':_0x30f87b['attributes']});const _0x48f6a0=this['_model']['createPositionAt'](_0x4f29ea['end']['parent'],'after'),_0x116e70=this['_model']['createRange'](_0x48f6a0,_0x5aba90['end']);this['_addSuggestionMarker'](_0x22dadc,_0x31b408,_0x4c5a2b,_0x116e70);}else{if(_0x5aba90['containsPosition'](_0x4f29ea['start'])){const _0x3abcd3=this['_model']['createPositionAt'](_0x4f29ea['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x30f87b,this['_model']['createRange'](_0x5aba90['start'],_0x3abcd3));}else{const _0x9ea170=this['_model']['createPositionAt'](_0x4f29ea['end']['parent'],'after');this['_setSuggestionRange'](_0x30f87b,this['_model']['createRange'](_0x9ea170,_0x5aba90['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x59c9f5){for(const {suggestion:_0x52038b,meta:_0x375914}of this['_findSuggestions'](_0x59c9f5,'insertion')){if(!_0x375914['isOwn'])continue;const _0x51f73a=_0x52038b['getRanges']();for(const _0x4d1ad8 of _0x51f73a)if(!_0x59c9f5['getDifference'](_0x4d1ad8)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2bfaf9){const _0x443432=this['editor']['plugins']['get']('Users')['getUser'](_0x2bfaf9);if(!_0x443432)throw new _0x229c91('track-changes-user-not-found',this);return _0x443432;}['_getExternalAuthor'](_0x2f9579){const _0x160b5d=this['editor']['plugins']['get']('Users'),_0x5ebb99=_0x3be52a('external:'+_0x2f9579),_0x37354a=_0x160b5d['getUser'](_0x5ebb99);return _0x37354a||_0x160b5d['addUser']({'id':_0x5ebb99,'name':_0x2f9579});}['_createSuggestion'](_0x344249,_0x14ece1,_0x314311,_0x4dcd5a,_0x4b68a4){const _0x2b505d=this['_getAuthorFromId'](_0x4dcd5a),_0x36d53b=this['_suggestionFactory']['buildSuggestion'](_0x344249,_0x14ece1,_0x314311,_0x2b505d,_0x4b68a4,_0x3070f7=>{this['_updateSuggestionData'](_0x314311,{'attributes':_0x3070f7});const _0x507753=this['getSuggestion'](_0x314311);this['_joinWithAdjacentSuggestions'](new Set([_0x507753])),this['_refreshSuggestionsChain'](new Set([_0x507753]));});return this['listenTo'](_0x36d53b,'accept',()=>{this['_updateSuggestionData'](_0x314311,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x36d53b,'discard',()=>{this['_updateSuggestionData'](_0x314311,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x314311,_0x36d53b),this['_suggestionState']['set'](_0x36d53b,'notReady'),_0x36d53b;}['_splitMarkerName'](_0x1a6be0){const _0x1e0224=_0x1a6be0['split'](':');return{'group':_0x1e0224[0x0],'type':_0x1e0224[0x1],'subType':_0x1e0224['length']>=0x5?_0x1e0224[0x2]:null,'id':_0x1e0224['length']<0x5?_0x1e0224[0x2]:_0x1e0224[0x3],'authorId':_0x1e0224['length']<0x5?_0x1e0224[0x3]:_0x1e0224[0x4],'markerCount':0x6==_0x1e0224['length']?_0x1e0224[0x5]:null};}['_breakSuggestionMarker'](_0x457d27,_0x11cfbf,_0x53135e){const _0x1cc3a8=_0x457d27['getFirstRange'](),_0x75e63a=_0x1cc3a8['start'],_0x529e9b=_0x1cc3a8['end'];this['_setSuggestionRange'](_0x457d27,this['_model']['createRange'](_0x75e63a,_0x11cfbf));const _0x2dad9a=_0x27c213(),_0x4a1d23=_0x457d27['creator']['id'],_0x358c91=_0x457d27['type']+(_0x457d27['subType']?':'+_0x457d27['subType']:'');this['_setSuggestionData']({'id':_0x2dad9a,'type':_0x358c91,'createdAt':new Date(),'authorId':_0x4a1d23,'originalSuggestionId':_0x457d27['id'],'attributes':_0x457d27['attributes'],'data':_0x457d27['data']});const _0x2a252a=this['_getAttributeKey'](_0x457d27);('formatBlock'==_0x457d27['type']||_0x2a252a&&this['_isBlockAttribute'](_0x2a252a))&&(_0x53135e=this['_model']['createPositionBefore'](_0x53135e['parent'])),this['_addSuggestionMarker'](_0x358c91,_0x2dad9a,_0x4a1d23,this['_model']['createRange'](_0x53135e,_0x529e9b));}['_findSuggestions'](_0x1ad1ae,_0x2c2dab=null){const _0x506434=[],_0x4c82e1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1ad1ae)||(_0x1ad1ae=[_0x1ad1ae]);for(const _0x40d863 of this['getSuggestions']()){if(!_0x40d863['isInContent'])continue;if(_0x2c2dab&&_0x40d863['type']!=_0x2c2dab)continue;let _0x22ab9c=!0x1;for(const _0x5a505e of _0x40d863['getRanges']()){for(const _0x3fc760 of _0x1ad1ae){const _0x3032c7=_0x3fc760['start']['isEqual'](_0x5a505e['end'])||_0x3fc760['end']['isEqual'](_0x5a505e['start']);if(_0x3032c7||_0x3fc760['getIntersection'](_0x5a505e)){const _0x36aad4=_0x3fc760['containsRange'](_0x5a505e)&&Pt(this['_model']['schema'],_0x5a505e['start'],_0x3fc760),_0x1d9076=_0x5a505e['containsRange'](_0x3fc760)&&Pt(this['_model']['schema'],_0x3fc760['start'],_0x5a505e);_0x506434['push']({'suggestion':_0x40d863,'meta':{'isOwn':_0x4c82e1==_0x40d863['author'],'isNextTo':_0x3032c7,'isInsideObject':_0x36aad4,'containsRangeInObject':_0x1d9076}}),_0x22ab9c=!0x0;break;}}if(_0x22ab9c)break;}}return _0x506434;}['_addSuggestionMarker'](_0x13b858,_0x3489f0,_0x1acbc1,_0x477479,_0x5c9a68){this['_model']['change'](_0x5728bb=>{let _0x4d41e7='suggestion:'+_0x13b858+':'+_0x3489f0+':'+_0x1acbc1;_0x5c9a68&&(_0x4d41e7=_0x4d41e7+':'+_0x5c9a68),_0x5728bb['addMarker'](_0x4d41e7,{'range':_0x477479,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x220795){const _0x33d262=_0x220795['previous'],_0x58fc17=_0x220795['next'];_0x220795['previous']=null,_0x220795['next']=null,null!=_0x33d262&&_0x33d262['next']==_0x220795&&(_0x33d262['next']=_0x58fc17),null!=_0x58fc17&&_0x58fc17['previous']==_0x220795&&(_0x58fc17['previous']=_0x33d262),'ready'==this['_suggestionState']['get'](_0x220795)&&(this['_suggestionState']['set'](_0x220795,'removed'),this['fire']('suggestionUnloaded',_0x220795,_0x33d262,_0x58fc17));}['_setSuggestionData'](_0x345115){const _0x381e68=_0x345115['id'],_0x1f5021=this['addSuggestionData'](_0x345115);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3a2a4c=this['editor']['plugins']['get']('PendingActions'),_0x870b9b=_0x1f5021['hasComments'],_0x1fe1c5=_0x1f5021['subType']?_0x1f5021['type']+':'+_0x1f5021['subType']:_0x1f5021['type'],_0x951c81=this['editor']['locale'],_0x9dfcd2=_0x3a2a4c['add'](c(_0x951c81,'PENDING_ACTION_SUGGESTION')),_0x41f1a2={'id':_0x381e68,'type':_0x1fe1c5,'hasComments':_0x870b9b,'data':_0x345115['data']||null,'originalSuggestionId':_0x345115['originalSuggestionId']||null,'attributes':_0x1f5021['attributes']};this['_adapter']['addSuggestion'](_0x41f1a2)['then'](_0x3cdf04=>{_0x1f5021['_saved']=!0x0,_0x3a2a4c['remove'](_0x9dfcd2),_0x3cdf04&&_0x3cdf04['createdAt']&&(this['_suggestions']['get'](_0x381e68)['createdAt']=_0x3cdf04['createdAt']);})['catch'](_0x5bb9fb=>{throw _0x364c5a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1f5021['discard']();}),_0x1f5021['stopListening'](),this['_suggestions']['delete'](_0x1f5021['id']),this['_suggestionState']['delete'](_0x1f5021),_0x5bb9fb;});}return _0x1f5021;}['_isBlockAttribute'](_0x2b488c){return this['_blockAttributeKeys']['has'](_0x2b488c);}['_updateSuggestionData'](_0x117505,_0x4b24d9){const _0x4e7563=this['editor']['plugins']['get']('PendingActions'),_0x2563d9=this['getSuggestion'](_0x117505);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2563d9['_saved']){const _0x24baa9=_0x4e7563['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x117505,_0x4b24d9)['then'](()=>{_0x4e7563['remove'](_0x24baa9);});}else _0x2563d9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x117505,_0x4b24d9);});}}['_getSuggestionData'](_0x3b81c5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x229c91('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3b81c5);}['_handleNewSuggestionMarker'](_0x8a7a0d){const {id:_0xcf0c9f,type:_0x294c09,subType:_0x5850c9,authorId:_0x2b07bd}=this['_splitMarkerName'](_0x8a7a0d),_0x2192e2=this['_suggestions']['get'](_0xcf0c9f)||this['_createSuggestion'](_0x294c09,_0x5850c9,_0xcf0c9f,_0x2b07bd,{});switch(this['_checkSuggestionCorrectness'](_0x2192e2,_0x294c09,_0x5850c9,_0x2b07bd),this['_suggestionState']['get'](_0x2192e2)){case'notReady':this['_getSuggestionData'](_0xcf0c9f)['then'](_0x18dd2c=>{let _0x3d51ab=Promise['resolve']();_0x18dd2c['hasComments']&&(_0x3d51ab=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xcf0c9f})),_0x3d51ab['then'](()=>{this['addSuggestionData'](_0x18dd2c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2192e2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xcf0c9f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2192e2,'ready'),this['fire']('suggestionLoaded',_0x2192e2);break;case'ready':this['fire']('suggestionChanged',_0x2192e2);}return _0x2192e2['addMarkerName'](_0x8a7a0d),_0x2192e2;}['_refreshSuggestionsChain'](_0x4b4c3a){const _0x3d9eb3=Array['from'](_0x4b4c3a),_0x111519=_0x3d9eb3['filter'](_0x417373=>'attribute'==_0x417373['type']);this['_refreshAttributeSuggestionsChain'](_0x111519);const _0x161b5e=_0x3d9eb3['filter'](_0x18a7e6=>!_0x18a7e6['isMultiRange']&&'attribute'!=_0x18a7e6['type']),_0x80d772=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7c4f4e=>!_0x7c4f4e['isMultiRange']&&'attribute'!=_0x7c4f4e['type']),_0x4b53d9=_0x80d772['filter'](_0x22a8f6=>!_0x4b4c3a['has'](_0x22a8f6)),_0x28bbc1=new Map(_0x80d772['map'](_0x329cf8=>[_0x329cf8,this['_suggestionFactory']['getSuggestionCallback'](_0x329cf8['type'],_0x329cf8['subType'],'chain')])),_0x850474=new Map(_0x80d772['map'](_0x3a98d8=>[_0x3a98d8,_0x3a98d8['getFirstRange']()])),_0x41e2bb=new Set(),_0x43ebc1=new Set();for(let _0x81d2f5=0x0;_0x81d2f5<_0x161b5e['length'];_0x81d2f5++)_0x5ad14b(_0x161b5e[_0x81d2f5],_0x161b5e,_0x81d2f5+0x1);for(let _0x2fb276=0x0;_0x2fb276<_0x161b5e['length'];_0x2fb276++)_0x5ad14b(_0x161b5e[_0x2fb276],_0x4b53d9,0x0);const _0x58f779=new Set();for(let _0x14c225=0x0;_0x14c225<_0x161b5e['length'];_0x14c225++){const _0x2b8a9f=_0x161b5e[_0x14c225];!_0x43ebc1['has'](_0x2b8a9f)&&_0x2b8a9f['previous']&&(_0x58f779['add'](_0x2b8a9f['previous']),_0x2b8a9f['previous']['next']===_0x2b8a9f&&(_0x2b8a9f['previous']['next']=null),_0x2b8a9f['previous']=null),!_0x41e2bb['has'](_0x2b8a9f)&&_0x2b8a9f['next']&&(_0x58f779['add'](_0x2b8a9f['next']),_0x2b8a9f['next']['previous']===_0x2b8a9f&&(_0x2b8a9f['next']['previous']=null),_0x2b8a9f['next']=null);}function _0x5ad14b(_0x44215e,_0x1a122a,_0x17a4e2){for(let _0x4e809d=_0x17a4e2;_0x4e809d<_0x1a122a['length'];_0x4e809d++){const _0x349cff=_0x18721e(_0x44215e,_0x1a122a[_0x4e809d]);_0x349cff&&(_0x349cff[0x0]['next']=_0x349cff[0x1],_0x349cff[0x1]['previous']=_0x349cff[0x0],_0x41e2bb['add'](_0x349cff[0x0]),_0x43ebc1['add'](_0x349cff[0x1]));}}function _0x18721e(_0x110027,_0x3bb2e7){if(_0x110027['author']['id']!==_0x3bb2e7['author']['id'])return null;const _0x1572c4=_0x28bbc1['get'](_0x110027)(_0x110027,_0x3bb2e7,_0x850474['get'](_0x110027),_0x850474['get'](_0x3bb2e7));if(!_0x1572c4)return null;return _0x28bbc1['get'](_0x3bb2e7)(_0x110027,_0x3bb2e7,_0x850474['get'](_0x110027),_0x850474['get'](_0x3bb2e7))?_0x1572c4[0x1]['commentThread']&&_0x1572c4[0x1]['commentThread']['length']?null:_0x1572c4:null;}_0x58f779['size']&&this['_refreshSuggestionsChain'](_0x58f779);}['_refreshAttributeSuggestionsChain'](_0x256bda){if(0x0==_0x256bda['length'])return;const _0x34be4c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x80adb4=>'attribute'==_0x80adb4['type']&&_0x80adb4['_isDataLoaded']),_0x40f9bb=[],_0x22f4ce=new Map();for(const _0x33f917 of _0x34be4c){const _0x257902=_0x3be52a(_0x33f917['attributes']);_0x22f4ce['has'](_0x257902)||(_0x22f4ce['set'](_0x257902,_0x40f9bb['length']),_0x40f9bb['push']([]));const _0x51293e=_0x22f4ce['get'](_0x257902);_0x40f9bb[_0x51293e]['push'](_0x33f917);}!(function(){_0x40f9bb['sort']((_0x4afbea,_0x48869c)=>{const _0x1637b7=_0x4afbea[0x0]['createdAt'],_0x3f1d9c=_0x48869c[0x0]['createdAt'];return _0x1637b7==_0x3f1d9c?_0x4afbea[0x0]['attributes']['groupId']<_0x48869c[0x0]['attributes']['groupId']?-0x1:0x1:_0x1637b7<_0x3f1d9c?-0x1:0x1;});for(const _0x476435 of _0x40f9bb)_0x476435['sort']((_0x2358ea,_0x2329fc)=>_0x2358ea['id']<_0x2329fc['id']?-0x1:0x1);}());for(let _0x5c00e8=0x0;_0x5c00e8<_0x40f9bb['length'];_0x5c00e8++){if(0x0==_0x40f9bb[_0x5c00e8]['length'])continue;const _0x4f1caa=[];for(let _0x468621=_0x5c00e8+0x1;_0x468621<_0x40f9bb['length'];_0x468621++)0x0!=_0x40f9bb[_0x468621]['length']&&_0x1416c6(_0x40f9bb[_0x5c00e8],_0x40f9bb[_0x468621])&&_0x4f1caa['push'](_0x468621);for(const _0x57ac72 of _0x4f1caa)_0x40f9bb[_0x5c00e8]=_0x40f9bb[_0x5c00e8]['concat'](_0x40f9bb[_0x57ac72]),_0x40f9bb[_0x57ac72]=[];}for(const _0x526b42 of _0x40f9bb)for(let _0x350c06=0x0;_0x350c06<_0x526b42['length'];_0x350c06++){const _0x5da854=_0x526b42[_0x350c06+0x1]||null;_0x526b42[_0x350c06]['next']!==_0x5da854&&(_0x526b42[_0x350c06]['next']=_0x5da854);}for(const _0x26599c of _0x40f9bb)for(let _0x1cbabf=0x0;_0x1cbabf<_0x26599c['length'];_0x1cbabf++){const _0x18d986=_0x26599c[_0x1cbabf-0x1]||null;_0x26599c[_0x1cbabf]['previous']!==_0x18d986&&(_0x26599c[_0x1cbabf]['previous']=_0x18d986);}function _0x1416c6(_0x49b6b0,_0x4e082c){if(_0x49b6b0[0x0]['attributes']['groupId']!==_0x4e082c[0x0]['attributes']['groupId']&&_0x49b6b0[0x0]['author']!==_0x4e082c[0x0]['author'])return!0x1;if(!function(_0x2b047d,_0x4fbf2f){if(!_0x2b047d['hasComments']&&!_0x4fbf2f['hasComments'])return!0x0;if(_0x2b047d['hasComments']&&_0x4fbf2f['hasComments'])return!0x1;if(_0x2b047d['hasComments']&&_0x4fbf2f['createdAt']<_0x2b047d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4fbf2f['hasComments']&&_0x2b047d['createdAt']<_0x4fbf2f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x49b6b0[0x0],_0x4e082c[0x0]))return!0x1;const _0x2b8c09=Vt(_0x49b6b0[0x0]['attributes'],'groupId'),_0x185b6f=Vt(_0x4e082c[0x0]['attributes'],'groupId');if(!_0x1d8f67(_0x2b8c09,_0x185b6f))return!0x1;return!!_0x49b6b0['every'](_0x2a5b15=>_0x4e082c['some'](_0x436577=>_0x2a5b15['getFirstRange']()['isEqual'](_0x436577['getFirstRange']())))&&_0x4e082c['every'](_0x4c791c=>_0x49b6b0['some'](_0x27b79b=>_0x4c791c['getFirstRange']()['isEqual'](_0x27b79b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x233f17){const _0x2a3697=Array['from'](_0x233f17),_0x4ab66a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2e5ae7=_0x4ab66a['filter'](_0x5d1c48=>!_0x233f17['has'](_0x5d1c48)),_0x50c472=new Map(_0x2a3697['map'](_0x4d6e27=>[_0x4d6e27,this['_suggestionFactory']['getSuggestionCallback'](_0x4d6e27['type'],_0x4d6e27['subType'],'join')])),_0x1143ab=new Map(_0x4ab66a['map'](_0xb5bdf2=>[_0xb5bdf2,_0xb5bdf2['getRanges']()]));for(let _0x418d88=0x0;_0x418d88<_0x2a3697['length'];_0x418d88++){if(_0x24ab98(this,_0x2a3697[_0x418d88],_0x2a3697,_0x418d88+0x1))return!0x0;}for(let _0x490f4d=0x0;_0x490f4d<_0x2a3697['length'];_0x490f4d++){if(_0x24ab98(this,_0x2a3697[_0x490f4d],_0x2e5ae7,0x0))return!0x0;}return!0x1;function _0x24ab98(_0x2da8e3,_0x221975,_0x572458,_0x5736fc){for(let _0x254251=_0x5736fc;_0x254251<_0x572458['length'];_0x254251++){const _0x343721=_0x572458[_0x254251];if(_0x343721['type']!==_0x221975['type']||_0x343721['author']['id']!==_0x221975['author']['id']||_0x343721['subType']!==_0x221975['subType'])continue;if(!Wt(_0x221975,_0x343721))continue;if('attribute'==_0x221975['type']&&_0x221975['data']['oldValue']!=_0x343721['data']['oldValue'])continue;if('attribute'==_0x221975['type']&&_0x2da8e3['_isBlockAttribute'](_0x221975['data']['key']))continue;if('formatBlock'==_0x221975['type']){const _0x524ed4=_0x2da8e3['editor']['model'],_0x4000e7=_0x221975['getContainedElement']();if(_0x4000e7&&(_0x524ed4['schema']['isObject'](_0x4000e7)||_0x524ed4['schema']['isLimit'](_0x4000e7)))continue;}const _0x313b4d=_0x50c472['get'](_0x221975),_0x270e51=_0x1143ab['get'](_0x221975),_0x3459e0=_0x1143ab['get'](_0x343721),_0x2b956c=_0x221975['commentThread']&&_0x221975['commentThread']['length'],_0x1c74e5=_0x343721['commentThread']&&_0x343721['commentThread']['length'];if(!_0x2b956c&&_0x313b4d(_0x3459e0,_0x270e51))return _0x2da8e3['_joinSuggestions'](_0x343721,_0x221975),_0x1143ab['delete'](_0x221975),!0x0;if(!_0x1c74e5&&_0x313b4d(_0x270e51,_0x3459e0))return _0x2da8e3['_joinSuggestions'](_0x221975,_0x343721),_0x1143ab['delete'](_0x343721),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5a9ace,_0x59b155){if(_0x5a9ace['isMultiRange']){for(const _0xc1fa09 of _0x59b155['getRanges']())_0x5a9ace['addRange'](_0xc1fa09);}else{const _0x16beb9=_0x59b155['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5a9ace,this['_model']['createRange'](_0x5a9ace['getFirstRange']()['start'],_0x16beb9));}_0x59b155['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4de564,_0x141686,_0x15fc8b){const _0x44e10d=_0x4de564['startsWith']('format')||_0x4de564['startsWith']('attribute')?'FORMATTING':_0x4de564['toUpperCase']();return c(this['editor']['locale'],_0x141686+'_'+_0x44e10d+'_SUGGESTION_ANNOUNCEMENT',_0x15fc8b);}['_initAriaMarkerChangeAnnouncements'](){const _0x34b722=this['editor'];if(!_0x34b722['ui'])return;const {ariaLiveAnnouncer:_0xf6a932}=_0x34b722['ui'];_0x30ec90(this['_model'],({left:_0x1c164b,entered:_0x1cb2c5})=>{for(const _0x4fb49c of _0x1c164b){const {group:_0x6b5328,type:_0x58a551}=this['_splitMarkerName'](_0x4fb49c['name']);if('suggestion'===_0x6b5328){_0xf6a932['announce'](this['_getMarkerAnnouncementText'](_0x58a551,'LEAVE'));break;}}for(const _0x34c8e0 of _0x1cb2c5){const {group:_0x2d66e5,type:_0x6afedb}=this['_splitMarkerName'](_0x34c8e0['name']);if('suggestion'===_0x2d66e5){_0xf6a932['announce'](this['_getMarkerAnnouncementText'](_0x6afedb,'ENTER',_0x78bae4(_0xd67725)));break;}}});}['_processAttributeChanges'](_0x40f950){if(this['_recordAttributeSuggestions'])return!0x1;const _0x242519=this['editor'],_0x930181=_0x242519['model']['document']['differ']['getChanges']();if(0x0==_0x930181['length'])return!0x1;const _0x288010=[],_0x32b637=_0x930181['filter'](_0x91eb33=>'attribute'==_0x91eb33['type']),_0x5d1d6e=_0x930181['filter'](_0x5c7b41=>'insert'==_0x5c7b41['type']&&'$text'!=_0x5c7b41['name']),_0x12ad12=_0x930181['filter'](_0x5c1094=>'remove'==_0x5c1094['type']&&'$text'!=_0x5c1094['name']);for(const _0xabf411 of _0x32b637)_0x288010['push']({'key':_0xabf411['attributeKey'],'newValue':_0xabf411['attributeNewValue'],'oldValue':_0xabf411['attributeOldValue'],'range':Ht(_0xabf411['range'],_0x242519['model'])});for(const _0x3bde0e of _0x5d1d6e){const _0x14f0ed=_0x12ad12['find'](_0x214bf4=>_0x214bf4['position']['isEqual'](_0x3bde0e['position']));_0x14f0ed&&_0x288010['push']({'key':u,'newValue':_0x3bde0e['name'],'oldValue':_0x14f0ed['name'],'range':_0x242519['model']['createRangeOn'](_0x3bde0e['position']['nodeAfter'])});}return 0x0!=_0x288010['length']&&this['_reduceExistingSuggestions'](_0x40f950,_0x288010);}['_processAttributeSuggestions'](_0x386632){let _0x49363f=!0x1;const _0x82116f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xe6a789=>_0xe6a789['data']['newRange']&&_0xe6a789['name']['startsWith']('suggestion:attribute:'));for(const _0x4a7233 of _0x82116f){const {subType:_0x9d12a7,id:_0x31e5c9}=this['_splitMarkerName'](_0x4a7233['name']),_0x361919=_0x9d12a7['split']('|')[0x0];for(const _0x592d05 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x592d05['id']!=_0x31e5c9&&'attribute'==_0x592d05['type']&&_0x592d05['data']&&_0x592d05['data']['key']==_0x361919&&_0x592d05['getFirstRange']()['isIntersecting'](_0x4a7233['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x592d05,_0x4a7233['data']['newRange'],_0x386632),_0x49363f=!0x0);}return _0x49363f;}['_recordAttributeChanges'](_0x58093a){this['_recordAttributeSuggestions']=!0x0,_0x58093a();}['_isRegisteredAttribute'](_0x1ac7ec){const _0x206900=this['_isBlockAttribute'](_0x1ac7ec),_0x57c590=this['_inlineAttributeKeys']['has'](_0x1ac7ec);return _0x206900||_0x57c590;}['_reduceExistingSuggestions'](_0x255ca8,_0xdc0caa){if(0x0==_0xdc0caa['length'])return!0x1;let _0x870d52=!0x1;for(const _0x376b63 of _0xdc0caa){const _0x2dc57a=this['_findSuggestions'](_0x376b63['range'],'attribute')['filter'](_0x52bb80=>!_0x52bb80['meta']['isNextTo'])['map'](_0x2e6657=>_0x2e6657['suggestion']),_0x2282fc=_0x3be52a({'newValue':_0x376b63['newValue']});_0x2dc57a['filter'](_0x39ee0f=>{const [_0x3980ce,_0x59523b]=_0x39ee0f['subType']['split']('|');return _0x3980ce==_0x376b63['key']&&_0x59523b!=_0x2282fc;})['forEach'](_0x19e551=>{this['_reduceSuggestionAttributeRange'](_0x19e551,_0x376b63['range'],_0x255ca8),_0x870d52=!0x0;});}return _0x870d52;}['_reduceSuggestionAttributeRange'](_0x400644,_0x4f42ee,_0x46c083){const _0x35ff8b=_0x400644['getFirstRange']()['getDifference'](_0x4f42ee);0x0!==_0x35ff8b['length']?0x1!==_0x35ff8b['length']?this['_breakSuggestionMarker'](_0x400644,_0x4f42ee['start'],_0x4f42ee['end']):this['_setSuggestionRange'](_0x400644,_0x35ff8b[0x0]):_0x46c083['removeMarker'](_0x400644['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x7d95db){this['_editor']=_0x7d95db,this['_model']=_0x7d95db['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2ad2df,_0x40fbcb,_0x4b7b53,_0x21d6ce,_0x56e502,_0x467626){return new o(this['_model'],{'type':_0x2ad2df,'subType':_0x40fbcb,'id':_0x4b7b53,'author':_0x21d6ce,'creator':_0x21d6ce,'attributes':_0x56e502,'onAttributesChange':_0x467626,'onAccept':(..._0x1d2c6b)=>this['getSuggestionCallback'](_0x2ad2df,_0x40fbcb,'accept')(..._0x1d2c6b),'onDiscard':(..._0x40a6a0)=>this['getSuggestionCallback'](_0x2ad2df,_0x40fbcb,'discard')(..._0x40a6a0)});}['registerCustomCallback'](_0x1e011c,_0x54801f,_0x396d81,_0x6d1a56){const _0x22dd0e=_0x1e011c+':'+_0x54801f+':'+_0x396d81;this['_customCallbacks']['set'](_0x22dd0e,_0x6d1a56);}['getSuggestionCallback'](_0xec737,_0x2263a9,_0x115974){const _0xc927ed=_0xec737+':'+_0x2263a9+':'+_0x115974;return this['_customCallbacks']['get'](_0xc927ed)||this['_defaultCallbacks']['get'](_0xec737+':'+_0x115974);}['_registerDefaultCallbacks'](){const _0x221ca0=()=>!0x1,_0x275248=_0x21f302=>{_0x21f302['sort']((_0x19404f,_0x2b474f)=>_0x19404f['start']['isBefore'](_0x2b474f['start'])?0x1:-0x1),this['_model']['change'](_0x4ee131=>{for(const _0x2910be of _0x21f302){let _0x46c217;_0x46c217=_0x2910be['end']['isAtEnd']&&_0x2910be['end']['parent']==_0x2910be['start']['nodeAfter']?_0x4ee131['createSelection'](_0x2910be['start']['nodeAfter'],'on'):_0x4ee131['createSelection'](_0x2910be),this['_model']['deleteContent'](_0x46c217,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1d4e40=(_0x49178a,_0x308eac)=>{_0x308eac&&this['_model']['change'](_0x3d0e16=>{const {commandName:_0x5ed144,commandParams:_0x288a22=[]}=_0x308eac,_0x48356=_0x49178a['map'](_0x27010d=>(Gt(_0x27010d)&&(_0x27010d=this['_model']['createRange'](_0x27010d['end'])),_0x27010d))['filter'](_0x5b4fa9=>'$graveyard'!==_0x5b4fa9['root']['rootName']);if(_0x48356['length']<0x1)return;const _0x489928=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2b808d=>_0x159dcb['fromRange'](_0x2b808d));_0x3d0e16['setSelection'](_0x48356);for(const _0x5c5c11 of this['_editor']['commands']['commands']())_0x5c5c11['refresh']();_0x288a22['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5ed144,..._0x288a22);const _0x1d0cd1=_0x489928['filter'](_0x12486d=>'$graveyard'!=_0x12486d['root']['rootName']);_0x1d0cd1['length']>0x0&&_0x3d0e16['setSelection'](_0x1d0cd1);for(const _0x5ddd84 of _0x489928)_0x5ddd84['detach']();});},_0x41dda7=(_0xe596f6,_0x50b9e1)=>0x1==_0xe596f6['length']&&0x1==_0x50b9e1['length']&&_0xe596f6[0x0]['end']['isEqual'](_0x50b9e1[0x0]['start']),_0x53c638=(_0x5b6193,_0x22c064,_0x3f253d,_0x4fa0ab)=>zt(_0x5b6193,_0x22c064,_0x3f253d,_0x4fa0ab)?[_0x5b6193,_0x22c064]:zt(_0x22c064,_0x5b6193,_0x4fa0ab,_0x3f253d)?[_0x22c064,_0x5b6193]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x221ca0),this['_defaultCallbacks']['set']('insertion:discard',_0x275248),this['_defaultCallbacks']['set']('insertion:join',_0x41dda7),this['_defaultCallbacks']['set']('insertion:chain',_0x53c638),this['_defaultCallbacks']['set']('deletion:accept',_0x275248),this['_defaultCallbacks']['set']('deletion:discard',_0x221ca0),this['_defaultCallbacks']['set']('deletion:join',_0x41dda7),this['_defaultCallbacks']['set']('deletion:chain',_0x53c638),this['_defaultCallbacks']['set']('formatInline:accept',_0x1d4e40),this['_defaultCallbacks']['set']('formatInline:discard',_0x221ca0),this['_defaultCallbacks']['set']('formatInline:join',_0x41dda7),this['_defaultCallbacks']['set']('formatInline:chain',_0x221ca0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1d4e40),this['_defaultCallbacks']['set']('formatBlock:discard',_0x221ca0),this['_defaultCallbacks']['set']('formatBlock:join',_0x41dda7),this['_defaultCallbacks']['set']('formatBlock:chain',_0x221ca0),this['_defaultCallbacks']['set']('attribute:accept',_0x221ca0),this['_defaultCallbacks']['set']('attribute:discard',(_0x4dae9d,_0x365b82)=>{if(!_0x365b82)return;const _0x44d735=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x36644e=>{if(_0x365b82['key']==u)for(const _0xdd4538 of _0x4dae9d){const _0x42f4af=_0xdd4538['start']['nodeAfter'],_0x6946eb=_0x365b82['oldValue'];_0x36644e['rename'](_0x42f4af,_0x6946eb);}else{if(_0x44d735['_isBlockAttribute'](_0x365b82['key'])){for(const _0x1ab089 of _0x4dae9d)void 0x0!==_0x365b82['oldValue']?_0x36644e['setAttribute'](_0x365b82['key'],_0x365b82['oldValue'],_0x1ab089['start']['nodeAfter']):_0x36644e['removeAttribute'](_0x365b82['key'],_0x1ab089['start']['nodeAfter']);}else{for(const _0x208ff2 of _0x4dae9d)_0x365b82['oldValue']?_0x36644e['setAttribute'](_0x365b82['key'],_0x365b82['oldValue'],_0x208ff2):_0x36644e['removeAttribute'](_0x365b82['key'],_0x208ff2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x41dda7);}}function Pt(_0x11b110,_0x211abb,_0xe282b4){for(const _0x4c9745 of _0x211abb['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4c9745['root']==_0x4c9745)return!0x1;if(!_0xe282b4['containsItem'](_0x4c9745))return!0x1;if(_0x11b110['isObject'](_0x4c9745)||_0x11b110['isLimit'](_0x4c9745))return!0x0;}return!0x1;}function Gt(_0x5cdbcc){return _0x5cdbcc['end']['parent']==_0x5cdbcc['start']['nodeAfter']&&_0x5cdbcc['end']['isAtStart'];}function Lt(_0x171991,_0xf0d762,_0x13faf3,_0xfef654){const _0x1ad6c7=_0x4ecf38=>!_0x4ecf38['item']['is']('$textProxy')&&!_0xfef654['isObject'](_0x4ecf38['item']),_0x5fdf78=_0x171991['start']['getLastMatchingPosition'](_0x1ad6c7),_0x28b07a=_0x171991['end']['getLastMatchingPosition'](_0x1ad6c7,{'direction':'backward'});return(!_0x171991['start']['isEqual'](_0x5fdf78)||!_0x171991['end']['isEqual'](_0x28b07a))&&(_0x5fdf78['isBefore'](_0x28b07a)?_0x13faf3['updateMarker'](_0xf0d762,{'range':_0x13faf3['createRange'](_0x5fdf78,_0x28b07a)}):_0x13faf3['removeMarker'](_0xf0d762),!0x0);}function Jt(_0x5d3ef6){return _0x3be52a(_0x5d3ef6);}function Kt(_0x49f70d){const _0x4fa731=_0x49f70d['start']['nodeAfter'];return _0x4fa731&&_0x4fa731['is']('element');}function Ht(_0x1b6e41,_0x40cdce){return null==_0x1b6e41['end']['nodeBefore']&&_0x1b6e41['end']['parent']==_0x1b6e41['start']['nodeAfter']?qt(_0x1b6e41['start']['nodeAfter'],_0x40cdce):_0x1b6e41;}function qt(_0x47bf38,_0x4c1f8d){const _0x1b1012=_0x4c1f8d['schema']['isObject'](_0x47bf38)||_0x4c1f8d['schema']['isSelectable'](_0x47bf38);return _0x4c1f8d['createRange'](_0x4c1f8d['createPositionAt'](_0x47bf38,'before'),_0x1b1012?_0x4c1f8d['createPositionAfter'](_0x47bf38):_0x4c1f8d['createPositionAt'](_0x47bf38,'end'));}function zt(_0x2fe9f9,_0x120eab,_0x3a9c90,_0x5ba83e){return!!Wt(_0x2fe9f9,_0x120eab)&&_0x3a9c90['end']['isEqual'](_0x5ba83e['start']);}function Wt(_0x4939e2,_0x591fd8){if(!_0x4939e2['_isDataLoaded']||!_0x591fd8['_isDataLoaded'])return!0x1;const _0xb849f6=new Set(Object['keys'](_0x4939e2['attributes'])),_0x4c4064=new Set(Object['keys'](_0x591fd8['attributes']));if(_0xb849f6['delete']('groupId'),_0x4c4064['delete']('groupId'),0x0==_0xb849f6['size']&&0x0==_0x4c4064['size'])return!0x0;if(_0xb849f6['size']!=_0x4c4064['size'])return!0x1;const _0x422fc8={..._0x4939e2['attributes']},_0x47118b={..._0x591fd8['attributes']};return delete _0x422fc8['groupId'],delete _0x47118b['groupId'],JSON['stringify'](_0x422fc8)==JSON['stringify'](_0x47118b);}function Qt(_0x264b9d,_0x2dcea2){const _0x4b607b=Xt(_0x264b9d['attributes']),_0x483983=Xt(_0x2dcea2);if(!_0x264b9d['_isDataLoaded'])return!0x1;for(const _0x3da5fd of Object['keys'](_0x483983))if(!_0x1d8f67(_0x4b607b[_0x3da5fd],_0x483983[_0x3da5fd]))return!0x1;return!0x0;}function Xt(_0x559e54){const _0x283ab7=Object['assign']({},_0x559e54);return delete _0x283ab7['skipNestingCheck'],delete _0x283ab7['tablePasteChainId'],_0x283ab7;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x206eb2(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x92f431,_0xd0b00c,_0x5770db,_0x42d670){super(),this['model']=_0xd0b00c,this['view']=_0x5770db,this['commentThreadController']=_0x42d670,this['_editor']=_0x92f431,this['_acceptCommand']=_0x92f431['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x92f431['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4a36cd,_0x145991)=>_0x4a36cd||_0x145991),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3f571c=>_0x3f571c&&this['_editor']['model']['canEditAt'](_0xd0b00c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5c7c3f=>_0x5c7c3f&&this['_editor']['model']['canEditAt'](_0xd0b00c['getRanges']())),this['_pendingAction']=null,_0x5770db['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5770db,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5770db,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5770db,'change:isDirty',()=>{_0x5770db['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 _0xac07f4=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xac07f4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x38fe6e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5f2202,_0x3529f1,_0x22a2e3,_0x3827e8){super(_0x5f2202),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x10d50b(_0x5f2202,c(_0x5f2202,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3529f1['authoredAt']),this['bind']('authoredAt')['to'](_0x3529f1),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',_0x3529f1,'authoredAt',this,'descriptionParts',(_0x5b0299,_0x62217c,_0x378019)=>{const _0x413221=_0x378019['map'](_0x12ddb6=>ls(_0x12ddb6['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5b0299-0x1,_0x3529f1['author']['name'],_0x62217c?_0x3827e8['formatDateTime'](_0x62217c):'',new DOMParser()['parseFromString'](_0x413221,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2ca1c4(),this['focusTracker']=new _0x5b8e52(),this['keystrokes']=new _0x528558(),this['focusCycler']=new _0x43f9ca({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1c0e27=>_0x1c0e27['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3529f1,this['_localUser']=_0x22a2e3,this['_config']=_0x3827e8,_0x3827e8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xb3198a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4ce539}=this['_config'];this['commentsListView']=new _0x4ce539(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',_0x5bd25a=>_0x5bd25a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x250d12,_0x5a0a53)=>_0x250d12||!!_0x5a0a53);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xc38173}=this['_config'],_0xd9ad80=new _0xc38173(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4bbb9f=_0xd9ad80['commentInputView'];return _0xd9ad80['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4bbb9f,'value',(_0x1cb9d2,_0x11c1ea,_0x2b63c4)=>!!_0x2b63c4||_0x1cb9d2&&!_0x11c1ea),_0x4bbb9f['on']('submit',(_0x45a65d,_0x4c28ba)=>{this['fire']('addComment',_0x4c28ba),_0x4bbb9f['editor']['setData']('');}),_0x4bbb9f['on']('cancel',()=>this['focus']()),_0x4bbb9f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xd9ad80;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x49de7c,_0x30435c,_0x50578f,_0x28363f){super(_0x49de7c,_0x30435c,_0x50578f,_0x28363f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x941e5a=>_0x941e5a&&_0x941e5a[0x0]?_0x941e5a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xc82674,_0x1b7aa0)=>{let _0x3c3b59='';for(const _0x520bb7 of _0xc82674)_0x3c3b59+='<p>'+ls(_0x520bb7['content'],_0x520bb7['color'])+'</p>';return _0x1b7aa0?_0x3c3b59:ti(_0x3c3b59,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x28363f['SuggestionView'](_0x49de7c,_0x30435c,{'formatDateTime':_0x28363f['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 _0x8c9dea=this['bindTemplate'],_0x165d32=[this['suggestionView']];return this['commentsListView']&&_0x165d32['push'](this['commentsListView']),this['commentThreadInputView']&&_0x165d32['push'](this['commentThreadInputView']),_0x165d32['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x8c9dea['if']('isActive','ck-suggestion-wrapper--active'),_0x8c9dea['to']('type',_0x92cb6c=>'ck-suggestion-'+_0x92cb6c),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':_0x8c9dea['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x165d32};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x38fe6e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x7103f2,_0x1d892e,_0x26a456){super(_0x7103f2),this['_model']=_0x1d892e,this['_config']=_0x26a456,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1d892e),this['acceptButton']=this['_createButton'](c(_0x7103f2,'Accept\x20suggestion'),_0x5a3bd2,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x7103f2,'Discard\x20suggestion'),_0x1a4713,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3e2e68(_0x7103f2,_0x1d892e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2ca1c4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5b8e52(),this['keystrokes']=new _0x528558(),this['focusCycler']=new _0x43f9ca({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5323fc=>_0x5323fc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3c6565=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3c6565['innerHTML']=this['description'],this['on']('change:description',(_0x49424f,_0x11d02f,_0x1c3adf)=>{_0x3c6565['innerHTML']=_0x1c3adf;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1265f1=this['bindTemplate'],_0x104609=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x1265f1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1265f1['to']('authoredAt',_0x53ea7f=>this['_config']['formatDateTime'](_0x53ea7f))}]}]},{'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']&&_0x104609['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':_0x104609}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5be6de,_0x3a24ec,_0x4ba245,_0x4afbdb,_0xc7d91a){const _0x249d87=new _0x3950c3(this['locale']);return _0x249d87['set']({'label':_0x5be6de,'icon':_0x3a24ec,'tooltip':!0x0,'tooltipPosition':_0xc7d91a}),_0x249d87['extendTemplate']({'attributes':{'class':_0x4ba245}}),_0x249d87['on']('execute',()=>{this['fire'](_0x4afbdb,this['_model']['id']);}),_0x249d87;}['_setupKeyboardNavigation'](){const _0x4470f4=this['element'];this['keystrokes']['listenTo'](_0x4470f4);for(const _0x1052ba of this['focusables'])this['focusTracker']['add'](_0x1052ba['element']),this['keystrokes']['listenTo'](_0x1052ba['element']);this['keystrokes']['set']('enter',(_0x47a0b8,_0x288e9c)=>{_0x4470f4===_0x47a0b8['target']&&(this['focusCycler']['focusFirst'](),_0x288e9c());}),this['keystrokes']['set']('esc',(_0x3e8bef,_0x2873f6)=>{_0x4470f4!==_0x3e8bef['target']&&(this['focus'](),_0x2873f6());});}}class d extends _0x17923f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1cb8da,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c4ac9){super(_0x5c4ac9),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x8d61af=this['editor']['config'];_0x8d61af['define']('trackChanges.SuggestionThreadView',fe),_0x8d61af['define']('trackChanges.SuggestionView',we),_0x8d61af['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x8d61af['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5c6593,_0x424502){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1a6baa,_0x8e7920]of this['_handleControllerBuffer']){const _0x464a4a=this['_suggestionToController']['has'](_0x1a6baa);_0x464a4a||_0x8e7920?_0x464a4a&&_0x8e7920&&this['_destroyController'](_0x1a6baa):this['_initializeController'](_0x1a6baa);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5c6593,_0x424502);}['init'](){const _0x395f41=this['editor'],_0x186f29=_0x395f41['plugins']['get']('TrackChangesEditing'),_0x271b06=_0x395f41['plugins']['get']('Annotations'),_0x411a48=_0x395f41['plugins']['get']('EditorAnnotations'),_0x3c2939=_0x395f41['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x411a48['addSourceCollector'](()=>{const _0xf51607=[];for(const [_0x37321a,_0x865174]of Array['from'](this['_suggestionToController'])){const _0x162411=_0x37321a['getAllAdjacentSuggestions'](),_0x400323=[];for(const _0x4a4970 of _0x162411){if(!_0x4a4970['isInContent'])continue;if(_0x4a4970['isMultiRange']){_0x400323['push'](..._0x4a4970['getRanges']());continue;}const _0x3e565d=_0x4a4970['getFirstRange']();if(_0x400323['length']>0x0){const _0x31743e=_0x400323[0x0]['getJoined'](_0x3e565d);if(_0x31743e){_0x400323[0x0]=_0x31743e;continue;}}_0x400323['push'](_0x3e565d);}_0xf51607['push']([_0x865174['view'],_0x400323]);}return _0xf51607;}),this['listenTo'](_0x186f29,'suggestionLoaded',(_0xaf8014,_0x314f85)=>{this['listenTo'](_0x314f85,'change:previous',(_0x1a8e97,_0x6c96b4,_0x2ee8c8,_0x59410a)=>{_0x314f85['isInContent']&&(null==_0x2ee8c8?(this['_updateController'](_0x59410a['head']),this['_handleSuggestionControllerDelayed'](_0x314f85,!0x1)):(this['_updateController'](_0x2ee8c8['head']),null==_0x59410a&&this['_handleSuggestionControllerDelayed'](_0x314f85,!0x0)));}),null!==_0x314f85['previous']?this['_updateController'](_0x314f85['head']):this['_handleSuggestionControllerDelayed'](_0x314f85,!0x1);}),this['listenTo'](_0x186f29,'suggestionUnloaded',(_0x49a582,_0xee4a6b,_0xb8646c)=>{this['stopListening'](_0xee4a6b,'change:previous'),this['_handleControllerBuffer']['delete'](_0xee4a6b),this['_suggestionToController']['has'](_0xee4a6b)&&this['_destroyController'](_0xee4a6b),_0xb8646c&&this['_updateController'](_0xb8646c['head']);}),this['listenTo'](_0x186f29,'suggestionChanged',(_0x4afa3e,_0xbdc8af)=>{this['_updateController'](_0xbdc8af);}),this['listenTo'](_0x271b06,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3c2939,'addComment',(_0x19fcd6,{threadId:_0x5aefcf,isFromAdapter:_0x35baa8})=>{if(_0x35baa8||!_0x186f29['hasSuggestion'](_0x5aefcf))return;const _0x47cfdc=_0x186f29['getSuggestion'](_0x5aefcf);this['_suggestionToController']['get'](_0x47cfdc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x34e25a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3a7908;for(const _0x105643 in _0x34e25a){const _0x3d2112=_0x105643,_0x1e82ec=_0x34e25a[_0x3d2112];if('trackChangesLicenseKeyValid'==_0x1e82ec||'trackChangesLicenseKeyInvalid'==_0x1e82ec||'trackChangesLicenseKeyExpired'==_0x1e82ec||'trackChangesLicenseKeyDomainLimit'==_0x1e82ec||'trackChangesLicenseKeyNotAllowed'==_0x1e82ec||'trackChangesLicenseKeyEvaluationLimit'==_0x1e82ec||'trackChangesLicenseKeyTrialLimit'==_0x1e82ec||'trackChangesLicenseKeyUsageLimit'==_0x1e82ec){delete _0x34e25a[_0x3d2112],_0x3a7908=_0x1e82ec,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3a7908&&_0x34e25a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3a7908&&_0x34e25a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3a7908&&_0x34e25a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3a7908&&_0x34e25a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3a7908&&_0x34e25a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3a7908&&_0x34e25a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3a7908&&_0x34e25a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5adc12=this['editor']['plugins']['get']('Annotations'),_0x57cec4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x385886=Array['from'](_0x5adc12['activeAnnotations'],_0x174b40=>_0x174b40['innerView'])['filter'](_0x1005f3=>this['_viewToController']['has'](_0x1005f3)),_0x41b1b4=[];for(const _0x455778 of _0x385886){const _0x2988ea=this['_viewToController']['get'](_0x455778)['model']['getAllAdjacentSuggestions']();_0x41b1b4['push'](..._0x2988ea['reduce']((_0xc6d10c,_0x118730)=>[..._0xc6d10c,..._0x118730['getMarkerNames']()],[]));}_0x57cec4['activeMarkers']=_0x41b1b4;}['_addUIComponentsToFactory'](){const _0x4a0b31=this['editor'],_0x1d7e75=_0x4a0b31['locale'],_0x255416=c(_0x1d7e75,'Track\x20changes'),_0x4d884c=new _0x140aba([{'type':'switchbutton','model':new _0xc028d4({'withText':!0x0,'isToggleable':!0x0,'label':_0x255416,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xc028d4({'withText':!0x0,'label':c(_0x1d7e75,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc028d4({'withText':!0x0,'label':c(_0x1d7e75,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc028d4({'withText':!0x0,'label':c(_0x1d7e75,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc028d4({'withText':!0x0,'label':c(_0x1d7e75,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4a0b31['plugins']['has']('TrackChangesPreview')&&_0x4d884c['addMany']([{'type':'separator'},{'type':'button','model':new _0xc028d4({'withText':!0x0,'label':c(_0x1d7e75,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x427f50 of _0x4d884c)if(ke(_0x427f50)){const _0x50ff86=_0x4a0b31['commands']['get'](_0x427f50['model']['commandName']);_0x427f50['model']['bind']('isOn','isEnabled')['to'](_0x50ff86,'value','isEnabled');}_0x4a0b31['ui']['componentFactory']['add']('trackChanges',_0x41faf6=>this['_createToolbarButton'](_0x41faf6,_0x4d884c,_0x255416)),_0x4a0b31['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4ea954=>this['_createMenuBarMenu'](_0x4ea954,_0x4d884c,_0x255416));}['_createToolbarButton'](_0x3e553f,_0x46c1c8,_0x374d52){const _0x15b0de=_0x429f42(_0x3e553f,_0x58dc25),_0x2d3248=this['editor']['commands']['get']('trackChanges');_0x15b0de['buttonView']['set']({'tooltip':_0x374d52,'label':_0x374d52,'icon':_0x26b680}),_0x15b0de['buttonView']['bind']('isOn')['to'](_0x2d3248,'value'),_0x15b0de['buttonView']['on']('execute',()=>{_0x2d3248['execute'](),this['editor']['editing']['view']['focus']();}),_0x281755(_0x15b0de,_0x46c1c8,{'role':'menu'});const _0x1f6464=[];for(const _0x4df0fe of _0x46c1c8)ke(_0x4df0fe)&&_0x1f6464['push'](this['editor']['commands']['get'](_0x4df0fe['model']['commandName']));const _0x5b91e8=_0x15b0de['buttonView'];return _0x5b91e8['actionView']['unbind']('isEnabled'),_0x5b91e8['arrowView']['unbind']('isEnabled'),_0x5b91e8['actionView']['bind']('isEnabled')['to'](_0x2d3248,'isEnabled'),_0x5b91e8['arrowView']['bind']('isEnabled')['toMany'](_0x1f6464,'isEnabled',(..._0x3f2c8b)=>_0x3f2c8b['some'](_0x59899c=>_0x59899c)),_0x15b0de['on']('execute',_0x38478a=>{this['editor']['execute'](_0x38478a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x15b0de;}['_createMenuBarMenu'](_0x4e7b67,_0x1b8c56,_0x16dec4){const _0x233b9d=new _0x557ccb(_0x4e7b67),_0x45e097=this['editor']['commands']['get']('trackChanges');_0x233b9d['buttonView']['set']({'label':_0x16dec4,'icon':_0x26b680});const _0x172dda=new _0x222343(_0x4e7b67);for(const _0xfda65f of _0x1b8c56){if('separator'==_0xfda65f['type']){_0x172dda['items']['add'](new _0x4b09d7(_0x4e7b67));continue;}const _0x5e93e4=new _0x250cec(_0x4e7b67,_0x233b9d),_0x3fafa8=new _0x41896c(_0x4e7b67),_0x957849=_0xfda65f['model'];_0x3fafa8['bind'](...Object['keys'](_0x957849))['to'](_0x957849),_0x3fafa8['delegate']('execute')['to'](_0x233b9d),_0x3fafa8['on']('execute',()=>{this['editor']['execute'](_0x957849['commandName']),this['editor']['editing']['view']['focus']();}),_0x5e93e4['children']['add'](_0x3fafa8),_0x172dda['items']['add'](_0x5e93e4);}return _0x233b9d['bind']('isEnabled')['to'](_0x45e097,'isEnabled'),_0x233b9d['panelView']['children']['add'](_0x172dda),_0x233b9d;}['_initializeController'](_0x5b7c33){const _0x3419a6=this['editor'],_0x59d2bb=_0x3419a6['config'],_0x4e66af=_0x3419a6['plugins']['get']('Annotations'),_0x3dc4e4=_0x3419a6['plugins']['get']('CommentsRepository'),_0x28970f=_0x3419a6['plugins']['get']('EditorAnnotations'),_0xc307c5=_0x3419a6['plugins']['get'](_0x1cb8da)['me'],_0x3511c5=_0x59d2bb['get']('trackChanges')['SuggestionThreadView'],_0x236805=_0x59d2bb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4e5211,CommentThreadInputView:_0xac8580}=_0x3419a6['plugins']['get']('CommentsUI');let _0x1f9f32,_0x49faaf,_0x1dfbea;this['_annotationViews']['has'](_0x5b7c33['id'])?(_0x49faaf=this['_annotationViews']['get'](_0x5b7c33['id']),_0x1f9f32=_0x49faaf['mainView']):(_0x1f9f32=new _0x3511c5(_0x3419a6['locale'],_0x5b7c33,_0xc307c5,{'disableComments':this['_disableComments'],'editorConfig':{..._0x59d2bb['get']('comments.editorConfig'),'licenseKey':_0x59d2bb['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x59d2bb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x59d2bb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x59d2bb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xb46e2b(_0x59d2bb['get']('locale')),'CommentView':_0x59d2bb['get']('comments')['CommentView'],'CommentsListView':_0x4e5211,'CommentThreadInputView':_0xac8580,'SuggestionView':_0x236805}),_0x1f9f32['suggestionView']['acceptButton']['on']('execute',()=>{_0x3419a6['editing']['view']['focus']();}),_0x1f9f32['suggestionView']['discardButton']['on']('execute',()=>{_0x3419a6['editing']['view']['focus']();}),_0x49faaf=_0x4e66af['createAnnotationView'](this['editor']['locale'],_0x1f9f32),_0x49faaf['bind']('isDirty')['to'](_0x1f9f32,'isDirty'),_0x49faaf['bind']('length')['to'](_0x1f9f32),_0x49faaf['bind']('type')['to'](_0x1f9f32,'type',_0x4dfee3=>'suggestion-'+_0x4dfee3),_0x1f9f32['on']('escape',()=>{_0x1dfbea['fire']('escape');}),this['_annotationViews']['set'](_0x5b7c33['id'],_0x49faaf));const _0x413ae9=_0x3dc4e4['createCommentThreadController'](_0x5b7c33['commentThread'],_0x1f9f32),_0x302c52=new pe(_0x3419a6,_0x5b7c33,_0x1f9f32,_0x413ae9),_0x5373fe=_0x5b7c33['getAllAdjacentSuggestions']()['filter'](_0x2841a9=>_0x2841a9['isInContent']);_0x1f9f32['descriptionParts']=_0x3419a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5373fe),this['_suggestionToController']['set'](_0x5b7c33,_0x302c52),this['_viewToController']['set'](_0x1f9f32,_0x302c52),_0x1dfbea=_0x4e66af['createAnnotation']({'view':_0x49faaf,'target':()=>{const _0x3aa0fa=[],_0x23253c=_0x5b7c33['getAllAdjacentSuggestions']()['filter'](_0x1ec04a=>_0x1ec04a['isInContent']);for(const _0x5af644 of _0x23253c)_0x3aa0fa['push'](..._0x5af644['getMarkers']());return _0x3806c9(_0x3419a6['editing'],_0x3aa0fa);},'type':()=>'suggestion-'+_0x302c52['view']['type']}),_0x3dc4e4['_bindAnnotationToEditors'](_0x1f9f32,_0x1dfbea),_0x4e66af['add'](_0x1dfbea),_0x28970f['registerAnnotation'](_0x1dfbea);}['_destroyController'](_0x1d9074){const _0x33a230=this['editor']['plugins']['get']('CommentsRepository'),_0x3d9064=this['editor']['plugins']['get']('Annotations'),_0x793f6d=this['_suggestionToController']['get'](_0x1d9074),_0x4c56f3=_0x793f6d['view'],_0x428aca=_0x3d9064['getByInnerView'](_0x4c56f3);_0x33a230['_unbindEditors'](_0x4c56f3),_0x428aca&&_0x3d9064['remove'](_0x428aca),this['_suggestionToController']['delete'](_0x1d9074),this['_viewToController']['delete'](_0x4c56f3),_0x793f6d['destroy']();}['_updateController'](_0x7dd098){if(!_0x7dd098['isInContent']||!this['_suggestionToController']['has'](_0x7dd098))return;const _0x93489=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29d481=this['_suggestionToController']['get'](_0x7dd098),_0x466afd=_0x7dd098['getAllAdjacentSuggestions']();_0x29d481['view']['descriptionParts']=_0x93489['descriptionFactory']['getDescriptions'](_0x466afd);}['destroy'](){for(const _0x4d2ea7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4d2ea7);for(const _0x54609e of this['_annotationViews']['values']())_0x54609e['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1cc755){return'model'in _0x1cc755;}class k extends _0x17923f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x129bb9){this['editor']['plugins']['get'](p)['adapter']=_0x129bb9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x43c99f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x43c99f);}['getSuggestions']({skipNotAttached:_0x53ad5a=!0x1,toJSON:_0x39bd53=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x53ad5a,'toJSON':_0x39bd53});}['getSuggestion'](_0x53f364){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x53f364);}}const w=['Pagination'];class T extends _0x17923f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x57f911=this['editor'];if(_0x57f911['config']['define']('trackChangesData.editorCreator',_0x2eeab6=>{const _0x32e14d=_0x57f911['model']['document']['getRootNames']()['reduce']((_0x45b93d,_0x2236fb)=>(_0x45b93d[_0x2236fb]='',_0x45b93d),{});return _0x57f911['constructor']['create'](_0x32e14d,_0x2eeab6);}),'function'!=typeof _0x57f911['config']['get']('trackChangesData')['editorCreator'])throw new _0x229c91('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x242876){return N(this['editor'],!0x0,_0x242876);}['getDataWithDiscardedSuggestions'](_0xa3be28){return N(this['editor'],!0x1,_0xa3be28);}}class D extends _0x17923f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x277a62){function _0x2fe085(_0x5cd74f){return _0x5cd74f['map'](_0x2d519a=>String['fromCharCode'](_0x2d519a))['join']('');}super(_0x277a62),this['result']='end',_0x277a62[_0x2fe085([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fe085([0x76,0x69,0x65,0x77])][_0x2fe085([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fe085([0x61,0x75,0x74,0x6f]),_0x277a62[_0x2fe085([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2fe085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fe085([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2fe085([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2fe085([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x5b8f42){return void 0x0!==_0x5b8f42['getRootsAttributes'];}async function N(_0x180769,_0x3ce9cf,_0xa3f2e2){const _0xa6d306=_0x3fa26d(_0x180769,w);_0xa6d306['plugins']['push'](p,D),_0xa6d306['rootsAttributes']=Fe(_0x180769)?_0x180769['getRootsAttributes']():void 0x0;const _0x1fb090=document['createDocumentFragment'](),_0x2f35b1=_0x180769['config']['get']('trackChangesData')['editorCreator'],_0x556be4=await _0x2f35b1(_0xa6d306,()=>function(_0x5776a3){const _0x46b52c=document['createElement']('div');return _0x5776a3['appendChild'](_0x46b52c),_0x46b52c;}(_0x1fb090));!function(_0x46bc50,_0x4f8e4e){const _0x1fa20f=_0x46bc50['model']['document']['getRootNames']()['reduce']((_0x48594b,_0x45ef9e)=>(_0x48594b[_0x45ef9e]=_0x46bc50['data']['get']({'rootName':_0x45ef9e}),_0x48594b),{}),_0x414c26=_0x46bc50['plugins']['get']('Users')['users']['map'](_0x2137a7=>({'id':_0x2137a7['id'],'name':_0x2137a7['name']})),_0x1f94d=_0x46bc50['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x445147=_0x46bc50['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x249d8c=_0x4f8e4e['plugins']['get']('Users'),_0x29d44=_0x4f8e4e['plugins']['get']('TrackChangesEditing'),_0x154724=_0x4f8e4e['plugins']['get']('CommentsRepository');for(const _0x5be686 of _0x154724['getCommentThreads']())_0x5be686['remove']();for(const _0x5d8513 of _0x414c26)_0x249d8c['getUser'](_0x5d8513['id'])||_0x249d8c['addUser'](_0x5d8513);_0x249d8c['me']||_0x249d8c['useAnonymousUser']();for(const _0x5f5bad of _0x445147)_0x154724['addCommentThread'](_0x5f5bad);for(const _0x3f9fc8 of _0x1f94d)_0x29d44['addSuggestionData'](_0x3f9fc8);_0x4f8e4e['data']['set'](_0x1fa20f);}(_0x180769,_0x556be4),_0x556be4['execute'](_0x3ce9cf?'acceptAllSuggestions':'discardAllSuggestions');const _0x2a5d37=Fe(_0x556be4)?_0x556be4['getFullData'](_0xa3f2e2):_0x556be4['data']['get'](_0xa3f2e2);return await _0x556be4['destroy'](),_0x2a5d37;}class Me extends _0x38fe6e{['options'];constructor(_0x2ea416,_0x82ccb7){super(_0x2ea416),this['options']=_0x82ccb7,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x453674,_0x56576a){if(!this['element'])return;const _0x19f1d0=[];for(const [_0x593592,_0x47bd04]of _0x453674){const _0x4f0f83=document['createElement']('div');_0x4f0f83['setAttribute']('data-ck-root-name',_0x593592),_0x4f0f83['className']=_0x47bd04['classes']+'\x20ck-track-changes-preview__root-container',_0x4f0f83['innerHTML']=_0x47bd04['content'],_0x19f1d0['push'](_0x4f0f83);}_0x56576a(this['element'],_0x19f1d0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2d43ff{constructor(_0x2768ad){super(_0x2768ad),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1603a8=this['editor'],_0x1fa32b=_0x1603a8['locale'],_0x3b198e=_0x1603a8['plugins']['get']('Dialog');let _0x561e35;const _0x5efde2=function(_0x39a4ec){const _0x39a373={};if('editables'in _0x39a4ec['ui']['view']){for(const [_0x1891ec,_0x26728f]of Object['entries'](_0x39a4ec['ui']['view']['editables']))_0x39a373[_0x1891ec]=_0x26728f['element'];}else _0x39a373[_0x39a4ec['model']['document']['getRootNames']()[0x0]]=_0x39a4ec['ui']['view']['editable']['element'];return _0x39a373;}(_0x1603a8),_0x2d88a0=function(_0x1503fa){let _0x46055a=0x0;for(const _0x804246 of Object['values'](_0x1503fa))_0x46055a=Math['max'](_0x46055a,_0x804246['getBoundingClientRect']()['width']);let _0x4abf44=0x0;for(const _0x25271a of Object['values'](_0x1503fa))_0x4abf44+=_0x25271a['getBoundingClientRect']()['height'];const _0x62f9a3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xfaa761=Math['min'](_0x4abf44,_0x62f9a3);return{'width':_0x46055a,'height':_0xfaa761};}(_0x5efde2);_0x3b198e['show']({'id':'finalContentPreview','title':c(_0x1fa32b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1fa32b,{'dialogRects':_0x2d88a0}),'onHide':()=>{_0x561e35['detachFromDom']();},'onShow':()=>{_0x1603a8['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x33d4e8=>{const _0x50485e=this['_standarizeRootsData'](_0x33d4e8,_0x1603a8,_0x5efde2);_0x3b198e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x50485e,_0x1603a8['config']['get']('trackChanges.preview.renderFunction'));}),_0x561e35=new _0x90204a(_0x1fa32b,[_0x3b198e['view']]),_0x561e35['attachToDom'](),_0x561e35['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1603a8['once']('destroy',()=>{_0x561e35['detachFromDom']();});const _0x121646=_0x3b198e['view']['headerView']['class'];_0x3b198e['view']['headerView']['class']=_0x121646?_0x121646+'\x20ck-reset_all':'ck-reset_all',_0x3b198e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3b198e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5e0e6e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x149561=_0x5e0e6e['previewMode'],_0x33458f={};if('$labels'===_0x149561){for(const _0x430d87 of _0x5e0e6e['getMergeFieldsIds']())_0x33458f[_0x430d87]=_0x5e0e6e['getLabel'](_0x430d87)||_0x430d87;}else{const _0x232ef5='$defaultValues'===_0x149561?_0x5e0e6e['getDefaultValues']():_0x5e0e6e['getDataSetValues'](_0x149561,!0x0);for(const _0x175fe7 of Object['entries'](_0x232ef5)){const [_0x275c48,_0x333ebc]=_0x175fe7;_0x33458f[_0x275c48]=null!==_0x333ebc?_0x333ebc:_0x5e0e6e['getLabel'](_0x275c48)||_0x275c48;}}return{'mergeFieldsData':_0x33458f};}['_standarizeRootsData'](_0x14ae17,_0x567b68,_0x273e64){let _0x477262;if('string'==typeof _0x14ae17){const _0x2f9b49=_0x567b68['model']['document']['getRootNames']()[0x0];_0x477262={[_0x2f9b49]:_0x14ae17};}else _0x477262=_0x14ae17;const _0x33bc25=this['_fixMediaEmbeds'](_0x477262,_0x567b68),_0x244fff=function(_0x3d6186,_0x45ea19){for(const [_0xdfb27b,_0x47f0ea]of _0x3d6186)_0x47f0ea['classes']=_0x45ea19[_0xdfb27b]['classList']['value']['replace']('ck-focused','');return _0x3d6186;}(this['_sortRoots'](_0x567b68)['reduce']((_0x26fa4c,_0x74b7db)=>(_0x26fa4c['push']([_0x74b7db,{'content':_0x33bc25[_0x74b7db],'classes':''}]),_0x26fa4c),[]),_0x273e64);return _0x244fff;}['_fixMediaEmbeds'](_0xdd48a7,_0xd5f986){if(!_0xd5f986['plugins']['has']('MediaEmbedEditing'))return _0xdd48a7;const _0x1861b0=_0xd5f986['plugins']['get']('MediaEmbedEditing');for(const [_0x3c2dc1,_0x38f8f0]of Object['entries'](_0xdd48a7)){const _0xa1d5c9=document['createElement']('div');_0xa1d5c9['innerHTML']=_0x38f8f0,(_0xa1d5c9['querySelectorAll']('figure.media')['forEach'](_0x27d007=>{const _0x1add8c=_0x27d007['querySelector']('oembed');if(_0x1add8c){const _0x130e49=_0x1add8c['getAttribute']('url');if(_0x130e49){const _0x38d5a5=_0x1861b0['registry']['getMediaViewElement'](new _0x5cf3f4(_0xd5f986['editing']['view']['document']),_0x130e49,{'elementName':'','renderForEditingView':!0x0}),_0xc53a9b=document['createElement']('div');_0xc53a9b['classList']['add']('ck-media__wrapper'),_0x38d5a5['render'](_0xc53a9b,_0xd5f986['editing']['view']['domConverter']),_0x1add8c['replaceWith'](_0xc53a9b);}}}),_0xdd48a7[_0x3c2dc1]=_0xa1d5c9['innerHTML']);}return _0xdd48a7;}['_sortRoots'](_0x5c972d){if(!function(_0x5ea76d){return void 0x0!==_0x5ea76d['getRootsAttributes'];}(_0x5c972d))return _0x5c972d['model']['document']['getRootNames']();const _0x1e646a=[],_0xac6ac9=new Map();for(const _0x20f746 of _0x5c972d['model']['document']['getRootNames']()){const _0x1617b1=_0x5c972d['editing']['view']['getDomRoot'](_0x20f746)['getClientRects']()['item'](0x0);_0x1e646a['push'](_0x20f746),_0xac6ac9['set'](_0x20f746,_0x1617b1);}return _0x1e646a['sort']((_0x11be25,_0x9bd02d)=>{const _0x3f460f=_0xac6ac9['get'](_0x11be25),_0x4b0a46=_0xac6ac9['get'](_0x9bd02d);return _0x3f460f['y']-_0x4b0a46['y']||_0x3f460f['x']-_0x4b0a46['x'];}),_0x1e646a;}}class te extends _0x17923f{static get['requires'](){return[T,_0x2189eb];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35f5b1){super(_0x35f5b1),_0x35f5b1['commands']['add']('previewFinalContent',new re(this['editor'])),_0x35f5b1['config']['define']('trackChanges.preview.renderFunction',(_0x46c55d,_0x49a072)=>{for(const _0x1bd27d of _0x49a072)_0x46c55d['appendChild'](_0x1bd27d);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|