@ckeditor/ckeditor5-track-changes 45.2.0-alpha.3 → 45.2.0-alpha.5
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 +27 -27
- 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
|
-
_0x21885c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xaaeb1c,_0x3b555e){super(),this['id']=_0x3b555e['id'],this['type']=_0x3b555e['type'],this['subType']=_0x3b555e['subType']||null,this['author']=_0x3b555e['author'],this['creator']=_0x3b555e['creator']||_0x3b555e['author'],this['isExternal']=Boolean(_0x3b555e['attributes']&&_0x3b555e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x3b555e['originalSuggestionId']||null,this['_model']=_0xaaeb1c,this['_onAccept']=_0x3b555e['onAccept'],this['_onDiscard']=_0x3b555e['onDiscard'],this['_onAttributesChange']=_0x3b555e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3b555e['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 _0x44a6eb=this;for(;_0x44a6eb['previous'];)_0x44a6eb=_0x44a6eb['previous'];return _0x44a6eb;}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'](_0x562d78){this['_markerNames']['add'](_0x562d78);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x43079d=>this['_model']['markers']['get'](_0x43079d))['filter'](_0x5c8c7b=>_0x5c8c7b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x412af7=>{for(const _0x5c0de5 of this['getMarkers']())_0x412af7['removeMarker'](_0x5c0de5);}),this['_markerNames']['clear']();}['removeMarker'](_0x2fdc73){this['_model']['change'](_0xeac152=>{_0xeac152['removeMarker'](_0x2fdc73);}),this['_markerNames']['delete'](_0x2fdc73);}['addRange'](_0x46f269){const _0x292b6c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x292b6c),this['_model']['change'](_0x49565e=>{_0x49565e['addMarker'](_0x292b6c,{'range':_0x46f269,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4987bf){for(const _0x514db1 of this['getRanges']())if(_0x514db1['isIntersecting'](_0x4987bf))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4009e6=>_0x4009e6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x62f649,_0x505725)=>[..._0x62f649,..._0x505725['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2678ee=this['getRanges']();if(0x1!=_0x2678ee['length'])return null;const _0xd9c5ed=_0x2678ee[0x0],_0x2eb0b7=_0xd9c5ed['start']['nodeAfter'],_0x16fea6=_0xd9c5ed['end']['nodeBefore'];return _0x2eb0b7 instanceof _0x1fac1e?_0x2eb0b7!=_0x16fea6?null:_0x2eb0b7: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 _0x4ec9c5=[];let _0x3ea4b4=this['head'];for(;_0x3ea4b4;)_0x4ec9c5['push'](_0x3ea4b4),_0x3ea4b4=_0x3ea4b4['next'];return _0x4ec9c5;}['setAttribute'](_0x5e1842,_0x1a9a29){const _0x233da4=_0x11da27(this['attributes']);_0x1e69a4(_0x233da4,_0x5e1842,_0x1a9a29),_0x439f28(_0x233da4,this['attributes'])||(this['attributes']=_0x233da4,this['_onAttributesChange'](_0x233da4));}['removeAttribute'](_0x3b6e61){const _0x2f8994=_0x11da27(this['attributes']);_0x4a4206(_0x2f8994,_0x3b6e61),_0x439f28(_0x2f8994,this['attributes'])||(this['attributes']=_0x2f8994,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 _0x34bf97()['substr'](0x1,0x5);}}function c(_0x5ad94f,_0x410271,_0x586026){const _0x5059e9=_0x5ad94f['t'],t=_0x5ad94f['t'];switch(_0x410271){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',_0x586026);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x586026);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x586026);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x586026);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x586026);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',_0x586026);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x586026);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',_0x586026);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x586026);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x586026);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x586026);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x586026);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x586026);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x586026);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x586026);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x586026);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x586026);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x586026);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x586026);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x586026);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x586026);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x586026);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x586026);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x586026);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x586026);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'},_0x586026);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x586026);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x586026);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x586026);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x586026);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x586026);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x586026);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x586026);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'},_0x586026);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x586026);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x586026);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x586026);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x586026);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'},_0x586026);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x586026);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'},_0x586026);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'},_0x586026);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x586026);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'},_0x586026);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x586026);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'},_0x586026);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x586026);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x586026);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'},_0x586026);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x586026);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 _0x5059e9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x586026);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5059e9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x586026);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x586026);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'},_0x586026);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'},_0x586026);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'},_0x586026);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x410271;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x124951,_0x404c89){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x124951,this['_locale']=_0x404c89;}['getDescriptions'](_0x2fa2a8){const _0x3deaa4=[],_0xd5b22d=new Set(),_0x3e80f1=new Set();for(let _0x31d4d8=0x0;_0x31d4d8<_0x2fa2a8['length'];_0x31d4d8++){const _0x34bd7e=_0x2fa2a8[_0x31d4d8];if(!_0x34bd7e['isInContent'])continue;const _0x4b53e8=this['_handleCustomCallbackDescription'](_0x34bd7e);if(_0x4b53e8){if(null!=_0x34bd7e['subType']){if(_0xd5b22d['has'](_0x34bd7e['subType']))continue;_0xd5b22d['add'](_0x34bd7e['subType']);}_0x3deaa4['push'](_0x4b53e8);}else{if('attribute'!=_0x34bd7e['type'])'insertion'!=_0x34bd7e['type']&&'deletion'!=_0x34bd7e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3deaa4,_0x34bd7e,_0x2fa2a8[_0x31d4d8+0x1]);else{const _0x36456d=_0x34bd7e['data']['key'];if(_0x3e80f1['has'](_0x36456d))continue;_0x3e80f1['add'](_0x34bd7e['data']['key']),_0x36456d==u?this['_handleRenameSuggestionDescription'](_0x3deaa4,_0x34bd7e):this['_handleAttributeSuggestionDescription'](_0x3deaa4,_0x34bd7e);}}}return this['_resolveDescriptionItems'](_0x3deaa4);}['registerDescriptionCallback'](_0x1027d7){this['_customCallbacks']['push'](_0x1027d7);}['registerElementLabel'](_0x3e89bb,_0x525947,_0x1f56f3=_0x26424c['normal']){'function'==typeof _0x3e89bb?_0x26c69e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3e89bb,'label':_0x525947,'priority':_0x1f56f3}):this['_itemLabels']['set'](_0x3e89bb,_0x525947);}['registerAttributeLabel'](_0x1e6ff7,_0x3e29c2){this['_attributeLabels']['set'](_0x1e6ff7,_0x3e29c2);}['getItemLabel'](_0x3d8eea,_0xf2bb12=0x1){let _0x4327cb;for(const _0x478f61 of this['_itemLabelsCallbacks'])if(_0x478f61['matchingCallback'](_0x3d8eea)){_0x4327cb=_0x478f61['label'];break;}return _0x4327cb||(_0x4327cb=this['_itemLabels']['get'](_0x3d8eea['name'])),_0x4327cb?_0x4327cb(_0xf2bb12):0x1!==_0xf2bb12?_0xf2bb12+'\x20'+_0x3d8eea['name']+'s':''+_0x3d8eea['name'];}['_addDescriptionItems'](_0x510464,_0x2a677){const _0x5324a2=_0x2a677['getFirstRange']()['getWalker'](),_0x35bdb3='insertion'==_0x2a677['type']?'add':'remove';for(const _0xf6e9b4 of _0x5324a2){const _0x4058b2=_0xf6e9b4['item'],_0x5ab8e1=_0x510464[_0x510464['length']-0x1];if(_0x4058b2['is']('$textProxy'))_0x5ab8e1&&_0x5ab8e1['type']['indexOf']('Container')>-0x1&&_0x510464['pop'](),_0x5ab8e1&&'text'==_0x5ab8e1['type']?_0x5ab8e1[_0x35bdb3]+=_0x4058b2['data']:_0x510464['push']({'type':'text','add':'add'==_0x35bdb3?_0x4058b2['data']:'','remove':'remove'==_0x35bdb3?_0x4058b2['data']:''});else{if(this['_schema']['isObject'](_0x4058b2)){const _0x5a148d=_0x4058b2;if(_0x5ab8e1&&_0x5ab8e1['type']['indexOf']('Container')>-0x1&&_0x510464['pop'](),'elementEnd'==_0xf6e9b4['type'])continue;_0x5ab8e1&&_0x5ab8e1['type']==_0x35bdb3+'Object'&&_0x5ab8e1['element']['name']==_0x5a148d['name']?_0x5ab8e1['quantity']++:_0x510464['push']({'type':_0x35bdb3+'Object','element':_0x5a148d,'quantity':0x1}),_0x5324a2['skip'](_0x3923a0=>!('elementEnd'==_0x3923a0['type']&&_0x3923a0['item']==_0x4058b2));}else{if(this['_schema']['checkChild'](_0x4058b2,'$text')||_0x4058b2['is']('element','softBreak')){const _0x42bfa1=_0x4058b2;if('add'==_0x35bdb3&&'elementStart'==_0xf6e9b4['type']||'remove'==_0x35bdb3&&'elementEnd'==_0xf6e9b4['type'])continue;if(_0x5ab8e1&&-0x1==_0x5ab8e1['type']['indexOf']('Container')){'text'==_0x5ab8e1['type']&&(_0x5ab8e1[_0x35bdb3]+='\x0a');continue;}let _0x42e8c9;if(_0x42e8c9='add'==_0x35bdb3?_0x42bfa1['nextSibling']&&!this['_schema']['isObject'](_0x42bfa1['nextSibling'])?_0x42bfa1['nextSibling']:null:_0x42bfa1['previousSibling']&&!this['_schema']['isObject'](_0x42bfa1['previousSibling'])?_0x42bfa1['previousSibling']:null,_0x42bfa1['isEmpty']||_0x42e8c9&&_0x42e8c9['isEmpty']){const _0x58555d=_0x42e8c9&&_0x42e8c9['isEmpty']?_0x42e8c9:_0x42bfa1;_0x5ab8e1&&_0x5ab8e1['type']==_0x35bdb3+'EmptyContainer'&&_0x5ab8e1['element']['name']==_0x58555d['name']?_0x5ab8e1['quantity']++:_0x510464['push']({'type':_0x35bdb3+'EmptyContainer','element':_0x58555d,'quantity':0x1});}else _0x510464['push']({'type':_0x35bdb3+'Container','element':_0x42bfa1});}}}}}['_resolveDescriptionItems'](_0x28dd6b){const _0x1ac432=this['_locale'],_0x3dd8e6=[],_0x4adb01=[],_0x30918c=[];for(const _0x4e3f07 of _0x28dd6b)switch(_0x4e3f07['type']){case'text':if(_0x4e3f07['add']=_0x4e3f07['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4e3f07['remove']=_0x4e3f07['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4e3f07['add']&&''!=_0x4e3f07['remove']){_0x3dd8e6['push']({'type':'replace','content':c(_0x1ac432,'REPLACE_TEXT',['\x22'+_0x4e3f07['remove']+'\x22','\x22'+_0x4e3f07['add']+'\x22'])});continue;}if(null!=_0x4e3f07['add']['match'](/^ +$/)){_0x3dd8e6['push']({'type':'insertion','content':c(_0x1ac432,'*Insert:*\x20%0',c(_0x1ac432,'ELEMENT_SPACE',_0x4e3f07['add']['length']))});continue;}if(null!=_0x4e3f07['remove']['match'](/^ +$/)){_0x3dd8e6['push']({'type':'deletion','content':c(_0x1ac432,'*Remove:*\x20%0',c(_0x1ac432,'ELEMENT_SPACE',_0x4e3f07['remove']['length']))});continue;}if(''!=_0x4e3f07['add']){_0x3dd8e6['push']({'type':'insertion','content':c(_0x1ac432,'*Insert:*\x20%0','\x22'+_0x4e3f07['add']+'\x22')});continue;}_0x3dd8e6['push']({'type':'deletion','content':c(_0x1ac432,'*Remove:*\x20%0','\x22'+_0x4e3f07['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3dd8e6['push']({'type':'insertion','content':c(_0x1ac432,'*Insert:*\x20%0',this['getItemLabel'](_0x4e3f07['element'],_0x4e3f07['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3dd8e6['push']({'type':'deletion','content':c(_0x1ac432,'*Remove:*\x20%0',this['getItemLabel'](_0x4e3f07['element'],_0x4e3f07['quantity']))});continue;case'addContainer':_0x3dd8e6['push']({'type':'insertion','content':c(_0x1ac432,'*Split:*\x20%0',this['getItemLabel'](_0x4e3f07['element'],_0x4e3f07['quantity']))});continue;case'removeContainer':_0x3dd8e6['push']({'type':'deletion','content':c(_0x1ac432,'*Merge:*\x20%0',this['getItemLabel'](_0x4e3f07['element'],_0x4e3f07['quantity']))});continue;case'addFormat':_0x4adb01['push'](_0x4e3f07['key']);continue;case'removeFormat':_0x30918c['push'](_0x4e3f07['key']);continue;default:_0x3dd8e6['push'](_0x4e3f07);}if(_0x4adb01['length']){const _0x132fb9=_0x4adb01['map'](_0x31deed=>this['_attributeLabels']['has'](_0x31deed)?this['_attributeLabels']['get'](_0x31deed):_0x31deed)['join'](',\x20');_0x3dd8e6['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x132fb9)});}if(_0x30918c['length']){const _0x1f4cfe=_0x30918c['map'](_0x49b22f=>this['_attributeLabels']['has'](_0x49b22f)?this['_attributeLabels']['get'](_0x49b22f):_0x49b22f)['join'](',\x20');_0x3dd8e6['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1f4cfe)});}return _0x3dd8e6;}['_handleCustomCallbackDescription'](_0x58f2d9){for(const _0x1a3dd6 of this['_customCallbacks']){const _0x5947b9=_0x1a3dd6(_0x58f2d9);if(_0x5947b9&&'type'in _0x5947b9)return _0x5947b9;}}['_handleAttributeSuggestionDescription'](_0x446e70,_0x565f4a){const _0x153924=_0x565f4a['data'],_0x2a7b08=void 0x0===_0x153924['newValue']?'removeFormat':'addFormat';_0x446e70['push']({'type':_0x2a7b08,'key':_0x153924['key']});}['_handleRenameSuggestionDescription'](_0x198863,_0xc820c2){_0x198863['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xc820c2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xc3663f,_0x2f24e7,_0x535ac3){if(this['_addDescriptionItems'](_0xc3663f,_0x2f24e7),_0x535ac3&&_0x535ac3['getFirstRange']()&&!_0x2f24e7['getFirstRange']()['end']['isEqual'](_0x535ac3['getFirstRange']()['start'])){const _0x3499f5=_0xc3663f[_0xc3663f['length']-0x1],_0x87bf5e='insertion'==_0x2f24e7['type']?'add':'remove';_0x3499f5&&'text'==_0x3499f5['type']&&(_0x3499f5[_0x87bf5e]+='\x0a');}}}class U extends _0x31a850{['afterInit'](){const _0x10c727=this['editor'],_0x543323=_0x10c727['plugins']['get']('TrackChangesEditing');_0x10c727['commands']['get']('showAIAssistant')&&_0x543323['enableCommand']('showAIAssistant');}}class V extends _0x31a850{['afterInit'](){const _0x1ca0ae=this['editor'],_0x444fc8=_0x1ca0ae['locale'];if(!_0x1ca0ae['plugins']['has']('AlignmentEditing'))return;const _0x477963=_0x1ca0ae['plugins']['get']('TrackChangesEditing');_0x477963['enableDefaultAttributesIntegration']('alignment'),_0x477963['registerBlockAttribute']('alignment'),_0x477963['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x444fc8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bddfa=this['editor'],_0x55d943=_0x4bddfa['locale'];_0x4bddfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a97d9=>{if('formatBlock'!=_0x5a97d9['type'])return;const {data:_0x30d0ca}=_0x5a97d9;if(_0x30d0ca&&'alignment'==_0x30d0ca['commandName']){const _0x39933c=_0x30d0ca['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x55d943,'*Format:*\x20%0',function(_0x2a049f){switch(_0x2a049f){case'left':return c(_0x55d943,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x55d943,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x55d943,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x55d943,'FORMAT_JUSTIFY_TEXT');}}(_0x39933c))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x31a850{['afterInit'](){const _0x30f636=this['editor'],_0x50843d=_0x30f636['plugins']['get']('TrackChangesEditing'),_0x3dc4ed=_0x30f636['locale'];for(const _0x574964 of Zt){if(!_0x30f636['plugins']['has'](_0x574964))continue;const _0x2bc0be=_0x574964['slice'](0x0,-0x7)['toLowerCase'](),_0x1527ad='FORMAT_'+_0x2bc0be['toUpperCase']();_0x50843d['enableDefaultAttributesIntegration'](_0x2bc0be),_0x50843d['registerInlineAttribute'](_0x2bc0be),_0x50843d['descriptionFactory']['registerAttributeLabel'](_0x2bc0be,c(_0x3dc4ed,_0x1527ad));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x490a8d=this['editor'],_0x4d2d42=_0x490a8d['locale'],_0x314020=_0x490a8d['plugins']['get']('TrackChangesEditing');function _0x48fc04(_0x41438c,_0x1a0dce){_0x314020['descriptionFactory']['registerDescriptionCallback'](_0x42393e=>{if('formatInline'!=_0x42393e['type'])return;const {data:_0x4042fd}=_0x42393e;return _0x4042fd&&_0x4042fd['commandName']===_0x41438c?_0x4042fd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4d2d42,'*Format:*\x20%0',_0x1a0dce)}:{'type':'format','content':c(_0x4d2d42,'*Remove\x20format:*\x20%0',_0x1a0dce)}:void 0x0;});}_0x48fc04('bold',c(_0x4d2d42,'FORMAT_BOLD')),_0x48fc04('italic',c(_0x4d2d42,'FORMAT_ITALIC')),_0x48fc04('underline',c(_0x4d2d42,'FORMAT_UNDERLINE')),_0x48fc04('code',c(_0x4d2d42,'FORMAT_CODE')),_0x48fc04('strikethrough',c(_0x4d2d42,'FORMAT_STRIKETHROUGH')),_0x48fc04('subscript',c(_0x4d2d42,'FORMAT_SUBSCRIPT')),_0x48fc04('superscript',c(_0x4d2d42,'FORMAT_SUPERSCRIPT'));}}class G extends _0x31a850{['afterInit'](){const _0x10c558=this['editor'],_0x3f59f8=_0x10c558['locale'];if(!_0x10c558['plugins']['has']('BlockQuoteEditing'))return;const _0x55fe7f=_0x10c558['plugins']['get']('TrackChangesEditing'),_0x37e604=this['editor']['commands']['get']('blockQuote');_0x55fe7f['enableCommand']('blockQuote',(_0x1f55a3,_0x53d98e={})=>{const _0x12f763=this['editor']['model']['document']['selection'],_0x2c3a8f=_0x53d98e&&void 0x0!==_0x53d98e['forceValue']?_0x53d98e['forceValue']:!_0x37e604['value'];let _0x25de04=[];if(_0x2c3a8f){const _0x30c33=Array['from'](_0x12f763['getSelectedBlocks']())['filter'](_0x49a760=>oo(_0x49a760)||function(_0x11ccc2,_0x4c9cde){const _0x60f947=_0x4c9cde['checkChild'](_0x11ccc2['parent'],'blockQuote'),_0x4562c0=_0x4c9cde['checkChild'](['$root','blockQuote'],_0x11ccc2);return _0x60f947&&_0x4562c0;}(_0x49a760,this['editor']['model']['schema']));_0x25de04=to(_0x30c33,_0x10c558['model']);}else{const _0x40df60=Array['from'](_0x12f763['getSelectedBlocks']())['filter'](_0x266f0c=>oo(_0x266f0c));_0x25de04=to(_0x40df60,_0x10c558['model']);}_0x10c558['model']['change'](()=>{for(const _0x5ea898 of _0x25de04)_0x55fe7f['markBlockFormat'](_0x5ea898,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2c3a8f}]});});}),_0x55fe7f['descriptionFactory']['registerDescriptionCallback'](_0x50a3e3=>{const {data:_0x1bd07e}=_0x50a3e3;if(_0x1bd07e&&'blockQuote'==_0x1bd07e['commandName']){const _0x493ce3=c(_0x3f59f8,'ELEMENT_BLOCK_QUOTE');return _0x1bd07e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3f59f8,'*Set\x20format:*\x20%0',_0x493ce3)}:{'type':'format','content':c(_0x3f59f8,'*Remove\x20format:*\x20%0',_0x493ce3)};}});}}function oo(_0x1e9ab7){return'blockQuote'==_0x1e9ab7['parent']['name'];}class L extends _0x31a850{['afterInit'](){const _0x2dc207=this['editor'],_0x5066c6=_0x2dc207['locale'],_0xd60693=_0x2dc207['plugins']['get']('TrackChangesEditing');_0x2dc207['plugins']['has']('BookmarkEditing')&&(_0xd60693['enableCommand']('insertBookmark'),_0xd60693['enableDefaultAttributesIntegration']('updateBookmark'),_0xd60693['registerBlockAttribute']('bookmarkId'),_0xd60693['descriptionFactory']['registerDescriptionCallback'](_0x2fcd0b=>{if('insertion'!=_0x2fcd0b['type']&&'deletion'!=_0x2fcd0b['type']&&'attribute'!=_0x2fcd0b['type'])return;const _0x41f87d=_0x2fcd0b['getContainedElement']();if(null==_0x41f87d)return;if(!_0x41f87d['is']('element','bookmark'))return;const _0x423633=_0x41f87d['getAttribute']('bookmarkId');if('insertion'==_0x2fcd0b['type'])return{'type':'insertion','content':c(_0x5066c6,'*Insert:*\x20%0','\x22'+_0x423633+'\x22\x20'+c(_0x5066c6,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2fcd0b['type'])return{'type':'deletion','content':c(_0x5066c6,'*Remove:*\x20%0','\x22'+_0x423633+'\x22\x20'+c(_0x5066c6,'ELEMENT_BOOKMARK'))};const {data:_0x551d03}=_0x2fcd0b;if(!_0x551d03||'bookmarkId'!=_0x551d03['key'])return;return{'type':'format','content':c(_0x5066c6,'*Set\x20bookmark:*\x20%0','\x22'+_0x551d03['newValue']+'\x22')};}));}}class J extends _0x31a850{['afterInit'](){const _0x4fc0b5=this['editor'];_0x4fc0b5['plugins']['has']('CaseChange')&&(_0x4fc0b5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4fc0b5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4fc0b5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x31a850{['afterInit'](){const _0xc99c48=this['editor'];_0xc99c48['commands']['get']('ckbox')&&_0xc99c48['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x31a850{['afterInit'](){const _0x255d23=this['editor'];if(!_0x255d23['plugins']['has']('CodeBlock'))return;const _0x5f1d11=_0x255d23['plugins']['get']('TrackChangesEditing'),_0x27f3bd=_0x255d23['locale'],_0x1b0ee4=_0x255d23['config']['get']('codeBlock')['languages'],_0x5cc3d8=_0x255d23['commands']['get']('codeBlock');_0x5f1d11['enableCommand']('indentCodeBlock'),_0x5f1d11['enableCommand']('outdentCodeBlock'),_0x5f1d11['enableCommand']('codeBlock',(_0x3b5dd6,_0x205fa8={})=>{const _0x171088=_0x255d23['model'],_0x249128=_0x255d23['model']['document']['selection'],_0x2d176e=_0x205fa8&&void 0x0!==_0x205fa8['forceValue']?_0x205fa8['forceValue']:!_0x5cc3d8['value'];let _0x1979f4;_0x205fa8['language']||(_0x205fa8['language']=_0x1b0ee4[0x0]['language']),_0x1979f4=_0x2d176e?Array['from'](_0x249128['getSelectedBlocks']())['filter'](_0x5bb7ef=>eo(_0x5bb7ef)||function(_0x1eea78,_0x5e8e54){if(_0x1eea78['is']('rootElement')||_0x5e8e54['isLimit'](_0x1eea78))return!0x1;return _0x5e8e54['checkChild'](_0x1eea78['parent'],'codeBlock');}(_0x5bb7ef,_0x171088['schema'])):Array['from'](_0x249128['getSelectedBlocks']())['filter'](_0x586f59=>eo(_0x586f59));const _0x415501=to(_0x1979f4,_0x171088);_0x171088['change'](()=>{for(const _0x564af7 of _0x415501)_0x5f1d11['markBlockFormat'](_0x564af7,{'commandName':'codeBlock','commandParams':[{..._0x205fa8,'forceValue':_0x2d176e}],'formatGroupId':'blockName'});});}),(_0x5f1d11['descriptionFactory']['registerElementLabel']('codeBlock',_0x28ed6f=>c(_0x27f3bd,'ELEMENT_CODE_BLOCK',_0x28ed6f)),_0x5f1d11['descriptionFactory']['registerDescriptionCallback'](_0x374343=>{if('formatBlock'!=_0x374343['type'])return;const _0x34362d=_0x27f3bd['t'],{data:_0x378c3e}=_0x374343;if(!_0x378c3e||'codeBlock'!=_0x378c3e['commandName'])return;const _0x447a5c=_0x378c3e['commandParams'][0x0]['language'],_0x341614=_0x34362d(_0x1b0ee4['find'](_0x2c9d67=>_0x2c9d67['language']===_0x447a5c)['label'])['toLowerCase']();return _0x378c3e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x27f3bd,'*Set\x20format:*\x20%0',c(_0x27f3bd,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x341614+')')}:{'type':'format','content':c(_0x27f3bd,'*Remove\x20format:*\x20%0',c(_0x27f3bd,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x37183d){return'codeBlock'==_0x37183d['name'];}class q extends _0x31a850{['afterInit'](){const _0x33d507=this['editor'];if(!_0x33d507['plugins']['has']('CommentsEditing'))return;_0x33d507['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x25c99c,_0x1fa152,_0x2513f8){const _0x305b7e=[];for(const _0x48a902 of _0x1fa152['getItems']())_0x48a902['hasAttribute'](_0x25c99c)&&_0x305b7e['push'](_0x2513f8['createRangeOn'](_0x48a902));return _0x305b7e;}function Fe(_0x599c9b,_0x34068e,{showActiveMarker:_0x47a886=!0x0}={}){const _0x5bba7f=_0x599c9b['plugins']['get']('TrackChangesEditing');return(_0x4cb637,_0x1d35ba,_0x57f697)=>{if(!_0x57f697['consumable']['test'](_0x1d35ba['markerRange'],_0x4cb637['name']))return;const _0x11a304=_0x1d35ba['markerRange']['getWalker'](),_0x5b8f5a=_0x1d35ba['markerRange']['start'],_0x9ae7f5=_0x599c9b['model']['schema'];let _0x15ed83=null,_0x3671fb=null,_0x55c536=!0x1,_0x1ce44b=!0x1;for(const _0x2e105a of _0x11a304){const _0x3aa39a=_0x2e105a['item'];_0x55c536=_0x55c536||_0x9ae7f5['isContent'](_0x3aa39a);const _0xafbe20=_0x57f697['mapper']['toViewElement'](_0x3aa39a);if(_0xafbe20&&_0xafbe20['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2e105a['type']&&(_0x9ae7f5['isBlock'](_0x3aa39a)&&!_0x9ae7f5['isLimit'](_0x3aa39a)&&(_0x3aa39a['nextSibling']||_0x5b8f5a['isAtEnd']?_0x15ed83&&_0x15ed83['parent']==_0x3aa39a||(_0x15ed83=_0x3aa39a,_0x25ebaf(_0x2e105a['previousPosition']),_0x1ce44b=!0x0):_0x3671fb=_0x3671fb||_0x2e105a['previousPosition']));}function _0x25ebaf(_0x3ab92e){const {id:_0x54bc76,authorId:_0x5d798e}=_0x5bba7f['_splitMarkerName'](_0x1d35ba['markerName']),_0x45925a=_0x57f697['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x34068e,'data-suggestion':_0x54bc76,'data-author-id':_0x5d798e}),_0x888be8=_0x57f697['mapper']['toViewPosition'](_0x3ab92e);_0x47a886&&_0x5bba7f['activeMarkers']['includes'](_0x1d35ba['markerName'])&&_0x57f697['writer']['addClass']('ck-suggestion-marker--active',_0x45925a),_0x57f697['writer']['insert'](_0x888be8,_0x45925a),_0x57f697['mapper']['bindElementToMarker'](_0x45925a,_0x1d35ba['markerName']);}_0x55c536||_0x1ce44b||!_0x3671fb||_0x25ebaf(_0x3671fb);};}class z extends _0x31a850{static get['requires'](){return[_0x5933fc];}['init'](){const _0x43b984=this['editor'],_0x35f2d2=_0x43b984['plugins']['get']('TrackChangesEditing');_0x35f2d2['enableCommand']('delete');const _0x44b410=_0x43b984['commands']['get']('deleteForward');_0x35f2d2['enableCommand']('deleteForward',(_0x377263,_0x46b4e2={})=>{const _0x320686=_0x43b984['model']['createSelection'](_0x43b984['model']['document']['selection']);_0x320686['isCollapsed']&&_0x43b984['model']['modifySelection'](_0x320686,{'direction':'forward','unit':_0x46b4e2['unit']});const _0x1c8890=_0x320686['getFirstRange'](),_0x171b14=_0x275766['fromRange'](_0x1c8890);let _0x267055;_0x377263(_0x46b4e2),_0x267055='$graveyard'==_0x171b14['root']['rootName']?_0x43b984['model']['createRange'](_0x1c8890['start']):_0x43b984['model']['createRange'](_0x171b14['start'],_0x171b14['end']),_0x171b14['detach'](),_0x43b984['model']['enqueueChange'](_0x44b410['buffer']['batch'],_0x1ef327=>{_0x44b410['buffer']['lock'](),_0x1ef327['setSelection'](_0x1ef327['createRange'](_0x267055['end'])),_0x44b410['buffer']['unlock']();});}),_0x43b984['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x43b984,'merge'),{'priority':'high'}),_0x43b984['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1c281c,_0x5a80fe,_0x131c10)=>{_0x131c10['options']['showSuggestionHighlights']&&Fe(_0x43b984,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1c281c,_0x5a80fe,_0x131c10);},{'priority':'high'}),_0x43b984['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x52669c,_0x99988c,_0x3a67fc)=>{const _0x276c5f=_0x3a67fc['mapper']['markerNameToElements'](_0x99988c['markerName']);if(_0x276c5f){for(const _0xd3bcfd of _0x276c5f)_0xd3bcfd['is']('uiElement')&&(_0x3a67fc['mapper']['unbindElementFromMarkerName'](_0xd3bcfd,_0x99988c['markerName']),_0x3a67fc['writer']['remove'](_0xd3bcfd));}},{'priority':'high'});}}class W extends _0x31a850{['afterInit'](){const _0x2c3fed=this['editor'];if(!_0x2c3fed['plugins']['has']('ListEditing'))return;const _0x19f69d=_0x2c3fed['locale'],_0x1cd784=_0x2c3fed['plugins']['get']('TrackChangesEditing'),_0x377c10=_0x2c3fed['plugins']['has']('TodoListEditing'),_0x593ed3=!!_0x2c3fed['config']['get']('list.multiBlock');function _0x28119a(_0xdd4f2){return{'type':'format','content':''+c(_0x19f69d,'*Set\x20format:*\x20%0',_0xdd4f2)};}function _0x5507c0(_0x457e50){return{'type':'format','content':''+c(_0x19f69d,'*Remove\x20format:*\x20%0',_0x457e50)};}_0x1cd784['enableDefaultAttributesIntegration']('numberedList'),_0x1cd784['enableDefaultAttributesIntegration']('bulletedList'),_0x1cd784['enableDefaultAttributesIntegration']('customNumberedList'),_0x1cd784['enableDefaultAttributesIntegration']('customBulletedList'),_0x1cd784['enableDefaultAttributesIntegration']('indentList'),_0x1cd784['enableDefaultAttributesIntegration']('outdentList'),_0x1cd784['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1cd784['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1cd784['registerBlockAttribute']('listItemId'),_0x1cd784['registerBlockAttribute']('listType'),_0x1cd784['registerBlockAttribute']('listIndent'),_0x593ed3&&(_0x1cd784['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1cd784['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x377c10&&(_0x1cd784['enableDefaultAttributesIntegration']('todoList'),_0x1cd784['enableDefaultAttributesIntegration']('checkTodoList'),_0x1cd784['registerBlockAttribute']('todoListChecked'),_0x1cd784['descriptionFactory']['registerDescriptionCallback'](_0xc7ab93=>{const {data:_0x56681c}=_0xc7ab93;if(_0x56681c&&'todoListChecked'==_0x56681c['key'])return{'type':'format','content':_0x56681c['newValue']?c(_0x19f69d,'*Check\x20item*'):c(_0x19f69d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2eda39=>{if(_0x2eda39['batch']['isUndo'])return!0x1;let _0x201314=!0x1;const _0x33b8f6=_0x1cd784['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4961a3=>'todoListChecked'===_0x1cd784['_getAttributeKey'](_0x4961a3));for(const _0x32f246 of _0x33b8f6){'todo'!=_0x32f246['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1cd784['_findSuggestions'](_0x32f246['getFirstRange'](),'attribute')['find'](_0x9fd7f9=>'listType'===_0x1cd784['_getAttributeKey'](_0x9fd7f9['suggestion']))||(_0x2eda39['removeMarker'](_0x32f246['getFirstMarker']()),_0x201314=!0x0));}return _0x201314;})),_0x1cd784['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x19f69d,'FORMAT_INDENT'));const _0x433e6b={'type':'format','content':''};_0x1cd784['descriptionFactory']['registerDescriptionCallback'](_0x435626=>{const {data:_0x1652f3}=_0x435626;if(!_0x1652f3||'listType'!=_0x1652f3['key'])return;let _0x1d308b=_0x435626['head'];for(;_0x1d308b;){if(_0x1d308b['data']&&(('listStyle'==_0x1d308b['data']['key']||'listMarkerStyle'==_0x1d308b['data']['key'])&&(_0x1d308b['data']['newValue']&&'default'!=_0x1d308b['data']['newValue']||'default'!=_0x1d308b['data']['oldValue']&&!_0x1652f3['newValue'])||!_0x593ed3&&_0x1d308b['data']['key']==u))return _0x433e6b;_0x1d308b=_0x1d308b['next'];}if(null==_0x1652f3['newValue'])switch(_0x1652f3['oldValue']){case'bulleted':return _0x5507c0(c(_0x19f69d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5507c0(c(_0x19f69d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5507c0(c(_0x19f69d,'ELEMENT_TODO_LIST'));}switch(_0x1652f3['newValue']){case'bulleted':return _0x28119a(c(_0x19f69d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x28119a(c(_0x19f69d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x28119a(c(_0x19f69d,'ELEMENT_TODO_LIST'));}}),_0x1cd784['descriptionFactory']['registerDescriptionCallback'](_0x2ea53c=>{const {data:_0x506cab}=_0x2ea53c;if(_0x506cab&&'listIndent'==_0x506cab['key'])return null==_0x506cab['newValue']||null==_0x506cab['oldValue']&&0x0==_0x506cab['newValue']?_0x433e6b:void 0x0;}),_0x1cd784['descriptionFactory']['registerDescriptionCallback'](_0x471f94=>{if('attribute'!=_0x471f94['type'])return;const {data:_0xfe086f}=_0x471f94;if(!_0xfe086f||'listItemId'!=_0xfe086f['key'])return;const _0x59236f=Te(_0x471f94);return'newValue'==_0x59236f?{'type':'format','content':c(_0x19f69d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x59236f?{'type':'format','content':c(_0x19f69d,'*Split:*\x20list\x20item')}:_0x433e6b;}),_0x2c3fed['model']['document']['registerPostFixer'](_0x2400be=>this['listItemIdFixer'](_0x2400be)),_0x2c3fed['model']['document']['registerPostFixer'](_0x1d855e=>this['noTrackChangesFixer'](_0x1d855e)),_0x2c3fed['model']['document']['on']('change:data',(_0x226707,_0x87fe2)=>{if(_0x87fe2['isUndo']||!_0x87fe2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x45324b){if(_0x45324b['batch']['isUndo']||!_0x45324b['batch']['isLocal'])return!0x1;let _0x1cdd3d=!0x1;const _0x542eb4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x93267c=>_0x93267c['data']&&'listItemId'==_0x93267c['data']['key'])['filter'](_0x2248b8=>_0x2248b8['data']['newValue']&&_0x2248b8['data']['oldValue']);for(const _0x1c8c90 of _0x542eb4)Te(_0x1c8c90)||(_0x45324b['removeMarker'](_0x1c8c90['getFirstMarker']()),_0x1cdd3d=!0x0);return _0x1cdd3d;}['noTrackChangesFixer'](_0xa168cc){if(_0xa168cc['batch']['isUndo']||!_0xa168cc['batch']['isLocal'])return!0x1;const _0x3362b2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3362b2['trackChangesCommand']['value'])return!0x1;let _0x44632f=!0x1;const _0x2c57e2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x512d69=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xf25499=>'attribute'==_0xf25499['type'])['filter'](_0xb41842=>_0x2c57e2['includes'](_0xb41842['attributeKey']));if(0x0==_0x512d69['length'])return _0x44632f;for(const _0x197576 of _0x512d69){const _0x72a98f=_0x3362b2['_findSuggestions'](_0x197576['range'],'attribute')['filter'](_0x5ca00f=>!_0x5ca00f['meta']['isNextTo'])['map'](_0x1e8cb6=>_0x1e8cb6['suggestion'])['filter'](_0xd5a4b2=>{const _0x22e3dc=_0x3362b2['_getAttributeKey'](_0xd5a4b2);return _0x2c57e2['includes'](_0x22e3dc);});if(_0x72a98f['length']){for(const _0x49fb68 of _0x72a98f)_0xa168cc['removeMarker'](_0x49fb68['getFirstMarker']());_0x44632f=!0x0;}}return _0x44632f;}['assureChains'](){const _0x1ae5f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5309c4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x32774a;const _0x1957f0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x237b78=>{if(_0x237b78['data']['oldRange']||!_0x237b78['data']['newRange'])return null;if(!_0x237b78['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x7c7c88}=_0x1ae5f6['_splitMarkerName'](_0x237b78['name']);if(!_0x1ae5f6['hasSuggestion'](_0x7c7c88))return null;const _0x15b6d6=_0x1ae5f6['getSuggestion'](_0x7c7c88);return _0x5309c4['includes'](_0x15b6d6['data']['key']);})['map'](_0x4aa7ca=>{const {id:_0x539f73}=_0x1ae5f6['_splitMarkerName'](_0x4aa7ca['name']),_0x58c184=_0x1ae5f6['getSuggestion'](_0x539f73);return _0x32774a=_0x58c184['attributes']['groupId'],_0x58c184['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1957f0['size'])return;const _0x1585c6=_0x1ae5f6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2eeec3=>'attribute'==_0x2eeec3['type']&&_0x2eeec3['data']&&_0x5309c4['includes'](_0x2eeec3['data']['key'])&&_0x2eeec3['attributes']['groupId']!=_0x32774a)['map'](_0x57eaee=>({'listItem':_0x57eaee['getFirstRange']()['start']['nodeAfter'],'groupId':_0x57eaee['attributes']['groupId']})),_0x1ad87a=new Set();for(const {groupId:_0x41b02b,listItem:_0x1dc5ba}of _0x1585c6)_0x1957f0['has'](_0x1dc5ba)&&_0x1ad87a['add'](_0x41b02b);for(const _0x88349f of _0x1ae5f6['getSuggestions']())_0x1ad87a['has'](_0x88349f['attributes']['groupId'])&&_0x88349f['setAttribute']('groupId',_0x32774a);}['_supportLegacySuggestions'](){const _0x4fefec=this['editor'],_0x4b0664=_0x4fefec['locale'],_0x33991=_0x4fefec['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x33991['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4e7edb,_0x7c625){const _0x27829d=[];for(let _0x51b7f7 of _0x4e7edb)_0x51b7f7['start']['nodeAfter']===_0x51b7f7['end']['parent']&&(_0x51b7f7=_0x4fefec['model']['createRange'](_0x4fefec['model']['createPositionAt'](_0x51b7f7['start']['nodeAfter'],0x0))),_0x27829d['push'](_0x51b7f7);_0x4fefec['model']['change'](_0x1b459d=>{const _0x11a414=_0x4fefec['model']['document']['selection'],_0xfaa715=Array['from'](_0x11a414['getRanges']())['map'](_0xf03844=>_0x275766['fromRange'](_0xf03844));_0x1b459d['setSelection'](_0x27829d),_0x4fefec['commands']['get'](_0x7c625['commandName'])['refresh'](),_0x7c625['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4fefec['execute'](_0x7c625['commandName'],..._0x7c625['commandParams']),_0x1b459d['setSelection'](_0xfaa715);for(const _0x6fec3 of _0xfaa715)_0x6fec3['detach']();});}),_0x33991['descriptionFactory']['registerElementLabel'](function(_0x493be2){const _0x3ad331=!_0x4fefec['model']['schema']['isObject'](_0x493be2),_0x56bb96=_0x493be2['previousSibling'],_0x3575df=_0x493be2['nextSibling'],_0x28d17c=_0x493be2['getAttribute']('listItemId'),_0x594648=!_0x56bb96||_0x56bb96['getAttribute']('listItemId')!==_0x28d17c,_0x5336ef=!_0x3575df||_0x3575df['getAttribute']('listItemId')!==_0x28d17c;return _0x3ad331&&Boolean(_0x28d17c)&&_0x594648&&_0x5336ef;},_0x39a7b8=>c(_0x4b0664,'ELEMENT_LIST_ITEM',_0x39a7b8));}['_registerLegacyDescription'](){const _0x5f4f07=this['editor'],_0x463004=_0x5f4f07['locale'];function _0xaaa641(_0x6d3143){const _0x3df98c=_0x5f4f07['commands']['get']('bulletedList')['value'],_0x442115=_0x5f4f07['commands']['get']('numberedList')['value'];return'numberedList'===_0x6d3143?_0x3df98c:_0x442115;}_0x5f4f07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5ce1f9){if('formatBlock'!=_0x5ce1f9['type'])return;const {data:_0x60a7d7}=_0x5ce1f9;if(!_0x60a7d7)return;let _0x2b2466,_0x41b41a,_0x2b3305,_0x424062;switch(_0x60a7d7['commandName']){case'bulletedList':_0x2b3305=_0x60a7d7['commandParams'][0x0]['forceValue'],_0x424062=_0xaaa641(_0x60a7d7['commandName']),_0x2b2466=_0x2b3305?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x424062&&_0x5f4f07['config']['get']('list.multiBlock')||(_0x2b2466='*Change\x20to:*\x20%0'),_0x41b41a={'type':'format','content':c(_0x463004,_0x2b2466,c(_0x463004,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2b3305=_0x60a7d7['commandParams'][0x0]['forceValue'],_0x424062=_0xaaa641(_0x60a7d7['commandName']),_0x2b2466=_0x2b3305?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x424062&&_0x5f4f07['config']['get']('list.multiBlock')||(_0x2b2466='*Change\x20to:*\x20%0'),_0x41b41a={'type':'format','content':c(_0x463004,_0x2b2466,c(_0x463004,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2b2466='*Indent:*\x20%0',_0x41b41a={'type':'format','content':c(_0x463004,_0x2b2466,c(_0x463004,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2b2466=function(_0x255636){const _0x2b87b7=_0x255636['getFirstRange']();let _0x57d5b5=_0x2b87b7['start']['nodeAfter'];for(;_0x57d5b5&&_0x2b87b7['containsItem'](_0x57d5b5);){if(_0x57d5b5['getAttribute']('listIndent')>0x0)return!0x1;_0x57d5b5=_0x57d5b5['nextSibling'];}return!0x0;}(_0x5ce1f9)?c(_0x463004,'*Format:*\x20remove\x20from\x20%0',c(_0x463004,function(_0x5c4832){return'ELEMENT_'+_0x5c4832['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5ce1f9))):c(_0x463004,'*Outdent:*\x20%0',c(_0x463004,'ELEMENT_LIST_ITEM')),_0x41b41a={'type':'format','content':_0x2b2466};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x60a7d7['multipleBlocks']&&(_0x2b2466='*Merge:*\x20%0',_0x41b41a={'type':'deletion','content':c(_0x463004,_0x2b2466,c(_0x463004,'ELEMENT_LIST_ITEM'))});}return _0x41b41a;});}}function Te(_0x139c59){let _0x34411f=_0x139c59['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34411f;){const _0x3119f1=_0x34411f['getAttribute']('listItemId');if(!_0x3119f1)return!0x1;if(_0x3119f1==_0x139c59['data']['newValue'])return'newValue';if(_0x3119f1==_0x139c59['data']['oldValue'])return'oldValue';_0x34411f=_0x34411f['previousSibling'];}return!0x1;}class Se extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x106758=this['editor']['config']['get']('list.properties'),_0x3a0b9c=this['editor']['plugins']['get']('TrackChangesEditing');_0x106758['styles']&&(_0x3a0b9c['enableDefaultAttributesIntegration']('listStyle'),_0x3a0b9c['registerBlockAttribute']('listStyle')),_0x106758['reversed']&&(_0x3a0b9c['enableDefaultAttributesIntegration']('listReversed'),_0x3a0b9c['registerBlockAttribute']('listReversed')),_0x106758['startIndex']&&(_0x3a0b9c['enableDefaultAttributesIntegration']('listStart'),_0x3a0b9c['registerBlockAttribute']('listStart'));const _0x3a9fa4={'type':'format','content':''};_0x3a0b9c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5292a2=this['editor']['locale'];_0x3a0b9c['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x5292a2,'FORMAT_LIST_REVERSED')),_0x3a0b9c['descriptionFactory']['registerDescriptionCallback'](_0x4f5371=>{const {data:_0x3b6113}=_0x4f5371;if(_0x3b6113&&'listReversed'==_0x3b6113['key'])return null==_0x3b6113['newValue']||0x0==_0x3b6113['newValue']&&null==_0x3b6113['oldValue']?_0x3a9fa4:void 0x0;}),_0x3a0b9c['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x5292a2,'FORMAT_LIST_START')),_0x3a0b9c['descriptionFactory']['registerDescriptionCallback'](_0x3bb01e=>{const {data:_0x12ce02}=_0x3bb01e;if(_0x12ce02&&'listStart'==_0x12ce02['key'])return null==_0x12ce02['newValue']||0x1==_0x12ce02['newValue']&&null==_0x12ce02['oldValue']?_0x3a9fa4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1c4601=>{if(_0x1c4601['batch']['isUndo'])return!0x1;let _0x272a60=!0x1;const _0xf1bdd4=_0x3a0b9c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e1676=>{const _0x349893=_0x3a0b9c['_getAttributeKey'](_0x5e1676);return'listStart'==_0x349893||'listReversed'==_0x349893;});for(const _0x31f7fe of _0xf1bdd4){const _0x3aef7e=_0x31f7fe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3aef7e||'customNumbered'==_0x3aef7e)continue;_0x3a0b9c['_findSuggestions'](_0x31f7fe['getFirstRange'](),'attribute')['find'](_0x16127b=>'listType'==_0x3a0b9c['_getAttributeKey'](_0x16127b['suggestion']))||(_0x1c4601['removeMarker'](_0x31f7fe['getFirstMarker']()),_0x272a60=!0x0);}return _0x272a60;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1be3e2){const _0x565b56=this['editor']['locale'],{data:_0x34b3f3}=_0x1be3e2,_0x3538d5={'type':'format','content':''};if(!_0x34b3f3||'listStyle'!=_0x34b3f3['key'])return;if(!_0x34b3f3['oldValue'])return'default'==_0x34b3f3['newValue']?_0x3538d5:{'type':'format','content':''+c(_0x565b56,'*Set\x20format:*\x20%0',c(_0x565b56,this['_getTranslationKeyForListStyle'](_0x34b3f3['newValue'])))};if(!_0x34b3f3['newValue']){if('default'==_0x34b3f3['oldValue'])return _0x3538d5;let _0x367436=_0x1be3e2['head'];for(;_0x367436;){if(_0x367436['data']&&'listType'==_0x367436['data']['key']&&_0x367436['data']['newValue'])return _0x3538d5;_0x367436=_0x367436['next'];}return{'type':'format','content':''+c(_0x565b56,'*Remove\x20format:*\x20%0',c(_0x565b56,this['_getTranslationKeyForListStyle'](_0x34b3f3['oldValue'])))};}if('default'!=_0x34b3f3['newValue'])return{'type':'format','content':''+c(_0x565b56,'*Set\x20format:*\x20%0',c(_0x565b56,this['_getTranslationKeyForListStyle'](_0x34b3f3['newValue'])))};let _0x324394=_0x1be3e2['head'];for(;_0x324394;){if(_0x324394['data']&&'listType'==_0x324394['data']['key']&&_0x324394['data']['newValue']&&_0x324394['data']['oldValue'])return _0x3538d5;_0x324394=_0x324394['next'];}return{'type':'format','content':c(_0x565b56,'*Set\x20format:*\x20%0',c(_0x565b56,'ELEMENT_'+_0x1be3e2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1dc452=this['editor'],_0x1f890b=_0x1dc452['locale'];_0x1dc452['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50233f=>{if('formatBlock'!=_0x50233f['type'])return;const {data:_0x1a9f4b}=_0x50233f;if(!_0x1a9f4b)return;let _0xf77e53,_0x46236f;switch(_0x1a9f4b['commandName']){case'listStyle':_0xf77e53='*Change\x20to:*\x20%0',_0x46236f={'type':'format','content':c(_0x1f890b,_0xf77e53,c(_0x1f890b,this['_getTranslationKeyForListStyle'](_0x1a9f4b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xf77e53=_0x1a9f4b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x46236f={'type':'format','content':c(_0x1f890b,_0xf77e53)};break;case'listStart':_0xf77e53='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x46236f={'type':'format','content':c(_0x1f890b,_0xf77e53,_0x1a9f4b['commandParams'][0x0]['startIndex'])};}return _0x46236f;});}['_getTranslationKeyForListStyle'](_0x4dc647){return'ELEMENT_'+function(_0x24ec39){if(_e['includes'](_0x24ec39))return'bulleted';if(Re['includes'](_0x24ec39))return'numbered';return null;}(_0x4dc647)['toUpperCase']()+'_LIST_'+_0x4dc647['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x31a850{['afterInit'](){const _0x259e6a=this['editor'];_0x259e6a['commands']['get']('emoji')&&_0x259e6a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x31a850{static get['requires'](){return[_0x58bc11];}['init'](){const _0xeb392c=this['editor'],_0x20857b=_0xeb392c['plugins']['get']('TrackChangesEditing'),_0x253b1b=_0xeb392c['commands']['get']('enter');_0x20857b['enableCommand']('enter',()=>{_0xeb392c['model']['change'](_0x3faeec=>{const _0x193dd9=_0xeb392c['model']['document']['selection'],_0x534fb2=_0x193dd9['getFirstPosition'](),_0x394df1=_0x275766['fromRange'](_0x193dd9['getFirstRange']());if(_0x253b1b['enterBlock'](_0x3faeec)){const _0x12b99b=_0xeb392c['model']['createPositionAt'](_0x534fb2['parent']['nextSibling'],0x0),_0x5011b0=_0x3faeec['createRange'](_0x534fb2,_0x12b99b);_0x20857b['markInsertion'](_0x5011b0);}else _0x3faeec['setSelection'](_0x3faeec['createRange'](_0x394df1['end']));_0x394df1['detach'](),_0x253b1b['fire']('afterExecute',{'writer':_0x3faeec});});}),_0xeb392c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0xeb392c,'split'),{'priority':'high'}),_0xeb392c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1f3760,_0x40efc2,_0x5f0cd7)=>{const _0x258e4d=_0x5f0cd7['mapper']['markerNameToElements'](_0x40efc2['markerName']);if(_0x258e4d){for(const _0x246be7 of _0x258e4d)_0x246be7['hasClass']('ck-suggestion-marker-split')&&(_0x5f0cd7['mapper']['unbindElementFromMarkerName'](_0x246be7,_0x40efc2['markerName']),_0x5f0cd7['writer']['remove'](_0x246be7));}},{'priority':'high'}),_0xeb392c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x173afd,_0x151e64,_0x462677)=>{_0x462677['options']['showSuggestionHighlights']&&Fe(_0xeb392c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x173afd,_0x151e64,_0x462677);},{'priority':'high'});}}class Z extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5160b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x5160b8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5160b8['enableCommand']('findNext'),_0x5160b8['enableCommand']('findPrevious'),_0x5160b8['enableCommand']('replace'),_0x5160b8['enableCommand']('replaceAll');}['handleFindCommand'](_0x43d628,_0x29d95f,_0x347147={}){const _0xe3f935=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x43d628(_0x38482e=>{let _0x5e6980=('string'==typeof _0x29d95f?_0xe3f935['findByTextCallback'](_0x29d95f,_0x347147):_0x29d95f)(_0x38482e);Array['isArray'](_0x5e6980)&&(_0x5e6980={'results':_0x5e6980,'searchText':'string'==typeof _0x29d95f?_0x29d95f:''});const _0x193bed=_0x5e6980['results']['filter'](_0x2b0f1a=>!0x1===this['_isInDeletionRange'](_0x2b0f1a,_0x38482e['item']));return{..._0x5e6980,'results':_0x193bed};},_0x347147);}['_isInDeletionRange'](_0x1d2402,_0x1ed959){const _0x1b109b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1ed959,_0x1d2402['start']),this['editor']['model']['createPositionAt'](_0x1ed959,_0x1d2402['end']));for(const _0x4ab394 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1b109b['getIntersection'](_0x4ab394['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x31a850{['afterInit'](){const _0x5266be=this['editor']['locale'],_0x4f8202=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x83cdfc,commandName:_0x1e69ed}of ro)this['editor']['plugins']['has'](_0x83cdfc)&&(_0x4f8202['enableDefaultAttributesIntegration'](_0x1e69ed),_0x4f8202['registerInlineAttribute'](_0x1e69ed));_0x4f8202['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x5266be,'FORMAT_FONT_SIZE')),_0x4f8202['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x5266be,'FORMAT_FONT_FAMILY')),_0x4f8202['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x5266be,'FORMAT_FONT_COLOR')),_0x4f8202['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x5266be,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c4f6c=this['editor'],_0x2e345f=_0x1c4f6c['locale'];_0x1c4f6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a67e0=>{const _0x2e2a1d=_0x2e345f['t'];if('formatInline'!=_0x1a67e0['type'])return;const {data:_0x3330c0}=_0x1a67e0;if(null!=_0x3330c0){if('fontSize'==_0x3330c0['commandName']){const _0x130645=_0x3330c0['commandParams'][0x0]['value'];if(_0x130645){const _0x29e934=_0x2e2a1d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xbb4f8b=>_0xbb4f8b['model']==_0x130645)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2e345f,'*Set\x20font\x20size:*\x20%0',_0x29e934)};}return{'type':'format','content':c(_0x2e345f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3330c0['commandName']){const _0x18b2e4=_0x3330c0['commandParams'][0x0]['value'];return _0x18b2e4?{'type':'format','content':c(_0x2e345f,'*Set\x20font\x20family:*\x20%0',_0x18b2e4)}:{'type':'format','content':c(_0x2e345f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3330c0['commandName']){const _0x2cb462=_0x3330c0['commandParams'][0x0]['value'];if(_0x2cb462){const _0x3bc3d3=_0x299ee1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x34c09b=>_0x34c09b['model']==_0x2cb462);let _0x3002ab=_0x2cb462,_0x5d2a07='';return _0x3bc3d3&&(_0x3002ab=_0x3bc3d3['label'],_0x5d2a07=_0x2e2a1d(_0x3002ab)['toLowerCase']()),{'type':'format','content':c(_0x2e345f,'*Set\x20font\x20color:*\x20%0',_0x5d2a07)['trim'](),'color':{'value':_0x2cb462,'title':_0x5d2a07||_0x3002ab}};}return{'type':'format','content':c(_0x2e345f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3330c0['commandName']){const _0x3f0d06=_0x3330c0['commandParams'][0x0]['value'];if(_0x3f0d06){const _0x4ad64f=_0x299ee1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x25af8e=>_0x25af8e['model']==_0x3f0d06);let _0xeb1ced=_0x3f0d06,_0x766bd='';return _0x4ad64f&&(_0xeb1ced=_0x4ad64f['label'],_0x766bd=_0x2e2a1d(_0xeb1ced)['toLowerCase']()),{'type':'format','content':c(_0x2e345f,'*Set\x20font\x20background\x20color:*\x20%0',_0x766bd)['trim'](),'color':{'value':_0x3f0d06,'title':_0x766bd||_0xeb1ced}};}return{'type':'format','content':c(_0x2e345f,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x31a850{['afterInit'](){const _0x5acab6=this['editor'],_0x52d466=_0x5acab6['plugins']['get']('TrackChangesEditing'),_0x4b8d2b=_0x5acab6['commands']['get']('copyFormat'),_0x3cad5f=_0x5acab6['commands']['get']('pasteFormat');_0x4b8d2b&&_0x3cad5f&&(_0x52d466['enableDefaultAttributesIntegration']('pasteFormat'),_0x52d466['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x118413=this['editor'],_0xe3c504=_0x118413['locale'];_0x118413['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x105c50=>{if('formatBlock'!=_0x105c50['type']&&'formatInline'!=_0x105c50['type'])return;const {data:_0x50cb38}=_0x105c50;if(_0x50cb38&&'pasteFormat'===_0x50cb38['commandName']){const _0x1cc7df=[],_0x32fa9b=_0x50cb38['commandParams'][0x0];for(const [_0x4bfcae,_0x4c01e3]of Object['entries'](_0x32fa9b))_0x1cc7df['push'](so(_0x118413,_0x4bfcae,_0x4c01e3));return _0x1cc7df['length']?{'type':'format','content':c(_0xe3c504,'*Set\x20format\x20to:*\x20%0',_0x1cc7df['join'](',\x20'))}:{'type':'format','content':c(_0xe3c504,'*Remove\x20all\x20formatting*')};}});}}function so(_0x381ddb,_0x355156,_0x109378){const _0x54a73e=_0x381ddb['locale']['t'],_0x5bb5f7=_0x355156['split'](/(?=[A-Z])/)['join']('\x20'),_0x29ff81=_0x54a73e(_0x5bb5f7['charAt'](0x0)['toUpperCase']()+_0x5bb5f7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x109378)return _0x29ff81;if('fontColor'===_0x355156||'fontBackgroundColor'===_0x355156){const _0x6ae4af=_0x299ee1(_0x381ddb['config']['get']('fontColor.colors'))['find'](_0x2baaa3=>_0x2baaa3['model']==_0x109378);return _0x29ff81+'\x20('+(_0x6ae4af?_0x54a73e(_0x6ae4af['label'])['toLowerCase']():_0x109378)+')';}if('fontSize'===_0x355156&&isNaN(parseFloat(_0x109378))){const _0xeec370=_0x381ddb['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x381ddb['config']['get']('fontSize.options'))['find'](_0x493856=>_0x493856['model']==_0x109378);return _0x29ff81+'\x20('+(_0xeec370?_0x54a73e(_0xeec370['title'])['toLowerCase']():_0x109378)+')';}return _0x29ff81+'\x20('+_0x109378+')';}class et extends _0x31a850{['_headingOptions'];['afterInit'](){const _0x1dcfcc=this['editor'];if(!_0x1dcfcc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1dcfcc['config']['get']('heading.options');const _0x64fb85=_0x1dcfcc['locale'],_0x14b64b=_0x1dcfcc['plugins']['get']('TrackChangesEditing');_0x14b64b['enableDefaultAttributesIntegration']('heading');for(const _0xddd678 of this['_headingOptions'])'paragraph'!=_0xddd678['model']&&_0x14b64b['descriptionFactory']['registerElementLabel'](_0xddd678['model'],_0x1fe5fe=>{const _0xb87e6f=this['_getHeadingLevel'](_0xddd678['model']);return null!==_0xb87e6f?_0x446836(_0x1fe5fe,_0xb87e6f):_0x47620b(_0x1fe5fe,_0xddd678['title']);});function _0x446836(_0x2a0585,_0x28405a){return c(_0x64fb85,'ELEMENT_HEADING',[_0x2a0585,_0x28405a]);}function _0x47620b(_0x5320f6,_0x29a4cc){return c(_0x64fb85,'ELEMENT_HEADING_CUSTOM',[_0x5320f6,_0x29a4cc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c6638=this['editor'],_0x2766b0=_0x1c6638['locale'];function _0x4fe41d(_0x158bf7,_0x301ceb){return c(_0x2766b0,'ELEMENT_HEADING_CUSTOM',[_0x158bf7,_0x301ceb]);}_0x1c6638['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14667f=>{if('formatBlock'!=_0x14667f['type'])return;const {data:_0x2dca71}=_0x14667f;if(_0x2dca71&&'heading'==_0x2dca71['commandName']){const _0x2a953c=_0x2dca71['commandParams'][0x0]['value'],_0x5c7800=this['_getHeadingLevel'](_0x2a953c);if(null!==_0x5c7800)return{'type':'format','content':c(_0x2766b0,'*Change\x20to:*\x20%0',(_0x1962bc=0x1,_0x4bab2e=_0x5c7800,c(_0x2766b0,'ELEMENT_HEADING',[_0x1962bc,_0x4bab2e])))};const _0x237ea4=this['_headingOptions']['find'](_0x31e71e=>_0x31e71e['model']===_0x2a953c)['title'];return{'type':'format','content':c(_0x2766b0,'*Change\x20to:*\x20%0',_0x4fe41d(0x1,_0x237ea4))};}var _0x1962bc,_0x4bab2e;});}['_getHeadingLevel'](_0x3df28c){const _0x116019=_0x3df28c['match'](/^heading(\d+)/);if(_0x116019)return _0x116019[0x1];const _0x30a03=this['_headingOptions']?.['find'](_0x54367a=>_0x54367a['model']==_0x3df28c);if(_0x30a03&&_0x30a03['view']){const _0x5e0e3c=_0x30a03['view'],_0x19b6fd=(_0x5e0e3c['name']??_0x5e0e3c)['match'](/^h(\d+)/);if(_0x19b6fd)return _0x19b6fd[0x1];}return null;}}class nt extends _0x31a850{['afterInit'](){const _0x484526=this['editor'];if(!_0x484526['plugins']['has']('HighlightEditing'))return;const _0x3bcaf0=_0x484526['plugins']['get']('TrackChangesEditing'),_0x5d43d5=_0x484526['locale'];_0x3bcaf0['enableDefaultAttributesIntegration']('highlight'),_0x3bcaf0['registerInlineAttribute']('highlight'),_0x3bcaf0['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5d43d5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc1451=this['editor'],_0x65a47a=_0xc1451['locale'];_0xc1451['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x374d7f=>{if('formatInline'!=_0x374d7f['type'])return;const {data:_0x1843c6}=_0x374d7f;if(_0x1843c6&&'highlight'==_0x1843c6['commandName']){const _0x774cfa=_0x65a47a['t'],_0x4b6b02=_0x1843c6['commandParams'][0x0]['value'];if(_0x4b6b02){const _0x57338c=_0xc1451['config']['get']('highlight.options')['find'](_0xb3eded=>_0xb3eded['model']==_0x4b6b02),_0x1c4265=_0x774cfa(_0x57338c['title'])['toLowerCase']();return{'type':'format','content':c(_0x65a47a,'*Set\x20highlight:*\x20%0',_0x1c4265),'color':{'value':_0x57338c['color'],'title':_0x57338c['title']}};}return{'type':'format','content':c(_0x65a47a,'*Remove\x20highlight*',c(_0x65a47a,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x31a850{['afterInit'](){const _0x559197=this['editor'];if(!_0x559197['plugins']['has']('HorizontalLineEditing'))return;_0x559197['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x10ef05=_0x559197['plugins']['get']('TrackChangesEditing'),_0x73ea8d=_0x559197['locale'];_0x10ef05['descriptionFactory']['registerElementLabel']('horizontalLine',_0x302528=>c(_0x73ea8d,'ELEMENT_HORIZONTAL_LINE',_0x302528)),_0x559197['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4d03f0,{writer:_0x19a58e,options:_0x2d9826})=>{if(!_0x2d9826['showSuggestionHighlights'])return null;const _0x580454=_0x19a58e['createContainerElement']('div'),_0x233027=_0x19a58e['createEmptyElement']('hr');return _0x19a58e['addClass']('ck-horizontal-line',_0x580454),_0x19a58e['insert'](_0x19a58e['createPositionAt'](_0x580454,0x0),_0x233027),_0x580454;},'converterPriority':'high'});}}class ot extends _0x31a850{['afterInit'](){const _0x1f8e50=this['editor'];if(!_0x1f8e50['plugins']['has']('HtmlEmbed'))return;const _0x276a86=_0x1f8e50['plugins']['get']('TrackChangesEditing'),_0x30dc16=_0x1f8e50['locale'];_0x276a86['descriptionFactory']['registerElementLabel']('rawHtml',_0x25b2d0=>c(_0x30dc16,'ELEMENT_HTML_EMBED',_0x25b2d0)),_0x276a86['enableDefaultAttributesIntegration']('htmlEmbed'),_0x276a86['registerBlockAttribute']('value'),_0x276a86['descriptionFactory']['registerDescriptionCallback'](_0x564560=>{if('attribute'!=_0x564560['type'])return;const {data:_0x48d86e}=_0x564560;if(_0x48d86e&&'value'==_0x48d86e['key']&&_0x564560['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3cd75b=c(_0x30dc16,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x30dc16,'*Change\x20%0\x20content*',_0x3cd75b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56b200=this['editor'],_0x1d418b=_0x56b200['locale'];_0x56b200['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6d8519=>{if('formatBlock'!=_0x6d8519['type'])return;const {data:_0x2f4707}=_0x6d8519;if(_0x2f4707&&'htmlEmbed'==_0x2f4707['commandName']){const _0x5bd6c8=c(_0x1d418b,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1d418b,'*Change\x20%0\x20content*',_0x5bd6c8)};}});}}class rt extends _0x31a850{['afterInit'](){const _0xedc05=this['editor'];if(!_0xedc05['plugins']['has']('ImageEditing'))return;const _0x11a653=_0xedc05['plugins']['get']('TrackChangesEditing'),_0x23b368=_0xedc05['plugins']['get']('ImageUtils'),_0x46464a=_0xedc05['locale'];_0x11a653['enableCommand']('insertImage'),_0x11a653['descriptionFactory']['registerElementLabel']('imageBlock',_0x3a4fa2=>c(_0x46464a,'ELEMENT_IMAGE',_0x3a4fa2)),_0x11a653['descriptionFactory']['registerElementLabel']('imageInline',_0x5941a4=>c(_0x46464a,'ELEMENT_INLINE_IMAGE',_0x5941a4)),_0x11a653['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x46464a,'ELEMENT_CAPTION')),_0xedc05['plugins']['has']('ImageUploadEditing')&&_0x11a653['enableCommand']('uploadImage'),_0xedc05['plugins']['has']('ImageBlockEditing')&&_0xedc05['plugins']['has']('ImageInlineEditing')&&(_0x11a653['enableCommand']('imageTypeInline',(_0x4f6af3,_0x30546f)=>{const _0x2d6ac8=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']);_0xedc05['model']['change'](()=>{_0x11a653['markBlockFormat'](_0x2d6ac8,{'commandName':'imageTypeInline','commandParams':[_0x30546f]},[],'convertBlockImageToInline');});}),_0x11a653['enableCommand']('imageTypeBlock',(_0x1079da,_0x5ae582)=>{_0xedc05['model']['change'](_0x2462fd=>{let _0x2aa1ca=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']),_0x208647=_0x2462fd['createRangeOn'](_0x2aa1ca);const _0x33cb4e=_0x14a222['fromPosition'](_0x208647['start'],'toPrevious'),_0x1c5022=_0x14a222['fromPosition'](_0x208647['end'],'toNext');_0x11a653['forceDefaultExecution'](()=>_0x1079da(_0x5ae582)),_0x2aa1ca=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']),_0x208647=_0x2462fd['createRangeOn'](_0x2aa1ca);const _0x57a84d=_0x2462fd['createRange'](_0x33cb4e,_0x1c5022);_0x33cb4e['detach'](),_0x1c5022['detach'](),_0x11a653['markBlockFormat'](_0x2aa1ca,{'commandName':'imageTypeInline','commandParams':[_0x5ae582]},[],'convertInlineImageToBlock'),_0x57a84d['start']['isBefore'](_0x208647['start'])&&_0x11a653['markInsertion'](_0x2462fd['createRange'](_0x57a84d['start'],_0x208647['start']),'convertInlineImageToBlock'),_0x208647['end']['isBefore'](_0x57a84d['end'])&&_0x11a653['markInsertion'](_0x2462fd['createRange'](_0x208647['end'],_0x57a84d['end']),'convertInlineImageToBlock');});}),_0x11a653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x11a653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x11a653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x11a653['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x11a653['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x11a653['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x23b9b4])=>{const _0x5e8661=_0x11a653['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x499b41=_0x23b9b4['start'],_0x50f2dc=_0x23b9b4['end'];const _0x1fc2ec=_0xedc05['model']['schema']['getNearestSelectionRange'](_0x499b41,'backward'),_0x3cbbf6=_0xedc05['model']['schema']['getNearestSelectionRange'](_0x50f2dc,'forward');_0x1fc2ec['isCollapsed']&&(_0x499b41=_0x1fc2ec['start']),_0x3cbbf6['isCollapsed']&&(_0x50f2dc=_0x3cbbf6['end']),_0x5e8661([_0xedc05['model']['createRange'](_0x499b41,_0x50f2dc)]);}),_0x11a653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x40d7e0),_0x11a653['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x40d7e0)),_0xedc05['plugins']['has']('ImageCaptionEditing')&&(_0x11a653['enableCommand']('toggleImageCaption',(_0x4cc488,_0x34212f)=>{const _0x43875d=_0xedc05['plugins']['get']('ImageCaptionUtils');let _0x28da1d=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']),_0x837050=_0x43875d['getCaptionFromImageModelElement'](_0x28da1d);_0xedc05['model']['change'](()=>{if(_0x837050)return void _0x11a653['markDeletion'](_0xedc05['model']['createRangeOn'](_0x837050));const _0x3f2271=_0x23b368['isBlockImage'](_0x28da1d);_0x4cc488(_0x34212f),_0x28da1d=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']),_0x837050=_0x43875d['getCaptionFromImageModelElement'](_0x28da1d),_0x11a653['markInsertion'](_0xedc05['model']['createRangeOn'](_0x837050),_0x3f2271?null:'imageCaption');});}),_0x11a653['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x40d7e0));const _0x3646b1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x29f316(_0x31076b,_0x6b4a0d){const _0x4b97bb=_0x3646b1['findIndex'](({type:_0x30b21b,subType:_0x36e78a})=>_0x31076b['type']==_0x30b21b&&_0x31076b['subType']==_0x36e78a),_0x4f1a91=_0x3646b1['findIndex'](({type:_0x2876fb,subType:_0x3f4046})=>_0x6b4a0d['type']==_0x2876fb&&_0x6b4a0d['subType']==_0x3f4046);if(_0x4b97bb<0x0||_0x4f1a91<0x0)return!0x1;const _0x1e20d4=_0x31076b['getFirstRange'](),_0x596ecf=_0x6b4a0d['getFirstRange']();if((0x0==_0x4b97bb||0x1==_0x4b97bb)&&0x2==_0x4f1a91&&_0x1e20d4['isIntersecting'](_0x596ecf))return!0x0;if(0x2==_0x4b97bb&&0x3==_0x4f1a91){const _0xb617c7=_0x11a653['_findSuggestions'](_0x1e20d4,'insertion')['filter'](({suggestion:_0x41bdc7,meta:_0x31f77e})=>_0x31f77e['isOwn']&&'convertInlineImageToBlock'==_0x41bdc7['subType']);if(_0xb617c7['length']>0x1&&_0x596ecf['end']['isEqual'](_0x1e20d4['start']))return!0x0;if(0x1==_0xb617c7['length']&&(_0x1e20d4['start']['isEqual'](_0x596ecf['end'])||_0x1e20d4['end']['isEqual'](_0x596ecf['start'])))return!0x0;}if(0x3==_0x4b97bb&&0x3==_0x4f1a91&&_0x1e20d4['start']['isBefore'](_0x596ecf['start'])){const _0x525776=_0x1e20d4['end']['nodeAfter'],_0x54c078=_0x596ecf['start']['nodeBefore'];return _0x23b368['isBlockImage'](_0x525776)&&_0x525776===_0x54c078;}return!0x1;}function _0x40d7e0(_0x3059d2,_0x1c11d1){return _0x29f316(_0x3059d2,_0x1c11d1)?[_0x3059d2,_0x1c11d1]:_0x29f316(_0x1c11d1,_0x3059d2)?[_0x1c11d1,_0x3059d2]:null;}_0xedc05['plugins']['has']('ImageResize')&&(_0x11a653['enableDefaultAttributesIntegration']('resizeImage'),_0x11a653['registerBlockAttribute']('resizedWidth'),_0x11a653['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x46464a,'FORMAT_IMAGE_SIZE'))),_0xedc05['plugins']['has']('ImageTextAlternativeEditing')&&(_0x11a653['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x11a653['registerBlockAttribute']('alt')),_0xedc05['plugins']['has']('PictureEditing')&&(_0x11a653['registerBlockAttribute']('sources'),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0xbb00df=>{if('attribute'!=_0xbb00df['type'])return;const {data:_0x47249c}=_0xbb00df;return _0x47249c&&'sources'==_0x47249c['key']?{'type':'format','content':''}:void 0x0;})),_0xedc05['plugins']['has']('ImageSizeAttributes')&&(_0x11a653['registerBlockAttribute']('width'),_0x11a653['registerBlockAttribute']('height'),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0x54cf1f=>{if('attribute'!=_0x54cf1f['type'])return;const {data:_0x53348c}=_0x54cf1f;return!_0x53348c||'width'!=_0x53348c['key']&&'height'!=_0x53348c['key']?void 0x0:{'type':'format','content':''};})),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0x587094=>{if(!!_0x3646b1['find'](({type:_0x3c6b8d,subType:_0x4c9684})=>_0x587094['type']==_0x3c6b8d&&_0x587094['subType']==_0x4c9684))return _0x587094['previous']?{}:void 0x0;}),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0x33c168=>{if('insertion'==_0x33c168['type']||'deletion'==_0x33c168['type']){const _0x194606=_0x33c168['getContainedElement']();if(_0x194606&&_0x194606['is']('element','caption'))return{'type':'insertion'==_0x33c168['type']?'addObject':'removeObject','element':_0x194606,'quantity':0x1};}}),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0xe0f87c=>'formatBlock'==_0xe0f87c['type']&&'convertInlineImageToBlock'==_0xe0f87c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xe0f87c['type']&&'convertBlockImageToInline'==_0xe0f87c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0x488433=>{if('attribute'!=_0x488433['type'])return;const {data:_0x385e93}=_0x488433;if(!_0x385e93||'alt'!=_0x385e93['key'])return;const _0x551274=_0x385e93['newValue'];return _0x551274?{'type':'format','content':c(_0x46464a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x551274+'\x22')}:{'type':'format','content':c(_0x46464a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x543933=this['editor'],_0x1fcd0a=_0x543933['locale'];_0x543933['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f7e34=>{if('formatBlock'!=_0x3f7e34['type']&&'formatInline'!=_0x3f7e34['type'])return;const {data:_0x54f854}=_0x3f7e34;if(_0x54f854){if('imageTextAlternative'==_0x54f854['commandName']){const _0x1b89c3=_0x54f854['commandParams'][0x0]['newValue'];return _0x1b89c3?{'type':'format','content':c(_0x1fcd0a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b89c3+'\x22')}:{'type':'format','content':c(_0x1fcd0a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x54f854['commandName']){const _0x4d3933=_0x54f854['commandParams'][0x0]['width'];return _0x4d3933?{'type':'format','content':c(_0x1fcd0a,'*Set\x20image\x20width:*\x20%0',_0x4d3933)}:{'type':'format','content':c(_0x1fcd0a,'*Reset\x20image\x20width*')};}}});}}class at extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x372d26=this['editor']['locale'],_0x2170e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x2170e3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2170e3['registerBlockAttribute']('src'),_0x2170e3['descriptionFactory']['registerDescriptionCallback'](_0x14b209=>{if('attribute'!=_0x14b209['type'])return;const {data:_0x4cb4a4}=_0x14b209;return _0x4cb4a4&&'src'==_0x4cb4a4['key']?_0x4cb4a4['newValue']&&_0x4cb4a4['oldValue']?{'type':'format','content':c(_0x372d26,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x50999a=this['editor']['plugins']['get']('TrackChangesEditing');_0x50999a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x50999a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50999a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x50999a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x291860=this['editor'],_0x5943a2=_0x291860['locale'];_0x291860['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3841e0=>{if('formatBlock'!=_0x3841e0['type']&&'formatInline'!=_0x3841e0['type'])return;const {data:_0x120258}=_0x3841e0;if(!_0x120258||'replaceImageSource'!=_0x120258['commandName'])return;return{'type':'format','content':c(_0x5943a2,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x31a850{['afterInit'](){const _0x5e3639=this['editor'];if(!_0x5e3639['plugins']['has']('ImageStyleEditing'))return;const _0xb8888d=_0x5e3639['plugins']['get']('TrackChangesEditing'),_0x5583c1=_0x5e3639['plugins']['get']('ImageUtils'),_0x4876e4={};_0xb8888d['enableCommand']('imageStyle',(_0x2e5fc5,_0x44caab)=>{const _0xf20b9c=_0x5e3639['plugins']['get']('Users')['me'],_0x1aee10=_0x5e3639['commands']['get']('imageStyle');let _0x35a80c=_0x5583c1['getClosestSelectedImageElement'](_0x5e3639['model']['document']['selection']),_0x403b26=_0x5e3639['model']['createRangeOn'](_0x35a80c),_0x5b35ba=_0x1aee10['value'];if(_0x5b35ba==_0x44caab['value'])return;const _0x51c80a={'commandName':'imageStyle','commandParams':[_0x44caab],'formatGroupId':_0x34bf97()};_0x5e3639['model']['change'](()=>{if(_0xb8888d['getSuggestions']()['filter'](_0x1f59a0=>_0x1f59a0['isInContent']&&_0xf20b9c==_0x1f59a0['author']&&('formatBlock'==_0x1f59a0['type']||'formatInline'==_0x1f59a0['type'])&&('imageStylePreApply'==_0x1f59a0['subType']||'imageStylePostApply'==_0x1f59a0['subType'])&&_0x1f59a0['getFirstRange']()['isEqual'](_0x403b26))['forEach'](_0x3edf36=>_0xb8888d['discardSuggestion'](_0x3edf36['head'])),_0x35a80c=_0x5583c1['getClosestSelectedImageElement'](_0x5e3639['model']['document']['selection']),_0x403b26=_0x5e3639['model']['createRangeOn'](_0x35a80c),_0x1aee10['refresh'](),_0x5e3639['commands']['get']('imageTypeInline')['refresh'](),_0x5e3639['commands']['get']('imageTypeBlock')['refresh'](),_0x5b35ba=_0x1aee10['value'],_0x5b35ba!=_0x44caab['value'])return _0x5583c1['isInlineImage'](_0x35a80c)&&_0x1aee10['shouldConvertImageType'](_0x44caab['value'],_0x35a80c)?(_0x2e5fc5({..._0x44caab,'setImageSizes':!0x1}),_0x35a80c=_0x5583c1['getClosestSelectedImageElement'](_0x5e3639['model']['document']['selection']),void _0xb8888d['markBlockFormat'](_0x35a80c,{..._0x51c80a,'commandReversedParams':[{'value':_0x5b35ba||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5583c1['isBlockImage'](_0x35a80c)?_0xb8888d['markBlockFormat'](_0x35a80c,_0x51c80a,[],'imageStylePostApply'):_0xb8888d['markInlineFormat'](_0x403b26,_0x51c80a,'imageStylePostApply'));});});for(const _0x3e8f53 of _0x5e3639['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4876e4[_0x3e8f53['name']]=_0x3e8f53['title']['toLowerCase']();_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2cfc7c])=>{_0x5583c1['setImageNaturalSizeAttributes'](_0x2cfc7c['getContainedElement']());}),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x14d4be,_0x392a63)=>{_0xb8888d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x14d4be,{'commandName':_0x392a63['commandName'],'commandParams':_0x392a63['commandReversedParams']});}),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x516854,_0x1cbb89){if(_0x494245(_0x516854,_0x1cbb89))return[_0x516854,_0x1cbb89];if(_0x494245(_0x1cbb89,_0x516854))return[_0x1cbb89,_0x516854];return null;});const _0x115295=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x494245(_0xac1a48,_0x453ae4){const _0x43dca5=_0x115295['findIndex'](({type:_0x188154,subType:_0x28f32d})=>_0xac1a48['type']==_0x188154&&_0xac1a48['subType']==_0x28f32d),_0xbc7360=_0x115295['findIndex'](({type:_0x5dac13,subType:_0x3a53e4})=>_0x453ae4['type']==_0x5dac13&&_0x453ae4['subType']==_0x3a53e4);if(_0x43dca5<0x0||_0xbc7360<0x0)return!0x1;const _0x3f07e3=_0xac1a48['getFirstRange'](),_0x4f2087=_0x453ae4['getFirstRange']();if((0x0==_0x43dca5||0x1==_0x43dca5)&&0x2==_0xbc7360&&_0x3f07e3['isIntersecting'](_0x4f2087))return!0x0;if(0x2==_0x43dca5&&0x3==_0xbc7360){const _0x149119=_0xb8888d['_findSuggestions'](_0x3f07e3,'insertion')['filter'](({suggestion:_0x1fca49,meta:_0x3cf6d7})=>_0x3cf6d7['isOwn']&&'convertInlineImageToBlock'==_0x1fca49['subType']);if(_0x149119['length']>0x1&&_0x4f2087['end']['isEqual'](_0x3f07e3['start']))return!0x0;if(0x1==_0x149119['length']&&(_0x3f07e3['start']['isEqual'](_0x4f2087['end'])||_0x3f07e3['end']['isEqual'](_0x4f2087['start'])))return!0x0;}if(0x3==_0x43dca5&&0x3==_0xbc7360&&_0x3f07e3['start']['isBefore'](_0x4f2087['start'])){const _0x1533e5=_0x3f07e3['end']['nodeAfter'],_0xfc77b1=_0x4f2087['start']['nodeBefore'];return _0x5583c1['isBlockImage'](_0x1533e5)&&_0x1533e5===_0xfc77b1;}return!0x1;}_0x5e3639['model']['document']['registerPostFixer'](()=>{let _0x8bfb36=!0x1;const _0x4f2f62=Array['from'](_0x5e3639['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d8885,data:_0x3e081b}of _0x4f2f62){const {group:_0x49deb1,type:_0x20c0a7,subType:_0x1314fa,id:_0x5ae904}=_0xb8888d['_splitMarkerName'](_0x2d8885);if('suggestion'==_0x49deb1&&_0xb8888d['hasSuggestion'](_0x5ae904)){if('formatBlock'==_0x20c0a7&&('imageStylePreApply'==_0x1314fa||'imageStylePostApply'==_0x1314fa)){const _0x3066e8=_0xb8888d['getSuggestion'](_0x5ae904);if(_0x3e081b['newRange']){const _0xa511fb=_0x3066e8['getFirstRange']()['getContainedElement']();if(_0x5583c1['isBlockImage'](_0xa511fb))continue;_0xb8888d['discardSuggestion'](_0x3066e8),_0x8bfb36=!0x0;}}if('insertion'==_0x20c0a7&&'imageCaption'==_0x1314fa&&!_0x3e081b['newRange']){const _0x107f91=_0xb8888d['getSuggestion'](_0x5ae904);_0x107f91['next']&&_0x107f91['next']['isInContent']&&(_0xb8888d['discardSuggestion'](_0x107f91['next']),_0x8bfb36=!0x0);}}}return _0x8bfb36;}),this['_registerLegacyDescription'](_0x4876e4);}['_registerLegacyDescription'](_0x224e52){const _0x4fa077=this['editor'],_0x4e37ee=_0x4fa077['locale'];_0x4fa077['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197337=>{if('formatBlock'!=_0x197337['type']&&'formatInline'!=_0x197337['type'])return;const {data:_0x3a2b1a}=_0x197337;if(!_0x3a2b1a||'imageStyle'!=_0x3a2b1a['commandName'])return;const _0x573fab=_0x3a2b1a['commandParams'][0x0]['value'];return _0x4f3ebd('side'===_0x573fab?c(_0x4e37ee,'FORMAT_SIDE_IMAGE'):_0x224e52[_0x573fab]||_0x573fab);function _0x4f3ebd(_0x2cffe3){return{'type':'format','content':c(_0x4e37ee,'*Format:*\x20%0',_0x2cffe3)};}});}}class ut extends _0x31a850{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x792ad1){super(_0x792ad1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x54b05b=this['editor'],_0x507398=_0x54b05b['commands']['get']('importWord'),_0x324430=_0x54b05b['commands']['get']('trackChanges');_0x507398&&(_0x507398['on']('execute',(_0x1fb6a2,[,_0x2e2cf0])=>{this['_trackChangesValueDuringImport']=_0x324430['value'],_0x2e2cf0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x507398,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x507398,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x324430['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x54b05b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1deb1e,_0x9b2018){const {suggestions:_0x30a689}=_0x9b2018,_0x2eda28=this['editor']['commands']['get']('trackChanges'),_0x382fea=_0x2eda28['value'];this['_trackChangesValueDuringImport']!==_0x382fea&&(_0x2eda28['execute'](),this['_trackChangesExecuted']=!0x0),_0x30a689&&_0x30a689['forEach'](({id:_0x577430,type:_0x869fce,author:_0x1252b2,created_at:_0x3799fb})=>{const _0x2ece60={'id':_0x577430,'type':_0x869fce,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1252b2,'createdAt':_0x3799fb?new Date(_0x3799fb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2ece60);});}}class ft extends _0x31a850{['afterInit'](){const _0x51a9ff=this['editor'],_0x58c525=_0x51a9ff['plugins']['get']('TrackChangesEditing');if(_0x51a9ff['plugins']['has']('IndentEditing')&&(_0x58c525['enableCommand']('indent'),_0x58c525['enableCommand']('outdent')),_0x51a9ff['plugins']['has']('IndentBlock')){for(const _0x1a7dff of['indentBlock','outdentBlock'])_0x58c525['enableDefaultAttributesIntegration'](_0x1a7dff);}const _0x5bd6dc=_0x51a9ff['locale'];_0x58c525['registerBlockAttribute']('blockIndent'),_0x58c525['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5bd6dc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bf23e=this['editor'],_0x54333e=_0x5bf23e['locale'],_0x515e8b=_0x5bf23e['plugins']['get']('TrackChangesEditing');_0x515e8b['descriptionFactory']['registerDescriptionCallback'](_0x30ffc8=>{if('formatBlock'!=_0x30ffc8['type'])return;const {data:_0x19f163}=_0x30ffc8;if(!_0x19f163)return;if('indentBlock'!=_0x19f163['commandName']&&'outdentBlock'!=_0x19f163['commandName'])return;const _0x3b393b=_0x30ffc8['getItems']()[0x0],_0x39dccf=_0x515e8b['descriptionFactory']['getItemLabel'](_0x3b393b);return'indentBlock'==_0x19f163['commandName']?{'type':'format','content':c(_0x54333e,'*Indent:*\x20%0',_0x39dccf)}:'outdentBlock'==_0x19f163['commandName']?{'type':'format','content':c(_0x54333e,'*Outdent:*\x20%0',_0x39dccf)}:void 0x0;});}}class ht extends _0x31a850{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x31a850{['afterInit'](){const _0x13b6e3=this['editor'];if(!_0x13b6e3['plugins']['has']('LinkEditing'))return;const _0x444baa=_0x13b6e3['plugins']['get']('TrackChangesEditing'),_0x444c6e=_0x13b6e3['commands']['get']('link');_0x444baa['enableDefaultAttributesIntegration']('link'),_0x444baa['enableDefaultAttributesIntegration']('unlink'),_0x444baa['registerInlineAttribute']('linkHref');for(const _0x4234a7 of _0x444c6e['manualDecorators'])_0x444baa['registerInlineAttribute'](_0x4234a7['id']),_0x444baa['descriptionFactory']['registerAttributeLabel'](_0x4234a7['id'],'link\x20('+_0x4234a7['label']['toLowerCase']()+')');_0x444baa['descriptionFactory']['registerDescriptionCallback'](_0x280ef9=>{if('attribute'!=_0x280ef9['type'])return;const {data:_0x2c4698}=_0x280ef9;if(!_0x2c4698||'linkHref'!=_0x2c4698['key'])return;const _0x3bfdb6=_0x2c4698['newValue'],_0x7f220a=_0x13b6e3['locale'];return{'type':'format','content':null==_0x3bfdb6?c(_0x7f220a,'*Remove\x20link*'):c(_0x7f220a,'*Set\x20link:*\x20%0','\x22'+_0x3bfdb6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x351afd=this['editor'],_0x220ac9=_0x351afd['locale'];_0x351afd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ea620=>{if('formatInline'!=_0x1ea620['type'])return;const {data:_0x14cca9}=_0x1ea620;if(_0x14cca9){if('link'==_0x14cca9['commandName']){const _0x5d840b=_0x14cca9['commandParams'][0x0];return{'type':'format','content':c(_0x220ac9,'*Set\x20link:*\x20%0','\x22'+_0x5d840b+'\x22')};}return'unlink'==_0x14cca9['commandName']?{'type':'format','content':c(_0x220ac9,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x31a850{['afterInit'](){const _0x42f465=this['editor'],_0x5bbc1f=_0x42f465['locale'];if(!_0x42f465['plugins']['has']('LegacyListEditing'))return;const _0x529281=_0x42f465['plugins']['get']('TrackChangesEditing'),_0x5ff3e3=_0x42f465['plugins']['has']('LegacyTodoListEditing');function _0x1efb55(_0x24f065){return()=>{const _0x682786=_0x42f465['model']['document']['selection'],_0x190b21=_0x42f465['commands']['get'](_0x24f065);if(_0x190b21['value'])return void _0x42f465['execute']('paragraph',{});const _0x41fd46=_0x24f065['slice'](0x0,-0x4),_0xedd30d=function(_0x56fcc6,_0x88f454,_0x2d05a5){let _0x21b6d5=Array['from'](_0x56fcc6)['filter'](_0x3b583a=>function(_0x53505c,_0x38b022){return _0x38b022['checkChild'](_0x53505c['parent'],'listItem')&&!_0x38b022['isObject'](_0x53505c);}(_0x3b583a,_0x2d05a5));_0x21b6d5=_0x21b6d5['filter'](_0x1f8407=>!_0x1f8407['is']('element','listItem')||_0x1f8407['getAttribute']('listType')!=_0x88f454);const _0x4dc790=new Set();for(const _0x201854 of _0x21b6d5)_0x201854['is']('element','listItem')?_0x4dc790['add'](Le(_0x201854)):_0x4dc790['add'](_0x201854);return Array['from'](_0x4dc790);}(_0x682786['getSelectedBlocks'](),_0x41fd46,_0x42f465['model']['schema']);_0x42f465['model']['change'](()=>{for(const _0x595dec of _0xedd30d)_0x529281['markBlockFormat'](_0x595dec,{'commandName':_0x24f065,'commandParams':[{'forceValue':!_0x190b21['value']}],'formatGroupId':'blockName'},Ee(_0x595dec));});};}function _0x2bbeeb(_0x2a5f9f){return()=>{const _0x3f0ea4=function(_0x41bc22){let _0x1123f0=Array['from'](_0x41bc22);const _0x2fd307=_0x1123f0['findIndex'](_0x5b2239=>'listItem'!=_0x5b2239['name']);return _0x2fd307>-0x1&&(_0x1123f0=_0x1123f0['slice'](0x0,_0x2fd307)),_0x1123f0;}(_0x42f465['model']['document']['selection']['getSelectedBlocks']()),_0x4b9efd=_0x42f465['model']['createRange'](_0x42f465['model']['createPositionAt'](_0x3f0ea4[0x0],'before'),_0x42f465['model']['createPositionAt'](_0x3f0ea4[_0x3f0ea4['length']-0x1],'end'));_0x42f465['model']['change'](()=>{_0x529281['markBlockFormat'](_0x4b9efd,{'commandName':_0x2a5f9f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2b941d){const _0x3cdfd9=new Set();for(const _0x60297a of _0x2b941d){let _0x12598=_0x60297a['nextSibling'];for(;_0x12598&&_0x12598['getAttribute']('listIndent')>_0x60297a['getAttribute']('listIndent');)_0x3cdfd9['add'](_0x12598),_0x12598=_0x12598['nextSibling'];}return Array['from'](_0x3cdfd9);}(_0x3f0ea4));});};}_0x529281['enableCommand']('numberedList',_0x1efb55('numberedList')),_0x529281['enableCommand']('bulletedList',_0x1efb55('bulletedList')),_0x5ff3e3&&_0x529281['enableCommand']('todoList',_0x1efb55('todoList')),_0x529281['enableCommand']('indentList',_0x2bbeeb('indentList')),_0x529281['enableCommand']('outdentList',_0x2bbeeb('outdentList')),_0x5ff3e3&&_0x529281['enableCommand']('checkTodoList',()=>{const _0x13e089=_0x42f465['commands']['get']('checkTodoList'),_0x12d859=Array['from'](_0x13e089['_selectedElements']);_0x12d859['filter'](_0x36c845=>_0x36c845['getAttribute']('todoListChecked')!=_0x13e089['value']),_0x42f465['model']['change'](()=>{for(const _0x4a15b8 of _0x12d859)_0x529281['markBlockFormat'](_0x4a15b8,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x13e089['value']}]});});}),_0x529281['descriptionFactory']['registerElementLabel']('listItem',_0x59c0f4=>c(_0x5bbc1f,'ELEMENT_LIST_ITEM',_0x59c0f4)),_0x529281['descriptionFactory']['registerDescriptionCallback'](_0x5cf72b=>{if('formatBlock'!=_0x5cf72b['type']&&'formatInline'!=_0x5cf72b['type'])return;const {data:_0x5149f2}=_0x5cf72b;if(_0x5149f2){if('numberedList'==_0x5149f2['commandName']||'bulletedList'==_0x5149f2['commandName']||'todoList'==_0x5149f2['commandName'])switch(_0x5149f2['commandName']['replace']('List','')){case'bulleted':return _0x416315(c(_0x5bbc1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x416315(c(_0x5bbc1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x416315(c(_0x5bbc1f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5149f2['commandName'])return{'type':'format','content':c(_0x5bbc1f,'*Indent:*\x20%0',c(_0x5bbc1f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5149f2['commandName'])return{'type':'format','content':c(_0x5bbc1f,'*Outdent:*\x20%0',c(_0x5bbc1f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5149f2['commandName'])return _0x5149f2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5bbc1f,'*Check\x20item*')}:{'type':'format','content':c(_0x5bbc1f,'*Uncheck\x20item*')};}function _0x416315(_0x58d3e3){return{'type':'format','content':c(_0x5bbc1f,'*Change\x20to:*\x20%0',_0x58d3e3)};}});}}function Le(_0x20358a){const _0x2a5c47=_0x20358a['getAttribute']('listIndent');if(0x0==_0x2a5c47)return _0x20358a;let _0x3c842c=_0x20358a;for(;_0x20358a['previousSibling']&&_0x20358a['previousSibling']['is']('element','listItem');){const _0x45920f=_0x20358a['previousSibling']['getAttribute']('listIndent');if(_0x45920f==_0x2a5c47)_0x3c842c=_0x20358a['previousSibling'];else{if(_0x45920f<_0x2a5c47)break;}_0x20358a=_0x20358a['previousSibling'];}return _0x3c842c;}function Ee(_0x2fa2a2){const _0x2644d0=[];if(_0x2fa2a2['is']('element','listItem')&&_0x2fa2a2['getAttribute']('listIndent')>0x0){let _0x1d576d=_0x2fa2a2['nextSibling'];for(;_0x1d576d&&'listItem'==_0x1d576d['name']&&_0x1d576d['getAttribute']('listIndent')==_0x2fa2a2['getAttribute']('listIndent');)_0x2644d0['push'](_0x1d576d),_0x1d576d=_0x1d576d['nextSibling'];}return _0x2644d0;}class Q extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x326173=this['editor']['config']['get']('list.properties'),_0x11f660=this['editor']['plugins']['get']('TrackChangesEditing');_0x326173['styles']&&_0x11f660['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x326173['reversed']&&_0x11f660['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x326173['startIndex']&&_0x11f660['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x11f660['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2a3743,_0x2eeb4c={}){const _0x468bfb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e5488=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x468bfb['markMultiRangeBlockFormat'](_0x3e5488,{'commandName':'listStyle','commandParams':[{'type':_0x2eeb4c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4fa9f1,_0x58ed45={}){const _0x420d49=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a5ca5=this['_getSuggestionBlocks'](_0x4b3aa4=>_0x4b3aa4['is']('element','listItem')&&'numbered'===_0x4b3aa4['getAttribute']('listType'));if(_0x4a5ca5['length']<0x1)return;const _0x55f09f=_0x4a5ca5['map'](_0x360f59=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x360f59,'before'),this['editor']['model']['createPositionAt'](_0x360f59,0x0)));this['editor']['model']['change'](()=>{_0x420d49['markMultiRangeBlockFormat'](_0x55f09f,{'commandName':'listReversed','commandParams':[{'reversed':_0x58ed45['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x7f829b,_0x43b788={}){const _0x44fda6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x574ebc=this['_getSuggestionBlocks'](_0x566a8d=>_0x566a8d['is']('element','listItem')&&'numbered'===_0x566a8d['getAttribute']('listType'));if(_0x574ebc['length']<0x1)return;const _0x367b81=_0x574ebc['map'](_0x52439a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52439a,'before'),this['editor']['model']['createPositionAt'](_0x52439a,0x0)));this['editor']['model']['change'](()=>{_0x44fda6['markMultiRangeBlockFormat'](_0x367b81,{'commandName':'listStart','commandParams':[{'startIndex':_0x43b788['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1d6572){if('formatBlock'!=_0x1d6572['type']&&'formatInline'!=_0x1d6572['type'])return;const _0x2b9dea=this['editor']['locale'],{data:_0x224baa}=_0x1d6572;if(!_0x224baa)return;let _0x547277,_0xb01608;switch(_0x224baa['commandName']){case'listStyle':_0x547277='*Change\x20to:*\x20%0',_0xb01608={'type':'format','content':c(_0x2b9dea,_0x547277,c(_0x2b9dea,this['_getTranslationKeyForListStyle'](_0x224baa['commandParams'][0x0]['type'])))};break;case'listReversed':_0x547277=_0x224baa['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xb01608={'type':'format','content':c(_0x2b9dea,_0x547277)};break;case'listStart':_0x547277='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xb01608={'type':'format','content':c(_0x2b9dea,_0x547277,_0x224baa['commandParams'][0x0]['startIndex'])};}return _0xb01608;}['_getSuggestionBlocksForListStyle'](){const _0x5842d3=this['editor']['plugins']['get']('LegacyListUtils');let _0x1578a2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1578a2[0x0]?.['is']('element','listItem')&&_0x1578a2['unshift'](..._0x5842d3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1578a2[_0x1578a2['length']-0x1]?.['is']('element','listItem')&&_0x1578a2['push'](..._0x5842d3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1578a2=[...new Set(_0x1578a2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1578a2=_0x1578a2['filter'](_0x19d1c7=>_0x19d1c7['is']('element','listItem'))),_0x1578a2;}['_getSuggestionBlocks'](_0x481813){const _0xad5708=this['editor']['plugins']['get']('LegacyListUtils');let _0x19e32c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x481813)['map'](_0x271139=>{const _0x3f0426=this['editor']['model']['createPositionAt'](_0x271139,0x0);return[..._0xad5708['getSiblingNodes'](_0x3f0426,'backward'),..._0xad5708['getSiblingNodes'](_0x3f0426,'forward')];})['flat']();return _0x19e32c=[...new Set(_0x19e32c)],_0x19e32c;}['_getTranslationKeyForListStyle'](_0x54a7b0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x54a7b0)||'default')['toUpperCase']()+'_LIST_'+_0x54a7b0['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x31a850{['afterInit'](){const _0x3e603f=this['editor'];if(!_0x3e603f['plugins']['has']('MediaEmbedEditing'))return;const _0x5f15be=_0x3e603f['plugins']['get']('TrackChangesEditing'),_0x34e9c1=_0x3e603f['locale'];_0x5f15be['enableCommand']('mediaEmbed'),_0x5f15be['descriptionFactory']['registerElementLabel']('media',_0x3b8d73=>c(_0x34e9c1,'ELEMENT_MEDIA',_0x3b8d73)),_0x3e603f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x389f87,{writer:_0x2cf02c,options:_0x23fab9})=>{if(_0x23fab9['showSuggestionHighlights'])return _0x2cf02c['createEmptyElement']('div');},'converterPriority':'high'}),_0x3e603f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x476651,_0x189500,_0x4fee85)=>{_0x4fee85['options']['showSuggestionHighlights']&&_0x476651['stop']();},{'priority':'high'});}}class pt extends _0x31a850{['afterInit'](){const _0x5eb1e9=this['editor'];_0x5eb1e9['plugins']['has']('MentionEditing')&&_0x5eb1e9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x31a850{['afterInit'](){const _0x2ea097=this['editor'];if(!_0x2ea097['plugins']['has']('MergeFieldsEditing'))return;const _0x552a78=_0x2ea097['plugins']['get']('TrackChangesEditing'),_0x2b9d5f=_0x2ea097['locale'];_0x552a78['enableCommand']('insertMergeField'),_0x552a78['enableCommand']('insertMergeFieldBlock'),_0x552a78['enableCommand']('insertMergeFieldImage'),_0x552a78['descriptionFactory']['registerElementLabel']('mergeField',_0x5de80f=>c(_0x2b9d5f,'ELEMENT_MERGE_FIELD',_0x5de80f)),_0x552a78['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4c08bb=>c(_0x2b9d5f,'ELEMENT_MERGE_FIELD',_0x4c08bb)),_0x552a78['descriptionFactory']['registerDescriptionCallback'](_0x3ea3d9=>{if('insertion'!=_0x3ea3d9['type']&&'deletion'!=_0x3ea3d9['type'])return;const _0x112d76=_0x3ea3d9['getContainedElement']();if(null==_0x112d76)return;const _0x437555=_0x2ea097['plugins']['get']('MergeFieldsEditing');let _0xa79c0a;switch(_0x437555['getMergeFieldType'](_0x112d76)){case null:return;case'image':{const _0x289930=_0x437555['unwrapAffixes'](_0x112d76['getAttribute']('src'));_0xa79c0a=_0x437555['getLabel'](_0x289930)||_0x289930;break;}default:{const _0x823282=_0x112d76['getAttribute']('id');_0xa79c0a=_0x437555['getLabel'](_0x823282)||_0x823282;break;}}return'insertion'==_0x3ea3d9['type']?{'type':'insertion','content':c(_0x2b9d5f,'*Insert:*\x20%0','\x22'+_0xa79c0a+'\x22\x20'+c(_0x2b9d5f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x2b9d5f,'*Remove:*\x20%0','\x22'+_0xa79c0a+'\x22\x20'+c(_0x2b9d5f,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x31a850{['afterInit'](){const _0x1eaef0=this['editor'],_0x43d505=_0x1eaef0['plugins']['get']('TrackChangesEditing');_0x1eaef0['plugins']['has']('MultiLevelList')&&(_0x43d505['enableDefaultAttributesIntegration']('multiLevelList'),_0x43d505['registerBlockAttribute']('listMarkerStyle'),_0x43d505['descriptionFactory']['registerDescriptionCallback'](_0x54ea27=>this['handleDescriptions'](_0x54ea27)));}['handleDescriptions'](_0x1d1240){const _0x1cdb69=this['editor']['locale'],{data:_0x2058ca}=_0x1d1240,_0x3815d1={'type':'format','content':''};if(_0x2058ca&&'listMarkerStyle'==_0x2058ca['key']){if(!_0x2058ca['oldValue'])return{'type':'format','content':c(_0x1cdb69,'*Set\x20format:*\x20%0',c(_0x1cdb69,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2058ca['newValue']+')'};if(!_0x2058ca['newValue']){let _0x4c5c53=_0x1d1240['head'];for(;_0x4c5c53;){if(_0x4c5c53['data']&&'listType'==_0x4c5c53['data']['key']&&_0x4c5c53['data']['newValue'])return _0x3815d1;_0x4c5c53=_0x4c5c53['next'];}return{'type':'format','content':c(_0x1cdb69,'*Remove\x20format:*\x20%0',c(_0x1cdb69,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2058ca['oldValue']+')'};}}}}class bt extends _0x31a850{['afterInit'](){const _0x270d0e=this['editor'];if(!_0x270d0e['plugins']['has']('PageBreakEditing'))return;_0x270d0e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x158f0d=_0x270d0e['plugins']['get']('TrackChangesEditing'),_0x9a013a=_0x270d0e['locale'];_0x158f0d['descriptionFactory']['registerElementLabel']('pageBreak',_0x440091=>c(_0x9a013a,'ELEMENT_PAGE_BREAK',_0x440091));}}class yt extends _0x31a850{['afterInit'](){const _0x2f5ba8=this['editor'];if(!_0x2f5ba8['plugins']['has']('Paragraph'))return;const _0x364259=_0x2f5ba8['locale'],_0x335bf8=_0x2f5ba8['plugins']['get']('TrackChangesEditing');_0x335bf8['descriptionFactory']['registerElementLabel']('paragraph',_0x3c2a58=>c(_0x364259,'ELEMENT_PARAGRAPH',_0x3c2a58)),_0x335bf8['enableDefaultAttributesIntegration']('paragraph'),_0x335bf8['enableCommand']('insertParagraph'),_0x2f5ba8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2f5ba8),{'priority':'highest'}),_0x2f5ba8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x235d82,_0x272068,_0x579e2f)=>{_0x579e2f['options']['showSuggestionHighlights']&&nr(_0x2f5ba8,{'showActiveMarker':!0x1})(_0x235d82,_0x272068,_0x579e2f);},{'priority':'highest'});const _0x20a28e=_0x335bf8['descriptionFactory'];_0x20a28e['registerDescriptionCallback'](_0x143575=>{if('insertion'!==_0x143575['type'])return;const {start:_0x1ee7ac,end:_0x54a8a3}=_0x143575['getFirstRange']();if(!_0x1ee7ac['isTouching'](_0x54a8a3)||!_0x1ee7ac['nodeAfter'])return;const _0x21325c=_0x2f5ba8['model']['schema'],_0x2d307b=_0x1ee7ac['nodeAfter'];return _0x21325c['isBlock'](_0x2d307b)&&!_0x21325c['isLimit'](_0x2d307b)&&_0x21325c['checkChild'](_0x2d307b,'$text')?{'type':'insertion','content':c(_0x364259,'*Insert:*\x20%0',_0x20a28e['getItemLabel'](_0x2d307b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f433c=this['editor'],_0xedf20f=_0x2f433c['locale'];_0x2f433c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197c6a=>{if('formatBlock'!=_0x197c6a['type'])return;const {data:_0x4421af}=_0x197c6a;return _0x4421af&&'paragraph'==_0x4421af['commandName']?{'type':'format','content':c(_0xedf20f,'*Change\x20to:*\x20%0',c(_0xedf20f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x333371,{showActiveMarker:_0x1aeec9=!0x0}={}){return(_0x2ce0ae,_0x595bac,_0x295835)=>{const _0x49cdb3=_0x333371['plugins']['get']('TrackChangesEditing'),_0x4eac80=_0x595bac['markerRange']['start'],_0x556335=_0x595bac['markerRange']['end'],_0x375ef0=_0x333371['model']['schema'];if(!_0x4eac80['isTouching'](_0x556335)||!_0x4eac80['nodeAfter'])return;const _0x3ae407=_0x4eac80['nodeAfter'];if(_0x375ef0['isBlock'](_0x3ae407)&&!_0x375ef0['isLimit'](_0x3ae407)&&_0x375ef0['checkChild'](_0x3ae407,'$text')){if(!_0x295835['consumable']['consume'](_0x595bac['markerRange'],_0x2ce0ae['name']))return;const {id:_0x1e8731,authorId:_0x47c8aa}=_0x49cdb3['_splitMarkerName'](_0x595bac['markerName']),_0x3ad2b6=_0x295835['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1e8731,'data-author-id':_0x47c8aa}),_0x3605de=_0x295835['mapper']['toViewPosition'](_0x556335);_0x1aeec9&&_0x49cdb3['activeMarkers']['includes'](_0x595bac['markerName'])&&_0x295835['writer']['addClass']('ck-suggestion-marker--active',_0x3ad2b6),_0x295835['writer']['insert'](_0x3605de,_0x3ad2b6),_0x295835['mapper']['bindElementToMarker'](_0x3ad2b6,_0x595bac['markerName']);}};}class St extends _0x31a850{['afterInit'](){const _0x258ba7=this['editor'];_0x258ba7['commands']['get']('replaceSource')&&_0x258ba7['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x31a850{['afterInit'](){const _0x38d085=this['editor'];if(!_0x38d085['plugins']['has']('RemoveFormatEditing'))return;_0x38d085['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x88f281=this['editor'];_0x88f281['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10dd66=>{if('formatBlock'!=_0x10dd66['type']&&'formatInline'!=_0x10dd66['type'])return;const {data:_0x1affe6}=_0x10dd66;return _0x1affe6&&'removeFormat'==_0x1affe6['commandName']?{'type':'format','content':c(_0x88f281['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x31a850{['afterInit'](){const _0x4f3865=this['editor'];if(!_0x4f3865['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xa1c5d1=_0x4f3865['plugins']['get']('TrackChangesEditing');_0xa1c5d1['enableCommand']('goToPreviousRestrictedEditingException'),_0xa1c5d1['enableCommand']('goToNextRestrictedEditingException');const _0x428697=_0x4f3865['plugins']['get']('RestrictedEditingModeEditing');_0x428697['enableCommand']('trackChanges'),_0x428697['enableCommand']('acceptSuggestion'),_0x428697['enableCommand']('discardSuggestion'),_0x428697['enableCommand']('acceptAllSuggestions'),_0x428697['enableCommand']('discardAllSuggestions'),_0x428697['enableCommand']('acceptSelectedSuggestions'),_0x428697['enableCommand']('discardSelectedSuggestions');}}class At extends _0x31a850{['afterInit'](){const _0x20caf3=this['editor'];if(!_0x20caf3['plugins']['has']('ShiftEnter'))return;const _0x319b91=_0x20caf3['plugins']['get']('TrackChangesEditing');_0x319b91['enableCommand']('shiftEnter'),_0x20caf3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x20caf3),{'priority':'high'}),_0x20caf3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x20caf3),{'priority':'high'}),_0x20caf3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x667586,_0x5f3e3d,_0x1702aa)=>{_0x1702aa['options']['showSuggestionHighlights']&&je(_0x20caf3,{'showActiveMarker':!0x1})(_0x667586,_0x5f3e3d,_0x1702aa);}),_0x319b91['descriptionFactory']['registerElementLabel']('softBreak',_0x1fa215=>c(_0x20caf3['locale'],'ELEMENT_LINE_BREAK',_0x1fa215));}}function je(_0x191a82,{showActiveMarker:_0x53e35d=!0x0}={}){return(_0x21ae40,_0x595262,_0x39da27)=>{const _0x707af0=_0x191a82['plugins']['get']('TrackChangesEditing');if(!_0x39da27['consumable']['test'](_0x595262['markerRange'],_0x21ae40['name']))return;const _0xa179e6=_0x191a82['model'];for(const _0x3b7541 of _0x595262['markerRange']['getItems']()){if(!_0x3b7541['is']('element','softBreak'))continue;const _0x5025c9='deletion'==_0x595262['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2b75ef,authorId:_0xfb143b}=_0x707af0['_splitMarkerName'](_0x595262['markerName']),_0x1dc89c=_0x39da27['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5025c9,'data-suggestion':_0x2b75ef,'data-author-id':_0xfb143b}),_0x597905=_0x39da27['mapper']['toViewPosition'](_0xa179e6['createPositionBefore'](_0x3b7541));_0x53e35d&&_0x707af0['activeMarkers']['includes'](_0x595262['markerName'])&&_0x39da27['writer']['addClass']('ck-suggestion-marker--active',_0x1dc89c),_0x39da27['writer']['insert'](_0x597905,_0x1dc89c),_0x39da27['mapper']['bindElementToMarker'](_0x1dc89c,_0x595262['markerName']);}};}class _t extends _0x31a850{['afterInit'](){const _0x4ecf26=this['editor'],_0x3c8b31=_0x4ecf26['model'],_0x11c219=_0x4ecf26['locale'];if(!_0x4ecf26['plugins']['has']('StandardEditingModeEditing'))return;const _0x4f95c0=_0x4ecf26['plugins']['get']('TrackChangesEditing'),_0x447b0a='restrictedEditingException',_0x108800=_0x4ecf26['commands']['get'](_0x447b0a);_0x4f95c0['enableCommand'](_0x447b0a,(_0x256523,_0x5e8f3d={})=>{const _0x2a2a33=_0x3c8b31['document']['selection'];if(_0x2a2a33['isCollapsed'])return void _0x256523(_0x5e8f3d);const _0x8165=void 0x0!==_0x5e8f3d['forceValue']?_0x5e8f3d['forceValue']:!_0x108800['value'];_0x3c8b31['change'](()=>{const _0x59dbee=Array['from'](_0x2a2a33['getRanges']());for(const _0x347250 of _0x59dbee){const _0x7f8526=_0x8165?[_0x347250]:io(_0x447b0a,_0x347250,_0x3c8b31);for(const _0x712744 of _0x7f8526)_0x4f95c0['markInlineFormat'](_0x712744,{'commandName':_0x447b0a,'commandParams':[{'forceValue':_0x8165}]});}});}),_0x4f95c0['descriptionFactory']['registerDescriptionCallback'](_0x398033=>{if('formatBlock'!=_0x398033['type']&&'formatInline'!=_0x398033['type'])return;const {data:_0x226306}=_0x398033;return _0x226306&&_0x226306['commandName']==_0x447b0a?_0x226306['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x11c219,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x11c219,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x31a850{['afterInit'](){const _0x230b43=this['editor'];if(!_0x230b43['plugins']['has']('Style')||!_0x230b43['plugins']['has']('DataSchema'))return;const _0x40308a=_0x230b43['plugins']['get']('TrackChangesEditing'),_0x4398a4=_0x230b43['locale'],_0x298908=_0x230b43['config']['get']('style')||{},_0x5b0bc3=_0x230b43['plugins']['get']('GeneralHtmlSupport'),_0x30a805=_0x230b43['plugins']['get']('StyleUtils')['normalizeConfig'](_0x230b43['plugins']['get']('DataSchema'),_0x298908['definitions']);_0x40308a['enableDefaultAttributesIntegration']('style');const _0x5d1af1=new Set();for(const _0x38e31a of _0x30a805['block']){const _0x2e2907=_0x5b0bc3['getGhsAttributeNameForElement'](_0x38e31a['element']);_0x5d1af1['add'](_0x2e2907);}const _0x443b3b=new Set();for(const _0x3cbdff of _0x30a805['inline']){const _0x161e7f=_0x5b0bc3['getGhsAttributeNameForElement'](_0x3cbdff['element']);_0x443b3b['add'](_0x161e7f);for(const _0x24cbad of _0x3cbdff['ghsAttributes'])_0x443b3b['add'](_0x24cbad);}for(const _0x5c9c4e of _0x5d1af1)_0x40308a['registerBlockAttribute'](_0x5c9c4e),_0x40308a['descriptionFactory']['registerAttributeLabel'](_0x5c9c4e,c(_0x4398a4,'FORMAT_STYLE'));for(const _0x31f7de of _0x443b3b)_0x40308a['registerInlineAttribute'](_0x31f7de),_0x40308a['descriptionFactory']['registerAttributeLabel'](_0x31f7de,c(_0x4398a4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x189376=this['editor'],_0x3f41b7=_0x189376['locale'];_0x189376['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ba470=>{if('formatBlock'!=_0x2ba470['type']&&'formatInline'!=_0x2ba470['type'])return;const {data:_0x2fe843}=_0x2ba470;return _0x2fe843&&'style'===_0x2fe843['commandName']?_0x2fe843['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3f41b7,'*Set\x20format:*\x20%0',_0x2fe843['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x3f41b7,'*Remove\x20format:*\x20%0',_0x2fe843['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x31a850{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x10ba46){super(_0x10ba46),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x314f52=this['editor'],_0x4c63bf=_0x314f52['model']['document']['selection'];if(!_0x314f52['plugins']['has']('TableEditing'))return;const _0x583b2a=_0x314f52['locale'],_0x41102c=_0x314f52['plugins']['get']('TrackChangesEditing'),_0x53cd83=_0x314f52['plugins']['get']('TableUtils');_0x41102c['descriptionFactory']['registerElementLabel']('table',_0xd17b20=>c(_0x583b2a,'ELEMENT_TABLE',_0xd17b20)),this['_setupColumnsRowsFixing'](),_0x41102c['enableCommand']('insertTable'),_0x41102c['enableCommand']('selectTableRow'),_0x41102c['enableCommand']('selectTableColumn');for(const _0xfde11d of['insertTableRowAbove','insertTableRowBelow']){const _0x1bfcfc=_0x314f52['commands']['get'](_0xfde11d);_0x41102c['enableCommand'](_0xfde11d,_0x3a7eb5=>{_0x314f52['model']['change'](_0x5c9efe=>{_0x3a7eb5();const _0x215d01='above'===_0x1bfcfc['order'],_0x187f38=_0x53cd83['getSelectionAffectedTableCells'](_0x4c63bf),_0x2ff10d=_0x53cd83['getRowIndexes'](_0x187f38),_0x4136ca=_0x215d01?_0x2ff10d['first']-0x1:_0x2ff10d['last']+0x1,_0x4ffdf5=_0x187f38[0x0]['findAncestor']('table'),_0x33fafd=_0x53cd83['createTableWalker'](_0x4ffdf5,{'startRow':_0x4136ca,'endRow':_0x4136ca}),_0x256c5e=Array['from'](_0x33fafd)['map'](_0x5d09d1=>_0x5c9efe['createRangeOn'](_0x5d09d1['cell']));_0x41102c['markMultiRangeInsertion'](_0x256c5e,'tableRow');});});}for(const _0x31eb0b of['insertTableColumnLeft','insertTableColumnRight']){const _0x314cfa=_0x314f52['commands']['get'](_0x31eb0b);_0x41102c['enableCommand'](_0x31eb0b,_0x52d0a6=>{_0x314f52['model']['change'](_0x419590=>{_0x52d0a6();const _0x23c2de='left'===_0x314cfa['order'],_0x48f8b1=_0x53cd83['getSelectionAffectedTableCells'](_0x4c63bf),_0x228dc8=_0x53cd83['getColumnIndexes'](_0x48f8b1),_0x4e951d=_0x23c2de?_0x228dc8['first']-0x1:_0x228dc8['last']+0x1,_0x9ebf09=_0x48f8b1[0x0]['findAncestor']('table'),_0x1112a4=_0x53cd83['createTableWalker'](_0x9ebf09,{'startRow':0x0,'column':_0x4e951d,'includeAllSlots':!0x1}),_0x141334=Array['from'](_0x1112a4)['map'](_0x1629ec=>_0x419590['createRangeOn'](_0x1629ec['cell']));_0x41102c['markMultiRangeInsertion'](_0x141334,'tableColumn');});});}for(const _0x5c493c of['removeTableRow','removeTableColumn']){const _0x2ddedd=_0x5c493c['substr'](0xb),_0x1a3cd9=_0x2ddedd['toLowerCase'](),_0x564e1d=_0x1a3cd9['substr'](0x0,0x3)+'span',_0x2aca7c='table'+_0x2ddedd,_0x1ffe20='min'+_0x2ddedd,_0x5dcb07='max'+_0x2ddedd;_0x41102c['enableCommand'](_0x5c493c,()=>{_0x314f52['model']['change'](_0x424817=>{const _0x5a0595=_0x53cd83['getSelectionAffectedTableCells'](_0x4c63bf),_0x580bc7=_0x5a0595[0x0]['findAncestor']('table');let _0x35b983;if('removeTableRow'==_0x5c493c){const _0x3f9dd2=_0x53cd83['getRowIndexes'](_0x5a0595);_0x35b983={'startRow':_0x3f9dd2['first'],'endRow':_0x3f9dd2['last'],'includeAllSlots':!0x0};}else{const _0x141e6d=_0x53cd83['getColumnIndexes'](_0x5a0595);_0x35b983={'startColumn':_0x141e6d['first'],'endColumn':_0x141e6d['last'],'includeAllSlots':!0x0};}const _0x52bdb3=_0x53cd83['createTableWalker'](_0x580bc7,_0x35b983),_0x518a21=Array['from'](_0x52bdb3)['map'](({cell:_0x27a870})=>_0x27a870),_0x5d73c0=xe(_0x518a21['filter'](_0x1807b3=>_0x1807b3['hasAttribute'](_0x564e1d))),_0x2985be=xe(_0x518a21['filter'](_0x24ae09=>!_0x24ae09['hasAttribute'](_0x564e1d)))['map'](_0x40abcb=>_0x424817['createRangeOn'](_0x40abcb)),_0x26bc00=_0x41102c['markMultiRangeDeletion'](_0x2985be,_0x2aca7c);if(_0x26bc00&&('tableRow'==_0x26bc00['subType']||'tableColumn'==_0x26bc00['subType'])){const _0x32accf=this['_getSuggestionCoords'](_0x26bc00);for(const _0x3dfd70 of _0x5d73c0){const _0x2b87e8=_0x424817['createRangeOn'](_0x3dfd70),_0x56b1db=_0x53cd83['getCellLocation'](_0x3dfd70),_0x3f988b=_0x3dfd70['getAttribute'](_0x564e1d)-0x1,_0x4a36ce=_0x32accf[_0x1ffe20],_0x4d0415=_0x32accf[_0x5dcb07];_0x4a36ce<=_0x56b1db[_0x1a3cd9]&&_0x56b1db[_0x1a3cd9]+_0x3f988b<=_0x4d0415&&_0x26bc00['addRange'](_0x2b87e8);}}});});}function _0x517ccf(_0x5e8beb){const _0x325a28=Array['from'](_0x4c63bf['getRanges']())['map'](_0x1f4655=>_0x275766['fromRange'](_0x1f4655));_0x314f52['model']['change'](_0x36f62b=>{const _0x1b5eef=_0x36f62b['batch'];_0x5e8beb=_0x5e8beb['filter'](_0x2499ff=>'$graveyard'!=_0x2499ff['root']['rootName']),_0x36f62b['setSelection'](_0x5e8beb),_0x314f52['commands']['get']('removeTableRow')['refresh'](),_0x314f52['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x314f52['model']['enqueueChange'](()=>{_0x314f52['model']['enqueueChange'](_0x1b5eef,_0x11726b=>{const _0x5778b6=_0x325a28['filter'](_0x2d1706=>'$graveyard'!=_0x2d1706['root']['rootName']);_0x5778b6['length']>0x0&&_0x11726b['setSelection'](_0x5778b6);for(const _0x3a812a of _0x325a28)_0x3a812a['detach']();});});});}function _0x471934(_0x298595){_0x314f52['model']['change'](_0x3370bd=>{const _0x2f8816=Array['from'](_0x4c63bf['getRanges']())['map'](_0x4a055c=>_0x275766['fromRange'](_0x4a055c)),_0x2fe95c=[];for(const _0x1ef656 of _0x298595)for(const _0x806c59 of _0x1ef656['getItems']({'shallow':!0x0}))_0x2fe95c['push'](_0x806c59);for(const _0x4555b6 of _0x2fe95c)'$graveyard'!=_0x4555b6['root']['rootName']&&(_0x3370bd['setSelection'](_0x3370bd['createPositionAt'](_0x4555b6,0x0)),_0x314f52['commands']['get']('removeTableColumn')['refresh'](),_0x314f52['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x43fbbb=_0x2f8816['filter'](_0x438da1=>'$graveyard'!=_0x438da1['root']['rootName']);_0x43fbbb['length']>0x0&&_0x3370bd['setSelection'](_0x43fbbb);for(const _0x1c042e of _0x2f8816)_0x1c042e['detach']();});}function _0x4cddb9(_0x2cc5fb,_0x35eb85){return _0x35eb85['every'](_0x4d0b77=>_0x2cc5fb['some'](_0x21f1e6=>_0x21f1e6['end']['isEqual'](_0x4d0b77['start'])||_0x4d0b77['end']['isEqual'](_0x21f1e6['start'])));}function _0x41608a(_0x36266b,_0x1e13dc){return!_0x36266b['some'](_0x218a9a=>_0x1e13dc['some'](_0x19c19d=>_0x218a9a['isIntersecting'](_0x19c19d)))&&_0x36266b['some'](_0x4902bb=>_0x1e13dc['some'](_0x36eff9=>_0x4902bb['end']['isTouching'](_0x36eff9['start'])));}_0x314f52['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4cc77f,_0x492587,_0x3e5737)=>{if(!_0x3e5737['options']['showSuggestionHighlights'])return;const _0x119431=_0x492587['item'];if(!_0x119431||!_0x119431['is']('element','tableCell'))return;const _0x43b39b=_0x3e5737['mapper']['toViewElement'](_0x119431);if(_0x43b39b){const {id:_0x5890a3,authorId:_0x23cdb6}=_0x41102c['_splitMarkerName'](_0x492587['markerName']);_0xdde8e0(_0x43b39b,_0x3e5737['writer'],(_0x1bdf9b,_0x4905f7,_0x4eb778)=>{_0x4eb778['addClass'](_0x2fd845(_0x4905f7['classes']),_0x1bdf9b),_0x4eb778['setAttribute']('data-suggestion-id',_0x5890a3,_0x1bdf9b),_0x4eb778['setAttribute']('data-author-id',_0x23cdb6,_0x1bdf9b);},(_0x126a45,_0x541835,_0x83b533)=>{_0x83b533['removeClass'](_0x2fd845(_0x541835['classes']),_0x126a45),_0x83b533['removeAttribute']('data-suggestion-id',_0x126a45),_0x83b533['removeAttribute']('data-author-id',_0x126a45);});}},{'priority':'highest'}),_0x41102c['descriptionFactory']['registerDescriptionCallback'](_0xe4104e=>{if('insertion'!=_0xe4104e['type']&&'deletion'!=_0xe4104e['type'])return;const _0x47217c=_0xe4104e['getContainedElement']();if(null!=_0x47217c&&_0x47217c['is']('element','table')){if('insertion'==_0xe4104e['type']){const _0x527160=_0xe4104e['getItems']()['filter'](_0x18e3df=>_0x18e3df['is']('$textProxy'))['map'](_0xaaffa3=>_0xaaffa3['data']);if(_0x527160['length'])return{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x527160['join']('\x20')+'\x22'))};}if('deletion'==_0xe4104e['type']){const _0xeec8ab=_0xe4104e['getItems']()['filter'](_0x3650cd=>_0x3650cd['is']('$textProxy'))['map'](_0x3c1958=>_0x3c1958['data']);if(_0xeec8ab['length'])return{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xeec8ab['join']('\x20')+'\x22'))};}}}),_0x41102c['descriptionFactory']['registerDescriptionCallback'](_0x234e05=>{if('tableRow'==_0x234e05['subType']){const _0x310078=_0x234e05['getItems']()['filter'](_0x519ca0=>_0x519ca0['is']('$textProxy'))['map'](_0x1a33d8=>_0x1a33d8['data']),_0x347f69=this['_getSuggestionCoords'](_0x234e05),_0x1c9e20=_0x347f69['maxRow']-_0x347f69['minRow']+0x1;if('insertion'==_0x234e05['type'])return _0x310078['length']?{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c9e20,'\x22'+_0x310078['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_ROW',_0x1c9e20))};if('deletion'==_0x234e05['type'])return _0x310078['length']?{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c9e20,'\x22'+_0x310078['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_ROW',_0x1c9e20))};}if('tableColumn'==_0x234e05['subType']){const _0x1fd899=_0x234e05['getItems']()['filter'](_0x54d375=>_0x54d375['is']('$textProxy'))['map'](_0x44896d=>_0x44896d['data']),_0x3d2186=this['_getSuggestionCoords'](_0x234e05),_0x4f4cd3=_0x3d2186['maxColumn']-_0x3d2186['minColumn']+0x1;if('insertion'==_0x234e05['type'])return _0x1fd899['length']?{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f4cd3,'\x22'+_0x1fd899['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_COLUMN',_0x4f4cd3))};if('deletion'==_0x234e05['type'])return _0x1fd899['length']?{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f4cd3,'\x22'+_0x1fd899['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_COLUMN',_0x4f4cd3))};}}),_0x41102c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x517ccf),_0x41102c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x517ccf),_0x41102c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x471934),_0x41102c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x471934),_0x41102c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4cddb9),_0x41102c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4cddb9),_0x41102c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x41608a),_0x41102c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x41608a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2059d9=this['editor'],_0x4c8d5b=_0x2059d9['model']['document']['selection'];return(_0x3e0daa,_0x474ab8)=>{_0x2059d9['model']['change'](_0x3a88ef=>{const {commandName:_0x1d8fbe,commandParams:_0x5464bd}=_0x474ab8;let _0x12673a=_0x3e0daa[0x0]['end']['nodeBefore'];_0x5464bd&&_0x5464bd[0x0]&&!0x1===_0x5464bd[0x0]['forceValue']&&(_0x12673a=_0x3e0daa[0x0]['start']['nodeAfter']);const _0x3969b0=_0x3a88ef['createRangeIn'](_0x12673a);if('$graveyard'==_0x3969b0['root']['rootName'])return;const _0x22f8eb=Array['from'](_0x4c8d5b['getRanges']())['map'](_0x13713d=>_0x275766['fromRange'](_0x13713d));_0x3a88ef['setSelection'](_0x3969b0),_0x2059d9['commands']['get'](_0x1d8fbe)['refresh'](),_0x5464bd['push']({'forceDefaultExecution':!0x0}),_0x2059d9['execute'](_0x1d8fbe,..._0x5464bd);const _0x12bbb3=_0x22f8eb['filter'](_0x89efb9=>'$graveyard'!=_0x89efb9['root']['rootName']);_0x12bbb3['length']>0x0&&_0x3a88ef['setSelection'](_0x12bbb3);for(const _0x4a3867 of _0x22f8eb)_0x4a3867['detach']();});};}['_getCoordsForCells'](_0x136990){const _0x173fc5=this['editor']['plugins']['get']('TableUtils');let _0x3ad40c=Number['MAX_SAFE_INTEGER'],_0x4c29af=Number['MIN_SAFE_INTEGER'],_0x55337b=Number['MAX_SAFE_INTEGER'],_0x241d55=Number['MIN_SAFE_INTEGER'];for(const _0x501938 of _0x136990){if('$graveyard'==_0x501938['root']['rootName'])continue;const {row:_0x5d9f7f,column:_0x18f7dc}=_0x173fc5['getCellLocation'](_0x501938),_0x5cbb80=_0x501938['hasAttribute']('rowspan')?_0x501938['getAttribute']('rowspan')-0x1:0x0,_0x2fa3e8=_0x501938['hasAttribute']('colspan')?_0x501938['getAttribute']('colspan')-0x1:0x0;_0x3ad40c=_0x5d9f7f<_0x3ad40c?_0x5d9f7f:_0x3ad40c,_0x4c29af=_0x5d9f7f+_0x5cbb80>_0x4c29af?_0x5d9f7f+_0x5cbb80:_0x4c29af,_0x55337b=_0x18f7dc<_0x55337b?_0x18f7dc:_0x55337b,_0x241d55=_0x18f7dc+_0x2fa3e8>_0x241d55?_0x18f7dc+_0x2fa3e8:_0x241d55;}return{'minRow':_0x3ad40c,'maxRow':_0x4c29af,'minColumn':_0x55337b,'maxColumn':_0x241d55};}['_setupColumnsRowsFixing'](){const _0x5ee14e=this['editor'],_0x3628dc=_0x5ee14e['plugins']['get']('TrackChangesEditing'),_0xaf0e84=_0x5ee14e['plugins']['get']('TableUtils');_0x5ee14e['model']['document']['on']('change:data',()=>{const _0x4ae169=Array['from'](_0x5ee14e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x518f38,data:_0xc6ada1}of _0x4ae169){const {group:_0x408eed,id:_0x61d6a1,subType:_0x5a2e11}=_0x3628dc['_splitMarkerName'](_0x518f38);if('suggestion'!=_0x408eed)continue;if(null!=_0xc6ada1['oldRange'])continue;const _0x11ca9a=_0x3628dc['getSuggestion'](_0x61d6a1);this['_tablePostFixingSubtypes']['includes'](_0x5a2e11)&&this['_tableSuggestions']['add'](_0x11ca9a);}},{'priority':'low'});const _0x4c6921=(_0x535b1a,_0xd58604)=>{let _0x5358e0=!0x1;const _0x6d65fa=_0xd58604['createRangeOn'](_0x535b1a),_0x3eaec5=_0x535b1a['findAncestor']('table'),_0x39988e=_0xaf0e84['getCellLocation'](_0x535b1a);for(const _0x1c3873 of this['_tableSuggestions']){const _0x481a61=_0x1c3873['subType'],_0x5d230=_0x481a61['startsWith']('tablePaste'),_0x497752=_0x481a61['substr'](_0x5d230?0xa:0x5),_0x544557=_0x497752['toLowerCase'](),_0x345796=_0x544557['substr'](0x0,0x3)+'span',_0xce1375='min'+_0x497752,_0x47b30d='max'+_0x497752;if(!_0x1c3873['isInContent'])continue;if(_0x3eaec5!=_0x1c3873['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1c3873['isIntersectingWithRange'](_0x6d65fa))continue;const _0x11dd21=_0x535b1a['hasAttribute'](_0x345796)?_0x535b1a['getAttribute'](_0x345796)-0x1:0x0,_0x24ad30=this['_getSuggestionCoords'](_0x1c3873),_0x46f44c=_0x24ad30[_0xce1375],_0x9816a8=_0x24ad30[_0x47b30d];_0x46f44c<=_0x39988e[_0x544557]&&_0x39988e[_0x544557]+_0x11dd21<=_0x9816a8&&(_0x1c3873['addRange'](_0x6d65fa),_0x5358e0=!0x0);}return _0x5358e0;};_0x5ee14e['model']['document']['registerPostFixer'](_0x2bc4fe=>{let _0x2b634a=!0x1;for(const _0x6dad92 of _0x5ee14e['model']['document']['differ']['getChanges']())if('insert'==_0x6dad92['type']){if('tableRow'==_0x6dad92['name']){for(const _0x435929 of _0x6dad92['position']['nodeAfter']['getChildren']())_0x2b634a=_0x2b634a||_0x4c6921(_0x435929,_0x2bc4fe);}else'tableCell'==_0x6dad92['name']&&(_0x2b634a=_0x2b634a||_0x4c6921(_0x6dad92['position']['nodeAfter'],_0x2bc4fe));}return _0x2b634a;});}['_getSuggestionCoords'](_0x18f223){return this['_getCoordsForCells'](_0x18f223['getRanges']()['map'](_0x5897c0=>_0x5897c0['start']['nodeAfter']));}}function xe(_0x1f5385){return Array['from'](new Set(_0x1f5385)['values']());}class Nt extends _0x31a850{static get['requires'](){return[Ct];}['afterInit'](){const _0x38384d=this['editor'],_0x3538fa=_0x38384d['model']['document']['selection'],_0x3a6e99=_0x38384d['locale'];if(!_0x38384d['plugins']['has']('TableEditing'))return;const _0x4fb69a=_0x38384d['plugins']['get']('TrackChangesEditing'),_0x1cfce9=_0x38384d['plugins']['get']('TableUtils'),_0x45e3d2=_0x38384d['plugins']['get'](Ct);_0x45e3d2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4fb69a['enableCommand']('mergeTableCells',()=>{const _0x501a70=_0x1cfce9['getSelectionAffectedTableCells'](_0x38384d['model']['document']['selection']);_0x38384d['model']['change'](()=>{_0x4fb69a['markMultiRangeBlockFormat'](_0x501a70,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x38384d['commands']['get']('mergeTableCells')['on']('execute',(_0x1d66a3,_0x16208b)=>{_0x38384d['commands']['get']('trackChanges')['value']&&(_0x16208b['length']>0x0&&_0x16208b[_0x16208b['length']-0x1]&&_0x16208b[_0x16208b['length']-0x1]['forceDefaultExecution']||_0x4fb69a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1d66a3['stop']());},{'priority':'highest'});for(const _0x1cca44 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x39c51b=_0x38384d['commands']['get'](_0x1cca44);_0x4fb69a['enableCommand'](_0x1cca44,()=>{const _0x5da247=_0x38384d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4e05e6=>_0x4e05e6['is']('element','tableCell')),_0x52aea6=_0x39c51b['value'];_0x38384d['model']['change'](()=>{_0x4fb69a['markMultiRangeBlockFormat']([_0x5da247,_0x52aea6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3c9a25 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2b2649=_0x38384d['commands']['get'](_0x3c9a25);_0x4fb69a['enableCommand'](_0x3c9a25,()=>{const _0x1d1568=_0x1cfce9['getSelectionAffectedTableCells'](_0x38384d['model']['document']['selection'])[0x0],_0x4a4546=_0x1d1568['findAncestor']('table'),{column:_0x9ee6bf,row:_0x5c0d53}=_0x1cfce9['getCellLocation'](_0x1d1568);let _0x574ce6=[];if('horizontally'==_0x2b2649['direction']){const _0xadb35d=_0x1cfce9['createTableWalker'](_0x4a4546,{'startRow':_0x5c0d53,'endRow':_0x5c0d53,'includeAllSlots':!0x0});_0x574ce6=Array['from'](_0xadb35d)['map'](_0x3710e7=>_0x3710e7['cell']);}else{const _0x5975ed=_0x1cfce9['createTableWalker'](_0x4a4546,{'column':_0x9ee6bf,'includeAllSlots':!0x0});_0x574ce6=Array['from'](_0x5975ed)['map'](_0xdd9ed7=>_0xdd9ed7['cell']);}_0x38384d['model']['change'](_0x27e634=>{_0x4fb69a['markBlockFormat'](_0x27e634['createRangeOn'](_0x1d1568),{'commandName':_0x3c9a25,'commandParams':[]},_0x574ce6,_0x3c9a25);});});}_0x4fb69a['descriptionFactory']['registerDescriptionCallback'](_0x1b5b07=>{if('formatBlock'!=_0x1b5b07['type']&&'formatInline'!=_0x1b5b07['type'])return;const {data:_0x51fd8d}=_0x1b5b07;return _0x51fd8d&&'mergeTableCells'==_0x51fd8d['commandName']?{'type':'format','content':c(_0x3a6e99,'*Merge\x20cells*')}:void 0x0;}),_0x4fb69a['descriptionFactory']['registerDescriptionCallback'](_0x220a8e=>{if('formatBlock'!=_0x220a8e['type']&&'formatInline'!=_0x220a8e['type'])return;const {data:_0x5d0c58}=_0x220a8e;return _0x5d0c58?'splitTableCellVertically'==_0x5d0c58['commandName']?{'type':'format','content':c(_0x3a6e99,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5d0c58['commandName']?{'type':'format','content':c(_0x3a6e99,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xb820e9=_0x45e3d2['_acceptFormatSuggestionCallbackFactory']();for(const _0x3df873 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4fb69a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3df873,'accept',_0xb820e9);for(const _0x408582 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4fb69a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x408582,'accept',_0xb820e9);_0x4fb69a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3255f4=>{_0x38384d['model']['change'](_0x36a04b=>{const _0x4d3075=Array['from'](_0x3538fa['getRanges']())['map'](_0x2ff932=>_0x275766['fromRange'](_0x2ff932));_0x36a04b['setSelection'](_0x3255f4),_0x38384d['commands']['get']('mergeTableCells')['refresh'](),_0x38384d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x6b5203=_0x4d3075['filter'](_0x4fd124=>'$graveyard'!=_0x4fd124['root']['rootName']);_0x6b5203['length']>0x0&&_0x36a04b['setSelection'](_0x6b5203);for(const _0x559127 of _0x4d3075)_0x559127['detach']();});});for(const _0x1c1f7c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3a4347=_0x38384d['commands']['get'](_0x1c1f7c);_0x3a4347['on']('set:isEnabled',(_0x986018,_0x341c9e,_0x2936bf)=>{if(_0x2936bf){const _0x59180f=_0x38384d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x158a13=>_0x158a13['is']('element','tableCell'));this['_areMergableCells'](_0x3a4347['value'],_0x59180f)||(_0x986018['return']=!0x1,_0x986018['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x16aaac=this['editor']['commands']['get']('mergeTableCells'),_0x5df8c0=this['editor']['plugins']['get']('TableUtils');if(!_0x16aaac['isEnabled'])return!0x1;const _0x943fac=_0x5df8c0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x345ae1 of _0x943fac)for(const _0x25283c of _0x943fac)if(_0x345ae1!=_0x25283c&&!this['_areMergableCells'](_0x345ae1,_0x25283c))return!0x1;return!0x0;}['_areMergableCells'](_0x35c1ce,_0x305c28){const _0x47e607=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20aa2a=this['editor']['model']['createRangeOn'](_0x35c1ce),_0x43ce33=this['editor']['model']['createRangeOn'](_0x305c28),_0x3de0f3=new Set(),_0x3a6b57=new Set();for(const _0x3d93b7 of _0x47e607['getSuggestions']())if(('insertion'==_0x3d93b7['type']||'deletion'==_0x3d93b7['type']||'mergeTableCells'==_0x3d93b7['subType'])&&_0x3d93b7['isInContent']){for(const _0xeda670 of _0x3d93b7['getRanges']())_0xeda670['containsRange'](_0x20aa2a,!0x0)&&_0x3de0f3['add'](_0x3d93b7['type']+':'+_0x3d93b7['author']['id']),_0xeda670['containsRange'](_0x43ce33,!0x0)&&_0x3a6b57['add'](_0x3d93b7['type']+':'+_0x3d93b7['author']['id']);}if(_0x3de0f3['size']!=_0x3a6b57['size'])return!0x1;for(const _0x1d91fc of _0x3de0f3)if(!_0x3a6b57['has'](_0x1d91fc))return!0x1;return!0x0;}}class Dt extends _0x31a850{static get['requires'](){return[Ct];}['afterInit'](){const _0x2e38e8=this['editor'];if(!_0x2e38e8['plugins']['has']('TableEditing'))return;const _0xc5e8fd=_0x2e38e8['locale'],_0x26c376=_0x2e38e8['plugins']['get']('TrackChangesEditing');_0x26c376['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x26c376['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x26c376['registerBlockAttribute']('headingRows'),_0x26c376['registerBlockAttribute']('headingColumns'),_0x26c376['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xc5e8fd,'FORMAT_HEADER_ROW')),_0x26c376['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xc5e8fd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b46fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47c2dc=this['editor']['plugins']['get']('TableUtils'),_0x4c1496=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5d0b39({showActiveMarker:_0x44eab8=!0x0,setDataAttribute:_0x35b490=!0x0}={}){return(_0x13daed,_0xe8fbed,_0x4fae6a)=>{const {type:_0x351d3d,id:_0x25a5f4}=_0x3b46fd['_splitMarkerName'](_0xe8fbed['markerName']),_0xe31086=_0x3b46fd['getSuggestion'](_0x25a5f4),_0x52eaf2=_0xe31086['data'];if('formatBlock'!=_0xe31086['type']||!_0x52eaf2||'setTableColumnHeader'!=_0x52eaf2['commandName'])return;if(_0xe8fbed['item'])return void _0x13daed['stop']();if(!_0x4fae6a['consumable']['consume'](_0xe8fbed['markerRange'],_0x13daed['name']))return;const _0x35a16a=_0xe8fbed['markerRange']['start']['nodeAfter'],_0x2d1e2c=_0xe8fbed['markerRange']['end']['nodeBefore'],_0x17dd15=_0x35a16a['parent']['parent'],{column:_0xdb29cf}=_0x47c2dc['getCellLocation'](_0x35a16a),{column:_0x2eecb2}=_0x47c2dc['getCellLocation'](_0x2d1e2c);for(let _0x4a7bdd=_0xdb29cf;_0x4a7bdd<=_0x2eecb2;_0x4a7bdd++){const _0x8a0d42=_0x47c2dc['createTableWalker'](_0x17dd15,{'column':_0x4a7bdd,'includeAllSlots':!0x1});for(const _0x4d8c3f of _0x8a0d42){const _0x2aeb23=_0x4d8c3f['cell'],_0x2713db=_0x4fae6a['mapper']['toViewElement'](_0x2aeb23);_0x4fae6a['writer']['addClass']('ck-suggestion-marker-'+_0x351d3d,_0x2713db),_0x35b490&&_0x4fae6a['writer']['setAttribute']('data-suggestion',_0x25a5f4,_0x2713db),_0x4fae6a['mapper']['bindElementToMarker'](_0x2713db,_0xe8fbed['markerName']),_0x44eab8&&(_0x3b46fd['activeMarkers']['includes'](_0xe8fbed['markerName'])?_0x4fae6a['writer']['addClass']('ck-suggestion-marker--active',_0x2713db):_0x4fae6a['writer']['removeClass']('ck-suggestion-marker--active',_0x2713db));}}};}_0x3b46fd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4c1496),_0x3b46fd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4c1496),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5d0b39(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x23204a,_0x2f7bd5,_0x462324)=>{_0x462324['options']['showSuggestionHighlights']&&_0x5d0b39({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x23204a,_0x2f7bd5,_0x462324);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x559676,_0x562dae,_0x5edfe3)=>{const {type:_0x47dd30,id:_0x443351}=_0x3b46fd['_splitMarkerName'](_0x562dae['markerName']),_0xe466df=_0x3b46fd['getSuggestion'](_0x443351),_0xfdcb5b=_0xe466df['data'];if('formatBlock'!=_0xe466df['type']||!_0xfdcb5b||'setTableColumnHeader'!=_0xfdcb5b['commandName'])return;const _0x40483f=_0x5edfe3['mapper']['markerNameToElements'](_0x562dae['markerName']);if(_0x40483f){for(const _0x6ee822 of _0x40483f)_0x5edfe3['writer']['removeClass']('ck-suggestion-marker-'+_0x47dd30,_0x6ee822),_0x5edfe3['writer']['removeClass']('ck-suggestion-marker--active',_0x6ee822),_0x5edfe3['writer']['removeAttribute']('data-suggestion',_0x6ee822),_0x5edfe3['mapper']['unbindElementFromMarkerName'](_0x6ee822,_0x562dae['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13dc0a=this['editor'],_0x1a6996=_0x13dc0a['locale'];function _0x28cb86(_0x1a7bc2){return{'type':'format','content':c(_0x1a6996,'*Format:*\x20%0',_0x1a7bc2)};}_0x13dc0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcd222a=>{if('formatBlock'!=_0xcd222a['type'])return;const {data:_0x3b2f69}=_0xcd222a;if(_0x3b2f69){if('setTableRowHeader'==_0x3b2f69['commandName']){const _0x26d493=_0x3b2f69['commandParams'][0x0]['forceValue'];return _0x28cb86(c(_0x1a6996,_0x26d493?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3b2f69['commandName']){const _0x57756e=_0x3b2f69['commandParams'][0x0]['forceValue'];return _0x28cb86(c(_0x1a6996,_0x57756e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x31a850{['afterInit'](){const _0x4f2dfb=this['editor'],_0x1ce269=_0x4f2dfb['locale'],_0x1ac5a8=_0x4f2dfb['plugins']['get']('TrackChangesEditing');function _0x4af9b6(_0x54eca0){return{'type':'format','content':''+c(_0x1ce269,'*Set\x20table\x20type:*\x20%0',_0x54eca0)};}_0x4f2dfb['plugins']['has']('TableLayout')&&(_0x1ac5a8['enableCommand']('insertTableLayout'),_0x1ac5a8['enableDefaultAttributesIntegration']('tableType'),_0x1ac5a8['registerBlockAttribute']('tableType'),_0x1ac5a8['descriptionFactory']['registerElementLabel'](_0x5981dc=>_0x5981dc['is']('element','table')&&'layout'===_0x5981dc['getAttribute']('tableType'),_0x325a13=>c(_0x1ce269,'ELEMENT_LAYOUT_TABLE',_0x325a13)),_0x1ac5a8['descriptionFactory']['registerDescriptionCallback'](_0x61216f=>{const {data:_0x4ec39d}=_0x61216f;if(_0x4ec39d&&'tableType'==_0x4ec39d['key'])switch(_0x4ec39d['newValue']){case'layout':return _0x4af9b6(c(_0x1ce269,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4af9b6(c(_0x1ce269,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x1d9996=>[_0x1d9996,null]));class $t extends _0x31a850{static get['requires'](){return[Ct];}['afterInit'](){const _0x221a2b=this['editor'];if(!_0x221a2b['plugins']['has']('TableClipboard'))return;const _0x1308f4=_0x221a2b['plugins']['get']('TrackChangesEditing'),_0x2b74cb=_0x221a2b['plugins']['get']('TableUtils'),_0x1972aa=_0x221a2b['plugins']['get'](Ct),_0x37bbde=_0x221a2b['plugins']['get']('TableClipboard'),_0x1eb98b=_0x221a2b['plugins']['get']('TableSelection'),_0x3fdb02=_0x221a2b['plugins']['get'](_0x1e072e);_0x1972aa['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x221a2b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x221a2b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4cd36e=null,_0xfebe53=!0x1;_0x3fdb02['on']('contentInsertion',(_0x5bc025,_0x147916)=>{_0xfebe53='paste'===_0x147916['method'];}),_0x221a2b['model']['on']('insertContent',(_0x57433e,_0x27e89a)=>{if(!_0xfebe53&&null===_0x1eb98b['getSelectedTableCells']())return;const [_0x42b471,_0x44512f]=_0x27e89a,_0x3b2894=_0x27e89a[_0x27e89a['length']-0x1];_0x3b2894&&_0x3b2894['forceDefaultExecution']||_0x1308f4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x538102,_0x2744f5,_0x576e2c,_0x54ecd9,_0x3e76f4){if(_0x2744f5&&!_0x2744f5['is']('documentSelection'))return!0x1;const _0x5677fd=_0x3e76f4['getTableIfOnlyTableInContent'](_0x538102,_0x576e2c);if(!_0x5677fd||!He(_0x5677fd,void 0x0,_0x54ecd9))return!0x1;const _0x27cc61=_0x54ecd9['getSelectionAffectedTableCells'](_0x576e2c['document']['selection']);if(!_0x27cc61['length'])return!0x1;const _0x1ee90a=_0x27cc61[0x0]['findAncestor']('table'),_0x1193d4=_0x54ecd9['getRowIndexes'](_0x27cc61),_0x2ef9fb=_0x54ecd9['getColumnIndexes'](_0x27cc61),_0x3d2aaa={'startRow':_0x1193d4['first'],'endRow':_0x1193d4['last'],'startColumn':_0x2ef9fb['first'],'endColumn':_0x2ef9fb['last']};return 0x1==_0x27cc61['length']&&(_0x3d2aaa['endRow']+=_0x54ecd9['getRows'](_0x5677fd)-0x1,_0x3d2aaa['endColumn']+=_0x54ecd9['getColumns'](_0x5677fd)-0x1),He(_0x1ee90a,_0x3d2aaa,_0x54ecd9);}(_0x42b471,_0x44512f,_0x221a2b['model'],_0x2b74cb,_0x37bbde)&&(_0x57433e['stop'](),_0x4cd36e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x221a2b['model']['change'](()=>{_0x221a2b['model']['insertContent'](_0x27e89a[0x0],_0x27e89a[0x1],_0x27e89a[0x2],{'forceDefaultExecution':!0x0});const _0x2af340=_0x34bf97(),{rowInsertionRanges:_0x2fa6f1,columnInsertionRanges:_0x360dbb,insertionRanges:_0x20fe5,deletionRanges:_0x2c5ee3,cells:_0x17cd5d}=_0x4cd36e;_0x2fa6f1['length']&&_0x1308f4['markMultiRangeInsertion'](_0x2fa6f1,'tablePasteRow',{'tablePasteChainId':_0x2af340}),_0x360dbb['length']&&_0x1308f4['markMultiRangeInsertion'](_0x360dbb,'tablePasteColumn',{'tablePasteChainId':_0x2af340}),_0x20fe5['length']&&(_0x1308f4['markMultiRangeInsertion'](_0x20fe5,'tablePaste',{'tablePasteChainId':_0x2af340,'skipNestingCheck':!0x0}),_0x20fe5['forEach'](_0x362d57=>_0x362d57['detach']?.())),_0x2c5ee3['length']&&(_0x1308f4['markMultiRangeDeletion'](_0x2c5ee3,'tablePaste',{'tablePasteChainId':_0x2af340,'skipNestingCheck':!0x0}),_0x2c5ee3['forEach'](_0x194117=>_0x194117['detach']?.()));const _0x581b6f=_0x1308f4['markMultiRangeBlockFormat'](_0x17cd5d['map'](({element:_0x1e38f6})=>_0x1e38f6),{'formatGroupId':_0x34bf97()},[],'tablePasteCell',{'tablePasteChainId':_0x2af340});if(_0x581b6f){const _0x46c8ec=_0x581b6f['getMarkers'](),_0x2bbc88=[];for(const {element:_0x2ab0cc,attributes:_0x2267c0}of _0x17cd5d){if(!_0x2267c0)continue;const _0x5123ac=_0x221a2b['model']['createRangeOn'](_0x2ab0cc),_0x4692e1=_0x46c8ec['find'](_0x221313=>_0x221313['getRange']()['isEqual'](_0x5123ac));_0x4692e1&&_0x2bbc88['push']([_0x4692e1['name'],_0x2267c0]);}_0x2bbc88['length']&&_0x581b6f['setAttribute']('markerAttributes',Object['fromEntries'](_0x2bbc88));}_0x4cd36e=null;}));},{'priority':_0x26424c['high']+0xa}),_0x3fdb02['on']('contentInsertion',()=>{_0xfebe53=!0x1;},{'priority':'lowest'}),_0x221a2b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3222a8,_0x361d3c)=>{const [_0x1368fc,_0x27d241,,_0xa693e]=_0x361d3c;if(!_0x4cd36e)return;_0x3222a8['stop']();const _0x1d985c=_0x1368fc['cell'],_0x289498=_0x27d241,_0x484d5d=De(_0x1d985c),_0xe4277f=De(_0x289498);_0x3222a8['return']=_0x1d985c;let _0x4a7bfa=null,_0x272a85=null;if(_0xe4277f||_0x484d5d){if(_0x484d5d&&!_0xe4277f){_0xa693e['remove'](_0x1d985c['getChild'](0x0));for(const _0x564c8f of Array['from'](_0x289498['getChildren']()))_0xa693e['insert'](_0x564c8f,_0x1d985c,'end');const _0x540d1a=_0x4cd36e['rowInsertionIndexes']['includes'](_0x1368fc['row']),_0x2e7d5c=_0x4cd36e['columnInsertionIndexes']['includes'](_0x1368fc['column']);_0x540d1a||_0x2e7d5c||(_0x4a7bfa=_0x275766['fromRange'](_0xa693e['createRangeIn'](_0x1d985c)));}else _0xe4277f&&!_0x484d5d&&(_0x272a85=_0xa693e['createRangeIn'](_0x1d985c));}else{const _0x1c9d01=_0xa693e['createElement']('tableCellSuggestion'),_0x4195f0=_0xa693e['createElement']('tableCellSuggestion');_0xa693e['wrap'](_0xa693e['createRangeIn'](_0x1d985c),_0x4195f0),_0xa693e['insert'](_0x1c9d01,_0x1d985c,0x0);for(const _0xbe6c3b of Array['from'](_0x289498['getChildren']()))_0xa693e['insert'](_0xbe6c3b,_0x1c9d01,'end');_0x4a7bfa=_0x275766['fromRange'](_0xa693e['createRangeOn'](_0x1c9d01)),_0x272a85=_0x275766['fromRange'](_0xa693e['createRangeOn'](_0x4195f0));}const _0x4ab9c5=Array['from'](_0x289498['getAttributes']())['filter'](([_0x36bbaf])=>Oe['includes'](_0x36bbaf));_0x4cd36e['cells']['push']({'element':_0x1d985c,'attributes':_0x4ab9c5['length']?Object['fromEntries'](_0x4ab9c5):null}),_0x4a7bfa&&_0x4cd36e['insertionRanges']['push'](_0x4a7bfa),_0x272a85&&_0x4cd36e['deletionRanges']['push'](_0x272a85);},{'priority':'high'}),_0x2b74cb['on']('insertColumns',(_0x423465,_0x925400)=>{const [_0x50e8ba,_0x22dbf1={}]=_0x925400;if(!_0x4cd36e)return;const _0xf40107=_0x22dbf1['at']||0x0,_0x1ec748=_0x22dbf1['columns']||0x1;_0x4cd36e['columnInsertionIndexes']=new Array(_0x1ec748)['fill'](_0xf40107)['map']((_0x29f07a,_0x4afd2)=>_0x29f07a+_0x4afd2);for(const {cell:_0x3d61cb}of _0x2b74cb['createTableWalker'](_0x50e8ba,{'startColumn':_0xf40107,'endColumn':_0xf40107+_0x1ec748-0x1}))_0x4cd36e['columnInsertionRanges']['push'](_0x221a2b['model']['createRangeOn'](_0x3d61cb));},{'priority':'low'}),_0x2b74cb['on']('insertRows',(_0x5827dd,_0x26adc4)=>{const [_0x136dde,_0x2cda85={}]=_0x26adc4;if(!_0x4cd36e)return;const _0x18f0f7=_0x2cda85['at']||0x0,_0x48e1f2=_0x2cda85['rows']||0x1;_0x4cd36e['rowInsertionIndexes']=new Array(_0x48e1f2)['fill'](_0x18f0f7)['map']((_0x439bbd,_0x2659a6)=>_0x439bbd+_0x2659a6);for(const {cell:_0x3a8071}of _0x2b74cb['createTableWalker'](_0x136dde,{'startRow':_0x18f0f7,'endRow':_0x18f0f7+_0x48e1f2-0x1}))_0x4cd36e['rowInsertionRanges']['push'](_0x221a2b['model']['createRangeOn'](_0x3a8071));},{'priority':'low'}),_0x1308f4['descriptionFactory']['registerDescriptionCallback'](_0x1dcfcf=>{if(_0x1dcfcf['subType']&&_0x1dcfcf['subType']['startsWith']('tablePaste'))return _0x1dcfcf['previous']?{}:{'type':'insertion','content':c(_0x221a2b['locale'],'*Replace\x20table\x20cells*')};});const _0x4dac94=()=>!0x1;for(const _0x2c27f4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1308f4['_suggestionFactory']['registerCustomCallback']('insertion',_0x2c27f4,'join',_0x4dac94),_0x1308f4['_suggestionFactory']['registerCustomCallback']('deletion',_0x2c27f4,'join',_0x4dac94),_0x1308f4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c27f4,'join',_0x4dac94);_0x1308f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4dac94),_0x1308f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1e4e46,_0x50c4d8,_0x383821)=>{const _0x2a572f=_0x1e4e46['map'](_0x589c52=>_0x589c52['getContainedElement']())['filter'](_0x32c794=>_0x32c794),_0x4a1d7b=new Map(_0x2a572f['map'](_0x378b70=>[_0x378b70,null]));if(_0x4cd36e){for(const {element:_0x3a4aad,attributes:_0x288156}of _0x4cd36e['cells'])_0x288156&&_0x4a1d7b['set'](_0x3a4aad,_0x288156);}else{if(_0x383821&&_0x383821['markerAttributes'])for(const [_0x119f66,_0x4b43c6]of Object['entries'](_0x383821['markerAttributes'])){const _0xbe8aba=_0x221a2b['model']['markers']['get'](_0x119f66),_0x1b59b8=_0xbe8aba?_0xbe8aba['getRange']()['getContainedElement']():null;_0x1b59b8&&_0x4a1d7b['set'](_0x1b59b8,_0x4b43c6);}}_0x221a2b['model']['change'](_0x3a84c2=>{for(const [_0x5e0537,_0x58365f]of _0x4a1d7b)_0x3a84c2['setAttributes']({...Ue,..._0x58365f},_0x5e0537);});});const _0x566819=(_0x31f676,_0xba3473)=>{_0x1308f4['_suggestionFactory']['registerCustomCallback'](_0x31f676,'tablePaste',_0xba3473,(_0x2e2914,_0x2d393d,_0x3f5bf8)=>{_0x221a2b['model']['change'](_0x483b80=>{const _0x3ac87d=[];for(const _0x493186 of _0x2e2914){const _0x14eca0=_0x493186['start']['nodeAfter'];_0x14eca0['is']('element','tableCellSuggestion')&&_0x3ac87d['push'](_0x14eca0);}_0x1308f4['_suggestionFactory']['getSuggestionCallback'](_0x31f676,null,_0xba3473)(_0x2e2914,_0x2d393d,_0x3f5bf8);for(const _0x5ac889 of _0x3ac87d)'$graveyard'!=_0x5ac889['root']['rootName']&&_0x483b80['unwrap'](_0x5ac889);});});};_0x566819('insertion','accept'),_0x566819('insertion','discard'),_0x566819('deletion','accept'),_0x566819('deletion','discard'),_0x1308f4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x373c1b=>{const _0x36e87a=_0x373c1b['map'](_0x2f19dd=>_0x2f19dd['getContainedElement']()),_0x33be81=_0x36e87a[0x0]['findAncestor']('table'),{minRow:_0xf5d614,maxRow:_0x25627f}=_0x1972aa['_getCoordsForCells'](_0x36e87a);_0x2b74cb['removeRows'](_0x33be81,{'at':_0xf5d614,'rows':_0x25627f-_0xf5d614+0x1});}),_0x1308f4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x43bc7f=>{const _0x17085a=_0x43bc7f['map'](_0x348601=>_0x348601['getContainedElement']()),_0x33089e=_0x17085a[0x0]['findAncestor']('table'),{minColumn:_0x3be67c,maxColumn:_0x3879d7}=_0x1972aa['_getCoordsForCells'](_0x17085a);_0x2b74cb['removeColumns'](_0x33089e,{'at':_0x3be67c,'columns':_0x3879d7-_0x3be67c+0x1});});const _0x36f8f3=(_0x2df13c,_0x4aa7e9)=>{if(!_0x4aa7e9['subType']||!_0x4aa7e9['subType']['startsWith']('tablePaste'))return;const _0x2bcb26=_0x4aa7e9['attributes']['tablePasteChainId'],_0x2bc21b=_0x1308f4['getSuggestions']()['filter'](_0x1f2c74=>_0x1f2c74['isInContent']&&_0x1f2c74['attributes']&&_0x1f2c74['attributes']['tablePasteChainId']==_0x2bcb26);_0x2bc21b['length']&&_0x4aa7e9['getAllAdjacentSuggestions']()['length']!=_0x2bc21b['length']&&_0x2bc21b['reduce']((_0x10fca0,_0x2935d4)=>(_0x10fca0['next']=_0x2935d4,_0x2935d4['previous']=_0x10fca0,_0x2935d4));};function _0x467e08(_0x24e954,_0x478427=!0x0){const {id:_0x38f0f1,authorId:_0x35cda0}=_0x1308f4['_splitMarkerName'](_0x24e954['markerName']),_0x164760=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x23d4e4=_0x1308f4['activeMarkers']['includes'](_0x24e954['markerName']);return _0x23d4e4&&_0x164760['push']('ck-suggestion-marker--active'),{'classes':_0x164760,'attributes':{'data-suggestion':_0x38f0f1,'data-author-id':_0x35cda0},'priority':_0x23d4e4&&_0x478427?0xbc2:0xbb8};}_0x1308f4['on']('suggestionLoaded',_0x36f8f3,{'priority':'high'}),_0x1308f4['on']('suggestionUnloaded',_0x36f8f3,{'priority':'high'}),_0x221a2b['model']['document']['registerPostFixer'](()=>{let _0x3e188f=!0x1;const _0x578dd3=Array['from'](_0x221a2b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d4dbf,data:_0x4ec240}of _0x578dd3){const {group:_0x3e526a,type:_0x1b2460,id:_0x4174af}=_0x1308f4['_splitMarkerName'](_0x4d4dbf);if('suggestion'!=_0x3e526a||'deletion'!=_0x1b2460||_0x4ec240['oldRange'])continue;if(!_0x1308f4['hasSuggestion'](_0x4174af))continue;const _0x15a579=_0x1308f4['getSuggestion'](_0x4174af)['getRanges'](),_0x37f0eb=_0x221a2b['plugins']['get']('Users')['me'];for(const _0x12b0af of _0x1308f4['getSuggestions']()){if(!_0x12b0af['isInContent']||_0x12b0af['author']!=_0x37f0eb)continue;if('formatBlock'!=_0x12b0af['type']||'tablePasteCell'!=_0x12b0af['subType'])continue;if(_0x12b0af['getRanges']()['every'](_0x4ef7f2=>_0x15a579['some'](_0x11344d=>_0x11344d['containsRange'](_0x4ef7f2,!0x0)))){for(const _0x542fd2 of _0x12b0af['getAllAdjacentSuggestions']())_0x542fd2['isInContent']&&(_0x542fd2['discard'](),_0x3e188f=!0x0);}}}return _0x3e188f;}),_0x221a2b['model']['document']['registerPostFixer'](_0x443123=>{const _0x4b0995=_0x221a2b['commands']['get']('redo');if(!_0x4b0995||!_0x4b0995['_createdBatches']['has'](_0x443123['batch']))return!0x1;let _0x2011e6=!0x1;const _0x20143a=_0x221a2b['plugins']['get']('Users')['me'],_0xb62075=_0x221a2b['model']['document']['differ']['getChanges'](),_0x195755=Array['from'](_0x221a2b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x579a98,data:_0x4dd952})=>{const {group:_0x48bc3e,subType:_0x1278a9,authorId:_0x373042}=_0x1308f4['_splitMarkerName'](_0x579a98);return'suggestion'==_0x48bc3e&&'tablePaste'==_0x1278a9&&_0x373042==_0x20143a['id']&&!_0x4dd952['oldRange'];});for(const _0x453634 of _0xb62075){if('insert'!=_0x453634['type']||'tableCellSuggestion'!=_0x453634['name']||0x1!=_0x453634['length'])continue;const _0x4153a0=_0x443123['createRange'](_0x453634['position'],_0x453634['position']['getShiftedBy'](0x1));if(!_0x195755['find'](({data:_0x1418a5})=>_0x1418a5['newRange']['isEqual'](_0x4153a0))){for(const {name:_0x1b301e,data:_0x580d55}of _0x195755)if(_0x4153a0['containsRange'](_0x580d55['newRange'])){_0x443123['updateMarker'](_0x1b301e,{'range':_0x4153a0}),_0x2011e6=!0x0;break;}}}return _0x2011e6;}),_0x221a2b['model']['document']['registerPostFixer'](_0xee0935=>{let _0x4908a7=!0x1;const _0x16caea=_0x221a2b['plugins']['get']('Users')['me'],_0x1a9e93=_0x1308f4['getSuggestions']()['filter'](_0x1b2f07=>_0x1b2f07['isInContent']&&_0x1b2f07['author']==_0x16caea),_0x34de74=new Set(),_0x2d6da6=new Set();for(const _0xadcc45 of _0x1a9e93)if('tablePaste'==_0xadcc45['subType'])for(const _0x1df028 of _0xadcc45['getMarkers']()){const _0x25c6d0=_0x1df028['getRange']()['getContainedElement']();if(_0x25c6d0){if(_0x25c6d0['is']('element','tableCellSuggestion')&&De(_0x25c6d0)){_0xadcc45['removeMarker'](_0x1df028['name']),_0x34de74['add'](_0x25c6d0),_0x4908a7=!0x0;const _0x265b99=_0x25c6d0['nextSibling'],_0x2e6115=_0x25c6d0['previousSibling'],_0x1e738d=_0x265b99&&_0x265b99['is']('element','tableCellSuggestion'),_0x3311a6=_0x2e6115&&_0x2e6115['is']('element','tableCellSuggestion');_0x1e738d&&!_0x34de74['has'](_0x265b99)&&_0x2d6da6['add'](_0x265b99),_0x3311a6&&!_0x34de74['has'](_0x2e6115)&&_0x2d6da6['add'](_0x2e6115);}else _0x25c6d0['is']('element','paragraph')&&_0x25c6d0['isEmpty']&&(_0xadcc45['removeMarker'](_0x1df028['name']),_0x4908a7=!0x0);}}else{if('tablePasteCell'==_0xadcc45['subType']){if(!_0xadcc45['attributes']||!_0xadcc45['attributes']['tablePasteChainId'])continue;const _0x3e2483=_0xadcc45['attributes']['markerAttributes'];if(_0x3e2483&&Object['keys'](_0x3e2483)['length'])continue;const _0x88e79b=_0xadcc45['attributes']['tablePasteChainId'];let _0x31eac2=!0x0,_0x5647e3=!0x0;for(const _0x4d59ef of _0x1a9e93)if(_0x4d59ef['subType']&&_0x4d59ef['subType']['startsWith']('tablePaste')){if(!_0x4d59ef['attributes']['tablePasteChainId']){_0x5647e3=!0x1;break;}if(_0x4d59ef['id']!=_0xadcc45['id']&&_0x4d59ef['attributes']['tablePasteChainId']==_0x88e79b){_0x31eac2=!0x1;break;}}_0x5647e3&&_0x31eac2&&(_0xadcc45['removeMarkers'](),_0x4908a7=!0x0);}}for(const _0x14baa7 of _0x34de74)_0xee0935['remove'](_0x14baa7);for(const _0x39c595 of _0x2d6da6)_0xee0935['unwrap'](_0x39c595);return _0x4908a7;}),_0x221a2b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1d3cef=>_0x467e08(_0x1d3cef),'converterPriority':'high'}),_0x221a2b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2e396d,_0x3fb94a)=>_0x3fb94a['options']['showSuggestionHighlights']?_0x467e08(_0x2e396d,!0x1):null,'converterPriority':'high'});const _0x5b682a=_0x221a2b['editing']['view'];this['listenTo'](_0x5b682a['document'],'clipboardOutput',(_0x266317,_0x34ea1c)=>{const _0x167b97=[];for(const _0x2af1d5 of _0x5b682a['createRangeIn'](_0x34ea1c['content'])['getItems']())_0x2af1d5['is']('element','suggestion-td')&&_0x167b97['push'](_0x2af1d5);_0x5b682a['change'](_0x15ccd2=>{for(const _0x42dbc1 of _0x167b97)_0x15ccd2['move'](_0x15ccd2['createRangeIn'](_0x42dbc1),_0x15ccd2['createPositionBefore'](_0x42dbc1)),_0x15ccd2['remove'](_0x42dbc1);});});}}function De(_0x13a63d){if(_0x13a63d['isEmpty'])return!0x0;const _0x1e2414=_0x13a63d['getChild'](0x0);return _0x1e2414['is']('element','paragraph')&&_0x1e2414['isEmpty'];}function He(_0x2d9f94,_0x176c55={},_0x50b5ff){for(const {isAnchor:_0x4a14d6,cellHeight:_0x590459,cellWidth:_0x277554}of _0x50b5ff['createTableWalker'](_0x2d9f94,{'includeAllSlots':!0x0,..._0x176c55}))if(!_0x4a14d6||0x1!=_0x590459||0x1!=_0x277554)return!0x1;return!0x0;}class Bt extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xc18636=this['editor']['plugins']['get']('TrackChangesEditing');_0xc18636['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xc18636['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xc18636['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc18636['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xc18636['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xc18636['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x59726b,_0x55a025){const _0x4fa647=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ee783=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x16f0aa=_0x55a025['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xd5e053=_0x5ee783['getColumnGroupElement'](_0x16f0aa);let _0x62ce95=_0xd5e053?_0x5ee783['getTableColumnsWidths'](_0xd5e053):null,_0x27ceef=_0x16f0aa['getAttribute']('tableWidth')||null;const _0x5cf2db=_0x55a025['tableWidth']||_0x27ceef,_0x255c5f=_0x55a025['columnWidths']||_0x62ce95,_0x256214=this['editor']['plugins']['get']('Users')['me'];for(const _0x47f0ce of _0x4fa647['getSuggestions']()){const _0x413bc4=_0x47f0ce['getContainedElement']();if('resizeTable'===_0x47f0ce['subType']&&_0x413bc4===_0x16f0aa){_0x47f0ce['author']!==_0x256214&&_0x47f0ce['discard']();const _0xa18312=_0x47f0ce['data']['commandParams'];_0x27ceef=_0xa18312[0x0]['tableWidth'],_0x62ce95=_0xa18312[0x0]['columnWidths'];break;}}_0x59726b({'table':_0x16f0aa,'tableWidth':_0x5cf2db,'columnWidths':_0x255c5f}),_0x4fa647['markBlockFormat'](_0x16f0aa,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x27ceef,'columnWidths':_0x62ce95}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x51b4c0){if('formatBlock'!=_0x51b4c0['type']&&'formatInline'!=_0x51b4c0['type'])return;const {data:_0x5c96e2}=_0x51b4c0;if(_0x5c96e2&&'resizeTable'===_0x5c96e2['formatGroupId']){const _0x2ecf8d='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2ecf8d)};}}}class xt extends _0x31a850{['afterInit'](){const _0x16a97b=this['editor'];_0x16a97b['plugins']['has']('Template')&&_0x16a97b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x31a850{['afterInit'](){const _0x301e33=this['editor'];if(!_0x301e33['commands']['get']('insertTableOfContents'))return;_0x301e33['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xe4abdb=_0x301e33['plugins']['get']('TrackChangesEditing'),_0x33cee2=_0x301e33['locale'];_0xe4abdb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3038a0=>c(_0x33cee2,'ELEMENT_TABLE_OF_CONTENTS',_0x3038a0));}}class Rt extends _0x31a850{['afterInit'](){const _0x5a9504=this['editor'];if(!_0x5a9504['plugins']['has']('Title'))return;const _0x5d6099=_0x5a9504['plugins']['get']('TrackChangesEditing');_0x5d6099['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x5a9504['locale'],'ELEMENT_TITLE')),_0x5a9504['model']['document']['registerPostFixer'](_0x351436=>{let _0xfab24b=!0x1;const _0x441cf2=Array['from'](_0x5a9504['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x528056,data:_0x32cc37}of _0x441cf2){const {group:_0x3d9d2b}=_0x5d6099['_splitMarkerName'](_0x528056);if('suggestion'!==_0x3d9d2b||!_0x32cc37['newRange'])continue;const _0x30e1f1=_0x32cc37['newRange'],_0x1c46e5=_0x30e1f1['end']['nodeBefore'];if(!_0x1c46e5||!_0x1c46e5['is']('element','title-content'))continue;if(!_0x30e1f1['start']['isTouching'](_0x30e1f1['end']))continue;const _0x5a0fbc=_0x5a9504['model']['schema']['getNearestSelectionRange'](_0x30e1f1['end'],'forward');if(_0x5a0fbc&&_0x5a0fbc['isCollapsed']){const _0x15286e=_0x351436['createRange'](_0x30e1f1['start'],_0x5a0fbc['start']);_0x15286e['isEqual'](_0x30e1f1)||(_0x351436['updateMarker'](_0x528056,{'range':_0x15286e}),_0xfab24b=!0x0);}_0xfab24b||(_0x351436['removeMarker'](_0x528056),_0xfab24b=!0x0);}return _0xfab24b;});}}class Tt extends _0x31a850{['afterInit'](){const _0x661ba6=this['editor'],_0x374fab=_0x661ba6['plugins']['get']('TrackChangesEditing');_0x661ba6['plugins']['has']('Uploadcare')&&(_0x374fab['enableCommand']('uploadcare'),_0x661ba6['plugins']['has']('UploadcareImageEdit')&&(_0x374fab['enableCommand']('uploadcareImageEdit'),_0x374fab['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x374fab['registerBlockAttribute']('uploadcareImageId'),_0x374fab['descriptionFactory']['registerDescriptionCallback'](_0x2c5c2c=>{if('attribute'!=_0x2c5c2c['type'])return;const {data:_0x5f0c04}=_0x2c5c2c;return _0x5f0c04&&'uploadcareImageId'==_0x5f0c04['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x31a850{['afterInit'](){const _0x32fc31=this['editor'],_0x1eb698=_0x32fc31['plugins']['get']('TrackChangesEditing');_0x32fc31['plugins']['has']('UndoEditing')&&(_0x1eb698['enableCommand']('undo'),_0x1eb698['enableCommand']('redo'));}}class Ut extends _0x31a850{static get['requires'](){return[Ct];}['afterInit'](){const _0x7134ce=this['editor'];if(!_0x7134ce['plugins']['has']('TableCaptionEditing'))return;_0x7134ce['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x31a850{['tableProperties'];['tableCellProperties'];constructor(_0x4ba597){super(_0x4ba597),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 _0x2224ef=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x156053 of this['tableProperties'])_0x2224ef['enableCommand'](_0x156053,(_0x2c537f,_0xc689)=>{const _0x275528=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x156053,[_0x275528],this['tableProperties'],'tableProperties',_0x2c537f,_0xc689);});_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2224ef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x40ab0,_0x51d585)=>this['handleDiscardAction'](this['tableProperties'],_0x40ab0,_0x51d585)),_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4d5ec0 of this['tableCellProperties'])_0x2224ef['enableCommand'](_0x4d5ec0,(_0x4a353c,_0x56892b)=>{const _0x553b29=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4d5ec0,_0x553b29,this['tableCellProperties'],'tableCellProperties',_0x4a353c,_0x56892b);});_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2224ef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x32d2d5,_0x1d6c03)=>this['handleDiscardAction'](this['tableCellProperties'],_0x32d2d5,_0x1d6c03)),_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2224ef['descriptionFactory']['registerDescriptionCallback'](_0x57bbe4=>this['handleSuggestionDescription'](_0x57bbe4));}['_handlePropertyChange'](_0xfc3e00,_0x19be8a,_0x49008e,_0xdf9365,_0x22f39c,_0x134388){const _0x3c16fe=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x134388['batch'],()=>{for(const _0x43860c of _0x19be8a){if(this['_getSuggestion'](_0x43860c,_0xdf9365))_0x22f39c(_0x134388);else{const _0x364aa5={};for(const _0x38035e of _0x49008e){const _0x142e75=_0x43860c['getAttribute'](_0x38035e);void 0x0!==_0x142e75&&(_0x364aa5[_0x38035e]=_0x142e75);}_0x22f39c(_0x134388),_0x3c16fe['markBlockFormat'](_0x43860c,{'commandParams':[_0x364aa5]},[],_0xdf9365);}}});}['handleDiscardAction'](_0x1d92f7,_0x4965b8,_0x454ba9){const _0xe8ee4a=_0x4965b8[0x0]['start']['nodeAfter'],_0x372e5a=_0x454ba9['commandParams'][0x0];this['editor']['model']['change'](_0x3ce576=>{for(const _0x55fece of _0x1d92f7)void 0x0!==_0x372e5a[_0x55fece]?_0x3ce576['setAttribute'](_0x55fece,_0x372e5a[_0x55fece],_0xe8ee4a):_0x3ce576['removeAttribute'](_0x55fece,_0xe8ee4a);});}['handleSuggestionDescription'](_0x2911ff){if(_0x2911ff['data'])switch(_0x2911ff['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'](_0x5dad18,_0x2a7af9){const _0x1f7b27=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4bb0cc of _0x1f7b27['getSuggestions']({'skipNotAttached':!0x0})){const _0x31fdd4=_0x4bb0cc['getContainedElement']();if(_0x4bb0cc['subType']===_0x2a7af9&&_0x31fdd4===_0x5dad18)return _0x4bb0cc;}return null;}}const u='$elementName';class p extends _0x31a850{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x45c096,_0x253bb6,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3334d1){super(_0x3334d1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x18fdec,_0x895762,_0x1d30be,_0x25ce75)=>{this['_model']['change'](()=>{for(const _0x139304 of[..._0x25ce75,..._0x1d30be])this['_model']['markers']['has'](_0x139304)&&_0x3334d1['editing']['reconvertMarker'](_0x139304);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3334d1['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(),_0x3334d1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3334d1['config']['get']('trackChanges.trackFormatChanges'),_0x3334d1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3334d1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3334d1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x558185=this['editor'],_0x41f128=(_0x9cd97a,_0x51f873)=>{if('attribute'!=_0x9cd97a)return'ck-suggestion-marker-'+_0x9cd97a;const _0x55dc8c=_0x51f873['split']('|')[0x0];return this['_isBlockAttribute'](_0x55dc8c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x558185['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4bcf89=>{const {id:_0x88af73,authorId:_0xb75146,type:_0x2290ea,subType:_0x531b6a}=this['_splitMarkerName'](_0x4bcf89['markerName']),_0x5c595f=['ck-suggestion-marker',_0x41f128(_0x2290ea,_0x531b6a)];let _0x1f318a=0xbb8;return this['activeMarkers']['includes'](_0x4bcf89['markerName'])&&(_0x5c595f['push']('ck-suggestion-marker--active'),_0x1f318a=0xbc2),'deletion'==_0x2290ea&&(_0x1f318a+=0x5),{'classes':_0x5c595f,'attributes':{'data-suggestion':_0x88af73,'data-author-id':_0xb75146},'priority':_0x1f318a};}}),_0x558185['conversion']['for']('dataDowncast')['add'](_0x490a76=>{_0x490a76['on']('addMarker:suggestion',(_0x408d9c,_0x17f61f,_0x41141d)=>{if(!_0x41141d['options']['showSuggestionHighlights'])return;const _0x3585d1=_0x17f61f['item'];if(!_0x3585d1)return;const _0x58c4c3=_0x41141d['mapper']['toViewElement'](_0x3585d1);_0x558185['model']['schema']['isObject'](_0x3585d1)&&_0x58c4c3&&!_0x58c4c3['getCustomProperty']('widget')&&_0x58c4c3['is']('containerElement')&&_0x1785d4(_0x58c4c3,_0x41141d['writer']);},{'priority':'high'});}),_0x558185['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x348e25,_0x1dcf4c)=>{if(!_0x1dcf4c['options']['showSuggestionHighlights'])return null;const {id:_0x57a159,authorId:_0x59d3de,type:_0x57c1b5,subType:_0x23319b}=this['_splitMarkerName'](_0x348e25['markerName']);return{'classes':['ck-suggestion-marker',_0x41f128(_0x57c1b5,_0x23319b)],'priority':0xbb8,'attributes':{'data-suggestion':_0x57a159,'data-author-id':_0x59d3de}};}});const _0x1509d8=({showActiveMarkers:_0x3e5704=!0x0,isAttributeSuggestion:_0x5b76f6=!0x1}={})=>(_0x1a2901,_0x59d38c,_0x48d746)=>{if(!_0x59d38c['item'])return;const {id:_0x4191a3,authorId:_0x1a5778}=this['_splitMarkerName'](_0x59d38c['markerName']);if(_0x5b76f6){const _0x2b4b1f=this['_suggestions']['get'](_0x4191a3),_0x36062d=this['_getAttributeKey'](_0x2b4b1f);if(!this['_isBlockAttribute'](_0x36062d))return;}if(_0x59d38c['item']['is']('selection'))return void _0x48d746['consumable']['consume'](_0x59d38c['item'],_0x1a2901['name']);const _0x5293e2=_0x48d746['mapper']['toViewElement'](_0x59d38c['item']);if(_0x59d38c['item']['is']('element')&&_0x558185['model']['schema']['isBlock'](_0x59d38c['item'])&&!_0x5293e2['getCustomProperty']('addHighlight')){_0x48d746['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5293e2),_0x48d746['writer']['setAttribute']('data-suggestion',_0x4191a3,_0x5293e2),_0x48d746['writer']['setAttribute']('data-author-id',_0x1a5778,_0x5293e2),_0x48d746['mapper']['bindElementToMarker'](_0x5293e2,_0x59d38c['markerName']),_0x3e5704&&(this['activeMarkers']['includes'](_0x59d38c['markerName'])?_0x48d746['writer']['addClass']('ck-suggestion-marker--active',_0x5293e2):_0x48d746['writer']['removeClass']('ck-suggestion-marker--active',_0x5293e2));for(const _0x188f5e of _0x558185['model']['createRangeIn'](_0x59d38c['item'])['getItems']())_0x48d746['consumable']['consume'](_0x188f5e,_0x1a2901['name']);_0x48d746['consumable']['consume'](_0x59d38c['item'],_0x1a2901['name']);}};_0x558185['conversion']['for']('dataDowncast')['add'](_0x5db21b=>{_0x5db21b['on']('addMarker:suggestion:formatBlock',(_0x5ac321,_0xa28c5,_0x3af137)=>{_0x3af137['options']['showSuggestionHighlights']&&_0x1509d8({'showActiveMarkers':!0x1})(_0x5ac321,_0xa28c5,_0x3af137);},{'priority':'highest'});}),_0x558185['conversion']['for']('dataDowncast')['add'](_0x3a1077=>{_0x3a1077['on']('addMarker:suggestion:attribute',(_0x2e9d4f,_0xfb1c8a,_0x473812)=>{_0x473812['options']['showSuggestionHighlights']&&_0x1509d8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2e9d4f,_0xfb1c8a,_0x473812);},{'priority':'highest'});}),_0x558185['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x46c0dd,_0x230f3f)=>{if(_0x230f3f['options']['showSuggestionHighlights']){const {id:_0x27f9e3,authorId:_0x1c4f96}=this['_splitMarkerName'](_0x46c0dd);return _0x46c0dd['includes'](':split')||_0x46c0dd['includes'](':merge')?{'group':'suggestion','name':_0x46c0dd['substr'](0xb),'attributes':{'data-suggestion':_0x27f9e3,'data-author-id':_0x1c4f96}}:null;}return{'group':'suggestion','name':_0x46c0dd['substr'](0xb)};}}),_0x558185['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x23b2f8,{writer:_0x49e1dc})=>{let _0x3a1a89='suggestion:'+_0x23b2f8['getAttribute']('suggestion-type')+':'+_0x23b2f8['getAttribute']('id');return _0x23b2f8['getAttribute']('marker-count')&&(_0x3a1a89+=':'+_0x23b2f8['getAttribute']('marker-count')),_0x49e1dc['createElement']('$marker',{'data-name':_0x3a1a89});}}),_0x558185['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x558185['conversion']['for']('editingDowncast')['add'](_0xc8d05d=>{_0xc8d05d['on']('addMarker:suggestion:formatBlock',_0x1509d8(),{'priority':'high'});}),_0x558185['conversion']['for']('editingDowncast')['add'](_0x43130c=>{_0x43130c['on']('addMarker:suggestion:attribute',_0x1509d8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x558185['conversion']['for']('editingDowncast')['add'](_0x12ef2b=>{_0x12ef2b['on']('removeMarker:suggestion:formatBlock',(_0x276dd5,_0x2ca754,_0x476943)=>{const _0x2da8f3=_0x476943['mapper']['markerNameToElements'](_0x2ca754['markerName']);if(_0x2da8f3){for(const _0x422b38 of _0x2da8f3)_0x422b38['getCustomProperty']('addHighlight')||(_0x476943['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x422b38),_0x476943['writer']['removeAttribute']('data-suggestion',_0x422b38),_0x476943['writer']['removeAttribute']('data-author-id',_0x422b38),_0x476943['mapper']['unbindElementFromMarkerName'](_0x422b38,_0x2ca754['markerName']));}},{'priority':'high'});}),_0x558185['conversion']['for']('editingDowncast')['add'](_0x14f316=>{_0x14f316['on']('removeMarker:suggestion:attribute',(_0x3355fa,_0x15890a,_0x57a1b1)=>{const _0x2ebc4f=_0x57a1b1['mapper']['markerNameToElements'](_0x15890a['markerName']);if(!_0x2ebc4f)return;const {id:_0x37b2c9}=this['_splitMarkerName'](_0x15890a['markerName']),_0x4d28ca=this['_suggestions']['get'](_0x37b2c9),_0x2ffaa5=this['_getAttributeKey'](_0x4d28ca);if(this['_isBlockAttribute'](_0x2ffaa5)){for(const _0xeb61a7 of _0x2ebc4f)_0xeb61a7['getCustomProperty']('addHighlight')||(_0x57a1b1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xeb61a7),_0x57a1b1['writer']['removeAttribute']('data-suggestion',_0xeb61a7),_0x57a1b1['writer']['removeAttribute']('data-author-id',_0xeb61a7),_0x57a1b1['mapper']['unbindElementFromMarkerName'](_0xeb61a7,_0x15890a['markerName']));}},{'priority':'high'});}),_0x558185['model']['document']['registerPostFixer'](_0x205099=>{let _0x2d6ecf=!0x1;const _0x489151=Array['from'](_0x558185['model']['document']['differ']['getChangedMarkers']()),_0x935b68=new Set();for(const {name:_0x970af4,data:_0x2d0f11}of _0x489151){const {group:_0x1ecf46,type:_0x42095c,subType:_0x1c0e38,id:_0x50957a}=this['_splitMarkerName'](_0x970af4);if('suggestion'!==_0x1ecf46)continue;const _0x460225=this['_suggestions']['get'](_0x50957a);if(null!=_0x2d0f11['newRange']){'formatInline'==_0x42095c&&(_0x2d6ecf=_0x2d6ecf||Jt(_0x2d0f11['newRange'],_0x970af4,_0x205099,_0x558185['model']['schema']));const _0x1c5c85='attribute'==_0x42095c&&this['_isBlockAttribute'](_0x1c0e38['split']('|')[0x0]);if(_0x2d0f11['newRange']['isCollapsed']||'$graveyard'==_0x2d0f11['newRange']['root']['rootName']||'formatBlock'==_0x42095c&&!Ht(_0x2d0f11['newRange'])||_0x1c5c85&&!Ht(_0x2d0f11['newRange'])||'deletion'==_0x42095c&&!(!Lt(_0x73a27a=_0x2d0f11['newRange'])&&!function(_0x4d96b6){return _0x4d96b6['start']['parent']==_0x4d96b6['end']['nodeBefore']&&_0x4d96b6['start']['isAtEnd'];}(_0x73a27a)))_0x205099['removeMarker'](_0x970af4),_0x2d6ecf=!0x0;else{if(!_0x460225||!_0x460225['isInContent'])continue;if(_0x2d0f11['newRange']&&_0x2d0f11['oldRange']&&_0x2d0f11['newRange']['isEqual'](_0x2d0f11['oldRange']))continue;_0x935b68['add'](_0x460225);}}}var _0x73a27a;return _0x935b68['size']>0x0&&(_0x2d6ecf=!!this['_joinWithAdjacentSuggestions'](_0x935b68)||_0x2d6ecf),_0x2d6ecf;}),_0x558185['model']['document']['registerPostFixer'](_0x3f1066=>{let _0x243805=!0x1;for(const _0x2c7f68 of _0x558185['model']['document']['differ']['getChanges']())if('insert'==_0x2c7f68['type'])for(const _0x11097e of this['_suggestions']['values']()){if(_0x11097e['isMultiRange']||!_0x11097e['isInContent'])continue;const _0x13d2de='formatBlock'==_0x11097e['type'],_0xa6e36c=this['_getAttributeKey'](_0x11097e),_0x39e24f=_0xa6e36c&&this['_isBlockAttribute'](_0xa6e36c);if(!_0x13d2de&&!_0x39e24f)continue;const _0x4ca889=_0x11097e['getFirstRange']();if(_0x4ca889['start']['parent']!=_0x4ca889['end']['parent']&&!_0x4ca889['end']['isAtEnd']){const _0x75dd78=_0x558185['model']['createPositionAt'](_0x4ca889['start']['nodeAfter'],'end'),_0x23870a=_0x558185['model']['createRange'](_0x4ca889['start'],_0x75dd78);_0x3f1066['updateMarker'](_0x11097e['getFirstMarker'](),{'range':_0x23870a}),_0x243805=!0x0;}}return _0x243805;}),_0x558185['model']['document']['registerPostFixer'](_0x3b5f33=>this['_processAttributeChanges'](_0x3b5f33)),_0x558185['model']['document']['registerPostFixer'](_0x2e6604=>!_0x2e6604['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2e6604)),_0x558185['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x558185['model']['document']['on']('change:data',(_0x21dbe2,_0xfe414)=>{if(!_0xfe414['isLocal']||_0xfe414['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5019cb=_0x558185['model']['document']['differ']['getChanges']();if(0x0==_0x5019cb['length'])return;const _0x440ef2=[],_0x18d454=_0x5019cb['filter'](_0x4e0bb6=>'attribute'==_0x4e0bb6['type']),_0x449f9d=_0x5019cb['filter'](_0x4dac7a=>'insert'==_0x4dac7a['type']&&'$text'!=_0x4dac7a['name']);for(const _0x3374f9 of _0x18d454)this['_isRegisteredAttribute'](_0x3374f9['attributeKey'])&&_0x440ef2['push']({'key':_0x3374f9['attributeKey'],'newValue':_0x3374f9['attributeNewValue'],'oldValue':_0x3374f9['attributeOldValue'],'range':qt(_0x3374f9['range'],_0x558185['model'])});for(const _0x3cadb7 of _0x449f9d){if('rename'!=_0x3cadb7['action']&&'refresh'!=_0x3cadb7['action'])continue;const _0x38d9eb=zt(_0x3cadb7['position']['nodeAfter'],_0x558185['model']),_0x51077b=_0x3cadb7['before'];'rename'==_0x3cadb7['action']&&_0x440ef2['push']({'key':u,'newValue':_0x3cadb7['name'],'oldValue':_0x51077b['name'],'range':_0x38d9eb});for(const [_0x92b80d,_0x198760]of _0x51077b['attributes']){if(!this['_isRegisteredAttribute'](_0x92b80d))continue;const _0x16e849=_0x3cadb7['attributes']['get'](_0x92b80d);_0x198760!==_0x16e849&&_0x440ef2['push']({'key':_0x92b80d,'newValue':_0x16e849,'oldValue':_0x198760,'range':_0x38d9eb});}for(const [_0x23a75c,_0x2cfa2e]of _0x3cadb7['attributes'])this['_isRegisteredAttribute'](_0x23a75c)&&(_0x51077b['attributes']['has'](_0x23a75c)||_0x440ef2['push']({'key':_0x23a75c,'newValue':_0x2cfa2e,'oldValue':null,'range':_0x38d9eb}));}0x0!=_0x440ef2['length']&&_0x558185['model']['enqueueChange'](_0xfe414,_0x1b1d67=>{const _0x47a3fa=_0x34bf97();for(const {range:_0x4df57f,key:_0x1c15a8,oldValue:_0x32c8d7,newValue:_0x1506b5}of _0x440ef2)this['markAttributeChange'](_0x4df57f,_0x1c15a8,_0x32c8d7,_0x1506b5,{'groupId':_0x47a3fa});this['_reduceExistingSuggestions'](_0x1b1d67,_0x440ef2);});},{'priority':'lowest'}),_0x558185['model']['markers']['on']('update:suggestion',(_0x4d2256,_0x2ab68d,_0x7ef52f)=>{if(null==_0x7ef52f){const {id:_0x39c784}=this['_splitMarkerName'](_0x2ab68d['name']),_0x27b1cf=this['_suggestions']['get'](_0x39c784);_0x27b1cf&&_0x27b1cf['addMarkerName'](_0x2ab68d['name']);}}),_0x558185['model']['document']['on']('change:data',()=>{const _0x3acc4d=Array['from'](_0x558185['model']['document']['differ']['getChangedMarkers']())['filter'](_0x396281=>'suggestion'===this['_splitMarkerName'](_0x396281['name'])['group']);if(0x0===_0x3acc4d['length'])return;_0x3acc4d['sort']((_0x10a79a,_0x105132)=>{const _0x39ab28=_0x10a79a['data']['oldRange'],_0x1aee7e=_0x105132['data']['oldRange'];return null===_0x39ab28&&null===_0x1aee7e?0x0:null===_0x39ab28&&null!==_0x1aee7e?-0x1:null!==_0x39ab28&&null===_0x1aee7e?0x1:_0x39ab28['start']['isBefore'](_0x1aee7e['start'])?-0x1:0x1;});const _0x56c66b=new Set(),_0x1ad4a2=new Set();for(const {name:_0x5a8192,data:_0x189aa5}of _0x3acc4d){const {id:_0x3d36a5}=this['_splitMarkerName'](_0x5a8192);if(null===_0x189aa5['oldRange']){const _0x38f95f=this['_handleNewSuggestionMarker'](_0x5a8192);_0x1ad4a2['add'](_0x38f95f);}else{const _0x39133d=this['_suggestions']['get'](_0x3d36a5);null!==_0x189aa5['newRange']||_0x39133d['isInContent']?(_0x56c66b['add'](_0x39133d['head']),_0x1ad4a2['add'](_0x39133d)):this['_removeSuggestion'](_0x39133d);}}_0x1ad4a2['size']>0x0&&this['_refreshSuggestionsChain'](_0x1ad4a2);for(const _0x5ba39a of _0x56c66b)this['fire']('suggestionChanged',_0x5ba39a);}),_0x558185['model']['on']('applyOperation',(_0x282085,_0xc4f51)=>{const _0x194a89=_0xc4f51[0x0];if(!this['_suggestions']['size'])return;if(!_0x194a89['isDocumentOperation'])return;if(_0x194a89['batch']['isUndo']||!_0x194a89['batch']['isLocal'])return;let _0x19fa16,_0x12554f;switch(_0x194a89['type']){case'insert':_0x19fa16=_0x558185['model']['createPositionAt'](_0x194a89['position']),_0x12554f=_0x19fa16['getShiftedBy'](_0x194a89['howMany']);break;case'split':_0x19fa16=_0x558185['model']['createPositionAt'](_0x194a89['splitPosition']),_0x12554f=_0x558185['model']['createPositionAt'](_0x194a89['moveTargetPosition']);break;case'move':_0x19fa16=_0x558185['model']['createPositionAt'](_0x194a89['targetPosition']),_0x12554f=_0x19fa16['getShiftedBy'](_0x194a89['howMany']);break;default:return;}const _0xb8b3d2=_0x558185['model']['createRange'](_0x19fa16,_0x12554f);_0x558185['model']['change'](()=>{for(const {suggestion:_0x2ed7b8,meta:_0x12eb28}of this['_findSuggestions'](_0xb8b3d2)){if(_0x2ed7b8['isMultiRange'])continue;if('formatInline'==_0x2ed7b8['type'])continue;const _0x5ae409=this['_getAttributeKey'](_0x2ed7b8);if(_0x5ae409&&this['_isBlockAttribute'](_0x5ae409)&&'split'!=_0x194a89['type'])continue;const _0x6ad7de=_0x2ed7b8['data']&&_0x2ed7b8['data']['multipleBlocks'];('formatBlock'!=_0x2ed7b8['type']||'split'==_0x194a89['type']&&!_0x6ad7de)&&(_0x12eb28['containsRangeInObject']||'insertion'==_0x2ed7b8['type']&&_0x12eb28['isOwn']||_0x2ed7b8['getFirstRange']()['containsRange'](_0xb8b3d2)&&this['_breakSuggestionMarker'](_0x2ed7b8,_0x19fa16,_0x12554f));}});},{'priority':'lowest'}),_0x558185['model']['on']('deleteContent',(_0x566cf8,_0x274c3e)=>{const _0x275129=_0x274c3e[0x0],_0x3c9f7e=_0x274c3e[0x1];if(_0x3c9f7e&&_0x3c9f7e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x275129['isCollapsed'])return;const _0x33f113=_0x558185['model']['schema'],{start:_0x5b59c7,end:_0x362d91}=_0x275129['getFirstRange'](),_0x4e48f1=_0x5b59c7['nodeAfter']&&_0x33f113['isLimit'](_0x5b59c7['nodeAfter'])?null:_0x33f113['getNearestSelectionRange'](_0x5b59c7,'forward'),_0x1447cb=_0x362d91['nodeBefore']&&_0x33f113['isLimit'](_0x362d91['nodeBefore'])?null:_0x33f113['getNearestSelectionRange'](_0x362d91,'backward'),_0x5178f1=_0x558185['model']['createRange'](_0x4e48f1?_0x4e48f1['start']:_0x5b59c7,_0x1447cb?_0x1447cb['end']:_0x362d91);_0x558185['model']['change'](_0x2380e5=>{this['markDeletion'](_0x5178f1);const _0x3591ed=_0x558185['model']['schema']['getNearestSelectionRange'](_0x5178f1['start']);_0x275129['is']('documentSelection')?_0x2380e5['setSelection'](_0x3591ed):_0x275129['setTo'](_0x3591ed);}),_0x566cf8['stop']();},{'priority':_0x26424c['normal']+0xa}),_0x558185['model']['on']('insertContent',(_0x519dca,_0x445366)=>{const _0x19dfe3=_0x445366[_0x445366['length']-0x1];_0x19dfe3&&_0x19dfe3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x558185['model']['change'](()=>{let _0x33453f=_0x558185['model']['insertContent'](_0x445366[0x0],_0x445366[0x1],_0x445366[0x2],{'forceDefaultExecution':!0x0});if(!_0x33453f)return;_0x519dca['return']=_0x33453f['clone']();const _0x67ac6e=_0x33453f['end']['nodeBefore'],_0x4b7104=_0x558185['model']['schema'];_0x67ac6e&&_0x4b7104['isBlock'](_0x67ac6e)&&!_0x4b7104['isObject'](_0x67ac6e)&&(_0x33453f=_0x558185['model']['createRange'](_0x33453f['start'],_0x558185['model']['createPositionAt'](_0x67ac6e,'end'))),this['markInsertion'](_0x33453f);}),_0x519dca['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x240f7a=new x(_0x558185,this['_suggestions']);_0x558185['commands']['add']('acceptSuggestion',_0x240f7a),this['enableCommand']('acceptSuggestion');const _0x246923=new O(_0x558185,this['_suggestions']);_0x558185['commands']['add']('discardSuggestion',_0x246923),this['enableCommand']('discardSuggestion'),_0x558185['commands']['add']('acceptAllSuggestions',new R(_0x558185,_0x240f7a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x558185['commands']['add']('discardAllSuggestions',new R(_0x558185,_0x246923,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x558185['commands']['add']('acceptSelectedSuggestions',new E(_0x558185,_0x240f7a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x558185['commands']['add']('discardSelectedSuggestions',new E(_0x558185,_0x246923,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x100140=_0x558185['plugins']['get']('CommentsRepository');this['listenTo'](_0x100140,'addComment',(_0x9305ff,{threadId:_0x59b6e7})=>{const _0x4c73dc=this['_suggestions']['get'](_0x59b6e7);_0x4c73dc&&_0x4c73dc['commentThread']&&0x1===_0x4c73dc['commentThread']['length']&&this['_updateSuggestionData'](_0x59b6e7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x100140,'removeComment',(_0x4b19f8,{threadId:_0x113708})=>{const _0x563997=this['_suggestions']['get'](_0x113708);_0x563997&&_0x563997['commentThread']&&!_0x563997['commentThread']['length']&&this['_updateSuggestionData'](_0x113708,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4c35e7){const _0xb6302f=_0x491d86([0x76,0x52,0x43,0x6d,0x45,0x57,0x4f,0x6a,0x38,0x72,0x30,0x37,0x73,0x48,0x47,0x42,0x66,0x63,0x65,0x4b,0x4e,0x64,0x49,0x74,0x44,0x32,0x58,0x5a,0x4a,0x79,0x41,0x61,0x71,0x46,0x6e,0x35,0x33,0x7a,0x51,0x4d,0x67,0x39,0x69,0x77,0x62,0x70,0x6b,0x56,0x53,0x75,0x50,0x55,0x4c,0x31,0x34,0x54,0x6f,0x6c,0x78,0x59,0x36,0x68]),_0xae1e79=0x4b1cce3e,_0x333eef=0x4b1ba756^_0xae1e79,_0x4779c5=window[_0x491d86([0x44,0x61,0x74,0x65])][_0x491d86([0x6e,0x6f,0x77])](),_0x10b150=_0x4c35e7[_0x491d86([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54f15a=new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fe9aa=>{_0x10b150[_0x491d86([0x6f,0x6e,0x63,0x65])](_0x491d86([0x72,0x65,0x61,0x64,0x79]),_0x2fe9aa);}),_0x15fcd5={[_0x491d86([0x6b,0x74,0x79])]:_0x491d86([0x45,0x43]),[_0x491d86([0x75,0x73,0x65])]:_0x491d86([0x73,0x69,0x67]),[_0x491d86([0x63,0x72,0x76])]:_0x491d86([0x50,0x2d,0x32,0x35,0x36]),[_0x491d86([0x78])]:_0x491d86([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]),[_0x491d86([0x79])]:_0x491d86([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]),[_0x491d86([0x61,0x6c,0x67])]:_0x491d86([0x45,0x53,0x32,0x35,0x36])},_0x50b80b=_0x10b150[_0x491d86([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x491d86([0x67,0x65,0x74])](_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x44c352(){let _0x75a164,_0x10c11f=null,_0x5e001e=null;try{if(_0x50b80b==_0x491d86([0x47,0x50,0x4c]))return _0x491d86([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x75a164=_0x2b9428(),!_0x75a164)return _0x491d86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x75a164[_0x491d86([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e001e=_0x10a618(_0x75a164[_0x491d86([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x75a164[_0x491d86([0x6a,0x74,0x69])])),await _0x173f5f()?_0x37c9ca()?_0x1ceecc()?_0x491d86([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x414c47()?(_0x75a164[_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x491d86([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10c11f=_0x548148(_0x491d86([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x75a164[_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x491d86([0x74,0x72,0x69,0x61,0x6c])&&(_0x10c11f=_0x548148(_0x491d86([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e55e1()):_0x491d86([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x491d86([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x491d86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x491d86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ceecc(){const _0x2b6591=[_0x491d86([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x491d86([0x74,0x72,0x69,0x61,0x6c])][_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x75a164[_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4779c5/0x3e8:0xe10*_0x333eef;return _0x75a164[_0x491d86([0x65,0x78,0x70])]<_0x2b6591;}function _0x37c9ca(){const _0x4d73b9=_0x75a164[_0x491d86([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4d73b9)return!0x1;if(_0x4d73b9[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x491d86([0x2a])))return!0x0;if(_0x4d73b9[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x491d86([0x54,0x43])))return!0x0;if(_0x4d73b9[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x491d86([0x52,0x54,0x43]))){if(_0x2e5268())return!0x0;if(_0x3eac22()||_0x316f53())return!0x0;}return!0x1;}function _0x414c47(){const _0x3afea5=_0x75a164[_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3afea5||0x0==_0x3afea5[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x153458}=new URL(window[_0x491d86([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3afea5[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x153458))return!0x0;const _0x4d708d=_0x153458[_0x491d86([0x73,0x70,0x6c,0x69,0x74])](_0x491d86([0x2e]));return _0x3afea5[_0x491d86([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x282698=>_0x282698[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x491d86([0x2a])))[_0x491d86([0x6d,0x61,0x70])](_0xb38c7e=>_0xb38c7e[_0x491d86([0x73,0x70,0x6c,0x69,0x74])](_0x491d86([0x2e])))[_0x491d86([0x73,0x6f,0x6d,0x65])](_0x202ec7=>_0x4d708d[_0x491d86([0x65,0x76,0x65,0x72,0x79])]((_0x3a1050,_0x4f3ba9)=>_0x202ec7[_0x4f3ba9]===_0x3a1050||_0x202ec7[_0x4f3ba9]===_0x491d86([0x2a])));}function _0x3e55e1(){return _0x10c11f&&_0x5e001e?new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16eef4,_0x2793bb)=>{_0x10c11f[_0x491d86([0x74,0x68,0x65,0x6e])](_0x16eef4,_0x2793bb),_0x5e001e[_0x491d86([0x74,0x68,0x65,0x6e])](_0x30b08f=>{_0x30b08f!=_0x491d86([0x56,0x61,0x6c,0x69,0x64])&&_0x16eef4(_0x30b08f);},_0x2793bb);}):_0x10c11f||_0x5e001e||_0x491d86([0x56,0x61,0x6c,0x69,0x64]);}}function _0x10a618(_0x3ffc9e,_0x1d3b85){return new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5451ff=>{if(_0x33b4bf())return _0x5451ff(_0x491d86([0x56,0x61,0x6c,0x69,0x64]));_0x34c93a(),_0x10b150[_0x491d86([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x491d86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x354e16=!0x1;const _0x2d50db=_0x34bf97();function _0x3eeb53(_0x7e2bb9){return!!_0x7e2bb9&&(typeof _0x7e2bb9===_0x491d86([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7e2bb9===_0x491d86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7e2bb9[_0x491d86([0x74,0x68,0x65,0x6e])]===_0x491d86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7e2bb9[_0x491d86([0x63,0x61,0x74,0x63,0x68])]===_0x491d86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5aea9d(_0x1a3264){_0x11934e(_0x1a3264)[_0x491d86([0x74,0x68,0x65,0x6e])](_0x56b1f2=>{if(!_0x56b1f2||_0x56b1f2[_0x491d86([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x491d86([0x6f,0x6b]))return _0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31c0d3(_0xfd99ec(_0x2d50db+_0x1d3b85))!=_0x56b1f2[_0x491d86([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x491d86([0x56,0x61,0x6c,0x69,0x64]);})[_0x491d86([0x74,0x68,0x65,0x6e])](_0x5721ba=>(_0x51b3e7(),_0x5721ba),()=>{const _0xc1a4fa=_0x1715e5();return null==_0xc1a4fa?(_0x51b3e7(),_0x491d86([0x56,0x61,0x6c,0x69,0x64])):_0x491d86(_0x4779c5-_0xc1a4fa>(0x6f104a3e^_0xae1e79)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x491d86([0x74,0x68,0x65,0x6e])](_0x5451ff)[_0x491d86([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5451ff(_0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x984066=0x4b2a20be^_0xae1e79;function _0x51b3e7(){const _0x1d01c0=_0x491d86([0x6c,0x6c,0x63,0x74,0x2d])+_0x31c0d3(_0xfd99ec(_0x3ffc9e)),_0x53ff33=_0x578486(_0x31c0d3(window[_0x491d86([0x4d,0x61,0x74,0x68])][_0x491d86([0x63,0x65,0x69,0x6c])](_0x4779c5/_0x984066)));window[_0x491d86([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x491d86([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d01c0,_0x53ff33);}function _0x1715e5(){const _0x22c7e7=_0x491d86([0x6c,0x6c,0x63,0x74,0x2d])+_0x31c0d3(_0xfd99ec(_0x3ffc9e)),_0x5d1779=window[_0x491d86([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x491d86([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22c7e7);return _0x5d1779?window[_0x491d86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x578486(_0x5d1779),0x10)*_0x984066:null;}function _0x11934e(_0x4f8808){return new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b9103,_0x5a8b3e)=>{_0x4f8808[_0x491d86([0x74,0x68,0x65,0x6e])](_0x5b9103,_0x5a8b3e),window[_0x491d86([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a8b3e,0x4b1d1afe^_0xae1e79);});}}_0x10b150[_0x491d86([0x6f,0x6e])](_0x491d86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b5fd3,_0x2e8c38)=>{if(_0x2e8c38[0x0]!=_0x3ffc9e)return _0x5451ff(_0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e8c38[0x1]={..._0x2e8c38[0x1],[_0x491d86([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d50db};},{[_0x491d86([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x491d86([0x68,0x69,0x67,0x68])}),_0x10b150[_0x491d86([0x6f,0x6e])](_0x491d86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bc9f3=>{_0x3eeb53(_0x2bc9f3[_0x491d86([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x354e16=!0x0,_0x5aea9d(_0x2bc9f3[_0x491d86([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x491d86([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x491d86([0x6c,0x6f,0x77])}),_0x54f15a[_0x491d86([0x74,0x68,0x65,0x6e])](()=>{_0x354e16||_0x5451ff(_0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x33b4bf(){return _0x10b150[_0x491d86([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x491d86([0x76,0x69,0x65,0x77])][_0x491d86([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x491d86([0x61,0x75,0x74,0x6f]);}function _0x34c93a(){_0x10b150[_0x491d86([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x491d86([0x76,0x69,0x65,0x77])][_0x491d86([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x491d86([0x61,0x75,0x74,0x6f]);}}function _0x548148(_0x1c80d1){const _0x142d67=[new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d6f78=>setTimeout(_0x5d6f78,0x4b15f0f2^_0xae1e79)),_0x54f15a[_0x491d86([0x74,0x68,0x65,0x6e])](()=>new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x91bb33=>{let _0x5bbb0e=0x0;_0x10b150[_0x491d86([0x6d,0x6f,0x64,0x65,0x6c])][_0x491d86([0x6f,0x6e])](_0x491d86([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe3aa96,_0x4676cd)=>{_0x4676cd[0x0][_0x491d86([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5bbb0e++,_0x5bbb0e==(0x4b1ccfc6^_0xae1e79)&&(_0x91bb33(),_0xe3aa96[_0x491d86([0x6f,0x66,0x66])]());});}))];return window[_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x491d86([0x72,0x61,0x63,0x65])](_0x142d67)[_0x491d86([0x74,0x68,0x65,0x6e])](()=>_0x1c80d1);}async function _0x2d36bf(){await _0x54f15a,_0x10b150[_0x491d86([0x6d,0x6f,0x64,0x65,0x6c])][_0x491d86([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x24b3f8,_0x10b150[_0x491d86([0x6d,0x6f,0x64,0x65,0x6c])][_0x491d86([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x24b3f8,_0x10b150[_0x491d86([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x491d86([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e5268(){return _0x48d07d(_0x491d86([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x412cc9(_0x491d86([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x491d86([0x73,0x74,0x61,0x74,0x65])]==_0x491d86([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3eac22(){return _0x48d07d(_0x491d86([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 _0x316f53(){return _0x48d07d(_0x491d86([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x578f2d(_0x233c8b){const _0x29f4a3=_0x11a9e();_0x10b150[_0x29f4a3]=_0x491d86([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x233c8b,_0x233c8b!=_0x491d86([0x56,0x61,0x6c,0x69,0x64])&&_0x2d36bf();}function _0x11a9e(){const _0xca1a9d=window[_0x491d86([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x491d86([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x491d86([0x6e,0x6f,0x77])]())[_0x491d86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x491d86([0x2e]),'');let _0x259777=_0x491d86([0x76]);for(let _0x469a4e=0x0;_0x469a4e<_0xca1a9d[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x469a4e+=0x2){let _0x344524=window[_0x491d86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xca1a9d[_0x491d86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x469a4e,_0x469a4e+0x2));_0x344524>=_0xb6302f[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x344524-=_0xb6302f[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x259777+=_0xb6302f[_0x344524];}return _0x259777;}function _0x2b9428(){const _0x3826ea=_0x50b80b[_0x491d86([0x73,0x70,0x6c,0x69,0x74])](_0x491d86([0x2e]));if(0x3!=_0x3826ea[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d655f(_0x3826ea[0x1]);function _0x1d655f(_0x208913){const _0x5254f8=_0x287703(_0x208913);return _0x5254f8&&_0x5283a6()?_0x5254f8:null;function _0x5283a6(){const _0x5b9ea9=_0x5254f8[_0x491d86([0x6a,0x74,0x69])],_0x210522=window[_0x491d86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b9ea9[_0x491d86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b9ea9[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7470ba={..._0x5254f8,[_0x491d86([0x6a,0x74,0x69])]:_0x5b9ea9[_0x491d86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b9ea9[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7470ba[_0x491d86([0x76,0x63])],_0xfd99ec(_0x7470ba)==_0x210522;}}}async function _0x173f5f(){let _0x2943a2=!0x0;try{const _0x3cb676=_0x50b80b[_0x491d86([0x73,0x70,0x6c,0x69,0x74])](_0x491d86([0x2e])),[_0x2d3e40,_0x18488a,_0x142aea]=_0x3cb676;return _0x138bec(_0x2d3e40),await _0x385d9a(_0x2d3e40,_0x18488a,_0x142aea),_0x2943a2;}catch{return!0x1;}function _0x138bec(_0x251e22){const _0x3094e6=_0x287703(_0x251e22);_0x3094e6&&_0x3094e6[_0x491d86([0x61,0x6c,0x67])]==_0x491d86([0x45,0x53,0x32,0x35,0x36])||(_0x2943a2=!0x1);}async function _0x385d9a(_0x3157b2,_0x285ca2,_0x5bcad8){const _0x35430a=window[_0x491d86([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x491d86([0x66,0x72,0x6f,0x6d])](_0x44807f(_0x5bcad8),_0x58bfb1=>_0x58bfb1[_0x491d86([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43fb40=new window[(_0x491d86([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x491d86([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3157b2+_0x491d86([0x2e])+_0x285ca2),_0x580a04=window[_0x491d86([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x491d86([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x580a04)return;const _0x3f4974=await _0x580a04[_0x491d86([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x491d86([0x6a,0x77,0x6b]),_0x15fcd5,{[_0x491d86([0x6e,0x61,0x6d,0x65])]:_0x491d86([0x45,0x43,0x44,0x53,0x41]),[_0x491d86([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x491d86([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x491d86([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x580a04[_0x491d86([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x491d86([0x6e,0x61,0x6d,0x65])]:_0x491d86([0x45,0x43,0x44,0x53,0x41]),[_0x491d86([0x68,0x61,0x73,0x68])]:{[_0x491d86([0x6e,0x61,0x6d,0x65])]:_0x491d86([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f4974,_0x35430a,_0x43fb40)||(_0x2943a2=!0x1);}}function _0x287703(_0x36ba7a){return _0x36ba7a[_0x491d86([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x491d86([0x65,0x79]))?JSON[_0x491d86([0x70,0x61,0x72,0x73,0x65])](_0x44807f(_0x36ba7a)):null;}function _0x44807f(_0x54d6f7){return window[_0x491d86([0x61,0x74,0x6f,0x62])](_0x54d6f7[_0x491d86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x491d86([0x2b]))[_0x491d86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x491d86([0x2f])));}function _0xfd99ec(_0x217f16){let _0x39ccb7=0x1505;function _0xc14302(_0x46c71d){for(let _0x4e24f1=0x0;_0x4e24f1<_0x46c71d[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e24f1++){const _0x555e51=_0x46c71d[_0x491d86([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e24f1);_0x39ccb7=(_0x39ccb7<<0x5)+_0x39ccb7+_0x555e51,_0x39ccb7&=_0x39ccb7;}}function _0xd9ca37(_0x5152db){Array[_0x491d86([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5152db)?_0x5152db[_0x491d86([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd9ca37):_0x5152db&&typeof _0x5152db==_0x491d86([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x491d86([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5152db)[_0x491d86([0x73,0x6f,0x72,0x74])]()[_0x491d86([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23d0f4,_0x17103e])=>{_0xc14302(_0x23d0f4),_0xd9ca37(_0x17103e);}):_0xc14302(window[_0x491d86([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5152db));}return _0xd9ca37(_0x217f16),_0x39ccb7>>>0x0;}function _0x31c0d3(_0x10a1f4){return _0x10a1f4[_0x491d86([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x491d86([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x491d86([0x30]));}function _0x578486(_0x206a86){return _0x206a86[_0x491d86([0x73,0x70,0x6c,0x69,0x74])]('')[_0x491d86([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x491d86([0x6a,0x6f,0x69,0x6e])]('');}function _0x48d07d(_0x32c64c){return _0x10b150[_0x491d86([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x491d86([0x68,0x61,0x73])](_0x32c64c);}function _0x412cc9(_0x223d6f){return _0x10b150[_0x491d86([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x491d86([0x67,0x65,0x74])](_0x223d6f);}function _0x24b3f8(){}function _0x491d86(_0x1004aa){return _0x1004aa['map'](_0x3d224c=>String['fromCharCode'](_0x3d224c))['join']('');}_0x578f2d(await _0x44c352());}(this);}set['adapter'](_0x136247){if(this['_adapter'])throw new _0x5121be('track-changes-adapter-already-set',this);this['_adapter']=_0x136247;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1c1d33=!0x1,toJSON:_0x2dccf8=!0x1}={}){const _0xba8d63=[];for(const _0x207f88 of this['_suggestions']['values']())_0x1c1d33&&!_0x207f88['isInContent']||_0xba8d63['push'](_0x207f88);return _0x2dccf8?_0xba8d63['map'](_0x55d082=>_0x55d082['toJSON']()):_0xba8d63;}['getSuggestion'](_0x3da3b8){const _0x10efb8=this['_suggestions']['get'](_0x3da3b8);if(!_0x10efb8)throw new _0x5121be('track-changes-suggestion-not-found',this);return _0x10efb8;}['hasSuggestion'](_0x144d7b){return this['_suggestions']['has'](_0x144d7b);}['addSuggestionData'](_0x34b759){const {authorId:_0x1f62ed,id:_0x4fb4ce,originalSuggestionId:_0x45aa9d,attributes:_0x519401}=_0x34b759,[_0x5eb315,_0x3e636b]=_0x34b759['type']['split'](':'),_0x18cb19=this['_suggestions']['get'](_0x4fb4ce)||this['_createSuggestion'](_0x5eb315,_0x3e636b,_0x4fb4ce,_0x1f62ed,_0x519401,_0x45aa9d);if(this['_addThreadToSuggestion'](_0x18cb19),this['_checkSuggestionCorrectness'](_0x18cb19,_0x5eb315,_0x3e636b||null,_0x1f62ed),_0x18cb19['createdAt']=_0x34b759['createdAt'],_0x18cb19['_isDataLoaded']=!0x0,_0x519401&&_0x519401['@external']){const _0x172d18=_0x519401['@external'],_0x405f5c=this['_getExternalAuthor'](_0x172d18['authorName']);_0x18cb19['authoredAt']=_0x172d18['createdAt'],_0x18cb19['author']=_0x405f5c,_0x18cb19['isExternal']=!0x0;}else _0x18cb19['authoredAt']=_0x34b759['createdAt'];switch(_0x34b759['data']&&(_0x18cb19['data']=_0x34b759['data']),_0x34b759['attributes']&&(_0x18cb19['attributes']=_0x34b759['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x18cb19['_saved']=!0x0),this['_suggestionState']['get'](_0x18cb19)){case'notReady':this['_suggestionState']['set'](_0x18cb19,'dataReady');break;case'markerReady':_0x18cb19['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x18cb19])),this['_refreshSuggestionsChain'](new Set([_0x18cb19])),this['_suggestionState']['set'](_0x18cb19,'ready'),this['fire']('suggestionLoaded',_0x18cb19)):this['_suggestionState']['set'](_0x18cb19,'removed');}return _0x18cb19;}['acceptSuggestion'](_0xb214c3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x44d919 of _0xb214c3['getAllAdjacentSuggestions']())_0x44d919['accept']();});});}['discardSuggestion'](_0x451d59){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x42b576 of _0x451d59['getAllAdjacentSuggestions']())_0x42b576['discard']();});});}['enableCommand'](_0x2c4308,_0x3ec7dd){const _0x4158dd=this['editor']['commands']['get'](_0x2c4308);if(!_0x4158dd)throw new _0x5121be('track-changes-command-not-found',this,{'commandName':_0x2c4308});if(this['_enabledCommands']['has'](_0x4158dd))throw new _0x5121be('track-changes-enable-command-twice',this,{'commandName':_0x2c4308});this['_enabledCommands']['add'](_0x4158dd),_0x3ec7dd&&_0x4158dd['on']('execute',(_0x2e9201,_0x5b4dc2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5b4dc2['length']>0x0&&_0x5b4dc2[_0x5b4dc2['length']-0x1]&&_0x5b4dc2[_0x5b4dc2['length']-0x1]['forceDefaultExecution']?_0x5b4dc2['pop']():(_0x2e9201['return']=_0x3ec7dd((..._0x5d882b)=>_0x4158dd['execute'](..._0x5d882b,{'forceDefaultExecution':!0x0}),..._0x5b4dc2),_0x2e9201['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1855bd){let _0x312ead,_0xbf3bea;const _0x4340ab=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x312ead=_0x1855bd();}catch(_0x5bc437){_0xbf3bea=_0x5bc437;}return _0x4340ab||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xbf3bea&&_0x5121be['rethrowUnexpectedError'](_0xbf3bea,this),_0x312ead;}['markInsertion'](_0x12c031,_0x56f3ba=null,_0x96991c={}){if(_0x12c031['isCollapsed'])return null;const _0x7016ed=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x96991c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2463c5,meta:_0x55c812}of this['_findSuggestions'](_0x12c031,'insertion'))if(_0x55c812['isOwn']){if(!_0x55c812['isNextTo']){if(_0x55c812['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x2463c5,_0x96991c))continue;return _0x2463c5;}if(Xt(_0x2463c5,_0x96991c))return _0x2463c5;this['_breakSuggestionMarker'](_0x2463c5,_0x12c031['start'],_0x12c031['end']);break;}if(_0x56f3ba==_0x2463c5['subType']&&Xt(_0x2463c5,_0x96991c)){const _0x2cfc3c=_0x2463c5['getFirstRange']();return _0x2cfc3c['start']['isEqual'](_0x12c031['end'])?this['_setSuggestionRange'](_0x2463c5,this['_model']['createRange'](_0x12c031['start'],_0x2cfc3c['end'])):this['_setSuggestionRange'](_0x2463c5,this['_model']['createRange'](_0x2cfc3c['start'],_0x12c031['end'])),_0x2463c5;}}const _0x365f76=_0x34bf97(),_0x3df0ae=_0x7016ed['id'],_0x4a0de1=_0x56f3ba?'insertion:'+_0x56f3ba:'insertion',_0x55a4f0=this['_setSuggestionData']({'id':_0x365f76,'type':_0x4a0de1,'createdAt':new Date(),'authorId':_0x3df0ae,'attributes':_0x96991c});return this['_addSuggestionMarker'](_0x4a0de1,_0x365f76,_0x3df0ae,_0x12c031),_0x55a4f0;}['markMultiRangeInsertion'](_0x222ce4,_0x23342f='multi',_0x2861e2={}){const _0x22cc31=this['editor']['plugins']['get']('Users')['me'],_0x27d2aa=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x23342f,'join');this['_trackingSessionId']&&(_0x2861e2['trackingSessionId']=this['_trackingSessionId']);for(const _0x1c36cb of this['getSuggestions']())if(_0x1c36cb['author']['id']==_0x22cc31['id']&&'insertion'==_0x1c36cb['type']&&_0x1c36cb['subType']==_0x23342f&&Xt(_0x1c36cb,_0x2861e2)&&(_0x27d2aa(_0x1c36cb['getRanges'](),_0x222ce4)||_0x27d2aa(_0x222ce4,_0x1c36cb['getRanges']()))){for(const _0x4530b3 of _0x222ce4)_0x1c36cb['addRange'](_0x4530b3);return _0x1c36cb;}for(const {suggestion:_0x22d1a8,meta:_0x53be05}of this['_findSuggestions'](_0x222ce4,'insertion')){if(!_0x53be05['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x53be05['containsRangeInObject'])continue;if(!Xt(_0x22d1a8,_0x2861e2))continue;let _0x42749b=!0x0;for(const _0x3d4a27 of _0x22d1a8['getRanges']())for(const _0x3c84b9 of _0x222ce4)if(!_0x3d4a27['containsRange'](_0x3c84b9)){_0x42749b=!0x1;break;}if(_0x42749b)return _0x22d1a8;}const _0x3450e4=_0x34bf97(),_0x328af6=_0x22cc31['id'],_0x55b8a3='insertion:'+_0x23342f,_0x301ed3=this['_setSuggestionData']({'id':_0x3450e4,'type':_0x55b8a3,'createdAt':new Date(),'authorId':_0x328af6,'attributes':_0x2861e2});for(const _0x23fd5b of _0x222ce4)this['_addSuggestionMarker'](_0x55b8a3,_0x3450e4,_0x328af6,_0x23fd5b,o['getMultiRangeId']());return _0x301ed3;}['markInlineFormat'](_0x4c98b6,_0xa817cb,_0x1bbb96=null,_0x12b1cb={}){if(_0x1bbb96=_0x1bbb96||Kt(_0xa817cb),_0x4c98b6['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x12b1cb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x19b71f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1bbb96,'accept');return this['forceDefaultExecution'](()=>_0x19b71f([_0x4c98b6],_0xa817cb,_0x12b1cb)),null;}const _0x548186=this['editor']['plugins']['get']('Users')['me'],_0x17dfbb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xd16562,meta:_0x3350c4}of this['_findSuggestions'](_0x4c98b6,'insertion'))_0x3350c4['isOwn']&&!_0x3350c4['isInsideObject']&&_0x17dfbb['push'](..._0xd16562['getRanges']());}const _0x385c08=function(_0x5aef6c,_0x292804){const _0x535269=[];for(const _0x4c5234 of _0x292804){const _0x453b7a=_0x5aef6c['getIntersection'](_0x4c5234);_0x453b7a&&_0x535269['push'](_0x453b7a);}return _0x535269;}(_0x4c98b6,_0x17dfbb),_0x3cc735=function(_0x2acdf1,_0x36098e){const _0x3d896f=[_0x2acdf1];for(const _0x4e8a83 of _0x36098e){let _0x5d1f67=0x0;for(;_0x5d1f67<_0x3d896f['length'];){const _0xf06b19=_0x3d896f[_0x5d1f67]['getDifference'](_0x4e8a83);_0x3d896f['splice'](_0x5d1f67,0x1,..._0xf06b19),_0x5d1f67+=_0xf06b19['length'];}}return _0x3d896f;}(_0x4c98b6,_0x17dfbb);_0x385c08['length']&&this['_model']['change'](()=>{for(const _0x354945 of _0x385c08){const _0x4368ed=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1bbb96,'accept');this['forceDefaultExecution'](()=>_0x4368ed([_0x354945],_0xa817cb,_0x12b1cb));}});for(const _0x59a4bb of _0x3cc735){let _0x53e535=null,_0x1862c=_0x59a4bb['start'],_0x3b9df9=_0x59a4bb['end'];for(const {suggestion:_0x32ec30,meta:_0x1dc7aa}of this['_findSuggestions'](_0x59a4bb,'formatInline')){if(!_0x1dc7aa['isOwn'])continue;if(_0x32ec30['subType']!=_0x1bbb96)continue;if(!Xt(_0x32ec30,_0x12b1cb))continue;const _0x4a6e94=_0x32ec30['getFirstRange']();if(_0x4a6e94['containsRange'](_0x59a4bb,!0x0))return null;_0x1862c=_0x1862c['isBefore'](_0x4a6e94['start'])?_0x1862c:_0x4a6e94['start'],_0x3b9df9=_0x3b9df9['isAfter'](_0x4a6e94['end'])?_0x3b9df9:_0x4a6e94['end'],_0x53e535?_0x4a6e94['start']['isBefore'](_0x53e535['getFirstRange']()['start'])?(_0x53e535['removeMarkers'](),_0x53e535=_0x32ec30):_0x32ec30['removeMarkers']():_0x53e535=_0x32ec30;}const _0x2ac8e1=this['_model']['createRange'](_0x1862c,_0x3b9df9);if(_0x53e535)this['_setSuggestionRange'](_0x53e535,_0x2ac8e1);else{const _0xdeeeea=_0x34bf97(),_0x3b1b79=_0x548186['id'];this['_setSuggestionData']({'id':_0xdeeeea,'type':'formatInline:'+_0x1bbb96,'data':_0xa817cb,'createdAt':new Date(),'authorId':_0x3b1b79,'attributes':_0x12b1cb}),this['_addSuggestionMarker']('formatInline:'+_0x1bbb96,_0xdeeeea,_0x3b1b79,_0x2ac8e1);}}return null;}['markBlockFormat'](_0x127a54,_0x6626ae,_0x5153a5=[],_0x28172d=null,_0x1e111f={}){_0x6626ae['formatGroupId']||(_0x6626ae['formatGroupId']=_0x6626ae['commandName']),_0x6626ae['multipleBlocks']=_0x127a54['is']('range'),_0x28172d=_0x28172d||Kt(_0x6626ae);const _0x12dce9=_0x5153a5['map'](_0x4c84cd=>zt(_0x4c84cd,this['_model'])),_0x5b81ad=_0x127a54['is']('range')?_0x127a54:zt(_0x127a54,this['_model']);if(this['_trackingSessionId']&&(_0x1e111f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x16edf8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28172d,'accept');return this['forceDefaultExecution'](()=>_0x16edf8([_0x5b81ad],_0x6626ae,_0x1e111f)),null;}_0x12dce9['push'](_0x5b81ad);let _0x526263=!0x0;for(const _0x1a6696 of _0x12dce9)if(!this['_rangeIsInLocalUserInsertion'](_0x1a6696)){_0x526263=!0x1;break;}if(_0x526263&&'always'!==this['_trackFormatChanges']){const _0x57ac1d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28172d,'accept');return this['forceDefaultExecution'](()=>_0x57ac1d([_0x5b81ad],_0x6626ae,_0x1e111f)),null;}let _0x14f825=null,_0x54995c=_0x5b81ad['start'],_0x58f2df=_0x5b81ad['end'];for(const {suggestion:_0x2ba9ff,meta:_0x428418}of this['_findSuggestions'](_0x5b81ad,'formatBlock')){if(!_0x428418['isOwn'])continue;if(_0x428418['isNextTo']||_0x428418['containsRangeInObject']||_0x428418['isInsideObject'])continue;if(_0x2ba9ff['data']['formatGroupId']!=_0x6626ae['formatGroupId'])continue;if(!Xt(_0x2ba9ff,_0x1e111f))continue;const _0x4f5229=_0x2ba9ff['getFirstRange']();if(_0x2ba9ff['subType']==_0x28172d){if(_0x4f5229['containsRange'](_0x5b81ad,!0x0))return null;_0x54995c=_0x54995c['isBefore'](_0x4f5229['start'])?_0x54995c:_0x4f5229['start'],_0x58f2df=_0x58f2df['isAfter'](_0x4f5229['end'])?_0x58f2df:_0x4f5229['end'],_0x14f825?_0x4f5229['start']['isBefore'](_0x14f825['getFirstRange']()['start'])?(_0x14f825['removeMarkers'](),_0x14f825=_0x2ba9ff):_0x2ba9ff['removeMarkers']():_0x14f825=_0x2ba9ff;}else{const _0x3ab377=_0x5b81ad['getIntersection'](_0x4f5229);this['_cutOutSuggestionMarker'](_0x2ba9ff,_0x3ab377);}}const _0x5ed35d=this['editor']['plugins']['get']('Users')['me'],_0x480c88=_0x34bf97(),_0x2cee7d=_0x5ed35d['id'];if(_0x14f825)return this['_setSuggestionRange'](_0x14f825,this['_model']['createRange'](_0x54995c,_0x58f2df)),_0x14f825;{const _0x2956ab=this['_setSuggestionData']({'id':_0x480c88,'type':'formatBlock:'+_0x28172d,'data':_0x6626ae,'createdAt':new Date(),'authorId':_0x2cee7d,'attributes':_0x1e111f});return this['_addSuggestionMarker']('formatBlock:'+_0x28172d,_0x480c88,_0x2cee7d,this['_model']['createRange'](_0x54995c,_0x58f2df)),_0x2956ab;}}['markMultiRangeBlockFormat'](_0x526990,_0x2c347c,_0x589012=[],_0x5d4ed6=null,_0x17b248={}){_0x2c347c['formatGroupId']||(_0x2c347c['formatGroupId']=_0x2c347c['commandName']);const _0x42e9ce=_0x526990[0x0];_0x2c347c['multipleBlocks']=_0x42e9ce['is']('range'),_0x5d4ed6=_0x5d4ed6||Kt(_0x2c347c);const _0x1864b9=_0x589012['map'](_0x4577ca=>zt(_0x4577ca,this['_model'])),_0x2fdbcc=_0x42e9ce['is']('range')?_0x526990:_0x526990['map'](_0x45d411=>zt(_0x45d411,this['_model']));if(this['_trackingSessionId']&&(_0x17b248['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x140b4a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d4ed6,'accept');return this['forceDefaultExecution'](()=>_0x140b4a(_0x2fdbcc,_0x2c347c,_0x17b248)),null;}_0x1864b9['push'](..._0x2fdbcc);let _0x29b935=!0x0;for(const _0x371aa5 of _0x1864b9)if(!this['_rangeIsInLocalUserInsertion'](_0x371aa5)){_0x29b935=!0x1;break;}if(_0x29b935&&'always'!==this['_trackFormatChanges']){const _0x5e45fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d4ed6,'accept');return this['forceDefaultExecution'](()=>_0x5e45fe(_0x2fdbcc,_0x2c347c,_0x17b248)),null;}const _0x56dc38=this['editor']['plugins']['get']('Users')['me'];for(const _0x39e0c7 of this['getSuggestions']()){if(_0x39e0c7['author']['id']!=_0x56dc38['id'])continue;if('formatBlock'!=_0x39e0c7['type']||_0x39e0c7['data']['formatGroupId']!=_0x2c347c['formatGroupId'])continue;if(!Xt(_0x39e0c7,_0x17b248))continue;const _0x4cfac6=_0x39e0c7['subType']==_0x5d4ed6;for(let _0x2a2797=0x0;_0x2a2797<_0x2fdbcc['length'];_0x2a2797++){const _0x1bac0f=_0x2fdbcc[_0x2a2797];for(const _0x1bcb80 of _0x39e0c7['getMarkers']()){const _0x2e4570=_0x1bcb80['getRange']();if(_0x1bac0f['isEqual'](_0x2e4570)){_0x4cfac6?(_0x2fdbcc['splice'](_0x2a2797,0x1),_0x2a2797--):_0x39e0c7['removeMarker'](_0x1bcb80['name']);break;}}}}if(0x0==_0x2fdbcc['length'])return null;const _0x5f0b83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d4ed6,'join');for(const _0x293d1d of this['getSuggestions']())if(_0x293d1d['author']['id']==_0x56dc38['id']&&'formatBlock'==_0x293d1d['type']&&_0x293d1d['data']['formatGroupId']==_0x2c347c['formatGroupId']&&_0x293d1d['subType']==_0x5d4ed6&&Xt(_0x293d1d,_0x17b248)&&(_0x5f0b83(_0x293d1d['getRanges'](),_0x2fdbcc)||_0x5f0b83(_0x2fdbcc,_0x293d1d['getRanges']()))){for(const _0xa18164 of _0x2fdbcc)_0x293d1d['addRange'](_0xa18164);return _0x293d1d;}const _0x91f08c=_0x34bf97(),_0x2c57b3=_0x56dc38['id'],_0x3f9f9e='formatBlock:'+_0x5d4ed6,_0x1a3868=this['_setSuggestionData']({'id':_0x91f08c,'type':_0x3f9f9e,'data':_0x2c347c,'createdAt':new Date(),'authorId':_0x2c57b3,'attributes':_0x17b248});for(const _0x34d78a of _0x2fdbcc)this['_addSuggestionMarker'](_0x3f9f9e,_0x91f08c,_0x2c57b3,_0x34d78a,o['getMultiRangeId']());return _0x1a3868;}['markDeletion'](_0xc7374d,_0x48a71e=null,_0xdbe16d={}){if(_0xc7374d['isCollapsed'])return null;const _0x574c39=this['editor']['plugins']['get']('Users')['me'],_0x3f1f2c=new _0x275766(_0xc7374d['start'],_0xc7374d['end']);this['_trackingSessionId']&&(_0xdbe16d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x390e56,meta:_0x5a2fbf}of this['_findSuggestions'](_0x3f1f2c,'insertion'))if(_0x5a2fbf['isOwn']&&!_0x5a2fbf['isNextTo']){if(_0x390e56['isMultiRange']){const _0x528d30=_0x390e56['getRanges']()['filter'](_0x12af16=>'$graveyard'!=_0x12af16['root']['rootName']);_0x528d30['every'](_0x28d5b9=>_0x3f1f2c['containsRange'](_0x28d5b9,!0x0))&&_0x390e56['discard']();if(_0x528d30['some'](_0x33ba16=>_0x33ba16['containsRange'](_0x3f1f2c,!0x0))){const _0x44644b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48a71e,'accept');return this['forceDefaultExecution'](()=>_0x44644b([_0x3f1f2c],null,_0xdbe16d)),null;}}else{const _0xaae69f=_0x3f1f2c['getIntersection'](_0x390e56['getFirstRange']());null!==_0xaae69f&&_0x390e56['_onDiscard']([_0xaae69f],null,_0xdbe16d);}}if(_0x3f1f2c['detach'](),_0x3f1f2c['isCollapsed']||'$graveyard'==_0x3f1f2c['root']['rootName'])return null;let _0x32b865=null,_0x4d4ce9=_0x3f1f2c['start'],_0x333966=_0x3f1f2c['end'];const _0x5d5cce=this['_findSuggestions'](_0x3f1f2c,'deletion');for(const {suggestion:_0x461da0,meta:_0x4b3e18}of _0x5d5cce){const _0x3f1759=this['_model']['createRange'](_0x4d4ce9,_0x333966);if(_0x4b3e18['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b3e18['containsRangeInObject']&&!_0x4b3e18['isInsideObject'])){if(_0x461da0['isMultiRange']){if(!Xt(_0x461da0,_0xdbe16d))continue;let _0x4e74fc=!0x0;for(const _0xa67723 of _0x461da0['getRanges']()){if(_0xa67723['containsRange'](_0x3f1759,!0x0))return _0x461da0;_0x3f1759['containsRange'](_0xa67723)||(_0x4e74fc=!0x1);}_0x4e74fc&&_0x461da0['discard']();}else{const _0x265e44=_0x461da0['getFirstRange']();if(_0x265e44['containsRange'](_0x3f1759,!0x0))return _0x461da0;if(!Xt(_0x461da0,_0xdbe16d)){_0x3f1759['containsRange'](_0x265e44)?_0x461da0['removeMarkers']():_0x265e44['containsPosition'](_0x4d4ce9)?_0x4d4ce9=_0x265e44['end']:_0x265e44['containsPosition'](_0x333966)&&(_0x333966=_0x265e44['start']);continue;}_0x4d4ce9=_0x4d4ce9['isBefore'](_0x265e44['start'])?_0x4d4ce9:_0x265e44['start'],_0x333966=_0x333966['isAfter'](_0x265e44['end'])?_0x333966:_0x265e44['end'],_0xdbe16d=Object['assign']({},_0x461da0['attributes']),_0x32b865?_0x265e44['start']['isBefore'](_0x32b865['getFirstRange']()['start'])?(_0x32b865['removeMarkers'](),_0x32b865=_0x461da0):_0x461da0['removeMarkers']():_0x32b865=_0x461da0;}}}if(_0x32b865)return this['_setSuggestionRange'](_0x32b865,this['_model']['createRange'](_0x4d4ce9,_0x333966)),_0x32b865;{const _0xbe064b=_0x34bf97(),_0x220fca=this['_model']['createRange'](_0x4d4ce9,_0x333966),_0x4b35ed=_0x574c39['id'],_0x4a52bc=_0x48a71e?'deletion:'+_0x48a71e:'deletion',_0x1f73b8=this['_setSuggestionData']({'id':_0xbe064b,'type':_0x4a52bc,'createdAt':new Date(),'authorId':_0x4b35ed,'attributes':_0xdbe16d});return this['_addSuggestionMarker'](_0x4a52bc,_0xbe064b,_0x4b35ed,_0x220fca),_0x1f73b8;}}['markMultiRangeDeletion'](_0x123e09,_0x2e1b4c='multi',_0x1aef00={}){const _0x4a375f=this['editor']['plugins']['get']('Users')['me'],_0x468d8d=_0x123e09['map'](_0x482ab7=>new _0x275766(_0x482ab7['start'],_0x482ab7['end'])),_0x1bbf2a=new Set();this['_trackingSessionId']&&(_0x1aef00['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3d4ebb,meta:_0x45fb25}of this['_findSuggestions'](_0x468d8d,'insertion'))_0x45fb25['isOwn']&&!_0x45fb25['isNextTo']&&_0x1bbf2a['add'](_0x3d4ebb);for(const _0x2b9c17 of _0x1bbf2a)if(_0x2b9c17['isMultiRange']){const _0x3987a7=_0x2b9c17['getRanges']();(!_0x2b9c17['attributes']||!_0x2b9c17['attributes']['skipNestingCheck'])&&(_0x3987a7['every'](_0x47562b=>_0x468d8d['some'](_0xede216=>_0xede216['containsRange'](_0x47562b,!0x0)))&&_0x2b9c17['discard']());if(_0x468d8d['every'](_0x4dde70=>_0x3987a7['some'](_0x27b81e=>_0x27b81e['containsRange'](_0x4dde70,!0x0)))){const _0x921770=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e1b4c,'accept');return this['forceDefaultExecution'](()=>_0x921770(_0x123e09,null,_0x1aef00)),null;}}else{const _0x1b2598=_0x2b9c17['getFirstRange']();_0x468d8d['some'](_0x2e2f21=>_0x2e2f21['containsRange'](_0x1b2598,!0x0))&&_0x2b9c17['discard']();if(_0x468d8d['every'](_0x2d9e48=>_0x1b2598['containsRange'](_0x2d9e48,!0x0))){const _0x1d7108=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e1b4c,'accept');return this['forceDefaultExecution'](()=>_0x1d7108(_0x468d8d,null,_0x1aef00)),null;}}const _0x11214c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e1b4c,'join');let _0x4af7b7=null;for(const _0x31c206 of this['getSuggestions']())if(_0x31c206['author']['id']==_0x4a375f['id']&&_0x31c206['isInContent']&&'deletion'==_0x31c206['type']&&_0x31c206['subType']==_0x2e1b4c&&Xt(_0x31c206,_0x1aef00)&&(_0x11214c(_0x31c206['getRanges'](),_0x468d8d)||_0x11214c(_0x468d8d,_0x31c206['getRanges']()))){if(_0x4af7b7){if(_0x31c206['commentThread']&&_0x31c206['commentThread']['length'])continue;for(const _0x47e635 of _0x31c206['getRanges']())_0x4af7b7['isIntersectingWithRange'](_0x47e635)||_0x4af7b7['addRange'](_0x47e635);_0x31c206['removeMarkers']();}else{_0x4af7b7=_0x31c206;for(const _0xe7ca3e of _0x468d8d)_0x31c206['isIntersectingWithRange'](_0xe7ca3e)||_0x31c206['addRange'](_0xe7ca3e);}}if(_0x4af7b7)return _0x4af7b7;_0x1bbf2a['clear']();for(const {suggestion:_0x38b9db,meta:_0x4a47b2}of this['_findSuggestions'](_0x468d8d,'deletion'))_0x4a47b2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a47b2['containsRangeInObject']&&!_0x4a47b2['isInsideObject'])&&Xt(_0x38b9db,_0x1aef00)&&_0x1bbf2a['add'](_0x38b9db);for(const _0x78074a of _0x1bbf2a){const _0x82761d=_0x78074a['getRanges']();if(!_0x1aef00||!_0x1aef00['skipNestingCheck']){if(_0x468d8d['every'](_0x3333ac=>_0x82761d['some'](_0x5ba9af=>_0x5ba9af['containsRange'](_0x3333ac,!0x0))))return _0x78074a;}(!_0x78074a['attributes']||!_0x78074a['attributes']['skipNestingCheck'])&&(_0x82761d['every'](_0xd50fc7=>_0x468d8d['some'](_0x54b13f=>_0x54b13f['containsRange'](_0xd50fc7,!0x0)))&&_0x78074a['discard']());}const _0x39377f=_0x34bf97(),_0x4fa9c1=_0x4a375f['id'],_0x2d131d='deletion:'+_0x2e1b4c,_0xd0fcbf=this['_setSuggestionData']({'id':_0x39377f,'type':_0x2d131d,'createdAt':new Date(),'authorId':_0x4fa9c1,'attributes':_0x1aef00});for(const _0x23a150 of _0x468d8d)_0x23a150['detach'](),_0x23a150['isCollapsed']||'$graveyard'==_0x23a150['root']['rootName']||this['_addSuggestionMarker'](_0x2d131d,_0x39377f,_0x4fa9c1,_0x23a150,o['getMultiRangeId']());return _0xd0fcbf;}['markAttributeChange'](_0x3ef1c4,_0x377cb7,_0x468ef0,_0x1ab694,_0x10933d){if(_0x3ef1c4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1a654a=this['editor']['plugins']['get']('Users')['me']['id'],_0x3f5037=Array['from'](this['_suggestions']['values']())['filter'](_0xcf374a=>'attribute'==_0xcf374a['type']&&_0xcf374a['data']['key']==_0x377cb7&&_0xcf374a['isIntersectingWithRange'](_0x3ef1c4));if(this['_trackingSessionId']&&(_0x10933d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x209564=this['_findSuggestions'](_0x3ef1c4,'insertion')['filter'](({meta:_0x5a90d6})=>_0x5a90d6['isOwn']&&!_0x5a90d6['isInsideObject']&&!_0x5a90d6['isNextTo'])['map'](({suggestion:_0x3e814c})=>_0x3e814c);_0x3f5037['unshift'](..._0x209564);}const _0x2178a1=new Map([[_0x3ef1c4,_0x468ef0]]);for(const _0x3819e0 of _0x3f5037){const _0x428dc6='attribute'==_0x3819e0['type']?_0x3819e0['data']['oldValue']:void 0x0,_0xb2bf8c=_0x3819e0['getFirstRange'](),_0x4a13dc=Array['from'](_0x2178a1['keys']())['find'](_0x5728dc=>_0x5728dc['isIntersecting'](_0xb2bf8c));if(!_0x4a13dc)continue;const _0x249ee7=_0x4a13dc['getDifference'](_0xb2bf8c);this['_isBlockAttribute'](_0x377cb7)&&'insertion'==_0x3819e0['type']&&0x0!=_0x249ee7['length']||(_0x2178a1['delete'](_0x4a13dc),_0x249ee7['forEach'](_0x393fff=>{_0x2178a1['set'](_0x393fff,_0x468ef0);}),'insertion'!=_0x3819e0['type']&&_0x428dc6!=_0x1ab694&&_0x2178a1['set'](_0x4a13dc['getIntersection'](_0xb2bf8c),_0x428dc6));}const _0x36864a=[];for(const [_0x4efaa9,_0x32e0b5]of _0x2178a1){const _0x54288e=_0x34bf97(),_0x4958b6={'key':_0x377cb7,'oldValue':_0x32e0b5,'newValue':_0x1ab694};_0x377cb7['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':_0x377cb7});const _0x56ef3f=('attribute:'+(_0x377cb7+'|'+Kt({'newValue':_0x1ab694})))['substring'](0x0,0x3c),_0x19e456=this['_setSuggestionData']({'id':_0x54288e,'type':_0x56ef3f,'data':_0x4958b6,'createdAt':new Date(),'authorId':_0x1a654a,'attributes':_0x10933d});_0x36864a['push'](_0x19e456),this['_addSuggestionMarker'](_0x56ef3f,_0x54288e,_0x1a654a,_0x4efaa9);}return _0x36864a;}['enableDefaultAttributesIntegration'](_0x1e6179){this['enableCommand'](_0x1e6179,(_0x160f6f,..._0x38d173)=>{this['_recordAttributeChanges'](()=>{_0x160f6f(..._0x38d173);});});}['registerBlockAttribute'](_0x425161){this['_blockAttributeKeys']['add'](_0x425161);}['registerInlineAttribute'](_0x409389){this['_inlineAttributeKeys']['add'](_0x409389);}['startTrackingSession'](_0x4bb0e6){return this['_trackingSessionId']=void 0x0!==_0x4bb0e6?_0x4bb0e6:_0x34bf97(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5db478){return'attribute'==_0x5db478['type']?_0x5db478['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3f2dd1,_0x3757c7){const _0x30210d=_0x3f2dd1['getFirstMarker']();this['_model']['change'](_0x58fc40=>{_0x58fc40['updateMarker'](_0x30210d,{'range':_0x3757c7});});}['_addThreadToSuggestion'](_0x662e70){const _0x45bb71=_0x662e70['id'],_0x3ee514=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x45bb71)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3ee514,'threadId':_0x45bb71,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1cb3e9=this['_commentsRepository']['getCommentThread'](_0x45bb71);_0x1cb3e9['unbind']('isRemovable'),_0x1cb3e9['isRemovable']=!0x1,_0x662e70['commentThread']=_0x1cb3e9;}['_checkSuggestionCorrectness'](_0x14ee41,_0x522a33,_0x1e77e0,_0x3de306){if(_0x14ee41['type']!=_0x522a33||_0x14ee41['subType']!=_0x1e77e0||_0x14ee41['creator']['id']!=_0x3de306)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5121be('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x453896,_0x16fef6){const _0x758989=_0x453896['getFirstRange']();if(_0x16fef6['isEqual'](_0x758989))_0x453896['removeMarkers']();else{if(_0x758989['containsRange'](_0x16fef6)){const _0x2b71f2=this['_model']['createPositionAt'](_0x16fef6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x453896,this['_model']['createRange'](_0x758989['start'],_0x2b71f2));const _0x414491=_0x34bf97(),_0x3514b5=_0x453896['creator']['id'],_0x29ec3f=_0x453896['type']+':'+_0x453896['subType'];this['_setSuggestionData']({'id':_0x414491,'type':_0x29ec3f,'createdAt':new Date(),'authorId':_0x3514b5,'data':_0x453896['data'],'attributes':_0x453896['attributes']});const _0x3a1e1a=this['_model']['createPositionAt'](_0x16fef6['end']['parent'],'after'),_0x2d6ff1=this['_model']['createRange'](_0x3a1e1a,_0x758989['end']);this['_addSuggestionMarker'](_0x29ec3f,_0x414491,_0x3514b5,_0x2d6ff1);}else{if(_0x758989['containsPosition'](_0x16fef6['start'])){const _0x29bc57=this['_model']['createPositionAt'](_0x16fef6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x453896,this['_model']['createRange'](_0x758989['start'],_0x29bc57));}else{const _0x4cb013=this['_model']['createPositionAt'](_0x16fef6['end']['parent'],'after');this['_setSuggestionRange'](_0x453896,this['_model']['createRange'](_0x4cb013,_0x758989['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x49be78){for(const {suggestion:_0x326fe6,meta:_0x259a31}of this['_findSuggestions'](_0x49be78,'insertion')){if(!_0x259a31['isOwn'])continue;const _0x48139b=_0x326fe6['getRanges']();for(const _0x125545 of _0x48139b)if(!_0x49be78['getDifference'](_0x125545)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x43ec95){const _0x2e4b39=this['editor']['plugins']['get']('Users')['getUser'](_0x43ec95);if(!_0x2e4b39)throw new _0x5121be('track-changes-user-not-found',this);return _0x2e4b39;}['_getExternalAuthor'](_0x43df16){const _0x5bf67e=this['editor']['plugins']['get']('Users'),_0x750a0e=_0x3d6420('external:'+_0x43df16),_0x5c99fe=_0x5bf67e['getUser'](_0x750a0e);return _0x5c99fe||_0x5bf67e['addUser']({'id':_0x750a0e,'name':_0x43df16});}['_createSuggestion'](_0x450a7f,_0x611303,_0x2b4a89,_0x1124f9,_0x58c504,_0x2e49fd){const _0x5605f0=this['_getAuthorFromId'](_0x1124f9),_0x558cb3=this['_suggestionFactory']['buildSuggestion'](_0x450a7f,_0x611303,_0x2b4a89,_0x5605f0,_0x58c504,_0x895351=>{this['_updateSuggestionData'](_0x2b4a89,{'attributes':_0x895351});const _0x4256bc=this['getSuggestion'](_0x2b4a89);this['_joinWithAdjacentSuggestions'](new Set([_0x4256bc])),this['_refreshSuggestionsChain'](new Set([_0x4256bc]));},_0x2e49fd);return this['listenTo'](_0x558cb3,'accept',()=>{this['_updateSuggestionData'](_0x2b4a89,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x558cb3,'discard',()=>{this['_updateSuggestionData'](_0x2b4a89,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2b4a89,_0x558cb3),this['_suggestionState']['set'](_0x558cb3,'notReady'),_0x558cb3;}['_splitMarkerName'](_0x5dd224){const _0x3ae09d=_0x5dd224['split'](':');return{'group':_0x3ae09d[0x0],'type':_0x3ae09d[0x1],'subType':_0x3ae09d['length']>=0x5?_0x3ae09d[0x2]:null,'id':_0x3ae09d['length']<0x5?_0x3ae09d[0x2]:_0x3ae09d[0x3],'authorId':_0x3ae09d['length']<0x5?_0x3ae09d[0x3]:_0x3ae09d[0x4],'markerCount':0x6==_0x3ae09d['length']?_0x3ae09d[0x5]:null};}['_breakSuggestionMarker'](_0x20563f,_0x3bfd06,_0x384350){const _0x458550=_0x20563f['getFirstRange'](),_0x4d0f65=_0x458550['start'],_0x9f2709=_0x458550['end'];this['_setSuggestionRange'](_0x20563f,this['_model']['createRange'](_0x4d0f65,_0x3bfd06));const _0x4228af=_0x34bf97(),_0xab3a87=_0x20563f['creator']['id'],_0x3012c6=_0x20563f['type']+(_0x20563f['subType']?':'+_0x20563f['subType']:'');this['_setSuggestionData']({'id':_0x4228af,'type':_0x3012c6,'createdAt':new Date(),'authorId':_0xab3a87,'originalSuggestionId':_0x20563f['_originalSuggestionId']||_0x20563f['id'],'attributes':_0x20563f['attributes'],'data':_0x20563f['data']});const _0x23242b=this['_getAttributeKey'](_0x20563f);('formatBlock'==_0x20563f['type']||_0x23242b&&this['_isBlockAttribute'](_0x23242b))&&(_0x384350=this['_model']['createPositionBefore'](_0x384350['parent'])),this['_addSuggestionMarker'](_0x3012c6,_0x4228af,_0xab3a87,this['_model']['createRange'](_0x384350,_0x9f2709));}['_findSuggestions'](_0xb6cdda,_0x454941=null){const _0x369136=[],_0x17d87f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xb6cdda)||(_0xb6cdda=[_0xb6cdda]);for(const _0x479964 of this['getSuggestions']()){if(!_0x479964['isInContent'])continue;if(_0x454941&&_0x479964['type']!=_0x454941)continue;let _0x338ea9=!0x1;for(const _0x45b661 of _0x479964['getRanges']()){for(const _0x4904b5 of _0xb6cdda){const _0x4888e7=_0x4904b5['start']['isEqual'](_0x45b661['end'])||_0x4904b5['end']['isEqual'](_0x45b661['start']);if(_0x4888e7||_0x4904b5['getIntersection'](_0x45b661)){const _0x1cac4a=_0x4904b5['containsRange'](_0x45b661)&&Gt(this['_model']['schema'],_0x45b661['start'],_0x4904b5),_0x3f96ad=_0x45b661['containsRange'](_0x4904b5)&&Gt(this['_model']['schema'],_0x4904b5['start'],_0x45b661);_0x369136['push']({'suggestion':_0x479964,'meta':{'isOwn':_0x17d87f==_0x479964['author'],'isNextTo':_0x4888e7,'isInsideObject':_0x1cac4a,'containsRangeInObject':_0x3f96ad}}),_0x338ea9=!0x0;break;}}if(_0x338ea9)break;}}return _0x369136;}['_addSuggestionMarker'](_0x1a030a,_0x595300,_0x7a658a,_0x47a24a,_0x4d0356){this['_model']['change'](_0x18d9e6=>{let _0x5916ef='suggestion:'+_0x1a030a+':'+_0x595300+':'+_0x7a658a;_0x4d0356&&(_0x5916ef=_0x5916ef+':'+_0x4d0356),_0x18d9e6['addMarker'](_0x5916ef,{'range':_0x47a24a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x26e1de){const _0x40186b=_0x26e1de['previous'],_0xbbd43d=_0x26e1de['next'];_0x26e1de['previous']=null,_0x26e1de['next']=null,null!=_0x40186b&&_0x40186b['next']==_0x26e1de&&(_0x40186b['next']=_0xbbd43d),null!=_0xbbd43d&&_0xbbd43d['previous']==_0x26e1de&&(_0xbbd43d['previous']=_0x40186b),'ready'==this['_suggestionState']['get'](_0x26e1de)&&(this['_suggestionState']['set'](_0x26e1de,'removed'),this['fire']('suggestionUnloaded',_0x26e1de,_0x40186b,_0xbbd43d));}['_setSuggestionData'](_0x57784d){const _0x27169e=_0x57784d['id'],_0x5db28a=this['addSuggestionData'](_0x57784d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2afad6=this['editor']['plugins']['get']('PendingActions'),_0x2532cb=_0x5db28a['hasComments'],_0x37745c=_0x5db28a['subType']?_0x5db28a['type']+':'+_0x5db28a['subType']:_0x5db28a['type'],_0x3139b1=this['editor']['locale'],_0x5af4d9=_0x2afad6['add'](c(_0x3139b1,'PENDING_ACTION_SUGGESTION')),_0x5d3dfb={'id':_0x27169e,'type':_0x37745c,'hasComments':_0x2532cb,'data':_0x57784d['data']||null,'originalSuggestionId':_0x57784d['originalSuggestionId']||null,'attributes':_0x5db28a['attributes']};this['_adapter']['addSuggestion'](_0x5d3dfb)['then'](_0x5e95e9=>{_0x5db28a['_saved']=!0x0,_0x2afad6['remove'](_0x5af4d9),_0x5e95e9&&_0x5e95e9['createdAt']&&(this['_suggestions']['get'](_0x27169e)['createdAt']=_0x5e95e9['createdAt']);})['catch'](_0x18a501=>{throw _0x507090('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5db28a['discard']();}),_0x5db28a['stopListening'](),this['_suggestions']['delete'](_0x5db28a['id']),this['_suggestionState']['delete'](_0x5db28a),_0x18a501;});}return _0x5db28a;}['_isBlockAttribute'](_0x268b38){return this['_blockAttributeKeys']['has'](_0x268b38);}['_updateSuggestionData'](_0x28df84,_0xe3287c){const _0x26b052=this['editor']['plugins']['get']('PendingActions'),_0x30080f=this['getSuggestion'](_0x28df84);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x30080f['_saved']){const _0x59f92c=_0x26b052['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x28df84,_0xe3287c)['then'](()=>{_0x26b052['remove'](_0x59f92c);});}else _0x30080f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x28df84,_0xe3287c);});}}['_getSuggestionData'](_0x5f059c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5121be('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5f059c);}['_handleNewSuggestionMarker'](_0x270804){const {id:_0x485b9e,type:_0x197151,subType:_0x3a69b3,authorId:_0x3a3eae}=this['_splitMarkerName'](_0x270804),_0x58f11=this['_suggestions']['get'](_0x485b9e)||this['_createSuggestion'](_0x197151,_0x3a69b3,_0x485b9e,_0x3a3eae,{});switch(this['_checkSuggestionCorrectness'](_0x58f11,_0x197151,_0x3a69b3,_0x3a3eae),this['_suggestionState']['get'](_0x58f11)){case'notReady':this['_getSuggestionData'](_0x485b9e)['then'](_0x4f62eb=>{let _0x4526b0=Promise['resolve']();_0x4f62eb['hasComments']&&(_0x4526b0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x485b9e})),_0x4526b0['then'](()=>{this['addSuggestionData'](_0x4f62eb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x58f11,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x485b9e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x58f11,'ready'),this['fire']('suggestionLoaded',_0x58f11);break;case'ready':this['fire']('suggestionChanged',_0x58f11);}return _0x58f11['addMarkerName'](_0x270804),_0x58f11;}['_refreshSuggestionsChain'](_0x26e329){const _0x2b80d9=Array['from'](_0x26e329),_0x30e70f=_0x2b80d9['filter'](_0x266421=>'attribute'==_0x266421['type']);this['_refreshAttributeSuggestionsChain'](_0x30e70f);const _0x68b10d=_0x2b80d9['filter'](_0x4dce36=>!_0x4dce36['isMultiRange']&&'attribute'!=_0x4dce36['type']),_0x2cc441=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x259444=>!_0x259444['isMultiRange']&&'attribute'!=_0x259444['type']),_0x3b6c9d=_0x2cc441['filter'](_0x225e5e=>!_0x26e329['has'](_0x225e5e)),_0x359204=new Map(_0x2cc441['map'](_0x2a5bda=>[_0x2a5bda,this['_suggestionFactory']['getSuggestionCallback'](_0x2a5bda['type'],_0x2a5bda['subType'],'chain')])),_0x13bc2c=new Map(_0x2cc441['map'](_0x422ee1=>[_0x422ee1,_0x422ee1['getFirstRange']()])),_0x3d2e5d=new Set(),_0x7789ee=new Set();for(let _0x5a263d=0x0;_0x5a263d<_0x68b10d['length'];_0x5a263d++)_0x4b6cb6(_0x68b10d[_0x5a263d],_0x68b10d,_0x5a263d+0x1);for(let _0x4f95e7=0x0;_0x4f95e7<_0x68b10d['length'];_0x4f95e7++)_0x4b6cb6(_0x68b10d[_0x4f95e7],_0x3b6c9d,0x0);const _0x308af5=new Set();for(let _0x4a4177=0x0;_0x4a4177<_0x68b10d['length'];_0x4a4177++){const _0x3f45a1=_0x68b10d[_0x4a4177];!_0x7789ee['has'](_0x3f45a1)&&_0x3f45a1['previous']&&(_0x308af5['add'](_0x3f45a1['previous']),_0x3f45a1['previous']['next']===_0x3f45a1&&(_0x3f45a1['previous']['next']=null),_0x3f45a1['previous']=null),!_0x3d2e5d['has'](_0x3f45a1)&&_0x3f45a1['next']&&(_0x308af5['add'](_0x3f45a1['next']),_0x3f45a1['next']['previous']===_0x3f45a1&&(_0x3f45a1['next']['previous']=null),_0x3f45a1['next']=null);}function _0x4b6cb6(_0x56a433,_0x3718d8,_0x55aafd){for(let _0x3fc5b1=_0x55aafd;_0x3fc5b1<_0x3718d8['length'];_0x3fc5b1++){const _0x26337=_0x1b4c43(_0x56a433,_0x3718d8[_0x3fc5b1]);_0x26337&&(_0x26337[0x0]['next']=_0x26337[0x1],_0x26337[0x1]['previous']=_0x26337[0x0],_0x3d2e5d['add'](_0x26337[0x0]),_0x7789ee['add'](_0x26337[0x1]));}}function _0x1b4c43(_0x2ecec9,_0x52a274){if(_0x2ecec9['author']['id']!==_0x52a274['author']['id'])return null;const _0x491c0c=_0x359204['get'](_0x2ecec9)(_0x2ecec9,_0x52a274,_0x13bc2c['get'](_0x2ecec9),_0x13bc2c['get'](_0x52a274));if(!_0x491c0c)return null;return _0x359204['get'](_0x52a274)(_0x2ecec9,_0x52a274,_0x13bc2c['get'](_0x2ecec9),_0x13bc2c['get'](_0x52a274))?_0x491c0c[0x1]['commentThread']&&_0x491c0c[0x1]['commentThread']['length']?null:_0x491c0c:null;}_0x308af5['size']&&this['_refreshSuggestionsChain'](_0x308af5);}['_refreshAttributeSuggestionsChain'](_0x5458ac){if(0x0==_0x5458ac['length'])return;const _0x25d7c0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f5b8c=>'attribute'==_0x4f5b8c['type']&&_0x4f5b8c['_isDataLoaded']),_0x81bece=[],_0x31ae63=new Map();for(const _0x13aae6 of _0x25d7c0){const _0x290ad7=_0x3d6420(_0x13aae6['attributes']);_0x31ae63['has'](_0x290ad7)||(_0x31ae63['set'](_0x290ad7,_0x81bece['length']),_0x81bece['push']([]));const _0xaf1187=_0x31ae63['get'](_0x290ad7);_0x81bece[_0xaf1187]['push'](_0x13aae6);}!(function(){_0x81bece['sort']((_0x5c6631,_0x2ed03e)=>{const _0x56ebd8=_0x5c6631[0x0]['createdAt'],_0x337c3b=_0x2ed03e[0x0]['createdAt'];return _0x56ebd8==_0x337c3b?_0x5c6631[0x0]['attributes']['groupId']<_0x2ed03e[0x0]['attributes']['groupId']?-0x1:0x1:_0x56ebd8<_0x337c3b?-0x1:0x1;});for(const _0x23a600 of _0x81bece)_0x23a600['sort']((_0x30fdf1,_0xf831f8)=>_0x30fdf1['id']<_0xf831f8['id']?-0x1:0x1);}());for(let _0x6c1cce=0x0;_0x6c1cce<_0x81bece['length'];_0x6c1cce++){if(0x0==_0x81bece[_0x6c1cce]['length'])continue;const _0x3527c9=[];for(let _0x16322c=_0x6c1cce+0x1;_0x16322c<_0x81bece['length'];_0x16322c++)0x0!=_0x81bece[_0x16322c]['length']&&_0x6d48bd(_0x81bece[_0x6c1cce],_0x81bece[_0x16322c])&&_0x3527c9['push'](_0x16322c);for(const _0x565fd3 of _0x3527c9)_0x81bece[_0x6c1cce]=_0x81bece[_0x6c1cce]['concat'](_0x81bece[_0x565fd3]),_0x81bece[_0x565fd3]=[];}for(const _0x2ce6e8 of _0x81bece)for(let _0xd4663a=0x0;_0xd4663a<_0x2ce6e8['length'];_0xd4663a++){const _0x5eef03=_0x2ce6e8[_0xd4663a+0x1]||null;_0x2ce6e8[_0xd4663a]['next']!==_0x5eef03&&(_0x2ce6e8[_0xd4663a]['next']=_0x5eef03);}for(const _0x4c623e of _0x81bece)for(let _0x10fc71=0x0;_0x10fc71<_0x4c623e['length'];_0x10fc71++){const _0x1d5038=_0x4c623e[_0x10fc71-0x1]||null;_0x4c623e[_0x10fc71]['previous']!==_0x1d5038&&(_0x4c623e[_0x10fc71]['previous']=_0x1d5038);}function _0x6d48bd(_0x3a58a6,_0xa7e8ec){if(_0x3a58a6[0x0]['attributes']['groupId']!==_0xa7e8ec[0x0]['attributes']['groupId']&&_0x3a58a6[0x0]['author']!==_0xa7e8ec[0x0]['author'])return!0x1;if(!function(_0x325afe,_0x2b65ba){if(!_0x325afe['hasComments']&&!_0x2b65ba['hasComments'])return!0x0;if(_0x325afe['hasComments']&&_0x2b65ba['hasComments'])return!0x1;if(_0x325afe['hasComments']&&_0x2b65ba['createdAt']<_0x325afe['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2b65ba['hasComments']&&_0x325afe['createdAt']<_0x2b65ba['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3a58a6[0x0],_0xa7e8ec[0x0]))return!0x1;const _0x26d622=Ft(_0x3a58a6[0x0]['attributes'],['groupId','trackingSessionId']),_0x2fc017=Ft(_0xa7e8ec[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x439f28(_0x26d622,_0x2fc017))return!0x1;if(_0x3a58a6[0x0]['attributes']['groupId']==_0xa7e8ec[0x0]['attributes']['groupId'])return!0x0;if(_0x3a58a6[0x0]['attributes']['trackingSessionId']!==_0xa7e8ec[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3a58a6['every'](_0x2d7295=>_0xa7e8ec['some'](_0x18df17=>_0x2d7295['getFirstRange']()['isEqual'](_0x18df17['getFirstRange']())))&&_0xa7e8ec['every'](_0xb1ba10=>_0x3a58a6['some'](_0x1c5219=>_0xb1ba10['getFirstRange']()['isEqual'](_0x1c5219['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x56e501){const _0xcf8ae2=Array['from'](_0x56e501),_0x442c63=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2cba64=_0x442c63['filter'](_0x9b7982=>!_0x56e501['has'](_0x9b7982)),_0x4475cc=new Map(_0xcf8ae2['map'](_0x114a19=>[_0x114a19,this['_suggestionFactory']['getSuggestionCallback'](_0x114a19['type'],_0x114a19['subType'],'join')])),_0x4a8b99=new Map(_0x442c63['map'](_0x370b6d=>[_0x370b6d,_0x370b6d['getRanges']()]));for(let _0x3c145c=0x0;_0x3c145c<_0xcf8ae2['length'];_0x3c145c++){if(_0x589678(this,_0xcf8ae2[_0x3c145c],_0xcf8ae2,_0x3c145c+0x1))return!0x0;}for(let _0x237ecf=0x0;_0x237ecf<_0xcf8ae2['length'];_0x237ecf++){if(_0x589678(this,_0xcf8ae2[_0x237ecf],_0x2cba64,0x0))return!0x0;}return!0x1;function _0x589678(_0x4c4dba,_0x2ad8a7,_0x36fef0,_0x3bae41){for(let _0x184638=_0x3bae41;_0x184638<_0x36fef0['length'];_0x184638++){const _0x27d205=_0x36fef0[_0x184638];if(_0x27d205['type']!==_0x2ad8a7['type']||_0x27d205['author']['id']!==_0x2ad8a7['author']['id']||_0x27d205['subType']!==_0x2ad8a7['subType'])continue;if(!Qt(_0x2ad8a7,_0x27d205))continue;if('attribute'==_0x2ad8a7['type']&&_0x2ad8a7['data']['oldValue']!=_0x27d205['data']['oldValue'])continue;if('attribute'==_0x2ad8a7['type']&&_0x4c4dba['_isBlockAttribute'](_0x2ad8a7['data']['key']))continue;if('formatBlock'==_0x2ad8a7['type']){const _0x4294b7=_0x4c4dba['editor']['model'],_0x41dafc=_0x2ad8a7['getContainedElement']();if(_0x41dafc&&(_0x4294b7['schema']['isObject'](_0x41dafc)||_0x4294b7['schema']['isLimit'](_0x41dafc)))continue;}const _0x121615=_0x4475cc['get'](_0x2ad8a7),_0x4c02dd=_0x4a8b99['get'](_0x2ad8a7),_0x266cf0=_0x4a8b99['get'](_0x27d205),_0xcc8651=_0x2ad8a7['commentThread']&&_0x2ad8a7['commentThread']['length'],_0x52817a=_0x27d205['commentThread']&&_0x27d205['commentThread']['length'];if(!_0xcc8651&&_0x121615(_0x266cf0,_0x4c02dd))return _0x4c4dba['_joinSuggestions'](_0x27d205,_0x2ad8a7),_0x4a8b99['delete'](_0x2ad8a7),!0x0;if(!_0x52817a&&_0x121615(_0x4c02dd,_0x266cf0))return _0x4c4dba['_joinSuggestions'](_0x2ad8a7,_0x27d205),_0x4a8b99['delete'](_0x27d205),!0x0;}return!0x1;}}['_joinSuggestions'](_0x32bdb0,_0x2da905){if(_0x32bdb0['isMultiRange']){for(const _0x5ce288 of _0x2da905['getRanges']())_0x32bdb0['addRange'](_0x5ce288);}else{const _0x121775=_0x2da905['getFirstRange']()['end'];this['_setSuggestionRange'](_0x32bdb0,this['_model']['createRange'](_0x32bdb0['getFirstRange']()['start'],_0x121775));}_0x2da905['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3f083f,_0x2e90ee,_0x30e796){const _0x29a63d=_0x3f083f['startsWith']('format')||_0x3f083f['startsWith']('attribute')?'FORMATTING':_0x3f083f['toUpperCase']();return c(this['editor']['locale'],_0x2e90ee+'_'+_0x29a63d+'_SUGGESTION_ANNOUNCEMENT',_0x30e796);}['_initAriaMarkerChangeAnnouncements'](){const _0x36e318=this['editor'];if(!_0x36e318['ui'])return;const {ariaLiveAnnouncer:_0x1d2ac4}=_0x36e318['ui'];_0x252763(this['_model'],({left:_0x57e22f,entered:_0x69b6a9})=>{for(const _0x1d9857 of _0x57e22f){const {group:_0x194420,type:_0x11facc}=this['_splitMarkerName'](_0x1d9857['name']);if('suggestion'===_0x194420){_0x1d2ac4['announce'](this['_getMarkerAnnouncementText'](_0x11facc,'LEAVE'));break;}}for(const _0x5783e5 of _0x69b6a9){const {group:_0x308475,type:_0x53d892}=this['_splitMarkerName'](_0x5783e5['name']);if('suggestion'===_0x308475){_0x1d2ac4['announce'](this['_getMarkerAnnouncementText'](_0x53d892,'ENTER',_0x1b231d(_0x2cee65)));break;}}});}['_processAttributeChanges'](_0x2f9e0c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x347b01=this['editor'],_0x78302c=_0x347b01['model']['document']['differ']['getChanges']();if(0x0==_0x78302c['length'])return!0x1;const _0x5d4de4=[],_0x4ec0f9=_0x78302c['filter'](_0x4d211a=>'attribute'==_0x4d211a['type']),_0x5c1303=_0x78302c['filter'](_0x36d8b9=>'insert'==_0x36d8b9['type']&&'$text'!=_0x36d8b9['name']),_0x105a75=_0x78302c['filter'](_0x5429b8=>'remove'==_0x5429b8['type']&&'$text'!=_0x5429b8['name']);for(const _0x17d3c3 of _0x4ec0f9)_0x5d4de4['push']({'key':_0x17d3c3['attributeKey'],'newValue':_0x17d3c3['attributeNewValue'],'oldValue':_0x17d3c3['attributeOldValue'],'range':qt(_0x17d3c3['range'],_0x347b01['model'])});for(const _0x5d63f1 of _0x5c1303){const _0x4ea7a6=_0x105a75['find'](_0x40f903=>_0x40f903['position']['isEqual'](_0x5d63f1['position']));_0x4ea7a6&&_0x5d4de4['push']({'key':u,'newValue':_0x5d63f1['name'],'oldValue':_0x4ea7a6['name'],'range':_0x347b01['model']['createRangeOn'](_0x5d63f1['position']['nodeAfter'])});}return 0x0!=_0x5d4de4['length']&&this['_reduceExistingSuggestions'](_0x2f9e0c,_0x5d4de4);}['_processAttributeSuggestions'](_0x2829a7){let _0x36b7f3=!0x1;const _0x39b3e5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10d718=>_0x10d718['data']['newRange']&&_0x10d718['name']['startsWith']('suggestion:attribute:'));for(const _0x1527d of _0x39b3e5){const {subType:_0x211f85,id:_0xcb83ac}=this['_splitMarkerName'](_0x1527d['name']),_0x4bcbe2=_0x211f85['split']('|')[0x0];for(const _0x2d35df of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2d35df['id']!=_0xcb83ac&&'attribute'==_0x2d35df['type']&&_0x2d35df['data']&&_0x2d35df['data']['key']==_0x4bcbe2&&_0x2d35df['getFirstRange']()['isIntersecting'](_0x1527d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2d35df,_0x1527d['data']['newRange'],_0x2829a7),_0x36b7f3=!0x0);}return _0x36b7f3;}['_recordAttributeChanges'](_0x263f25){this['_recordAttributeSuggestions']=!0x0,_0x263f25();}['_isRegisteredAttribute'](_0x376d6a){const _0x4daeaa=this['_isBlockAttribute'](_0x376d6a),_0xe2a460=this['_inlineAttributeKeys']['has'](_0x376d6a);return _0x4daeaa||_0xe2a460;}['_reduceExistingSuggestions'](_0x53e238,_0x22cfc3){if(0x0==_0x22cfc3['length'])return!0x1;let _0x3c688d=!0x1;for(const _0x469ecd of _0x22cfc3){const _0x190ac9=this['_findSuggestions'](_0x469ecd['range'],'attribute')['filter'](_0xc82aac=>!_0xc82aac['meta']['isNextTo'])['map'](_0x55e2e9=>_0x55e2e9['suggestion']),_0x2b4031=_0x3d6420({'newValue':_0x469ecd['newValue']});_0x190ac9['filter'](_0x4b2839=>{const [_0x110903,_0x13a376]=_0x4b2839['subType']['split']('|');return _0x110903==_0x469ecd['key']&&_0x13a376!=_0x2b4031;})['forEach'](_0x53ca48=>{this['_reduceSuggestionAttributeRange'](_0x53ca48,_0x469ecd['range'],_0x53e238),_0x3c688d=!0x0;});}return _0x3c688d;}['_reduceSuggestionAttributeRange'](_0x24f150,_0xf014d4,_0x25b2b2){const _0x37b9cf=_0x24f150['getFirstRange']()['getDifference'](_0xf014d4);0x0!==_0x37b9cf['length']?0x1!==_0x37b9cf['length']?this['_breakSuggestionMarker'](_0x24f150,_0xf014d4['start'],_0xf014d4['end']):this['_setSuggestionRange'](_0x24f150,_0x37b9cf[0x0]):_0x25b2b2['removeMarker'](_0x24f150['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa283d9){this['_editor']=_0xa283d9,this['_model']=_0xa283d9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x179f48,_0x4d587f,_0x47fffc,_0x5b4675,_0x115547,_0x4c1db8,_0x51b82e){return new o(this['_model'],{'type':_0x179f48,'subType':_0x4d587f,'id':_0x47fffc,'originalSuggestionId':_0x51b82e,'author':_0x5b4675,'creator':_0x5b4675,'attributes':_0x115547,'onAttributesChange':_0x4c1db8,'onAccept':(..._0x299147)=>this['getSuggestionCallback'](_0x179f48,_0x4d587f,'accept')(..._0x299147),'onDiscard':(..._0x1dfbe7)=>this['getSuggestionCallback'](_0x179f48,_0x4d587f,'discard')(..._0x1dfbe7)});}['registerCustomCallback'](_0x85025d,_0x8e81d0,_0x128989,_0x2c525a){const _0x583014=_0x85025d+':'+_0x8e81d0+':'+_0x128989;this['_customCallbacks']['set'](_0x583014,_0x2c525a);}['getSuggestionCallback'](_0x9acd4e,_0x173af6,_0x226816){const _0x5e1695=_0x9acd4e+':'+_0x173af6+':'+_0x226816;return this['_customCallbacks']['get'](_0x5e1695)||this['_defaultCallbacks']['get'](_0x9acd4e+':'+_0x226816);}['_registerDefaultCallbacks'](){const _0x381158=()=>!0x1,_0x5b076c=_0x2faec5=>{_0x2faec5['sort']((_0x358910,_0xdac151)=>_0x358910['start']['isBefore'](_0xdac151['start'])?0x1:-0x1),this['_model']['change'](_0xd9c6ca=>{for(const _0x128479 of _0x2faec5){let _0x5829b2;_0x5829b2=_0x128479['end']['isAtEnd']&&_0x128479['end']['parent']==_0x128479['start']['nodeAfter']?_0xd9c6ca['createSelection'](_0x128479['start']['nodeAfter'],'on'):_0xd9c6ca['createSelection'](_0x128479),this['_model']['deleteContent'](_0x5829b2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x531f0e=(_0x179baa,_0x361357)=>{_0x361357&&this['_model']['change'](_0x54a5e3=>{const {commandName:_0xf18b92,commandParams:_0x5e52ea=[]}=_0x361357,_0x5db3cb=_0x179baa['map'](_0x5565c8=>(Lt(_0x5565c8)&&(_0x5565c8=this['_model']['createRange'](_0x5565c8['end'])),_0x5565c8))['filter'](_0x297db2=>'$graveyard'!==_0x297db2['root']['rootName']);if(_0x5db3cb['length']<0x1)return;const _0x370e15=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x51f973=>_0x275766['fromRange'](_0x51f973));_0x54a5e3['setSelection'](_0x5db3cb);for(const _0x2c8ec6 of this['_editor']['commands']['commands']())_0x2c8ec6['refresh']();_0x5e52ea['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xf18b92,..._0x5e52ea);const _0x5d2ba5=_0x370e15['filter'](_0x2ae1a0=>'$graveyard'!=_0x2ae1a0['root']['rootName']);_0x5d2ba5['length']>0x0&&_0x54a5e3['setSelection'](_0x5d2ba5);for(const _0x2bfe43 of _0x370e15)_0x2bfe43['detach']();});},_0x478542=(_0x5e6484,_0xb30d63)=>0x1==_0x5e6484['length']&&0x1==_0xb30d63['length']&&_0x5e6484[0x0]['end']['isEqual'](_0xb30d63[0x0]['start']),_0x1033a1=(_0x54a31d,_0x11c24c,_0x47e988,_0x2f651d)=>Wt(_0x54a31d,_0x11c24c,_0x47e988,_0x2f651d)?[_0x54a31d,_0x11c24c]:Wt(_0x11c24c,_0x54a31d,_0x2f651d,_0x47e988)?[_0x11c24c,_0x54a31d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x381158),this['_defaultCallbacks']['set']('insertion:discard',_0x5b076c),this['_defaultCallbacks']['set']('insertion:join',_0x478542),this['_defaultCallbacks']['set']('insertion:chain',_0x1033a1),this['_defaultCallbacks']['set']('deletion:accept',_0x5b076c),this['_defaultCallbacks']['set']('deletion:discard',_0x381158),this['_defaultCallbacks']['set']('deletion:join',_0x478542),this['_defaultCallbacks']['set']('deletion:chain',_0x1033a1),this['_defaultCallbacks']['set']('formatInline:accept',_0x531f0e),this['_defaultCallbacks']['set']('formatInline:discard',_0x381158),this['_defaultCallbacks']['set']('formatInline:join',_0x478542),this['_defaultCallbacks']['set']('formatInline:chain',_0x381158),this['_defaultCallbacks']['set']('formatBlock:accept',_0x531f0e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x381158),this['_defaultCallbacks']['set']('formatBlock:join',_0x478542),this['_defaultCallbacks']['set']('formatBlock:chain',_0x381158),this['_defaultCallbacks']['set']('attribute:accept',_0x381158),this['_defaultCallbacks']['set']('attribute:discard',(_0xb3f2c,_0x3f9da7)=>{if(!_0x3f9da7)return;const _0x21bb0f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3008db=>{if(_0x3f9da7['key']==u)for(const _0x5b5a53 of _0xb3f2c){const _0x347cce=_0x5b5a53['start']['nodeAfter'],_0x46bc08=_0x3f9da7['oldValue'];_0x3008db['rename'](_0x347cce,_0x46bc08);}else{if(_0x21bb0f['_isBlockAttribute'](_0x3f9da7['key'])){for(const _0x5c3da6 of _0xb3f2c)void 0x0!==_0x3f9da7['oldValue']?_0x3008db['setAttribute'](_0x3f9da7['key'],_0x3f9da7['oldValue'],_0x5c3da6['start']['nodeAfter']):_0x3008db['removeAttribute'](_0x3f9da7['key'],_0x5c3da6['start']['nodeAfter']);}else{for(const _0x545f34 of _0xb3f2c)_0x3f9da7['oldValue']?_0x3008db['setAttribute'](_0x3f9da7['key'],_0x3f9da7['oldValue'],_0x545f34):_0x3008db['removeAttribute'](_0x3f9da7['key'],_0x545f34);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x478542);}}function Gt(_0x49eb7c,_0x27c004,_0x80895d){for(const _0x1c546e of _0x27c004['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1c546e['root']==_0x1c546e)return!0x1;if(!_0x80895d['containsItem'](_0x1c546e))return!0x1;if(_0x49eb7c['isObject'](_0x1c546e)||_0x49eb7c['isLimit'](_0x1c546e))return!0x0;}return!0x1;}function Lt(_0x4f530e){return _0x4f530e['end']['parent']==_0x4f530e['start']['nodeAfter']&&_0x4f530e['end']['isAtStart'];}function Jt(_0x37930a,_0x2e9465,_0x1ab0e8,_0x191f95){const _0x42e794=_0x5d3e3d=>!_0x5d3e3d['item']['is']('$textProxy')&&!_0x191f95['isObject'](_0x5d3e3d['item']),_0x441b49=_0x37930a['start']['getLastMatchingPosition'](_0x42e794),_0x530ca6=_0x37930a['end']['getLastMatchingPosition'](_0x42e794,{'direction':'backward'});return(!_0x37930a['start']['isEqual'](_0x441b49)||!_0x37930a['end']['isEqual'](_0x530ca6))&&(_0x441b49['isBefore'](_0x530ca6)?_0x1ab0e8['updateMarker'](_0x2e9465,{'range':_0x1ab0e8['createRange'](_0x441b49,_0x530ca6)}):_0x1ab0e8['removeMarker'](_0x2e9465),!0x0);}function Kt(_0x1d4fc6){return _0x3d6420(_0x1d4fc6);}function Ht(_0x3f5373){const _0x34f7a2=_0x3f5373['start']['nodeAfter'];return _0x34f7a2&&_0x34f7a2['is']('element');}function qt(_0x11e191,_0x1bf3c8){return null==_0x11e191['end']['nodeBefore']&&_0x11e191['end']['parent']==_0x11e191['start']['nodeAfter']?zt(_0x11e191['start']['nodeAfter'],_0x1bf3c8):_0x11e191;}function zt(_0x476680,_0x24dcf2){const _0x545eeb=_0x24dcf2['schema']['isObject'](_0x476680)||_0x24dcf2['schema']['isSelectable'](_0x476680);return _0x24dcf2['createRange'](_0x24dcf2['createPositionAt'](_0x476680,'before'),_0x545eeb?_0x24dcf2['createPositionAfter'](_0x476680):_0x24dcf2['createPositionAt'](_0x476680,'end'));}function Wt(_0x5c7a38,_0x323124,_0x3cae1c,_0x385035){return!!Qt(_0x5c7a38,_0x323124)&&_0x3cae1c['end']['isEqual'](_0x385035['start']);}function Qt(_0x34c9ac,_0xd86420){if(!_0x34c9ac['_isDataLoaded']||!_0xd86420['_isDataLoaded'])return!0x1;const _0x3a17ba=new Set(Object['keys'](_0x34c9ac['attributes'])),_0x4f3fae=new Set(Object['keys'](_0xd86420['attributes']));if(_0x3a17ba['delete']('groupId'),_0x4f3fae['delete']('groupId'),0x0==_0x3a17ba['size']&&0x0==_0x4f3fae['size'])return!0x0;if(_0x3a17ba['size']!=_0x4f3fae['size'])return!0x1;const _0x5ea1a4={..._0x34c9ac['attributes']},_0x4a109e={..._0xd86420['attributes']};return delete _0x5ea1a4['groupId'],delete _0x4a109e['groupId'],JSON['stringify'](_0x5ea1a4)==JSON['stringify'](_0x4a109e);}function Xt(_0x3dc565,_0x34dca8){const _0x1d5073=Yt(_0x3dc565['attributes']),_0x31188e=Yt(_0x34dca8);if(!_0x3dc565['_isDataLoaded'])return!0x1;for(const _0x5d7041 of Object['keys'](_0x31188e))if(!_0x439f28(_0x1d5073[_0x5d7041],_0x31188e[_0x5d7041]))return!0x1;return!0x0;}function Yt(_0x1b932b){const _0x131def=Object['assign']({},_0x1b932b);return delete _0x131def['skipNestingCheck'],delete _0x131def['tablePasteChainId'],_0x131def;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x21885c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x42d50c,_0xe825db,_0x265399,_0x58969a){super(),this['model']=_0xe825db,this['view']=_0x265399,this['commentThreadController']=_0x58969a,this['_editor']=_0x42d50c,this['_acceptCommand']=_0x42d50c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x42d50c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3bdfbf,_0x3ce183)=>_0x3bdfbf||_0x3ce183),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x895eda=>_0x895eda&&this['_editor']['model']['canEditAt'](_0xe825db['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5d4961=>_0x5d4961&&this['_editor']['model']['canEditAt'](_0xe825db['getRanges']())),this['_pendingAction']=null,_0x265399['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x265399,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x265399,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x265399,'change:isDirty',()=>{_0x265399['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 _0x279c01=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x279c01);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x254aba{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4d6a40,_0x220759,_0x7d2932,_0x462310){super(_0x4d6a40),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3fde59(_0x4d6a40,c(_0x4d6a40,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x220759['authoredAt']),this['bind']('authoredAt')['to'](_0x220759),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',_0x220759,'authoredAt',this,'descriptionParts',(_0x2446fd,_0x45b859,_0x2b8ea8)=>{const _0x538937=_0x2b8ea8['map'](_0x4aae13=>ls(_0x4aae13['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2446fd-0x1,_0x220759['author']['name'],_0x45b859?_0x462310['formatDateTime'](_0x45b859):'',new DOMParser()['parseFromString'](_0x538937,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2a4980(),this['focusTracker']=new _0x4ae692(),this['keystrokes']=new _0x2e95d7(),this['focusCycler']=new _0x4a7472({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x13d07c=>_0x13d07c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x220759,this['_localUser']=_0x7d2932,this['_config']=_0x462310,_0x462310['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x210702(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1631b6}=this['_config'];this['commentsListView']=new _0x1631b6(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',_0x151ffe=>_0x151ffe+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x538006,_0x5c6c16)=>_0x538006||!!_0x5c6c16);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x48c2ea}=this['_config'],_0x20ecd2=new _0x48c2ea(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x191cb5=_0x20ecd2['commentInputView'];return _0x20ecd2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x191cb5,'value',(_0x349873,_0x32d618,_0x4160f7)=>!!_0x4160f7||_0x349873&&!_0x32d618),_0x191cb5['on']('submit',(_0x55fde2,_0xfaa656)=>{this['fire']('addComment',_0xfaa656),_0x191cb5['editor']['setData']('');}),_0x191cb5['on']('cancel',()=>this['focus']()),_0x191cb5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x20ecd2;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4e940,_0x34de84,_0x3a0fc7,_0x3cfb1a){super(_0x4e940,_0x34de84,_0x3a0fc7,_0x3cfb1a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4e9eaf=>_0x4e9eaf&&_0x4e9eaf[0x0]?_0x4e9eaf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x21e505,_0x5b2e80)=>{let _0x30dfa6='';for(const _0x50eb56 of _0x21e505)_0x30dfa6+='<p>'+ls(_0x50eb56['content'],_0x50eb56['color'])+'</p>';return _0x5b2e80?_0x30dfa6:ti(_0x30dfa6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3cfb1a['SuggestionView'](_0x4e940,_0x34de84,{'formatDateTime':_0x3cfb1a['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 _0x4815bd=this['bindTemplate'],_0x88be3=[this['suggestionView']];return this['commentsListView']&&_0x88be3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x88be3['push'](this['commentThreadInputView']),_0x88be3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4815bd['if']('isActive','ck-suggestion-wrapper--active'),_0x4815bd['to']('type',_0x40bb22=>'ck-suggestion-'+_0x40bb22),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':_0x4815bd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x88be3};}['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 _0x254aba{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x18fb5c,_0x11008d,_0x1c6fdd){super(_0x18fb5c),this['_model']=_0x11008d,this['_config']=_0x1c6fdd,this['set']('description',''),this['bind']('authoredAt')['to'](_0x11008d),this['acceptButton']=this['_createButton'](c(_0x18fb5c,'Accept\x20suggestion'),_0x252edb,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x18fb5c,'Discard\x20suggestion'),_0x454f62,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1b925e(_0x18fb5c,_0x11008d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2a4980([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4ae692(),this['keystrokes']=new _0x2e95d7(),this['focusCycler']=new _0x4a7472({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x38b5f0=>_0x38b5f0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x175bbe=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x175bbe['innerHTML']=this['description'],this['on']('change:description',(_0xf2c8ee,_0x3b5ee1,_0x2ae9aa)=>{_0x175bbe['innerHTML']=_0x2ae9aa;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x71416e=this['bindTemplate'],_0x55cc1e=[{'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':_0x71416e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x71416e['to']('authoredAt',_0xa65d28=>this['_config']['formatDateTime'](_0xa65d28))}]}]},{'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']&&_0x55cc1e['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':_0x55cc1e}]};}['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'](_0x22eb0c,_0x5f0835,_0x502713,_0x157919,_0x1fc911){const _0x1b4609=new _0x14a78a(this['locale']);return _0x1b4609['set']({'label':_0x22eb0c,'icon':_0x5f0835,'tooltip':!0x0,'tooltipPosition':_0x1fc911}),_0x1b4609['extendTemplate']({'attributes':{'class':_0x502713}}),_0x1b4609['on']('execute',()=>{this['fire'](_0x157919,this['_model']['id']);}),_0x1b4609;}['_setupKeyboardNavigation'](){const _0x3e01f2=this['element'];this['keystrokes']['listenTo'](_0x3e01f2);for(const _0x1661f7 of this['focusables'])this['focusTracker']['add'](_0x1661f7['element']),this['keystrokes']['listenTo'](_0x1661f7['element']);this['keystrokes']['set']('enter',(_0x1c8d18,_0x54d69a)=>{_0x3e01f2===_0x1c8d18['target']&&(this['focusCycler']['focusFirst'](),_0x54d69a());}),this['keystrokes']['set']('esc',(_0x43860b,_0x4dbf48)=>{_0x3e01f2!==_0x43860b['target']&&(this['focus'](),_0x4dbf48());});}}class d extends _0x31a850{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x45c096,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ac685){super(_0x2ac685),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1d3b93=this['editor']['config'];_0x1d3b93['define']('trackChanges.SuggestionThreadView',fe),_0x1d3b93['define']('trackChanges.SuggestionView',we),_0x1d3b93['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1d3b93['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5468c3,_0x4d7178){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x562825,_0x2cd358]of this['_handleControllerBuffer']){const _0x4de653=this['_suggestionToController']['has'](_0x562825);_0x4de653||_0x2cd358?_0x4de653&&_0x2cd358&&this['_destroyController'](_0x562825):this['_initializeController'](_0x562825);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5468c3,_0x4d7178);}['init'](){const _0x219867=this['editor'],_0x329b4a=_0x219867['plugins']['get']('TrackChangesEditing'),_0xe1cd9f=_0x219867['plugins']['get']('Annotations'),_0x3c7cba=_0x219867['plugins']['get']('EditorAnnotations'),_0x6385c8=_0x219867['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3c7cba['addSourceCollector'](()=>{const _0x18e71b=[];for(const [_0x4342f9,_0x20c066]of Array['from'](this['_suggestionToController'])){const _0x21afda=_0x4342f9['getAllAdjacentSuggestions'](),_0x4b40f4=[];for(const _0x2e402d of _0x21afda){if(!_0x2e402d['isInContent'])continue;if(_0x2e402d['isMultiRange']){_0x4b40f4['push'](..._0x2e402d['getRanges']());continue;}const _0x42d826=_0x2e402d['getFirstRange']();if(_0x4b40f4['length']>0x0){const _0x2bd7bb=_0x4b40f4[0x0]['getJoined'](_0x42d826);if(_0x2bd7bb){_0x4b40f4[0x0]=_0x2bd7bb;continue;}}_0x4b40f4['push'](_0x42d826);}_0x18e71b['push']([_0x20c066['view'],_0x4b40f4]);}return _0x18e71b;}),this['listenTo'](_0x329b4a,'suggestionLoaded',(_0x92b2a2,_0x2050b6)=>{this['listenTo'](_0x2050b6,'change:previous',(_0x20a8ba,_0xb5cddc,_0x124559,_0x3dd45f)=>{_0x2050b6['isInContent']&&(null==_0x124559?(this['_updateController'](_0x3dd45f['head']),this['_handleSuggestionControllerDelayed'](_0x2050b6,!0x1)):(this['_updateController'](_0x124559['head']),null==_0x3dd45f&&this['_handleSuggestionControllerDelayed'](_0x2050b6,!0x0)));}),null!==_0x2050b6['previous']?this['_updateController'](_0x2050b6['head']):this['_handleSuggestionControllerDelayed'](_0x2050b6,!0x1);}),this['listenTo'](_0x329b4a,'suggestionUnloaded',(_0x45c76c,_0x1fc912,_0x40654e)=>{this['stopListening'](_0x1fc912,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1fc912),this['_suggestionToController']['has'](_0x1fc912)&&this['_destroyController'](_0x1fc912),_0x40654e&&this['_updateController'](_0x40654e['head']);}),this['listenTo'](_0x329b4a,'suggestionChanged',(_0x57c55b,_0x427f1d)=>{this['_updateController'](_0x427f1d);}),this['listenTo'](_0xe1cd9f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x6385c8,'addComment',(_0xcbc698,{threadId:_0x4682ac,isFromAdapter:_0x4d9963})=>{if(_0x4d9963||!_0x329b4a['hasSuggestion'](_0x4682ac))return;const _0xc6529e=_0x329b4a['getSuggestion'](_0x4682ac);this['_suggestionToController']['get'](_0xc6529e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3784f3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5dc245;for(const _0x494291 in _0x3784f3){const _0x4d8fa9=_0x494291,_0x36776a=_0x3784f3[_0x4d8fa9];if('trackChangesLicenseKeyValid'==_0x36776a||'trackChangesLicenseKeyInvalid'==_0x36776a||'trackChangesLicenseKeyExpired'==_0x36776a||'trackChangesLicenseKeyDomainLimit'==_0x36776a||'trackChangesLicenseKeyNotAllowed'==_0x36776a||'trackChangesLicenseKeyEvaluationLimit'==_0x36776a||'trackChangesLicenseKeyTrialLimit'==_0x36776a||'trackChangesLicenseKeyUsageLimit'==_0x36776a){delete _0x3784f3[_0x4d8fa9],_0x5dc245=_0x36776a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5dc245&&_0x3784f3['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5dc245&&_0x3784f3['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5dc245&&_0x3784f3['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5dc245&&_0x3784f3['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5dc245&&_0x3784f3['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5dc245&&_0x3784f3['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5dc245&&_0x3784f3['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x18212f=this['editor']['plugins']['get']('Annotations'),_0x5caac2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47e81e=Array['from'](_0x18212f['activeAnnotations'],_0x1a196e=>_0x1a196e['innerView'])['filter'](_0x2e9a32=>this['_viewToController']['has'](_0x2e9a32)),_0x323b5c=[];for(const _0x84853e of _0x47e81e){const _0x19c4c9=this['_viewToController']['get'](_0x84853e)['model']['getAllAdjacentSuggestions']();_0x323b5c['push'](..._0x19c4c9['reduce']((_0x3e28ad,_0x421312)=>[..._0x3e28ad,..._0x421312['getMarkerNames']()],[]));}_0x5caac2['activeMarkers']=_0x323b5c;}['_addUIComponentsToFactory'](){const _0x3bd216=this['editor'],_0x2c3d1d=_0x3bd216['locale'],_0x152c6e=c(_0x2c3d1d,'Track\x20changes'),_0xcf1a88=new _0x2a6a53([{'type':'switchbutton','model':new _0x19c07f({'withText':!0x0,'isToggleable':!0x0,'label':_0x152c6e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3bd216['plugins']['has']('TrackChangesPreview')&&_0xcf1a88['addMany']([{'type':'separator'},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3a94f8 of _0xcf1a88)if(ke(_0x3a94f8)){const _0x378a44=_0x3bd216['commands']['get'](_0x3a94f8['model']['commandName']);_0x3a94f8['model']['bind']('isOn','isEnabled')['to'](_0x378a44,'value','isEnabled');}_0x3bd216['ui']['componentFactory']['add']('trackChanges',_0x587203=>this['_createToolbarButton'](_0x587203,_0xcf1a88,_0x152c6e)),_0x3bd216['ui']['componentFactory']['add']('menuBar:trackChanges',_0x44722b=>this['_createMenuBarMenu'](_0x44722b,_0xcf1a88,_0x152c6e));}['_createToolbarButton'](_0x5d2cdb,_0x2cca8d,_0x562b10){const _0x9bb0b=_0x4704a3(_0x5d2cdb,_0x4a4c5d),_0x51b608=this['editor']['commands']['get']('trackChanges');_0x9bb0b['buttonView']['set']({'tooltip':_0x562b10,'label':_0x562b10,'icon':_0x24a931}),_0x9bb0b['buttonView']['bind']('isOn')['to'](_0x51b608,'value'),_0x9bb0b['buttonView']['on']('execute',()=>{_0x51b608['execute'](),this['editor']['editing']['view']['focus']();}),_0x29a0cc(_0x9bb0b,_0x2cca8d,{'role':'menu'});const _0x6405b9=[];for(const _0x10a854 of _0x2cca8d)ke(_0x10a854)&&_0x6405b9['push'](this['editor']['commands']['get'](_0x10a854['model']['commandName']));const _0x5f3a9b=_0x9bb0b['buttonView'];return _0x5f3a9b['actionView']['unbind']('isEnabled'),_0x5f3a9b['arrowView']['unbind']('isEnabled'),_0x5f3a9b['actionView']['bind']('isEnabled')['to'](_0x51b608,'isEnabled'),_0x5f3a9b['arrowView']['bind']('isEnabled')['toMany'](_0x6405b9,'isEnabled',(..._0x1882b0)=>_0x1882b0['some'](_0x529c5d=>_0x529c5d)),_0x9bb0b['on']('execute',_0x5981b8=>{this['editor']['execute'](_0x5981b8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x9bb0b;}['_createMenuBarMenu'](_0x3336d5,_0x80f14e,_0x54d57a){const _0x16f28c=new _0x3eb7ca(_0x3336d5),_0x59eac5=this['editor']['commands']['get']('trackChanges');_0x16f28c['buttonView']['set']({'label':_0x54d57a,'icon':_0x24a931});const _0x54400d=new _0x741bb6(_0x3336d5);for(const _0x284fe6 of _0x80f14e){if('separator'==_0x284fe6['type']){_0x54400d['items']['add'](new _0x280b7c(_0x3336d5));continue;}const _0x5017ec=new _0x4709cb(_0x3336d5,_0x16f28c),_0x2e637d=new _0x2055c7(_0x3336d5),_0x48c8db=_0x284fe6['model'];_0x2e637d['bind'](...Object['keys'](_0x48c8db))['to'](_0x48c8db),_0x2e637d['delegate']('execute')['to'](_0x16f28c),_0x2e637d['on']('execute',()=>{this['editor']['execute'](_0x48c8db['commandName']),this['editor']['editing']['view']['focus']();}),_0x5017ec['children']['add'](_0x2e637d),_0x54400d['items']['add'](_0x5017ec);}return _0x16f28c['bind']('isEnabled')['to'](_0x59eac5,'isEnabled'),_0x16f28c['panelView']['children']['add'](_0x54400d),_0x16f28c;}['_initializeController'](_0x54fee5){const _0x23ccc1=this['editor'],_0x31ccf1=_0x23ccc1['config'],_0x20fe71=_0x23ccc1['plugins']['get']('Annotations'),_0x1c0ed3=_0x23ccc1['plugins']['get']('CommentsRepository'),_0x58a704=_0x23ccc1['plugins']['get']('EditorAnnotations'),_0x1cbc64=_0x23ccc1['plugins']['get'](_0x45c096)['me'],_0x241162=_0x31ccf1['get']('trackChanges')['SuggestionThreadView'],_0x44b65f=_0x31ccf1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4a461c,CommentThreadInputView:_0x2dcf19}=_0x23ccc1['plugins']['get']('CommentsUI');let _0x6d4938,_0x51a06c,_0x318ce8;this['_annotationViews']['has'](_0x54fee5['id'])?(_0x51a06c=this['_annotationViews']['get'](_0x54fee5['id']),_0x6d4938=_0x51a06c['mainView']):(_0x6d4938=new _0x241162(_0x23ccc1['locale'],_0x54fee5,_0x1cbc64,{'disableComments':this['_disableComments'],'editorConfig':{..._0x31ccf1['get']('comments.editorConfig'),'licenseKey':_0x31ccf1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x31ccf1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x31ccf1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x31ccf1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x40d165(_0x31ccf1['get']('locale'),_0x23ccc1['locale']),'CommentView':_0x31ccf1['get']('comments')['CommentView'],'CommentsListView':_0x4a461c,'CommentThreadInputView':_0x2dcf19,'SuggestionView':_0x44b65f}),_0x6d4938['suggestionView']['acceptButton']['on']('execute',()=>{_0x23ccc1['editing']['view']['focus']();}),_0x6d4938['suggestionView']['discardButton']['on']('execute',()=>{_0x23ccc1['editing']['view']['focus']();}),_0x51a06c=_0x20fe71['createAnnotationView'](this['editor']['locale'],_0x6d4938),_0x51a06c['bind']('isDirty')['to'](_0x6d4938,'isDirty'),_0x51a06c['bind']('length')['to'](_0x6d4938),_0x51a06c['bind']('type')['to'](_0x6d4938,'type',_0x42bc03=>'suggestion-'+_0x42bc03),_0x6d4938['on']('escape',()=>{_0x318ce8['fire']('escape');}),this['_annotationViews']['set'](_0x54fee5['id'],_0x51a06c));const _0x19948f=_0x1c0ed3['createCommentThreadController'](_0x54fee5['commentThread'],_0x6d4938),_0x50593d=new pe(_0x23ccc1,_0x54fee5,_0x6d4938,_0x19948f),_0x43fbc6=_0x54fee5['getAllAdjacentSuggestions']()['filter'](_0x3f8135=>_0x3f8135['isInContent']);_0x6d4938['descriptionParts']=_0x23ccc1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x43fbc6),this['_suggestionToController']['set'](_0x54fee5,_0x50593d),this['_viewToController']['set'](_0x6d4938,_0x50593d),_0x318ce8=_0x20fe71['createAnnotation']({'view':_0x51a06c,'target':()=>{const _0x548e07=[],_0x561436=_0x54fee5['getAllAdjacentSuggestions']()['filter'](_0xe01618=>_0xe01618['isInContent']);for(const _0x38d082 of _0x561436)_0x548e07['push'](..._0x38d082['getMarkers']());return _0x521180(_0x23ccc1['editing'],_0x548e07);},'type':()=>'suggestion-'+_0x50593d['view']['type']}),_0x1c0ed3['_bindAnnotationToEditors'](_0x6d4938,_0x318ce8),_0x20fe71['add'](_0x318ce8),_0x58a704['registerAnnotation'](_0x318ce8);}['_destroyController'](_0xedeaad){const _0x20a99b=this['editor']['plugins']['get']('CommentsRepository'),_0xafe05f=this['editor']['plugins']['get']('Annotations'),_0xdb67be=this['_suggestionToController']['get'](_0xedeaad),_0x12340b=_0xdb67be['view'],_0x200550=_0xafe05f['getByInnerView'](_0x12340b);_0x20a99b['_unbindEditors'](_0x12340b),_0x200550&&_0xafe05f['remove'](_0x200550),this['_suggestionToController']['delete'](_0xedeaad),this['_viewToController']['delete'](_0x12340b),_0xdb67be['destroy']();}['_updateController'](_0x35ca63){if(!_0x35ca63['isInContent']||!this['_suggestionToController']['has'](_0x35ca63))return;const _0x4bd1d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0xac6120=this['_suggestionToController']['get'](_0x35ca63),_0x461717=_0x35ca63['getAllAdjacentSuggestions']();_0xac6120['view']['descriptionParts']=_0x4bd1d3['descriptionFactory']['getDescriptions'](_0x461717);}['destroy'](){for(const _0x505457 of this['_suggestionToController']['keys']())this['_destroyController'](_0x505457);for(const _0x2391c0 of this['_annotationViews']['values']())_0x2391c0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4be264){return'model'in _0x4be264;}class k extends _0x31a850{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x37d415){this['editor']['plugins']['get'](p)['adapter']=_0x37d415;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x54aff8){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x54aff8);}['getSuggestions']({skipNotAttached:_0x554a91=!0x1,toJSON:_0x447fcc=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x554a91,'toJSON':_0x447fcc});}['getSuggestion'](_0x1542c1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1542c1);}}const w=['Pagination'];class T extends _0x31a850{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x11d2a3=this['editor'];if(_0x11d2a3['config']['define']('trackChangesData.editorCreator',_0x751ca5=>{const _0xad622a=_0x11d2a3['model']['document']['getRootNames']()['reduce']((_0x4a7b3d,_0x4c52c6)=>(_0x4a7b3d[_0x4c52c6]='',_0x4a7b3d),{});return _0x11d2a3['constructor']['create'](_0xad622a,_0x751ca5);}),'function'!=typeof _0x11d2a3['config']['get']('trackChangesData')['editorCreator'])throw new _0x5121be('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x507f7b){return N(this['editor'],!0x0,_0x507f7b);}['getDataWithDiscardedSuggestions'](_0x432054){return N(this['editor'],!0x1,_0x432054);}}class D extends _0x31a850{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbf344a){function _0x1aee6a(_0x2a379e){return _0x2a379e['map'](_0x17f1d2=>String['fromCharCode'](_0x17f1d2))['join']('');}super(_0xbf344a),this['result']='end',_0xbf344a[_0x1aee6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1aee6a([0x76,0x69,0x65,0x77])][_0x1aee6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1aee6a([0x61,0x75,0x74,0x6f]),_0xbf344a[_0x1aee6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1aee6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1aee6a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1aee6a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1aee6a([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 Ge(_0x5cb245){return void 0x0!==_0x5cb245['getRootsAttributes'];}async function N(_0x3e89b3,_0x37ea32,_0x3d63e9){const _0x56d566=_0x4987e8(_0x3e89b3,w);_0x56d566['plugins']['push'](p,D),_0x56d566['rootsAttributes']=Ge(_0x3e89b3)?_0x3e89b3['getRootsAttributes']():void 0x0;const _0x3352fc=document['createDocumentFragment'](),_0x1d0e31=_0x3e89b3['config']['get']('trackChangesData')['editorCreator'],_0x4ae5b7=await _0x1d0e31(_0x56d566,()=>function(_0x164eaf){const _0x1cbe0a=document['createElement']('div');return _0x164eaf['appendChild'](_0x1cbe0a),_0x1cbe0a;}(_0x3352fc));!function(_0x3a8c7b,_0x5e3221){const _0x11238b=_0x3a8c7b['model']['document']['getRootNames']()['reduce']((_0x264c80,_0xc8f74c)=>(_0x264c80[_0xc8f74c]=_0x3a8c7b['data']['get']({'rootName':_0xc8f74c}),_0x264c80),{}),_0x1f996c=_0x3a8c7b['plugins']['get']('Users')['users']['map'](_0x3ccbbe=>({'id':_0x3ccbbe['id'],'name':_0x3ccbbe['name']})),_0x5ef1ce=_0x3a8c7b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b3413=_0x3a8c7b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x59ffb9=_0x5e3221['plugins']['get']('Users'),_0x609cda=_0x5e3221['plugins']['get']('TrackChangesEditing'),_0x1fa379=_0x5e3221['plugins']['get']('CommentsRepository');for(const _0x163477 of _0x1fa379['getCommentThreads']())_0x163477['remove']();for(const _0x80be53 of _0x1f996c)_0x59ffb9['getUser'](_0x80be53['id'])||_0x59ffb9['addUser'](_0x80be53);_0x59ffb9['me']||_0x59ffb9['useAnonymousUser']();for(const _0xcf7e91 of _0x1b3413)_0x1fa379['addCommentThread'](_0xcf7e91);for(const _0x1fdcdb of _0x5ef1ce)_0x609cda['addSuggestionData'](_0x1fdcdb);_0x5e3221['data']['set'](_0x11238b);}(_0x3e89b3,_0x4ae5b7),_0x4ae5b7['execute'](_0x37ea32?'acceptAllSuggestions':'discardAllSuggestions');const _0x944440=Ge(_0x4ae5b7)?_0x4ae5b7['getFullData'](_0x3d63e9):_0x4ae5b7['data']['get'](_0x3d63e9);return await _0x4ae5b7['destroy'](),_0x944440;}class Me extends _0x254aba{['options'];constructor(_0x1d2012,_0x3fd2ce){super(_0x1d2012),this['options']=_0x3fd2ce,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'](_0x285b2b,_0x102744){if(!this['element'])return;const _0x65fb08=[];for(const [_0x318b59,_0xf1e292]of _0x285b2b){const _0x2aef56=document['createElement']('div');_0x2aef56['setAttribute']('data-ck-root-name',_0x318b59),_0x2aef56['className']=_0xf1e292['classes']+'\x20ck-track-changes-preview__root-container',_0x2aef56['innerHTML']=_0xf1e292['content'],_0x65fb08['push'](_0x2aef56);}_0x102744(this['element'],_0x65fb08),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5136f2{constructor(_0x19b1bd){super(_0x19b1bd),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x99d4f6=this['editor'],_0x52902b=_0x99d4f6['locale'],_0x7621a3=_0x99d4f6['plugins']['get']('Dialog');let _0x12836b;const _0x168786=function(_0x58cbac){const _0x5ef01f={};if('editables'in _0x58cbac['ui']['view']){for(const [_0x511792,_0x24c1c9]of Object['entries'](_0x58cbac['ui']['view']['editables']))_0x5ef01f[_0x511792]=_0x24c1c9['element'];}else _0x5ef01f[_0x58cbac['model']['document']['getRootNames']()[0x0]]=_0x58cbac['ui']['view']['editable']['element'];return _0x5ef01f;}(_0x99d4f6),_0x18ebdc=function(_0x4d8440){let _0x252115=0x0;for(const _0xdea2ba of Object['values'](_0x4d8440))_0x252115=Math['max'](_0x252115,_0xdea2ba['getBoundingClientRect']()['width']);let _0x7d338c=0x0;for(const _0x543e6 of Object['values'](_0x4d8440))_0x7d338c+=_0x543e6['getBoundingClientRect']()['height'];const _0x4b5b26=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3722ee=Math['min'](_0x7d338c,_0x4b5b26);return{'width':_0x252115,'height':_0x3722ee};}(_0x168786);_0x7621a3['show']({'id':'finalContentPreview','title':c(_0x52902b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x52902b,{'dialogRects':_0x18ebdc}),'onHide':()=>{_0x12836b['detachFromDom']();},'onShow':()=>{_0x99d4f6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x13d8cb=>{const _0x3bb7fc=this['_standarizeRootsData'](_0x13d8cb,_0x99d4f6,_0x168786);_0x7621a3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3bb7fc,_0x99d4f6['config']['get']('trackChanges.preview.renderFunction'));}),_0x12836b=new _0x5f4960(_0x52902b,[_0x7621a3['view']]),_0x12836b['attachToDom'](),_0x12836b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x99d4f6['once']('destroy',()=>{_0x12836b['detachFromDom']();});const _0x32863b=_0x7621a3['view']['headerView']['class'];_0x7621a3['view']['headerView']['class']=_0x32863b?_0x32863b+'\x20ck-reset_all':'ck-reset_all',_0x7621a3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x7621a3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1fde02=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3f233e=_0x1fde02['previewMode'],_0x50e68f={};if('$labels'===_0x3f233e){for(const _0xa63b0e of _0x1fde02['getMergeFieldsIds']())_0x50e68f[_0xa63b0e]=_0x1fde02['getLabel'](_0xa63b0e)||_0xa63b0e;}else{const _0x39ca69='$defaultValues'===_0x3f233e?_0x1fde02['getDefaultValues']():_0x1fde02['getDataSetValues'](_0x3f233e,!0x0);for(const _0x5a2b67 of Object['entries'](_0x39ca69)){const [_0x2448dd,_0x1685cd]=_0x5a2b67;_0x50e68f[_0x2448dd]=null!==_0x1685cd?_0x1685cd:_0x1fde02['getLabel'](_0x2448dd)||_0x2448dd;}}return{'mergeFieldsData':_0x50e68f};}['_standarizeRootsData'](_0x55fdee,_0x449e6b,_0x38559d){let _0x3fbf54;if('string'==typeof _0x55fdee){const _0x4f4fba=_0x449e6b['model']['document']['getRootNames']()[0x0];_0x3fbf54={[_0x4f4fba]:_0x55fdee};}else _0x3fbf54=_0x55fdee;const _0x38b97b=this['_fixMediaEmbeds'](_0x3fbf54,_0x449e6b),_0x4b4d20=function(_0x1a32dd,_0x1d3f43){for(const [_0x4231b5,_0x1a96b2]of _0x1a32dd)_0x1a96b2['classes']=_0x1d3f43[_0x4231b5]['classList']['value']['replace']('ck-focused','');return _0x1a32dd;}(this['_sortRoots'](_0x449e6b)['reduce']((_0x2a81d9,_0x1b80e2)=>(_0x2a81d9['push']([_0x1b80e2,{'content':_0x38b97b[_0x1b80e2],'classes':''}]),_0x2a81d9),[]),_0x38559d);return _0x4b4d20;}['_fixMediaEmbeds'](_0x566b74,_0x53911a){if(!_0x53911a['plugins']['has']('MediaEmbedEditing'))return _0x566b74;const _0x15b690=_0x53911a['plugins']['get']('MediaEmbedEditing');for(const [_0x13eb67,_0x532a64]of Object['entries'](_0x566b74)){const _0x257e3f=document['createElement']('div');_0x257e3f['innerHTML']=_0x532a64,(_0x257e3f['querySelectorAll']('figure.media')['forEach'](_0x3586c3=>{const _0x544b86=_0x3586c3['querySelector']('oembed');if(_0x544b86){const _0x8507bb=_0x544b86['getAttribute']('url');if(_0x8507bb){const _0x38e788=_0x15b690['registry']['getMediaViewElement'](new _0x551d30(_0x53911a['editing']['view']['document']),_0x8507bb,{'elementName':'','renderForEditingView':!0x0}),_0x1ac985=document['createElement']('div');_0x1ac985['classList']['add']('ck-media__wrapper'),_0x38e788['render'](_0x1ac985,_0x53911a['editing']['view']['domConverter']),_0x544b86['replaceWith'](_0x1ac985);}}}),_0x566b74[_0x13eb67]=_0x257e3f['innerHTML']);}return _0x566b74;}['_sortRoots'](_0x310b54){if(!function(_0x462408){return void 0x0!==_0x462408['getRootsAttributes'];}(_0x310b54))return _0x310b54['model']['document']['getRootNames']();const _0x97cc7b=[],_0xb81a24=new Map();for(const _0x3de173 of _0x310b54['model']['document']['getRootNames']()){const _0x16881b=_0x310b54['editing']['view']['getDomRoot'](_0x3de173)['getClientRects']()['item'](0x0);_0x97cc7b['push'](_0x3de173),_0xb81a24['set'](_0x3de173,_0x16881b);}return _0x97cc7b['sort']((_0x4aae39,_0xb2c41b)=>{const _0x548625=_0xb81a24['get'](_0x4aae39),_0x502b91=_0xb81a24['get'](_0xb2c41b);return _0x548625['y']-_0x502b91['y']||_0x548625['x']-_0x502b91['x'];}),_0x97cc7b;}}class te extends _0x31a850{static get['requires'](){return[T,_0x4fc00c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x804f8c){super(_0x804f8c),_0x804f8c['commands']['add']('previewFinalContent',new re(this['editor'])),_0x804f8c['config']['define']('trackChanges.preview.renderFunction',(_0x5ae173,_0x562d5b)=>{for(const _0x4f9586 of _0x562d5b)_0x5ae173['appendChild'](_0x4f9586);});}}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 _0x2f89f8,Plugin as _0x385d2b,PendingActions as _0x1120b7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5e9249,ObservableMixin as _0x5e4a13,uid as _0x38a072,priorities as _0x1dda41,insertToPriorityArray as _0x409bb9,toArray as _0x2b741c,logWarning as _0x449267,getEnvKeystrokeText as _0x4c7332,FocusTracker as _0x4d2e11,KeystrokeHandler as _0x3b3830,Collection as _0x2fed68}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1b3868,IconCancel as _0x3e114e,IconTrackChanges as _0x53e025}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1c7a9d,View as _0x160dd4,ViewCollection as _0x282e9a,FocusCycler as _0x11e62c,ViewModel as _0x2ad1ea,createDropdown as _0x5b6ead,SplitButtonView as _0x1b9d33,addListToDropdown as _0x30b889,MenuBarMenuView as _0x3c88f7,MenuBarMenuListView as _0x141f2a,ListSeparatorView as _0x51174f,MenuBarMenuListItemView as _0x3d5574,MenuBarMenuListItemButtonView as _0x4e727c,BodyCollection as _0x4afe6b,Dialog as _0x273140}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x147b02,hashObject as _0x1152a2,surroundingMarkersDetector as _0xb989cc,FOCUS_ANNOTATION_KEYSTROKE as _0xc353d,AriaDescriptionView as _0x13763c,setupThreadKeyboardNavigation as _0x4cd8d1,trimHtml as ti,UserView as _0x1628b5,LateFocusButtonView as _0x25ba23,getDateTimeFormatter as _0x352c5a,getAllMarkersDomElementsSorted as _0x105a56,sanitizeEditorConfig as _0x4eadee}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1e4107,LiveRange as _0x21cd14,LivePosition as _0x3fff8c,DowncastWriter as _0x82119c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xf0eea4,toWidget as _0x407821}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xdf7c9c,set as _0x5326f2,isEqual as _0x1cc8d5,unset as _0x2a8867,omit as Ft}from'es-toolkit/compat';import{Delete as _0x9d734f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4dd6b6}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x370390}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x2f89f8{['_enabledCommands'];constructor(_0x2c88f4,_0x4a8a65){super(_0x2c88f4),this['_enabledCommands']=_0x4a8a65,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 _0x29d109 of this['editor']['commands']['commands']())_0x29d109['affectsData']&&!this['_enabledCommands']['has'](_0x29d109)&&_0x29d109['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5cfeb1 of this['editor']['commands']['commands']())_0x5cfeb1['affectsData']&&!this['_enabledCommands']['has'](_0x5cfeb1)&&_0x5cfeb1['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x2f89f8{['_suggestions'];constructor(_0xdeccac,_0x4c4feb){super(_0xdeccac),this['_suggestions']=_0x4c4feb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x600096){const _0x4c3d57=this['_suggestions']['get'](_0x600096);if(!_0x4c3d57)throw new _0x5e9249('track-changes-accept-suggestion-not-found',this);const _0x1322c0=_0x4c3d57['getRanges']();this['editor']['model']['canEditAt'](_0x1322c0)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4c3d57);}}class O extends _0x2f89f8{['_suggestions'];constructor(_0xad9f00,_0x21d46f){super(_0xad9f00),this['_suggestions']=_0x21d46f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xeb1955){const _0x581aea=this['_suggestions']['get'](_0xeb1955);if(!_0x581aea)throw new _0x5e9249('track-changes-discard-suggestion-not-found',this);const _0x3df362=_0x581aea['getRanges']();this['editor']['model']['canEditAt'](_0x3df362)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x581aea);}}function ls(_0x4184d8,_0x314c82){let _0x1c8b84='';return _0x1c8b84+=_0x4184d8['split']('*')['map']((_0x2345d1,_0xdcb925)=>_0xdcb925%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2345d1)+'</span>':nn(_0x2345d1))['join'](''),_0x314c82&&(_0x1c8b84+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x314c82['value']+'\x22\x20title=\x22'+_0x314c82['title']+'\x22></span>'),_0x1c8b84;}function nn(_0x1dd926){const _0x134c09=document['createElement']('span');return _0x134c09['innerText']=_0x1dd926,_0x134c09['innerHTML'];}function ts(_0x40c0e1){return _0x40c0e1['sort']((_0x2e9be4,_0x5a4d0c)=>'deletion'==_0x2e9be4['type']&&'deletion'!=_0x5a4d0c['type']?-0x1:'deletion'!=_0x2e9be4['type']&&'deletion'==_0x5a4d0c['type']?0x1:0x0);}function to(_0x3d3386,_0x4d073f){let _0x24c4e1,_0x2263b9=0x0;const _0x4dd10a=[],_0x5c31d1=_0x4d073f['schema'];for(;_0x2263b9<_0x3d3386['length'];){const _0x3d1d89=_0x3d3386[_0x2263b9],_0x4130ef=_0x3d3386[_0x2263b9+0x1];_0x24c4e1||(_0x24c4e1=_0x4d073f['createPositionBefore'](_0x3d1d89)),on(_0x4d073f,_0x3d1d89,_0x4130ef)||(_0x4dd10a['push'](_0x4d073f['createRange'](_0x24c4e1,_0x5c31d1['isObject'](_0x3d1d89)?_0x4d073f['createPositionAfter'](_0x3d1d89):_0x4d073f['createPositionAt'](_0x3d1d89,'end'))),_0x24c4e1=null),_0x2263b9++;}return _0x4dd10a;}function on(_0x2e6cfb,_0x1485c8,_0x42e6f3){if(!_0x42e6f3)return!0x1;const _0x2df6da=_0x2e6cfb['createPositionAfter'](_0x1485c8),_0x2953d7=_0x2e6cfb['createPositionBefore'](_0x42e6f3);return _0x2df6da['isTouching'](_0x2953d7);}function rs(_0x124096,_0x5b17c0,_0xad4038){for(;_0xad4038['length'];){const _0x2dcc50=_0xad4038['splice'](0x0,0x64);_0x124096['change'](()=>{for(const _0x495288 of _0x2dcc50)_0x495288['isInContent']&&_0x5b17c0['execute'](_0x495288['id']);});}}class R extends _0x2f89f8{['_command'];['_suggestions'];constructor(_0x4f6fed,_0x484ef7,_0x3753cf){super(_0x4f6fed),this['_command']=_0x484ef7,this['_suggestions']=_0x3753cf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x37fbe1=Array['from'](this['_suggestions']['values']())['some'](_0x1c7263=>_0x1c7263['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x37fbe1;}['execute'](){const _0xa07801=ts(Array['from'](this['_suggestions']['values']()));for(const _0x231702 of _0xa07801){const _0x1f4c6c=_0x231702['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1f4c6c))return;}rs(this['editor']['model'],this['_command'],_0xa07801);}}class E extends _0x2f89f8{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x52dfb9,_0x3d7a0a,_0x3ade83){super(_0x52dfb9),this['_command']=_0x3d7a0a,this['_suggestions']=_0x3ade83,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x719f4a=this['editor']['model']['document']['selection'],_0x54b67e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3280c8,_0x3c694f){const _0x6c387b=Array['from'](_0x3280c8['getRanges']()),_0x3ec2b8=new Set();for(const _0x1dc000 of _0x3c694f)if(_0x1dc000['isInContent']){for(const _0x476416 of _0x6c387b)for(const _0x562da3 of _0x1dc000['getRanges']())(_0x476416['isIntersecting'](_0x562da3)||_0x3280c8['isCollapsed']&&!_0x1dc000['isMultiRange']&&_0x1dc000['next']&&_0x562da3['end']['isTouching'](_0x476416['start']))&&_0x3ec2b8['add'](_0x1dc000);}return _0x3ec2b8;}(_0x719f4a,_0x54b67e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x85275a=ts(Array['from'](this['_selectedSuggestions']));for(const _0x139134 of _0x85275a){const _0x5c3ad6=_0x139134['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c3ad6))return;}rs(this['editor']['model'],this['_command'],_0x85275a);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5e4a13(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x154f0a,_0x51611c){super(),this['id']=_0x51611c['id'],this['type']=_0x51611c['type'],this['subType']=_0x51611c['subType']||null,this['author']=_0x51611c['author'],this['creator']=_0x51611c['creator']||_0x51611c['author'],this['isExternal']=Boolean(_0x51611c['attributes']&&_0x51611c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x51611c['originalSuggestionId']||null,this['_model']=_0x154f0a,this['_onAccept']=_0x51611c['onAccept'],this['_onDiscard']=_0x51611c['onDiscard'],this['_onAttributesChange']=_0x51611c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x51611c['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 _0x5306e0=this;for(;_0x5306e0['previous'];)_0x5306e0=_0x5306e0['previous'];return _0x5306e0;}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'](_0x33da33){this['_markerNames']['add'](_0x33da33);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3abcbd=>this['_model']['markers']['get'](_0x3abcbd))['filter'](_0x534b3e=>_0x534b3e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x308a52=>{for(const _0x153aae of this['getMarkers']())_0x308a52['removeMarker'](_0x153aae);}),this['_markerNames']['clear']();}['removeMarker'](_0x36995f){this['_model']['change'](_0x4c1b1b=>{_0x4c1b1b['removeMarker'](_0x36995f);}),this['_markerNames']['delete'](_0x36995f);}['addRange'](_0x2d41f0){const _0xf7a01a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0xf7a01a),this['_model']['change'](_0x543150=>{_0x543150['addMarker'](_0xf7a01a,{'range':_0x2d41f0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xdc7d60){for(const _0x3118f8 of this['getRanges']())if(_0x3118f8['isIntersecting'](_0xdc7d60))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4f0cb5=>_0x4f0cb5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4c221b,_0x2c2140)=>[..._0x4c221b,..._0x2c2140['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5c934b=this['getRanges']();if(0x1!=_0x5c934b['length'])return null;const _0x16e5f=_0x5c934b[0x0],_0x1d21af=_0x16e5f['start']['nodeAfter'],_0x2d4610=_0x16e5f['end']['nodeBefore'];return _0x1d21af instanceof _0x1e4107?_0x1d21af!=_0x2d4610?null:_0x1d21af: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 _0x215508=[];let _0x52e557=this['head'];for(;_0x52e557;)_0x215508['push'](_0x52e557),_0x52e557=_0x52e557['next'];return _0x215508;}['setAttribute'](_0x4f1084,_0xba0fb0){const _0x437386=_0xdf7c9c(this['attributes']);_0x5326f2(_0x437386,_0x4f1084,_0xba0fb0),_0x1cc8d5(_0x437386,this['attributes'])||(this['attributes']=_0x437386,this['_onAttributesChange'](_0x437386));}['removeAttribute'](_0x1f7789){const _0x6849d=_0xdf7c9c(this['attributes']);_0x2a8867(_0x6849d,_0x1f7789),_0x1cc8d5(_0x6849d,this['attributes'])||(this['attributes']=_0x6849d,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 _0x38a072()['substr'](0x1,0x5);}}function c(_0x2692d5,_0x59b731,_0x18aa2d){const _0x17c0ee=_0x2692d5['t'],t=_0x2692d5['t'];switch(_0x59b731){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',_0x18aa2d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x18aa2d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x18aa2d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x18aa2d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x18aa2d);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',_0x18aa2d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x18aa2d);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',_0x18aa2d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x18aa2d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x18aa2d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x18aa2d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x18aa2d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x18aa2d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x18aa2d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x18aa2d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x18aa2d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x18aa2d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x18aa2d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x18aa2d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x18aa2d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x18aa2d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x18aa2d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x18aa2d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x18aa2d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x18aa2d);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'},_0x18aa2d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x18aa2d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x18aa2d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x18aa2d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x18aa2d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x18aa2d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x18aa2d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x18aa2d);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'},_0x18aa2d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x18aa2d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x18aa2d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x18aa2d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x18aa2d);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'},_0x18aa2d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x18aa2d);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'},_0x18aa2d);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'},_0x18aa2d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x18aa2d);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'},_0x18aa2d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x18aa2d);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'},_0x18aa2d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x18aa2d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x18aa2d);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'},_0x18aa2d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x18aa2d);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 _0x17c0ee({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x18aa2d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x17c0ee({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x18aa2d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x18aa2d);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'},_0x18aa2d);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'},_0x18aa2d);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'},_0x18aa2d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x59b731;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x25d0d6,_0xce19e4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x25d0d6,this['_locale']=_0xce19e4;}['getDescriptions'](_0x2f0317){const _0x4acd27=[],_0x418e33=new Set(),_0x4d1fa8=new Set();for(let _0x4ccce2=0x0;_0x4ccce2<_0x2f0317['length'];_0x4ccce2++){const _0x402d4c=_0x2f0317[_0x4ccce2];if(!_0x402d4c['isInContent'])continue;const _0x4e664e=this['_handleCustomCallbackDescription'](_0x402d4c);if(_0x4e664e){if(null!=_0x402d4c['subType']){if(_0x418e33['has'](_0x402d4c['subType']))continue;_0x418e33['add'](_0x402d4c['subType']);}_0x4acd27['push'](_0x4e664e);}else{if('attribute'!=_0x402d4c['type'])'insertion'!=_0x402d4c['type']&&'deletion'!=_0x402d4c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4acd27,_0x402d4c,_0x2f0317[_0x4ccce2+0x1]);else{const _0x180583=_0x402d4c['data']['key'];if(_0x4d1fa8['has'](_0x180583))continue;_0x4d1fa8['add'](_0x402d4c['data']['key']),_0x180583==u?this['_handleRenameSuggestionDescription'](_0x4acd27,_0x402d4c):this['_handleAttributeSuggestionDescription'](_0x4acd27,_0x402d4c);}}}return this['_resolveDescriptionItems'](_0x4acd27);}['registerDescriptionCallback'](_0x1d04fa){this['_customCallbacks']['push'](_0x1d04fa);}['registerElementLabel'](_0x4eea0a,_0x5572c0,_0x3d0650=_0x1dda41['normal']){'function'==typeof _0x4eea0a?_0x409bb9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4eea0a,'label':_0x5572c0,'priority':_0x3d0650}):this['_itemLabels']['set'](_0x4eea0a,_0x5572c0);}['registerAttributeLabel'](_0x40e2f0,_0x1d1344){this['_attributeLabels']['set'](_0x40e2f0,_0x1d1344);}['getItemLabel'](_0x19f091,_0x55ec96=0x1){let _0x4e586b;for(const _0xef86cc of this['_itemLabelsCallbacks'])if(_0xef86cc['matchingCallback'](_0x19f091)){_0x4e586b=_0xef86cc['label'];break;}return _0x4e586b||(_0x4e586b=this['_itemLabels']['get'](_0x19f091['name'])),_0x4e586b?_0x4e586b(_0x55ec96):0x1!==_0x55ec96?_0x55ec96+'\x20'+_0x19f091['name']+'s':''+_0x19f091['name'];}['_addDescriptionItems'](_0x111c36,_0x45b413){const _0x5398d5=_0x45b413['getFirstRange']()['getWalker'](),_0x19d2a1='insertion'==_0x45b413['type']?'add':'remove';for(const _0x2d82fa of _0x5398d5){const _0x9095ef=_0x2d82fa['item'],_0x346bf7=_0x111c36[_0x111c36['length']-0x1];if(_0x9095ef['is']('$textProxy'))_0x346bf7&&_0x346bf7['type']['indexOf']('Container')>-0x1&&_0x111c36['pop'](),_0x346bf7&&'text'==_0x346bf7['type']?_0x346bf7[_0x19d2a1]+=_0x9095ef['data']:_0x111c36['push']({'type':'text','add':'add'==_0x19d2a1?_0x9095ef['data']:'','remove':'remove'==_0x19d2a1?_0x9095ef['data']:''});else{if(this['_schema']['isObject'](_0x9095ef)){const _0x5e3fb5=_0x9095ef;if(_0x346bf7&&_0x346bf7['type']['indexOf']('Container')>-0x1&&_0x111c36['pop'](),'elementEnd'==_0x2d82fa['type'])continue;_0x346bf7&&_0x346bf7['type']==_0x19d2a1+'Object'&&_0x346bf7['element']['name']==_0x5e3fb5['name']?_0x346bf7['quantity']++:_0x111c36['push']({'type':_0x19d2a1+'Object','element':_0x5e3fb5,'quantity':0x1}),_0x5398d5['skip'](_0x5f38ac=>!('elementEnd'==_0x5f38ac['type']&&_0x5f38ac['item']==_0x9095ef));}else{if(this['_schema']['checkChild'](_0x9095ef,'$text')||_0x9095ef['is']('element','softBreak')){const _0x5569d7=_0x9095ef;if('add'==_0x19d2a1&&'elementStart'==_0x2d82fa['type']||'remove'==_0x19d2a1&&'elementEnd'==_0x2d82fa['type'])continue;if(_0x346bf7&&-0x1==_0x346bf7['type']['indexOf']('Container')){'text'==_0x346bf7['type']&&(_0x346bf7[_0x19d2a1]+='\x0a');continue;}let _0x37c29f;if(_0x37c29f='add'==_0x19d2a1?_0x5569d7['nextSibling']&&!this['_schema']['isObject'](_0x5569d7['nextSibling'])?_0x5569d7['nextSibling']:null:_0x5569d7['previousSibling']&&!this['_schema']['isObject'](_0x5569d7['previousSibling'])?_0x5569d7['previousSibling']:null,_0x5569d7['isEmpty']||_0x37c29f&&_0x37c29f['isEmpty']){const _0x487c85=_0x37c29f&&_0x37c29f['isEmpty']?_0x37c29f:_0x5569d7;_0x346bf7&&_0x346bf7['type']==_0x19d2a1+'EmptyContainer'&&_0x346bf7['element']['name']==_0x487c85['name']?_0x346bf7['quantity']++:_0x111c36['push']({'type':_0x19d2a1+'EmptyContainer','element':_0x487c85,'quantity':0x1});}else _0x111c36['push']({'type':_0x19d2a1+'Container','element':_0x5569d7});}}}}}['_resolveDescriptionItems'](_0x45dabf){const _0x1f71a9=this['_locale'],_0x563ec8=[],_0xe104ba=[],_0x2c866f=[];for(const _0x4e2345 of _0x45dabf)switch(_0x4e2345['type']){case'text':if(_0x4e2345['add']=_0x4e2345['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4e2345['remove']=_0x4e2345['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4e2345['add']&&''!=_0x4e2345['remove']){_0x563ec8['push']({'type':'replace','content':c(_0x1f71a9,'REPLACE_TEXT',['\x22'+_0x4e2345['remove']+'\x22','\x22'+_0x4e2345['add']+'\x22'])});continue;}if(null!=_0x4e2345['add']['match'](/^ +$/)){_0x563ec8['push']({'type':'insertion','content':c(_0x1f71a9,'*Insert:*\x20%0',c(_0x1f71a9,'ELEMENT_SPACE',_0x4e2345['add']['length']))});continue;}if(null!=_0x4e2345['remove']['match'](/^ +$/)){_0x563ec8['push']({'type':'deletion','content':c(_0x1f71a9,'*Remove:*\x20%0',c(_0x1f71a9,'ELEMENT_SPACE',_0x4e2345['remove']['length']))});continue;}if(''!=_0x4e2345['add']){_0x563ec8['push']({'type':'insertion','content':c(_0x1f71a9,'*Insert:*\x20%0','\x22'+_0x4e2345['add']+'\x22')});continue;}_0x563ec8['push']({'type':'deletion','content':c(_0x1f71a9,'*Remove:*\x20%0','\x22'+_0x4e2345['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x563ec8['push']({'type':'insertion','content':c(_0x1f71a9,'*Insert:*\x20%0',this['getItemLabel'](_0x4e2345['element'],_0x4e2345['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x563ec8['push']({'type':'deletion','content':c(_0x1f71a9,'*Remove:*\x20%0',this['getItemLabel'](_0x4e2345['element'],_0x4e2345['quantity']))});continue;case'addContainer':_0x563ec8['push']({'type':'insertion','content':c(_0x1f71a9,'*Split:*\x20%0',this['getItemLabel'](_0x4e2345['element'],_0x4e2345['quantity']))});continue;case'removeContainer':_0x563ec8['push']({'type':'deletion','content':c(_0x1f71a9,'*Merge:*\x20%0',this['getItemLabel'](_0x4e2345['element'],_0x4e2345['quantity']))});continue;case'addFormat':_0xe104ba['push'](_0x4e2345['key']);continue;case'removeFormat':_0x2c866f['push'](_0x4e2345['key']);continue;default:_0x563ec8['push'](_0x4e2345);}if(_0xe104ba['length']){const _0x1e6a82=_0xe104ba['map'](_0x34bd9a=>this['_attributeLabels']['has'](_0x34bd9a)?this['_attributeLabels']['get'](_0x34bd9a):_0x34bd9a)['join'](',\x20');_0x563ec8['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x1e6a82)});}if(_0x2c866f['length']){const _0x158c24=_0x2c866f['map'](_0x3deef9=>this['_attributeLabels']['has'](_0x3deef9)?this['_attributeLabels']['get'](_0x3deef9):_0x3deef9)['join'](',\x20');_0x563ec8['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x158c24)});}return _0x563ec8;}['_handleCustomCallbackDescription'](_0x115557){for(const _0x53c17a of this['_customCallbacks']){const _0x46e746=_0x53c17a(_0x115557);if(_0x46e746&&'type'in _0x46e746)return _0x46e746;}}['_handleAttributeSuggestionDescription'](_0x35e5b3,_0x146f3a){const _0x1464f1=_0x146f3a['data'],_0x5edc36=void 0x0===_0x1464f1['newValue']?'removeFormat':'addFormat';_0x35e5b3['push']({'type':_0x5edc36,'key':_0x1464f1['key']});}['_handleRenameSuggestionDescription'](_0x115693,_0x59e385){_0x115693['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x59e385['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x26ae25,_0x373bb6,_0x2fd6ff){if(this['_addDescriptionItems'](_0x26ae25,_0x373bb6),_0x2fd6ff&&_0x2fd6ff['getFirstRange']()&&!_0x373bb6['getFirstRange']()['end']['isEqual'](_0x2fd6ff['getFirstRange']()['start'])){const _0x2de508=_0x26ae25[_0x26ae25['length']-0x1],_0x2edbde='insertion'==_0x373bb6['type']?'add':'remove';_0x2de508&&'text'==_0x2de508['type']&&(_0x2de508[_0x2edbde]+='\x0a');}}}class U extends _0x385d2b{['afterInit'](){const _0x460b19=this['editor'],_0x8efc07=_0x460b19['plugins']['get']('TrackChangesEditing');_0x460b19['commands']['get']('showAIAssistant')&&_0x8efc07['enableCommand']('showAIAssistant');}}class V extends _0x385d2b{['afterInit'](){const _0x1d7bcb=this['editor'],_0x22eec7=_0x1d7bcb['locale'];if(!_0x1d7bcb['plugins']['has']('AlignmentEditing'))return;const _0x3b3adf=_0x1d7bcb['plugins']['get']('TrackChangesEditing');_0x3b3adf['enableDefaultAttributesIntegration']('alignment'),_0x3b3adf['registerBlockAttribute']('alignment'),_0x3b3adf['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x22eec7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x102312=this['editor'],_0x508067=_0x102312['locale'];_0x102312['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x209a99=>{if('formatBlock'!=_0x209a99['type'])return;const {data:_0x13d342}=_0x209a99;if(_0x13d342&&'alignment'==_0x13d342['commandName']){const _0x9efc7b=_0x13d342['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x508067,'*Format:*\x20%0',function(_0x29333c){switch(_0x29333c){case'left':return c(_0x508067,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x508067,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x508067,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x508067,'FORMAT_JUSTIFY_TEXT');}}(_0x9efc7b))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x385d2b{['afterInit'](){const _0x3a319f=this['editor'],_0xb4865f=_0x3a319f['plugins']['get']('TrackChangesEditing'),_0x54da60=_0x3a319f['locale'];for(const _0x2857f5 of Zt){if(!_0x3a319f['plugins']['has'](_0x2857f5))continue;const _0x2d2234=_0x2857f5['slice'](0x0,-0x7)['toLowerCase'](),_0x2db610='FORMAT_'+_0x2d2234['toUpperCase']();_0xb4865f['enableDefaultAttributesIntegration'](_0x2d2234),_0xb4865f['registerInlineAttribute'](_0x2d2234),_0xb4865f['descriptionFactory']['registerAttributeLabel'](_0x2d2234,c(_0x54da60,_0x2db610));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb6a2ea=this['editor'],_0x3492e5=_0xb6a2ea['locale'],_0x3fcc57=_0xb6a2ea['plugins']['get']('TrackChangesEditing');function _0x84660b(_0x66d7cb,_0x28f3c7){_0x3fcc57['descriptionFactory']['registerDescriptionCallback'](_0x536bed=>{if('formatInline'!=_0x536bed['type'])return;const {data:_0x29986e}=_0x536bed;return _0x29986e&&_0x29986e['commandName']===_0x66d7cb?_0x29986e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3492e5,'*Format:*\x20%0',_0x28f3c7)}:{'type':'format','content':c(_0x3492e5,'*Remove\x20format:*\x20%0',_0x28f3c7)}:void 0x0;});}_0x84660b('bold',c(_0x3492e5,'FORMAT_BOLD')),_0x84660b('italic',c(_0x3492e5,'FORMAT_ITALIC')),_0x84660b('underline',c(_0x3492e5,'FORMAT_UNDERLINE')),_0x84660b('code',c(_0x3492e5,'FORMAT_CODE')),_0x84660b('strikethrough',c(_0x3492e5,'FORMAT_STRIKETHROUGH')),_0x84660b('subscript',c(_0x3492e5,'FORMAT_SUBSCRIPT')),_0x84660b('superscript',c(_0x3492e5,'FORMAT_SUPERSCRIPT'));}}class G extends _0x385d2b{['afterInit'](){const _0x59b338=this['editor'],_0x1f73fe=_0x59b338['locale'];if(!_0x59b338['plugins']['has']('BlockQuoteEditing'))return;const _0x555295=_0x59b338['plugins']['get']('TrackChangesEditing'),_0xb546f4=this['editor']['commands']['get']('blockQuote');_0x555295['enableCommand']('blockQuote',(_0x58c8f5,_0x5cd4a8={})=>{const _0xe43876=this['editor']['model']['document']['selection'],_0x2f18df=_0x5cd4a8&&void 0x0!==_0x5cd4a8['forceValue']?_0x5cd4a8['forceValue']:!_0xb546f4['value'];let _0x2a30ec=[];if(_0x2f18df){const _0x50284e=Array['from'](_0xe43876['getSelectedBlocks']())['filter'](_0x13b1c8=>oo(_0x13b1c8)||function(_0x2f0684,_0x1bd03b){const _0x262163=_0x1bd03b['checkChild'](_0x2f0684['parent'],'blockQuote'),_0x28c767=_0x1bd03b['checkChild'](['$root','blockQuote'],_0x2f0684);return _0x262163&&_0x28c767;}(_0x13b1c8,this['editor']['model']['schema']));_0x2a30ec=to(_0x50284e,_0x59b338['model']);}else{const _0x524575=Array['from'](_0xe43876['getSelectedBlocks']())['filter'](_0x1b30e0=>oo(_0x1b30e0));_0x2a30ec=to(_0x524575,_0x59b338['model']);}_0x59b338['model']['change'](()=>{for(const _0x3289ac of _0x2a30ec)_0x555295['markBlockFormat'](_0x3289ac,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2f18df}]});});}),_0x555295['descriptionFactory']['registerDescriptionCallback'](_0x387cc1=>{const {data:_0x3c6e9f}=_0x387cc1;if(_0x3c6e9f&&'blockQuote'==_0x3c6e9f['commandName']){const _0x532fe1=c(_0x1f73fe,'ELEMENT_BLOCK_QUOTE');return _0x3c6e9f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1f73fe,'*Set\x20format:*\x20%0',_0x532fe1)}:{'type':'format','content':c(_0x1f73fe,'*Remove\x20format:*\x20%0',_0x532fe1)};}});}}function oo(_0x2f718d){return'blockQuote'==_0x2f718d['parent']['name'];}class L extends _0x385d2b{['afterInit'](){const _0x1c517b=this['editor'],_0x1a8470=_0x1c517b['locale'],_0x57d27d=_0x1c517b['plugins']['get']('TrackChangesEditing');_0x1c517b['plugins']['has']('BookmarkEditing')&&(_0x57d27d['enableCommand']('insertBookmark'),_0x57d27d['enableDefaultAttributesIntegration']('updateBookmark'),_0x57d27d['registerBlockAttribute']('bookmarkId'),_0x57d27d['descriptionFactory']['registerDescriptionCallback'](_0x39b3e4=>{if('insertion'!=_0x39b3e4['type']&&'deletion'!=_0x39b3e4['type']&&'attribute'!=_0x39b3e4['type'])return;const _0x4cfc3e=_0x39b3e4['getContainedElement']();if(null==_0x4cfc3e)return;if(!_0x4cfc3e['is']('element','bookmark'))return;const _0x18581b=_0x4cfc3e['getAttribute']('bookmarkId');if('insertion'==_0x39b3e4['type'])return{'type':'insertion','content':c(_0x1a8470,'*Insert:*\x20%0','\x22'+_0x18581b+'\x22\x20'+c(_0x1a8470,'ELEMENT_BOOKMARK'))};if('deletion'==_0x39b3e4['type'])return{'type':'deletion','content':c(_0x1a8470,'*Remove:*\x20%0','\x22'+_0x18581b+'\x22\x20'+c(_0x1a8470,'ELEMENT_BOOKMARK'))};const {data:_0x3f4edf}=_0x39b3e4;if(!_0x3f4edf||'bookmarkId'!=_0x3f4edf['key'])return;return{'type':'format','content':c(_0x1a8470,'*Set\x20bookmark:*\x20%0','\x22'+_0x3f4edf['newValue']+'\x22')};}));}}class J extends _0x385d2b{['afterInit'](){const _0x1b978f=this['editor'];_0x1b978f['plugins']['has']('CaseChange')&&(_0x1b978f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1b978f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1b978f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x385d2b{['afterInit'](){const _0x59b0f6=this['editor'];_0x59b0f6['commands']['get']('ckbox')&&_0x59b0f6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x385d2b{['afterInit'](){const _0x37d47c=this['editor'];if(!_0x37d47c['plugins']['has']('CodeBlock'))return;const _0x3a1f28=_0x37d47c['plugins']['get']('TrackChangesEditing'),_0x49c9bf=_0x37d47c['locale'],_0x108aa7=_0x37d47c['config']['get']('codeBlock')['languages'],_0x2d0aad=_0x37d47c['commands']['get']('codeBlock');_0x3a1f28['enableCommand']('indentCodeBlock'),_0x3a1f28['enableCommand']('outdentCodeBlock'),_0x3a1f28['enableCommand']('codeBlock',(_0x53f6cf,_0xbe3509={})=>{const _0x2474ae=_0x37d47c['model'],_0x10bc1f=_0x37d47c['model']['document']['selection'],_0x46199b=_0xbe3509&&void 0x0!==_0xbe3509['forceValue']?_0xbe3509['forceValue']:!_0x2d0aad['value'];let _0x4401d2;_0xbe3509['language']||(_0xbe3509['language']=_0x108aa7[0x0]['language']),_0x4401d2=_0x46199b?Array['from'](_0x10bc1f['getSelectedBlocks']())['filter'](_0x2582bb=>eo(_0x2582bb)||function(_0x416dec,_0x99bfbe){if(_0x416dec['is']('rootElement')||_0x99bfbe['isLimit'](_0x416dec))return!0x1;return _0x99bfbe['checkChild'](_0x416dec['parent'],'codeBlock');}(_0x2582bb,_0x2474ae['schema'])):Array['from'](_0x10bc1f['getSelectedBlocks']())['filter'](_0x477bc6=>eo(_0x477bc6));const _0x30503b=to(_0x4401d2,_0x2474ae);_0x2474ae['change'](()=>{for(const _0x1ccc0b of _0x30503b)_0x3a1f28['markBlockFormat'](_0x1ccc0b,{'commandName':'codeBlock','commandParams':[{..._0xbe3509,'forceValue':_0x46199b}],'formatGroupId':'blockName'});});}),(_0x3a1f28['descriptionFactory']['registerElementLabel']('codeBlock',_0x6b3d2d=>c(_0x49c9bf,'ELEMENT_CODE_BLOCK',_0x6b3d2d)),_0x3a1f28['descriptionFactory']['registerDescriptionCallback'](_0x28a44b=>{if('formatBlock'!=_0x28a44b['type'])return;const _0x5a476a=_0x49c9bf['t'],{data:_0x414bc7}=_0x28a44b;if(!_0x414bc7||'codeBlock'!=_0x414bc7['commandName'])return;const _0x5af9dd=_0x414bc7['commandParams'][0x0]['language'],_0x1a7497=_0x5a476a(_0x108aa7['find'](_0x504c80=>_0x504c80['language']===_0x5af9dd)['label'])['toLowerCase']();return _0x414bc7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x49c9bf,'*Set\x20format:*\x20%0',c(_0x49c9bf,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1a7497+')')}:{'type':'format','content':c(_0x49c9bf,'*Remove\x20format:*\x20%0',c(_0x49c9bf,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2cfd4e){return'codeBlock'==_0x2cfd4e['name'];}class q extends _0x385d2b{['afterInit'](){const _0x18252b=this['editor'];if(!_0x18252b['plugins']['has']('CommentsEditing'))return;_0x18252b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x24ee29,_0x1b58ff,_0x43d3a6){const _0x4d00e9=[];for(const _0x35b8f9 of _0x1b58ff['getItems']())_0x35b8f9['hasAttribute'](_0x24ee29)&&_0x4d00e9['push'](_0x43d3a6['createRangeOn'](_0x35b8f9));return _0x4d00e9;}function Fe(_0x1cc868,_0x835458,{showActiveMarker:_0x588b96=!0x0}={}){const _0xbcfdd2=_0x1cc868['plugins']['get']('TrackChangesEditing');return(_0x5c2e6e,_0x125ff3,_0x4d69dc)=>{if(!_0x4d69dc['consumable']['test'](_0x125ff3['markerRange'],_0x5c2e6e['name']))return;const _0x94faa=_0x125ff3['markerRange']['getWalker'](),_0x579aee=_0x125ff3['markerRange']['start'],_0x57ed53=_0x1cc868['model']['schema'];let _0x568901=null,_0x5441c3=null,_0xb4c223=!0x1,_0x27dbbb=!0x1;for(const _0x556af2 of _0x94faa){const _0x317701=_0x556af2['item'];_0xb4c223=_0xb4c223||_0x57ed53['isContent'](_0x317701);const _0x1382ab=_0x4d69dc['mapper']['toViewElement'](_0x317701);if(_0x1382ab&&_0x1382ab['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x556af2['type']&&(_0x57ed53['isBlock'](_0x317701)&&!_0x57ed53['isLimit'](_0x317701)&&(_0x317701['nextSibling']||_0x579aee['isAtEnd']?_0x568901&&_0x568901['parent']==_0x317701||(_0x568901=_0x317701,_0x5b6b4f(_0x556af2['previousPosition']),_0x27dbbb=!0x0):_0x5441c3=_0x5441c3||_0x556af2['previousPosition']));}function _0x5b6b4f(_0x4233ee){const {id:_0x43a2f5,authorId:_0x860974}=_0xbcfdd2['_splitMarkerName'](_0x125ff3['markerName']),_0x164e93=_0x4d69dc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x835458,'data-suggestion':_0x43a2f5,'data-author-id':_0x860974}),_0x555b71=_0x4d69dc['mapper']['toViewPosition'](_0x4233ee);_0x588b96&&_0xbcfdd2['activeMarkers']['includes'](_0x125ff3['markerName'])&&_0x4d69dc['writer']['addClass']('ck-suggestion-marker--active',_0x164e93),_0x4d69dc['writer']['insert'](_0x555b71,_0x164e93),_0x4d69dc['mapper']['bindElementToMarker'](_0x164e93,_0x125ff3['markerName']);}_0xb4c223||_0x27dbbb||!_0x5441c3||_0x5b6b4f(_0x5441c3);};}class z extends _0x385d2b{static get['requires'](){return[_0x9d734f];}['init'](){const _0x4bb480=this['editor'],_0x370a80=_0x4bb480['plugins']['get']('TrackChangesEditing');_0x370a80['enableCommand']('delete');const _0x3520a2=_0x4bb480['commands']['get']('deleteForward');_0x370a80['enableCommand']('deleteForward',(_0x2f64e2,_0x36be89={})=>{const _0x3ed9c5=_0x4bb480['model']['createSelection'](_0x4bb480['model']['document']['selection']);_0x3ed9c5['isCollapsed']&&_0x4bb480['model']['modifySelection'](_0x3ed9c5,{'direction':'forward','unit':_0x36be89['unit']});const _0x1dd504=_0x3ed9c5['getFirstRange'](),_0x2c1291=_0x21cd14['fromRange'](_0x1dd504);let _0x484775;_0x2f64e2(_0x36be89),_0x484775='$graveyard'==_0x2c1291['root']['rootName']?_0x4bb480['model']['createRange'](_0x1dd504['start']):_0x4bb480['model']['createRange'](_0x2c1291['start'],_0x2c1291['end']),_0x2c1291['detach'](),_0x4bb480['model']['enqueueChange'](_0x3520a2['buffer']['batch'],_0x3dff33=>{_0x3520a2['buffer']['lock'](),_0x3dff33['setSelection'](_0x3dff33['createRange'](_0x484775['end'])),_0x3520a2['buffer']['unlock']();});}),_0x4bb480['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x4bb480,'merge'),{'priority':'high'}),_0x4bb480['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1ebd2d,_0x4af6d,_0x4a44e7)=>{_0x4a44e7['options']['showSuggestionHighlights']&&Fe(_0x4bb480,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1ebd2d,_0x4af6d,_0x4a44e7);},{'priority':'high'}),_0x4bb480['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x358223,_0x33371f,_0xc7281e)=>{const _0xc68350=_0xc7281e['mapper']['markerNameToElements'](_0x33371f['markerName']);if(_0xc68350){for(const _0x4bb075 of _0xc68350)_0x4bb075['is']('uiElement')&&(_0xc7281e['mapper']['unbindElementFromMarkerName'](_0x4bb075,_0x33371f['markerName']),_0xc7281e['writer']['remove'](_0x4bb075));}},{'priority':'high'});}}class W extends _0x385d2b{['afterInit'](){const _0x35a934=this['editor'];if(!_0x35a934['plugins']['has']('ListEditing'))return;const _0x231ecd=_0x35a934['locale'],_0x146b83=_0x35a934['plugins']['get']('TrackChangesEditing'),_0x223b78=_0x35a934['plugins']['has']('TodoListEditing'),_0x104a9f=!!_0x35a934['config']['get']('list.multiBlock');function _0x17afe7(_0x205de7){return{'type':'format','content':''+c(_0x231ecd,'*Set\x20format:*\x20%0',_0x205de7)};}function _0x404fcd(_0x30d859){return{'type':'format','content':''+c(_0x231ecd,'*Remove\x20format:*\x20%0',_0x30d859)};}_0x146b83['enableDefaultAttributesIntegration']('numberedList'),_0x146b83['enableDefaultAttributesIntegration']('bulletedList'),_0x146b83['enableDefaultAttributesIntegration']('customNumberedList'),_0x146b83['enableDefaultAttributesIntegration']('customBulletedList'),_0x146b83['enableDefaultAttributesIntegration']('indentList'),_0x146b83['enableDefaultAttributesIntegration']('outdentList'),_0x146b83['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x146b83['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x146b83['registerBlockAttribute']('listItemId'),_0x146b83['registerBlockAttribute']('listType'),_0x146b83['registerBlockAttribute']('listIndent'),_0x104a9f&&(_0x146b83['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x146b83['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x223b78&&(_0x146b83['enableDefaultAttributesIntegration']('todoList'),_0x146b83['enableDefaultAttributesIntegration']('checkTodoList'),_0x146b83['registerBlockAttribute']('todoListChecked'),_0x146b83['descriptionFactory']['registerDescriptionCallback'](_0x32d809=>{const {data:_0x5c5e82}=_0x32d809;if(_0x5c5e82&&'todoListChecked'==_0x5c5e82['key'])return{'type':'format','content':_0x5c5e82['newValue']?c(_0x231ecd,'*Check\x20item*'):c(_0x231ecd,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x54bf66=>{if(_0x54bf66['batch']['isUndo'])return!0x1;let _0x272bfc=!0x1;const _0x49d241=_0x146b83['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xec913d=>'todoListChecked'===_0x146b83['_getAttributeKey'](_0xec913d));for(const _0x5d4a0a of _0x49d241){'todo'!=_0x5d4a0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x146b83['_findSuggestions'](_0x5d4a0a['getFirstRange'](),'attribute')['find'](_0x4a2032=>'listType'===_0x146b83['_getAttributeKey'](_0x4a2032['suggestion']))||(_0x54bf66['removeMarker'](_0x5d4a0a['getFirstMarker']()),_0x272bfc=!0x0));}return _0x272bfc;})),_0x146b83['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x231ecd,'FORMAT_INDENT'));const _0x1c6ece={'type':'format','content':''};_0x146b83['descriptionFactory']['registerDescriptionCallback'](_0x4d6a73=>{const {data:_0x5a5f68}=_0x4d6a73;if(!_0x5a5f68||'listType'!=_0x5a5f68['key'])return;let _0x3bed9f=_0x4d6a73['head'];for(;_0x3bed9f;){if(_0x3bed9f['data']&&(('listStyle'==_0x3bed9f['data']['key']||'listMarkerStyle'==_0x3bed9f['data']['key'])&&(_0x3bed9f['data']['newValue']&&'default'!=_0x3bed9f['data']['newValue']||'default'!=_0x3bed9f['data']['oldValue']&&!_0x5a5f68['newValue'])||!_0x104a9f&&_0x3bed9f['data']['key']==u))return _0x1c6ece;_0x3bed9f=_0x3bed9f['next'];}if(null==_0x5a5f68['newValue'])switch(_0x5a5f68['oldValue']){case'bulleted':return _0x404fcd(c(_0x231ecd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x404fcd(c(_0x231ecd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x404fcd(c(_0x231ecd,'ELEMENT_TODO_LIST'));}switch(_0x5a5f68['newValue']){case'bulleted':return _0x17afe7(c(_0x231ecd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x17afe7(c(_0x231ecd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x17afe7(c(_0x231ecd,'ELEMENT_TODO_LIST'));}}),_0x146b83['descriptionFactory']['registerDescriptionCallback'](_0x308259=>{const {data:_0x153323}=_0x308259;if(_0x153323&&'listIndent'==_0x153323['key'])return null==_0x153323['newValue']||null==_0x153323['oldValue']&&0x0==_0x153323['newValue']?_0x1c6ece:void 0x0;}),_0x146b83['descriptionFactory']['registerDescriptionCallback'](_0x559a66=>{if('attribute'!=_0x559a66['type'])return;const {data:_0x57e3db}=_0x559a66;if(!_0x57e3db||'listItemId'!=_0x57e3db['key'])return;const _0x482935=Te(_0x559a66);return'newValue'==_0x482935?{'type':'format','content':c(_0x231ecd,'*Merge:*\x20list\x20item')}:'oldValue'==_0x482935?{'type':'format','content':c(_0x231ecd,'*Split:*\x20list\x20item')}:_0x1c6ece;}),_0x35a934['model']['document']['registerPostFixer'](_0x307199=>this['listItemIdFixer'](_0x307199)),_0x35a934['model']['document']['registerPostFixer'](_0x343d00=>this['noTrackChangesFixer'](_0x343d00)),_0x35a934['model']['document']['on']('change:data',(_0x5f5e0f,_0x3ae53c)=>{if(_0x3ae53c['isUndo']||!_0x3ae53c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x207f1f){if(_0x207f1f['batch']['isUndo']||!_0x207f1f['batch']['isLocal'])return!0x1;let _0x184924=!0x1;const _0x4c0317=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xea9bf1=>_0xea9bf1['data']&&'listItemId'==_0xea9bf1['data']['key'])['filter'](_0x50cfc9=>_0x50cfc9['data']['newValue']&&_0x50cfc9['data']['oldValue']);for(const _0x33204b of _0x4c0317)Te(_0x33204b)||(_0x207f1f['removeMarker'](_0x33204b['getFirstMarker']()),_0x184924=!0x0);return _0x184924;}['noTrackChangesFixer'](_0x1b64ba){if(_0x1b64ba['batch']['isUndo']||!_0x1b64ba['batch']['isLocal'])return!0x1;const _0x8f88b9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x8f88b9['trackChangesCommand']['value'])return!0x1;let _0x3ee775=!0x1;const _0x528843=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x55911b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x45d4e6=>'attribute'==_0x45d4e6['type'])['filter'](_0x367f47=>_0x528843['includes'](_0x367f47['attributeKey']));if(0x0==_0x55911b['length'])return _0x3ee775;for(const _0x720b47 of _0x55911b){const _0x4f9cb1=_0x8f88b9['_findSuggestions'](_0x720b47['range'],'attribute')['filter'](_0x1ae5b0=>!_0x1ae5b0['meta']['isNextTo'])['map'](_0x4d5906=>_0x4d5906['suggestion'])['filter'](_0x2a9167=>{const _0x3419da=_0x8f88b9['_getAttributeKey'](_0x2a9167);return _0x528843['includes'](_0x3419da);});if(_0x4f9cb1['length']){for(const _0x11f138 of _0x4f9cb1)_0x1b64ba['removeMarker'](_0x11f138['getFirstMarker']());_0x3ee775=!0x0;}}return _0x3ee775;}['assureChains'](){const _0x5801a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ac4a0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1a7329;const _0x5573b8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x296a7f=>{if(_0x296a7f['data']['oldRange']||!_0x296a7f['data']['newRange'])return null;if(!_0x296a7f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xcd79fe}=_0x5801a1['_splitMarkerName'](_0x296a7f['name']);if(!_0x5801a1['hasSuggestion'](_0xcd79fe))return null;const _0x1b158d=_0x5801a1['getSuggestion'](_0xcd79fe);return _0x5ac4a0['includes'](_0x1b158d['data']['key']);})['map'](_0x2c00b1=>{const {id:_0x570414}=_0x5801a1['_splitMarkerName'](_0x2c00b1['name']),_0x2c2ad3=_0x5801a1['getSuggestion'](_0x570414);return _0x1a7329=_0x2c2ad3['attributes']['groupId'],_0x2c2ad3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5573b8['size'])return;const _0x483a0b=_0x5801a1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe3ca2c=>'attribute'==_0xe3ca2c['type']&&_0xe3ca2c['data']&&_0x5ac4a0['includes'](_0xe3ca2c['data']['key'])&&_0xe3ca2c['attributes']['groupId']!=_0x1a7329)['map'](_0xd0493b=>({'listItem':_0xd0493b['getFirstRange']()['start']['nodeAfter'],'groupId':_0xd0493b['attributes']['groupId']})),_0x142f26=new Set();for(const {groupId:_0x41ec91,listItem:_0xadce90}of _0x483a0b)_0x5573b8['has'](_0xadce90)&&_0x142f26['add'](_0x41ec91);for(const _0x4ec6e3 of _0x5801a1['getSuggestions']())_0x142f26['has'](_0x4ec6e3['attributes']['groupId'])&&_0x4ec6e3['setAttribute']('groupId',_0x1a7329);}['_supportLegacySuggestions'](){const _0x27fffb=this['editor'],_0x4901fb=_0x27fffb['locale'],_0x3ba1c9=_0x27fffb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3ba1c9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x50157c,_0xad123){const _0x112e31=[];for(let _0x44ff77 of _0x50157c)_0x44ff77['start']['nodeAfter']===_0x44ff77['end']['parent']&&(_0x44ff77=_0x27fffb['model']['createRange'](_0x27fffb['model']['createPositionAt'](_0x44ff77['start']['nodeAfter'],0x0))),_0x112e31['push'](_0x44ff77);_0x27fffb['model']['change'](_0x432853=>{const _0x4d9578=_0x27fffb['model']['document']['selection'],_0x24dad5=Array['from'](_0x4d9578['getRanges']())['map'](_0x41c96a=>_0x21cd14['fromRange'](_0x41c96a));_0x432853['setSelection'](_0x112e31),_0x27fffb['commands']['get'](_0xad123['commandName'])['refresh'](),_0xad123['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x27fffb['execute'](_0xad123['commandName'],..._0xad123['commandParams']),_0x432853['setSelection'](_0x24dad5);for(const _0x2d9de6 of _0x24dad5)_0x2d9de6['detach']();});}),_0x3ba1c9['descriptionFactory']['registerElementLabel'](function(_0x435fbb){const _0x28aeac=!_0x27fffb['model']['schema']['isObject'](_0x435fbb),_0x56bdaf=_0x435fbb['previousSibling'],_0x3bf43d=_0x435fbb['nextSibling'],_0x4b4120=_0x435fbb['getAttribute']('listItemId'),_0x37bb4b=!_0x56bdaf||_0x56bdaf['getAttribute']('listItemId')!==_0x4b4120,_0x5ac8d3=!_0x3bf43d||_0x3bf43d['getAttribute']('listItemId')!==_0x4b4120;return _0x28aeac&&Boolean(_0x4b4120)&&_0x37bb4b&&_0x5ac8d3;},_0x407d41=>c(_0x4901fb,'ELEMENT_LIST_ITEM',_0x407d41));}['_registerLegacyDescription'](){const _0x46e425=this['editor'],_0x624503=_0x46e425['locale'];function _0xf2c837(_0x58bb1a){const _0x5abe25=_0x46e425['commands']['get']('bulletedList')['value'],_0x341807=_0x46e425['commands']['get']('numberedList')['value'];return'numberedList'===_0x58bb1a?_0x5abe25:_0x341807;}_0x46e425['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xeff8cc){if('formatBlock'!=_0xeff8cc['type'])return;const {data:_0x19d108}=_0xeff8cc;if(!_0x19d108)return;let _0x19a7f0,_0x564966,_0x2de07a,_0x5bc672;switch(_0x19d108['commandName']){case'bulletedList':_0x2de07a=_0x19d108['commandParams'][0x0]['forceValue'],_0x5bc672=_0xf2c837(_0x19d108['commandName']),_0x19a7f0=_0x2de07a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bc672&&_0x46e425['config']['get']('list.multiBlock')||(_0x19a7f0='*Change\x20to:*\x20%0'),_0x564966={'type':'format','content':c(_0x624503,_0x19a7f0,c(_0x624503,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2de07a=_0x19d108['commandParams'][0x0]['forceValue'],_0x5bc672=_0xf2c837(_0x19d108['commandName']),_0x19a7f0=_0x2de07a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bc672&&_0x46e425['config']['get']('list.multiBlock')||(_0x19a7f0='*Change\x20to:*\x20%0'),_0x564966={'type':'format','content':c(_0x624503,_0x19a7f0,c(_0x624503,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x19a7f0='*Indent:*\x20%0',_0x564966={'type':'format','content':c(_0x624503,_0x19a7f0,c(_0x624503,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x19a7f0=function(_0xa5ae23){const _0x1b47bb=_0xa5ae23['getFirstRange']();let _0x3ac6d6=_0x1b47bb['start']['nodeAfter'];for(;_0x3ac6d6&&_0x1b47bb['containsItem'](_0x3ac6d6);){if(_0x3ac6d6['getAttribute']('listIndent')>0x0)return!0x1;_0x3ac6d6=_0x3ac6d6['nextSibling'];}return!0x0;}(_0xeff8cc)?c(_0x624503,'*Format:*\x20remove\x20from\x20%0',c(_0x624503,function(_0x5d9693){return'ELEMENT_'+_0x5d9693['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xeff8cc))):c(_0x624503,'*Outdent:*\x20%0',c(_0x624503,'ELEMENT_LIST_ITEM')),_0x564966={'type':'format','content':_0x19a7f0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x19d108['multipleBlocks']&&(_0x19a7f0='*Merge:*\x20%0',_0x564966={'type':'deletion','content':c(_0x624503,_0x19a7f0,c(_0x624503,'ELEMENT_LIST_ITEM'))});}return _0x564966;});}}function Te(_0x327fbe){let _0x3ba91d=_0x327fbe['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3ba91d;){const _0x4f1705=_0x3ba91d['getAttribute']('listItemId');if(!_0x4f1705)return!0x1;if(_0x4f1705==_0x327fbe['data']['newValue'])return'newValue';if(_0x4f1705==_0x327fbe['data']['oldValue'])return'oldValue';_0x3ba91d=_0x3ba91d['previousSibling'];}return!0x1;}class Se extends _0x385d2b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3817c2=this['editor']['config']['get']('list.properties'),_0x2ae1f6=this['editor']['plugins']['get']('TrackChangesEditing');_0x3817c2['styles']&&(_0x2ae1f6['enableDefaultAttributesIntegration']('listStyle'),_0x2ae1f6['registerBlockAttribute']('listStyle')),_0x3817c2['reversed']&&(_0x2ae1f6['enableDefaultAttributesIntegration']('listReversed'),_0x2ae1f6['registerBlockAttribute']('listReversed')),_0x3817c2['startIndex']&&(_0x2ae1f6['enableDefaultAttributesIntegration']('listStart'),_0x2ae1f6['registerBlockAttribute']('listStart'));const _0x116853={'type':'format','content':''};_0x2ae1f6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3d6de2=this['editor']['locale'];_0x2ae1f6['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3d6de2,'FORMAT_LIST_REVERSED')),_0x2ae1f6['descriptionFactory']['registerDescriptionCallback'](_0x565941=>{const {data:_0x1c5d49}=_0x565941;if(_0x1c5d49&&'listReversed'==_0x1c5d49['key'])return null==_0x1c5d49['newValue']||0x0==_0x1c5d49['newValue']&&null==_0x1c5d49['oldValue']?_0x116853:void 0x0;}),_0x2ae1f6['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3d6de2,'FORMAT_LIST_START')),_0x2ae1f6['descriptionFactory']['registerDescriptionCallback'](_0x1415c3=>{const {data:_0x58f9d9}=_0x1415c3;if(_0x58f9d9&&'listStart'==_0x58f9d9['key'])return null==_0x58f9d9['newValue']||0x1==_0x58f9d9['newValue']&&null==_0x58f9d9['oldValue']?_0x116853:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5ea73e=>{if(_0x5ea73e['batch']['isUndo'])return!0x1;let _0x5c2ddb=!0x1;const _0x541349=_0x2ae1f6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xde92a7=>{const _0x4a660b=_0x2ae1f6['_getAttributeKey'](_0xde92a7);return'listStart'==_0x4a660b||'listReversed'==_0x4a660b;});for(const _0x52d4f9 of _0x541349){const _0x31b0c2=_0x52d4f9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x31b0c2||'customNumbered'==_0x31b0c2)continue;_0x2ae1f6['_findSuggestions'](_0x52d4f9['getFirstRange'](),'attribute')['find'](_0x3298e6=>'listType'==_0x2ae1f6['_getAttributeKey'](_0x3298e6['suggestion']))||(_0x5ea73e['removeMarker'](_0x52d4f9['getFirstMarker']()),_0x5c2ddb=!0x0);}return _0x5c2ddb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1208df){const _0xb5634e=this['editor']['locale'],{data:_0x2b2847}=_0x1208df,_0x3b3fbc={'type':'format','content':''};if(!_0x2b2847||'listStyle'!=_0x2b2847['key'])return;if(!_0x2b2847['oldValue'])return'default'==_0x2b2847['newValue']?_0x3b3fbc:{'type':'format','content':''+c(_0xb5634e,'*Set\x20format:*\x20%0',c(_0xb5634e,this['_getTranslationKeyForListStyle'](_0x2b2847['newValue'])))};if(!_0x2b2847['newValue']){if('default'==_0x2b2847['oldValue'])return _0x3b3fbc;let _0x5d3e7c=_0x1208df['head'];for(;_0x5d3e7c;){if(_0x5d3e7c['data']&&'listType'==_0x5d3e7c['data']['key']&&_0x5d3e7c['data']['newValue'])return _0x3b3fbc;_0x5d3e7c=_0x5d3e7c['next'];}return{'type':'format','content':''+c(_0xb5634e,'*Remove\x20format:*\x20%0',c(_0xb5634e,this['_getTranslationKeyForListStyle'](_0x2b2847['oldValue'])))};}if('default'!=_0x2b2847['newValue'])return{'type':'format','content':''+c(_0xb5634e,'*Set\x20format:*\x20%0',c(_0xb5634e,this['_getTranslationKeyForListStyle'](_0x2b2847['newValue'])))};let _0x44aa3f=_0x1208df['head'];for(;_0x44aa3f;){if(_0x44aa3f['data']&&'listType'==_0x44aa3f['data']['key']&&_0x44aa3f['data']['newValue']&&_0x44aa3f['data']['oldValue'])return _0x3b3fbc;_0x44aa3f=_0x44aa3f['next'];}return{'type':'format','content':c(_0xb5634e,'*Set\x20format:*\x20%0',c(_0xb5634e,'ELEMENT_'+_0x1208df['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xce070b=this['editor'],_0x515fb2=_0xce070b['locale'];_0xce070b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37a580=>{if('formatBlock'!=_0x37a580['type'])return;const {data:_0x3c5084}=_0x37a580;if(!_0x3c5084)return;let _0x2dba66,_0x1766c0;switch(_0x3c5084['commandName']){case'listStyle':_0x2dba66='*Change\x20to:*\x20%0',_0x1766c0={'type':'format','content':c(_0x515fb2,_0x2dba66,c(_0x515fb2,this['_getTranslationKeyForListStyle'](_0x3c5084['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2dba66=_0x3c5084['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1766c0={'type':'format','content':c(_0x515fb2,_0x2dba66)};break;case'listStart':_0x2dba66='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1766c0={'type':'format','content':c(_0x515fb2,_0x2dba66,_0x3c5084['commandParams'][0x0]['startIndex'])};}return _0x1766c0;});}['_getTranslationKeyForListStyle'](_0x216ac){return'ELEMENT_'+function(_0x132614){if(_e['includes'](_0x132614))return'bulleted';if(Re['includes'](_0x132614))return'numbered';return null;}(_0x216ac)['toUpperCase']()+'_LIST_'+_0x216ac['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x385d2b{['afterInit'](){const _0x2b28d6=this['editor'];_0x2b28d6['commands']['get']('emoji')&&_0x2b28d6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x385d2b{static get['requires'](){return[_0x4dd6b6];}['init'](){const _0x364a1c=this['editor'],_0x161424=_0x364a1c['plugins']['get']('TrackChangesEditing'),_0x318df2=_0x364a1c['commands']['get']('enter');_0x161424['enableCommand']('enter',()=>{_0x364a1c['model']['change'](_0x1697f2=>{const _0xb4acbc=_0x364a1c['model']['document']['selection'],_0x55912b=_0xb4acbc['getFirstPosition'](),_0x4eea00=_0x21cd14['fromRange'](_0xb4acbc['getFirstRange']());if(_0x318df2['enterBlock'](_0x1697f2)){const _0x1cb9e6=_0x364a1c['model']['createPositionAt'](_0x55912b['parent']['nextSibling'],0x0),_0x4b4fb4=_0x1697f2['createRange'](_0x55912b,_0x1cb9e6);_0x161424['markInsertion'](_0x4b4fb4);}else _0x1697f2['setSelection'](_0x1697f2['createRange'](_0x4eea00['end']));_0x4eea00['detach'](),_0x318df2['fire']('afterExecute',{'writer':_0x1697f2});});}),_0x364a1c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x364a1c,'split'),{'priority':'high'}),_0x364a1c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x43b13e,_0x52fcf2,_0x3ccda3)=>{const _0x524b2a=_0x3ccda3['mapper']['markerNameToElements'](_0x52fcf2['markerName']);if(_0x524b2a){for(const _0x56e6b7 of _0x524b2a)_0x56e6b7['hasClass']('ck-suggestion-marker-split')&&(_0x3ccda3['mapper']['unbindElementFromMarkerName'](_0x56e6b7,_0x52fcf2['markerName']),_0x3ccda3['writer']['remove'](_0x56e6b7));}},{'priority':'high'}),_0x364a1c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3f5215,_0x4a0412,_0x2a8f54)=>{_0x2a8f54['options']['showSuggestionHighlights']&&Fe(_0x364a1c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3f5215,_0x4a0412,_0x2a8f54);},{'priority':'high'});}}class Z extends _0x385d2b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x56bd98=this['editor']['plugins']['get']('TrackChangesEditing');_0x56bd98['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x56bd98['enableCommand']('findNext'),_0x56bd98['enableCommand']('findPrevious'),_0x56bd98['enableCommand']('replace'),_0x56bd98['enableCommand']('replaceAll');}['handleFindCommand'](_0x59b426,_0x2852b4,_0x43aed2={}){const _0x44638d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x59b426(_0x537997=>{let _0x1aa752=('string'==typeof _0x2852b4?_0x44638d['findByTextCallback'](_0x2852b4,_0x43aed2):_0x2852b4)(_0x537997);Array['isArray'](_0x1aa752)&&(_0x1aa752={'results':_0x1aa752,'searchText':'string'==typeof _0x2852b4?_0x2852b4:''});const _0x5f2847=_0x1aa752['results']['filter'](_0x1181c2=>!0x1===this['_isInDeletionRange'](_0x1181c2,_0x537997['item']));return{..._0x1aa752,'results':_0x5f2847};},_0x43aed2);}['_isInDeletionRange'](_0x2762cc,_0xa67eea){const _0x14aaef=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa67eea,_0x2762cc['start']),this['editor']['model']['createPositionAt'](_0xa67eea,_0x2762cc['end']));for(const _0x45ec0b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x14aaef['getIntersection'](_0x45ec0b['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x385d2b{['afterInit'](){const _0x2387db=this['editor']['locale'],_0x2b378a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x49c7ad,commandName:_0x199929}of ro)this['editor']['plugins']['has'](_0x49c7ad)&&(_0x2b378a['enableDefaultAttributesIntegration'](_0x199929),_0x2b378a['registerInlineAttribute'](_0x199929));_0x2b378a['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x2387db,'FORMAT_FONT_SIZE')),_0x2b378a['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x2387db,'FORMAT_FONT_FAMILY')),_0x2b378a['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x2387db,'FORMAT_FONT_COLOR')),_0x2b378a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x2387db,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21b4a=this['editor'],_0x2842ba=_0x21b4a['locale'];_0x21b4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13feca=>{const _0x5814d1=_0x2842ba['t'];if('formatInline'!=_0x13feca['type'])return;const {data:_0x1be631}=_0x13feca;if(null!=_0x1be631){if('fontSize'==_0x1be631['commandName']){const _0x29a38b=_0x1be631['commandParams'][0x0]['value'];if(_0x29a38b){const _0x21515e=_0x5814d1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1c8a29=>_0x1c8a29['model']==_0x29a38b)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2842ba,'*Set\x20font\x20size:*\x20%0',_0x21515e)};}return{'type':'format','content':c(_0x2842ba,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1be631['commandName']){const _0x41ec8a=_0x1be631['commandParams'][0x0]['value'];return _0x41ec8a?{'type':'format','content':c(_0x2842ba,'*Set\x20font\x20family:*\x20%0',_0x41ec8a)}:{'type':'format','content':c(_0x2842ba,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1be631['commandName']){const _0xb9b4e5=_0x1be631['commandParams'][0x0]['value'];if(_0xb9b4e5){const _0x3c19b2=_0x1c7a9d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5f5a49=>_0x5f5a49['model']==_0xb9b4e5);let _0xb30c51=_0xb9b4e5,_0x5c3ada='';return _0x3c19b2&&(_0xb30c51=_0x3c19b2['label'],_0x5c3ada=_0x5814d1(_0xb30c51)['toLowerCase']()),{'type':'format','content':c(_0x2842ba,'*Set\x20font\x20color:*\x20%0',_0x5c3ada)['trim'](),'color':{'value':_0xb9b4e5,'title':_0x5c3ada||_0xb30c51}};}return{'type':'format','content':c(_0x2842ba,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1be631['commandName']){const _0x579314=_0x1be631['commandParams'][0x0]['value'];if(_0x579314){const _0x294896=_0x1c7a9d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x42d136=>_0x42d136['model']==_0x579314);let _0x1e8209=_0x579314,_0x4c823e='';return _0x294896&&(_0x1e8209=_0x294896['label'],_0x4c823e=_0x5814d1(_0x1e8209)['toLowerCase']()),{'type':'format','content':c(_0x2842ba,'*Set\x20font\x20background\x20color:*\x20%0',_0x4c823e)['trim'](),'color':{'value':_0x579314,'title':_0x4c823e||_0x1e8209}};}return{'type':'format','content':c(_0x2842ba,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x385d2b{['afterInit'](){const _0x26f97e=this['editor'],_0x53c997=_0x26f97e['plugins']['get']('TrackChangesEditing'),_0x4ca13d=_0x26f97e['commands']['get']('copyFormat'),_0x1eba66=_0x26f97e['commands']['get']('pasteFormat');_0x4ca13d&&_0x1eba66&&(_0x53c997['enableDefaultAttributesIntegration']('pasteFormat'),_0x53c997['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x443011=this['editor'],_0x2f8d1d=_0x443011['locale'];_0x443011['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x300052=>{if('formatBlock'!=_0x300052['type']&&'formatInline'!=_0x300052['type'])return;const {data:_0x3b2a6f}=_0x300052;if(_0x3b2a6f&&'pasteFormat'===_0x3b2a6f['commandName']){const _0x1151b4=[],_0xcb4d91=_0x3b2a6f['commandParams'][0x0];for(const [_0x3498b6,_0x52bb5d]of Object['entries'](_0xcb4d91))_0x1151b4['push'](so(_0x443011,_0x3498b6,_0x52bb5d));return _0x1151b4['length']?{'type':'format','content':c(_0x2f8d1d,'*Set\x20format\x20to:*\x20%0',_0x1151b4['join'](',\x20'))}:{'type':'format','content':c(_0x2f8d1d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2804b5,_0x4c49f5,_0xca5e45){const _0x5b5ba7=_0x2804b5['locale']['t'],_0x2d15a7=_0x4c49f5['split'](/(?=[A-Z])/)['join']('\x20'),_0x28c0bb=_0x5b5ba7(_0x2d15a7['charAt'](0x0)['toUpperCase']()+_0x2d15a7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xca5e45)return _0x28c0bb;if('fontColor'===_0x4c49f5||'fontBackgroundColor'===_0x4c49f5){const _0x5b23a5=_0x1c7a9d(_0x2804b5['config']['get']('fontColor.colors'))['find'](_0x54915b=>_0x54915b['model']==_0xca5e45);return _0x28c0bb+'\x20('+(_0x5b23a5?_0x5b5ba7(_0x5b23a5['label'])['toLowerCase']():_0xca5e45)+')';}if('fontSize'===_0x4c49f5&&isNaN(parseFloat(_0xca5e45))){const _0x38b8ca=_0x2804b5['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2804b5['config']['get']('fontSize.options'))['find'](_0x39462a=>_0x39462a['model']==_0xca5e45);return _0x28c0bb+'\x20('+(_0x38b8ca?_0x5b5ba7(_0x38b8ca['title'])['toLowerCase']():_0xca5e45)+')';}return _0x28c0bb+'\x20('+_0xca5e45+')';}class et extends _0x385d2b{['_headingOptions'];['afterInit'](){const _0x24f685=this['editor'];if(!_0x24f685['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x24f685['config']['get']('heading.options');const _0x248baa=_0x24f685['locale'],_0x166495=_0x24f685['plugins']['get']('TrackChangesEditing');_0x166495['enableDefaultAttributesIntegration']('heading');for(const _0xdfe596 of this['_headingOptions'])'paragraph'!=_0xdfe596['model']&&_0x166495['descriptionFactory']['registerElementLabel'](_0xdfe596['model'],_0x2abefb=>{const _0x463f2c=this['_getHeadingLevel'](_0xdfe596['model']);return null!==_0x463f2c?_0x1dbeca(_0x2abefb,_0x463f2c):_0x62096e(_0x2abefb,_0xdfe596['title']);});function _0x1dbeca(_0x6dbd3,_0x36ee38){return c(_0x248baa,'ELEMENT_HEADING',[_0x6dbd3,_0x36ee38]);}function _0x62096e(_0x5c2198,_0x467951){return c(_0x248baa,'ELEMENT_HEADING_CUSTOM',[_0x5c2198,_0x467951]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x358fec=this['editor'],_0x3faf94=_0x358fec['locale'];function _0xf3b69d(_0x51c6f8,_0x12c952){return c(_0x3faf94,'ELEMENT_HEADING_CUSTOM',[_0x51c6f8,_0x12c952]);}_0x358fec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b493d=>{if('formatBlock'!=_0x2b493d['type'])return;const {data:_0x8679d1}=_0x2b493d;if(_0x8679d1&&'heading'==_0x8679d1['commandName']){const _0x51eeab=_0x8679d1['commandParams'][0x0]['value'],_0x5c7ca7=this['_getHeadingLevel'](_0x51eeab);if(null!==_0x5c7ca7)return{'type':'format','content':c(_0x3faf94,'*Change\x20to:*\x20%0',(_0x2c04bd=0x1,_0x2f5b02=_0x5c7ca7,c(_0x3faf94,'ELEMENT_HEADING',[_0x2c04bd,_0x2f5b02])))};const _0x385c96=this['_headingOptions']['find'](_0xf1f1=>_0xf1f1['model']===_0x51eeab)['title'];return{'type':'format','content':c(_0x3faf94,'*Change\x20to:*\x20%0',_0xf3b69d(0x1,_0x385c96))};}var _0x2c04bd,_0x2f5b02;});}['_getHeadingLevel'](_0x2db57c){const _0x2a9369=_0x2db57c['match'](/^heading(\d+)/);if(_0x2a9369)return _0x2a9369[0x1];const _0x79720d=this['_headingOptions']?.['find'](_0x55dd93=>_0x55dd93['model']==_0x2db57c);if(_0x79720d&&_0x79720d['view']){const _0xa3a62d=_0x79720d['view'],_0x5c8165=(_0xa3a62d['name']??_0xa3a62d)['match'](/^h(\d+)/);if(_0x5c8165)return _0x5c8165[0x1];}return null;}}class nt extends _0x385d2b{['afterInit'](){const _0x2fde54=this['editor'];if(!_0x2fde54['plugins']['has']('HighlightEditing'))return;const _0xa0275d=_0x2fde54['plugins']['get']('TrackChangesEditing'),_0x1cbd61=_0x2fde54['locale'];_0xa0275d['enableDefaultAttributesIntegration']('highlight'),_0xa0275d['registerInlineAttribute']('highlight'),_0xa0275d['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1cbd61,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24f3cb=this['editor'],_0x305f14=_0x24f3cb['locale'];_0x24f3cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x346bae=>{if('formatInline'!=_0x346bae['type'])return;const {data:_0x3b7307}=_0x346bae;if(_0x3b7307&&'highlight'==_0x3b7307['commandName']){const _0x186d1a=_0x305f14['t'],_0x4803a2=_0x3b7307['commandParams'][0x0]['value'];if(_0x4803a2){const _0x29d7f5=_0x24f3cb['config']['get']('highlight.options')['find'](_0x5bcf2b=>_0x5bcf2b['model']==_0x4803a2),_0x153b7=_0x186d1a(_0x29d7f5['title'])['toLowerCase']();return{'type':'format','content':c(_0x305f14,'*Set\x20highlight:*\x20%0',_0x153b7),'color':{'value':_0x29d7f5['color'],'title':_0x29d7f5['title']}};}return{'type':'format','content':c(_0x305f14,'*Remove\x20highlight*',c(_0x305f14,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x385d2b{['afterInit'](){const _0x3f58e7=this['editor'];if(!_0x3f58e7['plugins']['has']('HorizontalLineEditing'))return;_0x3f58e7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x52c7f9=_0x3f58e7['plugins']['get']('TrackChangesEditing'),_0x2311eb=_0x3f58e7['locale'];_0x52c7f9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1d7338=>c(_0x2311eb,'ELEMENT_HORIZONTAL_LINE',_0x1d7338)),_0x3f58e7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x47c6fd,{writer:_0x580987,options:_0x2d2a80})=>{if(!_0x2d2a80['showSuggestionHighlights'])return null;const _0x524daf=_0x580987['createContainerElement']('div'),_0x3a6523=_0x580987['createEmptyElement']('hr');return _0x580987['addClass']('ck-horizontal-line',_0x524daf),_0x580987['insert'](_0x580987['createPositionAt'](_0x524daf,0x0),_0x3a6523),_0x524daf;},'converterPriority':'high'});}}class ot extends _0x385d2b{['afterInit'](){const _0x1bfbb9=this['editor'];if(!_0x1bfbb9['plugins']['has']('HtmlEmbed'))return;const _0x52fdc6=_0x1bfbb9['plugins']['get']('TrackChangesEditing'),_0x1687ff=_0x1bfbb9['locale'];_0x52fdc6['descriptionFactory']['registerElementLabel']('rawHtml',_0x14170a=>c(_0x1687ff,'ELEMENT_HTML_EMBED',_0x14170a)),_0x52fdc6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x52fdc6['registerBlockAttribute']('value'),_0x52fdc6['descriptionFactory']['registerDescriptionCallback'](_0x4557ed=>{if('attribute'!=_0x4557ed['type'])return;const {data:_0x3b52c4}=_0x4557ed;if(_0x3b52c4&&'value'==_0x3b52c4['key']&&_0x4557ed['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1b94be=c(_0x1687ff,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1687ff,'*Change\x20%0\x20content*',_0x1b94be)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d84a4=this['editor'],_0x53981f=_0x4d84a4['locale'];_0x4d84a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25b7fe=>{if('formatBlock'!=_0x25b7fe['type'])return;const {data:_0x3d291d}=_0x25b7fe;if(_0x3d291d&&'htmlEmbed'==_0x3d291d['commandName']){const _0xe88bac=c(_0x53981f,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x53981f,'*Change\x20%0\x20content*',_0xe88bac)};}});}}class rt extends _0x385d2b{['afterInit'](){const _0x35764b=this['editor'];if(!_0x35764b['plugins']['has']('ImageEditing'))return;const _0x1359bb=_0x35764b['plugins']['get']('TrackChangesEditing'),_0x510494=_0x35764b['plugins']['get']('ImageUtils'),_0x5b1499=_0x35764b['locale'];_0x1359bb['enableCommand']('insertImage'),_0x1359bb['descriptionFactory']['registerElementLabel']('imageBlock',_0x1e0a98=>c(_0x5b1499,'ELEMENT_IMAGE',_0x1e0a98)),_0x1359bb['descriptionFactory']['registerElementLabel']('imageInline',_0x6169c1=>c(_0x5b1499,'ELEMENT_INLINE_IMAGE',_0x6169c1)),_0x1359bb['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x5b1499,'ELEMENT_CAPTION')),_0x35764b['plugins']['has']('ImageUploadEditing')&&_0x1359bb['enableCommand']('uploadImage'),_0x35764b['plugins']['has']('ImageBlockEditing')&&_0x35764b['plugins']['has']('ImageInlineEditing')&&(_0x1359bb['enableCommand']('imageTypeInline',(_0xee0527,_0xd8bb2b)=>{const _0x3a1a17=_0x510494['getClosestSelectedImageElement'](_0x35764b['model']['document']['selection']);_0x35764b['model']['change'](()=>{_0x1359bb['markBlockFormat'](_0x3a1a17,{'commandName':'imageTypeInline','commandParams':[_0xd8bb2b]},[],'convertBlockImageToInline');});}),_0x1359bb['enableCommand']('imageTypeBlock',(_0x2c69dc,_0x30c2b9)=>{_0x35764b['model']['change'](_0x207c56=>{let _0xfa681f=_0x510494['getClosestSelectedImageElement'](_0x35764b['model']['document']['selection']),_0x2e7908=_0x207c56['createRangeOn'](_0xfa681f);const _0x1e5cb6=_0x3fff8c['fromPosition'](_0x2e7908['start'],'toPrevious'),_0x148c13=_0x3fff8c['fromPosition'](_0x2e7908['end'],'toNext');_0x1359bb['forceDefaultExecution'](()=>_0x2c69dc(_0x30c2b9)),_0xfa681f=_0x510494['getClosestSelectedImageElement'](_0x35764b['model']['document']['selection']),_0x2e7908=_0x207c56['createRangeOn'](_0xfa681f);const _0x1567b7=_0x207c56['createRange'](_0x1e5cb6,_0x148c13);_0x1e5cb6['detach'](),_0x148c13['detach'](),_0x1359bb['markBlockFormat'](_0xfa681f,{'commandName':'imageTypeInline','commandParams':[_0x30c2b9]},[],'convertInlineImageToBlock'),_0x1567b7['start']['isBefore'](_0x2e7908['start'])&&_0x1359bb['markInsertion'](_0x207c56['createRange'](_0x1567b7['start'],_0x2e7908['start']),'convertInlineImageToBlock'),_0x2e7908['end']['isBefore'](_0x1567b7['end'])&&_0x1359bb['markInsertion'](_0x207c56['createRange'](_0x2e7908['end'],_0x1567b7['end']),'convertInlineImageToBlock');});}),_0x1359bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1359bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1359bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1359bb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1359bb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1359bb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x52a106])=>{const _0x26315f=_0x1359bb['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x9cba52=_0x52a106['start'],_0x3d6b67=_0x52a106['end'];const _0x49482c=_0x35764b['model']['schema']['getNearestSelectionRange'](_0x9cba52,'backward'),_0x4077e2=_0x35764b['model']['schema']['getNearestSelectionRange'](_0x3d6b67,'forward');_0x49482c['isCollapsed']&&(_0x9cba52=_0x49482c['start']),_0x4077e2['isCollapsed']&&(_0x3d6b67=_0x4077e2['end']),_0x26315f([_0x35764b['model']['createRange'](_0x9cba52,_0x3d6b67)]);}),_0x1359bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x50d21a),_0x1359bb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x50d21a)),_0x35764b['plugins']['has']('ImageCaptionEditing')&&(_0x1359bb['enableCommand']('toggleImageCaption',(_0x3c2347,_0x59b004)=>{const _0x1ab09d=_0x35764b['plugins']['get']('ImageCaptionUtils');let _0x4638f8=_0x510494['getClosestSelectedImageElement'](_0x35764b['model']['document']['selection']),_0x18bb7a=_0x1ab09d['getCaptionFromImageModelElement'](_0x4638f8);_0x35764b['model']['change'](()=>{if(_0x18bb7a)return void _0x1359bb['markDeletion'](_0x35764b['model']['createRangeOn'](_0x18bb7a));const _0x274e16=_0x510494['isBlockImage'](_0x4638f8);_0x3c2347(_0x59b004),_0x4638f8=_0x510494['getClosestSelectedImageElement'](_0x35764b['model']['document']['selection']),_0x18bb7a=_0x1ab09d['getCaptionFromImageModelElement'](_0x4638f8),_0x1359bb['markInsertion'](_0x35764b['model']['createRangeOn'](_0x18bb7a),_0x274e16?null:'imageCaption');});}),_0x1359bb['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x50d21a));const _0x55c4c4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x58d39f(_0x3720e3,_0x44d1b3){const _0x59821d=_0x55c4c4['findIndex'](({type:_0x15b7bb,subType:_0xdbc420})=>_0x3720e3['type']==_0x15b7bb&&_0x3720e3['subType']==_0xdbc420),_0x47ccc4=_0x55c4c4['findIndex'](({type:_0x113e32,subType:_0x471363})=>_0x44d1b3['type']==_0x113e32&&_0x44d1b3['subType']==_0x471363);if(_0x59821d<0x0||_0x47ccc4<0x0)return!0x1;const _0x6983f4=_0x3720e3['getFirstRange'](),_0x4933fc=_0x44d1b3['getFirstRange']();if((0x0==_0x59821d||0x1==_0x59821d)&&0x2==_0x47ccc4&&_0x6983f4['isIntersecting'](_0x4933fc))return!0x0;if(0x2==_0x59821d&&0x3==_0x47ccc4){const _0x129098=_0x1359bb['_findSuggestions'](_0x6983f4,'insertion')['filter'](({suggestion:_0x54a22d,meta:_0x26a7ff})=>_0x26a7ff['isOwn']&&'convertInlineImageToBlock'==_0x54a22d['subType']);if(_0x129098['length']>0x1&&_0x4933fc['end']['isEqual'](_0x6983f4['start']))return!0x0;if(0x1==_0x129098['length']&&(_0x6983f4['start']['isEqual'](_0x4933fc['end'])||_0x6983f4['end']['isEqual'](_0x4933fc['start'])))return!0x0;}if(0x3==_0x59821d&&0x3==_0x47ccc4&&_0x6983f4['start']['isBefore'](_0x4933fc['start'])){const _0x9a6eb9=_0x6983f4['end']['nodeAfter'],_0x3c4a1e=_0x4933fc['start']['nodeBefore'];return _0x510494['isBlockImage'](_0x9a6eb9)&&_0x9a6eb9===_0x3c4a1e;}return!0x1;}function _0x50d21a(_0x443036,_0x50c9c4){return _0x58d39f(_0x443036,_0x50c9c4)?[_0x443036,_0x50c9c4]:_0x58d39f(_0x50c9c4,_0x443036)?[_0x50c9c4,_0x443036]:null;}_0x35764b['plugins']['has']('ImageResize')&&(_0x1359bb['enableDefaultAttributesIntegration']('resizeImage'),_0x1359bb['registerBlockAttribute']('resizedWidth'),_0x1359bb['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x5b1499,'FORMAT_IMAGE_SIZE'))),_0x35764b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1359bb['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1359bb['registerBlockAttribute']('alt')),_0x35764b['plugins']['has']('PictureEditing')&&(_0x1359bb['registerBlockAttribute']('sources'),_0x1359bb['descriptionFactory']['registerDescriptionCallback'](_0x1d8ada=>{if('attribute'!=_0x1d8ada['type'])return;const {data:_0x30189a}=_0x1d8ada;return _0x30189a&&'sources'==_0x30189a['key']?{'type':'format','content':''}:void 0x0;})),_0x35764b['plugins']['has']('ImageSizeAttributes')&&(_0x1359bb['registerBlockAttribute']('width'),_0x1359bb['registerBlockAttribute']('height'),_0x1359bb['descriptionFactory']['registerDescriptionCallback'](_0x1c7a52=>{if('attribute'!=_0x1c7a52['type'])return;const {data:_0x319739}=_0x1c7a52;return!_0x319739||'width'!=_0x319739['key']&&'height'!=_0x319739['key']?void 0x0:{'type':'format','content':''};})),_0x1359bb['descriptionFactory']['registerDescriptionCallback'](_0x28b633=>{if(!!_0x55c4c4['find'](({type:_0x420f7f,subType:_0x3ce651})=>_0x28b633['type']==_0x420f7f&&_0x28b633['subType']==_0x3ce651))return _0x28b633['previous']?{}:void 0x0;}),_0x1359bb['descriptionFactory']['registerDescriptionCallback'](_0xdd041a=>{if('insertion'==_0xdd041a['type']||'deletion'==_0xdd041a['type']){const _0x4d36c3=_0xdd041a['getContainedElement']();if(_0x4d36c3&&_0x4d36c3['is']('element','caption'))return{'type':'insertion'==_0xdd041a['type']?'addObject':'removeObject','element':_0x4d36c3,'quantity':0x1};}}),_0x1359bb['descriptionFactory']['registerDescriptionCallback'](_0x44a909=>'formatBlock'==_0x44a909['type']&&'convertInlineImageToBlock'==_0x44a909['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x44a909['type']&&'convertBlockImageToInline'==_0x44a909['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1359bb['descriptionFactory']['registerDescriptionCallback'](_0x24b5b4=>{if('attribute'!=_0x24b5b4['type'])return;const {data:_0x18df60}=_0x24b5b4;if(!_0x18df60||'alt'!=_0x18df60['key'])return;const _0x41e634=_0x18df60['newValue'];return _0x41e634?{'type':'format','content':c(_0x5b1499,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x41e634+'\x22')}:{'type':'format','content':c(_0x5b1499,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f6c85=this['editor'],_0x13ffad=_0x3f6c85['locale'];_0x3f6c85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5201ca=>{if('formatBlock'!=_0x5201ca['type']&&'formatInline'!=_0x5201ca['type'])return;const {data:_0x2dbe31}=_0x5201ca;if(_0x2dbe31){if('imageTextAlternative'==_0x2dbe31['commandName']){const _0x2fa379=_0x2dbe31['commandParams'][0x0]['newValue'];return _0x2fa379?{'type':'format','content':c(_0x13ffad,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2fa379+'\x22')}:{'type':'format','content':c(_0x13ffad,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2dbe31['commandName']){const _0x4e0dec=_0x2dbe31['commandParams'][0x0]['width'];return _0x4e0dec?{'type':'format','content':c(_0x13ffad,'*Set\x20image\x20width:*\x20%0',_0x4e0dec)}:{'type':'format','content':c(_0x13ffad,'*Reset\x20image\x20width*')};}}});}}class at extends _0x385d2b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5aead6=this['editor']['locale'],_0x3b8f19=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b8f19['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3b8f19['registerBlockAttribute']('src'),_0x3b8f19['descriptionFactory']['registerDescriptionCallback'](_0xc39498=>{if('attribute'!=_0xc39498['type'])return;const {data:_0x16368a}=_0xc39498;return _0x16368a&&'src'==_0x16368a['key']?_0x16368a['newValue']&&_0x16368a['oldValue']?{'type':'format','content':c(_0x5aead6,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x107109=this['editor']['plugins']['get']('TrackChangesEditing');_0x107109['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x107109['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x107109['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x107109['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5da4a7=this['editor'],_0x270641=_0x5da4a7['locale'];_0x5da4a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cc49c=>{if('formatBlock'!=_0x4cc49c['type']&&'formatInline'!=_0x4cc49c['type'])return;const {data:_0x5147f0}=_0x4cc49c;if(!_0x5147f0||'replaceImageSource'!=_0x5147f0['commandName'])return;return{'type':'format','content':c(_0x270641,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x385d2b{['afterInit'](){const _0x3cff01=this['editor'];if(!_0x3cff01['plugins']['has']('ImageStyleEditing'))return;const _0x46d95d=_0x3cff01['plugins']['get']('TrackChangesEditing'),_0x4f22e7=_0x3cff01['plugins']['get']('ImageUtils'),_0x411b39={};_0x46d95d['enableCommand']('imageStyle',(_0x204f5c,_0x1cdd52)=>{const _0x1f1c6c=_0x3cff01['plugins']['get']('Users')['me'],_0x54d5d9=_0x3cff01['commands']['get']('imageStyle');let _0x14f755=_0x4f22e7['getClosestSelectedImageElement'](_0x3cff01['model']['document']['selection']),_0x88d815=_0x3cff01['model']['createRangeOn'](_0x14f755),_0x336408=_0x54d5d9['value'];if(_0x336408==_0x1cdd52['value'])return;const _0x379505={'commandName':'imageStyle','commandParams':[_0x1cdd52],'formatGroupId':_0x38a072()};_0x3cff01['model']['change'](()=>{if(_0x46d95d['getSuggestions']()['filter'](_0x5cd469=>_0x5cd469['isInContent']&&_0x1f1c6c==_0x5cd469['author']&&('formatBlock'==_0x5cd469['type']||'formatInline'==_0x5cd469['type'])&&('imageStylePreApply'==_0x5cd469['subType']||'imageStylePostApply'==_0x5cd469['subType'])&&_0x5cd469['getFirstRange']()['isEqual'](_0x88d815))['forEach'](_0x448eed=>_0x46d95d['discardSuggestion'](_0x448eed['head'])),_0x14f755=_0x4f22e7['getClosestSelectedImageElement'](_0x3cff01['model']['document']['selection']),_0x88d815=_0x3cff01['model']['createRangeOn'](_0x14f755),_0x54d5d9['refresh'](),_0x3cff01['commands']['get']('imageTypeInline')['refresh'](),_0x3cff01['commands']['get']('imageTypeBlock')['refresh'](),_0x336408=_0x54d5d9['value'],_0x336408!=_0x1cdd52['value'])return _0x4f22e7['isInlineImage'](_0x14f755)&&_0x54d5d9['shouldConvertImageType'](_0x1cdd52['value'],_0x14f755)?(_0x204f5c({..._0x1cdd52,'setImageSizes':!0x1}),_0x14f755=_0x4f22e7['getClosestSelectedImageElement'](_0x3cff01['model']['document']['selection']),void _0x46d95d['markBlockFormat'](_0x14f755,{..._0x379505,'commandReversedParams':[{'value':_0x336408||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4f22e7['isBlockImage'](_0x14f755)?_0x46d95d['markBlockFormat'](_0x14f755,_0x379505,[],'imageStylePostApply'):_0x46d95d['markInlineFormat'](_0x88d815,_0x379505,'imageStylePostApply'));});});for(const _0x9c8d03 of _0x3cff01['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x411b39[_0x9c8d03['name']]=_0x9c8d03['title']['toLowerCase']();_0x46d95d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x46d95d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x46d95d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x46d95d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x261997])=>{_0x4f22e7['setImageNaturalSizeAttributes'](_0x261997['getContainedElement']());}),_0x46d95d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xbf9bb1,_0x1dc72a)=>{_0x46d95d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xbf9bb1,{'commandName':_0x1dc72a['commandName'],'commandParams':_0x1dc72a['commandReversedParams']});}),_0x46d95d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x35f364,_0x12d8c4){if(_0x319edd(_0x35f364,_0x12d8c4))return[_0x35f364,_0x12d8c4];if(_0x319edd(_0x12d8c4,_0x35f364))return[_0x12d8c4,_0x35f364];return null;});const _0x159f70=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x319edd(_0x10f600,_0x5a4ca9){const _0x4d5f12=_0x159f70['findIndex'](({type:_0x3b01d9,subType:_0xd9beb9})=>_0x10f600['type']==_0x3b01d9&&_0x10f600['subType']==_0xd9beb9),_0x3cd5bc=_0x159f70['findIndex'](({type:_0x484dfb,subType:_0x59e048})=>_0x5a4ca9['type']==_0x484dfb&&_0x5a4ca9['subType']==_0x59e048);if(_0x4d5f12<0x0||_0x3cd5bc<0x0)return!0x1;const _0x7a9cda=_0x10f600['getFirstRange'](),_0x2cf412=_0x5a4ca9['getFirstRange']();if((0x0==_0x4d5f12||0x1==_0x4d5f12)&&0x2==_0x3cd5bc&&_0x7a9cda['isIntersecting'](_0x2cf412))return!0x0;if(0x2==_0x4d5f12&&0x3==_0x3cd5bc){const _0xbf1366=_0x46d95d['_findSuggestions'](_0x7a9cda,'insertion')['filter'](({suggestion:_0x6a01bc,meta:_0x3ab363})=>_0x3ab363['isOwn']&&'convertInlineImageToBlock'==_0x6a01bc['subType']);if(_0xbf1366['length']>0x1&&_0x2cf412['end']['isEqual'](_0x7a9cda['start']))return!0x0;if(0x1==_0xbf1366['length']&&(_0x7a9cda['start']['isEqual'](_0x2cf412['end'])||_0x7a9cda['end']['isEqual'](_0x2cf412['start'])))return!0x0;}if(0x3==_0x4d5f12&&0x3==_0x3cd5bc&&_0x7a9cda['start']['isBefore'](_0x2cf412['start'])){const _0x36a0a2=_0x7a9cda['end']['nodeAfter'],_0x11d797=_0x2cf412['start']['nodeBefore'];return _0x4f22e7['isBlockImage'](_0x36a0a2)&&_0x36a0a2===_0x11d797;}return!0x1;}_0x3cff01['model']['document']['registerPostFixer'](()=>{let _0x4ae678=!0x1;const _0x1c35ef=Array['from'](_0x3cff01['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf9bc96,data:_0xcf4a14}of _0x1c35ef){const {group:_0x1745f4,type:_0x2de523,subType:_0x184a6c,id:_0x37d116}=_0x46d95d['_splitMarkerName'](_0xf9bc96);if('suggestion'==_0x1745f4&&_0x46d95d['hasSuggestion'](_0x37d116)){if('formatBlock'==_0x2de523&&('imageStylePreApply'==_0x184a6c||'imageStylePostApply'==_0x184a6c)){const _0x11f6bc=_0x46d95d['getSuggestion'](_0x37d116);if(_0xcf4a14['newRange']){const _0x114ba2=_0x11f6bc['getFirstRange']()['getContainedElement']();if(_0x4f22e7['isBlockImage'](_0x114ba2))continue;_0x46d95d['discardSuggestion'](_0x11f6bc),_0x4ae678=!0x0;}}if('insertion'==_0x2de523&&'imageCaption'==_0x184a6c&&!_0xcf4a14['newRange']){const _0x4fe032=_0x46d95d['getSuggestion'](_0x37d116);_0x4fe032['next']&&_0x4fe032['next']['isInContent']&&(_0x46d95d['discardSuggestion'](_0x4fe032['next']),_0x4ae678=!0x0);}}}return _0x4ae678;}),this['_registerLegacyDescription'](_0x411b39);}['_registerLegacyDescription'](_0x14e9b2){const _0x59fbd6=this['editor'],_0x464fc2=_0x59fbd6['locale'];_0x59fbd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7fc160=>{if('formatBlock'!=_0x7fc160['type']&&'formatInline'!=_0x7fc160['type'])return;const {data:_0x4b752}=_0x7fc160;if(!_0x4b752||'imageStyle'!=_0x4b752['commandName'])return;const _0x1ff953=_0x4b752['commandParams'][0x0]['value'];return _0x3e3b43('side'===_0x1ff953?c(_0x464fc2,'FORMAT_SIDE_IMAGE'):_0x14e9b2[_0x1ff953]||_0x1ff953);function _0x3e3b43(_0x24fa4a){return{'type':'format','content':c(_0x464fc2,'*Format:*\x20%0',_0x24fa4a)};}});}}class ut extends _0x385d2b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x34f577){super(_0x34f577),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2402e1=this['editor'],_0x123a45=_0x2402e1['commands']['get']('importWord'),_0xebafa1=_0x2402e1['commands']['get']('trackChanges');_0x123a45&&(_0x123a45['on']('execute',(_0x1e5d97,[,_0x19101e])=>{this['_trackChangesValueDuringImport']=_0xebafa1['value'],_0x19101e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x123a45,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x123a45,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xebafa1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2402e1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1f8e98,_0x2f0606){const {suggestions:_0x2cd47e}=_0x2f0606,_0x6d0319=this['editor']['commands']['get']('trackChanges'),_0x53d3b5=_0x6d0319['value'];this['_trackChangesValueDuringImport']!==_0x53d3b5&&(_0x6d0319['execute'](),this['_trackChangesExecuted']=!0x0),_0x2cd47e&&_0x2cd47e['forEach'](({id:_0x2a50d6,type:_0x3caf0e,author:_0xf1bf94,created_at:_0x4d2bb7})=>{const _0x47f484={'id':_0x2a50d6,'type':_0x3caf0e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xf1bf94,'createdAt':_0x4d2bb7?new Date(_0x4d2bb7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x47f484);});}}class ft extends _0x385d2b{['afterInit'](){const _0x50c14d=this['editor'],_0x17da70=_0x50c14d['plugins']['get']('TrackChangesEditing');if(_0x50c14d['plugins']['has']('IndentEditing')&&(_0x17da70['enableCommand']('indent'),_0x17da70['enableCommand']('outdent')),_0x50c14d['plugins']['has']('IndentBlock')){for(const _0x50d2fc of['indentBlock','outdentBlock'])_0x17da70['enableDefaultAttributesIntegration'](_0x50d2fc);}const _0x56c68c=_0x50c14d['locale'];_0x17da70['registerBlockAttribute']('blockIndent'),_0x17da70['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x56c68c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3679e8=this['editor'],_0x5c7e04=_0x3679e8['locale'],_0x40cfa2=_0x3679e8['plugins']['get']('TrackChangesEditing');_0x40cfa2['descriptionFactory']['registerDescriptionCallback'](_0x48b7ea=>{if('formatBlock'!=_0x48b7ea['type'])return;const {data:_0x3b3cc1}=_0x48b7ea;if(!_0x3b3cc1)return;if('indentBlock'!=_0x3b3cc1['commandName']&&'outdentBlock'!=_0x3b3cc1['commandName'])return;const _0x50fa0b=_0x48b7ea['getItems']()[0x0],_0x5d68ef=_0x40cfa2['descriptionFactory']['getItemLabel'](_0x50fa0b);return'indentBlock'==_0x3b3cc1['commandName']?{'type':'format','content':c(_0x5c7e04,'*Indent:*\x20%0',_0x5d68ef)}:'outdentBlock'==_0x3b3cc1['commandName']?{'type':'format','content':c(_0x5c7e04,'*Outdent:*\x20%0',_0x5d68ef)}:void 0x0;});}}class ht extends _0x385d2b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x385d2b{['afterInit'](){const _0x4a0b96=this['editor'];if(!_0x4a0b96['plugins']['has']('LinkEditing'))return;const _0x2cf079=_0x4a0b96['plugins']['get']('TrackChangesEditing'),_0x530d3c=_0x4a0b96['commands']['get']('link');_0x2cf079['enableDefaultAttributesIntegration']('link'),_0x2cf079['enableDefaultAttributesIntegration']('unlink'),_0x2cf079['registerInlineAttribute']('linkHref');for(const _0x2c46d4 of _0x530d3c['manualDecorators'])_0x2cf079['registerInlineAttribute'](_0x2c46d4['id']),_0x2cf079['descriptionFactory']['registerAttributeLabel'](_0x2c46d4['id'],'link\x20('+_0x2c46d4['label']['toLowerCase']()+')');_0x2cf079['descriptionFactory']['registerDescriptionCallback'](_0x5939c4=>{if('attribute'!=_0x5939c4['type'])return;const {data:_0x1dab47}=_0x5939c4;if(!_0x1dab47||'linkHref'!=_0x1dab47['key'])return;const _0x628322=_0x1dab47['newValue'],_0x36f7b5=_0x4a0b96['locale'];return{'type':'format','content':null==_0x628322?c(_0x36f7b5,'*Remove\x20link*'):c(_0x36f7b5,'*Set\x20link:*\x20%0','\x22'+_0x628322+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x580098=this['editor'],_0xb47622=_0x580098['locale'];_0x580098['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c1ce5=>{if('formatInline'!=_0x2c1ce5['type'])return;const {data:_0x2e4899}=_0x2c1ce5;if(_0x2e4899){if('link'==_0x2e4899['commandName']){const _0x3715a8=_0x2e4899['commandParams'][0x0];return{'type':'format','content':c(_0xb47622,'*Set\x20link:*\x20%0','\x22'+_0x3715a8+'\x22')};}return'unlink'==_0x2e4899['commandName']?{'type':'format','content':c(_0xb47622,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x385d2b{['afterInit'](){const _0x35377f=this['editor'],_0x5d46fa=_0x35377f['locale'];if(!_0x35377f['plugins']['has']('LegacyListEditing'))return;const _0x5d7187=_0x35377f['plugins']['get']('TrackChangesEditing'),_0x3a1dec=_0x35377f['plugins']['has']('LegacyTodoListEditing');function _0x318d2e(_0x1caa12){return()=>{const _0x220191=_0x35377f['model']['document']['selection'],_0x3cccfa=_0x35377f['commands']['get'](_0x1caa12);if(_0x3cccfa['value'])return void _0x35377f['execute']('paragraph',{});const _0xc55a1e=_0x1caa12['slice'](0x0,-0x4),_0x3eb7a9=function(_0x19018b,_0x1d894d,_0x1714fe){let _0x4b1442=Array['from'](_0x19018b)['filter'](_0x2f1af9=>function(_0x2b1a69,_0x3ea17d){return _0x3ea17d['checkChild'](_0x2b1a69['parent'],'listItem')&&!_0x3ea17d['isObject'](_0x2b1a69);}(_0x2f1af9,_0x1714fe));_0x4b1442=_0x4b1442['filter'](_0xb85661=>!_0xb85661['is']('element','listItem')||_0xb85661['getAttribute']('listType')!=_0x1d894d);const _0x554c57=new Set();for(const _0x324ea5 of _0x4b1442)_0x324ea5['is']('element','listItem')?_0x554c57['add'](Le(_0x324ea5)):_0x554c57['add'](_0x324ea5);return Array['from'](_0x554c57);}(_0x220191['getSelectedBlocks'](),_0xc55a1e,_0x35377f['model']['schema']);_0x35377f['model']['change'](()=>{for(const _0x451d2d of _0x3eb7a9)_0x5d7187['markBlockFormat'](_0x451d2d,{'commandName':_0x1caa12,'commandParams':[{'forceValue':!_0x3cccfa['value']}],'formatGroupId':'blockName'},Ee(_0x451d2d));});};}function _0x11bb35(_0x4dcf93){return()=>{const _0x5b934b=function(_0x267b6c){let _0x403d4f=Array['from'](_0x267b6c);const _0x48def5=_0x403d4f['findIndex'](_0x1aa2d8=>'listItem'!=_0x1aa2d8['name']);return _0x48def5>-0x1&&(_0x403d4f=_0x403d4f['slice'](0x0,_0x48def5)),_0x403d4f;}(_0x35377f['model']['document']['selection']['getSelectedBlocks']()),_0x1e3eb3=_0x35377f['model']['createRange'](_0x35377f['model']['createPositionAt'](_0x5b934b[0x0],'before'),_0x35377f['model']['createPositionAt'](_0x5b934b[_0x5b934b['length']-0x1],'end'));_0x35377f['model']['change'](()=>{_0x5d7187['markBlockFormat'](_0x1e3eb3,{'commandName':_0x4dcf93,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5800de){const _0x45cea2=new Set();for(const _0x46c526 of _0x5800de){let _0x401a6c=_0x46c526['nextSibling'];for(;_0x401a6c&&_0x401a6c['getAttribute']('listIndent')>_0x46c526['getAttribute']('listIndent');)_0x45cea2['add'](_0x401a6c),_0x401a6c=_0x401a6c['nextSibling'];}return Array['from'](_0x45cea2);}(_0x5b934b));});};}_0x5d7187['enableCommand']('numberedList',_0x318d2e('numberedList')),_0x5d7187['enableCommand']('bulletedList',_0x318d2e('bulletedList')),_0x3a1dec&&_0x5d7187['enableCommand']('todoList',_0x318d2e('todoList')),_0x5d7187['enableCommand']('indentList',_0x11bb35('indentList')),_0x5d7187['enableCommand']('outdentList',_0x11bb35('outdentList')),_0x3a1dec&&_0x5d7187['enableCommand']('checkTodoList',()=>{const _0x4a87ea=_0x35377f['commands']['get']('checkTodoList'),_0x3f9663=Array['from'](_0x4a87ea['_selectedElements']);_0x3f9663['filter'](_0x2bbd55=>_0x2bbd55['getAttribute']('todoListChecked')!=_0x4a87ea['value']),_0x35377f['model']['change'](()=>{for(const _0x3e59bc of _0x3f9663)_0x5d7187['markBlockFormat'](_0x3e59bc,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4a87ea['value']}]});});}),_0x5d7187['descriptionFactory']['registerElementLabel']('listItem',_0x588aae=>c(_0x5d46fa,'ELEMENT_LIST_ITEM',_0x588aae)),_0x5d7187['descriptionFactory']['registerDescriptionCallback'](_0x1c8304=>{if('formatBlock'!=_0x1c8304['type']&&'formatInline'!=_0x1c8304['type'])return;const {data:_0x5745dd}=_0x1c8304;if(_0x5745dd){if('numberedList'==_0x5745dd['commandName']||'bulletedList'==_0x5745dd['commandName']||'todoList'==_0x5745dd['commandName'])switch(_0x5745dd['commandName']['replace']('List','')){case'bulleted':return _0x384eff(c(_0x5d46fa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x384eff(c(_0x5d46fa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x384eff(c(_0x5d46fa,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5745dd['commandName'])return{'type':'format','content':c(_0x5d46fa,'*Indent:*\x20%0',c(_0x5d46fa,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5745dd['commandName'])return{'type':'format','content':c(_0x5d46fa,'*Outdent:*\x20%0',c(_0x5d46fa,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5745dd['commandName'])return _0x5745dd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5d46fa,'*Check\x20item*')}:{'type':'format','content':c(_0x5d46fa,'*Uncheck\x20item*')};}function _0x384eff(_0x1137aa){return{'type':'format','content':c(_0x5d46fa,'*Change\x20to:*\x20%0',_0x1137aa)};}});}}function Le(_0x1cb9dd){const _0x24785b=_0x1cb9dd['getAttribute']('listIndent');if(0x0==_0x24785b)return _0x1cb9dd;let _0x4c9137=_0x1cb9dd;for(;_0x1cb9dd['previousSibling']&&_0x1cb9dd['previousSibling']['is']('element','listItem');){const _0x2981a0=_0x1cb9dd['previousSibling']['getAttribute']('listIndent');if(_0x2981a0==_0x24785b)_0x4c9137=_0x1cb9dd['previousSibling'];else{if(_0x2981a0<_0x24785b)break;}_0x1cb9dd=_0x1cb9dd['previousSibling'];}return _0x4c9137;}function Ee(_0x545c84){const _0x187da0=[];if(_0x545c84['is']('element','listItem')&&_0x545c84['getAttribute']('listIndent')>0x0){let _0x3ef164=_0x545c84['nextSibling'];for(;_0x3ef164&&'listItem'==_0x3ef164['name']&&_0x3ef164['getAttribute']('listIndent')==_0x545c84['getAttribute']('listIndent');)_0x187da0['push'](_0x3ef164),_0x3ef164=_0x3ef164['nextSibling'];}return _0x187da0;}class Q extends _0x385d2b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xc7fa96=this['editor']['config']['get']('list.properties'),_0x4197b0=this['editor']['plugins']['get']('TrackChangesEditing');_0xc7fa96['styles']&&_0x4197b0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xc7fa96['reversed']&&_0x4197b0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xc7fa96['startIndex']&&_0x4197b0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4197b0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x70056a,_0x283b50={}){const _0x17bc82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c7da0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x17bc82['markMultiRangeBlockFormat'](_0x5c7da0,{'commandName':'listStyle','commandParams':[{'type':_0x283b50['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x15f197,_0x538206={}){const _0x2610d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd7949b=this['_getSuggestionBlocks'](_0x58ad02=>_0x58ad02['is']('element','listItem')&&'numbered'===_0x58ad02['getAttribute']('listType'));if(_0xd7949b['length']<0x1)return;const _0x186bc5=_0xd7949b['map'](_0x31d087=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31d087,'before'),this['editor']['model']['createPositionAt'](_0x31d087,0x0)));this['editor']['model']['change'](()=>{_0x2610d5['markMultiRangeBlockFormat'](_0x186bc5,{'commandName':'listReversed','commandParams':[{'reversed':_0x538206['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x532a80,_0x51860a={}){const _0x4e6b41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e05fb=this['_getSuggestionBlocks'](_0x422546=>_0x422546['is']('element','listItem')&&'numbered'===_0x422546['getAttribute']('listType'));if(_0x3e05fb['length']<0x1)return;const _0x6ab488=_0x3e05fb['map'](_0x5db33b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5db33b,'before'),this['editor']['model']['createPositionAt'](_0x5db33b,0x0)));this['editor']['model']['change'](()=>{_0x4e6b41['markMultiRangeBlockFormat'](_0x6ab488,{'commandName':'listStart','commandParams':[{'startIndex':_0x51860a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4e28bd){if('formatBlock'!=_0x4e28bd['type']&&'formatInline'!=_0x4e28bd['type'])return;const _0x19196d=this['editor']['locale'],{data:_0x47064a}=_0x4e28bd;if(!_0x47064a)return;let _0x547b45,_0x203a24;switch(_0x47064a['commandName']){case'listStyle':_0x547b45='*Change\x20to:*\x20%0',_0x203a24={'type':'format','content':c(_0x19196d,_0x547b45,c(_0x19196d,this['_getTranslationKeyForListStyle'](_0x47064a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x547b45=_0x47064a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x203a24={'type':'format','content':c(_0x19196d,_0x547b45)};break;case'listStart':_0x547b45='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x203a24={'type':'format','content':c(_0x19196d,_0x547b45,_0x47064a['commandParams'][0x0]['startIndex'])};}return _0x203a24;}['_getSuggestionBlocksForListStyle'](){const _0x376bd5=this['editor']['plugins']['get']('LegacyListUtils');let _0x2aad20=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2aad20[0x0]?.['is']('element','listItem')&&_0x2aad20['unshift'](..._0x376bd5['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2aad20[_0x2aad20['length']-0x1]?.['is']('element','listItem')&&_0x2aad20['push'](..._0x376bd5['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2aad20=[...new Set(_0x2aad20)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2aad20=_0x2aad20['filter'](_0xdad2f2=>_0xdad2f2['is']('element','listItem'))),_0x2aad20;}['_getSuggestionBlocks'](_0x38e4d7){const _0x3e7dd7=this['editor']['plugins']['get']('LegacyListUtils');let _0x111b7f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x38e4d7)['map'](_0x296254=>{const _0x5b7037=this['editor']['model']['createPositionAt'](_0x296254,0x0);return[..._0x3e7dd7['getSiblingNodes'](_0x5b7037,'backward'),..._0x3e7dd7['getSiblingNodes'](_0x5b7037,'forward')];})['flat']();return _0x111b7f=[...new Set(_0x111b7f)],_0x111b7f;}['_getTranslationKeyForListStyle'](_0x5450f5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5450f5)||'default')['toUpperCase']()+'_LIST_'+_0x5450f5['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x385d2b{['afterInit'](){const _0x4ef3b0=this['editor'];if(!_0x4ef3b0['plugins']['has']('MediaEmbedEditing'))return;const _0x49c7de=_0x4ef3b0['plugins']['get']('TrackChangesEditing'),_0x26855e=_0x4ef3b0['locale'];_0x49c7de['enableCommand']('mediaEmbed'),_0x49c7de['descriptionFactory']['registerElementLabel']('media',_0x425606=>c(_0x26855e,'ELEMENT_MEDIA',_0x425606)),_0x4ef3b0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3ce2b4,{writer:_0x5b50c3,options:_0x2e0df3})=>{if(_0x2e0df3['showSuggestionHighlights'])return _0x5b50c3['createEmptyElement']('div');},'converterPriority':'high'}),_0x4ef3b0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5cbf95,_0x535cec,_0xd35e8d)=>{_0xd35e8d['options']['showSuggestionHighlights']&&_0x5cbf95['stop']();},{'priority':'high'});}}class pt extends _0x385d2b{['afterInit'](){const _0x2c0bab=this['editor'];_0x2c0bab['plugins']['has']('MentionEditing')&&_0x2c0bab['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x385d2b{['afterInit'](){const _0x4d6ce7=this['editor'];if(!_0x4d6ce7['plugins']['has']('MergeFieldsEditing'))return;const _0x2683af=_0x4d6ce7['plugins']['get']('TrackChangesEditing'),_0xbb640=_0x4d6ce7['locale'];_0x2683af['enableCommand']('insertMergeField'),_0x2683af['enableCommand']('insertMergeFieldBlock'),_0x2683af['enableCommand']('insertMergeFieldImage'),_0x2683af['descriptionFactory']['registerElementLabel']('mergeField',_0x2ffdfc=>c(_0xbb640,'ELEMENT_MERGE_FIELD',_0x2ffdfc)),_0x2683af['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x48ba44=>c(_0xbb640,'ELEMENT_MERGE_FIELD',_0x48ba44)),_0x2683af['descriptionFactory']['registerDescriptionCallback'](_0x5855fc=>{if('insertion'!=_0x5855fc['type']&&'deletion'!=_0x5855fc['type'])return;const _0x6a15a3=_0x5855fc['getContainedElement']();if(null==_0x6a15a3)return;const _0xda3591=_0x4d6ce7['plugins']['get']('MergeFieldsEditing');let _0x3d0975;switch(_0xda3591['getMergeFieldType'](_0x6a15a3)){case null:return;case'image':{const _0x47c5b7=_0xda3591['unwrapAffixes'](_0x6a15a3['getAttribute']('src'));_0x3d0975=_0xda3591['getLabel'](_0x47c5b7)||_0x47c5b7;break;}default:{const _0x37c649=_0x6a15a3['getAttribute']('id');_0x3d0975=_0xda3591['getLabel'](_0x37c649)||_0x37c649;break;}}return'insertion'==_0x5855fc['type']?{'type':'insertion','content':c(_0xbb640,'*Insert:*\x20%0','\x22'+_0x3d0975+'\x22\x20'+c(_0xbb640,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xbb640,'*Remove:*\x20%0','\x22'+_0x3d0975+'\x22\x20'+c(_0xbb640,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x385d2b{['afterInit'](){const _0x55c7f4=this['editor'],_0x35e428=_0x55c7f4['plugins']['get']('TrackChangesEditing');_0x55c7f4['plugins']['has']('MultiLevelList')&&(_0x35e428['enableDefaultAttributesIntegration']('multiLevelList'),_0x35e428['registerBlockAttribute']('listMarkerStyle'),_0x35e428['descriptionFactory']['registerDescriptionCallback'](_0x3b43eb=>this['handleDescriptions'](_0x3b43eb)));}['handleDescriptions'](_0x166ce3){const _0x5d9ab9=this['editor']['locale'],{data:_0x5b051f}=_0x166ce3,_0x4d0a72={'type':'format','content':''};if(_0x5b051f&&'listMarkerStyle'==_0x5b051f['key']){if(!_0x5b051f['oldValue'])return{'type':'format','content':c(_0x5d9ab9,'*Set\x20format:*\x20%0',c(_0x5d9ab9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b051f['newValue']+')'};if(!_0x5b051f['newValue']){let _0x333e8e=_0x166ce3['head'];for(;_0x333e8e;){if(_0x333e8e['data']&&'listType'==_0x333e8e['data']['key']&&_0x333e8e['data']['newValue'])return _0x4d0a72;_0x333e8e=_0x333e8e['next'];}return{'type':'format','content':c(_0x5d9ab9,'*Remove\x20format:*\x20%0',c(_0x5d9ab9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b051f['oldValue']+')'};}}}}class bt extends _0x385d2b{['afterInit'](){const _0x408a7c=this['editor'];if(!_0x408a7c['plugins']['has']('PageBreakEditing'))return;_0x408a7c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x23f534=_0x408a7c['plugins']['get']('TrackChangesEditing'),_0x580ba0=_0x408a7c['locale'];_0x23f534['descriptionFactory']['registerElementLabel']('pageBreak',_0x573ac3=>c(_0x580ba0,'ELEMENT_PAGE_BREAK',_0x573ac3));}}class yt extends _0x385d2b{['afterInit'](){const _0x16ee9d=this['editor'];if(!_0x16ee9d['plugins']['has']('Paragraph'))return;const _0x3ef5fd=_0x16ee9d['locale'],_0x244118=_0x16ee9d['plugins']['get']('TrackChangesEditing');_0x244118['descriptionFactory']['registerElementLabel']('paragraph',_0x233cc0=>c(_0x3ef5fd,'ELEMENT_PARAGRAPH',_0x233cc0)),_0x244118['enableDefaultAttributesIntegration']('paragraph'),_0x244118['enableCommand']('insertParagraph'),_0x16ee9d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x16ee9d),{'priority':'highest'}),_0x16ee9d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x23802c,_0x414119,_0x497535)=>{_0x497535['options']['showSuggestionHighlights']&&nr(_0x16ee9d,{'showActiveMarker':!0x1})(_0x23802c,_0x414119,_0x497535);},{'priority':'highest'});const _0x3088c7=_0x244118['descriptionFactory'];_0x3088c7['registerDescriptionCallback'](_0x4658b9=>{if('insertion'!==_0x4658b9['type'])return;const {start:_0x586089,end:_0x772a82}=_0x4658b9['getFirstRange']();if(!_0x586089['isTouching'](_0x772a82)||!_0x586089['nodeAfter'])return;const _0x205420=_0x16ee9d['model']['schema'],_0x499e99=_0x586089['nodeAfter'];return _0x205420['isBlock'](_0x499e99)&&!_0x205420['isLimit'](_0x499e99)&&_0x205420['checkChild'](_0x499e99,'$text')?{'type':'insertion','content':c(_0x3ef5fd,'*Insert:*\x20%0',_0x3088c7['getItemLabel'](_0x499e99,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43d3f3=this['editor'],_0x5f43d4=_0x43d3f3['locale'];_0x43d3f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa0f01f=>{if('formatBlock'!=_0xa0f01f['type'])return;const {data:_0x31bc96}=_0xa0f01f;return _0x31bc96&&'paragraph'==_0x31bc96['commandName']?{'type':'format','content':c(_0x5f43d4,'*Change\x20to:*\x20%0',c(_0x5f43d4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2d2e00,{showActiveMarker:_0x2bd71f=!0x0}={}){return(_0x2e0423,_0x5e6319,_0xf7d226)=>{const _0x442265=_0x2d2e00['plugins']['get']('TrackChangesEditing'),_0x1b7092=_0x5e6319['markerRange']['start'],_0x5c95a5=_0x5e6319['markerRange']['end'],_0x291f39=_0x2d2e00['model']['schema'];if(!_0x1b7092['isTouching'](_0x5c95a5)||!_0x1b7092['nodeAfter'])return;const _0x50519b=_0x1b7092['nodeAfter'];if(_0x291f39['isBlock'](_0x50519b)&&!_0x291f39['isLimit'](_0x50519b)&&_0x291f39['checkChild'](_0x50519b,'$text')){if(!_0xf7d226['consumable']['consume'](_0x5e6319['markerRange'],_0x2e0423['name']))return;const {id:_0x2d692b,authorId:_0xcf4c02}=_0x442265['_splitMarkerName'](_0x5e6319['markerName']),_0x25fa44=_0xf7d226['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2d692b,'data-author-id':_0xcf4c02}),_0xdbfe57=_0xf7d226['mapper']['toViewPosition'](_0x5c95a5);_0x2bd71f&&_0x442265['activeMarkers']['includes'](_0x5e6319['markerName'])&&_0xf7d226['writer']['addClass']('ck-suggestion-marker--active',_0x25fa44),_0xf7d226['writer']['insert'](_0xdbfe57,_0x25fa44),_0xf7d226['mapper']['bindElementToMarker'](_0x25fa44,_0x5e6319['markerName']);}};}class St extends _0x385d2b{['afterInit'](){const _0xc9e5d=this['editor'];_0xc9e5d['commands']['get']('replaceSource')&&_0xc9e5d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x385d2b{['afterInit'](){const _0x3c9e97=this['editor'];if(!_0x3c9e97['plugins']['has']('RemoveFormatEditing'))return;_0x3c9e97['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e8d88=this['editor'];_0x1e8d88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31b946=>{if('formatBlock'!=_0x31b946['type']&&'formatInline'!=_0x31b946['type'])return;const {data:_0x5be20b}=_0x31b946;return _0x5be20b&&'removeFormat'==_0x5be20b['commandName']?{'type':'format','content':c(_0x1e8d88['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x385d2b{['afterInit'](){const _0x4abf62=this['editor'];if(!_0x4abf62['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2aea43=_0x4abf62['plugins']['get']('TrackChangesEditing');_0x2aea43['enableCommand']('goToPreviousRestrictedEditingException'),_0x2aea43['enableCommand']('goToNextRestrictedEditingException');const _0x515780=_0x4abf62['plugins']['get']('RestrictedEditingModeEditing');_0x515780['enableCommand']('trackChanges'),_0x515780['enableCommand']('acceptSuggestion'),_0x515780['enableCommand']('discardSuggestion'),_0x515780['enableCommand']('acceptAllSuggestions'),_0x515780['enableCommand']('discardAllSuggestions'),_0x515780['enableCommand']('acceptSelectedSuggestions'),_0x515780['enableCommand']('discardSelectedSuggestions');}}class At extends _0x385d2b{['afterInit'](){const _0x5e541e=this['editor'];if(!_0x5e541e['plugins']['has']('ShiftEnter'))return;const _0x11131e=_0x5e541e['plugins']['get']('TrackChangesEditing');_0x11131e['enableCommand']('shiftEnter'),_0x5e541e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5e541e),{'priority':'high'}),_0x5e541e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5e541e),{'priority':'high'}),_0x5e541e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x390188,_0x161d35,_0x3b5495)=>{_0x3b5495['options']['showSuggestionHighlights']&&je(_0x5e541e,{'showActiveMarker':!0x1})(_0x390188,_0x161d35,_0x3b5495);}),_0x11131e['descriptionFactory']['registerElementLabel']('softBreak',_0x3eb5bb=>c(_0x5e541e['locale'],'ELEMENT_LINE_BREAK',_0x3eb5bb));}}function je(_0x5237aa,{showActiveMarker:_0x6333c0=!0x0}={}){return(_0x150079,_0x1eb610,_0xb827c5)=>{const _0x5ebcba=_0x5237aa['plugins']['get']('TrackChangesEditing');if(!_0xb827c5['consumable']['test'](_0x1eb610['markerRange'],_0x150079['name']))return;const _0x4e8ad8=_0x5237aa['model'];for(const _0x2d809b of _0x1eb610['markerRange']['getItems']()){if(!_0x2d809b['is']('element','softBreak'))continue;const _0x456fcf='deletion'==_0x1eb610['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3e051c,authorId:_0x4c4e82}=_0x5ebcba['_splitMarkerName'](_0x1eb610['markerName']),_0x18baf3=_0xb827c5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x456fcf,'data-suggestion':_0x3e051c,'data-author-id':_0x4c4e82}),_0x1895f1=_0xb827c5['mapper']['toViewPosition'](_0x4e8ad8['createPositionBefore'](_0x2d809b));_0x6333c0&&_0x5ebcba['activeMarkers']['includes'](_0x1eb610['markerName'])&&_0xb827c5['writer']['addClass']('ck-suggestion-marker--active',_0x18baf3),_0xb827c5['writer']['insert'](_0x1895f1,_0x18baf3),_0xb827c5['mapper']['bindElementToMarker'](_0x18baf3,_0x1eb610['markerName']);}};}class _t extends _0x385d2b{['afterInit'](){const _0x5a37f5=this['editor'],_0x415ee3=_0x5a37f5['model'],_0xd0c6aa=_0x5a37f5['locale'];if(!_0x5a37f5['plugins']['has']('StandardEditingModeEditing'))return;const _0x367423=_0x5a37f5['plugins']['get']('TrackChangesEditing'),_0x1bda0a='restrictedEditingException',_0x1bb0a6=_0x5a37f5['commands']['get'](_0x1bda0a);_0x367423['enableCommand'](_0x1bda0a,(_0x5a40e5,_0x10c24a={})=>{const _0x2beee1=_0x415ee3['document']['selection'];if(_0x2beee1['isCollapsed'])return void _0x5a40e5(_0x10c24a);const _0x4a150d=void 0x0!==_0x10c24a['forceValue']?_0x10c24a['forceValue']:!_0x1bb0a6['value'];_0x415ee3['change'](()=>{const _0x9a20f3=Array['from'](_0x2beee1['getRanges']());for(const _0x289a50 of _0x9a20f3){const _0x6a95e2=_0x4a150d?[_0x289a50]:io(_0x1bda0a,_0x289a50,_0x415ee3);for(const _0x24819f of _0x6a95e2)_0x367423['markInlineFormat'](_0x24819f,{'commandName':_0x1bda0a,'commandParams':[{'forceValue':_0x4a150d}]});}});}),_0x367423['descriptionFactory']['registerDescriptionCallback'](_0x472231=>{if('formatBlock'!=_0x472231['type']&&'formatInline'!=_0x472231['type'])return;const {data:_0x154a68}=_0x472231;return _0x154a68&&_0x154a68['commandName']==_0x1bda0a?_0x154a68['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xd0c6aa,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0xd0c6aa,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x385d2b{['afterInit'](){const _0x18a9b4=this['editor'];if(!_0x18a9b4['plugins']['has']('Style')||!_0x18a9b4['plugins']['has']('DataSchema'))return;const _0x38fb54=_0x18a9b4['plugins']['get']('TrackChangesEditing'),_0x35d785=_0x18a9b4['locale'],_0x37c659=_0x18a9b4['config']['get']('style')||{},_0x1f6ce4=_0x18a9b4['plugins']['get']('GeneralHtmlSupport'),_0x596150=_0x18a9b4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x18a9b4['plugins']['get']('DataSchema'),_0x37c659['definitions']);_0x38fb54['enableDefaultAttributesIntegration']('style');const _0x33c1b5=new Set();for(const _0xf4ad36 of _0x596150['block']){const _0x43c102=_0x1f6ce4['getGhsAttributeNameForElement'](_0xf4ad36['element']);_0x33c1b5['add'](_0x43c102);}const _0x5d0d5f=new Set();for(const _0x2b9edb of _0x596150['inline']){const _0x963835=_0x1f6ce4['getGhsAttributeNameForElement'](_0x2b9edb['element']);_0x5d0d5f['add'](_0x963835);for(const _0xfb607e of _0x2b9edb['ghsAttributes'])_0x5d0d5f['add'](_0xfb607e);}for(const _0x917916 of _0x33c1b5)_0x38fb54['registerBlockAttribute'](_0x917916),_0x38fb54['descriptionFactory']['registerAttributeLabel'](_0x917916,c(_0x35d785,'FORMAT_STYLE'));for(const _0x1c0728 of _0x5d0d5f)_0x38fb54['registerInlineAttribute'](_0x1c0728),_0x38fb54['descriptionFactory']['registerAttributeLabel'](_0x1c0728,c(_0x35d785,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41aaa9=this['editor'],_0x21c6e2=_0x41aaa9['locale'];_0x41aaa9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x99edf7=>{if('formatBlock'!=_0x99edf7['type']&&'formatInline'!=_0x99edf7['type'])return;const {data:_0x4efed0}=_0x99edf7;return _0x4efed0&&'style'===_0x4efed0['commandName']?_0x4efed0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x21c6e2,'*Set\x20format:*\x20%0',_0x4efed0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x21c6e2,'*Remove\x20format:*\x20%0',_0x4efed0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x385d2b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1e98c8){super(_0x1e98c8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x313223=this['editor'],_0x2fa294=_0x313223['model']['document']['selection'];if(!_0x313223['plugins']['has']('TableEditing'))return;const _0x3ad8d9=_0x313223['locale'],_0x3d9b2d=_0x313223['plugins']['get']('TrackChangesEditing'),_0x539de7=_0x313223['plugins']['get']('TableUtils');_0x3d9b2d['descriptionFactory']['registerElementLabel']('table',_0x30fc10=>c(_0x3ad8d9,'ELEMENT_TABLE',_0x30fc10)),this['_setupColumnsRowsFixing'](),_0x3d9b2d['enableCommand']('insertTable'),_0x3d9b2d['enableCommand']('selectTableRow'),_0x3d9b2d['enableCommand']('selectTableColumn');for(const _0x1fb064 of['insertTableRowAbove','insertTableRowBelow']){const _0xeb4974=_0x313223['commands']['get'](_0x1fb064);_0x3d9b2d['enableCommand'](_0x1fb064,_0x14bd83=>{_0x313223['model']['change'](_0x555e0f=>{_0x14bd83();const _0x33bac4='above'===_0xeb4974['order'],_0x5d4700=_0x539de7['getSelectionAffectedTableCells'](_0x2fa294),_0x3676d4=_0x539de7['getRowIndexes'](_0x5d4700),_0xe9caca=_0x33bac4?_0x3676d4['first']-0x1:_0x3676d4['last']+0x1,_0x3a6c42=_0x5d4700[0x0]['findAncestor']('table'),_0x5874a0=_0x539de7['createTableWalker'](_0x3a6c42,{'startRow':_0xe9caca,'endRow':_0xe9caca}),_0x47306b=Array['from'](_0x5874a0)['map'](_0x24a87d=>_0x555e0f['createRangeOn'](_0x24a87d['cell']));_0x3d9b2d['markMultiRangeInsertion'](_0x47306b,'tableRow');});});}for(const _0x313364 of['insertTableColumnLeft','insertTableColumnRight']){const _0xaf96ba=_0x313223['commands']['get'](_0x313364);_0x3d9b2d['enableCommand'](_0x313364,_0x548836=>{_0x313223['model']['change'](_0x4d0d42=>{_0x548836();const _0x3b814b='left'===_0xaf96ba['order'],_0x5a98bb=_0x539de7['getSelectionAffectedTableCells'](_0x2fa294),_0xd2b669=_0x539de7['getColumnIndexes'](_0x5a98bb),_0x1a5860=_0x3b814b?_0xd2b669['first']-0x1:_0xd2b669['last']+0x1,_0x2230f1=_0x5a98bb[0x0]['findAncestor']('table'),_0x222d5e=_0x539de7['createTableWalker'](_0x2230f1,{'startRow':0x0,'column':_0x1a5860,'includeAllSlots':!0x1}),_0x32ae31=Array['from'](_0x222d5e)['map'](_0x4c2ce7=>_0x4d0d42['createRangeOn'](_0x4c2ce7['cell']));_0x3d9b2d['markMultiRangeInsertion'](_0x32ae31,'tableColumn');});});}for(const _0x15271d of['removeTableRow','removeTableColumn']){const _0x282c17=_0x15271d['substr'](0xb),_0x34ea89=_0x282c17['toLowerCase'](),_0x152b84=_0x34ea89['substr'](0x0,0x3)+'span',_0x2262d1='table'+_0x282c17,_0x524b01='min'+_0x282c17,_0x41f798='max'+_0x282c17;_0x3d9b2d['enableCommand'](_0x15271d,()=>{_0x313223['model']['change'](_0x2efc0c=>{const _0x18f4a9=_0x539de7['getSelectionAffectedTableCells'](_0x2fa294),_0x2eee90=_0x18f4a9[0x0]['findAncestor']('table');let _0x437f15;if('removeTableRow'==_0x15271d){const _0x29292e=_0x539de7['getRowIndexes'](_0x18f4a9);_0x437f15={'startRow':_0x29292e['first'],'endRow':_0x29292e['last'],'includeAllSlots':!0x0};}else{const _0x2487e5=_0x539de7['getColumnIndexes'](_0x18f4a9);_0x437f15={'startColumn':_0x2487e5['first'],'endColumn':_0x2487e5['last'],'includeAllSlots':!0x0};}const _0x21a999=_0x539de7['createTableWalker'](_0x2eee90,_0x437f15),_0x233427=Array['from'](_0x21a999)['map'](({cell:_0xcbd202})=>_0xcbd202),_0x166026=xe(_0x233427['filter'](_0x23b839=>_0x23b839['hasAttribute'](_0x152b84))),_0x35982e=xe(_0x233427['filter'](_0x10496c=>!_0x10496c['hasAttribute'](_0x152b84)))['map'](_0x915d90=>_0x2efc0c['createRangeOn'](_0x915d90)),_0x4fd474=_0x3d9b2d['markMultiRangeDeletion'](_0x35982e,_0x2262d1);if(_0x4fd474&&('tableRow'==_0x4fd474['subType']||'tableColumn'==_0x4fd474['subType'])){const _0x44c041=this['_getSuggestionCoords'](_0x4fd474);for(const _0x328835 of _0x166026){const _0x1960f8=_0x2efc0c['createRangeOn'](_0x328835),_0x39448e=_0x539de7['getCellLocation'](_0x328835),_0x4d749f=_0x328835['getAttribute'](_0x152b84)-0x1,_0x1d4b6a=_0x44c041[_0x524b01],_0x368198=_0x44c041[_0x41f798];_0x1d4b6a<=_0x39448e[_0x34ea89]&&_0x39448e[_0x34ea89]+_0x4d749f<=_0x368198&&_0x4fd474['addRange'](_0x1960f8);}}});});}function _0x214851(_0x57cc70){const _0x359dab=Array['from'](_0x2fa294['getRanges']())['map'](_0x44301d=>_0x21cd14['fromRange'](_0x44301d));_0x313223['model']['change'](_0x60d2e3=>{const _0x281262=_0x60d2e3['batch'];_0x57cc70=_0x57cc70['filter'](_0x467c9d=>'$graveyard'!=_0x467c9d['root']['rootName']),_0x60d2e3['setSelection'](_0x57cc70),_0x313223['commands']['get']('removeTableRow')['refresh'](),_0x313223['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x313223['model']['enqueueChange'](()=>{_0x313223['model']['enqueueChange'](_0x281262,_0x565173=>{const _0x3d30d7=_0x359dab['filter'](_0x4d16ee=>'$graveyard'!=_0x4d16ee['root']['rootName']);_0x3d30d7['length']>0x0&&_0x565173['setSelection'](_0x3d30d7);for(const _0x1adf30 of _0x359dab)_0x1adf30['detach']();});});});}function _0x5e9dbe(_0x52eeec){_0x313223['model']['change'](_0x42e7fa=>{const _0x1c2c17=Array['from'](_0x2fa294['getRanges']())['map'](_0x5a70dd=>_0x21cd14['fromRange'](_0x5a70dd)),_0x2abff1=[];for(const _0x522c09 of _0x52eeec)for(const _0x234951 of _0x522c09['getItems']({'shallow':!0x0}))_0x2abff1['push'](_0x234951);for(const _0x580e6c of _0x2abff1)'$graveyard'!=_0x580e6c['root']['rootName']&&(_0x42e7fa['setSelection'](_0x42e7fa['createPositionAt'](_0x580e6c,0x0)),_0x313223['commands']['get']('removeTableColumn')['refresh'](),_0x313223['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xb42a28=_0x1c2c17['filter'](_0x54c749=>'$graveyard'!=_0x54c749['root']['rootName']);_0xb42a28['length']>0x0&&_0x42e7fa['setSelection'](_0xb42a28);for(const _0x4fde99 of _0x1c2c17)_0x4fde99['detach']();});}function _0x1549bf(_0xf009b3,_0x3fc780){return _0x3fc780['every'](_0x234f57=>_0xf009b3['some'](_0x231ea3=>_0x231ea3['end']['isEqual'](_0x234f57['start'])||_0x234f57['end']['isEqual'](_0x231ea3['start'])));}function _0x131311(_0x41bfac,_0x4eb07b){return!_0x41bfac['some'](_0x455b97=>_0x4eb07b['some'](_0xba4010=>_0x455b97['isIntersecting'](_0xba4010)))&&_0x41bfac['some'](_0x5e0ec5=>_0x4eb07b['some'](_0x4c6884=>_0x5e0ec5['end']['isTouching'](_0x4c6884['start'])));}_0x313223['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3955d6,_0x1db31f,_0x2fca8a)=>{if(!_0x2fca8a['options']['showSuggestionHighlights'])return;const _0x3e7047=_0x1db31f['item'];if(!_0x3e7047||!_0x3e7047['is']('element','tableCell'))return;const _0x2a5e82=_0x2fca8a['mapper']['toViewElement'](_0x3e7047);if(_0x2a5e82){const {id:_0x223f1e,authorId:_0x4117b2}=_0x3d9b2d['_splitMarkerName'](_0x1db31f['markerName']);_0xf0eea4(_0x2a5e82,_0x2fca8a['writer'],(_0x47d4f1,_0x37b7b8,_0x4ac785)=>{_0x4ac785['addClass'](_0x2b741c(_0x37b7b8['classes']),_0x47d4f1),_0x4ac785['setAttribute']('data-suggestion-id',_0x223f1e,_0x47d4f1),_0x4ac785['setAttribute']('data-author-id',_0x4117b2,_0x47d4f1);},(_0x13856a,_0x6b4908,_0x1bf48f)=>{_0x1bf48f['removeClass'](_0x2b741c(_0x6b4908['classes']),_0x13856a),_0x1bf48f['removeAttribute']('data-suggestion-id',_0x13856a),_0x1bf48f['removeAttribute']('data-author-id',_0x13856a);});}},{'priority':'highest'}),_0x3d9b2d['descriptionFactory']['registerDescriptionCallback'](_0x826a23=>{if('insertion'!=_0x826a23['type']&&'deletion'!=_0x826a23['type'])return;const _0x2c1709=_0x826a23['getContainedElement']();if(null!=_0x2c1709&&_0x2c1709['is']('element','table')){if('insertion'==_0x826a23['type']){const _0x9f5a31=_0x826a23['getItems']()['filter'](_0x4fdaec=>_0x4fdaec['is']('$textProxy'))['map'](_0x1d5a88=>_0x1d5a88['data']);if(_0x9f5a31['length'])return{'type':'insertion','content':c(_0x3ad8d9,'*Insert:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9f5a31['join']('\x20')+'\x22'))};}if('deletion'==_0x826a23['type']){const _0x11b02d=_0x826a23['getItems']()['filter'](_0x332b0b=>_0x332b0b['is']('$textProxy'))['map'](_0x260e32=>_0x260e32['data']);if(_0x11b02d['length'])return{'type':'deletion','content':c(_0x3ad8d9,'*Remove:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x11b02d['join']('\x20')+'\x22'))};}}}),_0x3d9b2d['descriptionFactory']['registerDescriptionCallback'](_0x35c502=>{if('tableRow'==_0x35c502['subType']){const _0x1cfc07=_0x35c502['getItems']()['filter'](_0x2602cd=>_0x2602cd['is']('$textProxy'))['map'](_0xb4512e=>_0xb4512e['data']),_0x559b0d=this['_getSuggestionCoords'](_0x35c502),_0x342215=_0x559b0d['maxRow']-_0x559b0d['minRow']+0x1;if('insertion'==_0x35c502['type'])return _0x1cfc07['length']?{'type':'insertion','content':c(_0x3ad8d9,'*Insert:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x342215,'\x22'+_0x1cfc07['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3ad8d9,'*Insert:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_ROW',_0x342215))};if('deletion'==_0x35c502['type'])return _0x1cfc07['length']?{'type':'deletion','content':c(_0x3ad8d9,'*Remove:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x342215,'\x22'+_0x1cfc07['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3ad8d9,'*Remove:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_ROW',_0x342215))};}if('tableColumn'==_0x35c502['subType']){const _0x53eae9=_0x35c502['getItems']()['filter'](_0x9247cb=>_0x9247cb['is']('$textProxy'))['map'](_0x49ae72=>_0x49ae72['data']),_0x5ed261=this['_getSuggestionCoords'](_0x35c502),_0x346dea=_0x5ed261['maxColumn']-_0x5ed261['minColumn']+0x1;if('insertion'==_0x35c502['type'])return _0x53eae9['length']?{'type':'insertion','content':c(_0x3ad8d9,'*Insert:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x346dea,'\x22'+_0x53eae9['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3ad8d9,'*Insert:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_COLUMN',_0x346dea))};if('deletion'==_0x35c502['type'])return _0x53eae9['length']?{'type':'deletion','content':c(_0x3ad8d9,'*Remove:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x346dea,'\x22'+_0x53eae9['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3ad8d9,'*Remove:*\x20%0',c(_0x3ad8d9,'ELEMENT_TABLE_COLUMN',_0x346dea))};}}),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x214851),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x214851),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5e9dbe),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5e9dbe),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1549bf),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1549bf),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x131311),_0x3d9b2d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x131311);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5ba59f=this['editor'],_0x3d215e=_0x5ba59f['model']['document']['selection'];return(_0x2aaa62,_0x5c95e5)=>{_0x5ba59f['model']['change'](_0x301ff0=>{const {commandName:_0x25717a,commandParams:_0x571dde}=_0x5c95e5;let _0x4d1156=_0x2aaa62[0x0]['end']['nodeBefore'];_0x571dde&&_0x571dde[0x0]&&!0x1===_0x571dde[0x0]['forceValue']&&(_0x4d1156=_0x2aaa62[0x0]['start']['nodeAfter']);const _0x5084b7=_0x301ff0['createRangeIn'](_0x4d1156);if('$graveyard'==_0x5084b7['root']['rootName'])return;const _0x338d09=Array['from'](_0x3d215e['getRanges']())['map'](_0x142cdc=>_0x21cd14['fromRange'](_0x142cdc));_0x301ff0['setSelection'](_0x5084b7),_0x5ba59f['commands']['get'](_0x25717a)['refresh'](),_0x571dde['push']({'forceDefaultExecution':!0x0}),_0x5ba59f['execute'](_0x25717a,..._0x571dde);const _0x4afc03=_0x338d09['filter'](_0x1eed82=>'$graveyard'!=_0x1eed82['root']['rootName']);_0x4afc03['length']>0x0&&_0x301ff0['setSelection'](_0x4afc03);for(const _0x2eabf1 of _0x338d09)_0x2eabf1['detach']();});};}['_getCoordsForCells'](_0x384e83){const _0x3070ce=this['editor']['plugins']['get']('TableUtils');let _0xf7562a=Number['MAX_SAFE_INTEGER'],_0x2d4545=Number['MIN_SAFE_INTEGER'],_0x4b3036=Number['MAX_SAFE_INTEGER'],_0x3e0d3e=Number['MIN_SAFE_INTEGER'];for(const _0xd6065c of _0x384e83){if('$graveyard'==_0xd6065c['root']['rootName'])continue;const {row:_0x48f015,column:_0x39228e}=_0x3070ce['getCellLocation'](_0xd6065c),_0x553330=_0xd6065c['hasAttribute']('rowspan')?_0xd6065c['getAttribute']('rowspan')-0x1:0x0,_0x75d51c=_0xd6065c['hasAttribute']('colspan')?_0xd6065c['getAttribute']('colspan')-0x1:0x0;_0xf7562a=_0x48f015<_0xf7562a?_0x48f015:_0xf7562a,_0x2d4545=_0x48f015+_0x553330>_0x2d4545?_0x48f015+_0x553330:_0x2d4545,_0x4b3036=_0x39228e<_0x4b3036?_0x39228e:_0x4b3036,_0x3e0d3e=_0x39228e+_0x75d51c>_0x3e0d3e?_0x39228e+_0x75d51c:_0x3e0d3e;}return{'minRow':_0xf7562a,'maxRow':_0x2d4545,'minColumn':_0x4b3036,'maxColumn':_0x3e0d3e};}['_setupColumnsRowsFixing'](){const _0x23a218=this['editor'],_0x1dc79b=_0x23a218['plugins']['get']('TrackChangesEditing'),_0x334c55=_0x23a218['plugins']['get']('TableUtils');_0x23a218['model']['document']['on']('change:data',()=>{const _0x15a99a=Array['from'](_0x23a218['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4122a1,data:_0x5da1cf}of _0x15a99a){const {group:_0x32f836,id:_0x4444bf,subType:_0xb680ac}=_0x1dc79b['_splitMarkerName'](_0x4122a1);if('suggestion'!=_0x32f836)continue;if(null!=_0x5da1cf['oldRange'])continue;const _0x1a844c=_0x1dc79b['getSuggestion'](_0x4444bf);this['_tablePostFixingSubtypes']['includes'](_0xb680ac)&&this['_tableSuggestions']['add'](_0x1a844c);}},{'priority':'low'});const _0x1a6808=(_0x3c4fd3,_0xcf974a)=>{let _0x33e6b2=!0x1;const _0x146124=_0xcf974a['createRangeOn'](_0x3c4fd3),_0x5738d8=_0x3c4fd3['findAncestor']('table'),_0x335928=_0x334c55['getCellLocation'](_0x3c4fd3);for(const _0x341ecd of this['_tableSuggestions']){const _0x1fd2c4=_0x341ecd['subType'],_0x5a7f92=_0x1fd2c4['startsWith']('tablePaste'),_0x581d0d=_0x1fd2c4['substr'](_0x5a7f92?0xa:0x5),_0x2b0615=_0x581d0d['toLowerCase'](),_0x14cae4=_0x2b0615['substr'](0x0,0x3)+'span',_0x459f02='min'+_0x581d0d,_0x18b597='max'+_0x581d0d;if(!_0x341ecd['isInContent'])continue;if(_0x5738d8!=_0x341ecd['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x341ecd['isIntersectingWithRange'](_0x146124))continue;const _0x5169eb=_0x3c4fd3['hasAttribute'](_0x14cae4)?_0x3c4fd3['getAttribute'](_0x14cae4)-0x1:0x0,_0x18d30b=this['_getSuggestionCoords'](_0x341ecd),_0x3c8dce=_0x18d30b[_0x459f02],_0x111f39=_0x18d30b[_0x18b597];_0x3c8dce<=_0x335928[_0x2b0615]&&_0x335928[_0x2b0615]+_0x5169eb<=_0x111f39&&(_0x341ecd['addRange'](_0x146124),_0x33e6b2=!0x0);}return _0x33e6b2;};_0x23a218['model']['document']['registerPostFixer'](_0x11fbea=>{let _0x4bc971=!0x1;for(const _0x211ebf of _0x23a218['model']['document']['differ']['getChanges']())if('insert'==_0x211ebf['type']){if('tableRow'==_0x211ebf['name']){for(const _0x4cfecf of _0x211ebf['position']['nodeAfter']['getChildren']())_0x4bc971=_0x4bc971||_0x1a6808(_0x4cfecf,_0x11fbea);}else'tableCell'==_0x211ebf['name']&&(_0x4bc971=_0x4bc971||_0x1a6808(_0x211ebf['position']['nodeAfter'],_0x11fbea));}return _0x4bc971;});}['_getSuggestionCoords'](_0xf71fc3){return this['_getCoordsForCells'](_0xf71fc3['getRanges']()['map'](_0x58cd5e=>_0x58cd5e['start']['nodeAfter']));}}function xe(_0x50e626){return Array['from'](new Set(_0x50e626)['values']());}class Nt extends _0x385d2b{static get['requires'](){return[Ct];}['afterInit'](){const _0x375631=this['editor'],_0x9036f5=_0x375631['model']['document']['selection'],_0x1d343d=_0x375631['locale'];if(!_0x375631['plugins']['has']('TableEditing'))return;const _0x3bf48e=_0x375631['plugins']['get']('TrackChangesEditing'),_0x49bac0=_0x375631['plugins']['get']('TableUtils'),_0x49a123=_0x375631['plugins']['get'](Ct);_0x49a123['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3bf48e['enableCommand']('mergeTableCells',()=>{const _0x360b9f=_0x49bac0['getSelectionAffectedTableCells'](_0x375631['model']['document']['selection']);_0x375631['model']['change'](()=>{_0x3bf48e['markMultiRangeBlockFormat'](_0x360b9f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x375631['commands']['get']('mergeTableCells')['on']('execute',(_0x2558df,_0x1c78bf)=>{_0x375631['commands']['get']('trackChanges')['value']&&(_0x1c78bf['length']>0x0&&_0x1c78bf[_0x1c78bf['length']-0x1]&&_0x1c78bf[_0x1c78bf['length']-0x1]['forceDefaultExecution']||_0x3bf48e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2558df['stop']());},{'priority':'highest'});for(const _0x1136df of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5838f1=_0x375631['commands']['get'](_0x1136df);_0x3bf48e['enableCommand'](_0x1136df,()=>{const _0x239807=_0x375631['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x39a6bb=>_0x39a6bb['is']('element','tableCell')),_0x283a87=_0x5838f1['value'];_0x375631['model']['change'](()=>{_0x3bf48e['markMultiRangeBlockFormat']([_0x239807,_0x283a87],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5bc1a6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x57ed22=_0x375631['commands']['get'](_0x5bc1a6);_0x3bf48e['enableCommand'](_0x5bc1a6,()=>{const _0x38734f=_0x49bac0['getSelectionAffectedTableCells'](_0x375631['model']['document']['selection'])[0x0],_0xe0ce7=_0x38734f['findAncestor']('table'),{column:_0x5270f0,row:_0x12537f}=_0x49bac0['getCellLocation'](_0x38734f);let _0x3856c1=[];if('horizontally'==_0x57ed22['direction']){const _0x4b8bb5=_0x49bac0['createTableWalker'](_0xe0ce7,{'startRow':_0x12537f,'endRow':_0x12537f,'includeAllSlots':!0x0});_0x3856c1=Array['from'](_0x4b8bb5)['map'](_0x2ff090=>_0x2ff090['cell']);}else{const _0x37a466=_0x49bac0['createTableWalker'](_0xe0ce7,{'column':_0x5270f0,'includeAllSlots':!0x0});_0x3856c1=Array['from'](_0x37a466)['map'](_0x52dadb=>_0x52dadb['cell']);}_0x375631['model']['change'](_0x1c5a35=>{_0x3bf48e['markBlockFormat'](_0x1c5a35['createRangeOn'](_0x38734f),{'commandName':_0x5bc1a6,'commandParams':[]},_0x3856c1,_0x5bc1a6);});});}_0x3bf48e['descriptionFactory']['registerDescriptionCallback'](_0x53d49f=>{if('formatBlock'!=_0x53d49f['type']&&'formatInline'!=_0x53d49f['type'])return;const {data:_0x5662ee}=_0x53d49f;return _0x5662ee&&'mergeTableCells'==_0x5662ee['commandName']?{'type':'format','content':c(_0x1d343d,'*Merge\x20cells*')}:void 0x0;}),_0x3bf48e['descriptionFactory']['registerDescriptionCallback'](_0x23b504=>{if('formatBlock'!=_0x23b504['type']&&'formatInline'!=_0x23b504['type'])return;const {data:_0x17c8fa}=_0x23b504;return _0x17c8fa?'splitTableCellVertically'==_0x17c8fa['commandName']?{'type':'format','content':c(_0x1d343d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x17c8fa['commandName']?{'type':'format','content':c(_0x1d343d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5116de=_0x49a123['_acceptFormatSuggestionCallbackFactory']();for(const _0x53b12b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3bf48e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53b12b,'accept',_0x5116de);for(const _0x34e48f of['splitTableCellVertically','splitTableCellHorizontally'])_0x3bf48e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x34e48f,'accept',_0x5116de);_0x3bf48e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x20da3f=>{_0x375631['model']['change'](_0x4dfba6=>{const _0x20c5d8=Array['from'](_0x9036f5['getRanges']())['map'](_0x3c1c27=>_0x21cd14['fromRange'](_0x3c1c27));_0x4dfba6['setSelection'](_0x20da3f),_0x375631['commands']['get']('mergeTableCells')['refresh'](),_0x375631['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x23f9f1=_0x20c5d8['filter'](_0x3c58be=>'$graveyard'!=_0x3c58be['root']['rootName']);_0x23f9f1['length']>0x0&&_0x4dfba6['setSelection'](_0x23f9f1);for(const _0x294111 of _0x20c5d8)_0x294111['detach']();});});for(const _0x2c0bd1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4718bc=_0x375631['commands']['get'](_0x2c0bd1);_0x4718bc['on']('set:isEnabled',(_0x2b0cd5,_0x4c844f,_0x2cdbc1)=>{if(_0x2cdbc1){const _0x110483=_0x375631['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5affe8=>_0x5affe8['is']('element','tableCell'));this['_areMergableCells'](_0x4718bc['value'],_0x110483)||(_0x2b0cd5['return']=!0x1,_0x2b0cd5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x28ac0c=this['editor']['commands']['get']('mergeTableCells'),_0x42fe85=this['editor']['plugins']['get']('TableUtils');if(!_0x28ac0c['isEnabled'])return!0x1;const _0xca03e8=_0x42fe85['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x34b1f6 of _0xca03e8)for(const _0x6cebf5 of _0xca03e8)if(_0x34b1f6!=_0x6cebf5&&!this['_areMergableCells'](_0x34b1f6,_0x6cebf5))return!0x1;return!0x0;}['_areMergableCells'](_0x2611c3,_0x47000a){const _0x5d7bd3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33c8e1=this['editor']['model']['createRangeOn'](_0x2611c3),_0x3b500c=this['editor']['model']['createRangeOn'](_0x47000a),_0x3d2434=new Set(),_0x158fa8=new Set();for(const _0x37120e of _0x5d7bd3['getSuggestions']())if(('insertion'==_0x37120e['type']||'deletion'==_0x37120e['type']||'mergeTableCells'==_0x37120e['subType'])&&_0x37120e['isInContent']){for(const _0x9dd8de of _0x37120e['getRanges']())_0x9dd8de['containsRange'](_0x33c8e1,!0x0)&&_0x3d2434['add'](_0x37120e['type']+':'+_0x37120e['author']['id']),_0x9dd8de['containsRange'](_0x3b500c,!0x0)&&_0x158fa8['add'](_0x37120e['type']+':'+_0x37120e['author']['id']);}if(_0x3d2434['size']!=_0x158fa8['size'])return!0x1;for(const _0x1ee0b0 of _0x3d2434)if(!_0x158fa8['has'](_0x1ee0b0))return!0x1;return!0x0;}}class Dt extends _0x385d2b{static get['requires'](){return[Ct];}['afterInit'](){const _0xf83df7=this['editor'];if(!_0xf83df7['plugins']['has']('TableEditing'))return;const _0x5e9cf1=_0xf83df7['locale'],_0x104b68=_0xf83df7['plugins']['get']('TrackChangesEditing');_0x104b68['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x104b68['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x104b68['registerBlockAttribute']('headingRows'),_0x104b68['registerBlockAttribute']('headingColumns'),_0x104b68['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x5e9cf1,'FORMAT_HEADER_ROW')),_0x104b68['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x5e9cf1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4af3d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5245e7=this['editor']['plugins']['get']('TableUtils'),_0x55edf9=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x10011a({showActiveMarker:_0x9b6293=!0x0,setDataAttribute:_0x1f0972=!0x0}={}){return(_0x3fb86f,_0x2b033f,_0xaaf2d4)=>{const {type:_0x274a20,id:_0x199162}=_0x4af3d8['_splitMarkerName'](_0x2b033f['markerName']),_0x10f76f=_0x4af3d8['getSuggestion'](_0x199162),_0x37aa24=_0x10f76f['data'];if('formatBlock'!=_0x10f76f['type']||!_0x37aa24||'setTableColumnHeader'!=_0x37aa24['commandName'])return;if(_0x2b033f['item'])return void _0x3fb86f['stop']();if(!_0xaaf2d4['consumable']['consume'](_0x2b033f['markerRange'],_0x3fb86f['name']))return;const _0x56a9ac=_0x2b033f['markerRange']['start']['nodeAfter'],_0x404d1a=_0x2b033f['markerRange']['end']['nodeBefore'],_0x1865c1=_0x56a9ac['parent']['parent'],{column:_0x3e02fb}=_0x5245e7['getCellLocation'](_0x56a9ac),{column:_0x2ff87a}=_0x5245e7['getCellLocation'](_0x404d1a);for(let _0x5a3f35=_0x3e02fb;_0x5a3f35<=_0x2ff87a;_0x5a3f35++){const _0x2c7869=_0x5245e7['createTableWalker'](_0x1865c1,{'column':_0x5a3f35,'includeAllSlots':!0x1});for(const _0x55a57d of _0x2c7869){const _0x334072=_0x55a57d['cell'],_0x4cd93d=_0xaaf2d4['mapper']['toViewElement'](_0x334072);_0xaaf2d4['writer']['addClass']('ck-suggestion-marker-'+_0x274a20,_0x4cd93d),_0x1f0972&&_0xaaf2d4['writer']['setAttribute']('data-suggestion',_0x199162,_0x4cd93d),_0xaaf2d4['mapper']['bindElementToMarker'](_0x4cd93d,_0x2b033f['markerName']),_0x9b6293&&(_0x4af3d8['activeMarkers']['includes'](_0x2b033f['markerName'])?_0xaaf2d4['writer']['addClass']('ck-suggestion-marker--active',_0x4cd93d):_0xaaf2d4['writer']['removeClass']('ck-suggestion-marker--active',_0x4cd93d));}}};}_0x4af3d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x55edf9),_0x4af3d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x55edf9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x10011a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f3882,_0x121caa,_0x4b2e22)=>{_0x4b2e22['options']['showSuggestionHighlights']&&_0x10011a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2f3882,_0x121caa,_0x4b2e22);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x40949b,_0x9f5e05,_0x1b8327)=>{const {type:_0x1b8119,id:_0x25046e}=_0x4af3d8['_splitMarkerName'](_0x9f5e05['markerName']),_0x1e93ea=_0x4af3d8['getSuggestion'](_0x25046e),_0x396c6b=_0x1e93ea['data'];if('formatBlock'!=_0x1e93ea['type']||!_0x396c6b||'setTableColumnHeader'!=_0x396c6b['commandName'])return;const _0x32084c=_0x1b8327['mapper']['markerNameToElements'](_0x9f5e05['markerName']);if(_0x32084c){for(const _0x471c47 of _0x32084c)_0x1b8327['writer']['removeClass']('ck-suggestion-marker-'+_0x1b8119,_0x471c47),_0x1b8327['writer']['removeClass']('ck-suggestion-marker--active',_0x471c47),_0x1b8327['writer']['removeAttribute']('data-suggestion',_0x471c47),_0x1b8327['mapper']['unbindElementFromMarkerName'](_0x471c47,_0x9f5e05['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dcfd3=this['editor'],_0x118978=_0x3dcfd3['locale'];function _0xd11b10(_0x475821){return{'type':'format','content':c(_0x118978,'*Format:*\x20%0',_0x475821)};}_0x3dcfd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fe0f4=>{if('formatBlock'!=_0x3fe0f4['type'])return;const {data:_0x1222b7}=_0x3fe0f4;if(_0x1222b7){if('setTableRowHeader'==_0x1222b7['commandName']){const _0x49a2d2=_0x1222b7['commandParams'][0x0]['forceValue'];return _0xd11b10(c(_0x118978,_0x49a2d2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1222b7['commandName']){const _0x1090b6=_0x1222b7['commandParams'][0x0]['forceValue'];return _0xd11b10(c(_0x118978,_0x1090b6?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x385d2b{['afterInit'](){const _0x540d6b=this['editor'],_0x36c357=_0x540d6b['locale'],_0x54d1bf=_0x540d6b['plugins']['get']('TrackChangesEditing');function _0x474127(_0x332ba0){return{'type':'format','content':''+c(_0x36c357,'*Set\x20table\x20type:*\x20%0',_0x332ba0)};}_0x540d6b['plugins']['has']('TableLayout')&&(_0x54d1bf['enableCommand']('insertTableLayout'),_0x54d1bf['enableDefaultAttributesIntegration']('tableType'),_0x54d1bf['registerBlockAttribute']('tableType'),_0x54d1bf['descriptionFactory']['registerElementLabel'](_0x5eff0b=>_0x5eff0b['is']('element','table')&&'layout'===_0x5eff0b['getAttribute']('tableType'),_0x31d935=>c(_0x36c357,'ELEMENT_LAYOUT_TABLE',_0x31d935)),_0x54d1bf['descriptionFactory']['registerDescriptionCallback'](_0x1c6789=>{const {data:_0x29448d}=_0x1c6789;if(_0x29448d&&'tableType'==_0x29448d['key'])switch(_0x29448d['newValue']){case'layout':return _0x474127(c(_0x36c357,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x474127(c(_0x36c357,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x3b9fbd=>[_0x3b9fbd,null]));class $t extends _0x385d2b{static get['requires'](){return[Ct];}['afterInit'](){const _0x4e5609=this['editor'];if(!_0x4e5609['plugins']['has']('TableClipboard'))return;const _0x273c04=_0x4e5609['plugins']['get']('TrackChangesEditing'),_0x1208d8=_0x4e5609['plugins']['get']('TableUtils'),_0x5c9b08=_0x4e5609['plugins']['get'](Ct),_0x3d926e=_0x4e5609['plugins']['get']('TableClipboard'),_0x2c293f=_0x4e5609['plugins']['get']('TableSelection'),_0x18abc2=_0x4e5609['plugins']['get'](_0x370390);_0x5c9b08['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4e5609['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4e5609['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3d242c=null,_0x15267f=!0x1;_0x18abc2['on']('contentInsertion',(_0x14e1e4,_0x1e782f)=>{_0x15267f='paste'===_0x1e782f['method'];}),_0x4e5609['model']['on']('insertContent',(_0x25b908,_0x41931c)=>{if(!_0x15267f&&null===_0x2c293f['getSelectedTableCells']())return;const [_0x4a3eda,_0x94cf6f]=_0x41931c,_0x532639=_0x41931c[_0x41931c['length']-0x1];_0x532639&&_0x532639['forceDefaultExecution']||_0x273c04['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x40eea1,_0x5da95e,_0x39037d,_0x1b841b,_0x3b5650){if(_0x5da95e&&!_0x5da95e['is']('documentSelection'))return!0x1;const _0x3092ae=_0x3b5650['getTableIfOnlyTableInContent'](_0x40eea1,_0x39037d);if(!_0x3092ae||!He(_0x3092ae,void 0x0,_0x1b841b))return!0x1;const _0x43e857=_0x1b841b['getSelectionAffectedTableCells'](_0x39037d['document']['selection']);if(!_0x43e857['length'])return!0x1;const _0x133d01=_0x43e857[0x0]['findAncestor']('table'),_0x3568c9=_0x1b841b['getRowIndexes'](_0x43e857),_0x5c1d14=_0x1b841b['getColumnIndexes'](_0x43e857),_0x58520a={'startRow':_0x3568c9['first'],'endRow':_0x3568c9['last'],'startColumn':_0x5c1d14['first'],'endColumn':_0x5c1d14['last']};return 0x1==_0x43e857['length']&&(_0x58520a['endRow']+=_0x1b841b['getRows'](_0x3092ae)-0x1,_0x58520a['endColumn']+=_0x1b841b['getColumns'](_0x3092ae)-0x1),He(_0x133d01,_0x58520a,_0x1b841b);}(_0x4a3eda,_0x94cf6f,_0x4e5609['model'],_0x1208d8,_0x3d926e)&&(_0x25b908['stop'](),_0x3d242c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4e5609['model']['change'](()=>{_0x4e5609['model']['insertContent'](_0x41931c[0x0],_0x41931c[0x1],_0x41931c[0x2],{'forceDefaultExecution':!0x0});const _0x212a87=_0x38a072(),{rowInsertionRanges:_0x56c762,columnInsertionRanges:_0x1ebf5e,insertionRanges:_0x3305cb,deletionRanges:_0x96887a,cells:_0x7063e9}=_0x3d242c;_0x56c762['length']&&_0x273c04['markMultiRangeInsertion'](_0x56c762,'tablePasteRow',{'tablePasteChainId':_0x212a87}),_0x1ebf5e['length']&&_0x273c04['markMultiRangeInsertion'](_0x1ebf5e,'tablePasteColumn',{'tablePasteChainId':_0x212a87}),_0x3305cb['length']&&(_0x273c04['markMultiRangeInsertion'](_0x3305cb,'tablePaste',{'tablePasteChainId':_0x212a87,'skipNestingCheck':!0x0}),_0x3305cb['forEach'](_0x412c73=>_0x412c73['detach']?.())),_0x96887a['length']&&(_0x273c04['markMultiRangeDeletion'](_0x96887a,'tablePaste',{'tablePasteChainId':_0x212a87,'skipNestingCheck':!0x0}),_0x96887a['forEach'](_0x1d20f7=>_0x1d20f7['detach']?.()));const _0x30f7e6=_0x273c04['markMultiRangeBlockFormat'](_0x7063e9['map'](({element:_0x216226})=>_0x216226),{'formatGroupId':_0x38a072()},[],'tablePasteCell',{'tablePasteChainId':_0x212a87});if(_0x30f7e6){const _0x5384c7=_0x30f7e6['getMarkers'](),_0x179c28=[];for(const {element:_0x358d72,attributes:_0x4479a9}of _0x7063e9){if(!_0x4479a9)continue;const _0x260086=_0x4e5609['model']['createRangeOn'](_0x358d72),_0x117006=_0x5384c7['find'](_0x2ae314=>_0x2ae314['getRange']()['isEqual'](_0x260086));_0x117006&&_0x179c28['push']([_0x117006['name'],_0x4479a9]);}_0x179c28['length']&&_0x30f7e6['setAttribute']('markerAttributes',Object['fromEntries'](_0x179c28));}_0x3d242c=null;}));},{'priority':_0x1dda41['high']+0xa}),_0x18abc2['on']('contentInsertion',()=>{_0x15267f=!0x1;},{'priority':'lowest'}),_0x4e5609['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x14730b,_0x4730f0)=>{const [_0x26591a,_0x11d45f,,_0x520dee]=_0x4730f0;if(!_0x3d242c)return;_0x14730b['stop']();const _0x374cee=_0x26591a['cell'],_0x1c351f=_0x11d45f,_0x1cb2ed=De(_0x374cee),_0x1ccb62=De(_0x1c351f);_0x14730b['return']=_0x374cee;let _0x196fd4=null,_0x3e4ae0=null;if(_0x1ccb62||_0x1cb2ed){if(_0x1cb2ed&&!_0x1ccb62){_0x520dee['remove'](_0x374cee['getChild'](0x0));for(const _0x238bc0 of Array['from'](_0x1c351f['getChildren']()))_0x520dee['insert'](_0x238bc0,_0x374cee,'end');const _0xaded18=_0x3d242c['rowInsertionIndexes']['includes'](_0x26591a['row']),_0x3def83=_0x3d242c['columnInsertionIndexes']['includes'](_0x26591a['column']);_0xaded18||_0x3def83||(_0x196fd4=_0x21cd14['fromRange'](_0x520dee['createRangeIn'](_0x374cee)));}else _0x1ccb62&&!_0x1cb2ed&&(_0x3e4ae0=_0x520dee['createRangeIn'](_0x374cee));}else{const _0x180fba=_0x520dee['createElement']('tableCellSuggestion'),_0x3b9170=_0x520dee['createElement']('tableCellSuggestion');_0x520dee['wrap'](_0x520dee['createRangeIn'](_0x374cee),_0x3b9170),_0x520dee['insert'](_0x180fba,_0x374cee,0x0);for(const _0x5ac74e of Array['from'](_0x1c351f['getChildren']()))_0x520dee['insert'](_0x5ac74e,_0x180fba,'end');_0x196fd4=_0x21cd14['fromRange'](_0x520dee['createRangeOn'](_0x180fba)),_0x3e4ae0=_0x21cd14['fromRange'](_0x520dee['createRangeOn'](_0x3b9170));}const _0x1b91dc=Array['from'](_0x1c351f['getAttributes']())['filter'](([_0x1c352f])=>Oe['includes'](_0x1c352f));_0x3d242c['cells']['push']({'element':_0x374cee,'attributes':_0x1b91dc['length']?Object['fromEntries'](_0x1b91dc):null}),_0x196fd4&&_0x3d242c['insertionRanges']['push'](_0x196fd4),_0x3e4ae0&&_0x3d242c['deletionRanges']['push'](_0x3e4ae0);},{'priority':'high'}),_0x1208d8['on']('insertColumns',(_0x5ec0b4,_0x3a83e9)=>{const [_0x11baf6,_0x4dd8b4={}]=_0x3a83e9;if(!_0x3d242c)return;const _0xfc0282=_0x4dd8b4['at']||0x0,_0x9e8e81=_0x4dd8b4['columns']||0x1;_0x3d242c['columnInsertionIndexes']=new Array(_0x9e8e81)['fill'](_0xfc0282)['map']((_0x2a4ec1,_0x54083b)=>_0x2a4ec1+_0x54083b);for(const {cell:_0x5e2f15}of _0x1208d8['createTableWalker'](_0x11baf6,{'startColumn':_0xfc0282,'endColumn':_0xfc0282+_0x9e8e81-0x1}))_0x3d242c['columnInsertionRanges']['push'](_0x4e5609['model']['createRangeOn'](_0x5e2f15));},{'priority':'low'}),_0x1208d8['on']('insertRows',(_0x477c81,_0x31ba73)=>{const [_0x2d31ed,_0x509640={}]=_0x31ba73;if(!_0x3d242c)return;const _0x15e9ba=_0x509640['at']||0x0,_0x2441b9=_0x509640['rows']||0x1;_0x3d242c['rowInsertionIndexes']=new Array(_0x2441b9)['fill'](_0x15e9ba)['map']((_0x23778b,_0xc12454)=>_0x23778b+_0xc12454);for(const {cell:_0x12c58c}of _0x1208d8['createTableWalker'](_0x2d31ed,{'startRow':_0x15e9ba,'endRow':_0x15e9ba+_0x2441b9-0x1}))_0x3d242c['rowInsertionRanges']['push'](_0x4e5609['model']['createRangeOn'](_0x12c58c));},{'priority':'low'}),_0x273c04['descriptionFactory']['registerDescriptionCallback'](_0x35f46c=>{if(_0x35f46c['subType']&&_0x35f46c['subType']['startsWith']('tablePaste'))return _0x35f46c['previous']?{}:{'type':'insertion','content':c(_0x4e5609['locale'],'*Replace\x20table\x20cells*')};});const _0x5c72f1=()=>!0x1;for(const _0xad034a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x273c04['_suggestionFactory']['registerCustomCallback']('insertion',_0xad034a,'join',_0x5c72f1),_0x273c04['_suggestionFactory']['registerCustomCallback']('deletion',_0xad034a,'join',_0x5c72f1),_0x273c04['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xad034a,'join',_0x5c72f1);_0x273c04['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5c72f1),_0x273c04['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x454bb5,_0x201568,_0x119fa0)=>{const _0x3862c3=_0x454bb5['map'](_0x3c41dd=>_0x3c41dd['getContainedElement']())['filter'](_0x2bf0d9=>_0x2bf0d9),_0x4fdcff=new Map(_0x3862c3['map'](_0x36810a=>[_0x36810a,null]));if(_0x3d242c){for(const {element:_0x495977,attributes:_0x418b13}of _0x3d242c['cells'])_0x418b13&&_0x4fdcff['set'](_0x495977,_0x418b13);}else{if(_0x119fa0&&_0x119fa0['markerAttributes'])for(const [_0x22ec0f,_0x714ac0]of Object['entries'](_0x119fa0['markerAttributes'])){const _0x5ba4e2=_0x4e5609['model']['markers']['get'](_0x22ec0f),_0x13ab80=_0x5ba4e2?_0x5ba4e2['getRange']()['getContainedElement']():null;_0x13ab80&&_0x4fdcff['set'](_0x13ab80,_0x714ac0);}}_0x4e5609['model']['change'](_0x59409b=>{for(const [_0x37b3c1,_0xa21af0]of _0x4fdcff)_0x59409b['setAttributes']({...Ue,..._0xa21af0},_0x37b3c1);});});const _0xbe68c6=(_0x18f225,_0xb884a1)=>{_0x273c04['_suggestionFactory']['registerCustomCallback'](_0x18f225,'tablePaste',_0xb884a1,(_0xd3a8b6,_0x261537,_0x52df91)=>{_0x4e5609['model']['change'](_0x138b71=>{const _0x186c93=[];for(const _0x314fc5 of _0xd3a8b6){const _0x3cc6d7=_0x314fc5['start']['nodeAfter'];_0x3cc6d7['is']('element','tableCellSuggestion')&&_0x186c93['push'](_0x3cc6d7);}_0x273c04['_suggestionFactory']['getSuggestionCallback'](_0x18f225,null,_0xb884a1)(_0xd3a8b6,_0x261537,_0x52df91);for(const _0x4ad6eb of _0x186c93)'$graveyard'!=_0x4ad6eb['root']['rootName']&&_0x138b71['unwrap'](_0x4ad6eb);});});};_0xbe68c6('insertion','accept'),_0xbe68c6('insertion','discard'),_0xbe68c6('deletion','accept'),_0xbe68c6('deletion','discard'),_0x273c04['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x337d56=>{const _0x223e88=_0x337d56['map'](_0x4f3a10=>_0x4f3a10['getContainedElement']()),_0x3de16e=_0x223e88[0x0]['findAncestor']('table'),{minRow:_0x5ebfed,maxRow:_0x5dfa27}=_0x5c9b08['_getCoordsForCells'](_0x223e88);_0x1208d8['removeRows'](_0x3de16e,{'at':_0x5ebfed,'rows':_0x5dfa27-_0x5ebfed+0x1});}),_0x273c04['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x421c34=>{const _0x4d7292=_0x421c34['map'](_0xc08bda=>_0xc08bda['getContainedElement']()),_0x5a5778=_0x4d7292[0x0]['findAncestor']('table'),{minColumn:_0x85e3cb,maxColumn:_0x4cbe9c}=_0x5c9b08['_getCoordsForCells'](_0x4d7292);_0x1208d8['removeColumns'](_0x5a5778,{'at':_0x85e3cb,'columns':_0x4cbe9c-_0x85e3cb+0x1});});const _0x520841=(_0x3bfbf9,_0x1674b3)=>{if(!_0x1674b3['subType']||!_0x1674b3['subType']['startsWith']('tablePaste'))return;const _0x3799ad=_0x1674b3['attributes']['tablePasteChainId'],_0x5d1051=_0x273c04['getSuggestions']()['filter'](_0x35b561=>_0x35b561['isInContent']&&_0x35b561['attributes']&&_0x35b561['attributes']['tablePasteChainId']==_0x3799ad);_0x5d1051['length']&&_0x1674b3['getAllAdjacentSuggestions']()['length']!=_0x5d1051['length']&&_0x5d1051['reduce']((_0x3f6efa,_0x385d4c)=>(_0x3f6efa['next']=_0x385d4c,_0x385d4c['previous']=_0x3f6efa,_0x385d4c));};function _0x3ed738(_0x1727a0,_0x2c75c9=!0x0){const {id:_0x47f080,authorId:_0x30ea25}=_0x273c04['_splitMarkerName'](_0x1727a0['markerName']),_0x113a1a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x26ea93=_0x273c04['activeMarkers']['includes'](_0x1727a0['markerName']);return _0x26ea93&&_0x113a1a['push']('ck-suggestion-marker--active'),{'classes':_0x113a1a,'attributes':{'data-suggestion':_0x47f080,'data-author-id':_0x30ea25},'priority':_0x26ea93&&_0x2c75c9?0xbc2:0xbb8};}_0x273c04['on']('suggestionLoaded',_0x520841,{'priority':'high'}),_0x273c04['on']('suggestionUnloaded',_0x520841,{'priority':'high'}),_0x4e5609['model']['document']['registerPostFixer'](()=>{let _0x14d353=!0x1;const _0x5eaffe=Array['from'](_0x4e5609['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1dda72,data:_0x3d9c37}of _0x5eaffe){const {group:_0x3abd27,type:_0xfeed39,id:_0x1057c7}=_0x273c04['_splitMarkerName'](_0x1dda72);if('suggestion'!=_0x3abd27||'deletion'!=_0xfeed39||_0x3d9c37['oldRange'])continue;if(!_0x273c04['hasSuggestion'](_0x1057c7))continue;const _0x1d7fc6=_0x273c04['getSuggestion'](_0x1057c7)['getRanges'](),_0x2f4c31=_0x4e5609['plugins']['get']('Users')['me'];for(const _0x5eb461 of _0x273c04['getSuggestions']()){if(!_0x5eb461['isInContent']||_0x5eb461['author']!=_0x2f4c31)continue;if('formatBlock'!=_0x5eb461['type']||'tablePasteCell'!=_0x5eb461['subType'])continue;if(_0x5eb461['getRanges']()['every'](_0x3ad9e4=>_0x1d7fc6['some'](_0x55550=>_0x55550['containsRange'](_0x3ad9e4,!0x0)))){for(const _0x5ce891 of _0x5eb461['getAllAdjacentSuggestions']())_0x5ce891['isInContent']&&(_0x5ce891['discard'](),_0x14d353=!0x0);}}}return _0x14d353;}),_0x4e5609['model']['document']['registerPostFixer'](_0x54968f=>{const _0x3c443d=_0x4e5609['commands']['get']('redo');if(!_0x3c443d||!_0x3c443d['_createdBatches']['has'](_0x54968f['batch']))return!0x1;let _0x5635c0=!0x1;const _0x3161ac=_0x4e5609['plugins']['get']('Users')['me'],_0x88631=_0x4e5609['model']['document']['differ']['getChanges'](),_0x18bcc1=Array['from'](_0x4e5609['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x43ab9f,data:_0x3b7850})=>{const {group:_0x487c0e,subType:_0x316110,authorId:_0x4764c6}=_0x273c04['_splitMarkerName'](_0x43ab9f);return'suggestion'==_0x487c0e&&'tablePaste'==_0x316110&&_0x4764c6==_0x3161ac['id']&&!_0x3b7850['oldRange'];});for(const _0x1e73e7 of _0x88631){if('insert'!=_0x1e73e7['type']||'tableCellSuggestion'!=_0x1e73e7['name']||0x1!=_0x1e73e7['length'])continue;const _0xcb635=_0x54968f['createRange'](_0x1e73e7['position'],_0x1e73e7['position']['getShiftedBy'](0x1));if(!_0x18bcc1['find'](({data:_0x17beff})=>_0x17beff['newRange']['isEqual'](_0xcb635))){for(const {name:_0x2fe70a,data:_0x55875c}of _0x18bcc1)if(_0xcb635['containsRange'](_0x55875c['newRange'])){_0x54968f['updateMarker'](_0x2fe70a,{'range':_0xcb635}),_0x5635c0=!0x0;break;}}}return _0x5635c0;}),_0x4e5609['model']['document']['registerPostFixer'](_0x114939=>{let _0x204508=!0x1;const _0x4b784b=_0x4e5609['plugins']['get']('Users')['me'],_0xf772dd=_0x273c04['getSuggestions']()['filter'](_0x4434c4=>_0x4434c4['isInContent']&&_0x4434c4['author']==_0x4b784b),_0x396ac0=new Set(),_0x3eab20=new Set();for(const _0x48f4cf of _0xf772dd)if('tablePaste'==_0x48f4cf['subType'])for(const _0x25c8aa of _0x48f4cf['getMarkers']()){const _0x2f9489=_0x25c8aa['getRange']()['getContainedElement']();if(_0x2f9489){if(_0x2f9489['is']('element','tableCellSuggestion')&&De(_0x2f9489)){_0x48f4cf['removeMarker'](_0x25c8aa['name']),_0x396ac0['add'](_0x2f9489),_0x204508=!0x0;const _0x57eb56=_0x2f9489['nextSibling'],_0x31f60c=_0x2f9489['previousSibling'],_0x29163f=_0x57eb56&&_0x57eb56['is']('element','tableCellSuggestion'),_0x3d839c=_0x31f60c&&_0x31f60c['is']('element','tableCellSuggestion');_0x29163f&&!_0x396ac0['has'](_0x57eb56)&&_0x3eab20['add'](_0x57eb56),_0x3d839c&&!_0x396ac0['has'](_0x31f60c)&&_0x3eab20['add'](_0x31f60c);}else _0x2f9489['is']('element','paragraph')&&_0x2f9489['isEmpty']&&(_0x48f4cf['removeMarker'](_0x25c8aa['name']),_0x204508=!0x0);}}else{if('tablePasteCell'==_0x48f4cf['subType']){if(!_0x48f4cf['attributes']||!_0x48f4cf['attributes']['tablePasteChainId'])continue;const _0x356a43=_0x48f4cf['attributes']['markerAttributes'];if(_0x356a43&&Object['keys'](_0x356a43)['length'])continue;const _0x28d385=_0x48f4cf['attributes']['tablePasteChainId'];let _0x3ed9d9=!0x0,_0x324ccf=!0x0;for(const _0x23faa1 of _0xf772dd)if(_0x23faa1['subType']&&_0x23faa1['subType']['startsWith']('tablePaste')){if(!_0x23faa1['attributes']['tablePasteChainId']){_0x324ccf=!0x1;break;}if(_0x23faa1['id']!=_0x48f4cf['id']&&_0x23faa1['attributes']['tablePasteChainId']==_0x28d385){_0x3ed9d9=!0x1;break;}}_0x324ccf&&_0x3ed9d9&&(_0x48f4cf['removeMarkers'](),_0x204508=!0x0);}}for(const _0x4613e7 of _0x396ac0)_0x114939['remove'](_0x4613e7);for(const _0x112d60 of _0x3eab20)_0x114939['unwrap'](_0x112d60);return _0x204508;}),_0x4e5609['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4cd4e1=>_0x3ed738(_0x4cd4e1),'converterPriority':'high'}),_0x4e5609['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1f54ba,_0x2a780e)=>_0x2a780e['options']['showSuggestionHighlights']?_0x3ed738(_0x1f54ba,!0x1):null,'converterPriority':'high'});const _0x5288bf=_0x4e5609['editing']['view'];this['listenTo'](_0x5288bf['document'],'clipboardOutput',(_0x222eb2,_0x3c5cfd)=>{const _0x426759=[];for(const _0x5a9e21 of _0x5288bf['createRangeIn'](_0x3c5cfd['content'])['getItems']())_0x5a9e21['is']('element','suggestion-td')&&_0x426759['push'](_0x5a9e21);_0x5288bf['change'](_0x3ab0e6=>{for(const _0x190f43 of _0x426759)_0x3ab0e6['move'](_0x3ab0e6['createRangeIn'](_0x190f43),_0x3ab0e6['createPositionBefore'](_0x190f43)),_0x3ab0e6['remove'](_0x190f43);});});}}function De(_0x4ce84f){if(_0x4ce84f['isEmpty'])return!0x0;const _0x588cc5=_0x4ce84f['getChild'](0x0);return _0x588cc5['is']('element','paragraph')&&_0x588cc5['isEmpty'];}function He(_0x4d4095,_0x8e281f={},_0x5acac3){for(const {isAnchor:_0x2928fa,cellHeight:_0x5dfd48,cellWidth:_0x385802}of _0x5acac3['createTableWalker'](_0x4d4095,{'includeAllSlots':!0x0,..._0x8e281f}))if(!_0x2928fa||0x1!=_0x5dfd48||0x1!=_0x385802)return!0x1;return!0x0;}class Bt extends _0x385d2b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x14b58c=this['editor']['plugins']['get']('TrackChangesEditing');_0x14b58c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x14b58c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x14b58c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x14b58c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x14b58c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x14b58c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1fd02d,_0x1e177c){const _0x1cb7f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12d557=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xc5e915=_0x1e177c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1f58f2=_0x12d557['getColumnGroupElement'](_0xc5e915);let _0x71ff71=_0x1f58f2?_0x12d557['getTableColumnsWidths'](_0x1f58f2):null,_0x32e8aa=_0xc5e915['getAttribute']('tableWidth')||null;const _0x5a5c7f=_0x1e177c['tableWidth']||_0x32e8aa,_0x1d112f=_0x1e177c['columnWidths']||_0x71ff71,_0x4f4eee=this['editor']['plugins']['get']('Users')['me'];for(const _0x467fc2 of _0x1cb7f0['getSuggestions']()){const _0x1cf228=_0x467fc2['getContainedElement']();if('resizeTable'===_0x467fc2['subType']&&_0x1cf228===_0xc5e915){_0x467fc2['author']!==_0x4f4eee&&_0x467fc2['discard']();const _0x130a42=_0x467fc2['data']['commandParams'];_0x32e8aa=_0x130a42[0x0]['tableWidth'],_0x71ff71=_0x130a42[0x0]['columnWidths'];break;}}_0x1fd02d({'table':_0xc5e915,'tableWidth':_0x5a5c7f,'columnWidths':_0x1d112f}),_0x1cb7f0['markBlockFormat'](_0xc5e915,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x32e8aa,'columnWidths':_0x71ff71}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4f559c){if('formatBlock'!=_0x4f559c['type']&&'formatInline'!=_0x4f559c['type'])return;const {data:_0x28ce7e}=_0x4f559c;if(_0x28ce7e&&'resizeTable'===_0x28ce7e['formatGroupId']){const _0x2c1a05='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2c1a05)};}}}class xt extends _0x385d2b{['afterInit'](){const _0x458867=this['editor'];_0x458867['plugins']['has']('Template')&&_0x458867['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x385d2b{['afterInit'](){const _0x5d6407=this['editor'];if(!_0x5d6407['commands']['get']('insertTableOfContents'))return;_0x5d6407['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x685cf5=_0x5d6407['plugins']['get']('TrackChangesEditing'),_0x19e103=_0x5d6407['locale'];_0x685cf5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4cfcc0=>c(_0x19e103,'ELEMENT_TABLE_OF_CONTENTS',_0x4cfcc0));}}class Rt extends _0x385d2b{['afterInit'](){const _0x4aaa21=this['editor'];if(!_0x4aaa21['plugins']['has']('Title'))return;const _0x142605=_0x4aaa21['plugins']['get']('TrackChangesEditing');_0x142605['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x4aaa21['locale'],'ELEMENT_TITLE')),_0x4aaa21['model']['document']['registerPostFixer'](_0xc9aa50=>{let _0x47536e=!0x1;const _0x555d2f=Array['from'](_0x4aaa21['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x427ff1,data:_0x14350b}of _0x555d2f){const {group:_0x3ec101}=_0x142605['_splitMarkerName'](_0x427ff1);if('suggestion'!==_0x3ec101||!_0x14350b['newRange'])continue;const _0x2a80b0=_0x14350b['newRange'],_0x297752=_0x2a80b0['end']['nodeBefore'];if(!_0x297752||!_0x297752['is']('element','title-content'))continue;if(!_0x2a80b0['start']['isTouching'](_0x2a80b0['end']))continue;const _0x121381=_0x4aaa21['model']['schema']['getNearestSelectionRange'](_0x2a80b0['end'],'forward');if(_0x121381&&_0x121381['isCollapsed']){const _0xa3159=_0xc9aa50['createRange'](_0x2a80b0['start'],_0x121381['start']);_0xa3159['isEqual'](_0x2a80b0)||(_0xc9aa50['updateMarker'](_0x427ff1,{'range':_0xa3159}),_0x47536e=!0x0);}_0x47536e||(_0xc9aa50['removeMarker'](_0x427ff1),_0x47536e=!0x0);}return _0x47536e;});}}class Tt extends _0x385d2b{['afterInit'](){const _0xfe4153=this['editor'],_0x28df36=_0xfe4153['plugins']['get']('TrackChangesEditing');_0xfe4153['plugins']['has']('Uploadcare')&&(_0x28df36['enableCommand']('uploadcare'),_0xfe4153['plugins']['has']('UploadcareImageEdit')&&(_0x28df36['enableCommand']('uploadcareImageEdit'),_0x28df36['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x28df36['registerBlockAttribute']('uploadcareImageId'),_0x28df36['descriptionFactory']['registerDescriptionCallback'](_0x2c5272=>{if('attribute'!=_0x2c5272['type'])return;const {data:_0x4ae55e}=_0x2c5272;return _0x4ae55e&&'uploadcareImageId'==_0x4ae55e['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x385d2b{['afterInit'](){const _0x2257a9=this['editor'],_0x49269b=_0x2257a9['plugins']['get']('TrackChangesEditing');_0x2257a9['plugins']['has']('UndoEditing')&&(_0x49269b['enableCommand']('undo'),_0x49269b['enableCommand']('redo'));}}class Ut extends _0x385d2b{static get['requires'](){return[Ct];}['afterInit'](){const _0x5c867b=this['editor'];if(!_0x5c867b['plugins']['has']('TableCaptionEditing'))return;_0x5c867b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x385d2b{['tableProperties'];['tableCellProperties'];constructor(_0x5f0f5f){super(_0x5f0f5f),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 _0x22dd69=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x20bf34 of this['tableProperties'])_0x22dd69['enableCommand'](_0x20bf34,(_0x5d15d1,_0x393db1)=>{const _0xc5b085=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x20bf34,[_0xc5b085],this['tableProperties'],'tableProperties',_0x5d15d1,_0x393db1);});_0x22dd69['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x22dd69['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22dd69['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3bdb10,_0x259c8e)=>this['handleDiscardAction'](this['tableProperties'],_0x3bdb10,_0x259c8e)),_0x22dd69['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x74ab8e of this['tableCellProperties'])_0x22dd69['enableCommand'](_0x74ab8e,(_0x106785,_0x418484)=>{const _0x24b025=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x74ab8e,_0x24b025,this['tableCellProperties'],'tableCellProperties',_0x106785,_0x418484);});_0x22dd69['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x22dd69['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22dd69['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x229358,_0xf6d8e1)=>this['handleDiscardAction'](this['tableCellProperties'],_0x229358,_0xf6d8e1)),_0x22dd69['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x22dd69['descriptionFactory']['registerDescriptionCallback'](_0x1304d9=>this['handleSuggestionDescription'](_0x1304d9));}['_handlePropertyChange'](_0x23f52a,_0x3911d3,_0x3aa33b,_0x266a4c,_0x103904,_0x35fd6e){const _0x53c23e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x35fd6e['batch'],()=>{for(const _0x9ccd7c of _0x3911d3){if(this['_getSuggestion'](_0x9ccd7c,_0x266a4c))_0x103904(_0x35fd6e);else{const _0x1842ed={};for(const _0x2cfe40 of _0x3aa33b){const _0x1cc50a=_0x9ccd7c['getAttribute'](_0x2cfe40);void 0x0!==_0x1cc50a&&(_0x1842ed[_0x2cfe40]=_0x1cc50a);}_0x103904(_0x35fd6e),_0x53c23e['markBlockFormat'](_0x9ccd7c,{'commandParams':[_0x1842ed]},[],_0x266a4c);}}});}['handleDiscardAction'](_0x3a5504,_0x42dd32,_0x551637){const _0x16aded=_0x42dd32[0x0]['start']['nodeAfter'],_0x41b2e1=_0x551637['commandParams'][0x0];this['editor']['model']['change'](_0x451d31=>{for(const _0x31c142 of _0x3a5504)void 0x0!==_0x41b2e1[_0x31c142]?_0x451d31['setAttribute'](_0x31c142,_0x41b2e1[_0x31c142],_0x16aded):_0x451d31['removeAttribute'](_0x31c142,_0x16aded);});}['handleSuggestionDescription'](_0x1f7f0c){if(_0x1f7f0c['data'])switch(_0x1f7f0c['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'](_0x17b973,_0xbc8ceb){const _0x1aa623=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2840ed of _0x1aa623['getSuggestions']({'skipNotAttached':!0x0})){const _0x4bc712=_0x2840ed['getContainedElement']();if(_0x2840ed['subType']===_0xbc8ceb&&_0x4bc712===_0x17b973)return _0x2840ed;}return null;}}const u='$elementName';class p extends _0x385d2b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x147b02,_0x1120b7,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4440f9){super(_0x4440f9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x461daf,_0xd7be2e,_0x3b3a64,_0x2a360b)=>{this['_model']['change'](()=>{for(const _0x3b16fb of[..._0x2a360b,..._0x3b3a64])this['_model']['markers']['has'](_0x3b16fb)&&_0x4440f9['editing']['reconvertMarker'](_0x3b16fb);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4440f9['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(),_0x4440f9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4440f9['config']['get']('trackChanges.trackFormatChanges'),_0x4440f9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4440f9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4440f9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1cbd95=this['editor'],_0x26190f=(_0x38da71,_0x52d281)=>{if('attribute'!=_0x38da71)return'ck-suggestion-marker-'+_0x38da71;const _0x15ec9e=_0x52d281['split']('|')[0x0];return this['_isBlockAttribute'](_0x15ec9e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1cbd95['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x483baf=>{const {id:_0x38e942,authorId:_0x53ff6c,type:_0x634380,subType:_0x157a90}=this['_splitMarkerName'](_0x483baf['markerName']),_0x47efb0=['ck-suggestion-marker',_0x26190f(_0x634380,_0x157a90)];let _0x50960e=0xbb8;return this['activeMarkers']['includes'](_0x483baf['markerName'])&&(_0x47efb0['push']('ck-suggestion-marker--active'),_0x50960e=0xbc2),'deletion'==_0x634380&&(_0x50960e+=0x5),{'classes':_0x47efb0,'attributes':{'data-suggestion':_0x38e942,'data-author-id':_0x53ff6c},'priority':_0x50960e};}}),_0x1cbd95['conversion']['for']('dataDowncast')['add'](_0x17506b=>{_0x17506b['on']('addMarker:suggestion',(_0x1f5e29,_0x32cb3d,_0x228649)=>{if(!_0x228649['options']['showSuggestionHighlights'])return;const _0x11f76d=_0x32cb3d['item'];if(!_0x11f76d)return;const _0x3a7fbc=_0x228649['mapper']['toViewElement'](_0x11f76d);_0x1cbd95['model']['schema']['isObject'](_0x11f76d)&&_0x3a7fbc&&!_0x3a7fbc['getCustomProperty']('widget')&&_0x3a7fbc['is']('containerElement')&&_0x407821(_0x3a7fbc,_0x228649['writer']);},{'priority':'high'});}),_0x1cbd95['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x94dccf,_0x34950a)=>{if(!_0x34950a['options']['showSuggestionHighlights'])return null;const {id:_0xdc3e90,authorId:_0x1764f9,type:_0xf0e302,subType:_0x4a6a43}=this['_splitMarkerName'](_0x94dccf['markerName']);return{'classes':['ck-suggestion-marker',_0x26190f(_0xf0e302,_0x4a6a43)],'priority':0xbb8,'attributes':{'data-suggestion':_0xdc3e90,'data-author-id':_0x1764f9}};}});const _0x42268e=({showActiveMarkers:_0x5e6fe2=!0x0,isAttributeSuggestion:_0x2c7846=!0x1}={})=>(_0x2e6d0e,_0x53b9f3,_0x188a26)=>{if(!_0x53b9f3['item'])return;const {id:_0x36bcc9,authorId:_0x46c46c}=this['_splitMarkerName'](_0x53b9f3['markerName']);if(_0x2c7846){const _0x57a4d4=this['_suggestions']['get'](_0x36bcc9),_0x29c8bd=this['_getAttributeKey'](_0x57a4d4);if(!this['_isBlockAttribute'](_0x29c8bd))return;}if(_0x53b9f3['item']['is']('selection'))return void _0x188a26['consumable']['consume'](_0x53b9f3['item'],_0x2e6d0e['name']);const _0x3ba125=_0x188a26['mapper']['toViewElement'](_0x53b9f3['item']);if(_0x53b9f3['item']['is']('element')&&_0x1cbd95['model']['schema']['isBlock'](_0x53b9f3['item'])&&!_0x3ba125['getCustomProperty']('addHighlight')){_0x188a26['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3ba125),_0x188a26['writer']['setAttribute']('data-suggestion',_0x36bcc9,_0x3ba125),_0x188a26['writer']['setAttribute']('data-author-id',_0x46c46c,_0x3ba125),_0x188a26['mapper']['bindElementToMarker'](_0x3ba125,_0x53b9f3['markerName']),_0x5e6fe2&&(this['activeMarkers']['includes'](_0x53b9f3['markerName'])?_0x188a26['writer']['addClass']('ck-suggestion-marker--active',_0x3ba125):_0x188a26['writer']['removeClass']('ck-suggestion-marker--active',_0x3ba125));for(const _0xc9592f of _0x1cbd95['model']['createRangeIn'](_0x53b9f3['item'])['getItems']())_0x188a26['consumable']['consume'](_0xc9592f,_0x2e6d0e['name']);_0x188a26['consumable']['consume'](_0x53b9f3['item'],_0x2e6d0e['name']);}};_0x1cbd95['conversion']['for']('dataDowncast')['add'](_0x21581e=>{_0x21581e['on']('addMarker:suggestion:formatBlock',(_0xecaf2d,_0x217cdc,_0x4c9372)=>{_0x4c9372['options']['showSuggestionHighlights']&&_0x42268e({'showActiveMarkers':!0x1})(_0xecaf2d,_0x217cdc,_0x4c9372);},{'priority':'highest'});}),_0x1cbd95['conversion']['for']('dataDowncast')['add'](_0x214985=>{_0x214985['on']('addMarker:suggestion:attribute',(_0x5328a0,_0x2df598,_0x306247)=>{_0x306247['options']['showSuggestionHighlights']&&_0x42268e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5328a0,_0x2df598,_0x306247);},{'priority':'highest'});}),_0x1cbd95['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x327436,_0x4d30c2)=>{if(_0x4d30c2['options']['showSuggestionHighlights']){const {id:_0x484676,authorId:_0x10353b}=this['_splitMarkerName'](_0x327436);return _0x327436['includes'](':split')||_0x327436['includes'](':merge')?{'group':'suggestion','name':_0x327436['substr'](0xb),'attributes':{'data-suggestion':_0x484676,'data-author-id':_0x10353b}}:null;}return{'group':'suggestion','name':_0x327436['substr'](0xb)};}}),_0x1cbd95['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4aaffd,{writer:_0xafeedc})=>{let _0x70e135='suggestion:'+_0x4aaffd['getAttribute']('suggestion-type')+':'+_0x4aaffd['getAttribute']('id');return _0x4aaffd['getAttribute']('marker-count')&&(_0x70e135+=':'+_0x4aaffd['getAttribute']('marker-count')),_0xafeedc['createElement']('$marker',{'data-name':_0x70e135});}}),_0x1cbd95['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1cbd95['conversion']['for']('editingDowncast')['add'](_0xea6b39=>{_0xea6b39['on']('addMarker:suggestion:formatBlock',_0x42268e(),{'priority':'high'});}),_0x1cbd95['conversion']['for']('editingDowncast')['add'](_0x23b35c=>{_0x23b35c['on']('addMarker:suggestion:attribute',_0x42268e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1cbd95['conversion']['for']('editingDowncast')['add'](_0x456d16=>{_0x456d16['on']('removeMarker:suggestion:formatBlock',(_0x47238b,_0x1b12e5,_0x4a5c5e)=>{const _0x3c544e=_0x4a5c5e['mapper']['markerNameToElements'](_0x1b12e5['markerName']);if(_0x3c544e){for(const _0x53badd of _0x3c544e)_0x53badd['getCustomProperty']('addHighlight')||(_0x4a5c5e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x53badd),_0x4a5c5e['writer']['removeAttribute']('data-suggestion',_0x53badd),_0x4a5c5e['writer']['removeAttribute']('data-author-id',_0x53badd),_0x4a5c5e['mapper']['unbindElementFromMarkerName'](_0x53badd,_0x1b12e5['markerName']));}},{'priority':'high'});}),_0x1cbd95['conversion']['for']('editingDowncast')['add'](_0x35aa89=>{_0x35aa89['on']('removeMarker:suggestion:attribute',(_0x46b92b,_0x30702d,_0x30bb18)=>{const _0x5786cd=_0x30bb18['mapper']['markerNameToElements'](_0x30702d['markerName']);if(!_0x5786cd)return;const {id:_0x213f01}=this['_splitMarkerName'](_0x30702d['markerName']),_0x578f5e=this['_suggestions']['get'](_0x213f01),_0x2497fd=this['_getAttributeKey'](_0x578f5e);if(this['_isBlockAttribute'](_0x2497fd)){for(const _0x354294 of _0x5786cd)_0x354294['getCustomProperty']('addHighlight')||(_0x30bb18['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x354294),_0x30bb18['writer']['removeAttribute']('data-suggestion',_0x354294),_0x30bb18['writer']['removeAttribute']('data-author-id',_0x354294),_0x30bb18['mapper']['unbindElementFromMarkerName'](_0x354294,_0x30702d['markerName']));}},{'priority':'high'});}),_0x1cbd95['model']['document']['registerPostFixer'](_0x2c8a50=>{let _0x4a8f81=!0x1;const _0x20da1e=Array['from'](_0x1cbd95['model']['document']['differ']['getChangedMarkers']()),_0x452048=new Set();for(const {name:_0x267931,data:_0x135917}of _0x20da1e){const {group:_0x463791,type:_0x3aa297,subType:_0x39d25c,id:_0x47db02}=this['_splitMarkerName'](_0x267931);if('suggestion'!==_0x463791)continue;const _0xe93e9c=this['_suggestions']['get'](_0x47db02);if(null!=_0x135917['newRange']){'formatInline'==_0x3aa297&&(_0x4a8f81=_0x4a8f81||Jt(_0x135917['newRange'],_0x267931,_0x2c8a50,_0x1cbd95['model']['schema']));const _0x4362d4='attribute'==_0x3aa297&&this['_isBlockAttribute'](_0x39d25c['split']('|')[0x0]);if(_0x135917['newRange']['isCollapsed']||'$graveyard'==_0x135917['newRange']['root']['rootName']||'formatBlock'==_0x3aa297&&!Ht(_0x135917['newRange'])||_0x4362d4&&!Ht(_0x135917['newRange'])||'deletion'==_0x3aa297&&!(!Lt(_0x48112b=_0x135917['newRange'])&&!function(_0x4fcc1e){return _0x4fcc1e['start']['parent']==_0x4fcc1e['end']['nodeBefore']&&_0x4fcc1e['start']['isAtEnd'];}(_0x48112b)))_0x2c8a50['removeMarker'](_0x267931),_0x4a8f81=!0x0;else{if(!_0xe93e9c||!_0xe93e9c['isInContent'])continue;if(_0x135917['newRange']&&_0x135917['oldRange']&&_0x135917['newRange']['isEqual'](_0x135917['oldRange']))continue;_0x452048['add'](_0xe93e9c);}}}var _0x48112b;return _0x452048['size']>0x0&&(_0x4a8f81=!!this['_joinWithAdjacentSuggestions'](_0x452048)||_0x4a8f81),_0x4a8f81;}),_0x1cbd95['model']['document']['registerPostFixer'](_0xa47a08=>{let _0x20ad9b=!0x1;for(const _0x2cc420 of _0x1cbd95['model']['document']['differ']['getChanges']())if('insert'==_0x2cc420['type'])for(const _0x4d7ee7 of this['_suggestions']['values']()){if(_0x4d7ee7['isMultiRange']||!_0x4d7ee7['isInContent'])continue;const _0x2377fa='formatBlock'==_0x4d7ee7['type'],_0x328e6e=this['_getAttributeKey'](_0x4d7ee7),_0xafaf36=_0x328e6e&&this['_isBlockAttribute'](_0x328e6e);if(!_0x2377fa&&!_0xafaf36)continue;const _0x307be0=_0x4d7ee7['getFirstRange']();if(_0x307be0['start']['parent']!=_0x307be0['end']['parent']&&!_0x307be0['end']['isAtEnd']){const _0x4bf2e4=_0x1cbd95['model']['createPositionAt'](_0x307be0['start']['nodeAfter'],'end'),_0x2a2dfb=_0x1cbd95['model']['createRange'](_0x307be0['start'],_0x4bf2e4);_0xa47a08['updateMarker'](_0x4d7ee7['getFirstMarker'](),{'range':_0x2a2dfb}),_0x20ad9b=!0x0;}}return _0x20ad9b;}),_0x1cbd95['model']['document']['registerPostFixer'](_0x34368e=>this['_processAttributeChanges'](_0x34368e)),_0x1cbd95['model']['document']['registerPostFixer'](_0x3eb38e=>!_0x3eb38e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3eb38e)),_0x1cbd95['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1cbd95['model']['document']['on']('change:data',(_0x20adcf,_0x3a9491)=>{if(!_0x3a9491['isLocal']||_0x3a9491['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1114b6=_0x1cbd95['model']['document']['differ']['getChanges']();if(0x0==_0x1114b6['length'])return;const _0x132cae=[],_0x503687=_0x1114b6['filter'](_0x4cd1e3=>'attribute'==_0x4cd1e3['type']),_0x2bda5c=_0x1114b6['filter'](_0x39ad7c=>'insert'==_0x39ad7c['type']&&'$text'!=_0x39ad7c['name']);for(const _0x4d5fcb of _0x503687)this['_isRegisteredAttribute'](_0x4d5fcb['attributeKey'])&&_0x132cae['push']({'key':_0x4d5fcb['attributeKey'],'newValue':_0x4d5fcb['attributeNewValue'],'oldValue':_0x4d5fcb['attributeOldValue'],'range':qt(_0x4d5fcb['range'],_0x1cbd95['model'])});for(const _0x422d71 of _0x2bda5c){if('rename'!=_0x422d71['action']&&'refresh'!=_0x422d71['action'])continue;const _0x5ddccb=zt(_0x422d71['position']['nodeAfter'],_0x1cbd95['model']),_0xb06279=_0x422d71['before'];'rename'==_0x422d71['action']&&_0x132cae['push']({'key':u,'newValue':_0x422d71['name'],'oldValue':_0xb06279['name'],'range':_0x5ddccb});for(const [_0x11bb43,_0x304ddd]of _0xb06279['attributes']){if(!this['_isRegisteredAttribute'](_0x11bb43))continue;const _0xdfb2b0=_0x422d71['attributes']['get'](_0x11bb43);_0x304ddd!==_0xdfb2b0&&_0x132cae['push']({'key':_0x11bb43,'newValue':_0xdfb2b0,'oldValue':_0x304ddd,'range':_0x5ddccb});}for(const [_0x216eef,_0x3e0d35]of _0x422d71['attributes'])this['_isRegisteredAttribute'](_0x216eef)&&(_0xb06279['attributes']['has'](_0x216eef)||_0x132cae['push']({'key':_0x216eef,'newValue':_0x3e0d35,'oldValue':null,'range':_0x5ddccb}));}0x0!=_0x132cae['length']&&_0x1cbd95['model']['enqueueChange'](_0x3a9491,_0x36e944=>{const _0x3cbca4=_0x38a072();for(const {range:_0x869378,key:_0x1c1b60,oldValue:_0x57b8b7,newValue:_0x182c61}of _0x132cae)this['markAttributeChange'](_0x869378,_0x1c1b60,_0x57b8b7,_0x182c61,{'groupId':_0x3cbca4});this['_reduceExistingSuggestions'](_0x36e944,_0x132cae);});},{'priority':'lowest'}),_0x1cbd95['model']['markers']['on']('update:suggestion',(_0x59e090,_0x55bbeb,_0x31ecdc)=>{if(null==_0x31ecdc){const {id:_0x5e8e37}=this['_splitMarkerName'](_0x55bbeb['name']),_0x5bf0fa=this['_suggestions']['get'](_0x5e8e37);_0x5bf0fa&&_0x5bf0fa['addMarkerName'](_0x55bbeb['name']);}}),_0x1cbd95['model']['document']['on']('change:data',()=>{const _0x386367=Array['from'](_0x1cbd95['model']['document']['differ']['getChangedMarkers']())['filter'](_0x32b432=>'suggestion'===this['_splitMarkerName'](_0x32b432['name'])['group']);if(0x0===_0x386367['length'])return;_0x386367['sort']((_0x313ea7,_0x4bc0ab)=>{const _0x4978a6=_0x313ea7['data']['oldRange'],_0x253e98=_0x4bc0ab['data']['oldRange'];return null===_0x4978a6&&null===_0x253e98?0x0:null===_0x4978a6&&null!==_0x253e98?-0x1:null!==_0x4978a6&&null===_0x253e98?0x1:_0x4978a6['start']['isBefore'](_0x253e98['start'])?-0x1:0x1;});const _0x4038ed=new Set(),_0xdd2495=new Set();for(const {name:_0x2ba9c4,data:_0x18c14c}of _0x386367){const {id:_0x522b5b}=this['_splitMarkerName'](_0x2ba9c4);if(null===_0x18c14c['oldRange']){const _0x1cc6fd=this['_handleNewSuggestionMarker'](_0x2ba9c4);_0xdd2495['add'](_0x1cc6fd);}else{const _0xf0c752=this['_suggestions']['get'](_0x522b5b);null!==_0x18c14c['newRange']||_0xf0c752['isInContent']?(_0x4038ed['add'](_0xf0c752['head']),_0xdd2495['add'](_0xf0c752)):this['_removeSuggestion'](_0xf0c752);}}_0xdd2495['size']>0x0&&this['_refreshSuggestionsChain'](_0xdd2495);for(const _0x19962d of _0x4038ed)this['fire']('suggestionChanged',_0x19962d);}),_0x1cbd95['model']['on']('applyOperation',(_0x458a37,_0x463ec4)=>{const _0x5707c8=_0x463ec4[0x0];if(!this['_suggestions']['size'])return;if(!_0x5707c8['isDocumentOperation'])return;if(_0x5707c8['batch']['isUndo']||!_0x5707c8['batch']['isLocal'])return;let _0x3ea3e2,_0x45fb54;switch(_0x5707c8['type']){case'insert':_0x3ea3e2=_0x1cbd95['model']['createPositionAt'](_0x5707c8['position']),_0x45fb54=_0x3ea3e2['getShiftedBy'](_0x5707c8['howMany']);break;case'split':_0x3ea3e2=_0x1cbd95['model']['createPositionAt'](_0x5707c8['splitPosition']),_0x45fb54=_0x1cbd95['model']['createPositionAt'](_0x5707c8['moveTargetPosition']);break;case'move':_0x3ea3e2=_0x1cbd95['model']['createPositionAt'](_0x5707c8['targetPosition']),_0x45fb54=_0x3ea3e2['getShiftedBy'](_0x5707c8['howMany']);break;default:return;}const _0x3bd1cc=_0x1cbd95['model']['createRange'](_0x3ea3e2,_0x45fb54);_0x1cbd95['model']['change'](()=>{for(const {suggestion:_0x225b23,meta:_0x29fca0}of this['_findSuggestions'](_0x3bd1cc)){if(_0x225b23['isMultiRange'])continue;if('formatInline'==_0x225b23['type'])continue;const _0x2d0308=this['_getAttributeKey'](_0x225b23);if(_0x2d0308&&this['_isBlockAttribute'](_0x2d0308)&&'split'!=_0x5707c8['type'])continue;const _0x319836=_0x225b23['data']&&_0x225b23['data']['multipleBlocks'];('formatBlock'!=_0x225b23['type']||'split'==_0x5707c8['type']&&!_0x319836)&&(_0x29fca0['containsRangeInObject']||'insertion'==_0x225b23['type']&&_0x29fca0['isOwn']||_0x225b23['getFirstRange']()['containsRange'](_0x3bd1cc)&&this['_breakSuggestionMarker'](_0x225b23,_0x3ea3e2,_0x45fb54));}});},{'priority':'lowest'}),_0x1cbd95['model']['on']('deleteContent',(_0x2a3881,_0x4d8d70)=>{const _0x11b97e=_0x4d8d70[0x0],_0xffb13b=_0x4d8d70[0x1];if(_0xffb13b&&_0xffb13b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x11b97e['isCollapsed'])return;const _0x7b292c=_0x1cbd95['model']['schema'],{start:_0x5941cf,end:_0x576754}=_0x11b97e['getFirstRange'](),_0x1bb519=_0x5941cf['nodeAfter']&&_0x7b292c['isLimit'](_0x5941cf['nodeAfter'])?null:_0x7b292c['getNearestSelectionRange'](_0x5941cf,'forward'),_0x2d7c85=_0x576754['nodeBefore']&&_0x7b292c['isLimit'](_0x576754['nodeBefore'])?null:_0x7b292c['getNearestSelectionRange'](_0x576754,'backward'),_0x191a54=_0x1cbd95['model']['createRange'](_0x1bb519?_0x1bb519['start']:_0x5941cf,_0x2d7c85?_0x2d7c85['end']:_0x576754);_0x1cbd95['model']['change'](_0xfcd849=>{this['markDeletion'](_0x191a54);const _0x4d658f=_0x1cbd95['model']['schema']['getNearestSelectionRange'](_0x191a54['start']);_0x11b97e['is']('documentSelection')?_0xfcd849['setSelection'](_0x4d658f):_0x11b97e['setTo'](_0x4d658f);}),_0x2a3881['stop']();},{'priority':_0x1dda41['normal']+0xa}),_0x1cbd95['model']['on']('insertContent',(_0x576282,_0x244da9)=>{const _0x419d3d=_0x244da9[_0x244da9['length']-0x1];_0x419d3d&&_0x419d3d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1cbd95['model']['change'](()=>{let _0x55838e=_0x1cbd95['model']['insertContent'](_0x244da9[0x0],_0x244da9[0x1],_0x244da9[0x2],{'forceDefaultExecution':!0x0});if(!_0x55838e)return;_0x576282['return']=_0x55838e['clone']();const _0x436e3c=_0x55838e['end']['nodeBefore'],_0x3ae89a=_0x1cbd95['model']['schema'];_0x436e3c&&_0x3ae89a['isBlock'](_0x436e3c)&&!_0x3ae89a['isObject'](_0x436e3c)&&(_0x55838e=_0x1cbd95['model']['createRange'](_0x55838e['start'],_0x1cbd95['model']['createPositionAt'](_0x436e3c,'end'))),this['markInsertion'](_0x55838e);}),_0x576282['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x170603=new x(_0x1cbd95,this['_suggestions']);_0x1cbd95['commands']['add']('acceptSuggestion',_0x170603),this['enableCommand']('acceptSuggestion');const _0x2286a4=new O(_0x1cbd95,this['_suggestions']);_0x1cbd95['commands']['add']('discardSuggestion',_0x2286a4),this['enableCommand']('discardSuggestion'),_0x1cbd95['commands']['add']('acceptAllSuggestions',new R(_0x1cbd95,_0x170603,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1cbd95['commands']['add']('discardAllSuggestions',new R(_0x1cbd95,_0x2286a4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1cbd95['commands']['add']('acceptSelectedSuggestions',new E(_0x1cbd95,_0x170603,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1cbd95['commands']['add']('discardSelectedSuggestions',new E(_0x1cbd95,_0x2286a4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2e2b6e=_0x1cbd95['plugins']['get']('CommentsRepository');this['listenTo'](_0x2e2b6e,'addComment',(_0xa64c57,{threadId:_0x4c3739})=>{const _0xc289f6=this['_suggestions']['get'](_0x4c3739);_0xc289f6&&_0xc289f6['commentThread']&&0x1===_0xc289f6['commentThread']['length']&&this['_updateSuggestionData'](_0x4c3739,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2e2b6e,'removeComment',(_0x3ce9db,{threadId:_0x48596})=>{const _0x131995=this['_suggestions']['get'](_0x48596);_0x131995&&_0x131995['commentThread']&&!_0x131995['commentThread']['length']&&this['_updateSuggestionData'](_0x48596,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2c295e){const _0x57ca42=_0xba93fb([0x52,0x56,0x58,0x6a,0x32,0x59,0x79,0x61,0x4d,0x50,0x69,0x72,0x48,0x78,0x41,0x57,0x49,0x39,0x35,0x38,0x6c,0x42,0x63,0x4c,0x4a,0x43,0x68,0x77,0x47,0x70,0x33,0x54,0x6b,0x5a,0x65,0x37,0x4b,0x74,0x6e,0x36,0x53,0x71,0x55,0x45,0x64,0x34,0x6d,0x4f,0x6f,0x31,0x76,0x4e,0x46,0x67,0x30,0x7a,0x44,0x75,0x51,0x73,0x66,0x62]),_0x31e197=0x68be6f3,_0x6bc86a=0x68c8f6b^_0x31e197,_0x62e2c8=window[_0xba93fb([0x44,0x61,0x74,0x65])][_0xba93fb([0x6e,0x6f,0x77])](),_0x366ab0=_0x2c295e[_0xba93fb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1936a1=new window[(_0xba93fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x392fe9=>{_0x366ab0[_0xba93fb([0x6f,0x6e,0x63,0x65])](_0xba93fb([0x72,0x65,0x61,0x64,0x79]),_0x392fe9);}),_0x426907={[_0xba93fb([0x6b,0x74,0x79])]:_0xba93fb([0x45,0x43]),[_0xba93fb([0x75,0x73,0x65])]:_0xba93fb([0x73,0x69,0x67]),[_0xba93fb([0x63,0x72,0x76])]:_0xba93fb([0x50,0x2d,0x32,0x35,0x36]),[_0xba93fb([0x78])]:_0xba93fb([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]),[_0xba93fb([0x79])]:_0xba93fb([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]),[_0xba93fb([0x61,0x6c,0x67])]:_0xba93fb([0x45,0x53,0x32,0x35,0x36])},_0x8fae3b=_0x366ab0[_0xba93fb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xba93fb([0x67,0x65,0x74])](_0xba93fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ec290(){let _0x9757f8,_0x2beab6=null,_0x40c7e5=null;try{if(_0x8fae3b==_0xba93fb([0x47,0x50,0x4c]))return _0xba93fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9757f8=_0x39f006(),!_0x9757f8)return _0xba93fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9757f8[_0xba93fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40c7e5=_0x6c1298(_0x9757f8[_0xba93fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9757f8[_0xba93fb([0x6a,0x74,0x69])])),await _0x5c5046()?_0x3691de()?_0x4637fd()?_0xba93fb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x426ffe()?(_0x9757f8[_0xba93fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xba93fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2beab6=_0x10621a(_0xba93fb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9757f8[_0xba93fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xba93fb([0x74,0x72,0x69,0x61,0x6c])&&(_0x2beab6=_0x10621a(_0xba93fb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1feb42()):_0xba93fb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xba93fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xba93fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xba93fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4637fd(){const _0x50f2ab=[_0xba93fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xba93fb([0x74,0x72,0x69,0x61,0x6c])][_0xba93fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9757f8[_0xba93fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x62e2c8/0x3e8:0xe10*_0x6bc86a;return _0x9757f8[_0xba93fb([0x65,0x78,0x70])]<_0x50f2ab;}function _0x3691de(){const _0x365dc6=_0x9757f8[_0xba93fb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x365dc6)return!0x1;if(_0x365dc6[_0xba93fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba93fb([0x2a])))return!0x0;if(_0x365dc6[_0xba93fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba93fb([0x54,0x43])))return!0x0;if(_0x365dc6[_0xba93fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba93fb([0x52,0x54,0x43]))){if(_0x48d6c3())return!0x0;if(_0x431e4c()||_0x1c92d3())return!0x0;}return!0x1;}function _0x426ffe(){const _0x186779=_0x9757f8[_0xba93fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x186779||0x0==_0x186779[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4cf5b6}=new URL(window[_0xba93fb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x186779[_0xba93fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cf5b6))return!0x0;const _0x1ad579=_0x4cf5b6[_0xba93fb([0x73,0x70,0x6c,0x69,0x74])](_0xba93fb([0x2e]));return _0x186779[_0xba93fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x232765=>_0x232765[_0xba93fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba93fb([0x2a])))[_0xba93fb([0x6d,0x61,0x70])](_0x2b3b66=>_0x2b3b66[_0xba93fb([0x73,0x70,0x6c,0x69,0x74])](_0xba93fb([0x2e])))[_0xba93fb([0x73,0x6f,0x6d,0x65])](_0x42d9b3=>_0x1ad579[_0xba93fb([0x65,0x76,0x65,0x72,0x79])]((_0x30d5cd,_0x417fdd)=>_0x42d9b3[_0x417fdd]===_0x30d5cd||_0x42d9b3[_0x417fdd]===_0xba93fb([0x2a])));}function _0x1feb42(){return _0x2beab6&&_0x40c7e5?new window[(_0xba93fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x424936,_0x3be776)=>{_0x2beab6[_0xba93fb([0x74,0x68,0x65,0x6e])](_0x424936,_0x3be776),_0x40c7e5[_0xba93fb([0x74,0x68,0x65,0x6e])](_0x32aa58=>{_0x32aa58!=_0xba93fb([0x56,0x61,0x6c,0x69,0x64])&&_0x424936(_0x32aa58);},_0x3be776);}):_0x2beab6||_0x40c7e5||_0xba93fb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6c1298(_0x1b1e56,_0x3fec0a){return new window[(_0xba93fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31f68f=>{if(_0x1ff31f())return _0x31f68f(_0xba93fb([0x56,0x61,0x6c,0x69,0x64]));_0x308019(),_0x366ab0[_0xba93fb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xba93fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x525260=!0x1;const _0x48884a=_0x38a072();function _0x55f989(_0x4c7c98){return!!_0x4c7c98&&(typeof _0x4c7c98===_0xba93fb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4c7c98===_0xba93fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4c7c98[_0xba93fb([0x74,0x68,0x65,0x6e])]===_0xba93fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4c7c98[_0xba93fb([0x63,0x61,0x74,0x63,0x68])]===_0xba93fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1cefb1(_0x3e2aa3){_0x3b9370(_0x3e2aa3)[_0xba93fb([0x74,0x68,0x65,0x6e])](_0x10230e=>{if(!_0x10230e||_0x10230e[_0xba93fb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xba93fb([0x6f,0x6b]))return _0xba93fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a470a(_0x2fd252(_0x48884a+_0x3fec0a))!=_0x10230e[_0xba93fb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xba93fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xba93fb([0x56,0x61,0x6c,0x69,0x64]);})[_0xba93fb([0x74,0x68,0x65,0x6e])](_0x97033b=>(_0x4044dd(),_0x97033b),()=>{const _0x3b23ee=_0x577c3f();return null==_0x3b23ee?(_0x4044dd(),_0xba93fb([0x56,0x61,0x6c,0x69,0x64])):_0xba93fb(_0x62e2c8-_0x3b23ee>(0x228762f3^_0x31e197)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xba93fb([0x74,0x68,0x65,0x6e])](_0x31f68f)[_0xba93fb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x31f68f(_0xba93fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x439f38=0x6bd0873^_0x31e197;function _0x4044dd(){const _0x28fa55=_0xba93fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a470a(_0x2fd252(_0x1b1e56)),_0x3473c4=_0x4b7378(_0x3a470a(window[_0xba93fb([0x4d,0x61,0x74,0x68])][_0xba93fb([0x63,0x65,0x69,0x6c])](_0x62e2c8/_0x439f38)));window[_0xba93fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xba93fb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28fa55,_0x3473c4);}function _0x577c3f(){const _0x41697e=_0xba93fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a470a(_0x2fd252(_0x1b1e56)),_0x41021c=window[_0xba93fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xba93fb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41697e);return _0x41021c?window[_0xba93fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b7378(_0x41021c),0x10)*_0x439f38:null;}function _0x3b9370(_0x5ac0f3){return new window[(_0xba93fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cfda4,_0x5214cb)=>{_0x5ac0f3[_0xba93fb([0x74,0x68,0x65,0x6e])](_0x2cfda4,_0x5214cb),window[_0xba93fb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5214cb,0x68a3233^_0x31e197);});}}_0x366ab0[_0xba93fb([0x6f,0x6e])](_0xba93fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b0cce,_0x11d122)=>{if(_0x11d122[0x0]!=_0x1b1e56)return _0x31f68f(_0xba93fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11d122[0x1]={..._0x11d122[0x1],[_0xba93fb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x48884a};},{[_0xba93fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xba93fb([0x68,0x69,0x67,0x68])}),_0x366ab0[_0xba93fb([0x6f,0x6e])](_0xba93fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15294f=>{_0x55f989(_0x15294f[_0xba93fb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x525260=!0x0,_0x1cefb1(_0x15294f[_0xba93fb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xba93fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xba93fb([0x6c,0x6f,0x77])}),_0x1936a1[_0xba93fb([0x74,0x68,0x65,0x6e])](()=>{_0x525260||_0x31f68f(_0xba93fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ff31f(){return _0x366ab0[_0xba93fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xba93fb([0x76,0x69,0x65,0x77])][_0xba93fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xba93fb([0x61,0x75,0x74,0x6f]);}function _0x308019(){_0x366ab0[_0xba93fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xba93fb([0x76,0x69,0x65,0x77])][_0xba93fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xba93fb([0x61,0x75,0x74,0x6f]);}}function _0x10621a(_0xc1abd9){const _0x2928ae=[new window[(_0xba93fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47bc84=>setTimeout(_0x47bc84,0x682d83f^_0x31e197)),_0x1936a1[_0xba93fb([0x74,0x68,0x65,0x6e])](()=>new window[(_0xba93fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e9c47=>{let _0x4dcefe=0x0;_0x366ab0[_0xba93fb([0x6d,0x6f,0x64,0x65,0x6c])][_0xba93fb([0x6f,0x6e])](_0xba93fb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x24b476,_0x567194)=>{_0x567194[0x0][_0xba93fb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4dcefe++,_0x4dcefe==(0x68be70b^_0x31e197)&&(_0x5e9c47(),_0x24b476[_0xba93fb([0x6f,0x66,0x66])]());});}))];return window[_0xba93fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xba93fb([0x72,0x61,0x63,0x65])](_0x2928ae)[_0xba93fb([0x74,0x68,0x65,0x6e])](()=>_0xc1abd9);}async function _0x3d9cc5(){await _0x1936a1,_0x366ab0[_0xba93fb([0x6d,0x6f,0x64,0x65,0x6c])][_0xba93fb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2868c1,_0x366ab0[_0xba93fb([0x6d,0x6f,0x64,0x65,0x6c])][_0xba93fb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2868c1,_0x366ab0[_0xba93fb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xba93fb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x48d6c3(){return _0x227dc9(_0xba93fb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2e40f2(_0xba93fb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xba93fb([0x73,0x74,0x61,0x74,0x65])]==_0xba93fb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x431e4c(){return _0x227dc9(_0xba93fb([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 _0x1c92d3(){return _0x227dc9(_0xba93fb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x204e6e(_0x3f5d87){const _0x9d209b=_0x1a98ec();_0x366ab0[_0x9d209b]=_0xba93fb([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f5d87,_0x3f5d87!=_0xba93fb([0x56,0x61,0x6c,0x69,0x64])&&_0x3d9cc5();}function _0x1a98ec(){const _0x2e1d77=window[_0xba93fb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xba93fb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xba93fb([0x6e,0x6f,0x77])]())[_0xba93fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xba93fb([0x2e]),'');let _0x54b431=_0xba93fb([0x52]);for(let _0x22f0d3=0x0;_0x22f0d3<_0x2e1d77[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22f0d3+=0x2){let _0x3270d1=window[_0xba93fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e1d77[_0xba93fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22f0d3,_0x22f0d3+0x2));_0x3270d1>=_0x57ca42[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3270d1-=_0x57ca42[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x54b431+=_0x57ca42[_0x3270d1];}return _0x54b431;}function _0x39f006(){const _0x376e6c=_0x8fae3b[_0xba93fb([0x73,0x70,0x6c,0x69,0x74])](_0xba93fb([0x2e]));if(0x3!=_0x376e6c[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51d686(_0x376e6c[0x1]);function _0x51d686(_0x4cce73){const _0x486a5c=_0x1b68c8(_0x4cce73);return _0x486a5c&&_0x46cf4a()?_0x486a5c:null;function _0x46cf4a(){const _0x5bbfda=_0x486a5c[_0xba93fb([0x6a,0x74,0x69])],_0x9aa598=window[_0xba93fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bbfda[_0xba93fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bbfda[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x192c62={..._0x486a5c,[_0xba93fb([0x6a,0x74,0x69])]:_0x5bbfda[_0xba93fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5bbfda[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x192c62[_0xba93fb([0x76,0x63])],_0x2fd252(_0x192c62)==_0x9aa598;}}}async function _0x5c5046(){let _0x460694=!0x0;try{const _0x35570c=_0x8fae3b[_0xba93fb([0x73,0x70,0x6c,0x69,0x74])](_0xba93fb([0x2e])),[_0x434794,_0x6f1897,_0x2e5b0d]=_0x35570c;return _0x764f58(_0x434794),await _0x4df38b(_0x434794,_0x6f1897,_0x2e5b0d),_0x460694;}catch{return!0x1;}function _0x764f58(_0x1a8d27){const _0x25bc9f=_0x1b68c8(_0x1a8d27);_0x25bc9f&&_0x25bc9f[_0xba93fb([0x61,0x6c,0x67])]==_0xba93fb([0x45,0x53,0x32,0x35,0x36])||(_0x460694=!0x1);}async function _0x4df38b(_0x22d50d,_0x48bb1d,_0x37fae2){const _0x37ab2b=window[_0xba93fb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xba93fb([0x66,0x72,0x6f,0x6d])](_0x562c90(_0x37fae2),_0x2004cd=>_0x2004cd[_0xba93fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3511af=new window[(_0xba93fb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xba93fb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22d50d+_0xba93fb([0x2e])+_0x48bb1d),_0x27d200=window[_0xba93fb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xba93fb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27d200)return;const _0x10e84d=await _0x27d200[_0xba93fb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xba93fb([0x6a,0x77,0x6b]),_0x426907,{[_0xba93fb([0x6e,0x61,0x6d,0x65])]:_0xba93fb([0x45,0x43,0x44,0x53,0x41]),[_0xba93fb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xba93fb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xba93fb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27d200[_0xba93fb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xba93fb([0x6e,0x61,0x6d,0x65])]:_0xba93fb([0x45,0x43,0x44,0x53,0x41]),[_0xba93fb([0x68,0x61,0x73,0x68])]:{[_0xba93fb([0x6e,0x61,0x6d,0x65])]:_0xba93fb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10e84d,_0x37ab2b,_0x3511af)||(_0x460694=!0x1);}}function _0x1b68c8(_0x4a625a){return _0x4a625a[_0xba93fb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xba93fb([0x65,0x79]))?JSON[_0xba93fb([0x70,0x61,0x72,0x73,0x65])](_0x562c90(_0x4a625a)):null;}function _0x562c90(_0x5c7220){return window[_0xba93fb([0x61,0x74,0x6f,0x62])](_0x5c7220[_0xba93fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xba93fb([0x2b]))[_0xba93fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xba93fb([0x2f])));}function _0x2fd252(_0x40c1fc){let _0x2d1b13=0x1505;function _0x3e9c9c(_0x520ffb){for(let _0x3a11ea=0x0;_0x3a11ea<_0x520ffb[_0xba93fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a11ea++){const _0xf7d95b=_0x520ffb[_0xba93fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a11ea);_0x2d1b13=(_0x2d1b13<<0x5)+_0x2d1b13+_0xf7d95b,_0x2d1b13&=_0x2d1b13;}}function _0x282b7d(_0x305b4b){Array[_0xba93fb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x305b4b)?_0x305b4b[_0xba93fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x282b7d):_0x305b4b&&typeof _0x305b4b==_0xba93fb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xba93fb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x305b4b)[_0xba93fb([0x73,0x6f,0x72,0x74])]()[_0xba93fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xbdea79,_0x1799e1])=>{_0x3e9c9c(_0xbdea79),_0x282b7d(_0x1799e1);}):_0x3e9c9c(window[_0xba93fb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x305b4b));}return _0x282b7d(_0x40c1fc),_0x2d1b13>>>0x0;}function _0x3a470a(_0x3c6570){return _0x3c6570[_0xba93fb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xba93fb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xba93fb([0x30]));}function _0x4b7378(_0x375628){return _0x375628[_0xba93fb([0x73,0x70,0x6c,0x69,0x74])]('')[_0xba93fb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xba93fb([0x6a,0x6f,0x69,0x6e])]('');}function _0x227dc9(_0x30bb43){return _0x366ab0[_0xba93fb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xba93fb([0x68,0x61,0x73])](_0x30bb43);}function _0x2e40f2(_0x48cd37){return _0x366ab0[_0xba93fb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xba93fb([0x67,0x65,0x74])](_0x48cd37);}function _0x2868c1(){}function _0xba93fb(_0x48a387){return _0x48a387['map'](_0x35928c=>String['fromCharCode'](_0x35928c))['join']('');}_0x204e6e(await _0x3ec290());}(this);}set['adapter'](_0x3c8f97){if(this['_adapter'])throw new _0x5e9249('track-changes-adapter-already-set',this);this['_adapter']=_0x3c8f97;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4908d8=!0x1,toJSON:_0x4d8436=!0x1}={}){const _0x83f4b6=[];for(const _0x1894ed of this['_suggestions']['values']())_0x4908d8&&!_0x1894ed['isInContent']||_0x83f4b6['push'](_0x1894ed);return _0x4d8436?_0x83f4b6['map'](_0x28f29b=>_0x28f29b['toJSON']()):_0x83f4b6;}['getSuggestion'](_0x18030d){const _0x1f7e13=this['_suggestions']['get'](_0x18030d);if(!_0x1f7e13)throw new _0x5e9249('track-changes-suggestion-not-found',this);return _0x1f7e13;}['hasSuggestion'](_0x52e2e8){return this['_suggestions']['has'](_0x52e2e8);}['addSuggestionData'](_0x5cf2d3){const {authorId:_0x3b7957,id:_0x447ce1,originalSuggestionId:_0x2eae96,attributes:_0x1e209f}=_0x5cf2d3,[_0x194ae5,_0x5e1e68]=_0x5cf2d3['type']['split'](':'),_0x564746=this['_suggestions']['get'](_0x447ce1)||this['_createSuggestion'](_0x194ae5,_0x5e1e68,_0x447ce1,_0x3b7957,_0x1e209f,_0x2eae96);if(this['_addThreadToSuggestion'](_0x564746),this['_checkSuggestionCorrectness'](_0x564746,_0x194ae5,_0x5e1e68||null,_0x3b7957),_0x564746['createdAt']=_0x5cf2d3['createdAt'],_0x564746['_isDataLoaded']=!0x0,_0x1e209f&&_0x1e209f['@external']){const _0x316345=_0x1e209f['@external'],_0x13e68d=this['_getExternalAuthor'](_0x316345['authorName']);_0x564746['authoredAt']=_0x316345['createdAt'],_0x564746['author']=_0x13e68d,_0x564746['isExternal']=!0x0;}else _0x564746['authoredAt']=_0x5cf2d3['createdAt'];switch(_0x5cf2d3['data']&&(_0x564746['data']=_0x5cf2d3['data']),_0x5cf2d3['attributes']&&(_0x564746['attributes']=_0x5cf2d3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x564746['_saved']=!0x0),this['_suggestionState']['get'](_0x564746)){case'notReady':this['_suggestionState']['set'](_0x564746,'dataReady');break;case'markerReady':_0x564746['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x564746])),this['_refreshSuggestionsChain'](new Set([_0x564746])),this['_suggestionState']['set'](_0x564746,'ready'),this['fire']('suggestionLoaded',_0x564746)):this['_suggestionState']['set'](_0x564746,'removed');}return _0x564746;}['acceptSuggestion'](_0x385828){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x425aff of _0x385828['getAllAdjacentSuggestions']())_0x425aff['accept']();});});}['discardSuggestion'](_0x1d23cc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xdaa764 of _0x1d23cc['getAllAdjacentSuggestions']())_0xdaa764['discard']();});});}['enableCommand'](_0xbfc425,_0x2eacc9){const _0x1b6ad3=this['editor']['commands']['get'](_0xbfc425);if(!_0x1b6ad3)throw new _0x5e9249('track-changes-command-not-found',this,{'commandName':_0xbfc425});if(this['_enabledCommands']['has'](_0x1b6ad3))throw new _0x5e9249('track-changes-enable-command-twice',this,{'commandName':_0xbfc425});this['_enabledCommands']['add'](_0x1b6ad3),_0x2eacc9&&_0x1b6ad3['on']('execute',(_0x2e57c7,_0x245ca9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x245ca9['length']>0x0&&_0x245ca9[_0x245ca9['length']-0x1]&&_0x245ca9[_0x245ca9['length']-0x1]['forceDefaultExecution']?_0x245ca9['pop']():(_0x2e57c7['return']=_0x2eacc9((..._0x92e3ce)=>_0x1b6ad3['execute'](..._0x92e3ce,{'forceDefaultExecution':!0x0}),..._0x245ca9),_0x2e57c7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x480bf3){let _0x7e919a,_0x22962e;const _0x3a8269=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x7e919a=_0x480bf3();}catch(_0x2fcaa2){_0x22962e=_0x2fcaa2;}return _0x3a8269||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x22962e&&_0x5e9249['rethrowUnexpectedError'](_0x22962e,this),_0x7e919a;}['markInsertion'](_0x6095df,_0x315a77=null,_0x4dd6d7={}){if(_0x6095df['isCollapsed'])return null;const _0x3e118c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4dd6d7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x48c6d3,meta:_0x2dc12f}of this['_findSuggestions'](_0x6095df,'insertion'))if(_0x2dc12f['isOwn']){if(!_0x2dc12f['isNextTo']){if(_0x2dc12f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x48c6d3,_0x4dd6d7))continue;return _0x48c6d3;}if(Xt(_0x48c6d3,_0x4dd6d7))return _0x48c6d3;this['_breakSuggestionMarker'](_0x48c6d3,_0x6095df['start'],_0x6095df['end']);break;}if(_0x315a77==_0x48c6d3['subType']&&Xt(_0x48c6d3,_0x4dd6d7)){const _0x490f15=_0x48c6d3['getFirstRange']();return _0x490f15['start']['isEqual'](_0x6095df['end'])?this['_setSuggestionRange'](_0x48c6d3,this['_model']['createRange'](_0x6095df['start'],_0x490f15['end'])):this['_setSuggestionRange'](_0x48c6d3,this['_model']['createRange'](_0x490f15['start'],_0x6095df['end'])),_0x48c6d3;}}const _0x3f9b9d=_0x38a072(),_0x59a685=_0x3e118c['id'],_0xa7fc93=_0x315a77?'insertion:'+_0x315a77:'insertion',_0xbdde2c=this['_setSuggestionData']({'id':_0x3f9b9d,'type':_0xa7fc93,'createdAt':new Date(),'authorId':_0x59a685,'attributes':_0x4dd6d7});return this['_addSuggestionMarker'](_0xa7fc93,_0x3f9b9d,_0x59a685,_0x6095df),_0xbdde2c;}['markMultiRangeInsertion'](_0xbbf114,_0x447501='multi',_0x3e9696={}){const _0x425699=this['editor']['plugins']['get']('Users')['me'],_0x5d03c8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x447501,'join');this['_trackingSessionId']&&(_0x3e9696['trackingSessionId']=this['_trackingSessionId']);for(const _0x22600a of this['getSuggestions']())if(_0x22600a['author']['id']==_0x425699['id']&&'insertion'==_0x22600a['type']&&_0x22600a['subType']==_0x447501&&Xt(_0x22600a,_0x3e9696)&&(_0x5d03c8(_0x22600a['getRanges'](),_0xbbf114)||_0x5d03c8(_0xbbf114,_0x22600a['getRanges']()))){for(const _0x4de08c of _0xbbf114)_0x22600a['addRange'](_0x4de08c);return _0x22600a;}for(const {suggestion:_0x1cc163,meta:_0x266583}of this['_findSuggestions'](_0xbbf114,'insertion')){if(!_0x266583['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x266583['containsRangeInObject'])continue;if(!Xt(_0x1cc163,_0x3e9696))continue;let _0x31bf39=!0x0;for(const _0x357973 of _0x1cc163['getRanges']())for(const _0x4d5742 of _0xbbf114)if(!_0x357973['containsRange'](_0x4d5742)){_0x31bf39=!0x1;break;}if(_0x31bf39)return _0x1cc163;}const _0x5154fa=_0x38a072(),_0x275350=_0x425699['id'],_0x4542ad='insertion:'+_0x447501,_0x227db3=this['_setSuggestionData']({'id':_0x5154fa,'type':_0x4542ad,'createdAt':new Date(),'authorId':_0x275350,'attributes':_0x3e9696});for(const _0x2c02d1 of _0xbbf114)this['_addSuggestionMarker'](_0x4542ad,_0x5154fa,_0x275350,_0x2c02d1,o['getMultiRangeId']());return _0x227db3;}['markInlineFormat'](_0x3b3807,_0x39eb9e,_0x1469f0=null,_0x4d12e0={}){if(_0x1469f0=_0x1469f0||Kt(_0x39eb9e),_0x3b3807['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4d12e0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3d21b3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1469f0,'accept');return this['forceDefaultExecution'](()=>_0x3d21b3([_0x3b3807],_0x39eb9e,_0x4d12e0)),null;}const _0x301bc5=this['editor']['plugins']['get']('Users')['me'],_0x43a8bf=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3206f3,meta:_0x519650}of this['_findSuggestions'](_0x3b3807,'insertion'))_0x519650['isOwn']&&!_0x519650['isInsideObject']&&_0x43a8bf['push'](..._0x3206f3['getRanges']());}const _0x210615=function(_0xcbdea0,_0x4b266d){const _0x2e3a2c=[];for(const _0x7bb9ba of _0x4b266d){const _0x4fcd26=_0xcbdea0['getIntersection'](_0x7bb9ba);_0x4fcd26&&_0x2e3a2c['push'](_0x4fcd26);}return _0x2e3a2c;}(_0x3b3807,_0x43a8bf),_0x50b7d6=function(_0x12be25,_0x39004b){const _0x351021=[_0x12be25];for(const _0x25f398 of _0x39004b){let _0x579d21=0x0;for(;_0x579d21<_0x351021['length'];){const _0x1cc7d2=_0x351021[_0x579d21]['getDifference'](_0x25f398);_0x351021['splice'](_0x579d21,0x1,..._0x1cc7d2),_0x579d21+=_0x1cc7d2['length'];}}return _0x351021;}(_0x3b3807,_0x43a8bf);_0x210615['length']&&this['_model']['change'](()=>{for(const _0x4dda57 of _0x210615){const _0x36b906=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1469f0,'accept');this['forceDefaultExecution'](()=>_0x36b906([_0x4dda57],_0x39eb9e,_0x4d12e0));}});for(const _0x2e1ac5 of _0x50b7d6){let _0x5bc832=null,_0x409671=_0x2e1ac5['start'],_0x5437e2=_0x2e1ac5['end'];for(const {suggestion:_0x50367c,meta:_0x967a81}of this['_findSuggestions'](_0x2e1ac5,'formatInline')){if(!_0x967a81['isOwn'])continue;if(_0x50367c['subType']!=_0x1469f0)continue;if(!Xt(_0x50367c,_0x4d12e0))continue;const _0x207c3f=_0x50367c['getFirstRange']();if(_0x207c3f['containsRange'](_0x2e1ac5,!0x0))return null;_0x409671=_0x409671['isBefore'](_0x207c3f['start'])?_0x409671:_0x207c3f['start'],_0x5437e2=_0x5437e2['isAfter'](_0x207c3f['end'])?_0x5437e2:_0x207c3f['end'],_0x5bc832?_0x207c3f['start']['isBefore'](_0x5bc832['getFirstRange']()['start'])?(_0x5bc832['removeMarkers'](),_0x5bc832=_0x50367c):_0x50367c['removeMarkers']():_0x5bc832=_0x50367c;}const _0x5eddbd=this['_model']['createRange'](_0x409671,_0x5437e2);if(_0x5bc832)this['_setSuggestionRange'](_0x5bc832,_0x5eddbd);else{const _0x581589=_0x38a072(),_0x3bcf06=_0x301bc5['id'];this['_setSuggestionData']({'id':_0x581589,'type':'formatInline:'+_0x1469f0,'data':_0x39eb9e,'createdAt':new Date(),'authorId':_0x3bcf06,'attributes':_0x4d12e0}),this['_addSuggestionMarker']('formatInline:'+_0x1469f0,_0x581589,_0x3bcf06,_0x5eddbd);}}return null;}['markBlockFormat'](_0x3097a5,_0x2935c4,_0x3d6bb0=[],_0x32cb67=null,_0x33eab5={}){_0x2935c4['formatGroupId']||(_0x2935c4['formatGroupId']=_0x2935c4['commandName']),_0x2935c4['multipleBlocks']=_0x3097a5['is']('range'),_0x32cb67=_0x32cb67||Kt(_0x2935c4);const _0x5295b6=_0x3d6bb0['map'](_0xe903a9=>zt(_0xe903a9,this['_model'])),_0x33f571=_0x3097a5['is']('range')?_0x3097a5:zt(_0x3097a5,this['_model']);if(this['_trackingSessionId']&&(_0x33eab5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xea2ea1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32cb67,'accept');return this['forceDefaultExecution'](()=>_0xea2ea1([_0x33f571],_0x2935c4,_0x33eab5)),null;}_0x5295b6['push'](_0x33f571);let _0x14bb01=!0x0;for(const _0x172613 of _0x5295b6)if(!this['_rangeIsInLocalUserInsertion'](_0x172613)){_0x14bb01=!0x1;break;}if(_0x14bb01&&'always'!==this['_trackFormatChanges']){const _0x22c2c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32cb67,'accept');return this['forceDefaultExecution'](()=>_0x22c2c4([_0x33f571],_0x2935c4,_0x33eab5)),null;}let _0x1cedc=null,_0xeaef97=_0x33f571['start'],_0x2dd65b=_0x33f571['end'];for(const {suggestion:_0xf6eacb,meta:_0x3511d2}of this['_findSuggestions'](_0x33f571,'formatBlock')){if(!_0x3511d2['isOwn'])continue;if(_0x3511d2['isNextTo']||_0x3511d2['containsRangeInObject']||_0x3511d2['isInsideObject'])continue;if(_0xf6eacb['data']['formatGroupId']!=_0x2935c4['formatGroupId'])continue;if(!Xt(_0xf6eacb,_0x33eab5))continue;const _0xa78e6e=_0xf6eacb['getFirstRange']();if(_0xf6eacb['subType']==_0x32cb67){if(_0xa78e6e['containsRange'](_0x33f571,!0x0))return null;_0xeaef97=_0xeaef97['isBefore'](_0xa78e6e['start'])?_0xeaef97:_0xa78e6e['start'],_0x2dd65b=_0x2dd65b['isAfter'](_0xa78e6e['end'])?_0x2dd65b:_0xa78e6e['end'],_0x1cedc?_0xa78e6e['start']['isBefore'](_0x1cedc['getFirstRange']()['start'])?(_0x1cedc['removeMarkers'](),_0x1cedc=_0xf6eacb):_0xf6eacb['removeMarkers']():_0x1cedc=_0xf6eacb;}else{const _0x1bb80b=_0x33f571['getIntersection'](_0xa78e6e);this['_cutOutSuggestionMarker'](_0xf6eacb,_0x1bb80b);}}const _0x493ff0=this['editor']['plugins']['get']('Users')['me'],_0xd60a0b=_0x38a072(),_0x5687ca=_0x493ff0['id'];if(_0x1cedc)return this['_setSuggestionRange'](_0x1cedc,this['_model']['createRange'](_0xeaef97,_0x2dd65b)),_0x1cedc;{const _0x1345fd=this['_setSuggestionData']({'id':_0xd60a0b,'type':'formatBlock:'+_0x32cb67,'data':_0x2935c4,'createdAt':new Date(),'authorId':_0x5687ca,'attributes':_0x33eab5});return this['_addSuggestionMarker']('formatBlock:'+_0x32cb67,_0xd60a0b,_0x5687ca,this['_model']['createRange'](_0xeaef97,_0x2dd65b)),_0x1345fd;}}['markMultiRangeBlockFormat'](_0x4915b7,_0x12bf2a,_0x2937cf=[],_0x32fe83=null,_0x323ef6={}){_0x12bf2a['formatGroupId']||(_0x12bf2a['formatGroupId']=_0x12bf2a['commandName']);const _0x4c8969=_0x4915b7[0x0];_0x12bf2a['multipleBlocks']=_0x4c8969['is']('range'),_0x32fe83=_0x32fe83||Kt(_0x12bf2a);const _0x1c9e81=_0x2937cf['map'](_0x72b87c=>zt(_0x72b87c,this['_model'])),_0x4e4c2f=_0x4c8969['is']('range')?_0x4915b7:_0x4915b7['map'](_0x5c9939=>zt(_0x5c9939,this['_model']));if(this['_trackingSessionId']&&(_0x323ef6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x277e6f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32fe83,'accept');return this['forceDefaultExecution'](()=>_0x277e6f(_0x4e4c2f,_0x12bf2a,_0x323ef6)),null;}_0x1c9e81['push'](..._0x4e4c2f);let _0x330919=!0x0;for(const _0x3a5e3e of _0x1c9e81)if(!this['_rangeIsInLocalUserInsertion'](_0x3a5e3e)){_0x330919=!0x1;break;}if(_0x330919&&'always'!==this['_trackFormatChanges']){const _0x1411ff=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32fe83,'accept');return this['forceDefaultExecution'](()=>_0x1411ff(_0x4e4c2f,_0x12bf2a,_0x323ef6)),null;}const _0x2b4948=this['editor']['plugins']['get']('Users')['me'];for(const _0x4f13f6 of this['getSuggestions']()){if(_0x4f13f6['author']['id']!=_0x2b4948['id'])continue;if('formatBlock'!=_0x4f13f6['type']||_0x4f13f6['data']['formatGroupId']!=_0x12bf2a['formatGroupId'])continue;if(!Xt(_0x4f13f6,_0x323ef6))continue;const _0x141203=_0x4f13f6['subType']==_0x32fe83;for(let _0x1db97e=0x0;_0x1db97e<_0x4e4c2f['length'];_0x1db97e++){const _0x3fda6a=_0x4e4c2f[_0x1db97e];for(const _0x387242 of _0x4f13f6['getMarkers']()){const _0x5c9f44=_0x387242['getRange']();if(_0x3fda6a['isEqual'](_0x5c9f44)){_0x141203?(_0x4e4c2f['splice'](_0x1db97e,0x1),_0x1db97e--):_0x4f13f6['removeMarker'](_0x387242['name']);break;}}}}if(0x0==_0x4e4c2f['length'])return null;const _0x52cd75=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32fe83,'join');for(const _0x46d8eb of this['getSuggestions']())if(_0x46d8eb['author']['id']==_0x2b4948['id']&&'formatBlock'==_0x46d8eb['type']&&_0x46d8eb['data']['formatGroupId']==_0x12bf2a['formatGroupId']&&_0x46d8eb['subType']==_0x32fe83&&Xt(_0x46d8eb,_0x323ef6)&&(_0x52cd75(_0x46d8eb['getRanges'](),_0x4e4c2f)||_0x52cd75(_0x4e4c2f,_0x46d8eb['getRanges']()))){for(const _0x15144d of _0x4e4c2f)_0x46d8eb['addRange'](_0x15144d);return _0x46d8eb;}const _0x1c0d83=_0x38a072(),_0x221c43=_0x2b4948['id'],_0x1bec4b='formatBlock:'+_0x32fe83,_0x336b0d=this['_setSuggestionData']({'id':_0x1c0d83,'type':_0x1bec4b,'data':_0x12bf2a,'createdAt':new Date(),'authorId':_0x221c43,'attributes':_0x323ef6});for(const _0x4be4b3 of _0x4e4c2f)this['_addSuggestionMarker'](_0x1bec4b,_0x1c0d83,_0x221c43,_0x4be4b3,o['getMultiRangeId']());return _0x336b0d;}['markDeletion'](_0x2d8a6f,_0x1916a1=null,_0x337501={}){if(_0x2d8a6f['isCollapsed'])return null;const _0x17d59a=this['editor']['plugins']['get']('Users')['me'],_0x2f20d9=new _0x21cd14(_0x2d8a6f['start'],_0x2d8a6f['end']);this['_trackingSessionId']&&(_0x337501['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x41c027,meta:_0x419f92}of this['_findSuggestions'](_0x2f20d9,'insertion'))if(_0x419f92['isOwn']&&!_0x419f92['isNextTo']){if(_0x41c027['isMultiRange']){const _0x28a4af=_0x41c027['getRanges']()['filter'](_0x33128e=>'$graveyard'!=_0x33128e['root']['rootName']);_0x28a4af['every'](_0x5603cf=>_0x2f20d9['containsRange'](_0x5603cf,!0x0))&&_0x41c027['discard']();if(_0x28a4af['some'](_0x4f8a06=>_0x4f8a06['containsRange'](_0x2f20d9,!0x0))){const _0x49fe84=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1916a1,'accept');return this['forceDefaultExecution'](()=>_0x49fe84([_0x2f20d9],null,_0x337501)),null;}}else{const _0x3f88b1=_0x2f20d9['getIntersection'](_0x41c027['getFirstRange']());null!==_0x3f88b1&&_0x41c027['_onDiscard']([_0x3f88b1],null,_0x337501);}}if(_0x2f20d9['detach'](),_0x2f20d9['isCollapsed']||'$graveyard'==_0x2f20d9['root']['rootName'])return null;let _0x1a8f18=null,_0x581f55=_0x2f20d9['start'],_0x44d877=_0x2f20d9['end'];const _0x47bc26=this['_findSuggestions'](_0x2f20d9,'deletion');for(const {suggestion:_0x518a1e,meta:_0x8160e5}of _0x47bc26){const _0x4b3a14=this['_model']['createRange'](_0x581f55,_0x44d877);if(_0x8160e5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8160e5['containsRangeInObject']&&!_0x8160e5['isInsideObject'])){if(_0x518a1e['isMultiRange']){if(!Xt(_0x518a1e,_0x337501))continue;let _0x2f7d4b=!0x0;for(const _0x659f13 of _0x518a1e['getRanges']()){if(_0x659f13['containsRange'](_0x4b3a14,!0x0))return _0x518a1e;_0x4b3a14['containsRange'](_0x659f13)||(_0x2f7d4b=!0x1);}_0x2f7d4b&&_0x518a1e['discard']();}else{const _0x125b95=_0x518a1e['getFirstRange']();if(_0x125b95['containsRange'](_0x4b3a14,!0x0))return _0x518a1e;if(!Xt(_0x518a1e,_0x337501)){_0x4b3a14['containsRange'](_0x125b95)?_0x518a1e['removeMarkers']():_0x125b95['containsPosition'](_0x581f55)?_0x581f55=_0x125b95['end']:_0x125b95['containsPosition'](_0x44d877)&&(_0x44d877=_0x125b95['start']);continue;}_0x581f55=_0x581f55['isBefore'](_0x125b95['start'])?_0x581f55:_0x125b95['start'],_0x44d877=_0x44d877['isAfter'](_0x125b95['end'])?_0x44d877:_0x125b95['end'],_0x337501=Object['assign']({},_0x518a1e['attributes']),_0x1a8f18?_0x125b95['start']['isBefore'](_0x1a8f18['getFirstRange']()['start'])?(_0x1a8f18['removeMarkers'](),_0x1a8f18=_0x518a1e):_0x518a1e['removeMarkers']():_0x1a8f18=_0x518a1e;}}}if(_0x1a8f18)return this['_setSuggestionRange'](_0x1a8f18,this['_model']['createRange'](_0x581f55,_0x44d877)),_0x1a8f18;{const _0x511b96=_0x38a072(),_0x47c707=this['_model']['createRange'](_0x581f55,_0x44d877),_0x4e1ec1=_0x17d59a['id'],_0x32314d=_0x1916a1?'deletion:'+_0x1916a1:'deletion',_0x4b33a8=this['_setSuggestionData']({'id':_0x511b96,'type':_0x32314d,'createdAt':new Date(),'authorId':_0x4e1ec1,'attributes':_0x337501});return this['_addSuggestionMarker'](_0x32314d,_0x511b96,_0x4e1ec1,_0x47c707),_0x4b33a8;}}['markMultiRangeDeletion'](_0x3e9443,_0x31983c='multi',_0x4b600e={}){const _0x2f64a6=this['editor']['plugins']['get']('Users')['me'],_0x423853=_0x3e9443['map'](_0x3b6dca=>new _0x21cd14(_0x3b6dca['start'],_0x3b6dca['end'])),_0x71cc29=new Set();this['_trackingSessionId']&&(_0x4b600e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2aea46,meta:_0x4f823f}of this['_findSuggestions'](_0x423853,'insertion'))_0x4f823f['isOwn']&&!_0x4f823f['isNextTo']&&_0x71cc29['add'](_0x2aea46);for(const _0x351656 of _0x71cc29)if(_0x351656['isMultiRange']){const _0x29cc53=_0x351656['getRanges']();(!_0x351656['attributes']||!_0x351656['attributes']['skipNestingCheck'])&&(_0x29cc53['every'](_0x42c6b8=>_0x423853['some'](_0xa436ff=>_0xa436ff['containsRange'](_0x42c6b8,!0x0)))&&_0x351656['discard']());if(_0x423853['every'](_0x2da1e9=>_0x29cc53['some'](_0x1a3562=>_0x1a3562['containsRange'](_0x2da1e9,!0x0)))){const _0x2797e6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31983c,'accept');return this['forceDefaultExecution'](()=>_0x2797e6(_0x3e9443,null,_0x4b600e)),null;}}else{const _0x33e905=_0x351656['getFirstRange']();_0x423853['some'](_0x57e6ed=>_0x57e6ed['containsRange'](_0x33e905,!0x0))&&_0x351656['discard']();if(_0x423853['every'](_0xfcf852=>_0x33e905['containsRange'](_0xfcf852,!0x0))){const _0x3ce737=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31983c,'accept');return this['forceDefaultExecution'](()=>_0x3ce737(_0x423853,null,_0x4b600e)),null;}}const _0x1367bd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31983c,'join');let _0x2f439f=null;for(const _0x11962f of this['getSuggestions']())if(_0x11962f['author']['id']==_0x2f64a6['id']&&_0x11962f['isInContent']&&'deletion'==_0x11962f['type']&&_0x11962f['subType']==_0x31983c&&Xt(_0x11962f,_0x4b600e)&&(_0x1367bd(_0x11962f['getRanges'](),_0x423853)||_0x1367bd(_0x423853,_0x11962f['getRanges']()))){if(_0x2f439f){if(_0x11962f['commentThread']&&_0x11962f['commentThread']['length'])continue;for(const _0x442472 of _0x11962f['getRanges']())_0x2f439f['isIntersectingWithRange'](_0x442472)||_0x2f439f['addRange'](_0x442472);_0x11962f['removeMarkers']();}else{_0x2f439f=_0x11962f;for(const _0x240ac9 of _0x423853)_0x11962f['isIntersectingWithRange'](_0x240ac9)||_0x11962f['addRange'](_0x240ac9);}}if(_0x2f439f)return _0x2f439f;_0x71cc29['clear']();for(const {suggestion:_0x1ec979,meta:_0x58da59}of this['_findSuggestions'](_0x423853,'deletion'))_0x58da59['isOwn']&&(this['_mergeNestedSuggestions']||!_0x58da59['containsRangeInObject']&&!_0x58da59['isInsideObject'])&&Xt(_0x1ec979,_0x4b600e)&&_0x71cc29['add'](_0x1ec979);for(const _0x1a13ed of _0x71cc29){const _0x37dea1=_0x1a13ed['getRanges']();if(!_0x4b600e||!_0x4b600e['skipNestingCheck']){if(_0x423853['every'](_0x288010=>_0x37dea1['some'](_0x2ef30b=>_0x2ef30b['containsRange'](_0x288010,!0x0))))return _0x1a13ed;}(!_0x1a13ed['attributes']||!_0x1a13ed['attributes']['skipNestingCheck'])&&(_0x37dea1['every'](_0x7514ad=>_0x423853['some'](_0x1a3b5e=>_0x1a3b5e['containsRange'](_0x7514ad,!0x0)))&&_0x1a13ed['discard']());}const _0x39c96d=_0x38a072(),_0x4c49ae=_0x2f64a6['id'],_0x248ae8='deletion:'+_0x31983c,_0xedb678=this['_setSuggestionData']({'id':_0x39c96d,'type':_0x248ae8,'createdAt':new Date(),'authorId':_0x4c49ae,'attributes':_0x4b600e});for(const _0xa17ada of _0x423853)_0xa17ada['detach'](),_0xa17ada['isCollapsed']||'$graveyard'==_0xa17ada['root']['rootName']||this['_addSuggestionMarker'](_0x248ae8,_0x39c96d,_0x4c49ae,_0xa17ada,o['getMultiRangeId']());return _0xedb678;}['markAttributeChange'](_0x141f75,_0x1a2ec1,_0x45e326,_0x5a22ed,_0x269818){if(_0x141f75['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x285c39=this['editor']['plugins']['get']('Users')['me']['id'],_0x57548f=Array['from'](this['_suggestions']['values']())['filter'](_0x23d66b=>'attribute'==_0x23d66b['type']&&_0x23d66b['data']['key']==_0x1a2ec1&&_0x23d66b['isIntersectingWithRange'](_0x141f75));if(this['_trackingSessionId']&&(_0x269818['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xd7731c=this['_findSuggestions'](_0x141f75,'insertion')['filter'](({meta:_0x43fbfb})=>_0x43fbfb['isOwn']&&!_0x43fbfb['isInsideObject']&&!_0x43fbfb['isNextTo'])['map'](({suggestion:_0x531432})=>_0x531432);_0x57548f['unshift'](..._0xd7731c);}const _0x285dce=new Map([[_0x141f75,_0x45e326]]);for(const _0x26b8cc of _0x57548f){const _0x4eb081='attribute'==_0x26b8cc['type']?_0x26b8cc['data']['oldValue']:void 0x0,_0x14d139=_0x26b8cc['getFirstRange'](),_0xb506a9=Array['from'](_0x285dce['keys']())['find'](_0x14e707=>_0x14e707['isIntersecting'](_0x14d139));if(!_0xb506a9)continue;const _0x3c72dd=_0xb506a9['getDifference'](_0x14d139);this['_isBlockAttribute'](_0x1a2ec1)&&'insertion'==_0x26b8cc['type']&&0x0!=_0x3c72dd['length']||(_0x285dce['delete'](_0xb506a9),_0x3c72dd['forEach'](_0x223db6=>{_0x285dce['set'](_0x223db6,_0x45e326);}),'insertion'!=_0x26b8cc['type']&&_0x4eb081!=_0x5a22ed&&_0x285dce['set'](_0xb506a9['getIntersection'](_0x14d139),_0x4eb081));}const _0x407c35=[];for(const [_0x56afd,_0xaf3914]of _0x285dce){const _0x16957e=_0x38a072(),_0x598385={'key':_0x1a2ec1,'oldValue':_0xaf3914,'newValue':_0x5a22ed};_0x1a2ec1['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':_0x1a2ec1});const _0x231f6a=('attribute:'+(_0x1a2ec1+'|'+Kt({'newValue':_0x5a22ed})))['substring'](0x0,0x3c),_0x6e143a=this['_setSuggestionData']({'id':_0x16957e,'type':_0x231f6a,'data':_0x598385,'createdAt':new Date(),'authorId':_0x285c39,'attributes':_0x269818});_0x407c35['push'](_0x6e143a),this['_addSuggestionMarker'](_0x231f6a,_0x16957e,_0x285c39,_0x56afd);}return _0x407c35;}['enableDefaultAttributesIntegration'](_0x23f5ea){this['enableCommand'](_0x23f5ea,(_0x622660,..._0x4c4ea6)=>{this['_recordAttributeChanges'](()=>{_0x622660(..._0x4c4ea6);});});}['registerBlockAttribute'](_0x4a247c){this['_blockAttributeKeys']['add'](_0x4a247c);}['registerInlineAttribute'](_0xa2f7eb){this['_inlineAttributeKeys']['add'](_0xa2f7eb);}['startTrackingSession'](_0x4ae23b){return this['_trackingSessionId']=void 0x0!==_0x4ae23b?_0x4ae23b:_0x38a072(),this['_trackingSessionId'];}['_getAttributeKey'](_0x14ee35){return'attribute'==_0x14ee35['type']?_0x14ee35['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xdc4578,_0x58fc54){const _0x84879e=_0xdc4578['getFirstMarker']();this['_model']['change'](_0x116018=>{_0x116018['updateMarker'](_0x84879e,{'range':_0x58fc54});});}['_addThreadToSuggestion'](_0x2d1ff9){const _0x3a3730=_0x2d1ff9['id'],_0x33a2ab=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3a3730)||this['_commentsRepository']['addCommentThread']({'channelId':_0x33a2ab,'threadId':_0x3a3730,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3a66fb=this['_commentsRepository']['getCommentThread'](_0x3a3730);_0x3a66fb['unbind']('isRemovable'),_0x3a66fb['isRemovable']=!0x1,_0x2d1ff9['commentThread']=_0x3a66fb;}['_checkSuggestionCorrectness'](_0x2d2479,_0x2fd809,_0x3a718e,_0x4aa434){if(_0x2d2479['type']!=_0x2fd809||_0x2d2479['subType']!=_0x3a718e||_0x2d2479['creator']['id']!=_0x4aa434)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5e9249('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xbc5228,_0xdebb2a){const _0x2a653f=_0xbc5228['getFirstRange']();if(_0xdebb2a['isEqual'](_0x2a653f))_0xbc5228['removeMarkers']();else{if(_0x2a653f['containsRange'](_0xdebb2a)){const _0x3f8be4=this['_model']['createPositionAt'](_0xdebb2a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xbc5228,this['_model']['createRange'](_0x2a653f['start'],_0x3f8be4));const _0x2c8370=_0x38a072(),_0x4034a2=_0xbc5228['creator']['id'],_0x3c1e68=_0xbc5228['type']+':'+_0xbc5228['subType'];this['_setSuggestionData']({'id':_0x2c8370,'type':_0x3c1e68,'createdAt':new Date(),'authorId':_0x4034a2,'data':_0xbc5228['data'],'attributes':_0xbc5228['attributes']});const _0x136e59=this['_model']['createPositionAt'](_0xdebb2a['end']['parent'],'after'),_0x2922b6=this['_model']['createRange'](_0x136e59,_0x2a653f['end']);this['_addSuggestionMarker'](_0x3c1e68,_0x2c8370,_0x4034a2,_0x2922b6);}else{if(_0x2a653f['containsPosition'](_0xdebb2a['start'])){const _0x48eb57=this['_model']['createPositionAt'](_0xdebb2a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xbc5228,this['_model']['createRange'](_0x2a653f['start'],_0x48eb57));}else{const _0x9c7284=this['_model']['createPositionAt'](_0xdebb2a['end']['parent'],'after');this['_setSuggestionRange'](_0xbc5228,this['_model']['createRange'](_0x9c7284,_0x2a653f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4f31ef){for(const {suggestion:_0x27e0ae,meta:_0x38b12e}of this['_findSuggestions'](_0x4f31ef,'insertion')){if(!_0x38b12e['isOwn'])continue;const _0x3cafeb=_0x27e0ae['getRanges']();for(const _0x59106d of _0x3cafeb)if(!_0x4f31ef['getDifference'](_0x59106d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x285980){const _0x536aa1=this['editor']['plugins']['get']('Users')['getUser'](_0x285980);if(!_0x536aa1)throw new _0x5e9249('track-changes-user-not-found',this);return _0x536aa1;}['_getExternalAuthor'](_0x29f954){const _0x116c45=this['editor']['plugins']['get']('Users'),_0x13ee90=_0x1152a2('external:'+_0x29f954),_0x1d7c78=_0x116c45['getUser'](_0x13ee90);return _0x1d7c78||_0x116c45['addUser']({'id':_0x13ee90,'name':_0x29f954});}['_createSuggestion'](_0x5d7654,_0x347264,_0xbe47d,_0x3f6db0,_0x59df18,_0x22754a){const _0x24de7e=this['_getAuthorFromId'](_0x3f6db0),_0x323de1=this['_suggestionFactory']['buildSuggestion'](_0x5d7654,_0x347264,_0xbe47d,_0x24de7e,_0x59df18,_0x15362b=>{this['_updateSuggestionData'](_0xbe47d,{'attributes':_0x15362b});const _0x35f433=this['getSuggestion'](_0xbe47d);this['_joinWithAdjacentSuggestions'](new Set([_0x35f433])),this['_refreshSuggestionsChain'](new Set([_0x35f433]));},_0x22754a);return this['listenTo'](_0x323de1,'accept',()=>{this['_updateSuggestionData'](_0xbe47d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x323de1,'discard',()=>{this['_updateSuggestionData'](_0xbe47d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xbe47d,_0x323de1),this['_suggestionState']['set'](_0x323de1,'notReady'),_0x323de1;}['_splitMarkerName'](_0x243749){const _0x2a7b8f=_0x243749['split'](':');return{'group':_0x2a7b8f[0x0],'type':_0x2a7b8f[0x1],'subType':_0x2a7b8f['length']>=0x5?_0x2a7b8f[0x2]:null,'id':_0x2a7b8f['length']<0x5?_0x2a7b8f[0x2]:_0x2a7b8f[0x3],'authorId':_0x2a7b8f['length']<0x5?_0x2a7b8f[0x3]:_0x2a7b8f[0x4],'markerCount':0x6==_0x2a7b8f['length']?_0x2a7b8f[0x5]:null};}['_breakSuggestionMarker'](_0x2b692f,_0x30bb84,_0x6468ae){const _0xa047a3=_0x2b692f['getFirstRange'](),_0x5f08c4=_0xa047a3['start'],_0x3d353d=_0xa047a3['end'];this['_setSuggestionRange'](_0x2b692f,this['_model']['createRange'](_0x5f08c4,_0x30bb84));const _0xa3b06c=_0x38a072(),_0x4e73b1=_0x2b692f['creator']['id'],_0x1da892=_0x2b692f['type']+(_0x2b692f['subType']?':'+_0x2b692f['subType']:'');this['_setSuggestionData']({'id':_0xa3b06c,'type':_0x1da892,'createdAt':new Date(),'authorId':_0x4e73b1,'originalSuggestionId':_0x2b692f['_originalSuggestionId']||_0x2b692f['id'],'attributes':_0x2b692f['attributes'],'data':_0x2b692f['data']});const _0x59be75=this['_getAttributeKey'](_0x2b692f);('formatBlock'==_0x2b692f['type']||_0x59be75&&this['_isBlockAttribute'](_0x59be75))&&(_0x6468ae=this['_model']['createPositionBefore'](_0x6468ae['parent'])),this['_addSuggestionMarker'](_0x1da892,_0xa3b06c,_0x4e73b1,this['_model']['createRange'](_0x6468ae,_0x3d353d));}['_findSuggestions'](_0x5a5a18,_0x54f8ca=null){const _0x44210b=[],_0x321c8d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5a5a18)||(_0x5a5a18=[_0x5a5a18]);for(const _0x19cb7f of this['getSuggestions']()){if(!_0x19cb7f['isInContent'])continue;if(_0x54f8ca&&_0x19cb7f['type']!=_0x54f8ca)continue;let _0x490684=!0x1;for(const _0xc8b7e5 of _0x19cb7f['getRanges']()){for(const _0x5878a0 of _0x5a5a18){const _0x1c5228=_0x5878a0['start']['isEqual'](_0xc8b7e5['end'])||_0x5878a0['end']['isEqual'](_0xc8b7e5['start']);if(_0x1c5228||_0x5878a0['getIntersection'](_0xc8b7e5)){const _0x426e82=_0x5878a0['containsRange'](_0xc8b7e5)&&Gt(this['_model']['schema'],_0xc8b7e5['start'],_0x5878a0),_0x35fade=_0xc8b7e5['containsRange'](_0x5878a0)&&Gt(this['_model']['schema'],_0x5878a0['start'],_0xc8b7e5);_0x44210b['push']({'suggestion':_0x19cb7f,'meta':{'isOwn':_0x321c8d==_0x19cb7f['author'],'isNextTo':_0x1c5228,'isInsideObject':_0x426e82,'containsRangeInObject':_0x35fade}}),_0x490684=!0x0;break;}}if(_0x490684)break;}}return _0x44210b;}['_addSuggestionMarker'](_0x3c40c3,_0x141ce4,_0xafbeb,_0x20aead,_0x31c957){this['_model']['change'](_0x1ff024=>{let _0xac3a9d='suggestion:'+_0x3c40c3+':'+_0x141ce4+':'+_0xafbeb;_0x31c957&&(_0xac3a9d=_0xac3a9d+':'+_0x31c957),_0x1ff024['addMarker'](_0xac3a9d,{'range':_0x20aead,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4f05d9){const _0x43347a=_0x4f05d9['previous'],_0x4a2774=_0x4f05d9['next'];_0x4f05d9['previous']=null,_0x4f05d9['next']=null,null!=_0x43347a&&_0x43347a['next']==_0x4f05d9&&(_0x43347a['next']=_0x4a2774),null!=_0x4a2774&&_0x4a2774['previous']==_0x4f05d9&&(_0x4a2774['previous']=_0x43347a),'ready'==this['_suggestionState']['get'](_0x4f05d9)&&(this['_suggestionState']['set'](_0x4f05d9,'removed'),this['fire']('suggestionUnloaded',_0x4f05d9,_0x43347a,_0x4a2774));}['_setSuggestionData'](_0x494773){const _0x497e6f=_0x494773['id'],_0x1973de=this['addSuggestionData'](_0x494773);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x37e051=this['editor']['plugins']['get']('PendingActions'),_0x48200b=_0x1973de['hasComments'],_0xc3549a=_0x1973de['subType']?_0x1973de['type']+':'+_0x1973de['subType']:_0x1973de['type'],_0x288d7a=this['editor']['locale'],_0x364461=_0x37e051['add'](c(_0x288d7a,'PENDING_ACTION_SUGGESTION')),_0x409837={'id':_0x497e6f,'type':_0xc3549a,'hasComments':_0x48200b,'data':_0x494773['data']||null,'originalSuggestionId':_0x494773['originalSuggestionId']||null,'attributes':_0x1973de['attributes']};this['_adapter']['addSuggestion'](_0x409837)['then'](_0x15e3fe=>{_0x1973de['_saved']=!0x0,_0x37e051['remove'](_0x364461),_0x15e3fe&&_0x15e3fe['createdAt']&&(this['_suggestions']['get'](_0x497e6f)['createdAt']=_0x15e3fe['createdAt']);})['catch'](_0x418eba=>{throw _0x449267('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1973de['discard']();}),_0x1973de['stopListening'](),this['_suggestions']['delete'](_0x1973de['id']),this['_suggestionState']['delete'](_0x1973de),_0x418eba;});}return _0x1973de;}['_isBlockAttribute'](_0x21be51){return this['_blockAttributeKeys']['has'](_0x21be51);}['_updateSuggestionData'](_0x4edf07,_0x305aa6){const _0x26a759=this['editor']['plugins']['get']('PendingActions'),_0x4c71b7=this['getSuggestion'](_0x4edf07);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4c71b7['_saved']){const _0x47d9d0=_0x26a759['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4edf07,_0x305aa6)['then'](()=>{_0x26a759['remove'](_0x47d9d0);});}else _0x4c71b7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4edf07,_0x305aa6);});}}['_getSuggestionData'](_0x36aee3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5e9249('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x36aee3);}['_handleNewSuggestionMarker'](_0x1b42a5){const {id:_0x55317a,type:_0x22213b,subType:_0x578a08,authorId:_0x137ab5}=this['_splitMarkerName'](_0x1b42a5),_0x10bb6f=this['_suggestions']['get'](_0x55317a)||this['_createSuggestion'](_0x22213b,_0x578a08,_0x55317a,_0x137ab5,{});switch(this['_checkSuggestionCorrectness'](_0x10bb6f,_0x22213b,_0x578a08,_0x137ab5),this['_suggestionState']['get'](_0x10bb6f)){case'notReady':this['_getSuggestionData'](_0x55317a)['then'](_0x91656e=>{let _0x420869=Promise['resolve']();_0x91656e['hasComments']&&(_0x420869=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x55317a})),_0x420869['then'](()=>{this['addSuggestionData'](_0x91656e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x10bb6f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x55317a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x10bb6f,'ready'),this['fire']('suggestionLoaded',_0x10bb6f);break;case'ready':this['fire']('suggestionChanged',_0x10bb6f);}return _0x10bb6f['addMarkerName'](_0x1b42a5),_0x10bb6f;}['_refreshSuggestionsChain'](_0x19c38c){const _0x3c47cb=Array['from'](_0x19c38c),_0x7aad16=_0x3c47cb['filter'](_0x23d13a=>'attribute'==_0x23d13a['type']);this['_refreshAttributeSuggestionsChain'](_0x7aad16);const _0x496d6d=_0x3c47cb['filter'](_0x100d83=>!_0x100d83['isMultiRange']&&'attribute'!=_0x100d83['type']),_0x2f56b8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41af3f=>!_0x41af3f['isMultiRange']&&'attribute'!=_0x41af3f['type']),_0x2fcc86=_0x2f56b8['filter'](_0x229517=>!_0x19c38c['has'](_0x229517)),_0x3db4b4=new Map(_0x2f56b8['map'](_0x2ab316=>[_0x2ab316,this['_suggestionFactory']['getSuggestionCallback'](_0x2ab316['type'],_0x2ab316['subType'],'chain')])),_0x5b7a6c=new Map(_0x2f56b8['map'](_0xa7cfa8=>[_0xa7cfa8,_0xa7cfa8['getFirstRange']()])),_0xd0101d=new Set(),_0x5e6369=new Set();for(let _0x38d3e8=0x0;_0x38d3e8<_0x496d6d['length'];_0x38d3e8++)_0x219d69(_0x496d6d[_0x38d3e8],_0x496d6d,_0x38d3e8+0x1);for(let _0x38560a=0x0;_0x38560a<_0x496d6d['length'];_0x38560a++)_0x219d69(_0x496d6d[_0x38560a],_0x2fcc86,0x0);const _0x3b64f9=new Set();for(let _0x2b0ba4=0x0;_0x2b0ba4<_0x496d6d['length'];_0x2b0ba4++){const _0x3a5f0e=_0x496d6d[_0x2b0ba4];!_0x5e6369['has'](_0x3a5f0e)&&_0x3a5f0e['previous']&&(_0x3b64f9['add'](_0x3a5f0e['previous']),_0x3a5f0e['previous']['next']===_0x3a5f0e&&(_0x3a5f0e['previous']['next']=null),_0x3a5f0e['previous']=null),!_0xd0101d['has'](_0x3a5f0e)&&_0x3a5f0e['next']&&(_0x3b64f9['add'](_0x3a5f0e['next']),_0x3a5f0e['next']['previous']===_0x3a5f0e&&(_0x3a5f0e['next']['previous']=null),_0x3a5f0e['next']=null);}function _0x219d69(_0x4eab4f,_0x36bc03,_0x23b3b1){for(let _0x51bac9=_0x23b3b1;_0x51bac9<_0x36bc03['length'];_0x51bac9++){const _0x19c825=_0x2d33a3(_0x4eab4f,_0x36bc03[_0x51bac9]);_0x19c825&&(_0x19c825[0x0]['next']=_0x19c825[0x1],_0x19c825[0x1]['previous']=_0x19c825[0x0],_0xd0101d['add'](_0x19c825[0x0]),_0x5e6369['add'](_0x19c825[0x1]));}}function _0x2d33a3(_0x17a3b2,_0x5b4ded){if(_0x17a3b2['author']['id']!==_0x5b4ded['author']['id'])return null;const _0xb66426=_0x3db4b4['get'](_0x17a3b2)(_0x17a3b2,_0x5b4ded,_0x5b7a6c['get'](_0x17a3b2),_0x5b7a6c['get'](_0x5b4ded));if(!_0xb66426)return null;return _0x3db4b4['get'](_0x5b4ded)(_0x17a3b2,_0x5b4ded,_0x5b7a6c['get'](_0x17a3b2),_0x5b7a6c['get'](_0x5b4ded))?_0xb66426[0x1]['commentThread']&&_0xb66426[0x1]['commentThread']['length']?null:_0xb66426:null;}_0x3b64f9['size']&&this['_refreshSuggestionsChain'](_0x3b64f9);}['_refreshAttributeSuggestionsChain'](_0x549901){if(0x0==_0x549901['length'])return;const _0x102d17=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14545f=>'attribute'==_0x14545f['type']&&_0x14545f['_isDataLoaded']),_0x6cb33b=[],_0x2e83e2=new Map();for(const _0x154137 of _0x102d17){const _0x21c0ad=_0x1152a2(_0x154137['attributes']);_0x2e83e2['has'](_0x21c0ad)||(_0x2e83e2['set'](_0x21c0ad,_0x6cb33b['length']),_0x6cb33b['push']([]));const _0x1d4d50=_0x2e83e2['get'](_0x21c0ad);_0x6cb33b[_0x1d4d50]['push'](_0x154137);}!(function(){_0x6cb33b['sort']((_0x5b715a,_0x20f2e7)=>{const _0x23b85a=_0x5b715a[0x0]['createdAt'],_0x3200ec=_0x20f2e7[0x0]['createdAt'];return _0x23b85a==_0x3200ec?_0x5b715a[0x0]['attributes']['groupId']<_0x20f2e7[0x0]['attributes']['groupId']?-0x1:0x1:_0x23b85a<_0x3200ec?-0x1:0x1;});for(const _0x16306c of _0x6cb33b)_0x16306c['sort']((_0x24246f,_0x2e0aa8)=>_0x24246f['id']<_0x2e0aa8['id']?-0x1:0x1);}());for(let _0x2d8d98=0x0;_0x2d8d98<_0x6cb33b['length'];_0x2d8d98++){if(0x0==_0x6cb33b[_0x2d8d98]['length'])continue;const _0x19e506=[];for(let _0x552ef8=_0x2d8d98+0x1;_0x552ef8<_0x6cb33b['length'];_0x552ef8++)0x0!=_0x6cb33b[_0x552ef8]['length']&&_0x5067f7(_0x6cb33b[_0x2d8d98],_0x6cb33b[_0x552ef8])&&_0x19e506['push'](_0x552ef8);for(const _0x277c65 of _0x19e506)_0x6cb33b[_0x2d8d98]=_0x6cb33b[_0x2d8d98]['concat'](_0x6cb33b[_0x277c65]),_0x6cb33b[_0x277c65]=[];}for(const _0xf3ba9a of _0x6cb33b)for(let _0x53c314=0x0;_0x53c314<_0xf3ba9a['length'];_0x53c314++){const _0x499a8d=_0xf3ba9a[_0x53c314+0x1]||null;_0xf3ba9a[_0x53c314]['next']!==_0x499a8d&&(_0xf3ba9a[_0x53c314]['next']=_0x499a8d);}for(const _0x1287ed of _0x6cb33b)for(let _0x2c1860=0x0;_0x2c1860<_0x1287ed['length'];_0x2c1860++){const _0x2c4201=_0x1287ed[_0x2c1860-0x1]||null;_0x1287ed[_0x2c1860]['previous']!==_0x2c4201&&(_0x1287ed[_0x2c1860]['previous']=_0x2c4201);}function _0x5067f7(_0x4f2172,_0x28d78f){if(_0x4f2172[0x0]['attributes']['groupId']!==_0x28d78f[0x0]['attributes']['groupId']&&_0x4f2172[0x0]['author']!==_0x28d78f[0x0]['author'])return!0x1;if(!function(_0x2bb13a,_0x565422){if(!_0x2bb13a['hasComments']&&!_0x565422['hasComments'])return!0x0;if(_0x2bb13a['hasComments']&&_0x565422['hasComments'])return!0x1;if(_0x2bb13a['hasComments']&&_0x565422['createdAt']<_0x2bb13a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x565422['hasComments']&&_0x2bb13a['createdAt']<_0x565422['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4f2172[0x0],_0x28d78f[0x0]))return!0x1;const _0xe8b1b8=Ft(_0x4f2172[0x0]['attributes'],['groupId','trackingSessionId']),_0x27157c=Ft(_0x28d78f[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1cc8d5(_0xe8b1b8,_0x27157c))return!0x1;if(_0x4f2172[0x0]['attributes']['groupId']==_0x28d78f[0x0]['attributes']['groupId'])return!0x0;if(_0x4f2172[0x0]['attributes']['trackingSessionId']!==_0x28d78f[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4f2172['every'](_0x3583af=>_0x28d78f['some'](_0x408525=>_0x3583af['getFirstRange']()['isEqual'](_0x408525['getFirstRange']())))&&_0x28d78f['every'](_0x485402=>_0x4f2172['some'](_0x2171a5=>_0x485402['getFirstRange']()['isEqual'](_0x2171a5['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xd5dcaf){const _0x25a8ee=Array['from'](_0xd5dcaf),_0x1df7cb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x407654=_0x1df7cb['filter'](_0x3cc662=>!_0xd5dcaf['has'](_0x3cc662)),_0x270f86=new Map(_0x25a8ee['map'](_0x1a7a56=>[_0x1a7a56,this['_suggestionFactory']['getSuggestionCallback'](_0x1a7a56['type'],_0x1a7a56['subType'],'join')])),_0x2ffc05=new Map(_0x1df7cb['map'](_0x5a93fc=>[_0x5a93fc,_0x5a93fc['getRanges']()]));for(let _0x1f1d58=0x0;_0x1f1d58<_0x25a8ee['length'];_0x1f1d58++){if(_0x2d53d1(this,_0x25a8ee[_0x1f1d58],_0x25a8ee,_0x1f1d58+0x1))return!0x0;}for(let _0x493ce9=0x0;_0x493ce9<_0x25a8ee['length'];_0x493ce9++){if(_0x2d53d1(this,_0x25a8ee[_0x493ce9],_0x407654,0x0))return!0x0;}return!0x1;function _0x2d53d1(_0x2afaf3,_0x22886f,_0x3ab360,_0x546d45){for(let _0x3e92b1=_0x546d45;_0x3e92b1<_0x3ab360['length'];_0x3e92b1++){const _0x5c85fb=_0x3ab360[_0x3e92b1];if(_0x5c85fb['type']!==_0x22886f['type']||_0x5c85fb['author']['id']!==_0x22886f['author']['id']||_0x5c85fb['subType']!==_0x22886f['subType'])continue;if(!Qt(_0x22886f,_0x5c85fb))continue;if('attribute'==_0x22886f['type']&&_0x22886f['data']['oldValue']!=_0x5c85fb['data']['oldValue'])continue;if('attribute'==_0x22886f['type']&&_0x2afaf3['_isBlockAttribute'](_0x22886f['data']['key']))continue;if('formatBlock'==_0x22886f['type']){const _0x4ddb1e=_0x2afaf3['editor']['model'],_0x4a982b=_0x22886f['getContainedElement']();if(_0x4a982b&&(_0x4ddb1e['schema']['isObject'](_0x4a982b)||_0x4ddb1e['schema']['isLimit'](_0x4a982b)))continue;}const _0xec58a5=_0x270f86['get'](_0x22886f),_0x1d6c0a=_0x2ffc05['get'](_0x22886f),_0x2da0f6=_0x2ffc05['get'](_0x5c85fb),_0x589e2b=_0x22886f['commentThread']&&_0x22886f['commentThread']['length'],_0x4fa1ba=_0x5c85fb['commentThread']&&_0x5c85fb['commentThread']['length'];if(!_0x589e2b&&_0xec58a5(_0x2da0f6,_0x1d6c0a))return _0x2afaf3['_joinSuggestions'](_0x5c85fb,_0x22886f),_0x2ffc05['delete'](_0x22886f),!0x0;if(!_0x4fa1ba&&_0xec58a5(_0x1d6c0a,_0x2da0f6))return _0x2afaf3['_joinSuggestions'](_0x22886f,_0x5c85fb),_0x2ffc05['delete'](_0x5c85fb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2b113e,_0x4890a3){if(_0x2b113e['isMultiRange']){for(const _0x1acbe1 of _0x4890a3['getRanges']())_0x2b113e['addRange'](_0x1acbe1);}else{const _0x352ac9=_0x4890a3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2b113e,this['_model']['createRange'](_0x2b113e['getFirstRange']()['start'],_0x352ac9));}_0x4890a3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5682df,_0x49684d,_0x293593){const _0x1a72f1=_0x5682df['startsWith']('format')||_0x5682df['startsWith']('attribute')?'FORMATTING':_0x5682df['toUpperCase']();return c(this['editor']['locale'],_0x49684d+'_'+_0x1a72f1+'_SUGGESTION_ANNOUNCEMENT',_0x293593);}['_initAriaMarkerChangeAnnouncements'](){const _0xd937db=this['editor'];if(!_0xd937db['ui'])return;const {ariaLiveAnnouncer:_0x46fe17}=_0xd937db['ui'];_0xb989cc(this['_model'],({left:_0x5e1b0d,entered:_0x4859ec})=>{for(const _0x5b2835 of _0x5e1b0d){const {group:_0x3183a2,type:_0x5c602c}=this['_splitMarkerName'](_0x5b2835['name']);if('suggestion'===_0x3183a2){_0x46fe17['announce'](this['_getMarkerAnnouncementText'](_0x5c602c,'LEAVE'));break;}}for(const _0x213147 of _0x4859ec){const {group:_0x560add,type:_0x34878c}=this['_splitMarkerName'](_0x213147['name']);if('suggestion'===_0x560add){_0x46fe17['announce'](this['_getMarkerAnnouncementText'](_0x34878c,'ENTER',_0x4c7332(_0xc353d)));break;}}});}['_processAttributeChanges'](_0x402725){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1e0807=this['editor'],_0x15f508=_0x1e0807['model']['document']['differ']['getChanges']();if(0x0==_0x15f508['length'])return!0x1;const _0x46990b=[],_0x3ef8c2=_0x15f508['filter'](_0x346acb=>'attribute'==_0x346acb['type']),_0x21164b=_0x15f508['filter'](_0xe4ba7f=>'insert'==_0xe4ba7f['type']&&'$text'!=_0xe4ba7f['name']),_0x28ed09=_0x15f508['filter'](_0x264001=>'remove'==_0x264001['type']&&'$text'!=_0x264001['name']);for(const _0x43c8f4 of _0x3ef8c2)_0x46990b['push']({'key':_0x43c8f4['attributeKey'],'newValue':_0x43c8f4['attributeNewValue'],'oldValue':_0x43c8f4['attributeOldValue'],'range':qt(_0x43c8f4['range'],_0x1e0807['model'])});for(const _0x19a951 of _0x21164b){const _0x5da8d2=_0x28ed09['find'](_0x4c9376=>_0x4c9376['position']['isEqual'](_0x19a951['position']));_0x5da8d2&&_0x46990b['push']({'key':u,'newValue':_0x19a951['name'],'oldValue':_0x5da8d2['name'],'range':_0x1e0807['model']['createRangeOn'](_0x19a951['position']['nodeAfter'])});}return 0x0!=_0x46990b['length']&&this['_reduceExistingSuggestions'](_0x402725,_0x46990b);}['_processAttributeSuggestions'](_0x597db7){let _0x36b8d9=!0x1;const _0x16d208=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2babba=>_0x2babba['data']['newRange']&&_0x2babba['name']['startsWith']('suggestion:attribute:'));for(const _0x1bdb36 of _0x16d208){const {subType:_0x4399c3,id:_0x4b4d5f}=this['_splitMarkerName'](_0x1bdb36['name']),_0x285aa7=_0x4399c3['split']('|')[0x0];for(const _0x55a0de of this['getSuggestions']({'skipNotAttached':!0x0}))_0x55a0de['id']!=_0x4b4d5f&&'attribute'==_0x55a0de['type']&&_0x55a0de['data']&&_0x55a0de['data']['key']==_0x285aa7&&_0x55a0de['getFirstRange']()['isIntersecting'](_0x1bdb36['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x55a0de,_0x1bdb36['data']['newRange'],_0x597db7),_0x36b8d9=!0x0);}return _0x36b8d9;}['_recordAttributeChanges'](_0xdbd999){this['_recordAttributeSuggestions']=!0x0,_0xdbd999();}['_isRegisteredAttribute'](_0x30c772){const _0x8b3720=this['_isBlockAttribute'](_0x30c772),_0x20b3b7=this['_inlineAttributeKeys']['has'](_0x30c772);return _0x8b3720||_0x20b3b7;}['_reduceExistingSuggestions'](_0x4d5fe0,_0x49a553){if(0x0==_0x49a553['length'])return!0x1;let _0x250125=!0x1;for(const _0x1e2c1b of _0x49a553){const _0x4a7df5=this['_findSuggestions'](_0x1e2c1b['range'],'attribute')['filter'](_0x126771=>!_0x126771['meta']['isNextTo'])['map'](_0x4044c9=>_0x4044c9['suggestion']),_0x4b8ead=_0x1152a2({'newValue':_0x1e2c1b['newValue']});_0x4a7df5['filter'](_0x5f27a2=>{const [_0x3a5449,_0x17da9f]=_0x5f27a2['subType']['split']('|');return _0x3a5449==_0x1e2c1b['key']&&_0x17da9f!=_0x4b8ead;})['forEach'](_0x2f60b2=>{this['_reduceSuggestionAttributeRange'](_0x2f60b2,_0x1e2c1b['range'],_0x4d5fe0),_0x250125=!0x0;});}return _0x250125;}['_reduceSuggestionAttributeRange'](_0x467ddd,_0x7c24e2,_0x141ed1){const _0x2fe2f5=_0x467ddd['getFirstRange']()['getDifference'](_0x7c24e2);0x0!==_0x2fe2f5['length']?0x1!==_0x2fe2f5['length']?this['_breakSuggestionMarker'](_0x467ddd,_0x7c24e2['start'],_0x7c24e2['end']):this['_setSuggestionRange'](_0x467ddd,_0x2fe2f5[0x0]):_0x141ed1['removeMarker'](_0x467ddd['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4d6e5f){this['_editor']=_0x4d6e5f,this['_model']=_0x4d6e5f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x401d34,_0x428eb8,_0x27347f,_0x32b6f2,_0x2fa7f8,_0x36c79c,_0x440a5a){return new o(this['_model'],{'type':_0x401d34,'subType':_0x428eb8,'id':_0x27347f,'originalSuggestionId':_0x440a5a,'author':_0x32b6f2,'creator':_0x32b6f2,'attributes':_0x2fa7f8,'onAttributesChange':_0x36c79c,'onAccept':(..._0x1b5a0a)=>this['getSuggestionCallback'](_0x401d34,_0x428eb8,'accept')(..._0x1b5a0a),'onDiscard':(..._0x4b1273)=>this['getSuggestionCallback'](_0x401d34,_0x428eb8,'discard')(..._0x4b1273)});}['registerCustomCallback'](_0x45016d,_0x4b89f7,_0x40953c,_0xd4e89d){const _0x546360=_0x45016d+':'+_0x4b89f7+':'+_0x40953c;this['_customCallbacks']['set'](_0x546360,_0xd4e89d);}['getSuggestionCallback'](_0x480481,_0x2371e9,_0x1eead8){const _0x1d2bb0=_0x480481+':'+_0x2371e9+':'+_0x1eead8;return this['_customCallbacks']['get'](_0x1d2bb0)||this['_defaultCallbacks']['get'](_0x480481+':'+_0x1eead8);}['_registerDefaultCallbacks'](){const _0x2f6ad3=()=>!0x1,_0x38f234=_0x118080=>{_0x118080['sort']((_0x5019ea,_0x594301)=>_0x5019ea['start']['isBefore'](_0x594301['start'])?0x1:-0x1),this['_model']['change'](_0x1144d8=>{for(const _0x16d831 of _0x118080){let _0x423896;_0x423896=_0x16d831['end']['isAtEnd']&&_0x16d831['end']['parent']==_0x16d831['start']['nodeAfter']?_0x1144d8['createSelection'](_0x16d831['start']['nodeAfter'],'on'):_0x1144d8['createSelection'](_0x16d831),this['_model']['deleteContent'](_0x423896,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x216f5b=(_0x4a2dc1,_0x5af9bb)=>{_0x5af9bb&&this['_model']['change'](_0x566318=>{const {commandName:_0x1c1b98,commandParams:_0x467824=[]}=_0x5af9bb,_0x42527b=_0x4a2dc1['map'](_0x1171fd=>(Lt(_0x1171fd)&&(_0x1171fd=this['_model']['createRange'](_0x1171fd['end'])),_0x1171fd))['filter'](_0x518f13=>'$graveyard'!==_0x518f13['root']['rootName']);if(_0x42527b['length']<0x1)return;const _0x126b88=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2ced88=>_0x21cd14['fromRange'](_0x2ced88));_0x566318['setSelection'](_0x42527b);for(const _0x6a6e66 of this['_editor']['commands']['commands']())_0x6a6e66['refresh']();_0x467824['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c1b98,..._0x467824);const _0x359f4d=_0x126b88['filter'](_0x1e591b=>'$graveyard'!=_0x1e591b['root']['rootName']);_0x359f4d['length']>0x0&&_0x566318['setSelection'](_0x359f4d);for(const _0x76269d of _0x126b88)_0x76269d['detach']();});},_0x3b07a1=(_0x3f9253,_0x4a4939)=>0x1==_0x3f9253['length']&&0x1==_0x4a4939['length']&&_0x3f9253[0x0]['end']['isEqual'](_0x4a4939[0x0]['start']),_0x1c25c1=(_0x5a5db7,_0x7e272f,_0x37d63a,_0x32c8d1)=>Wt(_0x5a5db7,_0x7e272f,_0x37d63a,_0x32c8d1)?[_0x5a5db7,_0x7e272f]:Wt(_0x7e272f,_0x5a5db7,_0x32c8d1,_0x37d63a)?[_0x7e272f,_0x5a5db7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f6ad3),this['_defaultCallbacks']['set']('insertion:discard',_0x38f234),this['_defaultCallbacks']['set']('insertion:join',_0x3b07a1),this['_defaultCallbacks']['set']('insertion:chain',_0x1c25c1),this['_defaultCallbacks']['set']('deletion:accept',_0x38f234),this['_defaultCallbacks']['set']('deletion:discard',_0x2f6ad3),this['_defaultCallbacks']['set']('deletion:join',_0x3b07a1),this['_defaultCallbacks']['set']('deletion:chain',_0x1c25c1),this['_defaultCallbacks']['set']('formatInline:accept',_0x216f5b),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f6ad3),this['_defaultCallbacks']['set']('formatInline:join',_0x3b07a1),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f6ad3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x216f5b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f6ad3),this['_defaultCallbacks']['set']('formatBlock:join',_0x3b07a1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f6ad3),this['_defaultCallbacks']['set']('attribute:accept',_0x2f6ad3),this['_defaultCallbacks']['set']('attribute:discard',(_0x133f6b,_0x414b1a)=>{if(!_0x414b1a)return;const _0x21c0e2=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5cf101=>{if(_0x414b1a['key']==u)for(const _0x447245 of _0x133f6b){const _0x235e3d=_0x447245['start']['nodeAfter'],_0x1cdd0e=_0x414b1a['oldValue'];_0x5cf101['rename'](_0x235e3d,_0x1cdd0e);}else{if(_0x21c0e2['_isBlockAttribute'](_0x414b1a['key'])){for(const _0x196d76 of _0x133f6b)void 0x0!==_0x414b1a['oldValue']?_0x5cf101['setAttribute'](_0x414b1a['key'],_0x414b1a['oldValue'],_0x196d76['start']['nodeAfter']):_0x5cf101['removeAttribute'](_0x414b1a['key'],_0x196d76['start']['nodeAfter']);}else{for(const _0x5a5e76 of _0x133f6b)_0x414b1a['oldValue']?_0x5cf101['setAttribute'](_0x414b1a['key'],_0x414b1a['oldValue'],_0x5a5e76):_0x5cf101['removeAttribute'](_0x414b1a['key'],_0x5a5e76);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3b07a1);}}function Gt(_0x22a5cd,_0xbd4ed8,_0x5b033c){for(const _0x45d124 of _0xbd4ed8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x45d124['root']==_0x45d124)return!0x1;if(!_0x5b033c['containsItem'](_0x45d124))return!0x1;if(_0x22a5cd['isObject'](_0x45d124)||_0x22a5cd['isLimit'](_0x45d124))return!0x0;}return!0x1;}function Lt(_0x3fb557){return _0x3fb557['end']['parent']==_0x3fb557['start']['nodeAfter']&&_0x3fb557['end']['isAtStart'];}function Jt(_0x199332,_0x21df51,_0x675682,_0x4194a9){const _0x46c3de=_0x3831e6=>!_0x3831e6['item']['is']('$textProxy')&&!_0x4194a9['isObject'](_0x3831e6['item']),_0x28c7ae=_0x199332['start']['getLastMatchingPosition'](_0x46c3de),_0x5bc6fd=_0x199332['end']['getLastMatchingPosition'](_0x46c3de,{'direction':'backward'});return(!_0x199332['start']['isEqual'](_0x28c7ae)||!_0x199332['end']['isEqual'](_0x5bc6fd))&&(_0x28c7ae['isBefore'](_0x5bc6fd)?_0x675682['updateMarker'](_0x21df51,{'range':_0x675682['createRange'](_0x28c7ae,_0x5bc6fd)}):_0x675682['removeMarker'](_0x21df51),!0x0);}function Kt(_0x59e24f){return _0x1152a2(_0x59e24f);}function Ht(_0x28a179){const _0x38481e=_0x28a179['start']['nodeAfter'];return _0x38481e&&_0x38481e['is']('element');}function qt(_0xb88d8a,_0x26365f){return null==_0xb88d8a['end']['nodeBefore']&&_0xb88d8a['end']['parent']==_0xb88d8a['start']['nodeAfter']?zt(_0xb88d8a['start']['nodeAfter'],_0x26365f):_0xb88d8a;}function zt(_0x30c04a,_0x20af43){const _0xfe9d0d=_0x20af43['schema']['isObject'](_0x30c04a)||_0x20af43['schema']['isSelectable'](_0x30c04a);return _0x20af43['createRange'](_0x20af43['createPositionAt'](_0x30c04a,'before'),_0xfe9d0d?_0x20af43['createPositionAfter'](_0x30c04a):_0x20af43['createPositionAt'](_0x30c04a,'end'));}function Wt(_0x847454,_0x4df904,_0x1853cc,_0x60b21b){return!!Qt(_0x847454,_0x4df904)&&_0x1853cc['end']['isEqual'](_0x60b21b['start']);}function Qt(_0x685d25,_0x2a2d49){if(!_0x685d25['_isDataLoaded']||!_0x2a2d49['_isDataLoaded'])return!0x1;const _0x209990=new Set(Object['keys'](_0x685d25['attributes'])),_0xbb905b=new Set(Object['keys'](_0x2a2d49['attributes']));if(_0x209990['delete']('groupId'),_0xbb905b['delete']('groupId'),0x0==_0x209990['size']&&0x0==_0xbb905b['size'])return!0x0;if(_0x209990['size']!=_0xbb905b['size'])return!0x1;const _0x1d492a={..._0x685d25['attributes']},_0x2511da={..._0x2a2d49['attributes']};return delete _0x1d492a['groupId'],delete _0x2511da['groupId'],JSON['stringify'](_0x1d492a)==JSON['stringify'](_0x2511da);}function Xt(_0x35e264,_0x5d0250){const _0xcbc1e1=Yt(_0x35e264['attributes']),_0x4a12dd=Yt(_0x5d0250);if(!_0x35e264['_isDataLoaded'])return!0x1;for(const _0x1b2e82 of Object['keys'](_0x4a12dd))if(!_0x1cc8d5(_0xcbc1e1[_0x1b2e82],_0x4a12dd[_0x1b2e82]))return!0x1;return!0x0;}function Yt(_0x4f961e){const _0x12012=Object['assign']({},_0x4f961e);return delete _0x12012['skipNestingCheck'],delete _0x12012['tablePasteChainId'],_0x12012;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5e4a13(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x29f00c,_0x460267,_0x29c9a9,_0x425106){super(),this['model']=_0x460267,this['view']=_0x29c9a9,this['commentThreadController']=_0x425106,this['_editor']=_0x29f00c,this['_acceptCommand']=_0x29f00c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x29f00c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x91d5e,_0x27715a)=>_0x91d5e||_0x27715a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x49aacf=>_0x49aacf&&this['_editor']['model']['canEditAt'](_0x460267['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x404a16=>_0x404a16&&this['_editor']['model']['canEditAt'](_0x460267['getRanges']())),this['_pendingAction']=null,_0x29c9a9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x29c9a9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x29c9a9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x29c9a9,'change:isDirty',()=>{_0x29c9a9['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 _0x1391fa=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1391fa);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x160dd4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4a8669,_0x165d8a,_0x3a18a6,_0x4842e3){super(_0x4a8669),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x13763c(_0x4a8669,c(_0x4a8669,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x165d8a['authoredAt']),this['bind']('authoredAt')['to'](_0x165d8a),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',_0x165d8a,'authoredAt',this,'descriptionParts',(_0x20b670,_0xe761f5,_0x3f9418)=>{const _0x2c9a14=_0x3f9418['map'](_0x459103=>ls(_0x459103['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x20b670-0x1,_0x165d8a['author']['name'],_0xe761f5?_0x4842e3['formatDateTime'](_0xe761f5):'',new DOMParser()['parseFromString'](_0x2c9a14,'text/html')['body']['textContent']]);}),this['focusables']=new _0x282e9a(),this['focusTracker']=new _0x4d2e11(),this['keystrokes']=new _0x3b3830(),this['focusCycler']=new _0x11e62c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1becd7=>_0x1becd7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x165d8a,this['_localUser']=_0x3a18a6,this['_config']=_0x4842e3,_0x4842e3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4cd8d1(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x195417}=this['_config'];this['commentsListView']=new _0x195417(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',_0x571225=>_0x571225+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x160c26,_0x3e9b8c)=>_0x160c26||!!_0x3e9b8c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5f08dd}=this['_config'],_0x391e50=new _0x5f08dd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3be586=_0x391e50['commentInputView'];return _0x391e50['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3be586,'value',(_0x17ba88,_0x5c84ec,_0x549f84)=>!!_0x549f84||_0x17ba88&&!_0x5c84ec),_0x3be586['on']('submit',(_0x1c2e04,_0x50804b)=>{this['fire']('addComment',_0x50804b),_0x3be586['editor']['setData']('');}),_0x3be586['on']('cancel',()=>this['focus']()),_0x3be586['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x391e50;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5e7656,_0x5da942,_0x3271c6,_0x3052f4){super(_0x5e7656,_0x5da942,_0x3271c6,_0x3052f4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5ace66=>_0x5ace66&&_0x5ace66[0x0]?_0x5ace66[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1466c6,_0xd99ef6)=>{let _0x2c3e66='';for(const _0x1462af of _0x1466c6)_0x2c3e66+='<p>'+ls(_0x1462af['content'],_0x1462af['color'])+'</p>';return _0xd99ef6?_0x2c3e66:ti(_0x2c3e66,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3052f4['SuggestionView'](_0x5e7656,_0x5da942,{'formatDateTime':_0x3052f4['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 _0x5ac428=this['bindTemplate'],_0x28e59e=[this['suggestionView']];return this['commentsListView']&&_0x28e59e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x28e59e['push'](this['commentThreadInputView']),_0x28e59e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5ac428['if']('isActive','ck-suggestion-wrapper--active'),_0x5ac428['to']('type',_0x1e663c=>'ck-suggestion-'+_0x1e663c),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':_0x5ac428['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x28e59e};}['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 _0x160dd4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2a247e,_0x17108d,_0x9425cf){super(_0x2a247e),this['_model']=_0x17108d,this['_config']=_0x9425cf,this['set']('description',''),this['bind']('authoredAt')['to'](_0x17108d),this['acceptButton']=this['_createButton'](c(_0x2a247e,'Accept\x20suggestion'),_0x1b3868,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x2a247e,'Discard\x20suggestion'),_0x3e114e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1628b5(_0x2a247e,_0x17108d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x282e9a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4d2e11(),this['keystrokes']=new _0x3b3830(),this['focusCycler']=new _0x11e62c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5cdd09=>_0x5cdd09['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x44d69d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x44d69d['innerHTML']=this['description'],this['on']('change:description',(_0xf14c8e,_0x10534d,_0x2e2d9a)=>{_0x44d69d['innerHTML']=_0x2e2d9a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4dee3e=this['bindTemplate'],_0x40d571=[{'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':_0x4dee3e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4dee3e['to']('authoredAt',_0x1db097=>this['_config']['formatDateTime'](_0x1db097))}]}]},{'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']&&_0x40d571['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':_0x40d571}]};}['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'](_0x5d965f,_0x20fda5,_0x4d2831,_0x411048,_0xbc3f32){const _0x3fa049=new _0x25ba23(this['locale']);return _0x3fa049['set']({'label':_0x5d965f,'icon':_0x20fda5,'tooltip':!0x0,'tooltipPosition':_0xbc3f32}),_0x3fa049['extendTemplate']({'attributes':{'class':_0x4d2831}}),_0x3fa049['on']('execute',()=>{this['fire'](_0x411048,this['_model']['id']);}),_0x3fa049;}['_setupKeyboardNavigation'](){const _0x2b0367=this['element'];this['keystrokes']['listenTo'](_0x2b0367);for(const _0x1a3254 of this['focusables'])this['focusTracker']['add'](_0x1a3254['element']),this['keystrokes']['listenTo'](_0x1a3254['element']);this['keystrokes']['set']('enter',(_0x2d663f,_0x1a6a49)=>{_0x2b0367===_0x2d663f['target']&&(this['focusCycler']['focusFirst'](),_0x1a6a49());}),this['keystrokes']['set']('esc',(_0x992482,_0x1f6453)=>{_0x2b0367!==_0x992482['target']&&(this['focus'](),_0x1f6453());});}}class d extends _0x385d2b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x147b02,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa3791b){super(_0xa3791b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3ea3c6=this['editor']['config'];_0x3ea3c6['define']('trackChanges.SuggestionThreadView',fe),_0x3ea3c6['define']('trackChanges.SuggestionView',we),_0x3ea3c6['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3ea3c6['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1f765c,_0x2ddb21){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4397ad,_0x58ea88]of this['_handleControllerBuffer']){const _0xf6a94=this['_suggestionToController']['has'](_0x4397ad);_0xf6a94||_0x58ea88?_0xf6a94&&_0x58ea88&&this['_destroyController'](_0x4397ad):this['_initializeController'](_0x4397ad);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1f765c,_0x2ddb21);}['init'](){const _0x32dc5b=this['editor'],_0x4c2649=_0x32dc5b['plugins']['get']('TrackChangesEditing'),_0x21153a=_0x32dc5b['plugins']['get']('Annotations'),_0x2d8d2e=_0x32dc5b['plugins']['get']('EditorAnnotations'),_0x1b1b1d=_0x32dc5b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2d8d2e['addSourceCollector'](()=>{const _0x93b5ad=[];for(const [_0x2f5421,_0x2bcca0]of Array['from'](this['_suggestionToController'])){const _0x48c871=_0x2f5421['getAllAdjacentSuggestions'](),_0x499bb3=[];for(const _0x21204a of _0x48c871){if(!_0x21204a['isInContent'])continue;if(_0x21204a['isMultiRange']){_0x499bb3['push'](..._0x21204a['getRanges']());continue;}const _0x226622=_0x21204a['getFirstRange']();if(_0x499bb3['length']>0x0){const _0x349d95=_0x499bb3[0x0]['getJoined'](_0x226622);if(_0x349d95){_0x499bb3[0x0]=_0x349d95;continue;}}_0x499bb3['push'](_0x226622);}_0x93b5ad['push']([_0x2bcca0['view'],_0x499bb3]);}return _0x93b5ad;}),this['listenTo'](_0x4c2649,'suggestionLoaded',(_0x42528a,_0x301668)=>{this['listenTo'](_0x301668,'change:previous',(_0x3ad45f,_0x2b10d8,_0x1e37cf,_0x37aaa1)=>{_0x301668['isInContent']&&(null==_0x1e37cf?(this['_updateController'](_0x37aaa1['head']),this['_handleSuggestionControllerDelayed'](_0x301668,!0x1)):(this['_updateController'](_0x1e37cf['head']),null==_0x37aaa1&&this['_handleSuggestionControllerDelayed'](_0x301668,!0x0)));}),null!==_0x301668['previous']?this['_updateController'](_0x301668['head']):this['_handleSuggestionControllerDelayed'](_0x301668,!0x1);}),this['listenTo'](_0x4c2649,'suggestionUnloaded',(_0x1feb19,_0x406b64,_0xe4209d)=>{this['stopListening'](_0x406b64,'change:previous'),this['_handleControllerBuffer']['delete'](_0x406b64),this['_suggestionToController']['has'](_0x406b64)&&this['_destroyController'](_0x406b64),_0xe4209d&&this['_updateController'](_0xe4209d['head']);}),this['listenTo'](_0x4c2649,'suggestionChanged',(_0x5c1b90,_0x3a5f52)=>{this['_updateController'](_0x3a5f52);}),this['listenTo'](_0x21153a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1b1b1d,'addComment',(_0x2ea490,{threadId:_0x2deb6c,isFromAdapter:_0x4339cb})=>{if(_0x4339cb||!_0x4c2649['hasSuggestion'](_0x2deb6c))return;const _0x24ce19=_0x4c2649['getSuggestion'](_0x2deb6c);this['_suggestionToController']['get'](_0x24ce19)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32c5e5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf1f871;for(const _0x53858f in _0x32c5e5){const _0x4a84ce=_0x53858f,_0x5082d5=_0x32c5e5[_0x4a84ce];if('trackChangesLicenseKeyValid'==_0x5082d5||'trackChangesLicenseKeyInvalid'==_0x5082d5||'trackChangesLicenseKeyExpired'==_0x5082d5||'trackChangesLicenseKeyDomainLimit'==_0x5082d5||'trackChangesLicenseKeyNotAllowed'==_0x5082d5||'trackChangesLicenseKeyEvaluationLimit'==_0x5082d5||'trackChangesLicenseKeyTrialLimit'==_0x5082d5||'trackChangesLicenseKeyUsageLimit'==_0x5082d5){delete _0x32c5e5[_0x4a84ce],_0xf1f871=_0x5082d5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xf1f871&&_0x32c5e5['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xf1f871&&_0x32c5e5['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xf1f871&&_0x32c5e5['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xf1f871&&_0x32c5e5['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xf1f871&&_0x32c5e5['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xf1f871&&_0x32c5e5['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xf1f871&&_0x32c5e5['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x12b8e0=this['editor']['plugins']['get']('Annotations'),_0x2c789c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8cd0a2=Array['from'](_0x12b8e0['activeAnnotations'],_0x4f5389=>_0x4f5389['innerView'])['filter'](_0x474dba=>this['_viewToController']['has'](_0x474dba)),_0x5f3e34=[];for(const _0x11bf30 of _0x8cd0a2){const _0x278f0a=this['_viewToController']['get'](_0x11bf30)['model']['getAllAdjacentSuggestions']();_0x5f3e34['push'](..._0x278f0a['reduce']((_0x2945e0,_0xf34b8f)=>[..._0x2945e0,..._0xf34b8f['getMarkerNames']()],[]));}_0x2c789c['activeMarkers']=_0x5f3e34;}['_addUIComponentsToFactory'](){const _0x2c6784=this['editor'],_0x2ec05a=_0x2c6784['locale'],_0xe2e9bd=c(_0x2ec05a,'Track\x20changes'),_0x2e7756=new _0x2fed68([{'type':'switchbutton','model':new _0x2ad1ea({'withText':!0x0,'isToggleable':!0x0,'label':_0xe2e9bd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2ad1ea({'withText':!0x0,'label':c(_0x2ec05a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ad1ea({'withText':!0x0,'label':c(_0x2ec05a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ad1ea({'withText':!0x0,'label':c(_0x2ec05a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ad1ea({'withText':!0x0,'label':c(_0x2ec05a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2c6784['plugins']['has']('TrackChangesPreview')&&_0x2e7756['addMany']([{'type':'separator'},{'type':'button','model':new _0x2ad1ea({'withText':!0x0,'label':c(_0x2ec05a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4c0fb5 of _0x2e7756)if(ke(_0x4c0fb5)){const _0x2db6f9=_0x2c6784['commands']['get'](_0x4c0fb5['model']['commandName']);_0x4c0fb5['model']['bind']('isOn','isEnabled')['to'](_0x2db6f9,'value','isEnabled');}_0x2c6784['ui']['componentFactory']['add']('trackChanges',_0x187973=>this['_createToolbarButton'](_0x187973,_0x2e7756,_0xe2e9bd)),_0x2c6784['ui']['componentFactory']['add']('menuBar:trackChanges',_0x313e0f=>this['_createMenuBarMenu'](_0x313e0f,_0x2e7756,_0xe2e9bd));}['_createToolbarButton'](_0x969aa6,_0x5264b5,_0x43bac6){const _0x466c1b=_0x5b6ead(_0x969aa6,_0x1b9d33),_0x266ee2=this['editor']['commands']['get']('trackChanges');_0x466c1b['buttonView']['set']({'tooltip':_0x43bac6,'label':_0x43bac6,'icon':_0x53e025}),_0x466c1b['buttonView']['bind']('isOn')['to'](_0x266ee2,'value'),_0x466c1b['buttonView']['on']('execute',()=>{_0x266ee2['execute'](),this['editor']['editing']['view']['focus']();}),_0x30b889(_0x466c1b,_0x5264b5,{'role':'menu'});const _0xcb081a=[];for(const _0x39ec7b of _0x5264b5)ke(_0x39ec7b)&&_0xcb081a['push'](this['editor']['commands']['get'](_0x39ec7b['model']['commandName']));const _0x7efb1b=_0x466c1b['buttonView'];return _0x7efb1b['actionView']['unbind']('isEnabled'),_0x7efb1b['arrowView']['unbind']('isEnabled'),_0x7efb1b['actionView']['bind']('isEnabled')['to'](_0x266ee2,'isEnabled'),_0x7efb1b['arrowView']['bind']('isEnabled')['toMany'](_0xcb081a,'isEnabled',(..._0x1fd26e)=>_0x1fd26e['some'](_0x234b17=>_0x234b17)),_0x466c1b['on']('execute',_0x55ced1=>{this['editor']['execute'](_0x55ced1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x466c1b;}['_createMenuBarMenu'](_0x435667,_0x421cd3,_0x675c46){const _0xd1f927=new _0x3c88f7(_0x435667),_0x56804c=this['editor']['commands']['get']('trackChanges');_0xd1f927['buttonView']['set']({'label':_0x675c46,'icon':_0x53e025});const _0x3b4fcd=new _0x141f2a(_0x435667);for(const _0x169a42 of _0x421cd3){if('separator'==_0x169a42['type']){_0x3b4fcd['items']['add'](new _0x51174f(_0x435667));continue;}const _0x1e03df=new _0x3d5574(_0x435667,_0xd1f927),_0x5eacf5=new _0x4e727c(_0x435667),_0x5c8ab0=_0x169a42['model'];_0x5eacf5['bind'](...Object['keys'](_0x5c8ab0))['to'](_0x5c8ab0),_0x5eacf5['delegate']('execute')['to'](_0xd1f927),_0x5eacf5['on']('execute',()=>{this['editor']['execute'](_0x5c8ab0['commandName']),this['editor']['editing']['view']['focus']();}),_0x1e03df['children']['add'](_0x5eacf5),_0x3b4fcd['items']['add'](_0x1e03df);}return _0xd1f927['bind']('isEnabled')['to'](_0x56804c,'isEnabled'),_0xd1f927['panelView']['children']['add'](_0x3b4fcd),_0xd1f927;}['_initializeController'](_0x388890){const _0x8b2cf4=this['editor'],_0x35dcee=_0x8b2cf4['config'],_0x1c980f=_0x8b2cf4['plugins']['get']('Annotations'),_0x4df293=_0x8b2cf4['plugins']['get']('CommentsRepository'),_0x21fe10=_0x8b2cf4['plugins']['get']('EditorAnnotations'),_0x415478=_0x8b2cf4['plugins']['get'](_0x147b02)['me'],_0x464948=_0x35dcee['get']('trackChanges')['SuggestionThreadView'],_0x21d460=_0x35dcee['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4fd8cc,CommentThreadInputView:_0x56a966}=_0x8b2cf4['plugins']['get']('CommentsUI');let _0x13665f,_0x35e37d,_0x2ac350;this['_annotationViews']['has'](_0x388890['id'])?(_0x35e37d=this['_annotationViews']['get'](_0x388890['id']),_0x13665f=_0x35e37d['mainView']):(_0x13665f=new _0x464948(_0x8b2cf4['locale'],_0x388890,_0x415478,{'disableComments':this['_disableComments'],'editorConfig':{..._0x35dcee['get']('comments.editorConfig'),'licenseKey':_0x35dcee['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x35dcee['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x35dcee['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x35dcee['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x352c5a(_0x35dcee['get']('locale'),_0x8b2cf4['locale']),'CommentView':_0x35dcee['get']('comments')['CommentView'],'CommentsListView':_0x4fd8cc,'CommentThreadInputView':_0x56a966,'SuggestionView':_0x21d460}),_0x13665f['suggestionView']['acceptButton']['on']('execute',()=>{_0x8b2cf4['editing']['view']['focus']();}),_0x13665f['suggestionView']['discardButton']['on']('execute',()=>{_0x8b2cf4['editing']['view']['focus']();}),_0x35e37d=_0x1c980f['createAnnotationView'](this['editor']['locale'],_0x13665f),_0x35e37d['bind']('isDirty')['to'](_0x13665f,'isDirty'),_0x35e37d['bind']('length')['to'](_0x13665f),_0x35e37d['bind']('type')['to'](_0x13665f,'type',_0x20a1e1=>'suggestion-'+_0x20a1e1),_0x13665f['on']('escape',()=>{_0x2ac350['fire']('escape');}),this['_annotationViews']['set'](_0x388890['id'],_0x35e37d));const _0x335dca=_0x4df293['createCommentThreadController'](_0x388890['commentThread'],_0x13665f),_0x449edd=new pe(_0x8b2cf4,_0x388890,_0x13665f,_0x335dca),_0x1542b0=_0x388890['getAllAdjacentSuggestions']()['filter'](_0x4171a3=>_0x4171a3['isInContent']);_0x13665f['descriptionParts']=_0x8b2cf4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1542b0),this['_suggestionToController']['set'](_0x388890,_0x449edd),this['_viewToController']['set'](_0x13665f,_0x449edd),_0x2ac350=_0x1c980f['createAnnotation']({'view':_0x35e37d,'target':()=>{const _0x13d49b=[],_0x86d2b4=_0x388890['getAllAdjacentSuggestions']()['filter'](_0x5bb608=>_0x5bb608['isInContent']);for(const _0x15c92c of _0x86d2b4)_0x13d49b['push'](..._0x15c92c['getMarkers']());return _0x105a56(_0x8b2cf4['editing'],_0x13d49b);},'type':()=>'suggestion-'+_0x449edd['view']['type']}),_0x4df293['_bindAnnotationToEditors'](_0x13665f,_0x2ac350),_0x1c980f['add'](_0x2ac350),_0x21fe10['registerAnnotation'](_0x2ac350);}['_destroyController'](_0x2f7bda){const _0x3e700b=this['editor']['plugins']['get']('CommentsRepository'),_0x46fdb1=this['editor']['plugins']['get']('Annotations'),_0x3d3508=this['_suggestionToController']['get'](_0x2f7bda),_0x4d5d18=_0x3d3508['view'],_0x5c507d=_0x46fdb1['getByInnerView'](_0x4d5d18);_0x3e700b['_unbindEditors'](_0x4d5d18),_0x5c507d&&_0x46fdb1['remove'](_0x5c507d),this['_suggestionToController']['delete'](_0x2f7bda),this['_viewToController']['delete'](_0x4d5d18),_0x3d3508['destroy']();}['_updateController'](_0xf13054){if(!_0xf13054['isInContent']||!this['_suggestionToController']['has'](_0xf13054))return;const _0x2625f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11af1e=this['_suggestionToController']['get'](_0xf13054),_0x411d2d=_0xf13054['getAllAdjacentSuggestions']();_0x11af1e['view']['descriptionParts']=_0x2625f9['descriptionFactory']['getDescriptions'](_0x411d2d);}['destroy'](){for(const _0x26a307 of this['_suggestionToController']['keys']())this['_destroyController'](_0x26a307);for(const _0x5bd25f of this['_annotationViews']['values']())_0x5bd25f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x23d743){return'model'in _0x23d743;}class k extends _0x385d2b{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x159399){this['editor']['plugins']['get'](p)['adapter']=_0x159399;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x8f04f4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x8f04f4);}['getSuggestions']({skipNotAttached:_0x4c59ab=!0x1,toJSON:_0x138101=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4c59ab,'toJSON':_0x138101});}['getSuggestion'](_0x56898c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x56898c);}}const w=['Pagination'];class T extends _0x385d2b{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3e31ea=this['editor'];if(_0x3e31ea['config']['define']('trackChangesData.editorCreator',_0x6d2400=>{const _0x4933ed=_0x3e31ea['model']['document']['getRootNames']()['reduce']((_0xf83949,_0x2db9ad)=>(_0xf83949[_0x2db9ad]='',_0xf83949),{});return _0x3e31ea['constructor']['create'](_0x4933ed,_0x6d2400);}),'function'!=typeof _0x3e31ea['config']['get']('trackChangesData')['editorCreator'])throw new _0x5e9249('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5c3076){return N(this['editor'],!0x0,_0x5c3076);}['getDataWithDiscardedSuggestions'](_0x16164e){return N(this['editor'],!0x1,_0x16164e);}}class D extends _0x385d2b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ffde2){function _0xbe1d66(_0xa3d538){return _0xa3d538['map'](_0x303012=>String['fromCharCode'](_0x303012))['join']('');}super(_0x5ffde2),this['result']='end',_0x5ffde2[_0xbe1d66([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbe1d66([0x76,0x69,0x65,0x77])][_0xbe1d66([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbe1d66([0x61,0x75,0x74,0x6f]),_0x5ffde2[_0xbe1d66([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xbe1d66([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbe1d66([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xbe1d66([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xbe1d66([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 Ge(_0x3d8ece){return void 0x0!==_0x3d8ece['getRootsAttributes'];}async function N(_0x41e2a7,_0x43196f,_0x3a5069){const _0x5ee6e2=_0x4eadee(_0x41e2a7,w);_0x5ee6e2['plugins']['push'](p,D),_0x5ee6e2['rootsAttributes']=Ge(_0x41e2a7)?_0x41e2a7['getRootsAttributes']():void 0x0;const _0x3a4048=document['createDocumentFragment'](),_0x26097f=_0x41e2a7['config']['get']('trackChangesData')['editorCreator'],_0x5d4426=await _0x26097f(_0x5ee6e2,()=>function(_0x362063){const _0xc55a12=document['createElement']('div');return _0x362063['appendChild'](_0xc55a12),_0xc55a12;}(_0x3a4048));!function(_0x3534cd,_0x8a10ad){const _0x5daceb=_0x3534cd['model']['document']['getRootNames']()['reduce']((_0x45764e,_0x364511)=>(_0x45764e[_0x364511]=_0x3534cd['data']['get']({'rootName':_0x364511}),_0x45764e),{}),_0x321711=_0x3534cd['plugins']['get']('Users')['users']['map'](_0x10cc7f=>({'id':_0x10cc7f['id'],'name':_0x10cc7f['name']})),_0x40cdbe=_0x3534cd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x12a85e=_0x3534cd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4dc84d=_0x8a10ad['plugins']['get']('Users'),_0x4b00d5=_0x8a10ad['plugins']['get']('TrackChangesEditing'),_0x4909d9=_0x8a10ad['plugins']['get']('CommentsRepository');for(const _0x50f0a7 of _0x4909d9['getCommentThreads']())_0x50f0a7['remove']();for(const _0x4cf20e of _0x321711)_0x4dc84d['getUser'](_0x4cf20e['id'])||_0x4dc84d['addUser'](_0x4cf20e);_0x4dc84d['me']||_0x4dc84d['useAnonymousUser']();for(const _0x397dd9 of _0x12a85e)_0x4909d9['addCommentThread'](_0x397dd9);for(const _0x45beec of _0x40cdbe)_0x4b00d5['addSuggestionData'](_0x45beec);_0x8a10ad['data']['set'](_0x5daceb);}(_0x41e2a7,_0x5d4426),_0x5d4426['execute'](_0x43196f?'acceptAllSuggestions':'discardAllSuggestions');const _0x45fbf6=Ge(_0x5d4426)?_0x5d4426['getFullData'](_0x3a5069):_0x5d4426['data']['get'](_0x3a5069);return await _0x5d4426['destroy'](),_0x45fbf6;}class Me extends _0x160dd4{['options'];constructor(_0x20b51a,_0x50e0ed){super(_0x20b51a),this['options']=_0x50e0ed,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'](_0x34e4f0,_0x78c1ac){if(!this['element'])return;const _0x2b3cab=[];for(const [_0x33a58d,_0x1ee67e]of _0x34e4f0){const _0x18f4b2=document['createElement']('div');_0x18f4b2['setAttribute']('data-ck-root-name',_0x33a58d),_0x18f4b2['className']=_0x1ee67e['classes']+'\x20ck-track-changes-preview__root-container',_0x18f4b2['innerHTML']=_0x1ee67e['content'],_0x2b3cab['push'](_0x18f4b2);}_0x78c1ac(this['element'],_0x2b3cab),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2f89f8{constructor(_0x497482){super(_0x497482),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5ee5d1=this['editor'],_0x599552=_0x5ee5d1['locale'],_0x55fd52=_0x5ee5d1['plugins']['get']('Dialog');let _0x5828e0;const _0x20199c=function(_0x2e9183){const _0x4b23bc={};if('editables'in _0x2e9183['ui']['view']){for(const [_0x3da151,_0x19db20]of Object['entries'](_0x2e9183['ui']['view']['editables']))_0x4b23bc[_0x3da151]=_0x19db20['element'];}else _0x4b23bc[_0x2e9183['model']['document']['getRootNames']()[0x0]]=_0x2e9183['ui']['view']['editable']['element'];return _0x4b23bc;}(_0x5ee5d1),_0x219da1=function(_0x182b1e){let _0x1a2955=0x0;for(const _0x37b9a6 of Object['values'](_0x182b1e))_0x1a2955=Math['max'](_0x1a2955,_0x37b9a6['getBoundingClientRect']()['width']);let _0x3a3ec4=0x0;for(const _0x4a73b3 of Object['values'](_0x182b1e))_0x3a3ec4+=_0x4a73b3['getBoundingClientRect']()['height'];const _0x3aab5f=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x114184=Math['min'](_0x3a3ec4,_0x3aab5f);return{'width':_0x1a2955,'height':_0x114184};}(_0x20199c);_0x55fd52['show']({'id':'finalContentPreview','title':c(_0x599552,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x599552,{'dialogRects':_0x219da1}),'onHide':()=>{_0x5828e0['detachFromDom']();},'onShow':()=>{_0x5ee5d1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x158687=>{const _0xca38e5=this['_standarizeRootsData'](_0x158687,_0x5ee5d1,_0x20199c);_0x55fd52['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xca38e5,_0x5ee5d1['config']['get']('trackChanges.preview.renderFunction'));}),_0x5828e0=new _0x4afe6b(_0x599552,[_0x55fd52['view']]),_0x5828e0['attachToDom'](),_0x5828e0['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5ee5d1['once']('destroy',()=>{_0x5828e0['detachFromDom']();});const _0x474eb8=_0x55fd52['view']['headerView']['class'];_0x55fd52['view']['headerView']['class']=_0x474eb8?_0x474eb8+'\x20ck-reset_all':'ck-reset_all',_0x55fd52['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x55fd52['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x123b71=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xdb509b=_0x123b71['previewMode'],_0x1dd289={};if('$labels'===_0xdb509b){for(const _0x638eae of _0x123b71['getMergeFieldsIds']())_0x1dd289[_0x638eae]=_0x123b71['getLabel'](_0x638eae)||_0x638eae;}else{const _0x555026='$defaultValues'===_0xdb509b?_0x123b71['getDefaultValues']():_0x123b71['getDataSetValues'](_0xdb509b,!0x0);for(const _0x3e3271 of Object['entries'](_0x555026)){const [_0x1264bf,_0x4e48ae]=_0x3e3271;_0x1dd289[_0x1264bf]=null!==_0x4e48ae?_0x4e48ae:_0x123b71['getLabel'](_0x1264bf)||_0x1264bf;}}return{'mergeFieldsData':_0x1dd289};}['_standarizeRootsData'](_0xaf4047,_0x5e90a7,_0x84d605){let _0x20f695;if('string'==typeof _0xaf4047){const _0x443470=_0x5e90a7['model']['document']['getRootNames']()[0x0];_0x20f695={[_0x443470]:_0xaf4047};}else _0x20f695=_0xaf4047;const _0x14a06d=this['_fixMediaEmbeds'](_0x20f695,_0x5e90a7),_0x7ab022=function(_0x81d607,_0x35835d){for(const [_0x1a8118,_0x40c3d8]of _0x81d607)_0x40c3d8['classes']=_0x35835d[_0x1a8118]['classList']['value']['replace']('ck-focused','');return _0x81d607;}(this['_sortRoots'](_0x5e90a7)['reduce']((_0xf5503b,_0x241031)=>(_0xf5503b['push']([_0x241031,{'content':_0x14a06d[_0x241031],'classes':''}]),_0xf5503b),[]),_0x84d605);return _0x7ab022;}['_fixMediaEmbeds'](_0x24748c,_0x344993){if(!_0x344993['plugins']['has']('MediaEmbedEditing'))return _0x24748c;const _0x23774e=_0x344993['plugins']['get']('MediaEmbedEditing');for(const [_0x4ee3d2,_0x27476a]of Object['entries'](_0x24748c)){const _0x3dc717=document['createElement']('div');_0x3dc717['innerHTML']=_0x27476a,(_0x3dc717['querySelectorAll']('figure.media')['forEach'](_0xf63b6c=>{const _0x3d5d69=_0xf63b6c['querySelector']('oembed');if(_0x3d5d69){const _0xc59521=_0x3d5d69['getAttribute']('url');if(_0xc59521){const _0x5190f0=_0x23774e['registry']['getMediaViewElement'](new _0x82119c(_0x344993['editing']['view']['document']),_0xc59521,{'elementName':'','renderForEditingView':!0x0}),_0x5e8e45=document['createElement']('div');_0x5e8e45['classList']['add']('ck-media__wrapper'),_0x5190f0['render'](_0x5e8e45,_0x344993['editing']['view']['domConverter']),_0x3d5d69['replaceWith'](_0x5e8e45);}}}),_0x24748c[_0x4ee3d2]=_0x3dc717['innerHTML']);}return _0x24748c;}['_sortRoots'](_0x44fb6a){if(!function(_0x571bbc){return void 0x0!==_0x571bbc['getRootsAttributes'];}(_0x44fb6a))return _0x44fb6a['model']['document']['getRootNames']();const _0x385a57=[],_0x405794=new Map();for(const _0x268a76 of _0x44fb6a['model']['document']['getRootNames']()){const _0xe1e593=_0x44fb6a['editing']['view']['getDomRoot'](_0x268a76)['getClientRects']()['item'](0x0);_0x385a57['push'](_0x268a76),_0x405794['set'](_0x268a76,_0xe1e593);}return _0x385a57['sort']((_0x263e0e,_0x33197b)=>{const _0x2148d1=_0x405794['get'](_0x263e0e),_0x30c449=_0x405794['get'](_0x33197b);return _0x2148d1['y']-_0x30c449['y']||_0x2148d1['x']-_0x30c449['x'];}),_0x385a57;}}class te extends _0x385d2b{static get['requires'](){return[T,_0x273140];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe96fbb){super(_0xe96fbb),_0xe96fbb['commands']['add']('previewFinalContent',new re(this['editor'])),_0xe96fbb['config']['define']('trackChanges.preview.renderFunction',(_0x2a786b,_0x1058f4)=>{for(const _0x2d9ff0 of _0x1058f4)_0x2a786b['appendChild'](_0x2d9ff0);});}}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};
|